/* =========================================================
   sumabox: landing page styles
   ---------------------------------------------------------
   1. Design tokens (CSS variables)
   2. Base / reset
   3. Utilities (container, buttons, pill, helpers)
   4. Under-development banner
   5. Navbar
   6. Hero + floating boxes
   7. Sections + headings
   8. Game cards
   9. Features
   10. Category chips
   11. Signup band
   12. Footer
   13. Scroll-reveal animation
   14. Responsive breakpoints
   15. Reduced motion
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette */
  --bg: #FFFFFF;
  --surface: #F6F7FB;
  --ink: #14142B;
  --muted: #6B6B80;
  --primary: #5B4BFF;
  --accent: #FF6B4A;
  --mint: #19C3A6;

  /* Derived tints / shades (kept subtle so white space does the work) */
  --primary-tint: #EEECFF;
  --primary-dark: #4535E6;
  --mint-tint: #E3F8F4;
  --mint-ink: #0B7564;   /* darker mint for readable text on tint */
  --accent-tint: #FFEDE8;
  --border: #E6E7EF;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape + depth */
  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.05), 0 2px 8px rgba(20, 20, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 20, 43, 0.06), 0 12px 32px rgba(20, 20, 43, 0.08);
  --shadow-primary: 0 6px 18px rgba(91, 75, 255, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--primary); text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

img, svg { display: block; }

/* Visible, consistent focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Offset anchor jumps so the sticky nav doesn't cover headings */
section[id] { scroll-margin-top: 80px; }

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.text-primary { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--sm { padding: 10px 18px; font-size: 0.95rem; }

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Pill label */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: #A9381F;          /* deep coral: 6.3:1 on the tint */
  font-size: 0.85rem;
  font-weight: 600;
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 107, 74, 0.08); }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ---------- 4. Under-development banner ---------- */
.dev-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 52px;
  background: var(--primary-tint);
  color: #2E2490;           /* deep violet for contrast on tint */
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.dev-banner[hidden] { display: none; }

.dev-banner__close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s;
}
.dev-banner__close:hover { background: rgba(91, 75, 255, 0.12); }

/* ---------- 5. Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* The little violet "box" logo, pure CSS */
.wordmark__box {
  position: relative;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--primary);
  transform: rotate(-8deg);
  transition: transform 0.35s var(--ease);
}
.wordmark__box::after {           /* tiny "lid" highlight */
  content: "";
  position: absolute;
  inset: 5px 5px auto 5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
}
.wordmark:hover .wordmark__box { transform: rotate(8deg) scale(1.05); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__links a::after {           /* coral underline on hover */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--primary); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Hamburger button (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav__toggle:hover { background: var(--surface); }
.nav__toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
/* Animate hamburger into an × when open */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 120px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
}

.hero__lead {
  margin-top: 24px;
  max-width: 620px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Floating decorative boxes */
.hero__boxes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-box {
  position: absolute;
  border-radius: 14px;
  opacity: 0.9;
  animation: float 7s ease-in-out infinite;
}
.float-box--1 { width: 64px; height: 64px; background: var(--primary); top: 18%; left: 8%;  --r: -12deg; animation-delay: 0s; }
.float-box--2 { width: 38px; height: 38px; background: var(--accent);  top: 66%; left: 14%; --r: 18deg;  animation-delay: -2s; border-radius: 10px; }
.float-box--3 { width: 52px; height: 52px; background: var(--mint);    top: 22%; right: 9%; --r: 14deg;  animation-delay: -4s; }
.float-box--4 { width: 28px; height: 28px; background: var(--primary-tint); border: 2px solid var(--primary); top: 70%; right: 16%; --r: -20deg; animation-delay: -1s; border-radius: 8px; }
.float-box--5 { width: 22px; height: 22px; background: var(--accent-tint); border: 2px solid var(--accent); top: 10%; left: 46%; --r: 30deg; animation-delay: -3s; border-radius: 7px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

/* ---------- 7. Sections ---------- */
.section { padding: 96px 0; }
.section--surface { background: var(--surface); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
}
.section__sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- 8. Game cards ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Used while the collection has only 1–2 games: cards stay card-sized and centered */
.game-grid.game-grid--few {   /* extra specificity so the breakpoints below don't override it */
  grid-template-columns: repeat(auto-fit, minmax(0, 340px));
  justify-content: center;
}

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.game-card:hover,
.game-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Placeholder cover: gradient is set inline from the game data */
.game-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* Big soft monogram so placeholders feel intentional */
.game-card__monogram {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(20, 20, 43, 0.18);
  transition: transform 0.5s var(--ease);
}
.game-card:hover .game-card__monogram { transform: scale(1.08) rotate(-3deg); }
/* Subtle decorative rounded squares on each cover */
.game-card__cover::before,
.game-card__cover::after {
  content: "";
  position: absolute;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}
.game-card__cover::before { width: 90px; height: 90px; top: -24px; right: -18px; transform: rotate(18deg); }
.game-card__cover::after  { width: 56px; height: 56px; bottom: -14px; left: 18px; transform: rotate(-14deg); }

.badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);          /* ink on coral keeps contrast high */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.35);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 22px 24px;
}

