:root {
	
	--lab-link-color: #0971f7;
	--lab-link-border: 1px solid #08070842;
	--lab-link-background: #f7f7f75e;
	--lab-link-background-hover: #f7f7f7;
}

[data-theme="dark"] {
	
	--lab-link-color: #05e6ff;
	--lab-link-border: 1px solid #f0f8ff14;
	--lab-link-background: #1e1e515e;
	--lab-link-background-hover: #1616395e;
}

.visual-interactions {

}

/*@font-face {
    font-family: 'Audiowide';
    src: url('../../lib/fonts/Audiowide/Audiowide-Regular.woff2') format('woff2'),
        url('../../lib/fonts/Audiowide/Audiowide-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.visual-title {
	justify-self: center;
	text-align: center;
	margin-bottom: 1rem;
}

.visual-title h1 {
	display: inline-block;
	font-family: 'Audiowide';
	font-size: calc(clamp(2.5rem, 4vw, 4rem) + var(--font-size-larger));
	margin: 0;
	background: linear-gradient(140deg, #7171e7, #33d5f9, #f76565);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}*/
.title {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 1rem;
}

.title-svg {
	position: relative;
	max-width: 700px;
	max-height: 500px;
}

@font-face {
    font-family: 'Audiowide';
    src: url('../../lib/fonts/Audiowide/Audiowide-Regular.woff2') format('woff2'),
        url('../../lib/fonts/Audiowide/Audiowide-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.title-text {
	font-family: 'Audiowide';
	font-size: calc(2rem + var(--font-size-large));
	font-weight: 800;
	letter-spacing: 3px;
	fill: #000000;
	stroke: rgba(255,255,255,0.15);
	stroke-width: 2;

	filter: url(#glow);
	cursor: default;
}

.title .svg-fx-glow {
	color: inherit;
	transition: color 0.3s ease;
}

.title .svg-fx-glow.hovered {
	color: #00c5f9;
}

.char {
	transition: fill 0.2s ease;
	display: inline-block;
	transform-box: fill-box;
	transform-origin: center;
}

.char:hover {
	fill: #138cff;
}

.back-button {
	display: flex;
    padding: 0 clamp(1rem, 4vw, 2rem);
	margin-bottom: 1rem;
}

.back-button a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.6rem;
	border-radius: 12px;
	color: var(--lab-link-color);
	text-decoration: none;
	background: transparent;
	transform: translate3d(0,0,0);
	backface-visibility: hidden;
	transition: transform 180ms cubic-bezier(.2,.8,.2,1),  color 180ms ease;
}

.back-button a::before {
	content: "";
	position: absolute;
	inset: 0;
	border: var(--lab-link-border);
	border-radius: inherit;
	background: var(--lab-link-background);
	z-index: -1;
	transform: scale(1);
	transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms ease;
	will-change: transform;
}

.back-button a:hover {
	transform: scale(1.02);
}

.back-button a:hover::before {
	background: var(--lab-link-background-hover);
	transform: scale(1.04);
}

.back-button a:active {
	transform: scale(0.985);
}

/* === VISUAL BUTTONS === */

.visual-buttons-wrapper {
	display: flex;
	flex-wrap: wrap;
	position: relative;
	padding: clamp(1rem, 4vw, 3rem) clamp(0.75rem, 2vw, 2rem);
	gap: clamp(1rem, 2vw, 2rem);
	justify-content: center;
}

.visual-grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.5rem, 1.5vw, 1rem);
	padding: clamp(0.5rem, 1.5vw, 1rem);
	justify-content: center;
}

.grid-wrapper {
	justify-items: center;
}

/* == VISUAL CARD == */

:root {
	--vanish-time: 0.5s;
	
	--visual-card-background: rgba(0, 2, 24, 0.75);
	--visual-card-outline: 1px solid rgba(0, 137, 255, 0.85);
}

[data-theme="dark"] {
	--visual-card-background: rgba(3, 11, 23, 0.75);
	--visual-card-outline: 1px solid rgba(255, 255, 255, 0.4);
}

.visual-card {
	display: flex;
	position: relative;
	flex-direction: column;
	justify-content: space-between;
	height: clamp(155px, 40vw, 250px);
	width: clamp(120px, 30vw, 220px);
	position: relative;
	overflow: hidden;
	padding: 0.75rem;
	background: var(--visual-card-background);
	border-radius: 20px;
	outline: var(--visual-card-outline);
	transition: background 0.3s ease;
	z-index: 0;
}

.visual-card:hover {
	/*background: rgba(50, 97, 233, 0.5);*/
}

