/* ============================================================
   Mirio Games — redesign stylesheet
   Theme + accent are driven by data-theme / data-accent on <html>
   ============================================================ */

:root {
  --brand: #2fb35a;        /* logo green   */
  --brand-ink: #0a2e18;
  --fox: #f2682c;          /* fox orange   */
  --gold: #f4b942;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;

  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 13px;

  /* category hues */
  --cat-action: #f2682c;
  --cat-word:   #2fb35a;
  --cat-puzzle: #3b82f6;
  --cat-math:   #ec4899;
  --cat-stem:   #13b8a6;
  --cat-music:  #a855f7;
}

/* ---------- DARK (default) ---------- */
html[data-theme="dark"] {
  --bg:        #0a0e16;
  --bg-band:   #0d1320;
  --surface:   #131b2a;
  --surface-2: #1b2436;
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.14);
  --text:      #e9eef6;
  --text-dim:  #9db0c7;
  --text-faint:#67788f;
  --shadow:    0 18px 40px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.35);
  --glow:      rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- LIGHT ---------- */
html[data-theme="light"] {
  --bg:        #f6f3ec;
  --bg-band:   #efeae0;
  --surface:   #ffffff;
  --surface-2: #f4f0e7;
  --border:    rgba(24,33,51,.12);
  --border-2:  rgba(24,33,51,.18);
  --text:      #1b2533;
  --text-dim:  #51607a;
  --text-faint:#8493a9;
  --shadow:    0 16px 34px rgba(40,52,74,.14), 0 5px 14px rgba(40,52,74,.10);
  --glow:      rgba(40,52,74,.18);
  color-scheme: light;
}

/* ---------- accent overrides ---------- */
html[data-accent="orange"] { --brand: #f2682c; --brand-ink:#3a1605; }
html[data-accent="blue"]   { --brand: #3b82f6; --brand-ink:#06203f; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}

h1,h2,h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

/* ============================================================
   TOP NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: 4px; }
.nav-brand img { height: 42px; width: auto; }
.nav-brand b { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--text); letter-spacing: .2px; white-space: nowrap; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: .94rem;
  padding: 9px 14px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  color: var(--brand-ink) !important;
  background: var(--brand);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 40%, transparent);
}
.nav-cta:hover { filter: brightness(1.05); background: var(--brand) !important; color: var(--brand-ink) !important; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-brand b { display: none; }
}

/* ============================================================
   HERO INTRO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 460px at 78% -10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
    radial-gradient(760px 420px at 8% 120%, color-mix(in srgb, var(--fox) 16%, transparent), transparent 60%),
    var(--bg-band);
}
.hero-inner { padding: 64px 0 56px; max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.5px;
  margin: 16px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--brand); }
.hero p {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  color: var(--text-dim);
  max-width: 56ch;
  font-weight: 500;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px 13px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.stat b { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--text); line-height: 1; }
.stat span { font-size: .8rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section.block { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head .st-copy { max-width: 60ch; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.3px; margin-top: 6px; }
.section-head p { margin: 8px 0 0; color: var(--text-dim); font-weight: 500; font-size: 1.02rem; }
.cat-dot { display:inline-block; width:11px; height:11px; border-radius:50%; background: var(--cat,var(--brand)); margin-right:9px; vertical-align: middle; transform: translateY(-1px); }

/* ============================================================
   BANNER CARD SYSTEM
   ============================================================ */
.banner {
  --cat: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
}
.banner::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,11,18,0) 28%, rgba(8,11,18,.55) 62%, rgba(8,11,18,.93) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--cat) 26%, transparent), transparent 40%);
  pointer-events: none;
}
.banner:hover {
  transform: translateY(-6px) scale(1.008);
  border-color: color-mix(in srgb, var(--cat) 55%, transparent);
  box-shadow: 0 26px 52px rgba(0,0,0,.5), 0 12px 28px rgba(0,0,0,.36);
}
.banner:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.banner.selected {
  outline: 3px solid var(--cat);
  outline-offset: 3px;
  transform: translateY(-4px);
}

