/* ============================================================
   THE CHOICER VOICER — Inner game page stylesheet
   Cream paper + warm rose radial — matches choicervoicer.online hub.
   ============================================================ */

:root {
  --bg:              #f8eee3;
  --bg-2:            #fff4e7;
  --paper:           #f8eee3;
  --ink:             #19091e;
  --ink-2:           #2a132a;
  --text:            #2a132a;
  --text-2:          #583f50;
  --text-muted:      #7c6376;
  --plum:            #411238;
  --plum-2:          #5a1d4e;
  --rose:            #ff5d7c;
  --rose-2:          #ff89a1;
  --rose-deep:       #c9305a;
  --lime:            #d8ff80;
  --lime-2:          #b9ef5a;
  --line:            rgba(25, 9, 30, 0.10);
  --line-strong:     rgba(25, 9, 30, 0.22);
  --border:          rgba(25, 9, 30, 0.10);
  --border-bright:   rgba(25, 9, 30, 0.22);

  --sans:            'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display:         'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:            'DM Mono', 'Courier New', monospace;

  --radius:          10px;
  --radius-lg:       18px;
  --max-w:           1180px;

  --shadow:          0 10px 30px rgba(25, 9, 30, 0.10), 0 2px 8px rgba(25, 9, 30, 0.08);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 17px; line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 88% -10%, rgba(255, 93, 124, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 8% 110%, rgba(255, 200, 150, 0.15) 0%, transparent 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/></svg>");
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 0 0 0.5em; line-height: 1.1;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 6px 0 24px;
}
h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  border-left: 3px solid var(--rose);
  padding-left: 14px;
}
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink); }
em { color: var(--rose); font-style: normal; }
strong { color: var(--ink); }
a { color: var(--rose-deep); text-decoration: none; transition: color .18s ease; }
a:hover, a:focus { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--rose-deep); margin: 0 0 14px;
}
.eyebrow i {
  display: inline-block; width: 8px; height: 8px;
  background: var(--rose); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 93, 124, 0.18);
  font-style: normal;
}

/* ============================================================
   TOPBAR (sticky)
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(248, 238, 227, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); line-height: 1;
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: -0.02em;
}
.brand::before {
  content: "CV"; display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: -0.5px;
}
.brand > span:not(:first-child) {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: -0.02em; line-height: 0.95;
}
.back {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-2);
  text-decoration: none;
}
.back:hover { color: var(--ink); text-decoration: none; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) 80px;
}

h1 { margin: 8px 0 28px; }
h1 br { display: block; }

/* ============================================================
   GAME SHELL (iframe + gamebar)
   ============================================================ */
.game-shell {
  position: relative;
  background: var(--ink);
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--rose), var(--shadow);
  margin: 0 0 28px;
}
.gamebar {
  height: 36px; padding: 0 12px;
  background: rgba(255, 244, 231, 0.10);
  color: var(--bg-2);
  display: flex; align-items: center; justify-content: space-between;
  font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 7px 7px 0 0;
  margin-bottom: 6px;
}
.gamebar span { display: inline-flex; align-items: center; gap: 6px; }
.gamebar b { color: var(--lime); font-weight: 500; }

iframe {
  display: block; width: 100%;
  height: min(64vw, 720px);
  min-height: 460px;
  border: 0; background: #000;
  border-radius: 0 0 7px 7px;
}

.fallback { margin: 12px 0 0; padding: 4px 6px 0; color: var(--text-2); font-size: 13px; }
.fallback a { color: var(--rose-deep); }

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  max-width: 760px; margin: 36px 0 0;
  font-size: 16px; line-height: 1.7; color: var(--text-2);
}
.intro h2 { margin: 0 0 12px; }
.intro p strong { color: var(--ink); }
.intro a { color: var(--rose-deep); }

/* ============================================================
   FOOTER (small, simple)
   ============================================================ */
footer {
  margin-top: 60px;
  padding: 28px clamp(20px, 4vw, 48px);
  background: var(--ink); color: var(--bg-2);
  font: 12px/1.6 var(--mono); text-align: center;
  color: rgba(255, 244, 231, 0.55);
}
footer a { color: var(--lime); text-decoration: none; }
footer a:hover { color: var(--rose-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .page { padding: 30px 18px 60px; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  iframe { height: 72vw; min-height: 420px; }
  .topbar { padding: 10px 16px; }
  .back { font-size: 11px; }
}

@media (max-width: 420px) {
  iframe { height: 80vw; min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
