/* Stream Buddies — styled after the Eldritch One site (same tokens, type and shapes).
   Fonts are self-hosted (SIL Open Font License), so no visitor data goes to a font service. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  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: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  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: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Eldritch One tokens */
  --ink: #0c0b0d;
  --ink-2: #16141a;
  --ink-3: #1d1a22;
  --bone: #ece5d4;
  --dim: #8f887b;
  --rule: rgba(236, 229, 212, 0.16);
  --violet: #6a24e0;
  --violet-hi: #b98cff;
  --night: #0b1a44;
  --gold: #ffd23f;
  /* Stream Buddies accent: the frogs' own green, used sparingly next to gold */
  --frog: #7bd36b;
  --frog-deep: #0f4a12;
  --pad: clamp(16px, 4vw, 56px);
  --bar: 64px;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* Live previews keep the overlay's own scheme, or browsers paint them white. */
iframe.frogs { color-scheme: light; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Nothing on the site is selectable (no blue/gold selection boxes over the
   characters or text); only things you type into are. */
body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img, iframe { -webkit-user-drag: none; }
/* Nearest-neighbor everywhere: pixel art and renders never get smoothed. */
img { image-rendering: pixelated; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
code { font-family: var(--mono); font-size: 0.88em; }
kbd {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px;
  font: 700 18px/1 var(--mono); color: var(--ink); background: var(--bone);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 10px 14px; z-index: 99; }
.skip:focus { left: 0; }

/* Shared type */
.kicker { font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.wordmark {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: 26px; line-height: 1; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--frog); }
.new {
  display: inline-block; vertical-align: 0.12em; margin-left: 6px;
  padding: 3px 6px; background: var(--gold); color: var(--ink);
  font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 16px 22px;
  font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-line { color: inherit; }
.btn-line:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn-ink:hover { background: transparent; color: var(--ink); }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: 0 var(--pad);
  background: rgba(12, 11, 13, 0.94);
  border-bottom: 1px solid var(--rule);
}
.menu { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-right: auto; }
.menu a {
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--bone);
  padding: 22px 0 20px; border-bottom: 2px solid transparent;
}
.menu a:hover { border-color: var(--gold); }
.bar-cta {
  font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  background: var(--bone); color: var(--ink); padding: 12px 16px; white-space: nowrap;
}
.bar-cta:hover { background: var(--gold); }
/* Signed in: the button becomes you. */
.bar-cta.is-me { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.cta-avatar { width: 24px; height: 24px; display: grid; place-items: center; background: var(--frog-deep); color: var(--frog); font: 700 12px/1 var(--mono); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--rule); color: var(--bone);
  font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 11px 14px; cursor: pointer;
}

/* The live overlay, embedded. It's transparent, so the frogs sit on the page itself.
   pointer-events off: scrolling over it scrolls the page instead of zooming the camera. */
.frogs { display: block; width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; }
.clickable-frogs { cursor: pointer; }
/* Drag-to-spin areas: grab hand, and no browser scrolling/zooming under a drag. */
.spin-area { cursor: grab; touch-action: pan-y; }
.spin-area.is-spinning { cursor: grabbing; }
.spin-hint {
  position: absolute; right: 12px; bottom: 12px; pointer-events: none;
  font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim);
  background: rgba(12, 11, 13, 0.75); padding: 7px 9px;
}

/* ---------- Hero ---------- */
/* Frogs first: a full screen of the live overlay (same camera and height as a real
   OBS source, so they're the same size), then the headline and pitch below them. */
.hero {
  position: relative; overflow: hidden;
  padding-top: var(--bar);
  background:
    radial-gradient(70% 38% at 50% 34%, rgba(123, 211, 107, 0.11), transparent 70%),
    var(--ink);
}
/* Only as tall as the row of frogs needs at this width (the overlay auto-fits its
   camera), so the frogs stay huge and the headline follows with no dead space. */
.hero-stage { position: relative; z-index: 1; height: min(calc(100svh - var(--bar)), 36vw); min-height: 300px; }
.hero-copy {
  position: relative; z-index: 2; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 4vw, 64px);
}
.hero .kicker { color: var(--frog); margin-bottom: 18px; }
.hero-title {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(48px, 5.6vw, 104px); line-height: 0.86; letter-spacing: -0.005em;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-side { padding-bottom: 0.4em; }
.hero-line { max-width: 44ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; font-weight: 500; color: var(--bone); }
.hero-side .actions { margin-top: 24px; }
.hero-note {
  position: absolute; z-index: 3; right: var(--pad); top: 22px;
  font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim);
  display: flex; align-items: center; gap: 8px;
}
.live-dot { width: 8px; height: 8px; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); animation: live 1.6s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }
/* Hero video: a short loop of the same frogs while the live overlay loads. It's on
   black, and lighten blends that black away into the hero glow, so there's no box.
   It sits beside .hero-stage, not in it: the stage's z-index would cut the blend
   off from the glow. The live frogs and the "Live" note fade in once the overlay
   says it's ready (site.js adds .is-live). */
.hero-top { position: relative; }
.hero-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; pointer-events: none;
  mix-blend-mode: lighten;
  transition: opacity 0.6s ease;
}
.hero .hero-stage .frogs, .hero .hero-note { transition: opacity 0.6s ease; }
.hero:not(.is-live) .hero-stage .frogs, .hero:not(.is-live) .hero-note { opacity: 0; }
.hero.is-live .hero-preview { opacity: 0; }
.hero-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); background: rgba(12, 11, 13, 0.6);
}
.hero-strip li { padding: 22px var(--pad); font-weight: 700; font-size: 16px; }
.hero-strip li + li { border-left: 1px solid var(--rule); }
.hero-strip span { font: 600 12px/1 var(--mono); margin-right: 12px; color: var(--gold); }