/* image zoom on hover */
.banner-art {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.banner:hover .banner-art { transform: scale(1.06); }

.banner-top { position: relative; z-index: 2; display: flex; gap: 8px; padding: 16px; align-items: flex-start; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: color-mix(in srgb, var(--cat) 88%, #000 4%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.tag.ghost { background: rgba(8,12,20,.55); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.22); }

.banner-body {
  position: relative; z-index: 2;
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.banner-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.04;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.banner-desc {
  margin: 0;
  font-size: .96rem;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  max-width: 46ch;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }

.play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cat);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 11px 20px;
  border-radius: 11px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.32);
  transition: transform .2s, filter .2s;
}
.play-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.play-btn .arr { transition: transform .2s; }
.play-btn:hover .arr { transform: translateX(3px); }

.play-btn.contrast { background: #fff; color: #10151f; }

.store-badge { display: inline-flex; transition: transform .2s, filter .2s; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.05); }
.store-badge img { height: 46px; width: auto; }

/* ----- FEATURED layout ----- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.featured-grid .hero-banner { min-height: 372px; }
.featured-grid .hero-banner::after {
  background:
    linear-gradient(180deg, rgba(8,11,18,0) 6%, rgba(8,11,18,.42) 44%, rgba(8,11,18,.82) 74%, rgba(8,11,18,.96) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--cat) 22%, transparent), transparent 38%);
}
.featured-grid .hero-banner .banner-title { font-size: clamp(2rem, 3.6vw, 3.1rem); }
/* full-width "top game" banner (e.g. Dino Chompers) */
.featured-grid .banner-wide { grid-column: 1 / -1; min-height: 340px; }
.featured-grid .banner-wide .banner-title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.featured-grid .banner-wide .banner-desc { max-width: 60ch; }
.featured-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.featured-trio .banner { min-height: 240px; }

/* Track Race pixel title */
.title-pixel { font-family: var(--font-pixel); font-size: clamp(1.5rem,2.6vw,2.3rem) !important; line-height: 1.25; letter-spacing: .02em; color: #ffe15c; text-shadow: 0 3px 0 #10375b, 0 6px 0 rgba(16,55,91,.7); }
.title-dragon { font-family: 'Dragon Flight Menu', var(--font-display); color: #f6ead2 !important; font-size: clamp(2.2rem,3.8vw,3.4rem) !important; }

/* ----- feature pair: Make the Number + board games, side by side ----- */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
  align-items: stretch;
}
.feature-pair > .banner { min-height: 340px; height: 100%; }

/* ----- standard category grid ----- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.game-grid.count-1 { grid-template-columns: 1fr; }
.game-grid.count-1 .banner { min-height: 300px; }
.game-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.game-grid .banner { min-height: 256px; }

/* placeholder banner (no art) */
.banner.is-placeholder { background: linear-gradient(140deg, color-mix(in srgb, var(--cat) 55%, #11151f), #0c1118); }
.ph-motif {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 11rem; line-height: 1; color: #fff;
  opacity: .12; letter-spacing: -.04em;
  user-select: none;
}

/* ----- featured trio count overrides ----- */
.featured-trio.count-2 { grid-template-columns: repeat(2, 1fr); }
.featured-trio.count-1 { grid-template-columns: 1fr; }

/* ============================================================
   MAKE THE NUMBER — hand-drawn notebook banner (full width)
   ============================================================ */
.banner.banner-notebook {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  min-height: 300px;
  padding: 26px 30px 26px;
  color: #23314e;
  background-color: #fcfcf6;
  background-image:
    linear-gradient(#e1eaf4 1px, transparent 1px),
    linear-gradient(90deg, #e1eaf4 1px, transparent 1px),
    linear-gradient(#c9dbef 1px, transparent 1px),
    linear-gradient(90deg, #c9dbef 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  background-position: -1px -1px;
  background-repeat: repeat;
  border: 3px solid #23314e;
  border-radius: 22px 16px 24px 14px / 14px 24px 16px 22px;
  box-shadow: 0 18px 40px rgba(12,20,40,.28), 0 6px 16px rgba(12,20,40,.18);
}
.banner.banner-notebook::after { display: none; }
.banner.banner-notebook:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: #cc3b33;
  box-shadow: 0 26px 52px rgba(12,20,40,.34), 0 10px 24px rgba(12,20,40,.22);
}
.banner.banner-notebook:focus-visible { outline: 3px solid #cc3b33; outline-offset: 4px; }
.banner.banner-notebook.selected { outline: 3px solid #cc3b33; }

.nb-left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  max-width: 100%;
}
.nb-tag {
  font-family: 'Patrick Hand', sans-serif; font-size: .95rem; white-space: nowrap;
  letter-spacing: .04em; text-transform: lowercase; color: #80858f;
  padding: 4px 14px; border: 2px solid #23314e; background: rgba(255,255,255,.6);
  border-radius: 12px 8px 13px 7px / 7px 13px 8px 12px; transform: rotate(-1.2deg);
}
.nb-title {
  margin: 0 0 2px;
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: clamp(2.3rem, 3.2vw, 3rem); line-height: 1.28; color: #23314e;
  text-shadow: none;
}
.nb-desc {
  margin: 0;
  font-family: 'Patrick Hand', sans-serif; font-weight: 400;
  font-size: 1.06rem; line-height: 1.45; color: #4a5568;
  max-width: 36ch; text-shadow: none;
}
.nb-play {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.5rem; color: #fff;
  background: #23314e; border: 2.5px solid #23314e;
  padding: 5px 24px; border-radius: 12px 9px 13px 8px / 8px 13px 9px 12px;
  transform: rotate(-.8deg); box-shadow: 3px 4px 0 rgba(35,49,78,.18);
  transition: transform .2s, background .2s, border-color .2s;
}
.banner.banner-notebook:hover .nb-play { transform: rotate(-.8deg) translateY(-2px); background: #cc3b33; border-color: #cc3b33; }
.nb-play .arr { transition: transform .2s; }
.banner.banner-notebook:hover .nb-play .arr { transform: translateX(3px); }

.nb-right {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  align-self: center; margin-top: auto; padding-top: 2px;
}
.nb-target-label { font-family: 'Patrick Hand', sans-serif; font-size: 1rem; color: #80858f; letter-spacing: .04em; }
.nb-target {
  position: relative; font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 3.4rem; line-height: .9; color: #cc3b33; padding: 2px 28px 8px;
}
.nb-target svg { position: absolute; inset: -10px -6px -6px; width: calc(100% + 12px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.nb-target svg path { fill: none; stroke: #cc3b33; stroke-width: 3; stroke-linecap: round; opacity: .85; }
.nb-tiles { display: flex; gap: 8px; margin-top: 4px; }
.nb-tile {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 44px; padding: 0 6px;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.5rem; color: #23314e;
  background: #fff; border: 2px solid #23314e;
  border-radius: 11px 8px 12px 7px / 7px 12px 8px 11px;
  box-shadow: 2px 3px 0 rgba(35,49,78,.12);
}
.nb-tile:nth-child(2n) { transform: rotate(1.6deg); }
.nb-tile:nth-child(3n) { transform: rotate(-1.8deg); }
.nb-ops { display: flex; gap: 10px; }
.nb-ops span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.4rem; color: #cc3b33;
  border: 2px solid #cc3b33; border-radius: 10px 7px 11px 8px / 8px 11px 7px 10px;
}

/* ============================================================
   BOARD GAMES — one pastel banner, three games creatively tiled
   ============================================================ */
.banner.banner-arcade {
  --red: #e2604f; --yellow: #efb33f; --boardblue: #c2d8f4; --slate: #33415c;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 16px;
  min-height: 300px;
  padding: 26px 30px 26px;
  color: var(--slate);
  background: linear-gradient(168deg, #fdfaf3 0%, #f8f2e6 100%);
  border: 1px solid #ece2cf;
  box-shadow: 0 14px 30px rgba(60,52,30,.16), 0 4px 12px rgba(60,52,30,.1);
}
.banner.banner-arcade::after { display: none; }
.banner.banner-arcade:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: #9fc0ee;
  box-shadow: 0 24px 46px rgba(60,52,30,.22), 0 10px 22px rgba(60,52,30,.14);
}
.banner.banner-arcade:focus-visible { outline: 3px solid #6f9be6; outline-offset: 4px; }
.banner.banner-arcade.selected { outline: 3px solid #6f9be6; }

.ar-intro {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 11px;
  max-width: 100%;
}
.ar-eyebrow {
  font-family: var(--font-body); font-weight: 800; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: #9aa2b1;
}
.ar-title {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1.06; color: var(--slate); text-shadow: none;
}
.ar-desc {
  margin: 0; font-family: var(--font-body); font-weight: 600;
  font-size: .98rem; line-height: 1.5; color: #707b8d; max-width: 42ch; text-shadow: none;
}
.ar-modes { display: flex; gap: 7px; flex-wrap: wrap; }
.ar-modes span {
  font-family: var(--font-body); font-weight: 800; font-size: .64rem;
  letter-spacing: .04em; text-transform: uppercase; color: #5a6577;
  background: #fff; border: 1px solid #e3dac8; padding: 5px 11px; border-radius: 999px;
}
.ar-play {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--font-body); font-weight: 800; font-size: .98rem; color: #fff;
  background: linear-gradient(180deg, #8db4ef, #6f9be6);
  padding: 11px 24px; border-radius: 13px;
  box-shadow: 0 8px 18px rgba(95,140,225,.4);
  transition: transform .2s, filter .2s;
}
.banner.banner-arcade:hover .ar-play { transform: translateY(-2px); filter: brightness(1.05); }
.ar-play .arr { transition: transform .2s; }
.banner.banner-arcade:hover .ar-play .arr { transform: translateX(3px); }

/* creatively tiled previews — scattered, hand-placed feel */
.ar-games {
  position: relative; z-index: 2; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  margin-top: auto;
}
.ar-game { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ar-game:nth-child(1) { transform: rotate(-5deg) translateY(10px); margin-right: -14px; z-index: 1; }
.ar-game:nth-child(2) { transform: rotate(2.5deg) translateY(-12px); z-index: 3; }
.ar-game:nth-child(3) { transform: rotate(5.5deg) translateY(14px); margin-left: -14px; z-index: 2; }
.banner.banner-arcade:hover .ar-game:nth-child(1) { transform: rotate(-7deg) translateY(6px); }
.banner.banner-arcade:hover .ar-game:nth-child(3) { transform: rotate(7.5deg) translateY(10px); }
.ar-board { display: flex; align-items: center; justify-content: center; }
.ar-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--slate); background: rgba(255,255,255,.82);
  padding: 3px 12px; border-radius: 999px; box-shadow: 0 3px 8px rgba(90,120,170,.2);
}

/* board art (rendered inside .ar-board) */
.bb-board {
  display: grid; gap: 7px;
  padding: 11px;
  background: var(--boardblue);
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 8px 16px rgba(90,120,170,.22);
}
.bb-board.ttt { grid-template-columns: repeat(3, 38px); grid-auto-rows: 38px; }
.bb-board.c4, .bb-board.c3 { grid-template-columns: repeat(var(--cols), 1fr); width: 150px; }
.bb-board.c4 { gap: 5px; padding: 11px; }

.bb-board.ttt .cell {
  background: #fff; border-radius: 11px;
  box-shadow: 0 3px 6px rgba(90,120,170,.2);
  display: flex; align-items: center; justify-content: center;
}
.mk-o { width: 56%; aspect-ratio: 1; border: 4px solid #e0922a; border-radius: 50%; }
.mk-x { position: relative; width: 58%; aspect-ratio: 1; }
.mk-x::before, .mk-x::after {
  content: ''; position: absolute; left: 50%; top: 6%;
  width: 5px; height: 88%; background: var(--red); border-radius: 4px;
}
.mk-x::before { transform: translateX(-50%) rotate(45deg); }
.mk-x::after  { transform: translateX(-50%) rotate(-45deg); }

.bb-board.c4 .hole, .bb-board.c3 .hole {
  aspect-ratio: 1; border-radius: 50%;
  background: #eef4fd; box-shadow: inset 0 2px 4px rgba(90,120,170,.28);
}
.hole.red    { background: radial-gradient(circle at 35% 30%, #f4978c, var(--red)); box-shadow: 0 2px 5px rgba(180,70,55,.4); }
.hole.yellow { background: radial-gradient(circle at 35% 30%, #ffdf8a, var(--yellow)); box-shadow: 0 2px 5px rgba(190,140,40,.4); }

/* ============================================================
   WHY MIRIO band
   ============================================================ */
.band { background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 30px; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
}
.why-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  margin-bottom: 16px;
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.18rem; margin-bottom: 7px; }
.why-card p { margin: 0; color: var(--text-dim); font-size: .96rem; font-weight: 500; }

/* ============================================================
   ABOUT editorial
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin-bottom: 18px; }
.about-copy p { color: var(--text-dim); font-size: 1.06rem; margin: 0 0 16px; max-width: 56ch; }
.about-copy p strong { color: var(--text); font-weight: 800; }
.about-art {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 340px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: center/cover no-repeat;
}
.about-art .scrim { position:absolute; inset:0; background: linear-gradient(150deg, color-mix(in srgb,var(--brand) 30%, transparent), transparent 55%, rgba(8,11,18,.5)); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 30px auto 0; }
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
details.faq summary {
  list-style: none; cursor: pointer;
  padding: 19px 22px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.12rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { color: var(--brand); transition: transform .25s; flex: none; }
details.faq[open] summary .chev { transform: rotate(45deg); }
details.faq p { margin: 0; padding: 0 22px 21px; color: var(--text-dim); font-weight: 500; font-size: 1rem; max-width: 70ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-band); border-top: 1px solid var(--border); padding: 48px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 46px; }
.footer-brand b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 4px; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.footer-nav a:hover { color: var(--text); background: var(--surface); }
.footer-base { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--text-faint); font-size: .9rem; font-weight: 600; }

/* ============================================================
   controller hint
   ============================================================ */
.pad-hint {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 18px; z-index: 40;
  display: flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-size: .8rem; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.pad-hint.show { opacity: 1; }
.pad-hint kbd {
  font-family: var(--font-body); font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 5px; padding: 1px 6px; font-size: .76rem; color: var(--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1fr; }
  .feature-pair { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-trio,
  .featured-trio.count-2 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-art { min-height: 240px; order: -1; }
  .banner.banner-notebook {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 30px 28px;
  }
  .nb-left { max-width: 100%; }
  .nb-right { align-self: center; }
  .nb-target { font-size: 4.2rem; }
  .banner.banner-arcade {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 30px 26px;
  }
  .ar-intro { max-width: 100%; }
  .ar-games { align-self: center; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .game-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .wrap, .nav-inner, .hero-inner { padding-left: 18px; padding-right: 18px; }
  section.block { padding: 42px 0; }
  .hero-inner { padding-top: 46px; padding-bottom: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
