/* shop.css — the Alphabibi shop. Same family as nibbi/pack/demo.html: Fredoka, plum ink, lavender + pink.
   Light pastel shelf for shoppers, the dark stream mock stays dark because that is where the pack lives. */
:root {
  --bg: #fbf8ff; --focus: #7b4bb3; --card: #ffffff; --ink: #3b2a4a; --mute: #6e6280; --outline: #3b2a4a; --line: #ece5f6; --soft: #f3edfc;
  --lav: #b9a6f7; --pink: #ff8fb8; --butter: #ffd65c; --cream: #fff3e8;
  --stage: #17141c; --stage-panel: #221d2a; --stage-ink: #f4eef8; --stage-mute: #a99fb6; --stage-line: #3a3245; --stage-talk: #8fe0a8;
  --font: "Fredoka", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --yes: #2f8a4e;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
/* dark: follows the system unless the top-bar toggle (theme.js) set <html data-theme> */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #17141c; --focus: var(--butter); --card: #221d2a; --ink: #f4eef8; --mute: #a99fb6; --line: #3a3245; --soft: #2a2433; --outline: #f4eef8; --yes: #8fe0a8; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #17141c; --focus: var(--butter); --card: #221d2a; --ink: #f4eef8; --mute: #a99fb6; --line: #3a3245; --soft: #2a2433; --outline: #f4eef8; --yes: #8fe0a8; color-scheme: dark }


* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); }
main { max-width: 1240px; margin: 0 auto; padding: 20px 16px 80px; display: grid; gap: 56px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
p { margin: 0; }
a { color: inherit; }
.sub { color: var(--mute); max-width: 62ch; }
.mute { color: var(--mute); }
code { font-family: var(--mono); font-size: .85em; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
section { display: grid; gap: 16px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; }

/* top bar + wordmark: each letter wears its own character's colour */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.word { font: 700 34px/1 var(--font); letter-spacing: 1px; text-decoration: none; display: inline-flex; }
.word span { color: var(--c); -webkit-text-stroke: 5px var(--outline); paint-order: stroke fill; display: inline-block; }
.word span:nth-child(odd) { transform: translateY(-2px) rotate(-3deg); }
.word span:nth-child(even) { transform: translateY(2px) rotate(3deg); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--mute); padding-block: 4px; }
.nav a:hover { color: var(--ink); }
/* light/dark toggle (theme.js appends it to .bar); the nav's auto margin keeps it beside the nav on the right */
.bar > .nav, .bar > .abc { margin-left: auto; }
.theme-toggle { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) { .bar > .nav, .bar > .abc { order: 3; margin-left: 0; } .theme-toggle { margin-left: auto; } }

button, .btn { font: 600 15px var(--font); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  background: var(--soft); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
@media (hover: hover) { button:not(:disabled):not([aria-disabled="true"]):hover, .btn:hover { filter: brightness(.97); } }   /* no sticky hover after a tap; none on a dimmed button */
button, .btn, .seg label { -webkit-tap-highlight-color: transparent; }          /* no lingering tap flash either */
.btn.buy, button.buy { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .btn.buy:hover, button.buy:hover { background: #4f3a63; color: #fff; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.note { font-size: 14px; color: var(--mute); min-height: 1.5em; }

.pill { font: 600 11px/1 var(--font); letter-spacing: .6px; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.pill.live { background: #c9f2d6; color: #1f5c35; }
.pill.wip { background: var(--soft); color: var(--mute); }

/* ---- the product grid ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 7px 14px; font-size: 14px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: 22px; padding: 12px 14px 14px; text-decoration: none; display: grid; gap: 4px; align-content: start;
  position: relative; border: 2px solid var(--line); transition: transform .15s ease, border-color .15s ease; min-width: 0; }
.card:hover { transform: translateY(-3px) rotate(-.6deg); border-color: var(--lav); }
.card .L { position: absolute; top: 8px; left: 12px; font: 700 26px/1 var(--font); color: var(--c); -webkit-text-stroke: 4px var(--outline); paint-order: stroke fill; }
.card .pill { position: absolute; top: 12px; right: 12px; }
.card .art { aspect-ratio: 1; display: grid; place-items: center; margin-top: 14px; position: relative; border-radius: 16px; background: radial-gradient(circle at 50% 55%, var(--glow) 0 27%, transparent 56%); }
.card .art svg, .card .art img, .card .art video { width: 100%; height: 100%; object-fit: contain; grid-area: 1 / 1; }
.card .art video { opacity: 0; transition: opacity .2s; }
.card:hover .art video.ready { opacity: 1; }
.card .nm { font: 700 21px/1.1 var(--font); }
.card .an { color: var(--mute); font-size: 14px; line-height: 1.3; }
.card .for { font-size: 13px; color: var(--mute); }

/* ---- spell your name ---- */
.hero { display: grid; gap: 22px; padding: 28px clamp(16px, 4vw, 40px); border-radius: 32px; background: var(--card); border: 2px solid var(--line); }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; max-width: 16ch; }
.spell { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spell input { font: 700 22px var(--font); letter-spacing: 3px; text-transform: uppercase; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: min(100%, 340px); }
.spell input:focus { border-color: var(--lav); }
.lineup { display: flex; flex-wrap: wrap; gap: 4px; align-items: end; min-height: clamp(84px, 13vw, 150px); }
.lineup a { width: clamp(64px, 11vw, 116px); text-decoration: none; text-align: center; display: grid; justify-items: center; }
.lineup a svg, .lineup a img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.lineup a b { font: 700 22px/1 var(--font); color: var(--c); -webkit-text-stroke: 4px var(--outline); paint-order: stroke fill; margin-top: -4px; }
.lineup a { animation: pop .38s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes pop { from { transform: translateY(14px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.lineup .gap { width: 22px; }

/* ---- what's in a pack / bundles ---- */
/* what's in a pack: every item shown with Nibbi's real preview files, on the dark checker where transparent files live */
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; margin: 0; }
.kit.dlx { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit figure { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.kit .media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; display: grid; place-items: center; padding: 6%; position: relative;
  background: repeating-conic-gradient(#2a2433 0 25%, #221d2a 0 50%) 0 0 / 20px 20px; }
.kit .media.full { padding: 0; }
.kit .media > img, .kit .media > video { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.kit .media.full > video { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kit .media.paper { background: #fff; }        /* the turntable GIF has a white ground */
.kit .trio { display: flex; justify-content: center; align-items: end; width: 100%; height: 100%; }
.kit .trio img { width: 40%; height: auto; margin-inline: -4%; object-fit: contain; }
.kit .trio img:nth-child(2) { width: 46%; position: relative; }
.kit .sprites { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px 10px; }
.kit figcaption { display: grid; gap: 2px; }
.kit figcaption b { font-size: 17px; }
.kit figcaption span { font-size: 14px; color: var(--mute); max-width: 40ch; }
.kit-h { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.kit-h small { font: 500 15px var(--font); color: var(--mute); }
@media (min-width: 961px) {
  .kit:not(.dlx) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kit:not(.dlx) figure { grid-column: span 2; }
  .kit:not(.dlx) figure.wide { grid-column: span 3; }
  .kit figure.wide .media { aspect-ratio: 16 / 9; }
}
@media (max-width: 960px) { .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kit figure.wide { grid-column: 1 / -1; } .kit figure.wide .media { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) {
  .kit.dlx { grid-template-columns: 1fr; }
  .kit.dlx figure { grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 14px; }
}
.bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bundle { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.bundle.star { border-color: var(--lav); box-shadow: 6px 6px 0 var(--lav); }
.bundle h3 { font-size: 22px; }
.bundle .price { font-weight: 600; color: var(--mute); }
footer { color: var(--mute); font-size: 14px; border-top: 2px dashed var(--line); padding-top: 18px; display: grid; gap: 6px; }

/* ---- product page ---- */
.abc { display: flex; flex-wrap: wrap; gap: 4px; }
.abc a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--mute); background: var(--card); border: 2px solid var(--line); }
.abc a.live { color: var(--ink); border-color: var(--lav); }
.abc a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
@media (max-width: 820px) { .prod { grid-template-columns: 1fr; } }
.prod .art { background: radial-gradient(circle at 50% 55%, var(--glow) 0 27%, transparent 56%), var(--card); border-radius: 32px; border: 2px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; max-width: 100%; }
.prod .art img, .prod .art svg { width: 92%; height: 92%; object-fit: contain; }
.prod .info { display: grid; gap: 14px; align-content: center; min-width: 0; }
.prod h1 { font-size: clamp(44px, 7vw, 80px); line-height: .95; }
.prod .kicker { font-weight: 600; color: var(--mute); font-size: 18px; }
.swatches { display: flex; gap: 6px; }
.swatches span { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--outline); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta[hidden] { display: none; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* stream mock (from demo.html) */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; background: var(--stage); padding: 12px; border-radius: 22px; color: var(--stage-ink); }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
/* the game behind the avatar: stage.js draws a 320×180 pixel-art platformer, scaled up without smoothing */
.game { position: absolute; inset: 0; background: #86c3f5; }
.game.night { background: #191c44; }
.game canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.brb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* BRB text over brb_loop.mp4: the pack's demo text (letters/build_letter.sh), drawn in the 1920×1080 frame's own
   coordinates so it scales with the video. "slice" crops like object-fit: cover, so it also fits a cropped box. */
.brbtext { position: absolute; inset: 0; pointer-events: none; }
.brbtext svg { display: block; width: 100%; height: 100%; }
.brbtext .l1 { font: 700 112px "Comfortaa", var(--font); fill: #fff7ef; }
.brbtext .l2 { font: 400 48px "Comfortaa", var(--font); fill: #fff1e0; }
.brbbox { position: relative; width: fit-content; max-width: 100%; }
/* Twitch-style channel strip over the stream mock, only while a channel name is set (channel.js) */
.chanstrip { position: absolute; left: 1.6%; top: 2.6%; z-index: 2; display: flex; align-items: center; gap: 8px; max-width: 70%;
  padding: 4px 10px 4px 4px; border-radius: 999px; background: rgb(14 14 16 / .86); color: #efeff1; font: 600 13px/1 var(--font); pointer-events: none; }
.chanstrip[hidden] { display: none; }
.chanstrip .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--c, var(--lav)); object-fit: cover; object-position: 50% 30%; }
.chanstrip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chanstrip .live { background: #eb0400; color: #fff; font-size: 10.5px; letter-spacing: .6px; padding: 3px 5px; border-radius: 4px; flex: none; }
.chanstrip .vw { display: inline-flex; align-items: center; gap: 3px; color: #ff8280; font-variant-numeric: tabular-nums; flex: none; }
.chanstrip .vw svg { width: 12px; height: 12px; fill: currentColor; }
@media (max-width: 520px) { .chanstrip { font-size: 11px; gap: 6px; padding: 3px 8px 3px 3px; } .chanstrip .dot { width: 16px; height: 16px; } .chanstrip .live { font-size: 9px; padding: 2px 4px; } }
/* playable letters (play.js): the character walks behind the avatar; the canvas takes keys while focused */
.game canvas:focus { outline: 3px solid var(--focus); outline-offset: -3px; }
.playmark { position: absolute; left: 2%; bottom: 3%; color: #fff; font-size: 11px; opacity: .75; text-shadow: 0 1px 0 #2b2140; pointer-events: none; }
.playrow { align-items: center; }
.playhint { font-size: 13px; color: var(--stage-mute); font-weight: 600; }
.playpad { display: none; gap: 8px; }
.deck .playpad button { background: var(--stage-line); color: var(--stage-ink); border-radius: 14px; justify-content: center; }
.deck .playpad button.on { background: var(--pink); color: #241b33; }   /* held: set by play.js, cleared on release */
.playpad button { min-width: 64px; font-size: 18px; touch-action: none; user-select: none; -webkit-user-select: none; }
@media (pointer: coarse) {
  .playhint { display: none; } .playpad { display: flex; }
  /* phones: the pad sits right under the stage, so both fit on screen (the stage pauses while it's scrolled away) */
  .mockcol { display: flex; flex-direction: column; }
  .mockcol > * { order: 2; }
  .mockcol > .stage { order: 0; }
  .mockcol > .playrow { order: 1; margin-top: 10px; }
  .playrow .lk { display: none; }
  .playrow .grp, .playpad { width: 100%; }
  .deck .playpad button { min-height: 52px; }
  .deck .playpad [data-k="j"] { margin-left: auto; min-width: 96px; }   /* walk under the left thumb, jump under the right */
}
.avatar { position: absolute; right: 1%; bottom: -1%; height: 46%; aspect-ratio: 1; }
.avatar video { position: absolute; inset: 0; width: 100%; height: 100%; }
.alert { position: absolute; left: 50%; top: 4%; width: 42%; transform: translateX(-50%); text-align: center; }
.alert video { width: 100%; display: block; }
.alert .msg { margin-top: -26%; font-weight: 700; font-size: clamp(12px, 2vw, 26px); color: #fff; text-shadow: 0 2px 0 #3b2a4a, 0 0 12px #3b2a4a; }
.stinger { position: absolute; inset: 0; width: 100%; height: 100%; }
.chat { background: #18181b; border-radius: 12px; padding: 12px; min-height: 300px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; font-size: 14px; }
@media (max-width: 900px) { .chat { min-height: 0; height: 168px; justify-content: flex-end; } }
@media (pointer: coarse) { .kbd-only { display: none; } }
.chat .ln { line-height: 28px; }
.chat img { height: 28px; vertical-align: middle; }
.chat img.badge { height: 18px; margin-right: 4px; }

.panel { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 12px; min-width: 0; }
.panel img, .panel video { display: block; max-width: 100%; border-radius: 12px; }
/* previews show at their (reduced) natural size, so on wide screens they sit centred in their card, caption too */
.panel > img, .panel > video, .panel > .brbbox { margin-inline: auto; }
.panel > .cap { text-align: center; }
.cap { color: var(--mute); font-size: 13.5px; margin-top: 6px; }
.checker { background: repeating-conic-gradient(#2a2433 0 25%, #221d2a 0 50%) 0 0 / 20px 20px; border-color: transparent; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.row > * { flex: 1 1 340px; }
.stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.stills div { text-align: center; font-size: 13px; color: var(--stage-mute); }
.stills img { width: 100%; }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; text-align: center; border-radius: 18px; padding: 10px; }
.em-grid div { padding: 8px 4px; font-size: 13px; }
.em-grid img { display: block; margin: 0 auto 4px; }
.em-dark { background: #18181b; color: #c8c3cf; } .em-light { background: #ffffff; color: #333; border: 2px solid var(--line); }
.looks img { max-width: 100%; max-height: 640px; width: auto; margin: 0 auto; }
/* rendered stills and loops leave ~20% transparent margin (alpha box 577x659 in 800²); scale them to sit level with the stand-ins */
img.real, .card .art video { transform: scale(1.15); transform-origin: 50% 60%; }
/* the hero renders are opaque (no alpha) on #fefefe: the frame wears that colour so no inner box shows.
   bibi.html then copies each image's own corner colour onto the frame (N's is #fefdfc). */
.prod .art.photo { background: #fefefe; }
/* transparent (RGBA) heroes: no rendered floor shadow, so a soft ellipse under the feet; bibi.html sets its place */
/* a transparent hero has no tile of its own: it sits on the theme's card (and the letter's glow) like the workshop art.
   The glow is feathered everywhere (one gradient: centre 50% 55%, solid to 27%, gone by 56% of the farthest-corner
   distance = a 0.42-box radius), so it never reads as a spotlight disc on dark and fades out before every edge. */
.prod .art.photo.alpha { position: relative; background: radial-gradient(circle at 50% 55%, var(--glow) 0 27%, transparent 56%), var(--card);
  --shade: rgb(43 33 64 / .46); --shade-soft: rgb(43 33 64 / .22); }   /* light: pale bodies (K, N, U) need it */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prod .art.photo.alpha { --shade: rgb(0 0 0 / .62); --shade-soft: rgb(0 0 0 / .3); } }
:root[data-theme="dark"] .prod .art.photo.alpha { --shade: rgb(0 0 0 / .62); --shade-soft: rgb(0 0 0 / .3); }
.prod .art.photo.alpha img { position: relative; z-index: 1; }
.prod .art.photo.alpha::before { content: ""; position: absolute; z-index: 0; left: var(--shx); top: var(--shy); width: var(--shw);
  aspect-ratio: 9 / 2; transform: translate(-50%, -55%); border-radius: 50%; background: radial-gradient(closest-side, var(--shade), var(--shade-soft) 60%, transparent); }

/* workshop (not built yet) */
.beats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.beat { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.beat .k { font: 600 11.5px/1 var(--font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.faces div { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 6px; text-align: center; font-size: 13px; color: var(--mute); }

@media (prefers-reduced-motion: reduce) { .card, .card .art video { transition: none; } .card:hover { transform: none; } .lineup a { animation: none; } }

/* ---- commerce: edition toggle, prices, waitlist, Deluxe tags ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ed { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; }
.ed label { cursor: pointer; }
.ed input { position: absolute; opacity: 0; pointer-events: none; }
.ed span { display: block; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mute); }
.ed input:checked + span { background: var(--ink); color: var(--bg); }
.ed input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.price-now { font-size: 20px; }
.price-now b { font-size: 26px; }
.price-now s, .bundle s { color: var(--mute); font-weight: 500; }
.tag { font: 600 10.5px/1 var(--font); letter-spacing: .5px; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; background: var(--lav); color: #241b33; vertical-align: middle; white-space: nowrap; }
.buybox { display: grid; gap: 12px; background: var(--soft); border-radius: 22px; padding: 14px 16px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-weight: 600; color: var(--mute); }
.cmp td:nth-child(n+2), .cmp th:nth-child(n+2) { text-align: center; width: 76px; }
.cmp .y { color: var(--yes); font-weight: 700; } .cmp .n { color: var(--mute); }
.wl { display: grid; gap: 8px; max-width: 520px; }
.wl-lead { font-weight: 600; }
.wl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-row input { flex: 1 1 200px; min-width: 0; font: 500 16px var(--font); padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.wl-row input:focus { border-color: var(--lav); }
.consent { font-size: 13px; color: var(--mute); }
.namebox { display: grid; gap: 12px; border-top: 2px dashed var(--line); padding-top: 18px; }
.namebox .ready { font-size: 15px; }
.bundle .price { font-size: 18px; color: var(--ink); }
.bundle .price b { font-size: 26px; }
.bundle ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--mute); }
.bundle .buy[disabled] { opacity: .55; cursor: not-allowed; }
.bundle.off { border-style: dashed; }
.sheet { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.spr { display: inline-block; vertical-align: middle; background-repeat: no-repeat; }
.preview-note { font-size: 13px; color: var(--mute); }

/* ---- footer + policy pages ---- */
.foot { display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.foot nav a { color: var(--ink); text-decoration: none; padding-block: 4px; }
.foot nav a:hover { text-decoration: underline; }
.draft { background: #ffe58a; color: #3b2a4a; border: 2px dashed #3b2a4a; border-radius: 16px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.doc { max-width: 76ch; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; }
.doc h2 { font-size: 22px; margin-top: 12px; }
.doc p, .doc li { line-height: 1.6; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.doc .updated { color: var(--mute); font-size: 14px; }
.ph { background: #fff0a8; color: #3b2a4a; border-radius: 6px; padding: 0 4px; font-family: var(--mono); font-size: .88em; }
.dl { display: grid; gap: 10px; }
.dl a.file { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; text-decoration: none; font-weight: 600; }
.dl a.file:hover { border-color: var(--lav); }
.dl a.file > span:first-child { flex: 1 1 0; min-width: 0; }   /* the label wraps, the ZIP ↓ / Twitch → tag stays on the right */
.ledger { overflow-x: auto; }
.ledger table { border-collapse: collapse; width: 100%; font-size: 15px; }
.ledger th, .ledger td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger th { color: var(--mute); font-weight: 600; }
.ledger td[colspan] { white-space: normal; }
.fine { font-size: 13px; color: var(--mute); }

/* stream-mock control deck. One look per kind of control:
   talk = outlined, held (fills while held) · reactions = filled dark pills, fire once on the avatar ·
   alerts = filled lavender pills with an icon, fire once over the stage · scene/time/look = segmented switches (state) */
.deck { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 12px; }
.deck .grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.deck .lk { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--stage-mute); margin-right: 2px; }
.deck .note { font-size: 13px; font-weight: 600; color: var(--stage-mute); }
.deck button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; font-size: 14px; }
.deck button svg { width: 16px; height: 16px; flex: none; }
.deck button:disabled { opacity: .4; cursor: not-allowed; }
.deck kbd, .playhint kbd { font: 700 11px var(--font); padding: 1px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .75; }
.deck .talk { background: transparent; color: var(--stage-talk); box-shadow: inset 0 0 0 2px var(--stage-talk); }
.deck .talk svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.deck .talk.on, .deck .talk:active { background: var(--stage-talk); color: #17251c; }
.deck .react { background: var(--stage-line); color: var(--stage-ink); }
.deck .fire { background: var(--lav); color: #241b33; }
.deck .fire svg { fill: currentColor; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--stage-line); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 13px; border-radius: 999px; color: var(--stage-mute); font-weight: 600; font-size: 14px; }
/* desktop hover on the dark deck: lighten and lift (darkening barely shows on the stage panel); never on a dimmed button */
@media (hover: hover) {
  .seg label:hover span { color: var(--stage-ink); }
  .seg label:hover input:not(:checked) + span { box-shadow: inset 0 0 0 2px var(--lav); }
  .deck button:not(:disabled):not([aria-disabled="true"]):hover { filter: brightness(1.18); transform: translateY(-1px); }
  .deck .talk:not([aria-disabled="true"]):not(.on):hover { background: rgb(143 224 168 / .12); filter: none; }
}
.deck button { transition: filter .12s ease, transform .12s ease, background-color .12s ease; }
@media (prefers-reduced-motion: reduce) { .deck button { transition: none; } .deck button:hover { transform: none !important; } }
/* reduced motion: an animated GIF shown as its first frame, played by a click (theme.js ABBMotion) */
.motion-gate { all: unset; position: relative; display: block; width: fit-content; max-width: 100%; cursor: pointer; border-radius: 12px; }
.motion-gate canvas, .motion-gate img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.motion-gate::after { content: "▶"; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; background: rgb(23 20 28 / .72); color: #fff; }
.motion-gate[data-state="playing"]::after { content: "❚❚"; font-size: 11px; letter-spacing: -1px; }
.motion-gate:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.panel > .motion-gate { margin-inline: auto; }
.kit .media > .motion-gate { position: absolute; inset: 6%; width: auto; }
.kit .media > .motion-gate canvas, .kit .media > .motion-gate img { position: static; inset: auto; width: 100%; height: 100%; object-fit: contain; }
.seg input:checked + span { background: var(--pink); color: #241b33; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg[aria-busy="true"] span { cursor: progress; }
/* BRB on air: the avatar is off screen, so its buttons dim (aria-disabled keeps them focusable) */
.deck .grp.off > button { opacity: .4; cursor: not-allowed; }
.deck .note[hidden] { display: none; }
/* touch: every deck control at least 44 px tall, and no keyboard hints */
@media (pointer: coarse) {
  .deck button, .seg span { min-height: 44px; }
  .seg span { display: flex; align-items: center; }
  .deck .talk kbd { display: none; }
}
@media (max-width: 640px) { .deck { row-gap: 14px; } .deck .grp { row-gap: 8px; } .deck .lk { flex-basis: 100%; } }

/* a reaction or still the current look doesn't have: greyed out, never swapped for the classic one */
.stills div.missing img { visibility: hidden; }
.stills div.missing { opacity: .45; background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, currentColor 8%, transparent) 6px 12px); border-radius: 8px; }
.spell-l { font-weight: 600; color: var(--mute); }

/* ---- your Twitch name (channel.js renders it into [data-channel] / a placeholder) ---- */
.chan { display: grid; gap: 6px; max-width: 420px; }
.kit figcaption .chan { margin-top: 10px; }
.chan-l { font-weight: 600; font-size: 15px; }
.chan-f { display: flex; align-items: center; min-width: 0; border: 2px solid var(--line); background: var(--bg); border-radius: 999px; padding: 3px 4px 3px 16px; }
.chan-f:focus-within { border-color: var(--lav); outline: 3px solid var(--focus); outline-offset: 2px; }
.chan-pre { color: var(--mute); font-weight: 500; flex: none; }
.chan-f input { flex: 1 1 auto; min-width: 0; font: 600 17px var(--font); color: var(--ink); background: transparent; border: 0; padding: 7px 4px 7px 1px; }
.chan-f input:focus { outline: none; }
.chan-f input::placeholder { color: var(--mute); opacity: .7; font-weight: 500; }
.chan-x { flex: none; width: 34px; height: 34px; padding: 0; justify-content: center; background: var(--soft); color: var(--mute); }
.chan-x:hover { color: var(--ink); }
.chan-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.chan-x[hidden] { display: none; }
.chan-h { font-size: 13px; color: var(--mute); min-height: 1.5em; }
.chan-h.bad { color: var(--ink); }
.chan-h.bad::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-right: 7px; vertical-align: 1px; }
.hero .chan { border-top: 2px dashed var(--line); padding-top: 18px; max-width: none; }
.hero .chan-f { max-width: 420px; }

/* touch screens: every control at least 44 px tall (last, so it wins over the base rules above) */
@media (pointer: coarse) {
  button, .btn, .ed span { min-height: 44px; }
  .chan-x { min-width: 44px; }
  .ed span { display: flex; align-items: center; }
  .nav a, .foot nav a, .head > a { padding-block: 10px; display: inline-block; }
}
