/* Companion gacha (2026-10-21): home coin chip, coin pop, capsule machine modal, capsule opening, evolution controls. */
.coin-icon,.charm-icon,.shard-icon,.prize-icon,.capsule-art,.machine-art,.machine-knob,.prize-rays svg{image-rendering:pixelated;display:block}

/* ---------- Home coin chip (stacked under the lantern chip, under the date): labelled, opaque, 40 px tall ---------- */
.coin-chip{position:fixed;top:calc(max(25px,env(safe-area-inset-top)) + 66px);right:max(22px,env(safe-area-inset-right));z-index:9;display:flex;align-items:center;gap:5px;min-height:40px;min-width:40px;padding:0 10px 0 8px;border:0;background:#120f1f;box-shadow:inset 0 0 0 1px #fff1d82e,2px 2px 0 #050b1580;color:#fff1d8;font:400 18px/1 var(--pixel,VT323,monospace);letter-spacing:1px;cursor:pointer}
.coin-chip .coin-icon{width:16px;height:16px}
.coin-chip small{font-size:12px;letter-spacing:2px;opacity:.75}
.coin-chip:hover,.coin-chip:focus-visible{box-shadow:inset 0 0 0 2px #ffd27f;outline:none}
@media (max-width:700px){.coin-chip{top:calc(max(22px,env(safe-area-inset-top)) + 62px);right:max(15px,env(safe-area-inset-right));font-size:16px}}

/* ---------- Coin counter: fixed under the HUD score box (JS sets top/right), clear of the reveal header. Coins from the
   shower (coin-shower.js) fly into its icon; the count ticks per coin and .coin-count hops a few whole pixels (JS sets it). ---------- */
.coin-pop{position:fixed;right:16px;top:84px;z-index:41;display:flex;align-items:center;gap:4px;padding:4px 10px 3px;background:#120f1f;box-shadow:inset 0 -2px 0 #c9902e,2px 2px 0 #050b1599;color:#ffd27f;font:400 20px/1 var(--pixel,VT323,monospace);letter-spacing:2px;pointer-events:none;animation:coin-pop 2.6s step-end both}
.coin-pop .coin-count{display:inline-flex;align-items:center;gap:4px}
.coin-pop .coin-icon{width:16px;height:16px}
.coin-pop b{font-weight:400;margin-left:4px}
.coin-pop .coin-count.hit b{color:#fff1d8}
.coin-pop small{font-size:13px;letter-spacing:2px;color:#fff1d8;opacity:.75}
.coin-pop.bare small{display:none}
/* The receipt's reserved spot for the welcome coin counter (app.js welcomeSpot): the last extras item, pushed right, as tall as the
   counter so the row gap keeps it clear of the rows above and below (its row centres its text). */
.receipt .receipt-extras:has(.coin-slot){align-items:center}.receipt .receipt-extras .coin-slot{width:100px;height:28px;margin-left:auto}.receipt .receipt-extras .coin-slot::before{content:none}
@media (max-width:700px){.receipt .receipt-extras .coin-slot{width:60px;height:26px}}
.coin-pop.small{font-size:16px;padding:1px 6px 2px}
/* Pooled shower sprites (40 coins, 12 sparkles; the .cs-dust rules are unused since round 2); JS moves them on a 3 px grid in 1/30 s steps and hides them when idle. */
.coin-shower{position:fixed;inset:0;z-index:42;pointer-events:none;overflow:hidden;contain:strict}
.cs-coin,.cs-spark,.cs-dust{position:absolute;left:0;top:0;visibility:hidden}
.cs-coin,.cs-coin svg{width:24px;height:24px}.cs-coin svg,.cs-spark svg{position:absolute;left:0;top:0}
.cs-coin.near svg{width:16px;height:16px;left:4px;top:4px}
.cs-coin .cs-edge,.cs-coin .cs-tq,.cs-coin.edge .cs-face,.cs-coin.tq .cs-face{display:none}.cs-coin.edge .cs-edge,.cs-coin.tq .cs-tq{display:block}
.cs-dust,.cs-dust svg{width:21px;height:9px}.cs-dust svg{position:absolute;left:0;top:0}.cs-dust .cs-b,.cs-dust.late .cs-a{display:none}.cs-dust.late .cs-b{display:block}
.cs-spark,.cs-spark svg{width:15px;height:15px}
.cs-spark .cs-small,.cs-spark.late .cs-big{display:none}.cs-spark.late .cs-small{display:block}
/* Whole-pixel steps (step-end holds each keyframe): visible from the first frame, so the coins burst out of the counter, not empty space. */
@keyframes coin-pop{0%{opacity:1;transform:translateY(2px)}6%{transform:translateY(-2px)}12%,80%{opacity:1;transform:none}84%{opacity:.75;transform:translateY(-2px)}88%{opacity:.5;transform:translateY(-4px)}92%{opacity:.25;transform:translateY(-6px)}96%,100%{opacity:0;transform:translateY(-8px)}}
/* A counter placed in a receipt slot fades in place: the rise would cross the row above. */
.coin-pop.placed{animation-name:coin-pop-placed}
@keyframes coin-pop-placed{0%{opacity:1;transform:translateY(2px)}6%{transform:translateY(-2px)}12%,80%{opacity:1;transform:none}84%{opacity:.75}88%{opacity:.5}92%{opacity:.25}96%,100%{opacity:0;transform:none}}
.coin-pop.still{animation:coin-fade 2.6s linear both}
@keyframes coin-fade{0%,100%{opacity:0}10%,85%{opacity:1}}
@media (max-width:700px){.coin-pop{font-size:18px}}
/* Round 2 (user, 2026-11-01: "Make the coin ui background transparent"): no box; the count and label keep a 1 px ink ring
   plus a 1x2 drop on whole pixels (as the home coin chip), so they read on every sky at > 4.5:1 with no glow. */
.coin-pop{background:none;box-shadow:none;text-shadow:1px 0 #20354d,-1px 0 #20354d,0 1px #20354d,0 -1px #20354d,1px 2px #20354d}
.coin-pop small{opacity:1;color:#eadfc4}

/* ---------- Machine modal ---------- */
.gashapon{display:flex;flex-direction:column;gap:10px}
.gashapon-stage{position:relative;display:flex;justify-content:center;align-items:flex-end;min-height:264px;padding:4px 0 44px}
.gashapon-machine{position:relative;width:156px;height:216px;transition:filter 0s}
/* 52×72 art at exactly 3 px per art pixel; the knob sprite sits on its socket and turns in 90° steps. */
.machine-art{width:156px;height:216px;transition:opacity .25s,filter .25s}
.machine-knob{position:absolute;z-index:4;/* above the shards (3), below the prize and rays (5) */left:calc(var(--knob-x)*3px);top:calc(var(--knob-y)*3px);width:calc(var(--knob-s)*3px);height:calc(var(--knob-s)*3px);transition:opacity .25s,filter .25s}
/* While the prize is up, a panel-cream plate (art x13..22, y47..56) hides the coin slot and price tag, which the centred prize would half cover (it read as a "5"). */
.slot-cover{position:absolute;left:39px;top:141px;width:30px;height:30px;background:#fff1d8;visibility:hidden;transition:filter .25s}
.gashapon-stage:has(.capsule-out.opened) .slot-cover{visibility:visible;filter:saturate(.15) brightness(.45)}
.gashapon-machine.cranking .machine-knob{animation:crank .44s steps(4) both}
.gashapon-machine.cranking .machine-art{animation:machine-jolt .44s steps(3) both}
@keyframes crank{to{transform:rotate(360deg)}}
@keyframes machine-jolt{33%{transform:translateX(-3px)}66%{transform:translateX(3px)}}
/* While a prize shows, the whole machine (knob included) steps back so the prize reads. */
.gashapon-stage:has(.capsule-out.opened) .machine-art,.gashapon-stage:has(.capsule-out.opened) .machine-knob{filter:saturate(.15) brightness(.45)}
/* Opaque navy-grey dim in two parts, so the hue never sweeps (a transitioned hue-rotate passes through green and teal):
   the art, knob and slot cover fade dark and grey (.25 s); the navy tint on the machine wrapper snaps on only once they are dark,
   and snaps off first on the way back, while still dark. Red body ≈ #393c48, cream ≈ #737073. */
.gashapon-stage:has(.capsule-out.opened) .gashapon-machine{filter:sepia(.5) hue-rotate(200deg);transition:filter 0s .25s}
.capsule-out{position:absolute;left:50%;bottom:2px;width:0;height:0}
.capsule-out .capsule,.capsule-out .capsule-split{position:absolute;left:-24px;bottom:0;width:48px;height:48px;opacity:0}
.capsule-out .capsule-art{width:48px;height:48px}
.capsule-out.dropping .capsule{animation:capsule-drop .74s steps(8) both}
.capsule-out.cracking .capsule{opacity:0;animation:none}
.capsule-out.cracking .capsule-split{opacity:1;animation:capsule-crack .3s steps(3) both}
.capsule-out.opened .capsule-split{opacity:0;animation:none}
/* Starts inside the chute mouth (54 px up, half scale), drops out onto the ground and wobbles. */
@keyframes capsule-drop{0%{opacity:1;transform:translateY(-54px) scale(.5)}45%{opacity:1;transform:none}62%{transform:translateY(-9px) rotate(-12deg)}80%{transform:rotate(12deg)}100%{opacity:1;transform:none}}
@keyframes capsule-crack{0%{transform:scale(1.1)}100%{transform:none}}
.capsule-prize{position:absolute;z-index:5;left:-150px;width:300px;bottom:46px;display:flex;flex-direction:column;align-items:center;gap:6px;opacity:0;white-space:nowrap;pointer-events:none}
.capsule-prize .prize-icon{position:relative;z-index:1;width:48px;height:48px}
.capsule-prize b{position:relative;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;will-change:transform;padding:3px 8px 2px;background:#120f1f;font:400 22px/1 var(--pixel,VT323,monospace);letter-spacing:2px;color:#fff1d8}
.capsule-prize.charm b{color:#ffd27f}
.capsule-out.opened .capsule-prize{animation:prize-pop .5s steps(1) both}
@keyframes prize-pop{0%{opacity:1;transform:translateY(42px)}20%{opacity:1;transform:translateY(30px)}40%{transform:translateY(18px)}60%{transform:translateY(6px)}80%{transform:translateY(-3px)}100%{opacity:1;transform:none}}
/* Stepped pixel rays (two pre-drawn variants flipped on twos, never rotated off the grid) behind a charm. */
.prize-rays{position:absolute;left:50%;top:24px;z-index:0;width:123px;height:123px;transform:translate(-50%,-50%);clip-path:inset(0 0 60px 0)}
.prize-rays svg{position:absolute;inset:0;width:123px;height:123px}
/* The two ray sets swap (a half-spoke turn) instead of fading, so the rays never blend with what they cover. */
.prize-rays .ray-b{visibility:hidden}
.capsule-out.opened .prize-rays .ray-a{animation:ray-flip .8s step-end infinite}
.capsule-out.opened .prize-rays .ray-b{animation:ray-flip .8s step-end -.4s infinite}
@keyframes ray-flip{0%{visibility:visible}50%{visibility:hidden}}
/* Low quality caps every animation at one iteration (fx.css), which left a 400 ms gap with no rays: show ray-a still instead. */
body[data-quality="0"] .prize-rays svg,body[data-quality="1"] .prize-rays svg{animation:none!important}
@media (min-width:701px){.prize-rays,.prize-rays svg{width:164px;height:164px}.prize-rays{clip-path:inset(0 0 80px 0)}}
/* Shard pulls: ten blue pixel shards burst outward from the capsule. */
.shard-burst{position:absolute;left:0;top:0;z-index:3;width:0;height:0}
/* 4×4 art pixels on the 3 px grid: a light face, a 3 px shade on two sides and a 3 px ink rim. */
.shard-burst i{position:absolute;left:-6px;top:-6px;width:12px;height:12px;background:#cfeaff;box-shadow:inset -3px -3px 0 #5f6fc0,0 0 0 3px #120f1f;opacity:0}
/* Shards move in 9 whole-pixel steps and are fully opaque or gone (no fade): hidden on step 0, where all seven coincide, and after the last. */
.capsule-out.opened .shard-burst i{animation:shard-out .9s steps(9) .15s forwards,shard-show .9s step-end .15s forwards}
@keyframes shard-out{0%{transform:translate(0,0)}100%{transform:translate(var(--dx),var(--dy))}}
@keyframes shard-show{0%{opacity:0}11.2%{opacity:1}99.9%{opacity:1}100%{opacity:0}}
.gashapon-rules{margin:0;text-align:center;font-size:16px;line-height:1.2;letter-spacing:1px;color:#e8dcc8}
.gashapon-wallet{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.gashapon-wallet span{display:flex;align-items:center;gap:6px;font:400 22px/1 var(--pixel,VT323,monospace)}
.gashapon-wallet .coin-icon,.gashapon-wallet .charm-icon,.gashapon-wallet .shard-icon{width:20px;height:20px}
.gashapon-wallet b{font-weight:400;color:#fff1d8}.gashapon-wallet small{font-size:13px;letter-spacing:2px;opacity:.75}
.pity-row{display:flex;justify-content:center;align-items:center;gap:8px}
.pity-row small{font-size:12px;letter-spacing:2px;opacity:.75}
.pity-meter{display:flex;justify-content:center;gap:4px}
.pity-meter i{width:14px;height:10px;background:#3b3650;box-shadow:inset 0 0 0 2px #120f1f}
.pity-meter i.on{background:#ffd27f}
.pity-meter i.last{background:#5a4a2a;box-shadow:inset 0 0 0 2px #120f1f,0 0 0 1px #ffd27f}
.pity-meter i.last.on{background:#ffd27f}
.gashapon-pity{margin:0;text-align:center;font-size:16px;letter-spacing:1px;color:#ffd27f}
.gashapon-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.gashapon-actions button[disabled]{opacity:.5;cursor:not-allowed}
.gashapon-actions #g-evolve{line-height:1} /* the ↗ fallback glyph made its line box taller, dropping the label 3 px below PULL's */
.gashapon-actions #g-evolve.primary{order:-1} /* an affordable evolve leads, so it shows above the phone fold */
.gashapon-odds{font-size:15px;line-height:1.2;opacity:.9}
.gashapon-odds summary{display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer;letter-spacing:1px;list-style:none}
.gashapon-odds summary::-webkit-details-marker{display:none}
.gashapon-odds summary{align-items:flex-start}
.gashapon-odds .odds-mk{flex:none;image-rendering:pixelated}
.gashapon-odds .odds-mk.closed{width:6px;height:10px;margin-top:15px;margin-right:4px}
.gashapon-odds .odds-mk.open{display:none;width:10px;height:6px;margin-top:17px}
.gashapon-odds[open] .odds-mk.closed{display:none}
.gashapon-odds[open] .odds-mk.open{display:block}
.gashapon-odds summary{line-height:40px}
.gashapon-odds ul{list-style:none;padding:0;margin:6px 0;display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}
.gashapon-odds li{display:flex;justify-content:space-between;gap:8px}.gashapon-odds li b{font-weight:400;color:#ffd27f}

/* ---------- Evolution controls in the companion modal (40 px tap targets) ---------- */
.companion-grid{align-items:stretch}
.companion-slot{display:flex;flex-direction:column;gap:6px}
.companion-slot .companion-card{flex:1}
.evo{display:flex;flex-direction:column;align-items:center;gap:6px}
.stage-pips{display:flex;gap:4px}
.stage-pips i{width:8px;height:8px;background:#3b3650;box-shadow:inset 0 0 0 1px #120f1f}
.stage-pips i.on{background:#ffd27f}
.evolve-btn{min-height:40px;padding:4px 12px;border:0;background:#ffd27f;color:#25232b;font:400 16px/1 var(--pixel,VT323,monospace);letter-spacing:1px;box-shadow:inset 0 -2px 0 #c9902e,2px 2px 0 #120f1f;cursor:pointer}
.evolve-btn{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.evolve-btn .btn-charm{width:14px;height:14px}
.evolve-btn[disabled]{background:#5a5470;color:#d8cbb4;box-shadow:inset 0 -2px 0 #3b3650;cursor:not-allowed}
.evolve-max{display:flex;align-items:center;min-height:40px;font-size:14px;letter-spacing:2px;color:#ffd27f}
.form-chips{display:flex;gap:2px;justify-content:center;min-height:40px;max-width:100%}
.form-chips button{min-width:30px;min-height:40px;padding:2px 4px;border:0;background:#120f1f;color:#d8cbb4;font:400 15px/1 var(--pixel,VT323,monospace);box-shadow:inset 0 0 0 1px #5a5470;cursor:pointer}
.form-chips button[aria-pressed=true]{color:#120f1f;background:#fff1d8}
.charm-count{margin:4px 0 10px;color:#ffd27f}
.link-button{display:inline-flex;align-items:center;min-height:40px;border:0;background:none;padding:0;color:#ffd27f;font:inherit;text-decoration:underline;cursor:pointer}
/* "Hoshi reached Stage I!": a short dim with the evolved companion centred. */
.evolve-moment{position:fixed;inset:0;margin:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#050b15d9;pointer-events:none;animation:evo-moment 1.9s steps(8) both}
.evolve-moment canvas{width:200px;height:232px;image-rendering:pixelated}
.evolve-moment b{max-width:calc(100% - 72px);text-align:center;text-wrap:balance;font:400 30px/1.1 var(--pixel,VT323,monospace);letter-spacing:3px;color:#ffd27f;text-shadow:2px 0 #120f1f,-2px 0 #120f1f,0 2px #120f1f,0 -2px #120f1f}
@keyframes evo-moment{0%{opacity:0}12%,82%{opacity:1}100%{opacity:0}}

/* Modal chrome for the gacha screens: a 40 px close button, and no OS scrollbar on desktop. */
dialog:has(.gashapon) .modal-close,dialog:has(.companion-grid) .modal-close{min-width:40px;min-height:40px}
/* Fixer 1 2026-11-20 (frame drops): no universal `dialog:has(...) *`. That form made every text or class change anywhere on the page
   recalc the whole document (14.7 -> 1.85 ms per timer tick, measured in-page). Same coverage for everything that can scroll:
   the dialog, its .modal-inner and #modal-body, and the grid's subtree. The only scroller, .modal-inner, computes scrollbar-width:thin from
   a later rule either way. */
dialog:has(.companion-grid),dialog:has(.gashapon),dialog:has(.companion-grid)>.modal-inner,dialog:has(.gashapon)>.modal-inner,dialog:has(.companion-grid) #modal-body,dialog:has(.gashapon) #modal-body,dialog .companion-grid,dialog .gashapon,dialog .companion-grid *,dialog .gashapon *{scrollbar-width:none}
dialog:has(.companion-grid)::-webkit-scrollbar,dialog:has(.gashapon)::-webkit-scrollbar,dialog:has(.companion-grid)>.modal-inner::-webkit-scrollbar,dialog:has(.gashapon)>.modal-inner::-webkit-scrollbar,dialog:has(.companion-grid) #modal-body::-webkit-scrollbar,dialog:has(.gashapon) #modal-body::-webkit-scrollbar,dialog .companion-grid::-webkit-scrollbar,dialog .gashapon::-webkit-scrollbar,dialog .companion-grid *::-webkit-scrollbar,dialog .gashapon *::-webkit-scrollbar{display:none}

body.reduce-motion .coin-pop,body.reduce-motion .gashapon *,body.reduce-motion .evolve-moment{animation:none!important}
body.reduce-motion .capsule-out.opened .capsule-prize{opacity:1;transform:none}

/* Coins earned this round, under the points line on the round card. */
/* Receipt actions (2026-10-26): the primary button takes its own full row and the rest share two columns, so none is squeezed. */
.receipt .result-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.receipt .result-actions>button{width:100%;min-width:0;margin:0}
.receipt .result-actions>.primary,.receipt .result-actions>button:last-child:nth-child(even){grid-column:1/-1}
@media (max-width:700px){.receipt .result-actions{grid-template-columns:1fr}}
/* Receipt close X (user, 2026-10-26): it gets its own row above the header instead of floating over it, and while it sticks
   during scrolling a paper band to its left hides text scrolling under it, so the X never sits on top of receipt text. */
.receipt .receipt-close{float:none;margin:0 -12px 8px auto} /* no negative top margin: sticky keeps the X below the padding anyway, which drew it 14 px lower than its slot */
.receipt .receipt-close::before{content:"";position:absolute;top:-30px;bottom:0;right:100%;width:100vw;background:repeating-linear-gradient(0deg,#00000006 0 1px,transparent 1px 4px),var(--paper,#f5f0e3);pointer-events:none}
.receipt .receipt-close::after{content:"";position:absolute;left:0;right:-12px;bottom:100%;height:30px;background:repeating-linear-gradient(0deg,#00000006 0 1px,transparent 1px 4px),var(--paper,#f5f0e3);pointer-events:none} /* and above it */
/* One thank-you (user): the footer kicker no longer repeats "THANK YOU" above "THANK YOU FOR CLIMBING". */
.receipt .receipt-footer::before{content:"COME AGAIN"}
/* With extras lines (e.g. the welcome coin) the stamp stays centred on the TOTAL/ALTITUDE rows, not over the extras. */
.receipt .receipt-total:has(.receipt-extras) .receipt-hanko{top:42px} /* one per row: two columns wrapped every label */
.round-card .rc-coins{margin:6px 0 0;font:400 18px/1 var(--pixel,VT323,monospace);letter-spacing:1px;color:#ffd27f;text-shadow:var(--tx1,2px 2px 0 #120f1f)}
@media (max-width:700px){.evolve-moment b{font-size:24px;letter-spacing:2px}}
/* R3-3: in the gacha modals the scrolling content is clipped inside the gold frame line and the close X stays put. */
dialog:has(.gashapon) .modal-inner,dialog:has(.companion-grid) .modal-inner{clip-path:inset(11px)}
dialog:has(.gashapon) .modal-close,dialog:has(.companion-grid) .modal-close{position:sticky;top:0;float:right;z-index:6;margin:-14px -8px 6px 10px;background:#1d3340!important;box-shadow:0 0 0 4px #1d3340}
.gashapon-rules span{display:inline-block;white-space:nowrap}
/* Phone: tighter block gaps keep PULL fully inside the dialog's first screen (it was clipped at the bottom edge). */
@media (max-width:700px){.gashapon-rules{padding:0 24px}.gashapon{gap:4px}}
/* Home title round (2026-10-27): coins as a quiet label under the streak, no box; still a 40px button, and the coin icon
   (.coin-icon in #coin-chip) stays where the coin shower lands. */
.coin-chip{top:calc(max(25px,env(safe-area-inset-top)) + 54px);background:none;box-shadow:none;min-height:40px;padding:0 2px;gap:6px;color:#fff0ce;font-size:22px;text-shadow:1px 0 #20354d,-1px 0 #20354d,0 1px #20354d,0 -1px #20354d,1px 2px #20354d}
.coin-chip small{font-size:20px;letter-spacing:1px;opacity:1;color:#eadfc4}
.coin-chip:hover,.coin-chip:focus-visible{box-shadow:none;color:#ffd58b}
.coin-chip:focus-visible{outline:2px solid #ffd58b;outline-offset:2px}
@media (max-width:700px){.coin-chip{top:calc(max(22px,env(safe-area-inset-top)) + 52px);right:max(16px,env(safe-area-inset-right));font-size:22px}}
/* Capsule zoom strip (stage 4, 2026-10-27): while the zoom is open the home UI steps aside and only what a pull needs
   stays on screen. Same language as ASCEND: ink fill, cream border, 20px+ pixel text, 40px targets. */
body[data-capsule=open] #content,body[data-capsule=open] .topbar,body[data-capsule=open] .pet-action{visibility:hidden;pointer-events:none}
.capsule-strip{position:fixed;inset:0;z-index:30;pointer-events:none;color:#fff0ce;font:400 20px/1 var(--pixel,VT323,monospace)}
.capsule-strip button{font:400 20px/1 var(--pixel,VT323,monospace);letter-spacing:2px}
.cz-leave{position:absolute;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));pointer-events:auto;min-height:40px;padding:0 14px;color:#fff0ce;background:#1d3042e6;border:2px solid #f1ddaa;cursor:pointer}
.cz-panel{position:absolute;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(520px,calc(100vw - 24px));box-sizing:border-box;padding:12px 14px 6px;pointer-events:auto;text-align:center;background:#1d3042e6;border:2px solid #f1ddaa66;text-shadow:1px 0 #20354d,-1px 0 #20354d,0 1px #20354d,0 -1px #20354d,1px 2px #20354d}
.cz-result{min-height:24px;margin:0 0 8px;font-size:24px;letter-spacing:2px;color:#ffd58b}.cz-result:empty{display:none}.cz-result[data-hint]{color:#eadfc4} /* a hint, not a prize */
.capsule-strip:not([data-ready=yes]) .cz-panel{visibility:hidden} /* the panel arrives with the zoom, not over the wide shot */
.cz-panel .gashapon-wallet span{font-size:22px}.cz-panel .gashapon-wallet small{font-size:20px;letter-spacing:1px;opacity:1;color:#eadfc4}
.cz-pity{margin:8px 0 10px;font-size:20px;color:#eadfc4}
.cz-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
#cz-pull{min-height:44px;padding:0 18px;color:#1d3042;background:#ffd58b;border:2px solid #fff0ce;text-shadow:none;cursor:pointer}
#cz-pull:disabled{color:#eadfc4;background:#1d3042;border-color:#f1ddaa66;cursor:default}
#cz-evolve{min-height:44px;padding:0 14px;color:#fff0ce;background:none;border:2px solid #f1ddaa;cursor:pointer}
.capsule-strip button:focus-visible,.cz-panel summary:focus-visible{outline:2px solid #ffd58b;outline-offset:2px}
.cz-panel .gashapon-odds{margin-top:6px;font-size:20px;text-align:left;opacity:1}
.cz-panel .gashapon-odds ul{max-height:30vh;overflow:auto}
@media (max-width:700px){.cz-panel{width:calc(100vw - 16px);padding:10px 10px 4px}.cz-result{font-size:22px}}
