/* site.css — helloaadit
   Family DNA (Fraunces display, dark atmosphere, mono eyebrows, reveal-on-scroll)
   with Aadit's own signature: midnight indigo + sunshine + comet cyan, Fredoka body. */

:root {
  --bg: #070817;
  --bg-2: #0c0e24;
  --surface: #11143a;
  --surface-2: #171b4a;
  --ink: #f5f3ff;
  --muted: #b3b6d9;
  --faint: #7074a3;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --sun: #ffc94a;
  --sun-soft: rgba(255, 201, 74, .14);
  --comet: #58e1ff;
  --nebula: #b18cff;
  --rocket: #ff6b5b;
  --leaf: #5fe39a;
  --r: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Fraunces", Georgia, serif;
  --body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--comet); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--sun); color: var(--bg); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- atmosphere */
#sky { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; pointer-events: none; }
.glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; top: -35vh; left: 50%; transform: translateX(-50%);
  width: 130vw; height: 95vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(177, 140, 255, .18), transparent 70%);
}
.glow::after {
  content: ""; position: absolute; bottom: -25vh; right: -15vw; width: 70vw; height: 70vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(88, 225, 255, .08), transparent 70%);
}

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(18px, 4.5vw, 40px); width: 100%; }
section { position: relative; }
.band { padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sun); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }

.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.02em;
  margin-top: 14px; max-width: 18ch;
}
.h2 em { font-style: italic; font-weight: 500; color: var(--sun); }
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 56ch; margin-top: 16px; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 23, .72); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.monogram {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--bg);
  background: linear-gradient(135deg, var(--sun), #ff9f43);
  box-shadow: 0 6px 20px -6px rgba(255, 201, 74, .6);
  transition: transform .5s var(--bounce);
}
.brand:hover .monogram { transform: rotate(-12deg) scale(1.08); }
.brand b { display: block; font-weight: 600; font-size: 17px; line-height: 1.1; }
.brand small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.links { display: flex; align-items: center; gap: 4px; }
.links a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15.5px;
  transition: color .2s, background .2s;
}
.links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.links .nav-cta { background: var(--sun); color: var(--bg); font-weight: 600; margin-left: 6px; }
.links .nav-cta:hover { background: #ffd66e; color: var(--bg); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-strong); font-size: 22px; }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: 120px 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.hero-meta b { color: var(--comet); font-weight: 400; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(56px, 9.5vw, 128px); line-height: .95; letter-spacing: -.035em;
  margin-top: 22px;
}
.hero h1 em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(100deg, var(--sun) 10%, #ff9f43 45%, var(--rocket) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.6s ease-in-out 1s infinite; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-10deg); }
}
.hero-sub { color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); max-width: 44ch; margin-top: 24px; }
.hero-sub b { color: var(--ink); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16.5px; transition: transform .35s var(--bounce), box-shadow .35s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke-width: 2.2; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--sun); color: var(--bg); box-shadow: 0 12px 30px -12px rgba(255, 201, 74, .7); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(255, 201, 74, .85); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--comet); color: var(--comet); }

/* level bar */
.level { margin-top: 38px; max-width: 420px; }
.level-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.level-top b { color: var(--leaf); font-weight: 400; }
.level-bar { margin-top: 8px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; border: 1px solid var(--line); }
.level-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--comet));
  transition: width 1.6s var(--ease) .6s;
  box-shadow: 0 0 16px rgba(95, 227, 154, .6);
}

