/* Original design fonts, served locally under the SIL Open Font License. */
@font-face { font-family: "Outfit"; src: url("fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Sansita Swashed"; src: url("fonts/SansitaSwashed.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
/* Layout: airy light canvas, 1120px column; hero split copy / 9x9 board; sections divided by hairlines; game cards are the only dark surfaces. */
:root {
  --bg: #f7f9fd;
  --surface: #ffffff;
  --ink: #0b1640;
  --text: #4a5375;
  --muted: #626c88;
  --line: #e4e9f3;
  --navy: #0f1c3f;
  --empty: #e9eef8;
  --blue: #0961d6;
  --blue-deep: #0b5be0;
  --teal: #12c6a0;
  --yellow: #ffc62e;
  --orange: #ff7a2f;
  --red: #ff4d3d;
  --moon-bg: #0c1838;
  --glim-bg: #24502a;

  --f-display: "Outfit", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-moon: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-glim: "Sansita Swashed", "Georgia", serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 28, 63, .05), 0 10px 30px -12px rgba(15, 28, 63, .18);
  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--f-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.ico { width: 1em; height: 1em; flex: none; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font: 700 .72rem/1 var(--f-body);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow-wide { letter-spacing: .38em; }
.eyebrow-wide b { color: var(--muted); font-weight: 400; margin-inline: .5em; }
.eyebrow-tight { letter-spacing: .3em; font-size: .62rem; color: var(--text); font-weight: 500; }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
.h3 { font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 26px;
  border-radius: 12px; border: 1.5px solid transparent;
  font: 700 .95rem/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 115, 255, .7); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: #c9d3e6; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }

.text-link, .link-btn {
  display: inline-flex; align-items: center; gap: .4em;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--blue); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.text-link:hover, .link-btn:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 249, 253, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 28, 63, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 50px; height: 50px; flex: none; }
.brand-word { font: 800 1.55rem/.82 var(--f-display); color: var(--ink); letter-spacing: -.03em; }
.brand-lg .logo-mark { width: 54px; height: 54px; }
.brand-lg .brand-word { font-size: 1.75rem; }

.nav { display: flex; gap: 40px; margin-inline: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-left: auto; }
.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 20px 30px -20px rgba(15, 28, 63, .3);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 16px; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 48px 64px; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-title {
  font-size: clamp(3rem, 7.4vw, 5.6rem);
  font-weight: 800; line-height: .9; letter-spacing: -.045em;
  max-width: 7.2ch;
}
.hero-title .dot { color: var(--blue); }
.lede { font-size: 1.12rem; line-height: 1.55; max-width: 32ch; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.hero-art { display: grid; justify-items: center; gap: 18px; }
.grid-wrap { position: relative; }
.board {
  --cell: clamp(22px, 3.1vw, 30px);
  display: grid; grid-template-columns: repeat(9, var(--cell)); gap: 6px;
}
.cell {
  width: var(--cell); height: var(--cell); border-radius: 6px; border: 0; padding: 0; cursor: pointer;
  background: var(--c, var(--navy));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background-color .35s ease, transform .15s ease;
  animation: pop .5s cubic-bezier(.3, 1.5, .5, 1) both;
  animation-delay: calc(var(--i) * 9ms);
}
.cell:hover { transform: scale(1.12); }
.cell[data-c="."] { box-shadow: none; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

.board-note {
  position: absolute; left: calc(100% + 18px); top: 18px;
  display: flex; gap: 8px; align-items: flex-start;
  font: 600 .62rem/1.75 var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap;
}
.note-arrow { width: 34px; height: 22px; color: var(--ink); margin-top: 16px; }
.board-caption {
  display: grid; justify-items: center; gap: 6px;
  font: 500 .82rem/1 var(--f-body); letter-spacing: .38em; text-transform: uppercase; color: var(--ink);
}
.board-hint { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: center; }
.board-hint .link-btn { font-size: .8rem; }

/* floating squares */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.f {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  border-radius: 28%;
  transform: rotate(var(--r));
  animation: float 4s ease-in-out 1; animation-delay: var(--d);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .12), inset 0 3px 6px rgba(255, 255, 255, .35), 0 14px 24px -12px rgba(15, 28, 63, .35);
}
.f-teal { background: linear-gradient(145deg, #2ee0b8, var(--teal)); }
.f-orange { background: linear-gradient(145deg, #ff9a5a, var(--orange)); }
.f-blue { background: linear-gradient(145deg, #5aa0ff, var(--blue)); }
.f-yellow { background: linear-gradient(145deg, #ffd85c, var(--yellow)); }
.f-red { background: linear-gradient(145deg, #ff7262, var(--red)); }
.f-ghost { background: #e3ebfa; box-shadow: none; opacity: .8; }
.f-soft { opacity: .55; box-shadow: none; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r) + 6deg)); }
}

@media (max-width: 1100px) { .board-note { display: none; } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-title { max-width: none; }
  .f { opacity: .55; }
  .f-ghost, .f-soft { display: none; }
}
@media (max-width: 480px) {
  .board { --cell: calc((100vw - 32px - 48px - 24px) / 9); gap: 5px; }
  .board-caption { letter-spacing: .26em; font-size: .74rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 40px; }
.section + .section > .wrap { border-top: 1px solid var(--line); padding-top: 40px; }
.studio { padding-top: 24px; }

.studio-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.studio-copy { display: grid; gap: 16px; padding-right: 8px; }
.studio-copy p:not(.eyebrow) { font-size: .95rem; max-width: 46ch; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.pillar { display: grid; gap: 8px; align-content: start; padding: 4px 20px; }
.pillar h3 { font-size: 1.2rem; font-weight: 700; margin-top: 8px; }
.pillar p { font-size: .88rem; line-height: 1.45; color: var(--muted); }
.tile {
  width: 82px; height: 82px; border-radius: 20px; display: grid; place-items: center;
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, .12), inset 0 4px 8px rgba(255, 255, 255, .3), 0 14px 26px -14px var(--glow);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.tile svg { width: 50px; height: 50px; }
.pillar:hover .tile { transform: translateY(-4px) rotate(-3deg); }
.tile-blue { background: linear-gradient(150deg, #3d8dff, var(--blue)); --glow: rgba(22, 115, 255, .7); }
.tile-teal { background: linear-gradient(150deg, #30dfb7, #0fb592); --glow: rgba(18, 198, 160, .7); }
.tile-yellow { background: linear-gradient(150deg, #ffd650, #ffb800); --glow: rgba(255, 184, 0, .7); }
.tile-orange { background: linear-gradient(150deg, #ff9550, #ff6a1f); --glow: rgba(255, 106, 31, .7); }

@media (max-width: 960px) {
  .studio-inner { grid-template-columns: minmax(0, 1fr); }
  .pillars { border-left: 0; gap: 24px 0; }
  .pillar { padding-inline: 0 16px; }
}
@media (max-width: 640px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Games ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--card-bg); color: #fff;
  display: grid; grid-template-rows: auto 1fr;
  box-shadow: 0 24px 50px -28px rgba(15, 28, 63, .6);
  transition: transform .3s ease, box-shadow .3s ease;
  isolation: isolate;
}
.game:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -28px rgba(15, 28, 63, .7); }
.game-moon { --card-bg: var(--moon-bg); }
.game-glim { --card-bg: var(--glim-bg); }
.game-art {
  grid-row: 1; grid-column: 1;
  width: 100%; aspect-ratio: 428 / 200; object-fit: cover; object-position: center top;
  transition: transform .8s ease;
}
.game:hover .game-art { transform: scale(1.03); }
.game::after {
  content: ""; grid-row: 1; grid-column: 1; align-self: end; height: 60%;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
}
.game-glim .game-art { object-position: center 20%; }
.game-body { grid-row: 1 / 3; grid-column: 1; display: grid; align-content: start; padding: 18px 22px 22px; position: relative; z-index: 1; gap: 14px; }
.game-body > .badge { justify-self: start; }
.game-title { color: #fff; margin-top: clamp(110px, 17vw, 190px); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.moon-title { font: 700 clamp(2.5rem, 4.2vw, 3.2rem)/.9 var(--f-moon); letter-spacing: -.01em; }
.moon-title .spark { color: #ffd25a; font-size: .7em; vertical-align: .1em; text-shadow: 0 0 14px rgba(255, 210, 90, .8); }
.glim-title { font: 600 clamp(2.3rem, 3.9vw, 3rem)/1 var(--f-glim); }
.grade { font-size: 1rem; letter-spacing: .06em; margin-top: -6px; color: rgba(255, 255, 255, .92); }
.game-desc { font-size: .9rem; line-height: 1.5; max-width: 40ch; color: rgba(255, 255, 255, .9); }
.game-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.game-foot .btn { min-height: 46px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: .72rem; font-weight: 500; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge {
  display: inline-block; font: 700 .64rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 7px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge-light { background: #eaf2ff; border-color: #cfe0ff; color: var(--blue-deep); }

@media (max-width: 860px) { .game-grid { grid-template-columns: minmax(0, 1fr); } .game-title { margin-top: clamp(120px, 34vw, 230px); } }

/* ---------- Approach ---------- */
.approach-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.approach-copy { display: grid; gap: 16px; justify-items: start; }
.approach-copy p:not(.eyebrow) { font-size: .95rem; max-width: 42ch; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); gap: 8px; align-items: start; }
.step { display: grid; gap: 6px; align-content: start; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-top: 10px; }
.step p { font-size: .88rem; line-height: 1.45; color: var(--text); }
.step-ico {
  width: 92px; height: 80px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.step-ico svg { width: 52px; height: 52px; }
.step-arrow { color: var(--ink); display: grid; place-items: center; height: 80px; font-size: 1.1rem; }

@media (max-width: 960px) { .approach-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .step { grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; }
  .step-ico { grid-row: 1 / 3; }
  .step h3 { margin-top: 4px; }
  .step-arrow { display: none; }
}

/* ---------- Stats ---------- */
.stats-wrap { padding-block: 12px 56px; }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 8px;
}
.stat { display: flex; align-items: center; gap: 16px; padding: 4px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-ico { width: 44px; height: 40px; flex: none; }
.stat-num { font: 800 2rem/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.stat-label { font: 700 .66rem/1.6 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.stat-sub { font-size: .82rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 36px 28px; }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.footer-brand { display: grid; gap: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 72px; padding-left: 24px; }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols h4 { font: 700 .85rem/1.2 var(--f-body); margin-bottom: 4px; }
.footer-cols a, .footer-cols button {
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
  color: var(--text); font-size: .85rem; text-decoration: none;
}
.footer-cols a:hover, .footer-cols button:hover { color: var(--blue); }
.footer-social { border-left: 1px solid var(--line); padding-left: 40px; display: grid; gap: 14px; }
.socials { display: flex; gap: 22px; }
.socials a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--navy); border-radius: 8px; transition: color .2s ease, transform .2s ease; }
.socials a:hover { color: var(--blue); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.footer-tag { font-size: .85rem; letter-spacing: .08em; color: var(--muted); }
.copyright { font-size: .75rem; color: var(--muted); margin-top: 16px; }

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-cols { padding-left: 0; gap: 24px 48px; }
  .footer-social { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

/* ---------- Dialogs ---------- */
.modal {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
}
.modal::backdrop { background: rgba(11, 22, 64, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: rise .28s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes rise { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.modal-card {
  position: relative; background: var(--surface); border-radius: 22px; padding: 32px;
  display: grid; gap: 14px; box-shadow: 0 30px 80px -20px rgba(11, 22, 64, .5);
}
.modal-card > div { display: grid; gap: 14px; }
.modal-sub { font-size: .92rem; color: var(--text); }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center;
  color: var(--ink); z-index: 2;
}
.modal-x:hover { background: var(--bg); }
.modal-x-light { background: rgba(255, 255, 255, .9); border-color: transparent; }
.modal-card.modal-game { padding: 0; overflow: hidden; }
.modal-art { width: 100%; aspect-ratio: 428 / 170; object-fit: cover; }
.modal-pad { padding: 24px 28px 28px; display: grid; gap: 12px; justify-items: start; }
.grade-dark { color: var(--muted); margin-top: -4px; letter-spacing: .04em; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: .8rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 2px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 115, 255, .15); background: var(--surface); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.err { color: #d43222; font-size: .78rem; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); cursor: pointer; padding-block: 3px; }
.check small { color: var(--muted); font-size: .78rem; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.check-box { background: #eef5ff; border-radius: 10px; padding: 12px 14px; }
.copy-row { display: inline-flex; align-items: center; gap: 8px; }
.copy-row code { font: 600 .88rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 5px 8px; border-radius: 6px; user-select: all; }

.signup-done, .contact-done { justify-items: center; text-align: center; padding-block: 16px 4px; }
.done-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 1.8rem; background: linear-gradient(150deg, #30dfb7, #0fb592); box-shadow: 0 14px 26px -14px rgba(18, 198, 160, .8); }

.facts { display: grid; gap: 0; margin: 4px 0 0; width: 100%; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-size: .9rem; color: var(--ink); }

.catalog { display: grid; gap: 10px; margin-top: 6px; }
.catalog li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.catalog img { width: 84px; height: 56px; object-fit: cover; border-radius: 9px; }
.catalog h3 { font-size: 1rem; }
.catalog p { font-size: .8rem; color: var(--muted); }
.catalog .soon-art { width: 84px; height: 56px; border-radius: 9px; background: var(--empty); display: grid; place-items: center; font: 800 1.3rem/1 var(--f-display); color: var(--muted); }
.approach-list { display: grid; gap: 12px; counter-reset: s; }
.approach-list li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; font-size: .92rem; }
.approach-list li::before { content: counter(s); width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .85rem/1 var(--f-display); }
.approach-list b { color: var(--ink); }

@media (max-width: 480px) {
  .modal-card { padding: 26px 20px 22px; }
  .modal-pad { padding: 20px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .catalog li { grid-template-columns: 64px minmax(0, 1fr); }
  .catalog li > :last-child { grid-column: 1 / -1; }
  .catalog img, .catalog .soon-art { width: 64px; height: 48px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500;
  padding: 12px 18px; border-radius: 12px; z-index: 200; box-shadow: 0 16px 40px -12px rgba(11, 22, 64, .6);
  animation: rise .25s ease;
  max-width: calc(100vw - 32px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Launch refinements */
.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; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.btn-sm, .link-btn, .text-link, .modal-x { min-height:44px; }
.modal-x { width:44px; }
.btn:disabled { opacity:.65; cursor:not-allowed; transform:none; box-shadow:none; }
.nav a, .footer-cols a, .footer-cols button { min-height:44px; display:inline-flex; align-items:center; }
.board { gap:4px; }
.cell { position:relative; touch-action:manipulation; }
.cell::before { content:""; position:absolute; inset:-2px; }
.cell:focus-visible { z-index:1; outline-color:var(--ink); outline-offset:2px; }
.board-hint { flex-wrap:wrap; justify-content:center; gap:4px 10px; text-align:center; }
.game { display:flex; flex-direction:column; }
.game-art { aspect-ratio:8/5; object-position:center; }
.game::after { display:none; }
.game-body { display:flex; flex-direction:column; flex:1; padding-top:22px; }
.game-body > .badge { align-self:flex-start; }
.game-title { margin-top:0 !important; }
.game-foot { margin-top:auto; padding-top:12px; }
.modal-art { aspect-ratio:8/5; }
.modal-card { padding-top:64px; }
.modal-card.modal-game { padding-top:0; }
.modal-pad { padding-top:24px; }
.modal-card > div { min-width:0; }
.modal { overscroll-behavior:contain; }
body:has(dialog[open]) { overflow:hidden; }
.copy-row { flex-wrap:wrap; max-width:100%; }
.copy-row code { overflow-wrap:anywhere; line-height:1.5; }
.field input, .field select, .field textarea { font-size:1rem; }
.check { min-height:44px; align-items:flex-start; }
.check input { flex:none; margin-top:5px; }
.check small { margin-left:auto; }
.form-note { font-size:.8rem; color:var(--muted); }
.form-status { padding:12px; border:1px solid var(--line); background:var(--bg); border-radius:10px; font-size:.88rem; overflow-wrap:anywhere; }
.form-status[data-error="true"] { color:var(--ink); border-color:var(--red); }
.no-script { padding-block:24px; }
.prose { max-width:760px; padding-block:48px; display:grid; gap:20px; }
.prose h1 { font-size:clamp(2rem,5vw,3rem); line-height:1.1; }
.prose h2 { font-size:1.25rem; margin-top:12px; }
.prose ul { padding-left:24px; list-style:disc; }
@media(max-width:480px) {
 .hero { padding-top:32px; }
 .hero-title { font-size:clamp(2.5rem,11.2vw,3.4rem); }
 .hero-actions { width:100%; }
 .hero-actions .btn { padding-inline:18px; }
 .board { --cell:calc((100vw - 64px - 32px) / 9); gap:4px; }
 .board-caption { letter-spacing:.16em; }
 .game-body { padding:20px; }
 .modal-card { padding-top:64px; }
 .footer-social .text-link { overflow-wrap:anywhere; font-size:.9rem; }
}
@media(forced-colors:active) { .cell { border:1px solid ButtonText; } }
