/* Batercus Mascot Generator: "Dark Roast" theme. Warm dark browns, cream text, one caramel accent. Flat and matte.
   Body and code fonts are bundled; the heading font (Fredoka) comes from Google Fonts and falls back to the body font. */
@font-face { font-family: 'Space Grotesk'; font-weight: 400; src: url('assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; src: url('assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #1B1410; --panel: #271D17; --raised: #34271F; --well: #150F0C; --line: #4A382C; --line2: #5E4838;
  --ink: #F1E7DA; --mute: #B9A792; --accent: #D9924A; --accent-hi: #E6A562; --accent-ink: #21160E;
  --good: #8FB37A; --bad: #E08573; --mouth: #22c55e; --eye: #38bdf8;
  --r: 18px; --r-sm: 12px;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fredoka', 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent-hi); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
h3 { font-weight: 600; font-size: 18px; line-height: 1.3; }
.hl { font-style: normal; color: var(--accent); }
.muted { color: var(--mute); }
.mono { font-family: var(--mono); }
.opt { font: 500 12px/1 var(--font); color: var(--mute); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 8px; margin-left: 8px; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* top bar */
.top { border-bottom: 1px solid var(--line); background: var(--well); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 40px; width: auto; }
.brand .word { height: 17px; width: auto; }
.top-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; background: var(--panel); }
.lang button { background: none; border: 0; color: var(--mute); font: 700 13px var(--font); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: var(--accent); color: var(--accent-ink); }

/* hero: words left, character on a stage right */
.hero { border-bottom: 1px solid var(--line); }
body.working .hero { display: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.kicker { font: 700 13px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--mute); max-width: 34em; margin: 14px 0 24px; }
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; counter-reset: how; }
.how li { counter-increment: how; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.how li::before { content: counter(how); width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--raised); border: 1px solid var(--line2); color: var(--accent-hi); font: 600 15px var(--display); }
.how li:not(:last-child)::after { content: ""; width: 28px; height: 2px; background: var(--line2); margin: 0 12px 0 2px; }
.how-note { font-size: 13px; color: var(--mute); margin: 16px 0 0; }
.hero-stage { position: relative; justify-self: center; width: min(100%, 300px); aspect-ratio: 5 / 6; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: end center; overflow: hidden; }
.hero-stage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 7%; height: 9%; border-radius: 50%; background: var(--well); }
.hero-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--accent); }
.hero-stage img { position: relative; height: 86%; width: auto; margin-bottom: 9%; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--raised); color: var(--ink); font: 700 15px/1.2 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: #3E2F25; border-color: var(--mute); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* shell: step rail on the left, work area on the right */
.page { flex: 1; }
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 30px; padding-bottom: 70px; }
.rail { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 22px; }
.steps { display: flex; flex-direction: column; gap: 4px; position: relative; }
.steps::before { content: ""; position: absolute; left: 25px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.steps button { position: relative; display: flex; align-items: center; gap: 12px; background: none; border: 0; border-radius: var(--r-sm); color: var(--mute); padding: 8px 10px; font: 700 15px var(--font); text-align: left; cursor: pointer; }
.steps button i { font: 600 15px var(--display); font-style: normal; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--panel); border: 2px solid var(--line2); color: var(--mute); }
.steps button:hover:not(:disabled) { background: var(--panel); }
.steps button.on { color: var(--ink); background: var(--panel); }
.steps button.on i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps button.done i { background: var(--raised); border-color: var(--good); color: var(--good); }
.steps button:disabled { opacity: .5; cursor: not-allowed; }
.coach { display: flex; flex-direction: column; align-items: center; gap: 0; }
.coach-tip { position: relative; margin: 0 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.coach-tip::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.coach img { height: 170px; width: auto; }

main { min-width: 0; }
.step { display: none; }
.step.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .step.on { animation: none; } }
.step-head { margin-bottom: 20px; max-width: 46em; }
.step-head p { margin: 8px 0 0; color: var(--mute); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card + .card, .card + .pair, .pair + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.pair > .card + .card { margin-top: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tip { font-size: 14px; color: var(--mute); margin: 12px 0 0; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
textarea, input[type=password], input[type=text], select { width: 100%; background: var(--well); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 12px; font: 400 13px/1.55 var(--mono); resize: vertical; }
input[type=text], select { font: 500 15px var(--font); }
select { width: auto; min-width: 200px; }

/* step 1: start choice, sample strip, prompt card */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.modes button { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--panel); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink); cursor: pointer; font: inherit; }
.modes button b { font: 600 18px var(--display); }
.modes button small { color: var(--mute); font-size: 14px; }
.modes button.on { border-color: var(--accent); background: var(--raised); }
.modes .count { display: inline-block; min-width: 22px; text-align: center; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 13px/22px var(--font); vertical-align: 2px; }
.sample h3 { margin-bottom: 12px; }
.poses6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 14px 12px 10px; background: #00B140; border-radius: var(--r-sm); }
.poses6 figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.poses6 img { width: 100%; height: 150px; object-fit: contain; }
.poses6 figcaption { font: 700 12px var(--font); color: #06260F; background: rgba(255,255,255,.75); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.chips { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: chip; }
.chips li { counter-increment: chip; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.chips li::before { content: counter(chip); display: block; font: 600 16px var(--display); color: var(--accent-hi); margin-bottom: 2px; }
#prompt { height: 250px; }
details.extra { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.extra summary { cursor: pointer; font: 600 17px var(--display); }
details.extra summary::marker { color: var(--accent); }
details.extra p { margin: 10px 0 12px; }
details.extra textarea { height: 180px; margin-top: 12px; }

/* My Mascots */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.shelf:empty { display: none; }
.mcard { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mcard img { width: 100%; height: 150px; object-fit: contain; background: var(--well); border-radius: 8px; }
.mcard b { font: 600 16px var(--display); overflow-wrap: anywhere; }
.mcard input { padding: 6px 8px; }
.mcard .row { gap: 6px; }
.mcard .danger { color: var(--bad); }

/* drop zones */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 200px; border: 2px dashed var(--line2); border-radius: var(--r); background: var(--well); cursor: pointer; text-align: center; padding: 20px; transition: border-color .15s, background .15s; font-weight: 700; }
.drop.small { min-height: 130px; }
.drop small { font-weight: 400; color: var(--mute); }
.drop:hover, .drop.over { border-color: var(--accent); background: #1E1611; }
.drop-icon { font: 600 30px var(--display); color: var(--accent); line-height: 1; }
.status { min-height: 1.5em; color: var(--mute); margin: 12px 0 0; font-weight: 700; }
.status.err { color: var(--bad); }
.status.ok { color: var(--good); }
.posegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.posegrid:empty { display: none; }
.posecard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.posecard canvas, .face-edit canvas, .checker { background: repeating-conic-gradient(#2E231C 0 25%, #231A15 0 50%) 0 0/22px 22px; }
.posecard canvas { width: 100%; height: 200px; object-fit: contain; border-radius: 8px; }
.posecard select { min-width: 0; width: 100%; padding: 8px; }
.mouthgrid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.mouthgrid:empty { display: none; }
.mouthgrid canvas { width: 100%; height: auto; background: var(--well); border-radius: 6px; }

/* step 3: pose strip on top, preview left, editor right */
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.thumbs button { background: var(--panel); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 4px; cursor: pointer; }
.thumbs button.on { border-color: var(--accent); background: var(--raised); }
.thumbs canvas { width: 100%; height: 64px; display: block; object-fit: contain; }
.face { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.face > .card + .card { margin-top: 0; }
.face-preview canvas { width: 100%; aspect-ratio: 360/440; display: block; border-radius: var(--r-sm); background: var(--well); }
.face-preview .row { margin-top: 12px; }
.face-preview .row .btn { flex: 1; }
.face-edit canvas { width: 100%; max-width: 560px; aspect-ratio: 1; display: block; margin: 12px auto; border-radius: var(--r-sm); cursor: grab; touch-action: none; }
.face-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.face-head b { font: 600 18px var(--display); color: var(--accent-hi); }
.facetool { display: flex; flex-direction: column; gap: 8px; }
.facetool small { font-size: 13px; }
.facetool .seg button.mouth.on { box-shadow: inset 0 0 0 2px var(--mouth); }
.facetool .seg button.eye.on { box-shadow: inset 0 0 0 2px var(--eye); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.keep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 10px 24px; align-items: center; }
.keep .tip { margin-top: 6px; }
.keep .field { margin: 0 0 10px; }
.keep .status { grid-column: 1 / -1; margin: 0; }

/* step 4: voice choices as tiles */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tabs button { background: var(--panel); border: 2px solid var(--line); color: var(--mute); padding: 14px 16px; border-radius: var(--r-sm); font: 600 17px var(--display); text-align: left; cursor: pointer; }
.tabs button.on { border-color: var(--accent); color: var(--ink); background: var(--raised); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-weight: 700; }
.field small { font-weight: 400; }
.rec .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bad); display: inline-block; }
.rec.on .dot { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec-time { font: 700 20px var(--mono); margin-left: 14px; }
audio { width: 100%; margin-top: 12px; }
.elgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 28px; margin-top: 8px; }
.elgrid select { width: 100%; min-width: 0; }
details.elhow { margin: 16px 0 6px; padding: 14px 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); }
details.elhow summary { font-size: 16px; }
details.elhow a { color: var(--accent-hi); }
details.elhow .eljoin { font-size: 14.5px; margin: 12px 0 0; }
.eljoin small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.elsteps { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.elsteps li::marker { color: var(--accent-hi); font-weight: 700; }
details.elhow .tip { margin: 12px 0 0; }
.elcost { font-size: 14px; margin: 0 0 12px; padding: 10px 12px; background: var(--well); border: 1px solid var(--line2); border-radius: var(--r-sm); }
.note { font-size: 14px; max-width: 65ch; margin: 14px 0 0; }
.card.sharp { margin-top: 18px; }
.card.sharp h3 { margin-bottom: 6px; }

/* step 5: controls left, stage right, downloads under the stage */
.studio { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.stage-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stage { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line2); line-height: 0; }
.stage canvas { display: block; max-height: 56vh; max-width: 100%; }
.transport { display: flex; gap: 14px; align-items: center; margin: 14px 0 6px; }
.timeline-label { align-self: stretch; font-size: 14px; margin: 6px 0 6px; }
.timeline { position: relative; align-self: stretch; height: 92px; background: var(--well); border: 1px solid var(--line2); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; }
.timeline canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#poseBlocks { position: absolute; left: 0; right: 0; top: 6px; height: 40px; }
.pblock { position: absolute; top: 0; height: 40px; border-radius: 8px; background: rgba(217,146,74,.2); border: 1px solid rgba(217,146,74,.7); display: flex; align-items: center; gap: 6px; padding: 0 6px; overflow: hidden; font: 700 12px var(--font); white-space: nowrap; cursor: pointer; }
.pblock:hover { background: rgba(217,146,74,.34); }
.pblock canvas { position: static; width: 26px; height: 32px; flex: none; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); pointer-events: none; }
.posepick { display: flex; gap: 8px; margin-top: 10px; padding: 10px; background: var(--panel); border: 1px solid var(--accent); border-radius: var(--r-sm); flex-wrap: wrap; align-self: stretch; }
.posepick b { width: 100%; font: 600 15px var(--display); color: var(--accent-hi); }
.posepick button { background: var(--raised); border: 2px solid var(--line); border-radius: 10px; padding: 4px 8px; cursor: pointer; color: var(--ink); font: 700 12px var(--font); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.posepick button.on, .posepick button:hover { border-color: var(--accent); }
.posepick canvas { width: 54px; height: 70px; }
.controls .ctl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-weight: 700; font-size: 14px; }
.controls .ctl:last-child { margin-bottom: 0; }
.controls select { width: 100%; min-width: 0; padding: 9px 10px; }
.seg { display: flex; background: var(--well); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.seg button { flex: 1; background: none; border: 0; color: var(--mute); font: 700 13px var(--font); padding: 8px 6px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); cursor: pointer; position: relative; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.sw.glow { background: radial-gradient(circle at 30% 30%, #D9924A 0 3px, transparent 4px), radial-gradient(circle at 70% 60%, #F1E7DA 0 2px, transparent 3px), radial-gradient(circle at 45% 78%, #F1E7DA 0 2px, transparent 3px), #1B1410; }
.sw.custom { background: conic-gradient(#E08573, #D9924A, #8FB37A, #6FA8C9, #A98BC9, #E08573); overflow: hidden; }
.sw.custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.exportbar { align-self: stretch; margin-top: 18px; }
.exportbar h3 { margin-bottom: 10px; }
.exports { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--raised); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 14px 16px; color: var(--ink); cursor: pointer; font: 700 15px var(--font); transition: border-color .15s; }
.export:hover { border-color: var(--accent); }
.export small { color: var(--mute); font-weight: 400; font-size: 13px; line-height: 1.4; }
.export:disabled { opacity: .5; cursor: wait; }
.progress { height: 8px; background: var(--well); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* footer band: logo and words left, follow right, character peeking over the edge */
footer { border-top: 1px solid var(--line); background: var(--well); }
.band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 36px 0 30px; padding-right: 150px; }
.band .logos { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.band .mark { height: 44px; width: auto; }
.band .word { height: 18px; width: auto; }
.band h2 { margin-bottom: 8px; }
.band p { color: var(--mute); max-width: 40em; margin: 0; }
.band .peek { position: absolute; right: 0; bottom: 0; height: 190px; width: auto; }
.band-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; justify-self: start; max-width: 340px; }
.band-actions small { font-size: 13px; }
.thanks { font-size: 14px; color: var(--mute); margin: 10px 0 0; }
.thanks a { color: var(--accent-hi); font-weight: 600; }
.legal { border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--mute); padding: 14px 0 20px; }
.legal b { color: var(--ink); }
.legal a { color: var(--mute); }

@media (max-width: 960px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 130px; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
  .hero-stage { border-radius: 18px; }
  .lede { font-size: 16px; }
  .shell { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .rail { position: static; }
  .coach { display: none; }
  .steps { flex-direction: row; gap: 6px; }
  .steps::before { display: none; }
  .steps button { flex: 1; justify-content: center; padding: 6px; background: var(--panel); }
  .steps button span { display: none; }
  .steps button.on { flex: 3; }
  .steps button.on span { display: inline; }
  .pair, .face, .studio, .keep, .elgrid { grid-template-columns: 1fr; }
  .poses6 { grid-template-columns: repeat(3, 1fr); }
  .chips { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding-right: 110px; }
  .band .peek { height: 150px; }
}
@media (max-width: 560px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { display: none; }
  .how li:not(:last-child)::after { display: none; }
  .how { flex-direction: column; }
  .modes, .exports { grid-template-columns: 1fr; }
  .brand .word { display: none; }
  .mouthgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .band { padding-right: 0; }
  .band .peek { display: none; }
}

/* reel style controls */
.reelpanel { display: grid; gap: 10px; margin: -4px 0 18px; padding: 14px; border-radius: var(--r-sm); background: var(--well); border: 1px solid var(--line); }
.reelpanel .field { margin: 0; }
.reelpanel .tip { margin: 0; }
.reelpanel .warn { color: var(--accent-hi); }
