/* ==========================================================================
   Pixels Union -- design system
   Dark, Great-Lakes-inspired palette. No white backgrounds anywhere.
   ========================================================================== */

:root {
  --ink-950: #060c14;
  --ink-900: #0a1420;
  --ink-850: #0d1a29;
  --ink-800: #10202f;
  --ink-700: #16293b;
  --ink-600: #1e3448;
  --line: rgba(148, 180, 204, 0.14);
  --line-strong: rgba(148, 180, 204, 0.26);

  --text-hi: #eef4f8;
  --text-mid: #b7c7d6;
  --text-low: #7c8fa2;

  --teal: #2dd9c8;
  --teal-dim: #1aa89a;
  --amber: #f6a63a;
  --amber-dim: #d4842064;
  --ember: #ef5b4e;
  --pine: #4fbf7a;
  --frost: #6fb8ff;

  --grad-hero: radial-gradient(60% 60% at 15% 10%, rgba(45, 217, 200, 0.16), transparent 60%),
               radial-gradient(50% 50% at 90% 20%, rgba(246, 166, 58, 0.14), transparent 55%),
               radial-gradient(70% 60% at 50% 100%, rgba(111, 184, 255, 0.10), transparent 60%);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-lift: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text-mid);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* subtle grain overlay so flat dark panels don't look sterile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--text-hi); margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--amber); }
img, svg { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--teal); color: var(--ink-950); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--ink-950); box-shadow: 0 10px 30px -10px rgba(45, 217, 200, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); color: var(--ink-950); box-shadow: 0 16px 34px -12px rgba(45, 217, 200, 0.7); }
.btn--amber { background: linear-gradient(135deg, var(--amber), #d97e21); color: var(--ink-950); box-shadow: 0 10px 30px -10px rgba(246, 166, 58, 0.55); }
.btn--amber:hover { transform: translateY(-2px); color: var(--ink-950); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text-hi); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn--small { padding: 10px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- header ---------- */
/* Note: backdrop-filter lives on ::before, not on .site-header itself --
   backdrop-filter on an ancestor makes it a containing block for
   position:fixed descendants (like the mobile nav panel), which breaks
   full-viewport fixed positioning. Keeping it off the real element avoids that. */
.site-header {
  position: sticky; top: 0; z-index: 500;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-hi); letter-spacing: -0.01em; }
.brand__word em { font-style: normal; color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: 12px; flex: 1; }
.main-nav > a, .main-nav__dropdown-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-mid); font-weight: 500; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 999px; background: transparent; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.main-nav > a:hover, .main-nav__dropdown-btn:hover { color: var(--text-hi); background: rgba(255,255,255,0.05); }
.main-nav > a.is-active { color: var(--ink-950); background: var(--teal); }

.main-nav__dropdown { position: relative; }
.main-nav__dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 8px; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.15s ease;
}
.main-nav__dropdown:hover .main-nav__dropdown-menu,
.main-nav__dropdown:focus-within .main-nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav__dropdown-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-mid); font-size: 0.92rem; }
.main-nav__dropdown-menu a:hover { background: rgba(45,217,200,0.1); color: var(--teal); }

.site-header__right { display: flex; align-items: center; gap: 14px; }
.mi-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-mid); border: 1px solid var(--line-strong); padding: 7px 12px; border-radius: 999px;
  white-space: nowrap;
}

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text-hi); margin: 0 auto; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  background: var(--grad-hero), var(--ink-950);
  border-bottom: 1px solid var(--line);
}
.hero__topo { position: absolute; inset: 0; opacity: 0.25; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(45,217,200,0.35); background: rgba(45,217,200,0.08);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--teal); }
.hero p.lead { font-size: 1.1rem; color: var(--text-mid); max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--text-hi); }
.hero__stats div span { font-size: 0.82rem; color: var(--text-low); }

.hero__art { position: relative; }
.hero__art-card {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, var(--ink-800), var(--ink-850));
  padding: 28px; box-shadow: var(--shadow-lift);
}
.hero__art-card canvas { width: 100%; border-radius: var(--radius-md); display: block; background: var(--ink-950); }
.hero__art-badge {
  position: absolute; bottom: -18px; right: 24px; background: var(--ink-700);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px;
  font-size: 0.82rem; color: var(--text-hi); display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lift);
}
.hero__art-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 4px rgba(79,191,122,0.2); }

