/* ==========================================================================
   Magivix Studio - main stylesheet
   --------------------------------------------------------------------------
   1. Fonts & design tokens      7. Cards (game, category, feature, post)
   2. Base & typography          8. Page-specific sections
   3. Utilities & accessibility  9. FAQ, forms, legal & article pages
   4. Buttons, chips, status    10. Footer
   5. Header & navigation       11. Motion (respects reduced motion)
   6. Layout & sections
   ========================================================================== */

/* 1. Fonts & design tokens ------------------------------------------------ */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* Brand palette */
  --navy: #080D2B;
  --navy-2: #10163A;
  --navy-3: #171F4D;
  --blue: #168BFF;
  --cyan: #29E6FF;
  --purple: #873CFF;
  --magenta: #F044FF;
  --gold: #FFC83D;          /* from the logo's star - used sparingly */
  --green: #39D98A;
  --white: #FFFFFF;
  --muted: #B8C1DF;

  /* Semantic tokens */
  --bg: var(--navy);
  --surface: var(--navy-2);
  --surface-2: var(--navy-3);
  --text: var(--white);
  --text-muted: var(--muted);
  --border: rgba(184, 193, 223, 0.14);
  --border-strong: rgba(184, 193, 223, 0.28);
  --link: var(--cyan);
  --focus: var(--cyan);
  --grad-primary: linear-gradient(135deg, #873CFF 0%, #1468D8 100%);
  --grad-text: linear-gradient(100deg, #29E6FF 0%, #A77BFF 55%, #F044FF 100%);
  --grad-border: linear-gradient(135deg, rgba(41, 230, 255, 0.55), rgba(135, 60, 255, 0.55) 50%, rgba(240, 68, 255, 0.5));

  /* Type & spacing */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --step-4: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  --step-5: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --header-h: 76px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(135, 60, 255, 0.35), 0 18px 50px -18px rgba(135, 60, 255, 0.55);

  /* Theme tokens - dark (navy) is the default */
  --link-hover: #8DF2FF;
  --body-glow-1: rgba(135, 60, 255, 0.18);
  --body-glow-2: rgba(22, 139, 255, 0.14);
  --header-bg: rgba(8, 13, 43, 0.82);
  --header-bg-solid: rgba(8, 13, 43, 0.97);
  --section-alt-bg: linear-gradient(180deg, rgba(16, 22, 58, 0.65), rgba(16, 22, 58, 0.25));
  --card-bg: linear-gradient(180deg, rgba(23, 31, 77, 0.9), rgba(16, 22, 58, 0.9));
  --sunken: rgba(8, 13, 43, 0.55);
  --footer-bg: #060A22;
  --prose: #DCE2F5;
  --input-bg: var(--navy);
  --placeholder: rgba(184, 193, 223, 0.75);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --error: #FF9DB4; --error-bg: rgba(255, 122, 154, 0.12); --error-text: #FFC2D0; --error-border: rgba(255, 122, 154, 0.4);
  --ok-bg: rgba(57, 217, 138, 0.1); --ok-text: #C8F5DE; --ok-border: rgba(57, 217, 138, 0.4); --ok-text-strong: var(--green);
  --note-bg: rgba(255, 200, 61, 0.08); --note-border: rgba(255, 200, 61, 0.6); --note-text: #FFE7A8; --note-strong: var(--gold);
  --gold-ink: var(--gold);
  --chip-logic-brain: #E3D6FF; --chip-matching-sorting: #C9F7FF; --chip-number-strategy: #CFE6FF;
  --chip-word-games: #FBD3FF; --chip-casual-arcade: #FFE9B0; --chip-classic-games: #C8F5DE;
  --hero-glow-opacity: 1;
}

/* Light theme - chosen with the header toggle (saved per visitor) */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6FD;
  --surface: #FFFFFF;
  --surface-2: #EDF0FA;
  --text: #0B1033;
  --text-muted: #4B5477;
  --border: rgba(11, 16, 51, 0.10);
  --border-strong: rgba(11, 16, 51, 0.20);
  --link: #1559C6;
  --link-hover: #0E3F92;
  --focus: #1468D8;
  --grad-text: linear-gradient(100deg, #1468D8 0%, #7A35F0 55%, #C21FD0 100%);
  --shadow: 0 18px 40px -22px rgba(11, 16, 51, 0.35);
  --glow: 0 0 0 1px rgba(135, 60, 255, 0.28), 0 18px 40px -20px rgba(135, 60, 255, 0.4);
  --body-glow-1: rgba(135, 60, 255, 0.10);
  --body-glow-2: rgba(22, 139, 255, 0.08);
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-bg-solid: rgba(255, 255, 255, 0.97);
  --section-alt-bg: linear-gradient(180deg, #EBEFFB, #F4F6FD);
  --card-bg: #FFFFFF;
  --sunken: #F1F3FB;
  --footer-bg: #E9EDF9;
  --prose: #283057;
  --input-bg: #FFFFFF;
  --placeholder: #6B7397;
  --hover-bg: rgba(11, 16, 51, 0.05);
  --error: #B4234A; --error-bg: #FDECEF; --error-text: #8C1736; --error-border: #F2B8C6;
  --ok-bg: #E7F8EF; --ok-text: #0D5C36; --ok-border: #A7E3C3; --ok-text-strong: #0F7A47;
  --note-bg: #FFF7DD; --note-border: #E3B53A; --note-text: #5C4300; --note-strong: #8A6300;
  --gold-ink: #C98A00;
  --chip-logic-brain: #5B21B6; --chip-matching-sorting: #0B6378; --chip-number-strategy: #1450A3;
  --chip-word-games: #9A1A97; --chip-casual-arcade: #7A5000; --chip-classic-games: #0E6B45;
  --hero-glow-opacity: 0.5;
}

/* 2. Base & typography --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--body-glow-1), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--body-glow-2), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }
::selection { background: rgba(135, 60, 255, 0.55); color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}

/* 3. Utilities & accessibility ------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.container-wide { max-width: 1100px; }
.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: 1rem; top: -100px; z-index: 1000;
  background: var(--white); color: var(--navy); padding: 0.75rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.text-gradient {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.small { font-size: var(--step--1); color: var(--text-muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1.05em; height: 1.05em; }
.icon-xs { width: 0.95em; height: 0.95em; }
[hidden] { display: none !important; }

/* 4. Buttons, chips, status ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: 0.975rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-lg { min-height: 54px; padding: 0.85rem 1.7rem; font-size: 1.02rem; }
.btn-primary { background: var(--grad-primary); color: #FFFFFF; box-shadow: 0 10px 30px -12px rgba(135, 60, 255, 0.8); }
.btn-primary:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(135, 60, 255, 0.95); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--text); border-color: rgba(41, 230, 255, 0.7); background: rgba(41, 230, 255, 0.08); }
.btn-ghost { color: var(--link); padding-inline: 0.6rem; }
.btn-ghost:hover { color: var(--link-hover); background: rgba(41, 230, 255, 0.08); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-link { background: none; border: 0; padding: 0.25rem; color: var(--link); text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 44px; }

.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.4;
  color: var(--chip-logic-brain); background: rgba(135, 60, 255, 0.18); border: 1px solid rgba(135, 60, 255, 0.35);
}
.chip-logic-brain { color: var(--chip-logic-brain); background: rgba(135, 60, 255, 0.18); border-color: rgba(135, 60, 255, 0.4); }
.chip-matching-sorting { color: var(--chip-matching-sorting); background: rgba(41, 230, 255, 0.12); border-color: rgba(41, 230, 255, 0.35); }
.chip-number-strategy { color: var(--chip-number-strategy); background: rgba(22, 139, 255, 0.16); border-color: rgba(22, 139, 255, 0.45); }
.chip-word-games { color: var(--chip-word-games); background: rgba(240, 68, 255, 0.14); border-color: rgba(240, 68, 255, 0.38); }
.chip-casual-arcade { color: var(--chip-casual-arcade); background: rgba(255, 200, 61, 0.12); border-color: rgba(255, 200, 61, 0.38); }
.chip-classic-games { color: var(--chip-classic-games); background: rgba(57, 217, 138, 0.12); border-color: rgba(57, 217, 138, 0.38); }
.chip-featured { color: #1A1300; background: var(--gold); border-color: var(--gold); }

.status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700; line-height: 1.3; color: var(--text-muted);
}
.status-available { color: var(--ok-text-strong); }
.status-soon { color: var(--link); }
.status-tbd { color: var(--text-muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-tbd::before { background: var(--gold-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.9rem;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link);
}

/* 5. Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: var(--header-bg-solid); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); transition: min-height 0.25s ease; }
.site-header.is-scrolled .header-inner { min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 20px -6px rgba(135, 60, 255, 0.8); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.85rem; border-radius: 999px;
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--text); background: var(--hover-bg); }
.nav-link[aria-current="page"] { color: var(--text); background: rgba(135, 60, 255, 0.22); }
.header-cta { min-height: 44px; padding-inline: 1.15rem; }

.theme-toggle {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--border-strong);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { background: var(--hover-bg); border-color: var(--link); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }
html:not(.js) .theme-toggle { display: none; }

.nav-toggle {
  display: none; margin-left: 0.5rem; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

@media (max-width: 1080px) {
  /* Without JavaScript the menu simply wraps below the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav { width: 100%; flex-direction: column; align-items: stretch; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .theme-toggle { margin-left: auto; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--header-bg-solid); border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.7);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .js .nav-link { width: 100%; padding: 0.75rem 1rem; font-size: 1.05rem; border-radius: 14px; }
  .js .header-cta { width: 100%; min-height: 52px; }
}
body.nav-open { overflow: hidden; }

/* 6. Layout & sections --------------------------------------------------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-alt { background: var(--section-alt-bg); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.section-head-row .section-title { margin-bottom: 0; }
.section-title { font-size: var(--step-4); }
.section-title-sm { font-size: var(--step-3); }
.section-intro { color: var(--text-muted); font-size: var(--step-1); margin-bottom: 0; }
.section-head .btn { margin-top: 1.5rem; }
.section-actions { display: flex; justify-content: center; margin-top: 2.5rem; }

/* Hero (home) */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 7rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 75% 40%, rgba(135, 60, 255, 0.35), transparent 70%),
    radial-gradient(35% 45% at 90% 70%, rgba(41, 230, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 15% 20%, rgba(22, 139, 255, 0.18), transparent 70%);
}
.hero-glow { opacity: var(--hero-glow-opacity); }
.hero-glow-sm { opacity: calc(var(--hero-glow-opacity) * 0.7); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero-title { font-size: var(--step-5); margin-bottom: 1.25rem; }
.hero-text { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--text-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-actions-center { justify-content: center; }
.hero-note { margin-top: 1.5rem; font-size: var(--step--1); color: var(--text-muted); }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 60, 255, 0.45), rgba(22, 139, 255, 0.15) 55%, transparent 70%);
  filter: blur(30px); z-index: -1;
}
.hero-icons {
  list-style: none; margin: 0 auto; padding: 0; max-width: 540px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 0.4rem + 1.4vw, 1.4rem);
  transform: rotate(-6deg);
}
.hero-icon img, .hero-icon .game-icon { width: 100%; height: auto; border-radius: 22%; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero-icon:nth-child(3n + 2) { transform: translateY(14%); }
.hero-icon:nth-child(3n) { transform: translateY(-6%); }

/* Inner page heroes */
.page-hero { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 18em; }
.page-intro { font-size: var(--step-1); color: var(--text-muted); max-width: 44rem; margin-bottom: 0; }
.page-hero-compact h1 { margin-bottom: 0.4rem; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; }
.page-hero-logo { width: clamp(180px, 22vw, 280px); border-radius: 22%; box-shadow: var(--glow); }
.updated { color: var(--text-muted); margin: 0; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: var(--step--1); color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: rgba(184, 193, 223, 0.5); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }

/* 7. Cards --------------------------------------------------------------- */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:hover { color: inherit; }
.card-link:focus-visible { outline: none; }
.card-more {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; font-weight: 700; color: var(--link);
}
.card-more .icon { transition: transform 0.2s ease; }

/* Game cards: compact horizontal layout keeps the full collection scannable */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.1rem; }
.game-card {
  position: relative; display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.1rem; border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(135, 60, 255, 0.55); box-shadow: var(--glow); }