/* planet */
.planet-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.planet {
  position: absolute; inset: 22%; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 18%),
    radial-gradient(circle at 70% 75%, rgba(40, 10, 90, .55), transparent 55%),
    linear-gradient(145deg, #ffd36b 0%, #ff9f43 38%, #ff6b5b 70%, #b14bd6 100%);
  box-shadow: 0 0 90px -10px rgba(255, 159, 67, .55), inset -24px -30px 60px rgba(40, 10, 90, .45);
  display: grid; place-items: center;
  animation: bob 6s ease-in-out infinite;
}
.planet::after { /* craters */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 62% 34%, rgba(120, 40, 60, .25) 0 5%, transparent 5.5%),
    radial-gradient(circle at 40% 66%, rgba(120, 40, 60, .22) 0 7%, transparent 7.5%),
    radial-gradient(circle at 72% 58%, rgba(120, 40, 60, .18) 0 3.5%, transparent 4%);
}
.planet span {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 700; font-style: italic; color: rgba(40, 10, 60, .78);
  font-size: clamp(56px, 8vw, 96px); letter-spacing: -.04em;
}
.ring {
  position: absolute; inset: 40% 2%; border-radius: 50%;
  border: 3px solid rgba(88, 225, 255, .55); transform: rotate(-16deg);
  box-shadow: 0 0 24px rgba(88, 225, 255, .35);
  pointer-events: none;
}
.ring.back { z-index: 0; clip-path: inset(0 0 50% 0); }
.ring.front { z-index: 2; clip-path: inset(50% 0 0 0); }
.orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin 26s linear infinite; }
.orbit.o2 { inset: -2%; animation-duration: 40s; animation-direction: reverse; }
.moon {
  position: absolute; top: -22px; left: 50%; margin-left: -22px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8);
  animation: spin 26s linear infinite reverse;
}
.o2 .moon { animation-duration: 40s; animation-direction: normal; }
.orbit .moon:nth-child(2) { top: auto; bottom: -22px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-12px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint i { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--sun), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* photo planet */
.planet.photo { background: #0b3b4a; padding: 0; overflow: hidden; border: 5px solid transparent;
  background-image: linear-gradient(#0b3b4a, #0b3b4a), linear-gradient(145deg, #ffd36b, #ff9f43 40%, #ff6b5b 70%, #b14bd6);
  background-origin: border-box; background-clip: padding-box, border-box; }
.planet.photo::after { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 35%), radial-gradient(circle at 70% 80%, rgba(40,10,90,.35), transparent 55%); }
.planet.photo picture, .planet.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------------------------------------------------------------- adventures wall */
.wall { columns: 3 280px; column-gap: 22px; }
.snap {
  break-inside: avoid; display: block; width: 100%; margin: 0 0 26px; padding: 12px 12px 16px; text-align: left;
  background: #fbf8f1; color: #1d1b33; border-radius: 6px; cursor: zoom-in;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.9), 0 2px 0 rgba(0,0,0,.2);
  transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--bounce), box-shadow .3s;
  position: relative;
}
.snap::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--c, var(--sun)) 55%, transparent); border-radius: 2px; opacity: .85;
}
.snap:hover, .snap:focus-visible { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 34px 60px -24px rgba(0,0,0,.95); z-index: 2; }
.snap img { width: 100%; height: auto; border-radius: 2px; background: #ddd; }
.snap figcaption { margin-top: 12px; font-weight: 500; font-size: 17px; line-height: 1.3; }
html.js .snap.reveal { transform: translateY(26px) rotate(var(--tilt, 0deg)); }
html.js .snap.reveal.in { transform: rotate(var(--tilt, 0deg)); }
html.js .snap.reveal.in:hover { transform: rotate(0) translateY(-6px) scale(1.02); }

.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; color: var(--ink); }
.lightbox::backdrop { background: rgba(4, 5, 16, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox figure { background: #fbf8f1; padding: 12px 12px 18px; border-radius: 8px; }
.lightbox img { max-width: 100%; max-height: calc(92vh - 80px); width: auto; margin: 0 auto; border-radius: 3px; }
.lightbox figcaption { color: #1d1b33; font-weight: 500; font-size: 18px; margin-top: 10px; text-align: center; }
.lb-close, .lb-nav {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; line-height: 1;
  background: rgba(255,255,255,.1); border: 1px solid var(--line-strong); color: #fff; transition: background .2s, transform .3s var(--bounce);
}
.lb-close:hover, .lb-nav:hover { background: var(--sun); color: var(--bg); transform: scale(1.08); }
.lb-close { top: 18px; right: 18px; }
.lb-nav { top: 50%; margin-top: -26px; }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 18px; margin: 0; } }

/* ---------------------------------------------------------------- about / player card */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.card-stage { perspective: 1100px; justify-self: center; width: 100%; max-width: 380px; }
.player {
  position: relative; border-radius: 28px; padding: 22px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 201, 74, .08);
  transform-style: preserve-3d; transition: transform .25s var(--ease);
  overflow: hidden;
}
.player::before { /* holo shine */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 20%), rgba(88, 225, 255, .22), transparent 45%);
}
.player-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.player-top b { color: var(--sun); font-weight: 400; }
.avatar {
  margin: 16px 0 18px; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 110%, #3a2d8f, #141742 70%);
  display: grid; place-items: center; position: relative;
}
.avatar picture, .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.avatar svg { width: 72%; height: auto; }
.player .player-name { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.player .role { color: var(--comet); font-size: 14.5px; font-weight: 500; margin-top: 4px; }
.stats { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.stats li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; color: var(--muted); }
.stats li b { font-family: var(--mono); font-weight: 400; color: var(--ink); font-size: 13px; }
.stats .bar { grid-column: 1 / -1; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.stats .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c, var(--sun)); transition: width 1.2s var(--ease); }
.in .stats .bar i { width: var(--v); }