/* ---------- Make your character (live picker) ---------- */
/* Title and pitch across the top; the 3D view below on the left, as tall as
   the controls beside it, so no space is wasted. */
.maker {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "head head" "stage panel";
  column-gap: clamp(24px, 3.5vw, 56px); row-gap: clamp(18px, 2.2vw, 30px); align-items: stretch;
  margin: 0 var(--pad) clamp(56px, 7vw, 96px);
  padding: clamp(22px, 3vw, 40px);
  background: var(--ink-2); border: 1px solid var(--rule);
  box-shadow: 14px 14px 0 var(--frog-deep);
}
.maker-head {
  grid-area: head; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(20px, 4vw, 64px);
  padding-bottom: clamp(14px, 1.8vw, 22px); border-bottom: 1px solid var(--rule);
}
.maker-head .maker-line { margin: 0; max-width: 52ch; }
.maker-panel { grid-area: panel; align-self: center; }
.maker-stage {
  grid-area: stage; position: relative; min-height: 420px; height: 100%; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 62%, rgba(123, 211, 107, 0.16), transparent 70%),
    repeating-linear-gradient(-45deg, var(--ink) 0 14px, #121015 14px 28px);
  border: 1px solid var(--rule);
}
.maker-clock {
  position: absolute; left: 12px; top: 12px; display: flex; gap: 10px; align-items: baseline;
  padding: 8px 10px; background: var(--ink); border: 1px solid var(--rule);
  font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim);
}
.maker-clock b { font: 900 22px/1 var(--display); font-stretch: 62%; color: var(--gold); letter-spacing: 0; }
.maker .kicker { color: var(--frog); margin-bottom: 14px; }
.maker-title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 58px); line-height: 0.9; }
.maker-title em { font-style: normal; color: var(--frog); }
.maker-line { color: var(--dim); }
.maker-panel > .pick:first-child { border-top: 0; }
.pick {
  display: grid; grid-template-columns: 92px 44px minmax(0, 1fr) 44px 64px; align-items: center; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--rule);
}
.pick-colors { padding: 7px 0; }
.pick-label { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.pick-arrow {
  height: 48px; border: 1px solid var(--bone); background: transparent; color: var(--bone); cursor: pointer;
  font: 700 16px/1 var(--mono); transition: background .1s, color .1s, transform .06s;
}
.pick-arrow:hover { background: var(--bone); color: var(--ink); }
.pick-arrow:active { transform: translate(2px, 2px); }
.pick-value {
  text-align: center; font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pick-count { font: 600 11px/1 var(--mono); color: var(--dim); text-align: right; }
.pick-colors { grid-template-columns: 92px minmax(0, 1fr); }
/* Compact swatches: one tight row where it fits. */
.swatches { display: flex; flex-wrap: wrap; gap: 3px; }
.swatch {
  width: 18px; height: 18px; border: 1px solid rgba(0, 0, 0, 0.5); cursor: pointer; padding: 0;
}
.swatch:hover { transform: scale(1.15); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 1px; }
.pick-shiny { grid-template-columns: 92px minmax(0, 1fr); }
.shiny-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border: 1px solid var(--bone); background: transparent; color: var(--bone); cursor: pointer;
  font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.shiny-btn .sparkle { font-size: 18px; color: var(--dim); }
.shiny-btn[aria-pressed="true"] {
  border-color: var(--gold); color: var(--ink);
  background: linear-gradient(110deg, #ffd23f 0%, #fff6c4 38%, #ffd23f 52%, #f2b400 100%);
  background-size: 220% 100%; animation: shine 2.4s linear infinite;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}
.shiny-btn[aria-pressed="true"] .sparkle { color: var(--ink); }
.shiny-btn:disabled, .outline-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.finish { display: flex; flex-wrap: wrap; gap: 8px; }
.outline-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border: 1px solid var(--bone); background: transparent; color: var(--bone); cursor: pointer;
  font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.outline-btn .ring { width: 14px; height: 14px; border: 3px solid var(--dim); }
.outline-btn[aria-pressed="true"] { background: var(--bone); color: var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); }
.outline-btn[aria-pressed="true"] .ring { border-color: var(--ink); background: var(--frog); }
@keyframes shine { to { background-position: -220% 0; } }
.pick-size { grid-template-columns: 92px minmax(0, 1fr) 64px; }
.pick-size input { width: 100%; accent-color: var(--gold); }
.maker .actions { margin-top: 20px; }

/* ---------- Sections (Eldritch "entry" and "lineup") ---------- */
.entry { padding: 0 var(--pad) clamp(64px, 9vw, 128px); position: relative; }
.entry-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px;
  padding: clamp(48px, 6vw, 88px) 0 28px;
  border-bottom: 1px solid currentColor;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.entry-no { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; align-self: start; padding-top: 0.6em; }
.entry-head h2 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(42px, 6vw, 96px); line-height: 0.86; }
.entry-kind { font: 600 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; text-align: right; opacity: 0.8; }

.lineup { padding: clamp(64px, 8vw, 112px) var(--pad); }
.lineup-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.lineup-head h2 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(38px, 4.6vw, 72px); line-height: 0.88; }
.lineup-head p { color: var(--dim); max-width: 38ch; }