.game-card:hover .card-more .icon { transform: translateX(3px); }
.game-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.game-card-media { flex: none; width: 112px; }
.game-card-media .game-icon { width: 112px; height: 112px; border-radius: 24px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.8); }
.game-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-width: 0; flex: 1; }
.game-card-title { font-size: 1.12rem; margin: 0.1rem 0 0; }
.game-card-text { margin: 0; color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }
.game-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; width: 100%; margin-top: auto; padding-top: 0.35rem; }
.game-grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.game-grid-compact .game-card { flex-direction: column; }
.game-grid-compact .game-card-media, .game-grid-compact .game-card-media .game-icon { width: 88px; height: 88px; border-radius: 20px; }

.game-icon { background: var(--navy-3); }
.game-icon-monogram {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 22%;
  background: var(--grad-primary); color: #FFFFFF; font-weight: 800; font-size: 1.6rem;
}

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; }
.category-card {
  position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: rgba(41, 230, 255, 0.45); box-shadow: 0 18px 40px -20px rgba(41, 230, 255, 0.45); }
.category-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.category-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.category-title { margin: 0.4rem 0 0; font-size: 1.2rem; }
.category-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  color: var(--link); background: rgba(41, 230, 255, 0.1); border: 1px solid rgba(41, 230, 255, 0.25);
}
.cat-stack { display: flex; margin-top: 0.75rem; padding-left: 10px; }
.cat-stack-item { margin-left: -10px; }
.cat-stack-item img, .cat-stack-item .game-icon { width: 48px; height: 48px; border-radius: 13px; border: 2px solid var(--surface); }
.category-games { font-size: 0.82rem !important; }