/* ---------- section shell ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
.section-head p { color: var(--text-mid); font-size: 1.02rem; }
.section--alt { background: linear-gradient(180deg, var(--ink-900), var(--ink-950)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-850));
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.game-card__art {
  height: 168px; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.game-card__art svg { width: 74px; height: 74px; position: relative; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.4)); }
.game-card__art::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 30% 10%, var(--accent-a, var(--teal)) 0%, transparent 55%),
              radial-gradient(120% 120% at 80% 100%, var(--accent-b, var(--amber)) 0%, transparent 55%);
  opacity: 0.35;
}
.game-card--ember { --accent-a: #ef5b4e; --accent-b: #f6a63a; }
.game-card--frost { --accent-a: #6fb8ff; --accent-b: #2dd9c8; }
.game-card--pine  { --accent-a: #4fbf7a; --accent-b: #2dd9c8; }

.game-card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(6,12,20,0.65); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
  color: var(--text-hi); font-size: 0.72rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.game-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card__body h3 { font-size: 1.25rem; margin-bottom: 0; }
.game-card__body p { font-size: 0.92rem; color: var(--text-mid); margin-bottom: 4px; }
.game-card__meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-low); margin: 4px 0 8px; }
.game-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.game-card__cta { margin-top: auto; display: flex; }

/* ---------- feature strip ---------- */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px;
  background: rgba(255,255,255,0.015);
}
.feature-item svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 14px; }
.feature-item h4 { font-size: 1rem; margin-bottom: 6px; }
.feature-item p { font-size: 0.88rem; color: var(--text-low); margin: 0; }

/* ---------- michigan strip ---------- */
.mi-strip {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(45,217,200,0.06), rgba(246,166,58,0.05));
  padding: 44px; overflow: hidden; position: relative;
}
.mi-strip__map { opacity: 0.9; }
.mi-strip h3 { font-size: 1.6rem; margin-bottom: 12px; }
.mi-strip p { color: var(--text-mid); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: 70px 0; position: relative; overflow: hidden;
  background: radial-gradient(60% 100% at 50% 0%, rgba(45,217,200,0.12), transparent 60%);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-mid); max-width: 50ch; margin: 0 auto 30px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-900); border-top: 1px solid var(--line); position: relative; color: var(--teal); }
.wave-divider { color: var(--ink-950); line-height: 0; margin-top: -1px; }
.wave-divider svg { width: 100%; height: 44px; display: block; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1fr; gap: 32px; padding: 56px 24px 40px; color: var(--text-mid); }
.footer__col h4 { color: var(--text-hi); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col a { color: var(--text-mid); font-size: 0.92rem; }
.footer__col a:hover { color: var(--teal); }
.footer__tagline { color: var(--text-hi); font-family: var(--font-display); font-weight: 600; margin: 14px 0 8px; }
.footer__small { font-size: 0.85rem; color: var(--text-low); }
.footer__contact li { font-size: 0.88rem; color: var(--text-low); }
.brand--footer .brand__word { color: var(--text-hi); }

.footer__legalbar {
  border-top: 1px solid var(--line); padding: 20px 24px 32px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-low);
}
.footer__legalbar p { margin: 0; max-width: 60ch; }

/* ---------- age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 3000; align-items: center; justify-content: center;
  background: rgba(4, 8, 13, 0.88); backdrop-filter: blur(8px); padding: 20px;
}
.age-gate:not([hidden]) { display: flex; }
.age-gate__card {
  max-width: 460px; width: 100%; text-align: center; background: var(--ink-850);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 40px 32px;
  box-shadow: var(--shadow-lift);
}
.age-gate__card h2 { font-size: 1.5rem; margin: 14px 0 10px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 16px; }
.age-gate__fine { font-size: 0.78rem; color: var(--text-low); margin: 0; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 2500;
  background: var(--ink-850); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}
.cookie-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; flex-wrap: wrap; }
.cookie-banner__inner p { margin: 0; font-size: 0.88rem; color: var(--text-mid); max-width: 60ch; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- game play page ---------- */
.game-hero {
  padding: 44px 0 0; border-bottom: 1px solid var(--line);
  background: var(--grad-hero), var(--ink-950);
}
.game-hero__crumb { font-size: 0.85rem; color: var(--text-low); margin-bottom: 18px; }
.game-hero__crumb a { color: var(--text-low); }
.game-hero__crumb a:hover { color: var(--teal); }
.game-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.game-hero__top h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.game-hero__tagline { color: var(--text-mid); font-size: 1.05rem; max-width: 60ch; }
.game-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 0.75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-mid); white-space: nowrap; }
.badge--accent { color: var(--ink-950); background: var(--teal); border-color: transparent; }

