/* Brawzo — corporate site */

:root {
  --bg: #06020e;
  --bg-2: #0c0520;
  --panel: rgba(28, 12, 58, 0.55);
  --panel-solid: #140a2c;
  --line: rgba(164, 120, 255, 0.16);
  --line-strong: rgba(164, 120, 255, 0.34);
  --text: #f4efff;
  --text-2: rgba(232, 224, 255, 0.72);
  --text-3: rgba(232, 224, 255, 0.5);
  --mint: #44ffd7;
  --mint-2: #00d18f;
  --violet: #a45cff;
  --violet-2: #6c2bd9;
  --pink: #ff4fa3;
  --gold: #fec92d;
  --gold-2: #fba609;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-game: "Titan One", "Space Grotesk", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 22px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--mint); color: #00241f; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--mint); color: #00241f; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ── Global backdrop ─────────────────────────────────── */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(108, 43, 217, 0.32), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(68, 255, 215, 0.08), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(255, 79, 163, 0.1), transparent 60%),
    var(--bg);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(164, 120, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 120, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5vw, 70px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }

.grad {
  background: linear-gradient(100deg, var(--mint) 0%, #9fd8ff 35%, var(--violet) 70%, var(--pink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-pan 8s ease-in-out infinite;
}
@keyframes grad-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint));
}

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head p { margin-top: 18px; color: var(--text-2); font-size: 18px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .kicker::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}

section { position: relative; padding: 108px 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  color: #00241f;
  background: linear-gradient(180deg, var(--mint), var(--mint-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 30px -8px rgba(68, 255, 215, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 16px 40px -8px rgba(68, 255, 215, 0.75); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 2, 14, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.16em;
}
.brand__word span { color: var(--mint); }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-size: 15px; color: var(--text-2); text-decoration: none;
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--violet));
}
.nav__cta { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px var(--line-strong) inset;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 96px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; margin-bottom: 28px; border-radius: 100px;
  background: rgba(68, 255, 215, 0.06); box-shadow: 0 0 0 1px rgba(68, 255, 215, 0.25) inset;
  font-family: var(--font-mono); font-size: 12px; color: var(--mint); letter-spacing: 0.06em;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none;
  box-shadow: 0 0 0 0 rgba(68, 255, 215, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(68, 255, 215, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(68, 255, 215, 0); }
  100% { box-shadow: 0 0 0 0 rgba(68, 255, 215, 0); }
}
.hero h1 { margin-bottom: 28px; }
.hero__lede { font-size: 19px; color: var(--text-2); max-width: 560px; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.06em;
}
.hero__meta b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--text); letter-spacing: 0; font-weight: 600; margin-bottom: 2px; }

