:root {
  --bg: #06050F;
  --bg-2: #0C0A22;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(160, 150, 255, .16);
  --text: #ECEAFF;
  --muted: #A29FC4;
  --cyan: #19E6FF;
  --violet: #7A5CFF;
  --pink: #FF3D9A;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 50%, var(--pink));
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* buttons */
.btn {
  --b: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #07051A; box-shadow: 0 10px 40px -10px rgba(122, 92, 255, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(255, 61, 154, .7); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(25, 230, 255, .6); background: rgba(25, 230, 255, .06); }
.btn--lg { padding: 18px 30px; font-size: 17px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* nav */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(10, 8, 30, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .3s;
}
.nav__logo img { width: 74px; height: auto; display: block; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__cta { padding: 10px 18px; font-size: 14px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 80px var(--gutter) auto; z-index: 49; padding: 12px;
  border-radius: var(--radius); background: rgba(10, 8, 30, .92); border: 1px solid var(--line); backdrop-filter: blur(18px);
  display: grid;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; text-decoration: none; font: 600 18px var(--font-display); border-radius: 14px; }
.mobile-menu a:hover { background: var(--surface-2); }

/* hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 120px var(--gutter) 90px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(122, 92, 255, .28), transparent 70%),
    radial-gradient(40% 40% at 15% 70%, rgba(25, 230, 255, .14), transparent 70%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(16px, 3vw, 48px); }
.hero__inner { width: 100%; position: relative; z-index: 1; }
.hero__emblem { position: relative; display: grid; place-items: center; aspect-ratio: 1.1; }
.hero__emblem img { position: relative; width: 112%; max-width: none; height: auto; filter: drop-shadow(0 30px 60px rgba(75, 59, 255, .55)); animation: float 6s ease-in-out infinite; }
.hero__orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(25, 230, 255, .28); transform: rotateX(70deg) rotateZ(-12deg); animation: spin 18s linear infinite; }
.hero__orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 16px 4px var(--pink); }
.hero__orbit--2 { inset: 18%; border-color: rgba(255, 61, 154, .25); animation-duration: 26s; animation-direction: reverse; }
.hero__orbit--2::after { background: var(--cyan); box-shadow: 0 0 16px 4px var(--cyan); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes spin { to { transform: rotateX(70deg) rotateZ(348deg); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.hero__title { font-size: clamp(2.3rem, 1rem + 5vw, 6rem); font-weight: 800; letter-spacing: -.035em; }
.hero__title .line { display: block; }
.hero__title .line + .line { padding-bottom: .08em; }
.hero__lead { max-width: 560px; margin: 28px 0 36px; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: space-between; gap: 12px;
  font: 400 11px/1 var(--font-display); letter-spacing: .18em; color: rgba(162, 159, 196, .7);
}
.blink { color: var(--pink); animation: blink 2.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ticker */
.ticker { border-block: 1px solid var(--line); background: rgba(122, 92, 255, .05); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; gap: 32px; width: max-content; animation: tick 34s linear infinite; font: 600 14px/1 var(--font-display); letter-spacing: .16em; }
.ticker__track b { color: var(--pink); font-weight: 400; }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(80px, 10vw, 150px) var(--gutter); max-width: 1280px; margin: 0 auto; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); font-weight: 800; }
.section__lead { color: var(--muted); font-size: 1.1rem; margin: 20px 0 0; }
.kicker { font: 400 12px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin: 0 0 18px; }

/* game card */
.game-card {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(122, 92, 255, .55);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.game-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); opacity: .5; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.game-card__art { position: relative; min-height: 560px; overflow: hidden; }
.game-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.05); }
.game-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(12, 10, 34, .9)), linear-gradient(transparent 60%, rgba(12, 10, 34, .6)); }
.game-card__crew { position: absolute; left: 2%; bottom: 0; width: 96%; max-width: none; z-index: 1; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); transition: transform .8s var(--ease); }
.game-card:hover .game-card__crew { transform: translateY(-8px) scale(1.02); }
.game-card__body { position: relative; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.game-card__logo { width: min(380px, 100%); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.game-card__text { margin: 0; color: var(--muted); font-size: 1.05rem; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(25, 230, 255, .08); border: 1px solid rgba(25, 230, 255, .3); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.rps { width: 100%; padding: 18px 20px; border-radius: 18px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.rps__title { margin: 0 0 10px; font: 600 12px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.rps__loop { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rps__loop li { display: flex; gap: 8px; font-size: 15px; }
.rps__loop li::before { content: "→"; color: var(--violet); }
.rps__loop span { color: var(--muted); }
.rps__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.game-card__meta { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; }
.game-card__meta small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.game-card__meta strong { font-size: 14px; font-weight: 600; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); min-height: 240px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  transition: border-color .3s, transform .5s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(122, 92, 255, .22), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover { border-color: rgba(122, 92, 255, .5); transform: translateY(-4px); }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; }
.tile > * { position: relative; }
.tile__num { position: absolute; top: 22px; right: 26px; font: 800 64px/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.tile h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 600; max-width: 22ch; }
.tile p { margin: 0; color: var(--muted); max-width: 52ch; }

/* lab */
.lab__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.classified {
  position: relative; min-height: 260px; padding: 28px; border-radius: var(--radius); overflow: hidden;
  border: 1px dashed rgba(255, 61, 154, .35);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .015) 0 14px, transparent 14px 28px), var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between;
}
.classified::after { content: ""; position: absolute; left: 0; right: 0; height: 80px; top: -80px; background: linear-gradient(transparent, rgba(25, 230, 255, .14), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { to { top: 110%; } }
.classified__id { font: 600 14px var(--font-display); letter-spacing: .2em; color: var(--cyan); }
.classified__redact { display: grid; gap: 10px; }
.classified__redact i { display: block; height: 14px; border-radius: 4px; background: rgba(236, 234, 255, .12); }
.classified__redact i:nth-child(1) { width: 70%; }
.classified__redact i:nth-child(2) { width: 90%; }
.classified__redact i:nth-child(3) { width: 45%; }
.classified__status { margin: 0; color: var(--muted); font-size: 14px; }
.classified__status b { color: var(--text); }
.classified__stamp { position: absolute; right: 22px; bottom: 26px; padding: 6px 14px; border: 2px solid var(--pink); color: var(--pink); border-radius: 8px; font: 800 14px var(--font-display); letter-spacing: .2em; text-transform: uppercase; transform: rotate(-8deg); opacity: .85; }

/* contact */
.contact__panel {
  position: relative; text-align: center; padding: clamp(48px, 8vw, 110px) clamp(20px, 4vw, 48px); border-radius: 36px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, rgba(122, 92, 255, .35), transparent 70%), var(--bg-2);
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.contact__mark { width: min(260px, 70%); height: auto; filter: drop-shadow(0 0 30px rgba(122, 92, 255, .7)); }
.contact__panel h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); font-weight: 800; }
.contact__panel p { margin: 0; color: var(--muted); max-width: 46ch; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); font: 600 16px/1.1 var(--font-body); text-align: left; }
.store svg { width: 26px; height: 26px; fill: var(--text); }
.store small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

/* footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px var(--gutter); border-top: 1px solid var(--line); max-width: 1280px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.footer img { width: 96px; height: auto; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer p { margin: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 80px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--cyan); }

/* ---------- v2: smoother, more futuristic layer ---------- */
h1, h2, h3 { font-family: "Sora", var(--font-display); letter-spacing: -.035em; }
.hero__title { font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.section__head h2, .contact__panel h2 { font-weight: 700; }

/* aurora: slow drifting light behind everything */
.aurora { position: fixed; inset: -20vmax; z-index: -2; pointer-events: none; filter: blur(80px) saturate(1.2); opacity: .55; }
.aurora i { position: absolute; width: 50vmax; height: 50vmax; border-radius: 50%; mix-blend-mode: screen; animation: drift 28s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { left: 10%; top: 5%; background: radial-gradient(circle, rgba(47, 123, 255, .55), transparent 65%); }
.aurora i:nth-child(2) { right: 5%; top: 25%; background: radial-gradient(circle, rgba(211, 59, 255, .45), transparent 65%); animation-duration: 34s; animation-delay: -8s; }
.aurora i:nth-child(3) { left: 35%; bottom: 0; background: radial-gradient(circle, rgba(25, 230, 255, .35), transparent 65%); animation-duration: 40s; animation-delay: -16s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vmax, -4vmax, 0) scale(1.15); } 100% { transform: translate3d(-5vmax, 5vmax, 0) scale(.95); } }
body { background: var(--bg); }
.hero { background: transparent; }

/* cursor light (desktop) */
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(122, 92, 255, .14), transparent 60%); transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0); will-change: transform; }