.game-stage-wrap { padding: 32px 0 90px; }
.game-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

.stage {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900)); padding: 18px;
  box-shadow: var(--shadow-lift);
}
.stage__canvas-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #030507; aspect-ratio: 16 / 10; }
.stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.stage__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; background: rgba(6,12,20,0.82); backdrop-filter: blur(3px); padding: 24px;
}
.stage__overlay h3 { font-size: 1.4rem; margin: 0; }
.stage__overlay p { color: var(--text-mid); margin: 0; max-width: 40ch; }
.stage__hud { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 4px; font-family: var(--font-display); }
.stage__hud .hud-item { text-align: center; }
.stage__hud .hud-item span { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-low); font-family: var(--font-body); }
.stage__hud .hud-item strong { font-size: 1.3rem; color: var(--text-hi); }

.side-panel { display: flex; flex-direction: column; gap: 20px; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px;
  background: rgba(255,255,255,0.015);
}
.panel h4 { font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel ol, .panel ul.plain { margin: 0; padding-left: 18px; color: var(--text-mid); font-size: 0.9rem; }
.panel ol li, .panel ul.plain li { margin-bottom: 8px; }
.panel ul.plain { list-style: disc; }

.about-copy p { color: var(--text-mid); }

.other-games { display: flex; flex-direction: column; gap: 10px; }
.other-games a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  color: var(--text-hi); font-size: 0.9rem; font-weight: 500;
}
.other-games a:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- static / legal pages ---------- */
.static-hero { padding: 70px 0 40px; border-bottom: 1px solid var(--line); background: var(--grad-hero), var(--ink-950); }
.static-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.static-hero p { color: var(--text-mid); max-width: 60ch; font-size: 1.05rem; }
.static-body { padding: 60px 0 90px; }
.static-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; color: var(--text-hi); }
.prose p, .prose li { color: var(--text-mid); font-size: 0.98rem; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-hi); }
.toc { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; height: fit-content; }
.toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; color: var(--text-low); }
.toc a { display: block; font-size: 0.88rem; padding: 6px 0; color: var(--text-mid); border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--teal); }
.updated-pill { display: inline-block; font-size: 0.78rem; color: var(--text-low); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- team / value cards (about page) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: rgba(255,255,255,0.015); }
.value-card svg { width: 24px; height: 24px; color: var(--amber); margin-bottom: 14px; }
.value-card h4 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-low); margin: 0; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat-row div strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--teal); }
.stat-row div span { font-size: 0.85rem; color: var(--text-low); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: rgba(255,255,255,0.015); margin-bottom: 20px; }
.contact-info-card h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-low); margin-bottom: 10px; }
.contact-info-card p, .contact-info-card a { color: var(--text-hi); font-size: 1rem; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-hi); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--ink-800); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 14px; color: var(--text-hi); font-family: var(--font-body); font-size: 0.95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,217,200,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-low); margin-top: 6px; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.9rem; margin-bottom: 20px; border: 1px solid; }
.alert--success { background: rgba(79,191,122,0.1); border-color: rgba(79,191,122,0.4); color: #a4e8bc; }
.alert--error { background: rgba(239,91,78,0.1); border-color: rgba(239,91,78,0.4); color: #f6b3ab; }
.alert ul { list-style: disc; padding-left: 18px; margin: 4px 0 0; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.error-page h1 { font-size: clamp(3rem, 8vw, 5rem); background: linear-gradient(135deg, var(--teal), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .game-layout { grid-template-columns: 1fr; }
  .static-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .mi-strip { grid-template-columns: 1fr; padding: 32px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--ink-900);
    flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateX(-100%);
    transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a, .main-nav__dropdown-btn { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 14px 12px; }
  .main-nav__dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: none; background: transparent; padding-left: 12px; }
  .main-nav__dropdown.is-open .main-nav__dropdown-menu { display: block; }
  .nav-toggle { display: flex; }
  .mi-badge { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 50px; }
  .section { padding: 56px 0; }
  .footer__legalbar { flex-direction: column; }
}