/* Hero visual — orbit */
.hero__visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; justify-self: end; }
.orbit {
  position: absolute; inset: 0; border-radius: 50%;
  transform-style: preserve-3d;
}
.orbit__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.orbit__ring--2 { inset: 13%; border-style: dashed; border-color: rgba(68, 255, 215, 0.22); animation: spin 60s linear infinite; }
.orbit__ring--3 { inset: 28%; border-color: rgba(255, 79, 163, 0.2); }
.orbit__ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 14px var(--violet);
}
.orbit__ring--2::before { background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.orbit__ring--3::before { background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.orbit__ring--1 { animation: spin 40s linear infinite; }
.orbit__ring--3 { animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit__core {
  position: absolute; inset: 36%; border-radius: 32%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #3a1a78, #12062a 70%);
  box-shadow: 0 0 0 1px var(--line-strong) inset, 0 0 80px rgba(164, 92, 255, 0.45), 0 0 160px rgba(68, 255, 215, 0.15);
  animation: core-float 7s ease-in-out infinite;
}
.orbit__core svg { width: 58%; height: 58%; }
@keyframes core-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.orbit__sat {
  position: absolute; width: 27%; aspect-ratio: 1; left: 50%; top: 50%;
  margin: -13.5% 0 0 -13.5%;
  animation: sat-orbit 24s linear infinite;
  animation-delay: var(--delay, 0s);
}
.orbit__sat-inner {
  width: 100%; height: 100%; border-radius: 26%;
  display: grid; place-items: center;
  background: rgba(20, 10, 44, 0.72);
  box-shadow: 0 0 0 1px var(--line-strong) inset, 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: sat-counter 24s linear infinite;
  animation-delay: var(--delay, 0s);
}
.orbit__sat img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.orbit__sat .sol-logo { width: 88%; height: 88%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
@keyframes sat-orbit {
  from { transform: rotate(0deg) translateX(172%) rotate(0deg); }
  to { transform: rotate(360deg) translateX(172%) rotate(0deg); }
}
@keyframes sat-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}



.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--text-3);
  text-decoration: none;
}
.scroll-cue span {
  width: 22px; height: 34px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong) inset; position: relative;
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--mint); animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(-3px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ── Games ───────────────────────────────────────────── */
.games__list { display: grid; gap: 40px; }
.game {
  --accent: var(--pink);
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 30px; overflow: hidden;
  background: linear-gradient(140deg, rgba(28, 12, 58, 0.75), rgba(12, 5, 32, 0.75));
  box-shadow: 0 0 0 1px var(--line) inset;
  isolation: isolate;
}
.game::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.game:hover::before { opacity: 1; }
.game--bgm { --accent: #ff4fd8; }
.game--ludo { --accent: #ffb020; }
.game--sol { --accent: var(--mint); }
.game--reverse .game__info { order: 2; }
.game--reverse .game__stage { order: 1; }

.game__info { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.game__head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.game__logo { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); flex: none; }
.game__index { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.14em; }
.game__title { font-family: var(--font-game); font-weight: 400; font-size: clamp(34px, 3.6vw, 46px); letter-spacing: -0.01em; line-height: 1.05; }
.game__desc { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px var(--line-strong) inset;
}
.chip--live { color: #00241f; background: var(--mint); box-shadow: none; font-weight: 600; }
.chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #00241f; animation: blink 1.4s steps(2) infinite; }
.chip--new { color: #2a1800; background: var(--gold); box-shadow: none; font-weight: 600; }
@keyframes blink { 50% { opacity: 0.2; } }


.game__stage {
  position: relative; min-height: 460px; display: grid; place-items: center; padding: 40px;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 28px 28px;
  border-left: 1px solid var(--line);
  perspective: 1200px;
}
.game--reverse .game__stage { border-left: 0; border-right: 1px solid var(--line); }
.stage-hud {
  position: absolute; left: 20px; right: 20px; top: 18px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em;
  z-index: 3;
}
.stage-hud b { color: var(--mint); font-weight: 500; }
.stage-hud--bottom { top: auto; bottom: 18px; }

.tilt { transition: transform 0.6s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* Backgammon board */
.bgm-board { position: relative; width: 100%; max-width: 520px; aspect-ratio: 3216 / 2220; }
.bgm-board > img { width: 100%; height: 100%; border-radius: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.bgm-checker {
  position: absolute; width: 6.4%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: left 0.7s var(--ease), top 0.7s var(--ease);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}
.bgm-checker.is-moving { z-index: 5; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)) drop-shadow(0 0 10px rgba(255, 79, 216, 0.8)); }
.bgm-checker img { width: 100%; height: 100%; }
.dice {
  position: absolute; left: 74%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 8px; z-index: 4;
}
.die {
  width: 34px; height: 34px; border-radius: 9px; background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 -3px 0 rgba(0,0,0,.12);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 5px;
}
.die i { width: 6px; height: 6px; border-radius: 50%; background: #2a1050; place-self: center; opacity: 0; }
.die.roll { animation: die-roll 0.6s var(--ease); }
@keyframes die-roll {
  0% { transform: rotate(0) scale(1); }
  40% { transform: rotate(200deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Ludo board */
.ludo-board { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; }
.ludo-board > img { width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.ludo-token {
  position: absolute; width: 6.6%; aspect-ratio: 1; transform: translate(-50%, -60%);
  transition: left 0.28s var(--ease), top 0.28s var(--ease);
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.4));
}
.ludo-token.hop { animation: hop 0.28s var(--ease); }
@keyframes hop {
  50% { transform: translate(-50%, -110%); }
}
.ludo-token img { width: 100%; height: 100%; }

/* Solitaire game screen (Figma 6288:1510), drawn at design size 402 × 874 and scaled to fit. */
.sg-device {
  --sg-w: 260px;
  position: relative; width: var(--sg-w); aspect-ratio: 402 / 874; flex: none;
  border-radius: 20px;
  box-shadow: 0 0 0 6px #1a0b38, 0 0 0 7px rgba(255,255,255,.12), 0 30px 70px rgba(0,0,0,.6);
}
.sg-screen {
  position: absolute; left: 0; top: 0; width: 402px; height: 874px;
  border-radius: 20px; overflow: hidden;
  transform: scale(var(--sg-scale, 0.6468)); transform-origin: 0 0;
  font-family: "Titan One", sans-serif; letter-spacing: -0.3px; line-height: 1.1;
  background: #0b2a3a;
}
.sg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.sg-vignette {
  position: absolute; inset: 0; border-radius: 20px;
  background:
    radial-gradient(312.5px 679.42px at 201px 437px, rgba(7, 2, 40, 0) 67.129%, rgba(7, 2, 40, 1) 100%),
    linear-gradient(180deg, rgba(97, 0, 74, 0.2) 0%, rgba(0, 0, 0, 0) 35.641%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(97, 0, 74, 0.2) 100%);
}

.sg-btn {
  position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 16px; white-space: nowrap;
}
.sg-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.sg-btn--icon, .sg-btn--undo { background: linear-gradient(180deg, #f7d5fe, #c854e3); border-radius: 46px; }
.sg-btn--icon::after, .sg-btn--undo::after { box-shadow: inset 0 0 4px 2px #fff, inset 0 0 0 2px #000; }
.sg-btn img { position: relative; display: block; }
.sg-settings { right: 20px; top: 60px; padding: 8px; }

.sg-stats { position: absolute; left: 12px; top: 111px; width: 378px; display: flex; justify-content: space-between; }
.sg-pill {
  position: relative; width: 104px; height: 48px; padding: 4px; border-radius: 50px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #ecaafb, #ae30cb);
  box-shadow: inset 0 0 4px 0 #fff;
  filter: drop-shadow(0 -1px 1px rgba(46, 46, 110, 0.2));
}
.sg-pill__well {
  flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 24px;
  background: #2d0054; box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.85);
  color: #fff; font-size: 16px;
}
.sg-pill__well--time { font-family: "Baloo 2", sans-serif; font-weight: 600; letter-spacing: -0.2px; line-height: 1.2; }
.sg-pill__label {
  position: absolute; left: 50%; bottom: 3.5px; transform: translate(-50%, 50%);
  color: #ffea00; font-size: 16px; line-height: 1;
}

.sg-board {
  position: absolute; left: 12px; top: 200px; padding: 5px; border-radius: 10px;
  background: linear-gradient(180deg, #ecaafb, #ae30cb);
  box-shadow: inset 0 0 2px 0 #fff, inset 0 0 2px 0 #fff;
  filter: drop-shadow(0 3px 4.5px rgba(0, 45, 74, 0.4)) drop-shadow(0 3px 1px rgba(0, 45, 74, 0.4));
}
.sg-board__well {
  position: relative; display: flex; gap: 4px; padding: 6px; border-radius: 8px; overflow: hidden;
  background: #2d0054;
}
.sg-board__well::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(29, 0, 64, 0.2), inset 0 0 0 1px #ae30cb, inset 0 0 0 1px #fff;
}
.sg-slot {
  position: relative; width: 46.984px; height: 64px; border-radius: 4px;
  background: rgba(174, 135, 222, 0.2); border: 0.889px solid rgba(174, 135, 222, 0.4);
  display: grid; place-items: center;
}
.sg-slot span { font-size: 37.33px; line-height: 1; letter-spacing: -2px; color: rgba(174, 135, 222, 0.4); transform: translate(-0.38px, 2px); }
.sg-lights { position: absolute; display: block; }
.sg-lights img { position: absolute; display: block; max-width: none; }
.sg-lights--left, .sg-lights--right { top: 0; width: 5px; height: 86px; }
.sg-lights--left { left: 0; }
.sg-lights--right { right: -0.06px; }
.sg-lights--left img, .sg-lights--right img { top: 0; left: -3px; width: 11px; height: 86px; }
.sg-lights--top, .sg-lights--bottom { left: 0; width: 222px; height: 5px; }
.sg-lights--top { top: 0; }
.sg-lights--bottom { bottom: 0; }
.sg-lights--top > span, .sg-lights--bottom > span {
  position: absolute; left: 108.5px; top: -108.5px; width: 5px; height: 222px; transform: rotate(-90deg);
}
.sg-lights--top img, .sg-lights--bottom img { top: 0; left: -3px; width: 11px; height: 222px; }

.sg-stock {
  position: absolute; left: 337.143px; top: 207px; width: 52.857px; height: 72px;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  box-shadow: 0 3px 9px 0 rgba(0, 45, 74, 0.4), 0 3px 2px 0 rgba(89, 4, 108, 0.4);
}
.sg-stock img { width: 52.857px; height: 72px; flex: none; margin-bottom: -71px; position: relative; }
.sg-stock img:last-child { margin-bottom: 0; }
.sg-stock img:nth-child(1) { z-index: 6; } .sg-stock img:nth-child(2) { z-index: 5; } .sg-stock img:nth-child(3) { z-index: 4; }
.sg-stock img:nth-child(4) { z-index: 3; } .sg-stock img:nth-child(5) { z-index: 2; } .sg-stock img:nth-child(6) { z-index: 1; }

.sg-cards { position: absolute; inset: 0; filter: drop-shadow(0 3px 9px rgba(0, 45, 74, 0.4)) drop-shadow(0 3px 2px #002d4a); }
.sg-card {
  position: absolute; left: 0; top: 0; width: 52.857px; height: 72px;
  transform-origin: 0 0; perspective: 600px;
  transition: left 0.6s var(--ease), top 0.6s var(--ease), transform 0.6s var(--ease);
}
.sg-card.is-moving { z-index: 100 !important; }
.sg-card__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.5s var(--ease); }
.sg-card.is-up .sg-card__inner { transform: rotateY(180deg); }
.sg-card__back, .sg-card__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sg-card__back img { position: absolute; top: -3px; left: -2px; width: 56.857px; height: 76px; max-width: none; display: block; }
.sg-card__face {
  transform: rotateY(180deg); border-radius: 4px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(0deg, #7d81ff 0%, #dcfff8 100%);
  box-shadow: inset 0 0 3px 0 #fff;
  filter: drop-shadow(0 -1px 1px rgba(46, 46, 110, 0.2));
  color: #5b04a8;
}
.sg-card--red .sg-card__face { color: #d70820; }
.sg-card__shine { position: absolute; left: calc(50% + 0.07px); top: -61px; width: 175px; height: 101px; transform: translateX(-50%); display: block; max-width: none; }
.sg-card__big { position: absolute; left: 26px; top: calc(50% + 4px); transform: translate(-50%, -42%); font-size: 42px; line-height: 1; letter-spacing: -2px; white-space: nowrap; }
.sg-card__small { position: absolute; left: 2px; top: calc(50% - 26.5px); transform: translateY(-42%); font-size: 16px; line-height: 1; letter-spacing: -0.3px; white-space: nowrap; }
.sg-card__suit { position: absolute; right: 2.04px; top: 3px; width: 11.817px; height: 12px; display: block; }

.sg-actions {
  position: absolute; left: 50%; top: 782px; transform: translateX(-50%);
  display: flex; gap: 16px; align-items: center;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.5));
}
.sg-actions .sg-btn { position: relative; }
.sg-btn--submit {
  height: 52px; padding: 0 32px; border-radius: 40px; color: #00373a;
  background: linear-gradient(0deg, #00d18f, #96ffde);
}
.sg-btn--submit::after { box-shadow: inset 0 0 0 2px #000, inset 0 0 3px 4px #fff; }
.sg-btn--undo { height: 40px; padding: 0 24px 0 20px; gap: 4px; color: #1e0024; }
.sg-undo-icon { position: relative; width: 24px; height: 24px; flex: none; }
.sg-undo-icon img { position: absolute; left: 4.204px; top: 1.989px; width: 15.798px; height: 20.002px; max-width: none; }


/* ── Platform (Skill Masters) ────────────────────────── */
.platform__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.device {
  position: relative; width: min(320px, 80%); margin: 0 auto; aspect-ratio: 402 / 874;
  border-radius: 44px; padding: 10px; box-sizing: content-box;
  background: linear-gradient(160deg, #2a1656, #0d0620);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 50px 100px rgba(0,0,0,.6), 0 0 120px rgba(164, 92, 255, 0.35);
  animation: device-float 8s ease-in-out infinite;
}

/* Skill Masters lobby — mirrors apps/client LobbyPage + AppShell chrome at the 402 × 874 design size. */
.lb-screen {
  position: absolute; left: 10px; top: 10px; width: 402px; height: 874px;
  border-radius: calc(36px / var(--lb-scale, 0.796)); overflow: hidden; isolation: isolate;
  transform: scale(var(--lb-scale, 0.796)); transform-origin: 0 0;
  background: #1d0040; font-family: "Titan One", sans-serif;
}
.lb-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-header {
  position: absolute; left: 20.1px; width: 361.8px; top: 0; height: 48px; padding-top: 16px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; z-index: 3;
}
.lb-avatar {
  width: 48px; height: 48px; padding: 6px; border-radius: 999px; box-sizing: border-box; flex: none;
  background: linear-gradient(180deg, #cc8cda 0%, #9038a3 100%);
  box-shadow: 0 4px 11px 0 rgba(0, 0, 0, 0.75);
}
.lb-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.lb-menu {
  position: relative; width: 40px; height: 40px; box-sizing: border-box; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 46px; border: 2px solid #000;
  background: linear-gradient(180deg, #ecaafb 0%, #ae30cb 100%);
  box-shadow: inset 0 0 2px 0 #fff;
}
.lb-menu svg { display: block; }

.lb-content {
  position: absolute; inset: 0; padding: 80px 22px 0;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.lb-logo-row { display: flex; gap: 16px; align-items: center; justify-content: center; }
.lb-logo-row img { flex: none; display: block; }
.lb-logo { object-fit: contain; }

.lb-card { position: relative; width: 358px; height: 326px; flex: none; }
.lb-card__frame {
  position: absolute; left: 0; right: 0; top: 0; height: 286px; box-sizing: border-box;
  border-radius: 30px; border: 2px solid; overflow: hidden;
}
.lb-card__frame::before, .lb-card__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lb-card__frame::before {
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 358 286' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='0.4'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(22.145 0 0 18.103 179 143)'><stop stop-color='rgba(255,255,255,1)' offset='0.50481'/><stop stop-color='rgba(255,255,255,0)' offset='0.57692'/><stop stop-color='rgba(255,255,255,0)' offset='0.69712'/><stop stop-color='rgba(255,255,255,1)' offset='0.8'/><stop stop-color='rgba(255,255,255,0)' offset='0.87981'/></radialGradient></defs></svg>");
}
.lb-card--backgammon .lb-card__frame {
  border-color: #ffbcf3; background: linear-gradient(0deg, #30001d 0%, #470047 100%);
  box-shadow: 0 0 8px 0 #ff007d, 0 0 8px 0 #fff, 0 8px 0 0 #74004c;
}
.lb-card--backgammon .lb-card__frame::after { box-shadow: inset 0 0 9px 2px #ff34dd, inset 0 0 3px 4px #832d0e; }
.lb-card--ludo .lb-card__frame {
  border-color: #fff9bc; background: linear-gradient(180deg, #751200 0%, #4e0000 100%);
  box-shadow: 0 0 8px 0 #ff8000, 0 0 8px 0 #fff, 0 8px 0 0 #c53e00;
}
.lb-card--ludo .lb-card__frame::after { box-shadow: inset 0 0 9px 2px #ffc234, inset 0 0 3px 4px #200e83; }
.lb-card__logo { position: absolute; left: 50%; top: 10px; width: 222px; height: 222px; transform: translateX(-50%); object-fit: contain; }
.lb-card__lights { position: absolute; top: 210px; width: 6px; height: 34px; overflow: hidden; }
.lb-card__lights--l { left: 8px; }
.lb-card__lights--r { right: 8px; }
.lb-card__lights img { position: absolute; left: -11px; top: -11px; width: 28px; height: 56px; max-width: none; }
.lb-card__dots { position: absolute; top: 126px; display: flex; flex-direction: column; gap: 8px; }
.lb-card__dots--l { left: 8px; }
.lb-card__dots--r { right: 8px; }
.lb-card__dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; filter: blur(0.5px); }
.lb-card--backgammon .lb-card__dots i { box-shadow: 0 0 4px 0 #f0f, 0 0 11px 0 #ff00d9; }
.lb-card--ludo .lb-card__dots i { box-shadow: 0 0 4px 0 #0df, 0 0 11px 0 #00ffe5; }

.lb-play { position: absolute; left: 50%; top: 284px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; }
.lb-play__knob { position: absolute; top: 50%; width: 33.941px; height: 33.941px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; }
.lb-play__knob::before {
  content: ""; width: 24px; height: 24px; border-radius: 3px; transform: rotate(45deg);
  background: linear-gradient(180deg, #cc8cda 0%, #9038a3 100%);
  box-shadow: 0 4px 1px 0 rgba(0, 0, 0, 0.25), inset 0 0 2px 1px #fff;
}
.lb-play__knob--l { left: -9.94px; }
.lb-play__knob--r { right: -10px; }
.lb-play__outer {
  position: relative; display: flex; padding: 8px; border-radius: 46px; overflow: hidden;
  background: linear-gradient(180deg, #cc8cda 0%, #9038a3 100%);
  box-shadow: 0 4px 1px 0 rgba(0, 0, 0, 0.25);
}
.lb-play__outer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 2px 1px #fff; pointer-events: none; }
.lb-play__inner {
  position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-width: 140px; height: 55px; padding: 16px 32px; border-radius: 50px; border: 1px solid #000;
  background: linear-gradient(0deg, #00d18f 0%, #44ffd7 100%);
  box-shadow: 0 0 8px 0 #fff, 0 0 0 2px #1d0040 inset, 0 0 3px 4px #fff inset, 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.lb-play__inner::before {
  content: ""; position: absolute; inset: 0; border-radius: 50px; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, #24004d 0px, #24004d 1.8px, transparent 1.8px, transparent 6.84px);
  background-size: 34.8px 6.84px; opacity: 0.4; mix-blend-mode: overlay;
}
.lb-play__label {
  position: relative; font-size: 32px; line-height: 32.6px; color: #fff; white-space: nowrap;
  -webkit-text-stroke: 3px #1d0040; paint-order: stroke fill;
}

.lb-nav {
  position: absolute; left: 20.1px; width: 361.8px; bottom: 16px; height: 104px; z-index: 3;
  border-radius: 9999px; overflow: hidden;
  box-shadow: 0 0 10.5px rgba(3, 0, 16, 0.75), 0 10px 8px rgba(3, 0, 16, 0.75);
}
.lb-nav__bar { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.lb-nav__row { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.lb-nav__tab { position: relative; width: 72px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; }
.lb-nav__icon { position: relative; width: 56px; height: 56px; object-fit: contain; }
.lb-nav__icon--shop { width: 72px; height: 72px; }
.lb-nav__glow { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); }
.lb-nav__label {
  position: absolute; left: 50%; top: 61.5px; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 16px; line-height: 12px; letter-spacing: -0.5px; color: #ffea00;
  -webkit-text-stroke: 2px #1d0040; paint-order: stroke fill;
  text-shadow: -1px -1px 0 #1d0040, 1px -1px 0 #1d0040, -1px 1px 0 #1d0040, 1px 1px 0 #1d0040;
}
.device::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 20px; margin-left: -15%;
  border-radius: 20px; background: #05010c; z-index: 2;
}
@keyframes device-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
.platform__visual { position: relative; }
.float-tag {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(12, 5, 32, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line-strong) inset, 0 20px 40px rgba(0,0,0,.45);
  font-family: var(--font-mono); font-size: 12px; white-space: nowrap;
  animation: tag-float 6s ease-in-out infinite;
}
.float-tag b { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); }
.float-tag small { display: block; color: var(--text-3); font-size: 11px; }
.float-tag__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(68,255,215,.12); color: var(--mint); }
.float-tag__icon svg { width: 16px; height: 16px; }
.float-tag--1 { top: 7%; left: -6%; }
.float-tag--2 { top: 56%; right: -6%; animation-delay: -2s; }
.float-tag--2 .float-tag__icon { background: rgba(164,92,255,.16); color: var(--violet); }
.float-tag--3 { bottom: 24%; left: -6%; animation-delay: -4s; }
.float-tag--3 .float-tag__icon { background: rgba(255,79,163,.14); color: var(--pink); }
@keyframes tag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.platform__logo { height: 64px; width: auto; margin-bottom: 22px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.feature {
  padding: 20px; border-radius: 16px;
  background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset;
  transition: box-shadow 0.3s, transform 0.4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.feature__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(68,255,215,.1); color: var(--mint); }
.feature__icon svg { width: 18px; height: 18px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ── Contact ─────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden; border-radius: 34px; padding: 88px 56px; text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(68,255,215,.18), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgba(255,79,163,.18), transparent 70%),
    linear-gradient(160deg, #1d0a44, #0c0420);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(164, 120, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 120, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  animation: grid-move 12s linear infinite;
}
@keyframes grid-move { to { background-position: 40px 40px; } }
.cta h2 { max-width: 760px; margin: 0 auto 20px; }
.cta p { color: var(--text-2); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta__mail { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); margin-top: 22px; }
.cta__mail a { color: var(--mint); text-decoration: none; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { padding: 72px 0 48px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer__about p { color: var(--text-3); font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-2); text-decoration: none; font-size: 15px; padding: 4px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--mint); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; }

/* ── Reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 460px; margin-top: 24px; }
  .platform__grid { grid-template-columns: 1fr; gap: 56px; }
  .platform__visual { order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: block; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 76px; left: 16px; right: 16px; padding: 12px;
    border-radius: 18px; background: rgba(10, 4, 26, 0.96); backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px var(--line-strong) inset, 0 30px 60px rgba(0,0,0,.5);
  }
  .nav__links.is-open a { padding: 14px 16px; font-size: 17px; }
  .nav__links.is-open a.is-active::after { display: none; }
  .site-header.menu-open { background: rgba(6, 2, 14, 0.92); }

  .game, .game--reverse { grid-template-columns: 1fr; }
  .game--reverse .game__info { order: 1; }
  .game--reverse .game__stage { order: 2; }
  .game__stage, .game--reverse .game__stage { border: 0; border-top: 1px solid var(--line); min-height: 0; padding: 64px 24px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  section { padding: 88px 0; }
  .hero { padding: 116px 0 88px; }
  .hero__lede { font-size: 17px; }
  .hero__meta { gap: 20px; }
  .hero__visual { max-width: 340px; }
  .scroll-cue { display: none; }
  .sec-head p { font-size: 16px; }
  .game__info { padding: 36px 24px; }
  .game__logo { width: 64px; height: 64px; }
  .feature-list { grid-template-columns: 1fr; }
  .float-tag { font-size: 11px; padding: 8px 10px; }
  .float-tag { display: none; }
  .cta { padding: 64px 22px; border-radius: 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .die { width: 26px; height: 26px; padding: 4px; border-radius: 7px; }
  .die i { width: 4px; height: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