/* Feature (benefit) cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; }
.feature-card { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-card h3 { margin: 1rem 0 0.5rem; font-size: 1.12rem; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.feature-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--grad-primary); color: #FFFFFF; box-shadow: 0 10px 24px -10px rgba(135, 60, 255, 0.9);
}

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.post-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(135, 60, 255, 0.55); box-shadow: var(--glow); }
.post-card:hover .card-more .icon { transform: translateX(3px); }
.post-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.post-card-media { aspect-ratio: 1200 / 630; background: var(--navy-3); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.post-card-title { font-size: 1.15rem; margin: 0; }
.post-card-text { color: var(--text-muted); font-size: 0.93rem; margin: 0 0 0.25rem; }
.post-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.25rem; }
.post-games { display: flex; padding-left: 8px; }
.post-games .game-icon { width: 36px; height: 36px; margin-left: -8px; border-radius: 10px; border: 2px solid var(--surface); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.9); }
.featured-post .post-games .game-icon { width: 44px; height: 44px; border-radius: 12px; }

/* "Games in this article" chips under an article's byline */
.article-games { margin-top: 1.25rem; }
.article-games-label { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.article-games ul { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.game-chip {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.game-chip:hover { color: var(--text); border-color: rgba(41, 230, 255, 0.6); background: rgba(41, 230, 255, 0.08); transform: translateY(-2px); }
.game-chip .game-icon { width: 40px; height: 40px; border-radius: 11px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0; font-size: 0.82rem; color: var(--text-muted); }

/* 8. Page-specific sections ---------------------------------------------- */
/* Mood panel */
.mood-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius-lg);
  background: radial-gradient(90% 120% at 0% 0%, rgba(135, 60, 255, 0.28), transparent 60%), var(--surface);
  border: 1px solid rgba(135, 60, 255, 0.35);
}
.mood-copy p { color: var(--text-muted); font-size: var(--step-1); }
.mood-copy .section-title { font-size: var(--step-3); }
.mood-copy .btn { margin-top: 0.5rem; }
.mood-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.mood-chip {
  display: flex; flex-direction: column; gap: 0.2rem; height: 100%; min-height: 44px;
  padding: 1rem 1.1rem; border-radius: 16px; text-decoration: none;
  background: var(--sunken); border: 1px solid var(--border);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.mood-chip:hover { border-color: rgba(41, 230, 255, 0.6); background: rgba(41, 230, 255, 0.07); transform: translateY(-2px); }
.mood-q { color: var(--text); font-weight: 700; }
.mood-a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--link); font-size: 0.9rem; font-weight: 600; }

