/* Look A "plaza day" (RULED 2026-09-19). B arcade night / C sticker sheet were cut. */
:root {
  --bg: #8fd3ff; --bg2: #7cc46a; --card: #ffffff; --ink: #1b2430; --soft: #5a6878;
  --line: #1b2430; --accent: #ffd400; --accent-ink: #1b2430; --hot: #ff4438; --chip: #eef3f7;
  --stage: linear-gradient(#bfe6ff 0 64%, #86cf6f 64% 100%); --radius: 14px; --border: 3px; --shadow: 0 5px 0 var(--line);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; color: var(--ink); background: #8fd3ff;
  font: 800 16px/1.4 Nunito, system-ui, sans-serif;
}
/* THE PLAZA, behind everything: banded sky, two drifting pixel-cloud layers,
   hills, and a checker-grass floor. Fixed, so the page scrolls over it. */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(#58b6ff 0 18%, #74c5ff 18% 36%, #93d5ff 36% 54%, #b4e4ff 54% 72%, #d2f0ff 72% 100%); }
.scene i { position: absolute; left: 0; right: 0; display: block; }
.clouds { height: 96px; background-repeat: repeat-x; image-rendering: pixelated;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='96' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='40' y='16' width='48' height='8'/%3E%3Crect x='24' y='24' width='88' height='8'/%3E%3Crect x='8' y='32' width='120' height='8'/%3E%3Crect x='320' y='48' width='32' height='8'/%3E%3Crect x='304' y='56' width='72' height='8'/%3E%3Crect x='296' y='64' width='96' height='8'/%3E%3C/g%3E%3Cg fill='%23dff1ff'%3E%3Crect x='8' y='40' width='120' height='8'/%3E%3Crect x='296' y='72' width='96' height='8'/%3E%3C/g%3E%3C/svg%3E"); }
.clouds.a { top: 7vh; background-size: 560px 96px; animation: drift 120s linear infinite; }
.clouds.b { top: 27vh; opacity: .7; background-size: 392px 67px; height: 67px; animation: drift 190s linear infinite reverse; }
@keyframes drift { to { background-position-x: 560px; } }
.hills { bottom: 72px; height: 210px;
  background:
    radial-gradient(ellipse 34% 100% at 12% 100%, #5fb552 0 99.5%, transparent 100%),
    radial-gradient(ellipse 30% 82% at 88% 100%, #5fb552 0 99.5%, transparent 100%),
    radial-gradient(ellipse 46% 70% at 52% 100%, #74c862 0 99.5%, transparent 100%); }
.grass { bottom: 0; height: 76px; border-top: 4px solid #3f8f3a;
  background: repeating-conic-gradient(#86d46c 0 25%, #7ccb63 0 50%) 0 0 / 32px 32px; }
@media (prefers-reduced-motion: reduce) { .clouds { animation: none !important; } }
.pix { font-family: Silkscreen, monospace; letter-spacing: .5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 60px; }
header { margin-bottom: 20px; }
h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: clamp(34px, 7vw, 60px); line-height: 1;
  color: var(--accent); -webkit-text-stroke: 2px var(--line); text-shadow: 4px 4px 0 var(--line); letter-spacing: 2px; }
.tagline { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); font-size: 16px; }
h2 .n { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--line); color: #fff; font-size: 12px; vertical-align: middle; }
button, select, input, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.card { background: var(--card); border: var(--border) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.mirror { position: sticky; top: 16px; }
.stage { border: var(--border) solid var(--line); border-radius: calc(var(--radius) - 4px); background: var(--stage); line-height: 0; overflow: hidden; }
.stage canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
h2 { margin: 0 0 10px; font-size: 18px; }
.label { margin: 14px 0 6px; color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.swatches button, .swatches label { aspect-ratio: 1; padding: 0; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; }
.swatches button.on { outline: 3px solid var(--accent); outline-offset: 1px; }
.swatches label { display: grid; place-items: center; background: var(--chip); font-size: 14px; overflow: hidden; position: relative; }
.swatches input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cmd { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--chip); }
.cmd code { flex: 1; font: 700 15px Silkscreen, monospace; overflow-wrap: anywhere; }
.cmd button, .btn { padding: 6px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 13px; cursor: pointer; }
.cmd.off { opacity: .45; }
.hats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.hat { padding: 6px 6px 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--chip); color: inherit; font: inherit; font-size: 13px; text-align: center; cursor: pointer; }
.hat canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.hat.on { background: var(--accent); color: var(--accent-ink); }
.hat { transition: transform .08s; overflow-wrap: anywhere; line-height: 1.2; }
.hat:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--line); }
.hat:active { transform: translateY(1px); box-shadow: none; }
.hat.on { box-shadow: 0 3px 0 var(--line); }
.voice { transition: background .1s; }
.voice:hover { border-color: var(--line); }
.section + .section { margin-top: 20px; }
/* one control style for all four: same height, border, radius, type */
.voicebar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.voicebar select, .voicebar input { width: 100%; height: 46px; min-width: 0; margin: 0; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px;
  background-color: var(--chip); color: var(--ink); font: 800 15px/1 Nunito, system-ui, sans-serif; appearance: none; -webkit-appearance: none; }
.voicebar select { padding-right: 34px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h14v2h-2v2h-2v2H8v2H6V6H4V4H2V2H0z' fill='%231b2430'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.voicebar select.set { background-color: var(--accent); }
.voicebar input::placeholder { color: var(--soft); opacity: 1; }
.voicecount { margin: 0 0 8px; }
.voicecount button { border: 0; background: none; color: var(--hot); font: inherit; text-decoration: underline; cursor: pointer; }
.voices { max-height: 560px; overflow: auto; display: grid; gap: 6px; padding-right: 4px; }
.voice { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 8px; border: 2px solid transparent; border-radius: 10px; background: var(--chip); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.voice.on { border-color: var(--line); background: var(--accent); color: var(--accent-ink); }
.voice .play { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 14px; }
.voice small { display: block; font-weight: 600; opacity: .75; }
.star { color: var(--hot); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--accent); color: var(--accent-ink); }
.cta h2 { margin: 0; }
.cta p { margin: 4px 0 0; font-weight: 600; }
.cta a { padding: 12px 18px; border: var(--border) solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; white-space: nowrap; }
.note { color: var(--soft); font-size: 13px; font-weight: 600; }
.voice .play.ready { background: var(--accent); color: var(--accent-ink); }
.voice .play.playing { background: var(--hot); color: #fff; }
.voice em { display: block; margin-top: 3px; font-style: italic; font-weight: 600; }
.voice em::before { content: "“"; } .voice em::after { content: "”"; }

/* PHONE: most of chat. The mirror shrinks to a sticky bar at the top so a
   tapped hat is visible without scrolling back up. */
@media (max-width: 820px) {
  .wrap { padding: 10px 10px 40px; }
  header { margin-bottom: 10px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .mirror { position: sticky; top: 6px; z-index: 5; display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; padding: 10px; }
  .mirror .stage { grid-row: 1 / span 2; align-self: start; }
  .mirror .label, .mirror .note { display: none; }
  .mirror .cmd { margin: 0; padding: 5px 8px; }
  .mirror .cmd code { font-size: 12px; }
  .mirror .cmd button { padding: 5px 8px; font-size: 11px; }
  .swatches { order: 3; grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .swatches button, .swatches label { flex: 0 0 34px; height: 34px; }
  .hats { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
  .voicebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grass { height: 48px; } .hills { bottom: 44px; height: 130px; }
  .tagline { font-size: 15px; }
  .voices { max-height: none; overflow: visible; }
  .voice .play { width: 46px; height: 46px; }
  .voice { grid-template-columns: 46px 1fr; }
  .cta a { width: 100%; text-align: center; }
}

/* ---- site nav (every page) ---- */
.nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.nav a { padding: 7px 11px; white-space: nowrap; border: var(--border) solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink);
  font-family: Silkscreen, monospace; font-size: 12px; letter-spacing: .3px; text-decoration: none; box-shadow: 0 3px 0 var(--line); }
.nav a:hover { transform: translateY(-1px); }
.nav a.on { background: var(--accent); }
.nav a.live { margin-left: auto; background: var(--hot); color: #fff; }
.nav a.dnc { background: #111; color: #ff3b3b; animation: dnc 2.4s ease-in-out infinite; }
@keyframes dnc { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-4deg); } 94% { transform: rotate(4deg); } 97% { transform: rotate(-2deg); } }

/* ---- shared content blocks (effects / tts / about) ---- */
.lede { max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fx { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--chip); }
.fx canvas, .fx img { width: 100%; aspect-ratio: 1; border-radius: 8px; background: var(--stage); image-rendering: pixelated; }
.fx b { font-size: 17px; }
.fx p { margin: 0; font-size: 13px; font-weight: 600; color: var(--soft); line-height: 1.35; }
.fx .tag { align-self: flex-start; padding: 2px 8px; border-radius: 99px; background: var(--line); color: #fff; font-size: 11px; }
.fx { min-width: 0; }
.fx .say { margin-top: auto; padding-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.fx code { white-space: normal; font-size: 12px; }
.fx.gold { background: #fff3b0; border-color: #b8860b; }
code, .kbd { padding: 2px 7px; border-radius: 6px; background: var(--line); color: #fff; font: 700 13px Silkscreen, monospace; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 12px 12px 12px 52px; border: 2px solid var(--line); border-radius: 12px; background: var(--chip); font-weight: 600; font-size: 14px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--line); border-radius: 50%; background: var(--accent); font: 700 15px Silkscreen, monospace; }
.steps li b { display: block; font-size: 15px; }
table.pity { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 14px; }
table.pity th, table.pity td { padding: 6px 10px; border: 2px solid var(--line); text-align: left; }
table.pity th { background: var(--line); color: #fff; }
table.pity tr:last-child td { background: #fff3b0; }
.example { padding: 12px; border: 2px dashed var(--line); border-radius: 12px; background: #fffbe6; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.example .t { padding: 1px 6px; border-radius: 6px; background: #ffd9d6; }
.example .v { padding: 1px 6px; border-radius: 6px; background: #d6ecff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 9px; border: 2px solid var(--line); border-radius: 99px; background: var(--chip); font-size: 13px; }
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.cast figure { margin: 0; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--chip); text-align: center; font-size: 13px; }
.cast img { width: 100%; max-width: 96px; image-rendering: pixelated; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.two > div { padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--chip); font-size: 14px; font-weight: 600; }
.two b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 900; }
.playbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 13px; cursor: pointer; }
.playbtn.playing { background: var(--hot); color: #fff; }
h3 { margin: 18px 0 8px; font-size: 16px; }
.section p { font-weight: 600; }
@media (max-width: 820px) {
  .nav { gap: 6px; margin-bottom: 10px; } .nav a { padding: 7px 10px; font-size: 11px; } .nav a.live { margin-left: 0; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}