.visual-card::before {
	position: absolute;
	content: '';
	inset: 0;
	opacity: 0;
	z-index: 1;
	background-image: url('../../sources/assets/source-a/Lab-Studio.png');
	background-size: cover;
	background-position: center;
	transition: opacity 0.4s ease, transform 0.4s ease;
	transform: scale(1);
}

.visual-card:hover::before {
	opacity: 1;
	transform: scale(1.05);
}

/* Dezent info */
.card-info {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.7rem;
	cursor: default;
	font-weight: 500;
	z-index: 2;
}

.category {
	padding: 0.1rem 0.4rem;
	background: white;
	color: var(--visual-card-background);
	border-radius: 99px;
}

.vanish {
	transition: opacity var(--vanish-time) ease;
	color: white;
	padding: 0.1rem 0.3rem;
	border-radius: 24px;
	background: gray;
}

.visual-card:hover .card-info .vanish {
	opacity: 0;
}

/* Description */

.visual-description {
	display: inline-flex;
	flex-direction: column;
	color: white;
	gap: 0.5rem;
	padding: 0.5rem;
	pointer-events: none;
	transition: opacity var(--vanish-time) ease, transform var(--vanish-time) ease;
	z-index: 2;
}

.visual-card:hover .visual-description {
	opacity: 0;
	transform: translateX(-20px) translateY(10px) scale(0.8);
}

.visual-description {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.visual-description .text-wrapper p {
	margin: 0;
	font-size: calc(clamp(0.8rem, 3vw, 1rem) + var(--font-size-larger));
}

/* Button */
.slide-button {
	color: white;
	display: block;
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 80%;
	text-decoration: none;
	text-align: center;
	padding: 0.3rem 0.5rem;
	background: #37add3;
	border-radius: 8px;
	transform: translateY(60px) translateX(-50%);
	transition: transform 0.2s ease, background 0.1s ease;
	will-change: transform;
	z-index: 2;
}

.slide-button:hover {
	background: #268bab;
}

.visual-card:hover .slide-button {
	animation: Lock 0.8s ease-out;
	transform: translateY(-10px) translateX(-50%);
}

@keyframes bounceLock {
	0% {
		transform: translateY(60px);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-8px);
	}
	100% {
		transform: translateY(-10px);
	}
}

@keyframes Lock {
	0% {
		transform: translateY(50px) translateX(-50%);
	}
	45% {
		transform: translateY(-15px) translateX(-50%);
	}
	100% {
		transform: translateY(-10px) translateX(-50%);
	}
}

/* == VISUAL EXECUTABLE == */

.visual-executable {
	position: relative;
	display: flex;
	color: inherit;
	text-decoration: none;
	padding: 1rem;
	cursor: pointer;
}

.visual-executable:hover {
	color: inherit;
}

.visual-executable::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #6760601c;
	border-radius: 8px;
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: -1;
}

.visual-executable:hover::before {
	opacity: 1;
	transform: scale(1);
}

.executable-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: clamp(110px, 20vw, 160px);
}

.executable-image {
	position: relative;
	height: clamp(110px, 20vw, 160px);
	width: 100%;
}

.executable-image img {
	height: 100%;
	width: 100%;
	border-radius: 8px;
	box-shadow: -1px 2px 9px 2px rgb(2 2 2 / 57%);
}