/* Studio intro */
.studio-intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.studio-logo img { width: 100%; max-width: 380px; margin-inline: auto; border-radius: 22%; box-shadow: var(--glow); }
.studio-copy p:not(.eyebrow) { color: var(--text-muted); font-size: var(--step-1); }

/* CTA band */
.cta-section { padding-top: 0; }
.section-alt + .cta-section { padding-top: var(--section); }
.cta-band {
  position: relative; text-align: center; padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(135, 60, 255, 0.45), transparent 70%),
    radial-gradient(50% 100% at 100% 100%, rgba(41, 230, 255, 0.18), transparent 70%),
    var(--surface);
  border: 1px solid rgba(135, 60, 255, 0.4);
}
.cta-band h2 { font-size: var(--step-4); margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-muted); font-size: var(--step-1); max-width: 36rem; margin: 0 auto 1.75rem; }

/* Games page toolbar */
.toolbar { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.search-field label { display: block; font-weight: 700; margin-bottom: 0.45rem; }
.search-input-wrap { position: relative; max-width: 520px; }
.search-input-wrap input {
  width: 100%; min-height: 52px; padding: 0.75rem 1rem 0.75rem 3rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
}
.search-input-wrap input::placeholder, .field ::placeholder { color: var(--placeholder); }
.search-input-wrap input:focus { border-color: var(--link); outline: 3px solid rgba(41, 230, 255, 0.35); outline-offset: 0; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  min-height: 44px; padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); color: var(--text-muted); font-weight: 600; font-size: 0.92rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: rgba(41, 230, 255, 0.6); }
.filter-btn[aria-pressed="true"] { background: var(--grad-primary); border-color: transparent; color: #FFFFFF; }
.filter-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.result-count { color: var(--text-muted); font-size: var(--step--1); margin-bottom: 1.25rem; }

.empty-state {
  text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1.5rem; margin-top: 1rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--sunken);
}
.empty-state h2 { font-size: var(--step-2); margin-top: 1rem; }
.empty-state p { color: var(--text-muted); }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(135, 60, 255, 0.18); color: var(--link); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Game detail page */
.game-hero { position: relative; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3rem); overflow: hidden; }
.game-hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.game-hero-icon .game-icon { width: clamp(160px, 18vw, 240px); height: auto; border-radius: 22%; box-shadow: var(--glow); }
.game-hero-copy h1 { font-size: var(--step-4); margin: 0.75rem 0 0.4rem; }
.game-headline { font-size: var(--step-2); font-weight: 700; margin-bottom: 0.6rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-intro { color: var(--text-muted); font-size: var(--step-1); max-width: 40rem; }
.game-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.status-block {
  display: flex; align-items: flex-start; gap: 0.75rem; margin: 0; padding: 0.9rem 1.1rem; max-width: 34rem;
  border-radius: 16px; background: rgba(255, 200, 61, 0.08); border: 1px solid rgba(255, 200, 61, 0.35);
  color: var(--text-muted); font-size: 0.95rem;
}

.status-block strong { display: block; color: var(--text); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.detail-block + .detail-block { margin-top: 2.5rem; }
.detail-block h2 { font-size: var(--step-3); }
.detail-block p { color: var(--text-muted); font-size: 1.05rem; max-width: 46rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.check-list .icon { color: var(--ok-text-strong); margin-top: 0.25rem; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 240px); gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.shots img { border-radius: 16px; border: 1px solid var(--border); }
.side-card { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.side-title { font-size: 1.1rem; margin-bottom: 1rem; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.side-help { margin: 1rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
.support-note { margin: 1rem 0 0; font-size: 0.9rem; }

/* About */
.prose-narrow { max-width: 820px; }
.prose-narrow p { color: var(--text-muted); font-size: var(--step-1); }
.about-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.about-cats li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.about-cats h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.about-cats p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.feature-grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.explore-panel { text-align: center; }
.explore-panel p { color: var(--text-muted); font-size: var(--step-1); max-width: 34rem; margin-inline: auto; }
.icon-strip { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.icon-strip img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.9); }

/* Contact */
.notice {
  display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 2rem;
  border-radius: 16px; background: rgba(255, 200, 61, 0.08); border: 1px solid rgba(255, 200, 61, 0.4); color: var(--text-muted);
}
.notice .icon { color: var(--note-strong); margin-top: 0.2rem; }
.notice strong { color: var(--text); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.topic-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.topic-card h3 { margin: 0.75rem 0 0; font-size: 1.02rem; }
.topic-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.topic-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; margin-top: auto; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.topic-pending { margin-top: auto !important; padding-top: 0.5rem; font-size: 0.85rem !important; font-style: italic; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: start; }
.contact-info p { color: var(--text-muted); }
.contact-info h3 { margin-top: 1.75rem; font-size: 1.05rem; }
.direct-email { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.copy-status { color: var(--ok-text-strong); font-size: 0.85rem; font-weight: 600; }

/* 9. FAQ, forms, legal & article pages ----------------------------------- */
.contact-form { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 1rem; border-radius: 14px;
  background: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.75rem; }
.field textarea { resize: vertical; min-height: 150px; }
.field option { background: var(--surface); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--link); outline: 3px solid rgba(41, 230, 255, 0.35); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.field-error { margin: 0.4rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--error); }
.field-error::before { content: "\26A0\00a0"; }
.req { color: var(--error); }
.optional { font-weight: 500; color: var(--text-muted); font-size: 0.88rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: 1rem; }
.form-submit { width: 100%; margin-top: 0.25rem; }
.form-submit[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.form-fallback { margin: 0 0 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--sunken); border: 1px solid var(--border-strong); }
.form-fallback p { color: var(--text-muted); font-size: 0.93rem; }
.form-success {
  text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--ok-border);
}
.form-success:focus { outline: none; }
.form-success h3 { font-size: var(--step-2); margin: 1rem 0 0.5rem; }
.form-success p { color: var(--text-muted); }
.success-icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok-text-strong); border: 1px solid var(--ok-border);
}
.success-icon .icon { width: 28px; height: 28px; }
.success-icon-lg { width: 76px; height: 76px; margin-bottom: 1.5rem; }
.success-icon-lg .icon { width: 36px; height: 36px; }
.form-status:empty { display: none; }
.form-status { padding: 0.85rem 1rem; border-radius: 12px; font-weight: 600; font-size: 0.93rem; }
.form-status.is-error { background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-border); }
.form-status.is-info { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.form-status.is-pending { background: var(--sunken); color: var(--text-muted); border: 1px solid var(--border-strong); }

/* FAQ */
.faq-compact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: start; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s ease; }
.faq-item:has([aria-expanded="true"]) { border-color: rgba(135, 60, 255, 0.55); }
.faq-q { margin: 0; font-size: 1rem; }
.faq-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 1rem 1.2rem; background: none; border: 0; border-radius: 16px;
  text-align: left; font-weight: 700; font-size: 1.02rem; cursor: pointer; color: var(--text);
}
.faq-toggle:hover { color: var(--link-hover); }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(135, 60, 255, 0.22); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-toggle[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 1.2rem 1.2rem; color: var(--text-muted); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
.faq-aside .result-count { margin: 0.75rem 0; min-height: 1.5em; }
.faq-jump { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.faq-jump a { display: flex; align-items: center; min-height: 44px; padding: 0.4rem 0.85rem; border-radius: 12px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.faq-jump a:hover { color: var(--text); background: var(--hover-bg); }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group-title { font-size: var(--step-2); }
mark.hl { background: rgba(255, 200, 61, 0.3); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Prose (articles & legal) */
.prose { font-size: 1.06rem; line-height: 1.8; color: var(--prose); max-width: 760px; }
.prose h2 { font-size: var(--step-3); margin: 2.5rem 0 0.75rem; color: var(--text); }
.prose h3 { font-size: var(--step-2); margin: 2rem 0 0.6rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--link); }
.prose strong { color: var(--text); }
.prose .lead { font-size: var(--step-1); color: var(--text); }
.prose section:first-of-type h2, .prose > h2:first-child { margin-top: 0; }
.owner-note {
  display: block; margin: 1rem 0 1.25rem; padding: 0.9rem 1.1rem; border-radius: 12px;
  background: var(--note-bg); border: 1px dashed var(--note-border); color: var(--note-text); font-size: 0.93rem; line-height: 1.6;
}
.owner-note strong { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--note-strong); }
.owner-inline { color: var(--note-text); background: var(--note-bg); border-radius: 6px; padding: 0 0.3rem; font-size: 0.95em; }
.notice-draft { margin-bottom: 2rem; }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.legal section { scroll-margin-top: calc(var(--header-h) + 16px); }
.toc { position: sticky; top: calc(var(--header-h) + 1rem); font-size: 0.92rem; }
.toc-details { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.toc summary { font-weight: 800; cursor: pointer; min-height: 32px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--link); font-size: 1.2rem; }
.toc details[open] summary::after { content: "\2212"; }
.toc ol { margin: 0.75rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.toc a { color: var(--text-muted); text-decoration: none; display: inline-block; padding: 0.15rem 0; }
.toc a:hover { color: var(--text); text-decoration: underline; }

/* Blog */
.blog-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 1.5rem; align-items: stretch; }
.featured-post {
  position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid rgba(135, 60, 255, 0.4); transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.featured-post:hover { box-shadow: var(--glow); }
.featured-post:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.featured-media { aspect-ratio: 1200 / 630; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: flex; flex-direction: column; gap: 0.6rem; }
.featured-title { font-size: var(--step-3); margin: 0.25rem 0 0; }
.featured-body p:not(.post-meta) { color: var(--text-muted); margin: 0; }
.picks { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.picks-list { list-style: none; counter-reset: pick; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.picks-list li { counter-increment: pick; }
.picks-list a { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 0.5rem; padding: 0.85rem 0.5rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.picks-list a::before { content: counter(pick, decimal-leading-zero); grid-row: span 2; font-weight: 800; font-size: 1.05rem; color: var(--link); }
.picks-list a:hover { background: var(--hover-bg); }
.pick-title { font-weight: 700; line-height: 1.35; }
.pick-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

.article-header { padding-top: clamp(2rem, 1.5rem + 3vw, 4rem); }
.article-header h1 { font-size: var(--step-4); margin: 0.75rem 0; }
.article-byline { color: var(--text-muted); }
.article-byline span { color: var(--text); font-weight: 700; }
.article-figure { margin: 2rem 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1200 / 630; background: var(--navy-3); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem) var(--section); max-width: 1100px; }
.article-layout.has-toc { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
.article-layout:not(.has-toc) .article-body { margin-inline: auto; }
.article-body h2, .article-body h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.article-back { margin-top: 2.5rem; }

/* 404 */
.not-found { position: relative; overflow: hidden; padding-block: clamp(4rem, 3rem + 6vw, 8rem); text-align: center; }
.not-found-inner { max-width: 760px; }
.not-found h1 { font-size: var(--step-4); }
.not-found .page-intro { margin-inline: auto; }
.nf-pieces { display: grid; grid-template-columns: repeat(2, 56px); gap: 10px; justify-content: center; margin-bottom: 2rem; transform: rotate(-8deg); }
.nf-pieces span { width: 56px; height: 56px; border-radius: 14px; background: var(--grad-primary); box-shadow: var(--glow); }
.nf-pieces span:nth-child(2) { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.nf-pieces span:nth-child(4) { background: linear-gradient(135deg, var(--magenta), var(--purple)); }
.nf-pieces .nf-missing { background: none; border: 2px dashed rgba(184, 193, 223, 0.55); box-shadow: none; }

/* 10. Footer -------------------------------------------------------------- */
.site-footer { margin-top: 0; padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); background: var(--footer-bg); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.footer-brand p { color: var(--text-muted); max-width: 26rem; margin-top: 1rem; font-size: 0.93rem; }
.footer-heading { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--text-muted); }

/* 11. Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .studio-intro, .mood-panel, .faq-compact, .contact-layout, .detail-grid, .blog-top { grid-template-columns: minmax(0, 1fr); }
  .hero-icons { max-width: min(380px, 86%); }
  .hero { padding-top: 2.5rem; }
  .side-card, .faq-aside, .toc { position: static; }
  .faq-layout, .legal-layout, .article-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
  .faq-jump { display: flex; flex-wrap: wrap; }
  .toc-details:not([open]) ol { display: none; }
}
@media (max-width: 720px) {
  /* Filters and FAQ categories become one swipeable row instead of a tall stack */
  .filter-group, .faq-jump {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0.25rem var(--gutter) 0.5rem;
  }
  .filter-group::-webkit-scrollbar, .faq-jump::-webkit-scrollbar { display: none; }
  .filter-btn, .faq-jump li { flex: none; scroll-snap-align: start; }
  .faq-jump a { white-space: nowrap; border: 1px solid var(--border-strong); border-radius: 999px; }
  .topic-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .topic-card .feature-icon { grid-row: span 3; }
  .topic-card h3 { margin-top: 0.1rem; }
  .topic-card > :last-child { grid-column: 2; }
  .page-hero-split { grid-template-columns: minmax(0, 1fr); }
  .page-hero-logo { width: 160px; order: -1; }
  .game-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .game-hero-icon .game-icon { width: 150px; }
  .mood-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .game-card { padding: 0.9rem; gap: 0.9rem; }
  .game-card-media, .game-card-media .game-icon { width: 80px; height: 80px; border-radius: 18px; }
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 1.15rem; }
  .facts div { flex-direction: column; gap: 0.15rem; }
  .facts dd { text-align: left; }
}

/* 12. Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero-icon { animation: float 7s ease-in-out infinite; }
  .hero-icon:nth-child(2n) { animation-delay: -2.5s; }
  .hero-icon:nth-child(3n) { animation-delay: -4.5s; }
  @keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 13. Blog, sharing & rich article content (CMS) -------------------------- */
.btn-sm { min-height: 40px; padding: 0.45rem 0.95rem; font-size: 0.86rem; }
.game-card .play-btn { position: relative; z-index: 2; }
.play-btn .icon { fill: currentColor; stroke: none; }

.hero-sub { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 700; margin-bottom: 0.6rem; color: var(--text); }
.hero-title { line-height: 1.04; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-stats li {
  display: flex; flex-direction: column; gap: 0.1rem; min-width: 7.5rem; padding: 0.75rem 1rem; border-radius: 16px;
  background: var(--sunken); border: 1px solid var(--border);
}
.hero-stats strong { font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow .icon { color: var(--gold-ink); }

/* Editorial masthead */
.blog-masthead { position: relative; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) 0; }
.blog-masthead::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 80% at 85% 0%, var(--body-glow-1), transparent 70%);
}
.masthead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 1.5rem 3rem; align-items: end; padding-bottom: 1.75rem; border-bottom: 2px solid var(--text); }
.masthead-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 0.75rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--link);
}
.masthead-kicker span:last-child { color: var(--text-muted); letter-spacing: 0.08em; }
.masthead-title { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 0.9rem; }
.blog-search .search-input-wrap { max-width: none; }
html:not(.js) .blog-search { display: none; }
.topic-nav { padding-block: 1rem; border-bottom: 1px solid var(--border); }
.topic-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic-pill {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.4rem 0.9rem; border-radius: 999px;
  color: var(--text-muted); font-weight: 700; font-size: 0.88rem; text-decoration: none; border: 1px solid var(--border-strong);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.topic-pill:hover { color: var(--text); border-color: rgba(41, 230, 255, 0.6); }
.topic-pill[aria-current="page"] { color: #FFFFFF; background: var(--grad-primary); border-color: transparent; }
.pill-count { font-size: 0.72rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--hover-bg); }
.topic-pill[aria-current="page"] .pill-count { background: rgba(255, 255, 255, 0.2); }
.kicker { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; flex: none; }
.picks .side-title { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--text); }
.picks .side-title .icon { color: var(--link); }
.post-card-media-empty { display: grid; place-items: center; color: var(--text-muted); background: radial-gradient(circle at 30% 20%, rgba(135, 60, 255, 0.35), transparent 60%), var(--surface-2); }
.post-card-media-empty .icon { width: 44px; height: 44px; opacity: 0.6; }
.featured-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; }