/* ---------- Trailer ---------- */
.entry-trailer {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 30%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 42%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 66%, #fff6 50%, transparent 51%),
    var(--night);
  color: #fff6df;
}
.entry-trailer .entry-head { border-color: var(--gold); }
.entry-trailer .entry-no, .entry-trailer .entry-kind { color: var(--gold); opacity: 1; }
.trailer-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
/* The trailer stays pinned while its step list scrolls past, then the page moves on. */
.trailer { transform: rotate(-1.5deg); position: sticky; top: calc(var(--bar) + 28px); }
.trailer.is-floating { animation: drift-l 7s ease-in-out infinite; }
@keyframes drift-l { 50% { transform: rotate(-0.4deg) translateY(-10px); } }
.trailer-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; box-shadow: 16px 16px 0 var(--gold); }
.trailer figcaption {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 28px;
  font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold);
}

/* The pretend stream behind the frogs */
.scene { position: absolute; inset: 0; }
.scene-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #1b2b6b 0%, #3a3f8f 45%, #b0587a 78%, #f3a35c 100%); }
.scene-hills {
  position: absolute; inset: auto 0 0 0; height: 46%;
  background:
    radial-gradient(70% 120% at 20% 100%, #1d3a2a 60%, transparent 61%),
    radial-gradient(60% 110% at 75% 100%, #16301f 60%, transparent 61%),
    radial-gradient(120% 70% at 50% 120%, #0f2216 60%, transparent 61%);
}
.scene-tag {
  position: absolute; left: 14px; top: 14px; padding: 6px 8px;
  font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.8);
}
/* Left of the call panel and above the caption; the overlay auto-fits into it. */
.frogs-trailer { position: absolute; left: 1%; right: 32%; top: 16%; height: 54%; width: auto; z-index: 2; }

/* Pretend Discord call panel, driven by the same live demo voices */
.voice {
  position: absolute; z-index: 3; right: 3%; top: 6%; width: min(36%, 230px);
  background: rgba(17, 18, 22, 0.86); padding: 10px 12px 12px; border-left: 3px solid var(--frog);
  font-size: clamp(11px, 1.15vw, 14px);
}
.voice-head { display: flex; align-items: center; gap: 6px; font: 700 0.85em/1.2 var(--mono); color: #c9cdd6; margin-bottom: 8px; text-transform: lowercase; }
/* Voice-channel mark: three little level bars. */
.vc-mark { width: 12px; height: 10px; background: linear-gradient(90deg, #c9cdd6 0 2px, transparent 2px 5px, #c9cdd6 5px 7px, transparent 7px 10px, #c9cdd6 10px 12px); clip-path: polygon(0 60%, 17% 60%, 17% 100%, 0 100%, 0 60%, 42% 30%, 58% 30%, 58% 100%, 42% 100%, 42% 30%, 83% 0, 100% 0, 100% 100%, 83% 100%, 83% 0); }
.voice-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #dfe2ea; font-weight: 600; }
.voice-list .av {
  width: 1.7em; height: 1.7em; flex: none; display: grid; place-items: center;
  background: var(--frog-deep); color: var(--frog); font: 700 0.8em/1 var(--mono);
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .08s;
}
.voice-list li.speaking .av { box-shadow: 0 0 0 2px #3ba55d; }
.voice-list li.speaking { color: #fff; }

/* Chapter layers */
.layer { position: absolute; z-index: 4; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.layer.is-on { opacity: 1; transform: none; }
.layer-card { left: 4%; top: 8%; display: flex; gap: 10px; }
.mini-card { width: clamp(72px, 11vw, 120px); background: var(--ink-2); border: 1px solid var(--rule); padding: 8px; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4); }
.mini-art { aspect-ratio: 1; display: grid; place-items: center; background: var(--frog-deep); margin-bottom: 6px; overflow: hidden; }
.mini-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-card b { display: block; font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(12px, 1.5vw, 18px); line-height: 1; }
.mini-card i { font: 600 9px/1.4 var(--mono); font-style: normal; color: var(--gold); text-transform: uppercase; }
.mini-plus { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, var(--ink-2) 0 10px, var(--ink-3) 10px 20px); }
.mini-plus span { font-size: clamp(28px, 5vw, 52px); color: rgba(236, 229, 212, 0.4); }
.layer-obs { left: 4%; top: 8%; width: min(58%, 420px); background: #22252b; padding: 12px 14px; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45); }
.obs-title { font: 700 11px/1 var(--mono); color: #aab; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.obs-field { background: #121418; border: 1px solid #3a3f48; padding: 8px 10px; font: 500 clamp(10px, 1.2vw, 13px)/1.2 var(--mono); color: var(--frog); white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 7px; height: 1em; vertical-align: -0.15em; background: var(--frog); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.obs-size { margin-top: 8px; font: 600 10px/1 var(--mono); color: #889; text-transform: uppercase; letter-spacing: 0.08em; }
.layer-layout { left: 30%; top: 30%; display: flex; align-items: center; gap: 10px; }
.drag-dot { width: 18px; height: 18px; border: 2px solid var(--gold); background: rgba(255, 210, 63, 0.25); animation: drag 2.4s ease-in-out infinite; }
@keyframes drag { 50% { transform: translate(60px, 20px); } }
.drag-label { font: 700 clamp(10px, 1.2vw, 13px)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; background: var(--gold); color: var(--ink); padding: 6px 8px; }
.layer-keys { left: 4%; top: 9%; display: flex; gap: 8px; align-items: center; }
.layer-keys kbd { min-width: clamp(30px, 4vw, 46px); height: clamp(30px, 4vw, 46px); font-size: clamp(12px, 1.5vw, 18px); }
.layer-keys kbd:nth-child(1) { animation: press 1.2s ease-in-out infinite; }
.layer-keys kbd:nth-child(2) { animation: press 1.2s ease-in-out .3s infinite; }
.layer-keys kbd:nth-child(3) { animation: press 1.2s ease-in-out .6s infinite; }
@keyframes press { 40% { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45); } }
/* A little drawn gold burst. */
.pop { width: 22px; height: 22px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%); animation: pop 1.2s ease-out infinite; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.layer-price { left: 4%; top: 9%; display: flex; flex-wrap: wrap; gap: 8px; }
/* Screen safe: the streamer's camera spot, kept clear of characters. */
.layer-safe { left: 3%; top: 6%; width: 28%; height: 44%; border: 2px solid var(--gold); background: rgba(255, 210, 63, 0.08); }
.layer-safe span { position: absolute; left: 6px; top: 4px; color: var(--gold); font: 500 11px/1 var(--mono); }
/* Chat commands. */
.layer-chat { left: 4%; top: 9%; display: grid; gap: 6px; }
.chat-line { margin: 0; padding: 8px 10px; background: rgba(12, 11, 13, 0.85); border-left: 3px solid var(--violet-hi); font: 600 clamp(11px, 1.3vw, 14px)/1.2 var(--mono); color: var(--bone); }
.chat-line b { color: var(--violet-hi); margin-right: 6px; }
.layer.is-on .chat-late { animation: chat-in .4s ease 2.2s both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Guest cameras: plain tiles standing in for friends' webcams. */
.layer-cams { left: 4%; top: 9%; display: flex; gap: 8px; }
.cam-tile { display: grid; place-items: center; width: clamp(90px, 14vw, 170px); aspect-ratio: 16 / 9; background: var(--ink-2); border: 1px solid var(--gold); color: var(--dim); font: 600 clamp(9px, 1.1vw, 12px)/1.2 var(--mono); text-transform: uppercase; text-align: center; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4); }
.chip { font: 700 clamp(11px, 1.4vw, 15px)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 12px; background: var(--bone); color: var(--ink); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4); }
.chip-gold { background: var(--gold); }
/* Platforms in their own colors. */
.chip-twitch { background: #9146ff; color: #fff; }
.chip-kick { background: #53fc18; color: #0b0e0f; }
.chip-youtube { background: #ff0000; color: #fff; }

/* Trailer captions + progress */
.trailer-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.trailer-bars { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 4px; }
.trailer-bars i { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.trailer-bars i b { display: block; height: 100%; width: 0; background: var(--gold); }
.trailer-bars i.done b { width: 100%; }
.caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(10px, 2vw, 22px) clamp(12px, 2.4vw, 28px);
  background: linear-gradient(0deg, rgba(5, 5, 10, 0.92), rgba(5, 5, 10, 0.55) 70%, transparent);
}
.caption-no { font: 700 11px/1 var(--mono); color: var(--gold); letter-spacing: 0.12em; }
.caption-text { margin-top: 6px; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(22px, 3.6vw, 52px); line-height: 0.9; color: #fff; }
.caption-sub { margin-top: 6px; font-size: clamp(12px, 1.3vw, 16px); color: rgba(255, 246, 223, 0.85); max-width: 52ch; }
.trailer-toggle {
  position: absolute; right: 12px; bottom: 12px; pointer-events: auto;
  padding: 8px 12px; background: var(--ink); color: var(--gold); border: 1px solid var(--gold);
  font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
}
.trailer-toggle:hover { background: var(--gold); color: var(--ink); }

/* Chapter list next to the trailer */
.chapters { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.chapters li { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.chapters button {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; width: 100%; text-align: left;
  padding: 16px 0; background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
}
.chapters .n { font: 600 12px/1.8 var(--mono); opacity: 0.6; }
.chapters b { display: block; font-weight: 800; font-size: 17px; line-height: 1.2; }
.chapters span.s { display: block; font-size: 14px; opacity: 0.75; margin-top: 2px; }
.chapters button[aria-current="step"] .n { color: var(--gold); opacity: 1; }
.chapters button[aria-current="step"] b { color: var(--gold); }
.chapters button:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buddies Controller (NES-style pad with Stream Deck keys) ---------- */
.entry-pad { background: var(--ink-2); border-top: 1px solid var(--rule); }
.entry-pad .entry-no, .entry-pad .entry-kind { color: var(--frog); opacity: 1; }
.pad-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pad-stage {
  position: relative; aspect-ratio: 1; border: 1px solid var(--rule);
  background: radial-gradient(60% 55% at 50% 62%, rgba(123, 211, 107, 0.16), transparent 70%), var(--ink);
  box-shadow: 12px 12px 0 var(--frog-deep);
}
.pad-stage iframe { position: absolute; inset: 0; }
.pad-note { margin-top: 18px; font: 600 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }

/* The controller body: light grey shell, black faceplate, red lettering. */
.nes {
  --shell: #cfcac4; --shell-dark: #a8a29b; --plate: #1d1c1f; --nes-red: #c8102e;
  justify-self: center; width: 100%; max-width: 720px;
}
.nes-face {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr 1.25fr; gap: clamp(12px, 2vw, 26px); align-items: center;
  padding: clamp(14px, 2.2vw, 26px);
  background: linear-gradient(180deg, var(--shell) 0%, var(--shell) 62%, var(--shell-dark) 100%);
  border-radius: 9px; box-shadow: 0 2px 0 #fff4 inset, 14px 14px 0 rgba(0, 0, 0, 0.5);
}
/* The black faceplate; the grey shows as a thin rim around it. */
.nes-face::before {
  content: ""; position: absolute; inset: clamp(5px, 0.6vw, 7px); border-radius: 6px; background: var(--plate);
  box-shadow: 0 0 0 2px #0006 inset;
}
.nes-face > * { position: relative; }
.dpad { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 1; width: 100%; max-width: 170px; justify-self: center; }
.dp { border: 0; background: #111; color: #555; font: 700 14px/1 var(--mono); cursor: pointer; box-shadow: 0 3px 0 #000; }
.dp:hover { color: var(--gold); }
.dp:active, .dp.is-down { transform: translateY(2px); box-shadow: 0 1px 0 #000; color: var(--gold); }
.dp-up { grid-area: 1 / 2; border-radius: 4px 4px 0 0; }
.dp-left { grid-area: 2 / 1; border-radius: 4px 0 0 4px; }
.dp-mid { grid-area: 2 / 2; background: #111; background-image: radial-gradient(circle, #222 34%, transparent 36%); }
.dp-right { grid-area: 2 / 3; border-radius: 0 4px 4px 0; }
.dp-down { grid-area: 3 / 2; border-radius: 0 0 4px 4px; }
.nes-mid { display: grid; gap: 10px; align-content: center; }
.nes-brand { font-weight: 900; font-stretch: 62%; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; color: var(--nes-red); letter-spacing: 0.04em; text-align: center; }
.nes-stripes { display: grid; gap: 6px; }
.nes-stripes i { height: 7px; background: #3a383d; border-radius: 3px; }
.mini-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
/* Stream Deck-style keys: little black screens with an icon and a label. */
/* Stream Deck-style keys: little lit screens. Type and a colored glow, no icons. */
.lcd {
  --key: var(--gold);
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 110%, color-mix(in srgb, var(--key) 45%, transparent), transparent 70%),
    linear-gradient(180deg, #24222a, #121115);
  color: #fff; border: 2px solid #050505; border-radius: 9px; cursor: pointer;
  font-family: inherit; /* buttons default to Arial; the labels are condensed Archivo */
  box-shadow: 0 4px 0 #000, 0 0 0 1px #3c3a40 inset;
  transition: transform .06s, box-shadow .06s;
}
.lcd::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 14%; height: 3px; background: var(--key); box-shadow: 0 0 10px var(--key); }
.lcd i { position: absolute; left: 8px; top: 7px; font: 600 9px/1 var(--mono); font-style: normal; color: #7d7884; }
.lcd b { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(11px, 1.15vw, 18px); line-height: 1; letter-spacing: 0; color: #f4efe6; text-shadow: 0 0 12px color-mix(in srgb, var(--key) 55%, transparent); }
.lcd:hover { box-shadow: 0 4px 0 #000, 0 0 0 2px var(--key) inset; }
.lcd:active, .lcd.is-down { transform: translateY(3px); box-shadow: 0 1px 0 #000, 0 0 0 2px var(--key) inset; }
.lcd-small { aspect-ratio: 2.2; border-radius: 999px; }
.lcd-small::after { display: none; }
.lcd-small b { font-size: 13px; }
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nes-tag { margin-top: 26px; color: var(--dim); text-align: center; max-width: 56ch; margin-inline: auto; }
/* "Powered by Tentacle" (links to tentacle.live). */
.powered {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px;
  font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); text-decoration: none;
}
/* The pixel Tentacle icon (48x49) at exactly 2x, nearest-neighbor, so every
   pixel stays sharp. No rotation or hover scaling: transforms re-blur pixel art. */
.powered img { width: 96px; height: 98px; flex: none; image-rendering: pixelated; }
.powered b { color: var(--violet-hi); font-weight: 700; }
.powered:hover { color: var(--bone); }
.powered-foot { justify-content: flex-start; margin-top: 18px; }
/* VController: it moves your own character on friends' streams too, while it's open. */
.pad-any { margin-top: clamp(40px, 5vw, 72px); padding: 16px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--frog); background: rgba(123, 211, 107, 0.06); font-size: 17px; line-height: 1.45; color: var(--bone); }
.pad-any b { font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: 24px; line-height: 1; color: var(--frog); margin-right: 6px; }
.pad-any + .pad-facts { margin-top: 24px; }
.pad-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.pad-facts li { padding: 20px 20px 0 0; }
.pad-facts li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.pad-facts b { display: block; font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: 26px; line-height: 1; margin-bottom: 8px; }
.pad-facts span { color: var(--dim); font-size: 15px; }

/* ---------- Chat plays: target one guest ---------- */
.entry-chat { background: var(--ink); }
.entry-chat .entry-no, .entry-chat .entry-kind { color: var(--violet-hi); opacity: 1; }
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: stretch; }
.chat-stage { position: relative; min-height: 340px; border: 1px solid var(--rule); background: radial-gradient(60% 50% at 50% 70%, rgba(185, 140, 255, 0.12), transparent 70%), var(--ink-2); box-shadow: 12px 12px 0 #2a1650; }
.chat-stage iframe { position: absolute; inset: 0; }
.chat-side { display: flex; flex-direction: column; gap: 14px; }
.chat-lede { color: var(--bone); font-size: 17px; }
.chat-log { height: 190px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 14px; background: var(--ink-2); border: 1px solid var(--rule); border-left: 3px solid var(--violet-hi); font: 500 13px/1.35 var(--mono); }
.chat-log p { color: #cfc9d8; }
.chat-log b { font-weight: 700; }
.chat-log em { font-style: normal; color: var(--gold); }
.chat-log .chat-talk { color: var(--bone); font-weight: 400; }
.chat-pick { display: grid; grid-template-columns: 52px 1fr; gap: 8px 10px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { padding: 9px 12px; background: transparent; border: 1px solid var(--rule); color: var(--bone); cursor: pointer; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.chip-btn:hover { border-color: var(--bone); }
.chip-btn[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip-act { text-transform: none; color: var(--violet-hi); border-color: rgba(185, 140, 255, 0.45); }
.chip-act:hover, .chip-act.is-down { background: var(--violet-hi); color: var(--ink); }
.chat-side .powered { justify-content: flex-start; margin-top: auto; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.steps li { padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.step-no { display: block; font-weight: 900; font-stretch: 62%; font-size: clamp(44px, 4.4vw, 72px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 18px; }
.steps h3 { font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: 30px; line-height: 1; margin-bottom: 12px; }
.steps p { color: var(--dim); font-size: 16px; }

/* ---------- Features ---------- */
.entry-features { background: var(--violet); color: #f4eeff; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--ink); color: var(--bone); border: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3); transition: transform .15s; }
.tile:hover { transform: translateY(-4px); }
.tile-art { aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink-2); }
.tile-meta { padding: 20px 22px 22px; }
.tile-meta h3 { font-size: 22px; font-weight: 800; line-height: 1.1; }
.tile-meta p { color: var(--dim); font-size: 15px; margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 8px; border: 1px solid var(--rule); color: var(--dim); }
/* Little drawn previews in each tile */
.art-mouth { background: var(--frog-deep); }
.art-mouth span { font: 700 18px/1 var(--mono); color: var(--frog); padding: 10px 12px; border: 1px solid rgba(123, 211, 107, 0.4); }
.art-mouth span:nth-child(2) { background: var(--frog); color: var(--frog-deep); }
.art-slots i { width: 22%; aspect-ratio: 3 / 4; background: var(--ink-3); border: 1px solid var(--rule); }
.art-slots i:first-child { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.art-slots .plus { display: grid; place-items: center; font-style: normal; font-size: 36px; color: rgba(236, 229, 212, 0.35); background: repeating-linear-gradient(-45deg, var(--ink-2) 0 10px, var(--ink-3) 10px 20px); }
.art-layout { position: relative; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(236, 229, 212, 0.06) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(236, 229, 212, 0.06) 23px 24px), var(--ink-2); }
.art-layout i { width: 16%; aspect-ratio: 1; background: var(--frog); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4); }
.art-layout i:nth-child(2) { background: var(--gold); transform: translateY(-14px); }
.art-keys { background: var(--night); }
/* Small Buddies Controller for the feature tile. */
/* A thin grey shell around the black faceplate, tilted, with the hard shadow. */
.mini-nes { width: 80%; padding: 1.8%; background: linear-gradient(180deg, #cfcac4 0%, #cfcac4 62%, #a8a29b 100%); border-radius: 7px; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45); transform: rotate(-3deg); }
.mn-plate { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 7%; align-items: center; padding: 7% 6%; background: #1d1c1f; border-radius: 5px; }
.mn-dpad { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 1; }
.mn-dpad i { display: grid; place-items: center; background: #111; color: #f4efe6; font: 700 clamp(7px, 0.8vw, 10px)/1 var(--mono); font-style: normal; box-shadow: 0 2px 0 #000; }
.mn-dpad .up { grid-area: 1 / 2; border-radius: 3px 3px 0 0; }
.mn-dpad .left { grid-area: 2 / 1; border-radius: 3px 0 0 3px; }
.mn-dpad .mid { grid-area: 2 / 2; }
.mn-dpad .right { grid-area: 2 / 3; border-radius: 0 3px 3px 0; }
.mn-dpad .down { grid-area: 3 / 2; border-radius: 0 0 3px 3px; }
.mn-mid { display: grid; gap: 4px; }
.mn-mid b { color: #c8102e; font-weight: 900; font-stretch: 62%; font-size: clamp(10px, 1.3vw, 16px); text-align: center; line-height: 1; }
.mn-mid span { height: 3px; background: #3a383d; border-radius: 2px; }
.mn-pills { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.mn-pills i { width: 18%; height: 5px; border-radius: 3px; background: #3a383d; box-shadow: 0 1px 0 #000; }
.mn-deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mn-deck i { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(180deg, #24222a, #121115); border: 1px solid #050505; border-radius: 4px; color: #f4efe6; font: 700 clamp(7px, 0.75vw, 10px)/1 var(--mono); font-style: normal; box-shadow: 0 2px 0 #000; }
.mn-deck i::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 14%; height: 2px; background: var(--k); box-shadow: 0 0 6px var(--k); }
.tile:hover .mn-deck i:nth-child(3) { animation: press 1s ease-in-out infinite; }
.art-emotes { position: relative; background: var(--frog-deep); }
.art-emotes img { height: 92%; width: auto; }
.gag-chip { position: absolute; font: 900 18px/1 var(--display); font-stretch: 62%; text-transform: uppercase; padding: 6px 8px; background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4); }
.gag-chip:nth-of-type(1) { left: 10%; top: 16%; transform: rotate(-8deg); }
.gag-chip:nth-of-type(2) { right: 10%; top: 26%; transform: rotate(7deg); }
.gag-chip:nth-of-type(3) { left: 16%; bottom: 14%; transform: rotate(4deg); }
.gag-pink { background: #ff4f8b; color: #fff; }
.gag-violet { background: var(--violet-hi); }
/* The wide headline tile: art on the left, words on the right. */
.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.tile-wide .tile-art { aspect-ratio: auto; height: 100%; min-height: 230px; }
.tile-wide .tile-meta { padding: 28px 32px; }
.tile-wide .tile-meta h3 { font-size: clamp(26px, 2.6vw, 36px); }
.art-human { background: var(--gold); gap: 5%; }
.art-human img { height: 72%; width: auto; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.35)); }
.art-human img.px { image-rendering: pixelated; }
.art-human img:nth-child(1) { transform: rotate(-6deg); }
/* The low-poly 3D frog, live (the picker view of the real overlay). */
.art-human .art-3d { position: relative; flex: 0 0 auto; height: 96%; aspect-ratio: 1; }
.art-human .art-3d iframe { position: absolute; inset: 0; }
.art-human img:nth-child(3) { transform: rotate(6deg); }
.art-look .ink { width: 42%; aspect-ratio: 1; background: var(--frog); border: 6px solid #090604; box-shadow: 8px 8px 0 var(--gold); transform: rotate(6deg); }

/* ---------- Audiences ---------- */
.entry-who { padding-top: clamp(64px, 8vw, 112px); }
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.audiences > *, .entry-body > *, .tiles > *, .foot-cols > *, .plans > * { min-width: 0; }
.aud { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.35); }
.aud-streamer { background: var(--ink-2); color: var(--bone); border: 1px solid var(--rule); }
.aud-streamer .kicker { color: var(--gold); }
.aud-friends { background: var(--bone); color: var(--ink); }
.aud-friends .kicker { color: var(--violet); }
.aud-title { margin-top: 18px; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(36px, 4vw, 64px); line-height: 0.9; }
.aud-title em { font-style: normal; display: block; }
.aud-streamer .aud-title em { color: var(--gold); }
.aud-friends .aud-title em { color: #2f8a2a; }
.aud-lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; font-weight: 500; max-width: 38ch; }
.aud-list { margin-top: 32px; border-top: 1px solid currentColor; }
.aud-list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: 15px; }
.aud-list b { font-weight: 700; }
.aud-list span { opacity: 0.8; }
.aud .actions { margin-top: auto; padding-top: 32px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); }
.plan .kicker { color: var(--dim); }
.plan-hot { border-color: var(--gold); box-shadow: 14px 14px 0 var(--gold); transform: translateY(-8px); }
.plan-hot .kicker { color: var(--gold); }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; }
.price strong { font-weight: 900; font-stretch: 62%; font-size: clamp(56px, 5.4vw, 88px); line-height: 0.8; }
.price span { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.plan-line { margin-top: 16px; font-weight: 600; font-size: 18px; }
.plan-list { margin: 20px 0 28px; border-top: 1px solid var(--rule); }
.plan-list li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--dim); position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; background: var(--frog); }
.plan .btn { margin-top: auto; text-align: center; }

/* ---------- Shop ---------- */
.entry-shop { background: var(--bone); color: var(--ink); }
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.shop > * { min-width: 0; }
.shop-card { display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 48px); background: #fff9ec; border: 1px solid rgba(12, 11, 13, 0.2); box-shadow: 12px 12px 0 rgba(12, 11, 13, 0.85); }
.shop-card-hot { background: var(--ink); color: var(--bone); box-shadow: 12px 12px 0 var(--gold); }
.shop-card .kicker { color: var(--violet); margin-top: 22px; }
.shop-card-hot .kicker { color: var(--gold); }
.shop-art { position: relative; display: flex; align-items: center; gap: 16px; }
.shop-art img { width: 96px; height: 96px; object-fit: cover; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3); }
.shop-tag { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 8px; border: 1px solid currentColor; opacity: 0.75; }
/* Commission: the frog as a pencil sketch, waiting to become your chat's character. */
.shop-art-sketch img { filter: grayscale(1) contrast(1.6) brightness(1.15); outline: 2px dashed var(--gold); outline-offset: 5px; box-shadow: none; }
.shop-title { margin-top: 12px; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(32px, 3.2vw, 52px); line-height: 0.92; }
.shop-title em { font-style: normal; display: block; color: #2f8a2a; }
.shop-card-hot .shop-title em { color: var(--gold); }
.shop-line { margin-top: 18px; font-size: 17px; max-width: 44ch; }
.shop-card .plan-list { border-color: rgba(12, 11, 13, 0.2); }
.shop-card .plan-list li { color: inherit; opacity: 0.8; border-color: rgba(12, 11, 13, 0.15); }
.shop-card-hot .plan-list, .shop-card-hot .plan-list li { border-color: var(--rule); }
.shop-card .btn { margin-top: auto; align-self: flex-start; }
.entry-shop .btn-line:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
/* The shop card: today's picks on a live stage (the same picks as the shop page). */
.shop-stage { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(60% 55% at 50% 62%, rgba(255, 210, 63, 0.14), transparent 70%), var(--night); border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(12, 11, 13, 0.3); }
.shop-stage iframe { position: absolute; inset: 0; transition: opacity .25s; }
.shop-stage iframe.is-loading { opacity: 0; transition: none; }
.shop-clock { position: absolute; left: 10px; top: 10px; color: var(--bone); background: rgba(12, 11, 13, 0.6); opacity: 1; pointer-events: none; }
.shop-clock b { color: var(--gold); font-variant-numeric: tabular-nums; }
.shop-picks { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid rgba(12, 11, 13, 0.2); }
.shop-picks:empty::before { content: "Loading today's picks…"; display: block; padding: 14px 0; font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; }
.shop-pick { --rar: var(--gold); display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(12, 11, 13, 0.15); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.shop-pick::before { content: ""; width: 12px; height: 12px; background: var(--rar); box-shadow: 2px 2px 0 var(--ink); }
.shop-pick b { display: block; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 24px; line-height: 1; }
.shop-pick small { display: block; margin-top: 3px; font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.shop-pick-price { font: 700 14px/1 var(--mono); }
.shop-pick:hover b, .shop-pick[aria-pressed="true"] b { color: #2f8a2a; }
.shop-pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.shop-card .shop-actions .btn { margin-top: 0; }

/* ---------- Juna's Frog (standalone app) ---------- */
.entry-juna { background: var(--night); color: #fff6df; }
.entry-juna .entry-head { border-color: var(--frog); }
.entry-juna .entry-no, .entry-juna .entry-kind { color: var(--frog); opacity: 1; }
.juna { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.juna-art { transform: rotate(-2deg); }
.juna-art img { width: 100%; height: auto; aspect-ratio: 1; image-rendering: auto; box-shadow: 14px 14px 0 var(--frog); }
.juna-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 500; max-width: 44ch; }
.entry-juna .plan-list { border-color: rgba(255, 246, 223, 0.2); }
.entry-juna .plan-list li { color: rgba(255, 246, 223, 0.85); border-color: rgba(255, 246, 223, 0.15); }
.juna-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.juna-buy .price { margin: 0; }
.juna-buy .price span { color: rgba(255, 246, 223, 0.7); }
.juna-note { margin-top: 14px; font: 500 12px/1.5 var(--mono); color: rgba(255, 246, 223, 0.7); }
@media (max-width: 960px) { .juna { grid-template-columns: 1fr; } .juna-art { max-width: 360px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 800; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font: 600 22px/1 var(--mono); color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--dim); max-width: 56ch; }

/* ---------- Sign in band ---------- */
.contact { background: var(--gold); color: var(--ink); padding: clamp(48px, 6vw, 88px) var(--pad); display: grid; gap: 18px; }
.contact-big { font-weight: 900; font-stretch: 62%; text-transform: uppercase; text-decoration: none; font-size: clamp(44px, 6.5vw, 110px); line-height: 0.86; }
.contact-big:hover { color: var(--violet); }
.contact-note { font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.foot { padding: clamp(48px, 6vw, 72px) var(--pad) 28px; border-top: 1px solid var(--rule); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--dim); max-width: 32ch; font-size: 15px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot h4 { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 6px; }
.foot nav a { text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--gold); }
.foot-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule);
  font: 400 12px/1.5 var(--mono); color: var(--dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-stage { aspect-ratio: 16 / 9; min-height: 0; }
  .pad-wrap { grid-template-columns: 1fr; }
  .pad-live { max-width: 520px; width: 100%; justify-self: center; }
  .pad-facts { grid-template-columns: 1fr 1fr; }
  .pad-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trailer-wrap { grid-template-columns: 1fr; }
  .trailer { position: relative; top: 0; } /* stacked: no pinning */
  .chapters { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (max-width: 960px) {
  .maker { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "panel"; }
  .maker-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .maker-stage { height: auto; aspect-ratio: 1; min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { border-top: 1px solid var(--rule); }
  .tiles, .plans { grid-template-columns: 1fr 1fr; }
  .audiences, .faq, .shop { grid-template-columns: 1fr; }
  .plan-hot { transform: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .bar { justify-content: space-between; }
  .bar-cta { margin-left: auto; }
  .menu {
    position: absolute; top: var(--bar); left: 0; right: 0;
    flex-direction: column; gap: 0; display: none; margin: 0;
    background: var(--ink); border-bottom: 1px solid var(--rule); padding: 0 var(--pad);
  }
  .menu.open { display: flex; }
  .menu a { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .menu a:last-child { border-bottom: 0; }
  .hero-copy { grid-template-columns: 1fr; gap: 0; }
  .hero-side { margin-top: 20px; }
  .hero-note { left: var(--pad); right: auto; }
}
@media (max-width: 600px) {
  .bar-cta { display: none; }
  .hero-title { font-size: 15vw; }
  /* The row of frogs is width-limited here, so the stage only needs a short band. */
  .hero-stage { height: 52vw; min-height: 0; }
  .hero-strip { grid-template-columns: 1fr; }
  .maker { padding: 16px; box-shadow: 8px 8px 0 var(--frog-deep); }
  .pick { grid-template-columns: 64px 44px minmax(0, 1fr) 44px; }
  .pick .pick-count { display: none; }
  .pick-colors { grid-template-columns: 64px minmax(0, 1fr); }
  .pick-size, .pick-shiny { grid-template-columns: 64px minmax(0, 1fr); }
  .nes-face { grid-template-columns: 1fr 1fr; }
  .deck { grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .lcd span { font-size: 18px; }
  .pad-facts { grid-template-columns: 1fr; }
  .pad-facts li, .pad-facts li + li { padding: 18px 0 0; border-left: 0; }
  .pick-arrow { height: 44px; }
  .hero-strip li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .entry-head { grid-template-columns: 1fr; gap: 12px; }
  .entry-kind { text-align: left; }
  .trailer { transform: none; }
  .trailer-frame { box-shadow: 8px 8px 0 var(--gold); }
  .voice { display: none; }
  .frogs-trailer { right: 1%; top: 10%; height: 50%; }
  .chapters { grid-template-columns: 1fr; }
  .steps, .tiles, .plans { grid-template-columns: 1fr; }
  .tile-wide { grid-template-columns: 1fr; }
  .tile-wide .tile-art { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; }
  .aud-list li { grid-template-columns: 1fr; gap: 4px; }
  .aud { box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trailer.is-floating, .drag-dot, .layer-keys kbd, .pop, .live-dot, .caret, .shiny-btn[aria-pressed="true"] { animation: none; }
  .layer { transition: none; }
}