.executable-icon {
	position: absolute;
	display: block;
	bottom: 0.75rem;
	right: 0.75rem;
	transform: translateY(7px);
	border-radius: 999px;
	padding: 0.25rem;
	background: #bfcff5;
	align-items: center;
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.executable-icon svg {
	fill: #551fe3;
	transition: transform 0.2s ease, fill 0.2s ease;
	vertical-align: bottom;
	pointer-events: none;
}

.executable-icon:hover svg {
	fill: blue;
}

.visual-executable:hover .executable-icon {
	transform: translateY(0);
	opacity: 1;
}

.executable-icon:hover {
	transform: scale(1.1)!important;
}

/* Text */
.executable-text {
	flex: 1;
	padding: 0.75rem 0;
}

.executable-text p {
	opacity: 0.8;
	font-size: 0.9rem;
	margin: 0;
}

/* == SHINY PICTURE == */

.shiny-picture {
	position: relative;
	min-width: clamp(140px, 35vw, 215px);
	max-width: clamp(140px, 35vw, 215px);
	height: clamp(180px, 45vw, 275px);
	background-image: url('../../sources/assets/source-a/Lab-Studio.png');
	background-position: center;
	background-size: cover;
	color: inherit;
	text-decoration: none;
	flex: 1;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
	will-change: transform;
	box-shadow: 3px 6px 12px rgba(0, 0, 0, 1);
}

.shiny-picture::before {
	position: absolute;
	content: '';
	top: 0;
	left: 90%;
	height: 50%;
	width: 150%;
	transform: skew(50deg);
	background: rgba(255, 255, 255, 0.1);
	filter: blur(15px);
	opacity: 0.75;
	transition: height 0.3s ease-out, opacity 0.5s ease;
}

.shiny-picture:hover {
	transform: scale(1.05);
	box-shadow: 7px 13px 12px rgba(0, 0, 0, 1);
}

.shiny-picture:hover::before {
	height: 150%;
	opacity: 1;
}

.shiny-picture:active {
	transform: scale(1.02);
	box-shadow: 7px 9px 12px rgba(0, 0, 0, 1);
}

.shiny-picture:active::before {
	height: 110%;
	opacity: 1;
}

/* inner (text) */
.inner-shiny-picture {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 15%;
	display: flex;
	gap: clamp(0.5rem, 3vw, 1rem);
	padding: clamp(0.25rem, 1.1vw, 0.5rem);
	align-items: center;
}

.inner-interaction {
	padding: clamp(0.15rem, 1.1vw, 0.35rem) clamp(0.55rem, 1.1vw, 0.75rem);
	border-radius: 4px;
	align-self: center;
	background: linear-gradient(45deg, #62ff00, #3bc731, #009721);
}

.inner-interaction svg {
	fill: #d7d6d6;
	height: clamp(14px, 2vw, 20px);
	width: clamp(14px, 2vw, 20px);
	transition: fill 0.2s ease, transform 0.2s ease;
}

.inner-interaction:hover svg {
	fill: white;
	transform: scale(1.05);
}

.inner-text {
	display: flex;
}

.inner-text p {
	margin: 0;
	font-size: calc(clamp(0.8rem, 3vw, 1rem) + var(--font-size-larger));
	color: #f5f5f5;
	position: relative;
	text-shadow: 0px -1px 1px rgba(122, 233, 255, 1);
	will-change: transform;
}

.inner-text p::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(25, 55, 167, 1);
	filter: blur(10px);
	z-index: -1;
}


/* =========================
   ATMOSPHERES
========================= */

.visual-atmospheres {
	text-align: center;
	margin-bottom: 1rem;
}

.visual-atmospheres h1 {
	display: inline-block;
	margin-top: 0;
	font-size: calc(clamp(1.75rem, 6vw, 2.5rem) + var(--font-size-larger));
}

.atmosphere-modules {
	justify-items: center;
	padding: 0.5rem;
}

.atmosphere {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(0.5rem, 2vw, 1rem);
}

.atmosphere {
	/*padding: clamp(0.25rem, 2vw, 1rem);
	height: clamp(120px, 35vw, 300px);
	width: clamp(120px, 35vw, 300px);
	background: #5c6e7d;
	border-radius: 8px;*/
}

.atmosphere p {
	font-size: calc(clamp(0.8rem, 2vw, 1rem) + var(--font-size-larger));
}

/* =========================
   EXCLUSIVE ATMOS
========================= */

.disguised {
}



/* =========================
   CONTAINER
========================= */

.sealed-box {
    position: relative;
    width: clamp(250px, 50vw, 420px);
    height: clamp(160px, 35vw, 260px);
    border-radius: 28px;
    background: linear-gradient(145deg,#1b1f2b,#11141d);
    border: 2px solid rgba(255,255,255,.08);
    box-shadow: 0 0 30px rgba(0,0,0,.5), inset 0 0 20px rgba(255,255,255,.03);
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s, box-shadow .5s, border .5s;
}

/* =========================
   DAMAGE STATES
========================= */

.sealed-box.damage-1 {
    border-color: rgba(255,180,180,.3);
    box-shadow: 0 0 20px rgba(255,120,120,.15), inset 0 0 25px rgba(255,255,255,.05);
}

.sealed-box.damage-2 {
    border-color: rgba(255,120,120,0.45);
    box-shadow: 0 0 35px rgba(255,80,80,.25), inset 0 0 35px rgba(255,255,255,.08);
}

/* =========================
   HIT ANIMATION
========================= */

.sealed-box.hit {
    animation: impact .25s;
}

@keyframes impact {
    0% { transform: translateX(0px) scale(1); }
    20% { transform: translateX(-6px) scale(0.99); }
    40% { transform: translateX(6px) scale(1.01); }
    60% { transform: translateX(-3px); }
    100% { transform: translateX(0px); }
}

/* =========================
   PREVIEW CONTENT
========================= */

.preview {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.preview img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 16px;
    opacity: .65;
    filter: brightness(.7);
}

.preview h2 {
    color: #d8dde7;
    letter-spacing: 2px;
    font-size: 24px;
}

/* =========================
   CHAINS
========================= */

.chain {
    position: absolute;
    background: linear-gradient(to bottom, #777, #444);
    z-index: 3;
    transition: opacity .5s, transform .5s;
	pointer-events: none;
}

.chain.horizontal {
    width: 520px;
    height: 12px;
    left: -50px;
}

.chain.vertical {
    width: 12px;
    height: 340px;
    top: -40px;
}

.chain.top {
    top: 70px;
    transform: rotate(-10deg);
}

.chain.bottom {
    bottom: 70px;
    transform: rotate(10deg);
}

.chain.left {
    left: 120px;
    transform: rotate(10deg);
}

.chain.right {
    right: 120px;
    transform: rotate(-10deg);
}

/* DAMAGE */

.damage-1 .chain {
    opacity: .8;
}

.damage-1 .chain.top {
    transform: rotate(-8deg) translateX(10px);
}

.damage-1 .chain.left {
    transform: rotate(14deg) translateY(10px);
}

.damage-2 .chain {
    opacity: .45;
}

.damage-2 .chain.top {
    transform: rotate(-3deg) translateX(25px);
}

.damage-2 .chain.bottom {
    transform: rotate(4deg) translateX(-25px);
}

.damage-2 .chain.left {
    transform: rotate(20deg) translateY(25px);
}

.damage-2 .chain.right {
    transform: rotate(-20deg) translateY(-25px);
}

/* =========================
   LOCK
========================= */

.lock {
    position: absolute;
    width: 82px;
    height: 72px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: linear-gradient(145deg,#9a9a9a,#4f4f4f);
    border-radius: 14px;
    z-index: 5;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    animation: lockFloat 3s ease-in-out infinite;
    transition: transform .6s, opacity .6s;
}

.lock::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 36px;
    border: 8px solid #777;
    border-bottom: none;
    border-radius: 30px 30px 0 0;
    left: 50%;
    top: -32px;
    transform: translateX(-50%);
}

@keyframes lockFloat {
    0% { transform: translate(-50%,-50%) rotate(-1deg); }
    50% { transform: translate(-50%,-52%) rotate(1deg); }
    100% { transform: translate(-50%,-50%) rotate(-1deg); }
}

/* =========================
   HIDDEN CONTENT
========================= */

.hidden-content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: end;
    opacity: 0;
    transform: scale(1);
	background-image: url('../../sources/assets/source-a/Lab-Studio.png');
	background-position: center;
	background-size: cover;
    z-index: 2;
    transition: opacity 1.4s ease, transform 1.4s ease;
	will-change: transform;
}

.hidden-content h1 {
    background: linear-gradient(145deg, #ff0000, #d98c6e);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
    font-size: calc(clamp(1.7rem, 10vw, 3rem) + var(--font-size-larger));
    filter: drop-shadow(0 0 20px rgba(29, 247, 247,.6));
	margin-bottom: 0.5rem;
}

.hidden-content h1::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	color: transparent;
	-webkit-text-stroke: 1px rgba(0, 0, 0, .75);
}

.hidden-content h1::before {

}

/* =========================
   REVEAL
========================= */

.sealed-box.revealed {
    box-shadow: 0 0 80px rgba(120,180,255,.35), 0 0 140px rgba(120,180,255,.15);
    border-color: rgba(180,220,255,.5);
}

.sealed-box.revealed .chain {
    opacity: 0;
    transform: scale(1.5);
}

.sealed-box.revealed .lock {
    opacity: 0;
    transform: translate(-50%,-80%) scale(1.4) rotate(25deg);
}

.sealed-box.revealed .hidden-content {
    opacity: 1;
    transform: scale(1.05);
}

.sealed-box.revealed .preview {
    opacity: 0;
    transition: opacity .8s;
}

.sealed-box.revealed:active {
	transform: translate(-4px, 0) scale(1.01);
}


/* =========================
   FLASH
========================= */

.flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,.0) 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.flash.active {
    animation: flash .8s ease;
}

@keyframes flash {
    0%{
        opacity: 0;
        transform: scale(.5);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* =========================
   PARTICLES
========================= */

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    z-index: 20;
    animation: particleFly 1.2s forwards;
}

@keyframes particleFly {
    to {
        transform: translate(var(--x),var(--y)) scale(0);
        opacity: 0;
    }
}