/* Pagination */
.pagination { margin-top: 2.5rem; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.page-num, .page-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 44px; min-height: 44px; padding: 0 0.85rem;
  border-radius: 12px; border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-weight: 700;
}
a.page-num:hover, .page-btn:hover { border-color: rgba(41, 230, 255, 0.6); background: rgba(41, 230, 255, 0.08); color: var(--text); }
.page-num[aria-current="page"] { background: var(--grad-primary); color: #FFFFFF; border-color: transparent; }

/* Topic cards on the blog home */
.topic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.topic-card-lg {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s ease, border-color 0.25s ease;
}
.topic-card-lg:hover { transform: translateY(-3px); border-color: rgba(135, 60, 255, 0.55); }
.topic-card-lg:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.topic-card-lg h3 { margin: 0; font-size: 1.1rem; }
.topic-card-lg p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.topic-count { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 0.5rem; color: var(--link); font-weight: 700; font-size: 0.86rem; }

/* Article extras */
.article-dek { font-size: var(--step-1); color: var(--text-muted); max-width: 44rem; }
.article-header .chip { text-decoration: none; }
.article-main { min-width: 0; }
.article-tags ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--sunken); border: 1px solid var(--border-strong); color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.tag:hover { color: var(--text); border-color: rgba(41, 230, 255, 0.6); }
.share { margin-top: 2rem; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.share-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-weight: 800; }
.share-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share-link {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.35rem 0.9rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text); font-weight: 700; font-size: 0.86rem; text-decoration: none;
}
.share-link:hover { color: var(--text); border-color: rgba(41, 230, 255, 0.6); background: rgba(41, 230, 255, 0.08); }
.share-native { background: var(--grad-primary); color: #FFFFFF; border-color: transparent; }
.share-list .copy-status { margin-left: 0.4rem; }
.reading-progress { position: sticky; top: 0; z-index: 101; height: 3px; margin-bottom: -3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--grad-text); }
html:not(.js) .reading-progress { display: none; }

