/* Kuchice — Chennai popsicle cart arcade */
:root {
  --navy: #13214A;
  --ink: #1D1D2B;
  --cart: #1E56B8;
  --cart-2: #3B86F0;
  --ice: #DFF4FF;
  --ice-2: #BFE6FA;
  --cream: #FFF6E4;
  --mango: #FFC21A;
  --mango-2: #FF9A1F;
  --berry: #FF5A6E;
  --berry-2: #E8304A;
  --pista: #9AD65A;
  --pista-2: #5FAE3A;
  --grape: #A46BE0;
  --rose: #FF9CC8;
  --sand: #F3D9A8;
  --wood: #E2B074;
  --bg: #FFF6E4;
  --surface: #FFFFFF;
  --text: #1D1D2B;
  --muted: #5B5F73;
  --line: rgba(19, 33, 74, .14);
  --shadow: 0 6px 0 rgba(19, 33, 74, .9);
  --shadow-sm: 0 4px 0 rgba(19, 33, 74, .9);
  --r: 22px;
  --font: 'Baloo Thambi 2', 'Nirmala UI', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1730; --surface: #1A2547; --text: #FFF6E4; --muted: #B9C2DE; --line: rgba(255,255,255,.14);
    --shadow: 0 6px 0 rgba(0,0,0,.65); --shadow-sm: 0 4px 0 rgba(0,0,0,.65); --cream: #20305C;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1730; --surface: #1A2547; --text: #FFF6E4; --muted: #B9C2DE; --line: rgba(255,255,255,.14);
  --shadow: 0 6px 0 rgba(0,0,0,.65); --shadow-sm: 0 4px 0 rgba(0,0,0,.65); --cream: #20305C;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 17px; line-height: 1.4; overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(30,86,184,.08) 1.5px, transparent 0);
  background-size: 22px 22px;
}
img, svg { max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--mango); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mango); color: var(--ink); padding: 8px 14px; border-radius: 12px; z-index: 99; font-weight: 800; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; text-align: center; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px; background: var(--navy); color: #fff; border-bottom: 4px solid var(--mango);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-logo { position: relative; display: inline-flex; flex: none; }
.brand-logo svg { width: 44px; height: 44px; }
.temp-tag {
  position: absolute; right: -8px; bottom: -6px; background: var(--mango); color: var(--ink);
  font-size: 9px; font-weight: 800; letter-spacing: .04em; padding: 1px 5px; border-radius: 6px; border: 1.5px solid var(--ink);
}
.brand-word { font-weight: 800; font-size: 22px; letter-spacing: .06em; line-height: 1; }
.brand-word small { display: block; font-size: 12px; letter-spacing: 0; font-weight: 600; color: var(--ice-2); margin-top: 3px; }
.topbar-actions { display: flex; gap: 8px; flex: none; }
.chip-btn {
  appearance: none; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff;
  font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chip-btn:hover { background: rgba(255,255,255,.18); }
.chip-btn[aria-pressed="true"] { opacity: .7; }

/* ---------- chunky buttons ---------- */
.btn {
  --c: var(--berry); --t: #fff;
  appearance: none; border: 3px solid var(--navy); background: var(--c); color: var(--t);
  font-weight: 800; font-size: 20px; letter-spacing: .02em; padding: 12px 22px; border-radius: 18px;
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .08s ease, box-shadow .08s ease; touch-action: manipulation; min-height: 52px; line-height: 1.1;
}
.btn:active, .btn.pressed { transform: translateY(4px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn.mango { --c: var(--mango); --t: var(--ink); }
.btn.pista { --c: var(--pista); --t: var(--ink); }
.btn.ice { --c: var(--ice); --t: var(--navy); }
.btn.blue { --c: var(--cart); --t: #fff; }
.btn.ghost { --c: var(--surface); --t: var(--text); }
.btn.big { font-size: 24px; padding: 16px 26px; min-height: 64px; width: 100%; }
.btn.sm { font-size: 16px; padding: 8px 14px; min-height: 44px; border-radius: 14px; }
.btn[disabled] { filter: grayscale(.7); opacity: .6; cursor: not-allowed; }

/* ---------- hero cart scene ---------- */
.hero { position: relative; overflow: hidden; color: var(--ink); }
.scene {
  position: relative; height: 380px; overflow: hidden;
  background: linear-gradient(#8FD3FF 0%, #BFE6FA 42%, #FFE7A8 62%, #F3D9A8 63%, #EFCB8C 100%);
  border-bottom: 4px solid var(--navy);
}
.scene .sun { position: absolute; width: 90px; height: 90px; right: 8%; top: 18px; border-radius: 50%; background: radial-gradient(#FFF3B0, #FFC21A 60%, rgba(255,194,26,0) 70%); }
.scene .sea { position: absolute; left: 0; right: 0; top: 52%; height: 22px; background: repeating-linear-gradient(90deg, #3B86F0 0 30px, #4F9AF7 30px 60px); opacity: .85; }
.scene .lighthouse { position: absolute; left: 6%; top: 22%; width: 26px; height: 90px; background: repeating-linear-gradient(#fff 0 15px, #E8304A 15px 30px); border-radius: 6px 6px 0 0; border: 2px solid var(--navy); }
.scene .lighthouse::before { content: ''; position: absolute; left: -6px; right: -6px; top: -14px; height: 16px; background: var(--navy); border-radius: 8px 8px 2px 2px; }
.scene .palm { position: absolute; bottom: 120px; width: 10px; height: 130px; background: #9A6A36; border-radius: 6px; transform-origin: bottom; }
.scene .palm::before { content: '🌴'; position: absolute; font-size: 74px; left: -36px; top: -54px; }
.scene .palm.a { left: 2%; transform: rotate(-6deg); } .scene .palm.b { right: 3%; transform: rotate(5deg); }
.scene .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
.scene .ground svg { width: 100%; height: 30px; position: absolute; bottom: 14px; opacity: .8; }
.scene .cart-wrap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(340px, 82vw); z-index: 2; }
.scene .cart-wrap svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 0 rgba(19,33,74,.25)); }
.scene .host { position: absolute; left: max(-4px, calc(50% - 250px)); bottom: 6px; width: min(150px, 34vw); z-index: 3; animation: bob 2.8s ease-in-out infinite; }
.scene .blaster-wrap { position: absolute; right: max(-6px, calc(50% - 250px)); bottom: 4px; width: min(120px, 28vw); z-index: 3; }
.scene .blaster-wrap svg { width: 100%; height: auto; }
.bubble {
  position: absolute; z-index: 4; left: 50%; top: 16px; transform: translateX(-50%); width: min(92%, 420px);
  background: #fff; border: 3px solid var(--navy); border-radius: 20px; padding: 10px 14px; box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 16px; color: var(--ink); text-align: center;
}
.bubble b { color: var(--cart); }
.bubble::after { content: ''; position: absolute; left: 22%; bottom: -14px; border: 10px solid transparent; border-top-color: var(--navy); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

.welcome { padding: 18px 16px 6px; max-width: 980px; margin: 0 auto; }
.eyebrow { font-weight: 800; letter-spacing: .12em; font-size: 13px; color: var(--cart); text-transform: uppercase; }
:root[data-theme="dark"] .eyebrow { color: var(--ice-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--ice-2); } }
.welcome h1 { font-size: clamp(36px, 10vw, 64px); line-height: .95; margin: 4px 0 8px; font-weight: 800; letter-spacing: -.01em; }
.welcome h1 .pop { color: var(--berry); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--mango); }
.welcome p { margin: 0 0 14px; color: var(--muted); font-size: 18px; }
.cart-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--mango); color: var(--ink); border: 3px solid var(--navy);
  border-radius: 999px; padding: 4px 14px 4px 6px; font-weight: 800; box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.cart-badge .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--cart); display: grid; place-items: center; color: #fff; font-size: 14px; }
.cta-row { display: grid; gap: 10px; }
@media (min-width: 640px) { .cta-row { grid-template-columns: 1.4fr 1fr; } }

/* ---------- game cards ---------- */
.section { max-width: 980px; margin: 0 auto; padding: 18px 16px; }
.section h2 { font-size: 28px; margin: 0 0 12px; line-height: 1; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  --c: var(--mango); position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 3px solid var(--navy); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); overflow: hidden; cursor: pointer; text-align: left; font: inherit; width: 100%;
}
.card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 116px; background: var(--c); border-right: 3px solid var(--navy); }
.card .art { position: relative; z-index: 1; display: grid; place-items: center; height: 104px; }
.card .art svg { max-height: 104px; width: auto; }
.card .tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.card h3 { margin: 0; font-size: 26px; line-height: 1; }
.card p { margin: 4px 0 8px; color: var(--muted); font-size: 15px; line-height: 1.3; }
.card .go { display: inline-flex; font-weight: 800; background: var(--navy); color: #fff; border-radius: 12px; padding: 4px 12px; font-size: 15px; }
.card:hover { transform: translateY(-2px); }
.card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.card.c-launcher { --c: var(--berry); } .card.c-lab { --c: var(--mango); } .card.c-garden { --c: var(--pista); } .card.c-dogs { --c: var(--ice-2); }

.crew { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .crew { grid-template-columns: 1fr 1fr; } }
.crew-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 3px solid var(--navy); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow-sm); }
.crew-card .pic { height: 130px; display: grid; place-items: center; background: var(--ice); border-radius: 16px; border: 2px dashed var(--cart); }
.crew-card .pic img, .crew-card .pic svg { max-height: 124px; width: auto; }
.crew-card h3 { margin: 0; font-size: 22px; line-height: 1.05; }
.crew-card p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 3px solid var(--navy); border-radius: 18px; padding: 10px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 28px; line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }

.footer { max-width: 980px; margin: 0 auto; padding: 20px 16px calc(32px + var(--safe-b)); color: var(--muted); font-size: 14px; }
.footer .note { background: var(--surface); border: 2px dashed var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }

/* ---------- game view ---------- */
.game-view { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.game-view[hidden] { display: none; }
.gbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--navy); color: #fff; border-bottom: 4px solid var(--mango); flex: none; }
.gbar h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar .back { appearance: none; border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 800; font-size: 15px; border-radius: 12px; padding: 6px 10px; cursor: pointer; min-height: 40px; }
.gbody { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px calc(18px + var(--safe-b)); }
.gbody.flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.wrap { max-width: 760px; margin: 0 auto; }

.hud { display: flex; gap: 6px; padding: 8px 10px; flex: none; justify-content: center; }
.hud .pill { background: var(--surface); border: 3px solid var(--navy); border-radius: 14px; padding: 2px 8px; font-weight: 800; font-size: 18px; min-width: 66px; flex: 1; max-width: 120px; text-align: center; box-shadow: 0 3px 0 var(--navy); }
.hud .pill small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; line-height: 1; margin-top: 2px; }

/* launcher */
.launch-stage { position: relative; flex: 1; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.launch-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.launch-controls { flex: none; display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; padding: 8px 12px calc(10px + var(--safe-b)); background: var(--navy); }
.launch-controls .btn { min-height: 60px; }
.toast {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(1); pointer-events: none;
  font-weight: 800; font-size: 32px; color: #fff; -webkit-text-stroke: 1.5px var(--navy); text-shadow: 0 4px 0 var(--navy);
  opacity: 0; transition: opacity .2s, transform .3s; text-align: center; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, -70%) scale(1.06); }
.overlay {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19,33,74,.55); padding: 16px; z-index: 5;
}
.overlay[hidden] { display: none; }
.panel { background: var(--surface); color: var(--text); border: 3px solid var(--navy); border-radius: 26px; padding: 18px; width: min(420px, 100%); box-shadow: var(--shadow); text-align: center; }
.panel h3 { margin: 0 0 4px; font-size: 32px; line-height: 1; }
.panel .score { font-size: 56px; font-weight: 800; color: var(--berry); line-height: 1; margin: 6px 0; }
.panel p { color: var(--muted); margin: 6px 0 12px; }
.panel .row { display: grid; gap: 10px; }
.panel .blaster { width: 110px; height: auto; }
.kbd { display: inline-block; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 8px; padding: 0 6px; font-size: 13px; font-weight: 800; }