.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-tint);
  color: var(--mint-ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.game-card__title {
  font-size: 1.3rem;
  font-weight: 600;
}

.game-card__why {
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
}

.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  align-self: flex-start;
  font-weight: 600;
  color: var(--primary);
}
.game-card__link svg { transition: transform 0.25s var(--ease); }
.game-card__link:hover { color: var(--primary-dark); }
.game-card__link:hover svg,
.game-card:hover .game-card__link svg { transform: translateX(4px); }

/* ---------- 9. Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 20px 0 8px;
}
.feature p { color: var(--muted); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
}
.feature__icon--violet { background: var(--primary-tint); color: var(--primary); }
.feature__icon--mint   { background: var(--mint-tint);    color: var(--mint-ink); }
.feature__icon--coral  { background: var(--accent-tint);  color: #D9482A; }

/* ---------- 10. Category chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.chip {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.chip:hover,
.chip:focus-visible {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: #A9381F;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 74, 0.18);
}

/* ---------- 11. Signup band ---------- */
.signup {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 24px;
  background: var(--primary-tint);
}
/* Decorative box in the corner */
.signup::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  right: -40px; top: -50px;
  border-radius: 28px;
  background: rgba(91, 75, 255, 0.10);
  transform: rotate(18deg);
  pointer-events: none;
}

.signup__text h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
}
.signup__text p {
  margin-top: 12px;
  color: #4A4A60;
  font-size: 1.05rem;
}

.signup__form { position: relative; z-index: 1; }

.signup__row {
  display: flex;
  gap: 10px;
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup__input::placeholder { color: #8A8A9C; }
.signup__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 75, 255, 0.18); }
.signup__input[aria-invalid="true"] { border-color: #D93A1A; }

.signup__msg {
  min-height: 1.6em;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}
.signup__msg.is-error   { color: #B42A10; }
.signup__msg.is-success { color: var(--mint-ink); }

/* ---------- 11b. Accounts (nav + sign up / log in dialog) ---------- */
.nav__account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__account[hidden] { display: none; }

.nav__login {
  padding: 10px 12px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s, background-color 0.2s;
}
.nav__login:hover { color: var(--primary); background: var(--surface); }

.nav__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
  color: var(--ink);
}
.nav__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--primary-tint);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.nav__email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.auth {
  width: min(420px, calc(100% - 32px));
  padding: 40px 36px 32px;
  border: 0;
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(20, 20, 43, 0.22);
}
.auth[open] { animation: pop-in 0.3s var(--ease); }
.auth::backdrop {
  background: rgba(20, 20, 43, 0.45);
  backdrop-filter: blur(3px);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.auth__close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.auth__close:hover { background: var(--surface); color: var(--ink); }

.auth__logo { display: block; width: 28px; height: 28px; border-radius: 8px; }
.auth__logo::after { inset: 6px 6px auto 6px; }
.auth__title { margin-top: 18px; font-size: 1.6rem; font-weight: 700; }
.auth__sub { margin-top: 8px; color: var(--muted); }

.auth__form { margin-top: 24px; display: flex; flex-direction: column; }
.auth__label { font-weight: 600; font-size: 0.92rem; margin: 14px 0 6px; }
.auth__label:first-child { margin-top: 0; }
.auth__input {
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 75, 255, 0.18); }
.auth__input[aria-invalid="true"] { border-color: #D93A1A; }
.auth__hint { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }
.auth__hint[hidden] { display: none; }
.auth__msg { min-height: 1.5em; margin-top: 12px; font-size: 0.92rem; font-weight: 500; color: #B42A10; }
.auth__submit { margin-top: 6px; width: 100%; }
.auth__submit[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

.auth__switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.auth__switch-btn {
  padding: 2px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.auth__switch-btn:hover { text-decoration: underline; }

/* ---------- 12. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .wordmark { font-size: 1.2rem; }
.site-footer .wordmark__box { width: 18px; height: 18px; border-radius: 5px; }
.site-footer .wordmark__box::after { inset: 4px 4px auto 4px; height: 2px; }

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.footer__links a:hover { color: var(--primary); }

.footer__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 13. Scroll reveal ---------- */
/* Only hide elements when JS is running (html.js), so no-JS users still see everything */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Responsive ---------- */
/* Tablet */
@media (max-width: 960px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .features  { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .signup    { grid-template-columns: 1fr; padding: 44px 36px; gap: 28px; }
  .float-box--5 { display: none; }
}

/* Mobile nav (raised to 900px now the nav also holds account buttons) */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px rgba(20, 20, 43, 0.06);
    /* Hidden until toggled */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav__menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }

  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__menu .btn { width: 100%; }

  .nav__account { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
  .nav__login { border: 1.5px solid var(--border); padding: 10px; }
  .nav__user { justify-content: center; }
  .nav__email { max-width: 100%; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .dev-banner { padding: 10px 48px 10px 16px; font-size: 0.85rem; text-align: left; }

  .hero { padding: 72px 0 88px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .float-box--1 { width: 44px; height: 44px; top: 6%; left: 4%; }
  .float-box--3 { width: 36px; height: 36px; top: 4%; right: 6%; }
  .float-box--2, .float-box--4 { top: auto; bottom: 4%; }

  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }

  .game-grid { grid-template-columns: 1fr; }

  .signup { padding: 36px 24px; border-radius: 20px; }
  .signup__row { flex-direction: column; }
  .signup__row .btn { width: 100%; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { flex-direction: column; gap: 6px; }
}

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