/* Rich content written in the dashboard editor */
.prose a { font-weight: 600; }
.prose h4 { font-size: var(--step-1); margin: 1.75rem 0 0.5rem; color: var(--text); }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; border: 1px solid var(--border); }
.prose figure { margin: 2rem 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.prose blockquote {
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 4px solid; border-image: var(--grad-text) 1;
  font-size: var(--step-1); font-style: italic; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; margin: 2.5rem 0; background: var(--border-strong); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; padding: 0.12em 0.4em; border-radius: 6px; background: var(--sunken); border: 1px solid var(--border); }
.prose pre { margin: 1.75rem 0; padding: 1.1rem 1.25rem; overflow-x: auto; border-radius: var(--radius-sm); background: var(--sunken); border: 1px solid var(--border); line-height: 1.6; }
.prose pre code { padding: 0; border: 0; background: none; font-size: 0.88rem; }
.table-wrap { margin: 1.75rem 0; overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.prose th, .prose td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); background: var(--surface); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose caption { padding: 0.75rem 1rem; text-align: left; color: var(--text-muted); font-size: 0.88rem; caption-side: bottom; }
.prose mark { background: rgba(255, 200, 61, 0.3); color: inherit; padding: 0 0.15em; border-radius: 3px; }

@media (max-width: 960px) {
  .masthead-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 720px) {
  .topic-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .topic-nav ul::-webkit-scrollbar { display: none; }
  .topic-nav li { flex: none; }
  .hero-stats li { min-width: 0; flex: 1 1 30%; }
}

@media print {
  .site-header, .site-footer, .toc, .cta-section, .hero-art, .share, .reading-progress { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; }
}

/* 14. Cookie consent (only shown when Google Analytics is enabled) -------- */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; margin-inline: auto; max-width: 720px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--header-bg-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.consent-text { margin: 0; flex: 1 1 320px; font-size: 0.92rem; color: var(--text-muted); }
.consent-text strong { color: var(--text); }
.consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.consent-actions .btn { min-height: 42px; padding-block: 0.5rem; }
.footer-link-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 0.95rem; cursor: pointer; }
.footer-link-btn:hover { color: var(--text); text-decoration: underline; }
@media print { .consent { display: none !important; } }