/* hero logo: 3D raster, black knocked out with screen blend */
.hero__emblem { perspective: 1200px; }
.hero__emblem img { width: 122%; max-width: none; filter: drop-shadow(0 40px 80px rgba(75, 59, 255, .45)); animation: none;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0); transition: transform .9s var(--ease); }
.hero__emblem::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(75, 59, 255, .45), transparent 70%); filter: blur(30px); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
.hero__orbit { border-color: rgba(120, 170, 255, .22); }
.nav__logo img { width: 92px; }
.footer img { width: 120px; }
.contact__mark { width: min(360px, 80%); filter: drop-shadow(0 20px 50px rgba(75, 59, 255, .5)); }

/* glass, gradient hairlines, softer surfaces */
.glass, .tile, .game-card, .contact__panel, .classified, .nav {
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015));
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.tile, .contact__panel, .classified { border: 1px solid rgba(160, 150, 255, .14); }
.tile { border-radius: 26px; transition: border-color .5s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 80px -30px rgba(122, 92, 255, .6); }
.classified { border-style: solid; }
.nav { background: rgba(10, 8, 30, .45); }
.btn { transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .4s, border-color .4s; }
.btn--primary { background: linear-gradient(100deg, #32E0FF, #2F7BFF 35%, #7B3BFF 65%, #D33BFF); background-size: 200% 100%; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.btn--primary:hover { background-position: 100% 0; }

/* gradient text shimmer */
.grad { background: linear-gradient(100deg, #32E0FF, #2F7BFF 30%, #7B3BFF 55%, #D33BFF 75%, #32E0FF); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 9s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* softer reveal: fade + rise + de-blur, staggered */
.reveal { opacity: 0; transform: translate3d(0, 36px, 0); filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* section divider glow line */
.section { position: relative; }
.section + .section { padding-top: clamp(64px, 8vw, 120px); }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(900px, 80%); transform: translateX(-50%); height: 1px; background: linear-gradient(90deg, transparent, rgba(122, 92, 255, .5), transparent); }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero__emblem { order: -1; width: min(340px, 78%); margin: 0 auto -10px; }
  .hero__emblem img { width: 100%; }
  .game-card { grid-template-columns: 1fr; }
  .game-card__art { min-height: 0; aspect-ratio: 4 / 3.4; }
  .game-card__art::after { background: linear-gradient(transparent 55%, rgba(12, 10, 34, .95)); }
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { padding: 8px 8px 8px 16px; }
  .nav nav, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { width: 80px; }
  .bento, .lab__grid { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 200px; }
  .game-card__meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero__hud span:first-child, .hero__hud span:last-child { display: none; }
  .hero__hud { justify-content: center; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.hero__canvas { opacity: .5; mask-image: linear-gradient(transparent 40%, #000 75%); -webkit-mask-image: linear-gradient(transparent 40%, #000 75%); }

/* ---------- v3: screenshots gallery + what's next ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.phone { margin: 0; display: grid; gap: 18px; justify-items: center; text-align: center; }
.phone--lift { transform: translateY(-28px); }
.phone--lift.reveal { transform: translate3d(0, 8px, 0); }
.phone--lift.reveal.is-in { transform: translateY(-28px); }
.phone__screen { position: relative; width: min(100%, 280px); aspect-ratio: 418 / 850; border-radius: 34px; padding: 8px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03)); border: 1px solid rgba(160, 150, 255, .25);
  box-shadow: 0 40px 90px -30px rgba(75, 59, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .05); transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.phone__screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 32%); }
.phone:hover .phone__screen { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 50px 110px -30px rgba(211, 59, 255, .55); }
.phone figcaption { max-width: 280px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.phone figcaption b { display: block; color: var(--text); font: 600 16px/1.3 "Sora", var(--font-body); margin-bottom: 4px; }

.lab__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.peek { border-radius: 24px; overflow: hidden; border: 1px solid rgba(160, 150, 255, .12); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  transition: transform .7s var(--ease), border-color .5s; }
.peek:hover { transform: translateY(-4px); border-color: rgba(160, 150, 255, .3); }
.peek__art { aspect-ratio: 16 / 10; overflow: hidden; background: #0b0920; display: grid; place-items: center; }
.peek__art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); opacity: .85; transition: transform 1s var(--ease), opacity .5s; }
.peek__art--logo { background: radial-gradient(circle at 50% 60%, #0f3a2a, #07140f 70%); }
.peek__art--logo img { width: 78%; height: auto; object-fit: contain; }
.peek:hover .peek__art img { transform: scale(1.04); opacity: 1; }
.peek__body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.peek__tag { justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.peek h3 { font-size: 1.15rem; font-weight: 600; }
.peek p { margin: 0; color: var(--muted); font-size: 14px; }
.lab__note { margin: 20px 0 0; color: rgba(162, 159, 196, .7); font-size: 13px; }
.tile__num { font: 600 15px/1 "Sora", var(--font-body); letter-spacing: .1em; opacity: .9; top: 24px; right: 26px; }

@media (max-width: 960px) {
  .lab__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .phone { scroll-snap-align: center; }
  .phone--lift, .phone--lift.reveal.is-in { transform: none; }
  .lab__grid { grid-template-columns: 1fr; }
}

/* v4: show full phone screens, true 390x844 ratio, no zoom */
.phone__screen { aspect-ratio: 390 / 844; }
.peek__art { aspect-ratio: auto; padding: 22px 0 0; background: radial-gradient(circle at 50% 30%, rgba(122, 92, 255, .25), transparent 70%); }
.peek__art img { width: auto; height: 300px; max-width: 100%; aspect-ratio: 390 / 844; object-fit: contain; border-radius: 22px; opacity: 1; filter: none;
  border: 1px solid rgba(160, 150, 255, .25); box-shadow: 0 24px 50px -20px rgba(75, 59, 255, .6); }
.peek:hover .peek__art img { transform: translateY(-4px); }

/* ---------- v5: hero slideshow of upcoming games ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.showcase { position: relative; height: 100svh; min-height: 620px; max-height: 980px; overflow: hidden; isolation: isolate; background: #05040c; }
.showcase__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: grid; align-items: center; padding: 110px var(--gutter) 150px; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.slide__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide__bg img, .slide__bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.slide.is-active .slide__bg img, .slide.is-active .slide__bg video { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 4, 12, .92) 0%, rgba(5, 4, 12, .7) 34%, rgba(5, 4, 12, .15) 65%, rgba(5, 4, 12, .35) 100%), linear-gradient(0deg, #05040c 0%, rgba(5, 4, 12, 0) 34%); }
.slide__bg--blur img { filter: blur(28px) saturate(1.3) brightness(.65); transform: scale(1.25); }
.slide.is-active .slide__bg--blur img { transform: scale(1.18); }
.slide__content { position: relative; max-width: 560px; display: grid; gap: 16px; justify-items: start; }
.slide__content > * { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > *:nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide__content > *:nth-child(3) { transition-delay: .22s; }
.slide.is-active .slide__content > *:nth-child(4) { transition-delay: .3s; }
.slide.is-active .slide__content > *:nth-child(5) { transition-delay: .38s; }
.slide__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); background: rgba(25, 230, 255, .1); border: 1px solid rgba(25, 230, 255, .35); backdrop-filter: blur(10px); }
.slide__tag--soon { color: #FFD66B; background: rgba(255, 200, 60, .12); border-color: rgba(255, 210, 90, .45); }
.slide__tag--soon .dot { background: #FFD66B; box-shadow: 0 0 12px #FFD66B; }
.slide__tag--lab { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: var(--line); }
.slide__logo { width: min(440px, 88%); height: auto; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .55)); }
.slide__logo--montropia { width: min(470px, 90%); }
.slide__logo--poker { width: min(380px, 80%); }
.slide__title { font-size: clamp(2.6rem, 1.4rem + 4.5vw, 5.2rem); font-weight: 700; line-height: 1; text-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.slide__line { margin: 0; font: 600 clamp(1.25rem, 1rem + 1vw, 1.8rem)/1.2 "Sora", var(--font-body); letter-spacing: -.02em; }
.slide__text { margin: 0; max-width: 46ch; color: #C9C6E6; font-size: 1.05rem; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.slide__actions .btn svg { margin-inline-start: -4px; }
.slide__hero-art { position: absolute; right: max(var(--gutter), calc(50% - 680px)); bottom: 110px; width: min(52vw, 760px); z-index: 0; pointer-events: none;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); opacity: 0; transform: translate3d(40px, 0, 0); transition: opacity 1.2s var(--ease) .2s, transform 1.2s var(--ease) .2s; }
.slide.is-active .slide__hero-art { opacity: 1; transform: none; }
.slide__phone { position: absolute; right: max(calc(var(--gutter) + 40px), calc(50% - 600px)); top: 50%; width: min(26vw, 300px); aspect-ratio: 390 / 844; translate: 0 -54%;
  border-radius: 38px; padding: 9px; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(122, 92, 255, .2); opacity: 0; transform: translate3d(0, 30px, 0) rotate(3deg); transition: opacity 1.1s var(--ease) .15s, transform 1.1s var(--ease) .15s; }
.slide.is-active .slide__phone { opacity: 1; transform: rotate(3deg); }
.slide__phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }

.showcase__nav { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5; display: flex; justify-content: center; gap: 10px; padding: 0 var(--gutter); }
.showcase__tab { position: relative; flex: 0 1 190px; min-width: 0; padding: 12px 14px 14px; text-align: start; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 8, 30, .45); backdrop-filter: blur(16px); color: var(--muted); font: 600 13px/1.2 var(--font-body); cursor: pointer; overflow: hidden; transition: color .3s, border-color .3s, background .3s; }
.showcase__tab small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.showcase__tab span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase__tab:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.showcase__tab[aria-current="true"] { color: var(--text); border-color: rgba(122, 92, 255, .55); background: rgba(40, 28, 110, .5); }
.showcase__tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.showcase__tab[aria-current="true"] i { animation: progress var(--dur, 8s) linear forwards; }
.showcase.is-paused .showcase__tab[aria-current="true"] i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.showcase__arrow { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--text); background: rgba(10, 8, 30, .45); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(12px); transition: background .3s, transform .4s var(--ease); }
.showcase__arrow:hover { background: rgba(122, 92, 255, .35); transform: scale(1.06); }
.showcase__arrow--prev { left: 14px; }
.showcase__arrow--next { right: 14px; }

.trailer { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #000; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .8); }
.trailer::backdrop { background: rgba(3, 2, 10, .82); backdrop-filter: blur(8px); }
.trailer__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.trailer__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; cursor: pointer; }

.studio-strip { border-bottom: 1px solid var(--line); padding: 22px var(--gutter); background: rgba(122, 92, 255, .04); }
.studio-strip p { margin: 0 auto; max-width: 1280px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 15px; text-align: center; }
.studio-strip img { width: 64px; height: auto; flex: none; }

@media (max-width: 960px) {
  .slide__hero-art { width: 88vw; right: 6vw; bottom: 150px; opacity: 0; }
  .slide.is-active .slide__hero-art { opacity: .35; }
  .slide__phone { display: none; }
  .slide::before { background: linear-gradient(0deg, rgba(5, 4, 12, .96) 8%, rgba(5, 4, 12, .55) 55%, rgba(5, 4, 12, .25) 100%); }
  .slide { align-items: end; padding-bottom: 130px; }
}
@media (max-width: 760px) {
  .showcase { min-height: 640px; }
  .showcase__arrow { display: none; }
  .showcase__nav { bottom: 22px; gap: 6px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .showcase__nav::-webkit-scrollbar { display: none; }
  .showcase__tab { flex: 0 0 auto; padding: 10px 12px 12px; }
  .showcase__tab small { display: none; }
  .slide__actions .btn { flex: 1 1 100%; }
  .slide__text { font-size: .98rem; }
  .studio-strip p { flex-direction: column; gap: 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide__video { display: none; }
  .slide__bg:has(video) { background: url(/games/montropia/poster.webp) center / cover; }
}

/* ---------- v5: Montropia card ---------- */
.game-card--montropia { margin-top: clamp(60px, 8vw, 110px); }
.game-card--montropia .game-card__art { min-height: 520px; }
.game-card--montropia .game-card__bg { object-position: 50% 50%; transform: none; }
.game-card--montropia .game-card__art::after { background: linear-gradient(90deg, transparent 60%, rgba(12, 10, 34, .85)); }
.play-badge { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 999px; cursor: pointer;
  color: #fff; font: 600 15px var(--font-body); background: rgba(10, 8, 30, .55); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: transform .5s var(--ease), background .3s; }
.play-badge svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: linear-gradient(135deg, #FFD66B, #FF9A3C); color: #3a1d00; }
.play-badge:hover { transform: scale(1.05); background: rgba(40, 28, 110, .6); }
.tag--soon { color: #FFD66B; background: rgba(255, 200, 60, .1); border-color: rgba(255, 210, 90, .45); }
.tag--soon .dot { background: #FFD66B; box-shadow: 0 0 12px #FFD66B; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-inline-start: 22px; color: var(--muted); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #FFD66B, #19E6FF); }
.feature-list b { color: var(--text); font-weight: 600; }
.shots--two { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; }
@media (max-width: 960px) {
  .game-card--montropia .game-card__art { min-height: 0; aspect-ratio: 16 / 10; }
  .game-card--montropia .game-card__art::after { background: linear-gradient(transparent 60%, rgba(12, 10, 34, .9)); }
}
@media (max-width: 760px) {
  .play-badge span { display: none; }
  .play-badge { padding: 8px; }
}

/* v5.1: arrows sit with the tabs, away from the copy */
.showcase__arrow { top: auto; bottom: 39px; margin-top: 0; }
.showcase__arrow--prev { left: var(--gutter); }
.showcase__arrow--next { right: var(--gutter); }
@media (max-width: 1180px) { .showcase__nav { padding: 0 calc(var(--gutter) + 60px); } }

/* ---------- v6: mobile hero, every slide shows art, centered ---------- */
@media (max-width: 960px) {
  .slide { align-items: end; justify-items: center; padding: 96px var(--gutter) 108px; }
  .slide__content { justify-items: center; text-align: center; margin: 0 auto; gap: 12px; max-width: 520px; }
  .slide__logo { width: min(300px, 78vw); }
  .slide__logo--montropia { width: min(320px, 80vw); }
  .slide__logo--poker { width: min(270px, 70vw); }
  .slide__title { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .slide__line { font-size: 1.25rem; }
  .slide__actions { justify-content: center; width: 100%; }
  /* lab slides: phone mockup centered above the copy */
  .slide__phone { display: block; position: absolute; left: 50%; right: auto; top: 92px; translate: -50% 0;
    width: auto; height: min(44svh, 400px); aspect-ratio: 390 / 844; padding: 6px; border-radius: 26px; }
  .slide.is-active .slide__phone { transform: rotate(0deg); }
  .slide__phone img { border-radius: 21px; }
  .slide--lab::before { background: linear-gradient(0deg, rgba(5, 4, 12, .96) 30%, rgba(5, 4, 12, .35) 70%, rgba(5, 4, 12, .5) 100%); }
  /* Family Business: crew art clearly visible above the copy */
  .slide__hero-art { left: 50%; right: auto; width: min(118vw, 620px); translate: -50% 0; bottom: auto; top: 96px; }
  .slide.is-active .slide__hero-art { opacity: 1; }
  .slide--fb::before { background: linear-gradient(0deg, rgba(5, 4, 12, .97) 34%, rgba(5, 4, 12, .2) 70%, rgba(5, 4, 12, .45) 100%); }
  .slide--fb .slide__hero-art { z-index: -1; }
  .slide--montropia::before { background: linear-gradient(0deg, rgba(5, 4, 12, .96) 22%, rgba(5, 4, 12, .4) 62%, rgba(5, 4, 12, .25) 100%); }
  .slide__bg video { object-position: 50% 50%; }
}
@media (max-width: 760px) {
  .showcase { height: 100svh; min-height: 680px; max-height: none; }
  .slide__text { display: none; }
  .slide--montropia .slide__text, .slide--fb .slide__text { display: block; }
  .showcase__nav { justify-content: flex-start; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .slide--montropia .slide__text, .slide--fb .slide__text { display: none; }
}

/* ---------- v6: legal pages + footer legal column ---------- */
.nav__cta--always { display: inline-flex !important; margin-left: auto; }
.legal-wrap { max-width: 1180px; margin: 0 auto; padding: 130px var(--gutter) 60px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.legal-nav { position: sticky; top: 110px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-nav a:hover { color: var(--text); background: var(--surface-2); }
.legal-nav a[aria-current="page"] { color: var(--text); background: rgba(122, 92, 255, .18); }
.legal-page .legal { max-width: 760px; margin: 0; padding: 0; }
.legal__updated { color: var(--muted); font-size: 14px; margin-top: 0; }
.legal h2 { scroll-margin-top: 110px; }
.legal ul, .legal ol { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal p, .legal li { line-height: 1.75; }

.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: start; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal-title { width: 100%; margin: 0 0 4px; font: 600 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; padding-top: 110px; }
  .legal-nav { position: static; }
  .legal-nav ul { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr; justify-items: center; }
  .footer__legal { justify-content: center; }
}

/* v6: SmashIt art */
.slide__bg--art img { filter: brightness(.7) saturate(1.1); object-position: 50% 60%; }
.slide__logo--smash { width: min(420px, 86%); }
.peek__logo { width: 150px; height: auto; display: block; }
.peek__art--smash { background: url(/games/smashit/bg-beach.webp) center / cover; }
@media (max-width: 960px) { .slide__logo--smash { width: min(300px, 78vw); } }

/* ---------- v6: accessibility ---------- */
.showcase__pause { position: absolute; z-index: 6; top: 100px; right: var(--gutter); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  color: var(--text); font: 600 13px var(--font-body); background: rgba(10, 8, 30, .55); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); }
.showcase__pause:hover { background: rgba(122, 92, 255, .35); }
.showcase__pause .i-play { display: none; }
.showcase__pause[aria-pressed="true"] .i-play { display: block; }
.showcase__pause[aria-pressed="true"] .i-pause { display: none; }
body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation-play-state: paused !important; }
body.motion-paused .cursor-glow { display: none; }
.lab__note { color: var(--muted); }
:focus-visible { outline: 3px solid #5FE6FF; outline-offset: 3px; }
.btn:focus-visible, .showcase__tab:focus-visible, .showcase__arrow:focus-visible, .showcase__pause:focus-visible { outline: 3px solid #5FE6FF; outline-offset: 3px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; }
.legal a, .footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(162, 159, 196, .5); }
@media (max-width: 760px) { .showcase__pause { top: 88px; padding: 8px 12px; } }
@media (forced-colors: active) { .btn, .showcase__tab, .showcase__pause { border: 1px solid ButtonText; } }

/* ---------- v7: characters, one tidy row per game ---------- */
.cast { margin-top: clamp(56px, 7vw, 96px); }
.cast__head { text-align: center; max-width: 620px; margin: 0 auto clamp(24px, 3vw, 40px); }
.cast__head .kicker { margin-bottom: 10px; }
.cast__head h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 700; }
.cast__head p:not(.kicker) { margin: 10px 0 0; color: var(--muted); }
.cast__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.cast__row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; }
.cast__card { position: relative; margin: 0; padding: 18px 16px 20px; border-radius: 24px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 100%, rgba(122, 92, 255, .22), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(160, 150, 255, .14); transition: transform .7s var(--ease), border-color .5s; }
.cast__card:hover { transform: translateY(-6px); border-color: rgba(160, 150, 255, .35); }
.cast__card::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 72px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.cast__card model-viewer { display: block; width: 100%; height: 300px; --poster-color: transparent; background: transparent; cursor: grab; }
.cast__card model-viewer:active { cursor: grabbing; }
.cast__card img { display: block; width: 86%; height: 240px; object-fit: contain; margin: 10px auto 18px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.cast__card--fire img { animation-delay: -1.6s; }
.cast__card--leaf img { animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.cast__card figcaption { position: relative; z-index: 1; display: grid; gap: 2px; }
.cast__card figcaption b { font: 700 1.15rem "Sora", var(--font-body); }
.cast__card figcaption span { color: var(--muted); font-size: 14px; }
.cast--mon .cast__card { background: radial-gradient(120% 80% at 50% 100%, var(--glow, rgba(25, 230, 255, .2)), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); }
.cast__card--water { --glow: rgba(47, 140, 255, .3); }
.cast__card--fire { --glow: rgba(255, 110, 40, .3); }
.cast__card--leaf { --glow: rgba(90, 210, 110, .28); }

.slide__char { position: absolute; z-index: 0; width: min(17vw, 230px); height: auto; pointer-events: none; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .55));
  opacity: 0; transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s; }
.slide__char--left { right: calc(max(calc(var(--gutter) + 40px), calc(50% - 600px)) + min(26vw, 300px) - 40px); bottom: 150px; transform: translate3d(-30px, 0, 0); }
.slide__char--right { right: max(calc(var(--gutter) - 10px), calc(50% - 660px)); bottom: 130px; transform: translate3d(30px, 0, 0); z-index: 1; }
.slide.is-active .slide__char { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .cast__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide__char { display: none; }
}
@media (max-width: 760px) {
  .cast__row, .cast__row--three { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .cast__row::-webkit-scrollbar { display: none; }
  .cast__card { scroll-snap-align: center; }
  .cast__card model-viewer { height: 280px; }
}

/* v7: pause sits in the control row on desktop */
@media (min-width: 761px) { .showcase__pause { top: auto; bottom: 43px; right: calc(var(--gutter) + 62px); } .showcase__nav { padding-inline: calc(var(--gutter) + 160px); } }

/* v7: Family Business uses only the 3D models */
.trio { position: absolute; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.trio__m { flex: 1 1 0; height: 100%; --poster-color: transparent; background: transparent; }
.trio__m--c { flex-grow: 1.25; z-index: 1; }
.trio__m--l, .trio__m--r { margin-inline: -6%; }
.slide__trio { right: max(var(--gutter), calc(50% - 680px)); bottom: 100px; width: min(54vw, 780px); height: min(66vh, 600px); z-index: 0;
  opacity: 0; transform: translate3d(40px, 0, 0); transition: opacity 1.2s var(--ease) .2s, transform 1.2s var(--ease) .2s; }
.slide.is-active .slide__trio { opacity: 1; transform: none; }
.game-card__trio { left: 0; right: 0; bottom: 0; height: 82%; z-index: 1; }
@media (max-width: 960px) {
  .slide__trio { left: 50%; right: auto; translate: -50% 0; top: 96px; bottom: auto; width: min(96vw, 560px); height: min(40svh, 380px); }
  .slide.is-active .slide__trio { opacity: 1; }
  .game-card__trio { height: 88%; }
}

/* ---------- v8: accessibility menu ---------- */
.a11y-btn { position: fixed; z-index: 120; left: 0; top: 50%; translate: 0 -50%; width: 48px; height: 52px; border-radius: 0 14px 14px 0; border-left: 0 !important; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: #1f5fff; border: 2px solid #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.a11y-btn:hover { transform: scale(1.08); }
.a11y-btn:focus-visible { outline: 3px solid #FFD66B; outline-offset: 3px; }
.a11y-panel { position: fixed; z-index: 121; left: 58px; top: 50%; translate: 0 -50%; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; padding: 16px;
  border-radius: 18px; background: #0f0c26; color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 24px 70px rgba(0, 0, 0, .7); font-family: "Inter", system-ui, sans-serif; }
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-panel h2 { font: 700 18px "Sora", "Inter", sans-serif; margin: 0; letter-spacing: 0; }
.a11y-panel h2 span { color: #A9B8FF; font-weight: 600; margin-inline-start: 6px; }
.a11y-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; font-size: 15px; }
.a11y-font-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.a11y-font-row > span:first-child { flex: 1; font-weight: 600; font-size: 14px; }
.a11y-step { min-width: 44px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font: 700 15px "Inter", sans-serif; cursor: pointer; }
.a11y-font-level { min-width: 48px; text-align: center; font-weight: 600; font-size: 14px; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-toggle { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 12px; cursor: pointer; text-align: center;
  color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); font: 600 13px/1.2 "Inter", sans-serif; }
.a11y-toggle:hover { background: rgba(255, 255, 255, .12); }
.a11y-toggle[aria-pressed="true"] { background: #1f5fff; border-color: #fff; }
.a11y-step:focus-visible, .a11y-toggle:focus-visible, .a11y-close:focus-visible, .a11y-reset:focus-visible, .a11y-panel a:focus-visible { outline: 3px solid #FFD66B; outline-offset: 2px; }
.a11y-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.a11y-reset { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: 600 13px "Inter", sans-serif; cursor: pointer; }
.a11y-panel a { color: #A9C8FF; font-size: 13px; text-decoration: underline; }

/* adjustments */
html.a11y-font body { font-size: calc(16px * var(--a11y-scale, 1)); }
html.a11y-font p, html.a11y-font li, html.a11y-font figcaption, html.a11y-font .btn, html.a11y-font .slide__text, html.a11y-font .legal-nav a, html.a11y-font .footer a, html.a11y-font .nav__links a { font-size: calc(1em * var(--a11y-scale, 1)) !important; }
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3 { font-size: calc(1em * var(--a11y-scale, 1)); }
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-btn):not(.a11y-btn *) { color: #fff !important; text-shadow: none !important; }
html.a11y-contrast .grad { -webkit-text-fill-color: #FFE24A !important; background: none !important; }
html.a11y-contrast a:not(.btn) { color: #FFE24A !important; text-decoration: underline !important; }
html.a11y-contrast .btn, html.a11y-contrast .showcase__tab, html.a11y-contrast .tile, html.a11y-contrast .cast__card, html.a11y-contrast .game-card, html.a11y-contrast .peek, html.a11y-contrast .nav { background: #000 !important; border: 2px solid #fff !important; }
html.a11y-contrast .slide::before { background: rgba(0, 0, 0, .78) !important; }
html.a11y-contrast .aurora, html.a11y-contrast .cursor-glow, html.a11y-contrast body::after { display: none !important; }
html.a11y-grayscale body > *:not(.a11y-panel):not(.a11y-btn) { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #FFE24A; outline-offset: 2px; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable .btn { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em !important; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing figcaption { line-height: 2 !important; letter-spacing: .06em !important; word-spacing: .12em !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .cursor-glow, html.a11y-motion .aurora { display: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 10.5-6 1.2 3.6 7-2.6 1.3-3.5-7L5 20z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 6 2, auto !important; }
html.a11y-focus *:focus { outline: 4px solid #FFE24A !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #000 !important; }

@media (max-width: 760px) { .a11y-btn { width: 42px; height: 48px; } .a11y-panel { left: 50%; translate: -50% -50%; } }
@media print { .a11y-btn, .a11y-panel { display: none; } }