.about-copy p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19.5px); margin-top: 18px; max-width: 54ch; }
.about-copy p b { color: var(--ink); font-weight: 500; }
.quick { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.quick li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.quick span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.quick b { font-weight: 500; }

/* ---------------------------------------------------------------- loves */
.loves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.love {
  position: relative; border-radius: var(--r); padding: 26px 24px 24px; overflow: hidden;
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  transition: transform .45s var(--bounce), border-color .3s, background .3s;
}
.love::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, var(--c), transparent 70%); opacity: .18; transition: opacity .3s, transform .5s var(--ease);
}
.love:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--c); }
.love:hover::after { opacity: .35; transform: scale(1.3); }
.love-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  transition: transform .5s var(--bounce);
}
.love:hover .love-icon { transform: scale(1.12) rotate(-8deg); }
.love h3 { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.15; margin-top: 18px; letter-spacing: -.01em; }
.love p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.love small { display: block; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }

/* ---------------------------------------------------------------- badges */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badge {
  text-align: center; padding: 26px 16px 22px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  transition: transform .45s var(--bounce), border-color .3s, background .3s;
}
.badge:hover { transform: translateY(-5px); border-color: var(--sun); background: var(--sun-soft); }
.badge .medal {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 34px;
  background: conic-gradient(from 200deg, var(--sun), #ff9f43, var(--sun), #fff1b8, var(--sun));
  box-shadow: 0 10px 26px -10px rgba(255, 201, 74, .8), inset 0 0 0 5px rgba(7, 8, 23, .28);
  transition: transform .7s var(--bounce);
}
.badge:hover .medal, .badge.pop .medal { transform: rotateY(360deg) scale(1.08); }
.badge h3 { font-size: 16.5px; font-weight: 600; margin-top: 16px; line-height: 1.25; }
.badge p { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.badge.locked .medal { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px var(--line-strong); filter: grayscale(1); }
.badge.locked h3 { color: var(--muted); }
.badge.locked:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }

/* ---------------------------------------------------------------- chess corner */
.chess { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: stretch; }
.board-wrap {
  padding: clamp(8px, 1.4vw, 14px); border-radius: 22px;
  background: linear-gradient(145deg, #ffc94a, #ff9f43 40%, #ff6b5b 75%, #b14bd6);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(255, 159, 67, .45);
}
.board {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; background: #6f63c7;
}
.board.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.sq { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border-radius: 0; cursor: pointer; }
.sq:focus-visible { outline: 3px solid var(--comet); outline-offset: -3px; border-radius: 0; z-index: 2; }
.sq.light { background: #f1e8d4; }
.sq.dark { background: #7b6fd0; }
.sq img { position: absolute; inset: 6%; width: 88%; height: 88%; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); transition: transform .2s var(--bounce); }
.sq.lifted img { opacity: .25; }
.sq.sel { background: #ffd66e; }
.sq.sel img { transform: scale(1.08); }
.sq.last.light { background: #cfeefa; }
.sq.last.dark { background: #58b8e0; }
.sq.hint { box-shadow: inset 0 0 0 4px var(--leaf); animation: hintPulse 1.2s ease-in-out infinite; }
@keyframes hintPulse { 50% { box-shadow: inset 0 0 0 7px rgba(95, 227, 154, .55); } }
.sq.check { background: radial-gradient(circle, #ff6b5b 0%, #ff6b5b 35%, transparent 75%), var(--sqbg, #f1e8d4); }
.sq.dark.check { --sqbg: #7b6fd0; }
.sq.target::after { content: ""; position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; border-radius: 50%; background: rgba(20, 16, 50, .32); pointer-events: none; }
.sq.target.capture::after { width: 86%; height: 86%; background: none; box-shadow: inset 0 0 0 5px rgba(20, 16, 50, .35); }
.coord { position: absolute; font-family: var(--mono); font-size: clamp(8px, 1.1vw, 11px); line-height: 1; pointer-events: none; font-weight: 700; }
.coord.rank { top: 4px; left: 4px; }
.coord.file { bottom: 3px; right: 4px; }
.sq.light .coord { color: #7b6fd0; }
.sq.dark .coord { color: #f1e8d4; }
.ghost { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }

.chess-panel { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; height: 100%; }
.p-progress { margin-top: auto; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.level-tag, .week-tag { padding: 4px 10px; border-radius: 99px; border: 1px solid currentColor; }
.level-tag[data-level="rookie"] { color: var(--leaf); }
.level-tag[data-level="pro"] { color: var(--comet); }
.level-tag[data-level="master"] { color: var(--rocket); }
.week-tag { color: var(--sun); }
.p-name { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.p-goal { color: var(--ink); font-weight: 500; font-size: 17.5px; }
.p-tip { color: var(--muted); font-size: 15.5px; }
.p-tip b { color: var(--sun); font-weight: 600; }
.p-status {
  min-height: 3.2em; padding: 12px 16px; border-radius: 14px; font-weight: 500; font-size: 16px; line-height: 1.4;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.p-status[data-tone="good"] { border-color: rgba(88, 225, 255, .5); color: var(--comet); }
.p-status[data-tone="bad"] { border-color: rgba(255, 107, 91, .55); color: #ff9b8f; }
.p-status[data-tone="hint"] { border-color: rgba(95, 227, 154, .55); color: var(--leaf); }
.p-status[data-tone="win"] { border-color: var(--sun); color: var(--sun); background: var(--sun-soft); font-size: 17px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p-actions .btn { padding: 11px 18px; font-size: 15px; }
.p-progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.p-progress b { color: var(--ink); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px;
  border: 1.5px solid var(--line-strong); color: var(--muted); transition: transform .3s var(--bounce), border-color .2s, background .2s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.chip[data-level="rookie"] { border-bottom-color: var(--leaf); }
.chip[data-level="pro"] { border-bottom-color: var(--comet); }
.chip[data-level="master"] { border-bottom-color: var(--rocket); }
.chip.solved { background: rgba(95, 227, 154, .14); color: var(--leaf); }
.chip.on { background: var(--sun); border-color: var(--sun); color: var(--bg); }
.credits { font-size: 12px; color: var(--muted); opacity: .85; }
.board-wrap { align-self: start; }
@media (max-width: 1140px) { .chess { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } .chess-panel { height: auto; } }

/* ---------------------------------------------------------------- fun zone */
.fun-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: stretch; }
.panel { border-radius: 26px; border: 1px solid var(--line-strong); background: linear-gradient(170deg, var(--surface), var(--bg-2)); overflow: hidden; }
.game { position: relative; display: flex; flex-direction: column; transition: box-shadow .25s; }
.game:has(#game:focus-visible) { box-shadow: 0 0 0 3px var(--comet); }
#game:focus-visible { outline: none; }
.game-hud {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.game-hud b { color: var(--ink); font-weight: 400; font-size: 15px; }
.game-hud .lives { color: var(--rocket); letter-spacing: .2em; }
#game { width: 100%; aspect-ratio: 16 / 11; touch-action: none; cursor: none; background: radial-gradient(circle at 50% 120%, rgba(177, 140, 255, .18), transparent 60%); }
.game-overlay {
  position: absolute; inset: 49px 0 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: rgba(7, 8, 23, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.game-overlay h3 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.game-overlay p { color: var(--muted); margin: 10px auto 22px; max-width: 34ch; font-size: 15.5px; }

.side-stack { display: grid; gap: 18px; grid-template-rows: 1fr auto; }
.fact { padding: 28px; display: flex; flex-direction: column; }
.fact .eyebrow { color: var(--comet); }
.fact blockquote {
  font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.01em;
  margin: 18px 0 24px; flex: 1; transition: opacity .25s, transform .25s var(--ease);
}
.fact blockquote.swap { opacity: 0; transform: translateY(8px); }
.fact .btn { align-self: flex-start; padding: 12px 20px; font-size: 15px; }
.countdown { padding: 24px 28px; }
.countdown .eyebrow { color: var(--rocket); }
.cd-row { display: flex; gap: 10px; margin-top: 14px; }
.cd-row div { flex: 1; text-align: center; padding: 12px 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.cd-row b { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.cd-row span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------------------------------------------------------------- crew */
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.member {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: transform .4s var(--bounce), border-color .3s;
}
a.member:hover { transform: translateY(-5px); border-color: var(--c); }
.member .mono-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--c);
  background: var(--tile); border: 1.5px solid var(--c);
}
.member h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; }
.member p { color: var(--muted); font-size: 15.5px; }
.member .url { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--c); display: flex; align-items: center; gap: 8px; }
.member .url svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .3s var(--ease); }
a.member:hover .url svg { transform: translate(3px, -3px); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding-block: 44px 56px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer p { color: var(--muted); font-size: 14.5px; }
.footer p b { color: var(--muted); font-weight: 500; }
.to-top { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 500; font-size: 15px; transition: border-color .2s, color .2s; }
.to-top:hover { border-color: var(--sun); color: var(--sun); }
.to-top span { display: inline-block; transition: transform .5s var(--ease); }
.to-top.launch span { transform: translateY(-120px) rotate(-45deg); }

/* ---------------------------------------------------------------- confetti + motion */
#confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .fun-grid { grid-template-columns: 1fr; }
  .planet-stage { max-width: 380px; order: -1; }
  .hero { padding-top: 100px; }
  .loves { grid-template-columns: repeat(2, 1fr); }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .scroll-hint { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .links {
    position: fixed; inset: 76px 12px auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: rgba(12, 14, 36, .97); border: 1px solid var(--line-strong); border-radius: 22px;
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 13px 16px; font-size: 17px; }
  .links .nav-cta { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 600px) {
  .loves, .crew { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .quick li { grid-template-columns: 1fr; gap: 2px; }
  .planet-stage { max-width: 300px; }
  .brand small { display: none; }
  #game { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