/* choice chips (lab, garden, dogs) */
.step-title { font-weight: 800; font-size: 20px; margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.step-title .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 16px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.chip {
  appearance: none; border: 3px solid var(--navy); background: var(--surface); color: var(--text); border-radius: 16px; padding: 8px 6px;
  font-weight: 800; font-size: 15px; cursor: pointer; min-height: 72px; display: grid; place-items: center; gap: 2px; text-align: center; line-height: 1.1;
  box-shadow: 0 3px 0 var(--navy); touch-action: manipulation;
}
.chip .em { font-size: 28px; line-height: 1; }
.chip small { font-weight: 600; color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--mango); color: var(--ink); transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }
.chip[aria-pressed="true"] small, .chip[aria-checked="true"] small { color: var(--ink); }

.challenges { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.challenge { flex: 0 0 230px; scroll-snap-align: start; border: 3px solid var(--navy); border-radius: 18px; padding: 10px 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); box-shadow: 0 3px 0 var(--navy); }
.challenge[aria-pressed="true"] { background: var(--ice); color: var(--ink); }
.challenge b { display: block; font-size: 17px; }
.challenge span { font-size: 14px; color: var(--muted); }
.challenge.done b::after { content: ' ✓'; color: var(--pista-2); }

.lab-result { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .lab-result { grid-template-columns: 1fr 1fr; align-items: start; } }
.meter { display: grid; grid-template-columns: 90px 1fr 26px; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; }
.meter .bar { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; border: 2px solid var(--navy); }
.meter .bar i { display: block; height: 100%; background: var(--c, var(--mango)); width: 0; transition: width .5s cubic-bezier(.2,1.4,.4,1); }
.recipe-card { background: #FFF9EC; color: var(--ink); border: 3px solid var(--navy); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-sm); position: relative; }
.recipe-card h4 { margin: 0; font-size: 26px; line-height: 1; }
.recipe-card .meta { font-size: 14px; color: #5B5F73; }
.recipe-card ul { margin: 8px 0; padding-left: 20px; }
.feedback { border: 3px solid var(--navy); border-radius: 18px; padding: 10px 12px; background: var(--surface); display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; }
.feedback svg { width: 80px; height: auto; }
.feedback .say { font-weight: 700; }
.goal-banner { border-radius: 14px; padding: 8px 12px; font-weight: 800; margin-top: 8px; border: 3px solid var(--navy); }
.goal-banner.ok { background: var(--pista); color: var(--ink); }
.goal-banner.no { background: var(--ice); color: var(--ink); }
.box-list { display: grid; gap: 8px; }
.box-item { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 14px; padding: 6px 10px; background: var(--surface); }
.box-item .swatch { width: 20px; height: 40px; border-radius: 8px 8px 4px 4px; border: 2px solid var(--navy); flex: none; }
.box-item div { flex: 1; min-width: 0; }
.box-item b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box-item small { color: var(--muted); }

/* garden */
.sim-label { display: inline-flex; align-items: center; gap: 6px; background: var(--ice); color: var(--navy); border: 2px solid var(--cart); padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.pot-stage { position: relative; border: 3px solid var(--navy); border-radius: 24px; background: linear-gradient(#BFE6FA, #FFF1C9); height: 290px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pot-stage svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%; width: auto; }
.pot-stage .day { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); border: 2px solid var(--navy); border-radius: 12px; padding: 2px 10px; font-weight: 800; }
.pot-stage .moist { position: absolute; right: 10px; top: 10px; background: #fff; color: var(--ink); border: 2px solid var(--navy); border-radius: 12px; padding: 2px 10px; font-weight: 800; font-size: 14px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.obs { display: grid; gap: 8px; border: 3px solid var(--navy); border-radius: 18px; padding: 12px; background: var(--surface); }
.obs label { font-weight: 800; font-size: 15px; }
.obs textarea, .obs input[type="range"] { width: 100%; font: inherit; }
.obs textarea { border: 2px solid var(--navy); border-radius: 12px; padding: 8px; min-height: 64px; background: var(--bg); color: var(--text); font-size: 16px; }
.journal { display: grid; gap: 8px; margin-top: 12px; }
.entry { border-left: 6px solid var(--pista-2); background: var(--surface); border-radius: 12px; padding: 8px 12px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.entry b { display: block; }
.entry small { color: var(--muted); }

/* dogs */
.scenario { border: 3px solid var(--navy); border-radius: 24px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.scenario .pic { height: 170px; background: linear-gradient(#BFE6FA, #FFE7A8 70%, #EFCB8C 70%); display: grid; place-items: center; font-size: 80px; position: relative; border-bottom: 3px solid var(--navy); }
.scenario .pic .tag { position: absolute; left: 10px; top: 10px; font-size: 13px; font-weight: 800; background: var(--navy); color: #fff; padding: 2px 10px; border-radius: 999px; }
.scenario .q { padding: 12px 14px 4px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.options { display: grid; gap: 8px; padding: 10px 14px 14px; }
.option { appearance: none; text-align: left; font: inherit; font-weight: 700; font-size: 17px; color: var(--text); background: var(--bg); border: 3px solid var(--navy); border-radius: 16px; padding: 10px 12px; cursor: pointer; min-height: 56px; box-shadow: 0 3px 0 var(--navy); }
.option .k { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 14px; margin-right: 8px; }
.option.right { background: var(--pista); color: var(--ink); }
.option.wrong { background: #FFD3D9; color: var(--ink); }
.option[disabled] { cursor: default; }
.explain { margin: 0 14px 14px; padding: 12px; border-radius: 16px; border: 3px dashed var(--cart); background: var(--ice); color: var(--ink); }
.explain b { display: block; font-size: 18px; }
.progress { display: flex; gap: 6px; justify-content: center; margin: 4px 0 12px; }
.progress i { width: 26px; height: 10px; border-radius: 999px; background: var(--line); border: 2px solid var(--navy); }
.progress i.on { background: var(--mango); }
.progress i.good { background: var(--pista); }
.safety-note { font-size: 14px; color: var(--muted); margin-top: 12px; border: 2px dashed var(--line); padding: 8px 12px; border-radius: 12px; }

/* Popsicle Blaster poses */
.blaster .b-body { transform-origin: 100px 240px; }
.blaster .b-arm-l { transform-origin: 44px 116px; } .blaster .b-arm-r { transform-origin: 156px 116px; }
.blaster .b-mouth-oops, .blaster .b-sweat { display: none; }
.blaster.pose-idle .b-body { animation: bob 2.4s ease-in-out infinite; }
.blaster.pose-launch .b-body { animation: recoil .35s ease-out; }
.blaster.pose-cheer .b-arm-l { transform: rotate(40deg); } .blaster.pose-cheer .b-arm-r { transform: rotate(-110deg); }
.blaster.pose-cheer .b-body { animation: hop .5s ease-in-out infinite; }
.blaster.pose-oops .b-mouth-happy { display: none; } .blaster.pose-oops .b-mouth-oops, .blaster.pose-oops .b-sweat { display: inline; }
.blaster.pose-oops .b-body { animation: wiggle .4s ease-in-out 2; }
.blaster.pose-think .b-arm-r { transform: rotate(-150deg) translate(-6px, 6px); }
.blaster.pose-think .b-pupil { transform: translate(3px, -4px); }
@keyframes recoil { 30% { transform: translate(-8px, 4px) rotate(-6deg); } }
@keyframes hop { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 900px) {
  .scene { height: 440px; }
  .scene .host { width: 190px; left: calc(50% - 360px); }
  .scene .blaster-wrap { width: 150px; right: calc(50% - 350px); }
  .scene .cart-wrap { width: 400px; }
}

/* ---------- phone tuning ---------- */
@media (max-width: 520px) {
  .topbar { padding: 8px 12px; }
  .brand-logo svg { width: 38px; height: 38px; }
  .brand-word { font-size: 19px; }
  .brand-word small { font-size: 11px; white-space: nowrap; }
  .chip-btn { font-size: 13px; padding: 6px 10px; }
  .chip-btn .lbl { display: none; }
  .scene { height: 330px; }
  .scene .cart-wrap { width: 66vw; left: 54%; bottom: 14px; }
  .scene .host { width: 28vw; left: -2px; }
  .scene .blaster-wrap { width: 22vw; right: 0; }
  .bubble { font-size: 15px; top: 10px; }
  .welcome h1 { font-size: 40px; }
  .btn.big { font-size: 21px; }
}
