/* 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; --card: #ffffff; --ink: #3b2a4a; --mute: #7a6f88; --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;
  --font: "Fredoka", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #17141c; --card: #221d2a; --ink: #f4eef8; --mute: #a99fb6; --line: #3a3245; --soft: #2a2433; 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 #3b2a4a; 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); }
.nav a:hover { color: var(--ink); }

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; }
button:hover, .btn:hover { filter: brightness(.97); }
.btn.buy, button.buy { background: var(--ink); color: var(--bg); }
.btn.buy:hover, button.buy:hover { background: #4f3a63; color: #fff; }
:focus-visible { outline: 3px solid var(--butter); 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;
  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 #3b2a4a; 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% 62%, var(--glow) 0 46%, transparent 47%); }
.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 { outline: none; 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 #3b2a4a; 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 ---- */
.includes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.includes div { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; }
.includes b { font-size: 17px; }
.includes span { font-size: 13.5px; color: var(--mute); }
.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: 34px; height: 34px; 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% 60%, var(--glow) 0 44%, transparent 45%), 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 #3b2a4a; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.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; }
.game { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, #ffd9a0 0 4%, transparent 4.5%), linear-gradient(180deg, #5a8fd8 0%, #9cc6f0 52%, #4f8a46 52.2%, #3d7038 100%); }
.game::after { content: "GAME CAPTURE"; position: absolute; left: 3%; top: 4%; font-weight: 700; font-size: 13px; letter-spacing: 2px; color: #ffffffb0; }
.brb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brbtext { position: absolute; left: 7%; top: 38%; font-size: clamp(18px, 4.2vw, 54px); font-weight: 700; color: #4b3a63; }
.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; }
.chat .ln { line-height: 28px; }
.chat img { height: 28px; vertical-align: middle; }
.chat img.badge { height: 18px; margin-right: 4px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.controls button { background: var(--stage-line); color: var(--stage-ink); }
.controls button.hot { background: var(--lav); color: #241b33; }
.controls button.hold:active { background: var(--pink); color: #241b33; }

.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; }
.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%; }
.prod .art.photo { background: #fff; }

/* 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(--butter); 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: #2f8a4e; font-weight: 700; } .cmp .n { color: var(--mute); }
@media (prefers-color-scheme: dark) { .cmp .y { color: #8fe0a8; } }
.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 { outline: none; 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, .includes 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; }
.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); }
.lookpick { align-items: center; }
.lookpick .lk { font-size: 13px; color: var(--stage-mute); font-weight: 600; }
.lookpick label { cursor: pointer; }
.lookpick input { position: absolute; opacity: 0; pointer-events: none; }
.lookpick span:not(.lk) { display: block; padding: 7px 14px; border-radius: 999px; background: var(--stage-line); color: var(--stage-ink); font-weight: 600; font-size: 14px; }
.lookpick input:checked + span { background: var(--pink); color: #241b33; }
.lookpick input:focus-visible + span { outline: 3px solid var(--butter); outline-offset: 2px; }
.fine { font-size: 13px; color: var(--mute); }

/* a reaction or still the current look doesn't have: greyed out, never swapped for the classic one */
.controls button:disabled { opacity: .4; cursor: not-allowed; }
.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; }
