/* $WHALE claim app: the Ares airdrop layout 1:1 (same sizes, spacing, colours, fonts), with the $WHALE token
   and whale motion on top. Animations: transform/opacity only; loops pause off screen (.offscreen). */
@font-face { font-family: 'Inter Variable'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Lexend Variable'; src: url('/fonts/lexend.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #000; --panel: #0b0b14; --card: #10101b; --line: #1d1d2b; --chip: #1c1c1e; --chip-hover: #262629; --chip-text: #c6c6cc;
  --bubble: #1a1a27; --bubble-hover: #242436; --dim: #7d7d92; --faint: #4a4a52; --iris: #ab9ff2; --avatar: #1b1f45; --avatar-text: #6b7fff;
  --red: #f87171; --display: 'Inter Variable', ui-sans-serif, system-ui, sans-serif; --sans: 'Lexend Variable', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.xl { width: 16px; height: 16px; stroke: none; }
.offscreen, .offscreen * { animation-play-state: paused !important; }

/* header */
.hd { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hd-in { max-width: 480px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.hd-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hd-logo { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; animation: coin 9s var(--ease) infinite; }
.hd-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes coin { 0%, 84% { transform: rotateY(0); } 92% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.hd-name { font-family: var(--display); font-size: min(17px, 3.95vw); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-follow { display: flex; flex: none; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: #fff; color: #000; font-family: var(--display); font-size: 15px; font-weight: 600; transition: transform .15s, background .15s; }
.hd-follow:hover { background: rgba(255, 255, 255, .9); } .hd-follow:active { transform: scale(.95); }
@media (min-width: 640px) { .hd-logo { width: 48px; height: 48px; } .hd-name { font-size: 20px; } .hd-follow { padding: 10px 20px; font-size: 16px; } }

/* top: balance, actions, tabs */
.top { position: relative; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; }
.sea { position: absolute; right: 12px; top: 6px; width: 120px; height: 120px; pointer-events: none; }
.sea-whale { position: absolute; right: 0; bottom: 18px; width: 118px; opacity: .92; animation: swim 5.5s ease-in-out infinite; }
@keyframes swim { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(-14px, -8px) rotate(3deg); } }
.sea i { position: absolute; bottom: 40px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(171, 159, 242, .55); opacity: 0; animation: bub 4.2s linear infinite; }
.sea i:nth-child(2) { left: 14px; animation-delay: .2s; } .sea i:nth-child(3) { left: 34px; width: 5px; height: 5px; animation-delay: 1.4s; }
.sea i:nth-child(4) { left: 52px; animation-delay: 2.3s; } .sea i:nth-child(5) { left: 70px; width: 11px; height: 11px; animation-delay: .9s; }
.sea i:nth-child(6) { left: 86px; width: 6px; height: 6px; animation-delay: 3.1s; } .sea i:nth-child(7) { left: 24px; animation-delay: 3.6s; }
@keyframes bub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-6px, -90px); opacity: 0; } }
.bal { position: relative; padding-top: 32px; }
.bal-n { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bal-n .w { font-size: min(60px, 13.5vw); color: #fff; display: inline-block; transform-origin: left bottom; }
.bal-n .w.bump { animation: bump .6s var(--spring); }
@keyframes bump { 35% { transform: scale(1.06); } }
.bal-n .f { font-size: min(60px, 13.5vw); color: var(--faint); display: inline-block; }
.acts { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.act { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; background: var(--chip); color: var(--chip-text); font-size: 13px; font-weight: 600; transition: background .15s, transform .15s; }
.act .ic { width: 28px; height: 28px; color: var(--iris); }
.act:hover { background: var(--chip-hover); } .act:active { transform: scale(.95); }
@media (min-width: 400px) { .act { font-size: 15px; } }
@media (min-width: 640px) { .bal { padding-top: 40px; } .bal-n .w, .bal-n .f { font-size: 68px; } .acts { gap: 12px; } .act { font-size: 16px; } .act .ic { width: 32px; height: 32px; } }
.tabs { margin-top: 40px; display: flex; align-items: center; gap: 24px; }
.tab { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -.025em; color: var(--faint); transition: color .15s; }
.tab:hover { color: var(--dim); } .tab.on { color: #fff; }
.tag { padding: 4px 8px; border-radius: 99px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; background: rgba(171, 159, 242, .15); color: var(--iris); transition: background .15s, color .15s; }
.tab.on .tag { background: var(--iris); color: #000; }
@media (min-width: 640px) { .tab { font-size: 34px; } }

/* panel */
.panel { margin-top: 28px; flex: 1; background: var(--panel); }
.panel-in { max-width: 480px; margin: 0 auto; padding: 20px 16px 64px; }
.stack > * + * { margin-top: 24px; }
#panel-referral.stack > * + * { margin-top: 12px; }
.panel-in [data-panel] { animation: panelIn .35s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.card { border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: 16px; }
@media (min-width: 640px) { .card { padding: 20px; } }
.lbl { display: block; font-size: 14px; color: var(--dim); }
.lbl .faint { color: var(--faint); }
.row { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 380px) { .row { flex-direction: row; } }
.fld { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); transition: border-color .15s; }
.fld:focus-within { border-color: rgba(171, 159, 242, .6); }
.fld span { color: var(--dim); }
.fld input { width: 100%; min-width: 0; padding: 12px 0; background: transparent; border: 0; outline: none; color: #fff; }
.fld input::placeholder, .inp::placeholder { color: var(--faint); }
.btn-w { flex: none; padding: 12px 20px; border-radius: 99px; background: #fff; color: #000; font-weight: 600; transition: transform .15s, background .15s, opacity .15s; }
.btn-w:not(:disabled):hover { background: rgba(255, 255, 255, .9); } .btn-w:not(:disabled):active { transform: scale(.95); }
.btn-w:disabled { opacity: .4; cursor: default; }
.btn-w.big { width: 100%; padding: 12px; font-size: 15px; }
.btn-w.big:not(:disabled):active { transform: scale(.98); }
.hint { margin: 8px 0 0; font-size: 12px; color: var(--dim); } .hint.err { color: var(--red); }

/* taking part as */
.me { display: flex; align-items: center; gap: 16px; }
.ava { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--avatar); color: var(--avatar-text); font-size: 18px; font-weight: 600; }
.me-t { min-width: 0; flex: 1; } .me-t p { margin: 0; } .me-t .s { font-size: 14px; color: var(--dim); }
.me-t .h { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t .i { font-size: 12px; color: var(--dim); }
.chg { flex: none; padding: 4px 8px; border-radius: 99px; font-size: 15px; color: var(--dim); } .chg:hover { color: #fff; }

/* progress + tasks */
.prog-row { display: flex; align-items: center; gap: 16px; padding: 0 4px; }
.prog { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 99px; background: var(--iris); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
.prog-t { flex: none; font-size: 17px; color: var(--dim); }
.tasks { list-style: none; margin: 20px 0 0; padding: 0; }
.tasks > li + li { margin-top: 12px; }
.task { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; overflow: hidden; animation: rise .45s var(--ease) both; }
.task:nth-child(2) { animation-delay: .05s; } .task:nth-child(3) { animation-delay: .1s; } .task:nth-child(4) { animation-delay: .15s; } .task:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.tasks.nofx .task { animation: none; }
@media (min-width: 380px) { .task { grid-template-columns: auto 1fr auto; } }
@media (min-width: 640px) { .task { column-gap: 16px; } }
.t-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bubble); color: #fff; transition: background .3s, color .3s; }
.t-ic .ic { width: 20px; height: 20px; }
.task.done .t-ic { background: rgba(171, 159, 242, .15); color: var(--iris); }
.task.done .t-ic .ic { animation: pop .5s var(--spring); }
@keyframes pop { from { transform: scale(0) rotate(-45deg); } }
@media (min-width: 640px) { .t-ic { width: 48px; height: 48px; } .t-ic .ic { width: 24px; height: 24px; } .task.done .t-ic .ic { width: 20px; height: 20px; } }
.t-tx { min-width: 0; }
.t-tx h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.375; }
.t-tx p { margin: 2px 0 0; font-size: 14px; line-height: 1.375; color: var(--dim); }
@media (min-width: 640px) { .t-tx h3 { font-size: 17px; } .t-tx p { font-size: 15px; } }
.again { margin-top: 6px; font-size: 14px; color: var(--dim); text-decoration: underline; text-underline-offset: 4px; } .again:hover { color: #fff; }
.t-act { grid-column-start: 2; margin-top: 12px; justify-self: start; }
@media (min-width: 380px) { .t-act { grid-column-start: 3; margin-top: 0; } }
.go { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--bubble); color: #fff; font-size: 15px; font-weight: 600; transition: background .15s, transform .15s, opacity .15s; }
.go .ic { width: 16px; height: 16px; }
.go:not(:disabled):hover { background: var(--bubble-hover); } .go:not(:disabled):active { transform: scale(.95); } .go:disabled { opacity: .4; cursor: default; }
.did { padding: 10px 16px; font-size: 15px; } .did:disabled { opacity: .6; }
@media (min-width: 640px) { .go, .did { padding-left: 20px; padding-right: 20px; } }
.ok { display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--iris); animation: pop .45s var(--spring); }
.ok .ic { width: 16px; height: 16px; }
.task.flash::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(171, 159, 242, .18) 50%, transparent 70%); transform: translateX(-100%); animation: sweep .9s var(--ease) forwards; pointer-events: none; }
@keyframes sweep { to { transform: translateX(100%); } }

/* claim card + whale crash card */
.cl-top { display: flex; align-items: center; gap: 12px; }
@media (min-width: 640px) { .cl-top { gap: 16px; } }
.cl-top h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cl-top p { margin: 2px 0 0; font-size: 14px; line-height: 1.375; color: var(--dim); }
@media (min-width: 640px) { .cl-top h3 { font-size: 17px; } .cl-top p { font-size: 15px; } }
.cl-top .t-ic { color: #fff; }
.inp { margin-top: 16px; width: 100%; padding: 12px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: #fff; font-family: var(--mono); font-size: 14px; outline: none; transition: border-color .15s, opacity .15s; }
.inp::placeholder { font-family: var(--sans); }
.inp:focus { border-color: rgba(171, 159, 242, .6); } .inp:disabled { opacity: .4; }
.cl-err { margin: 8px 0 0; padding: 0 4px; font-size: 12px; color: var(--red); }
.cl-btn { margin-top: 12px; width: 100%; padding: 12px; border-radius: 99px; background: #fff; color: #000; font-size: 15px; font-weight: 600; position: relative; overflow: hidden; transition: transform .15s, background .15s, opacity .15s; }
.cl-btn:disabled { opacity: .3; cursor: default; }
.cl-btn:not(:disabled):hover { background: rgba(255, 255, 255, .9); } .cl-btn:not(:disabled):active { transform: scale(.98); }
.cl-btn:not(:disabled)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(171, 159, 242, .45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 2.6s ease-in-out infinite; }
@keyframes shine { 0%, 50% { transform: translateX(-100%); } 90%, 100% { transform: translateX(100%); } }
.claimed { display: flex; align-items: center; gap: 16px; border-color: rgba(171, 159, 242, .3); background: rgba(171, 159, 242, .07); animation: rise .5s var(--ease) both; }
.claimed .tick { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--iris); color: #000; animation: pop .6s var(--spring); }
.claimed .tick .ic { width: 24px; height: 24px; }
.claimed h3 { margin: 0; font-size: 17px; font-weight: 600; }
.claimed p { margin: 2px 0 0; font-size: 15px; line-height: 1.375; color: var(--dim); }
.claimed .mono { font-family: var(--mono); font-size: 14px; color: #fff; }
.claimed .st { margin-top: 6px; font-size: 14px; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.claimed .st a { color: var(--iris); text-decoration: underline; text-underline-offset: 4px; }
.claimed .st button { color: var(--iris); text-decoration: underline; text-underline-offset: 4px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--iris); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.crash-card .t-ic { background: rgba(171, 159, 242, .15); color: var(--iris); }
.crash-card .cc { display: flex; align-items: center; gap: 12px; }
.crash-card .cc > div { flex: 1; min-width: 0; }
.crash-card .best { margin: 10px 0 0; font-size: 14px; color: var(--iris); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crash-card .best a { text-decoration: underline; text-underline-offset: 4px; }
.crash-card.ready { border-color: rgba(171, 159, 242, .45); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { border-color: rgba(171, 159, 242, .15); } }
.take { display: block; margin: 10px auto 0; padding: 6px 10px; font-size: 14px; color: var(--iris); text-decoration: underline; text-underline-offset: 4px; }

/* live "received" leaderboard */
.recv-card .rh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recv-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.recv-card .pulse { background: #4ade80; }
.rt { font-size: 13px; color: var(--dim); text-align: right; }
.recv { list-style: none; margin: 14px 0 0; padding: 0; }
.recv li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.recv li:first-child { border-top: 0; }
.recv li.empty { display: block; color: var(--dim); font-size: 14px; text-align: center; padding: 14px 0; }
.recv li.new { animation: recvIn .6s var(--spring) both; }
.recv li.new .rw b { color: #4ade80; }
@keyframes recvIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.recv .av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--avatar); color: var(--avatar-text); font-weight: 600; font-size: 15px; }
.recv .av img { width: 100%; height: 100%; object-fit: cover; }
.recv .rw { min-width: 0; }
.recv .rw p { margin: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recv .rw p b { font-weight: 600; transition: color 1.2s; }
.recv .rw span { font-size: 12.5px; color: var(--dim); }
.recv .tx { font-size: 13px; color: var(--iris); white-space: nowrap; }
.recv .amt { color: #fff; font-weight: 600; }

/* referral */
.ref-empty { display: flex; flex-direction: column; align-items: center; padding: 32px 20px; text-align: center; }
.ref-empty .big-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bubble); color: var(--iris); }
.ref-empty .big-ic .ic { width: 24px; height: 24px; }
.ref-empty h3 { margin: 16px 0 0; font-size: 18px; font-weight: 600; }
.ref-empty p { margin: 4px 0 0; max-width: 320px; font-size: 15px; line-height: 1.375; color: var(--dim); }
.ref-empty .btn-w { margin-top: 20px; padding: 10px 24px; font-size: 15px; }
.link-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.link-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 14px; }
.copy { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; background: #fff; color: #000; font-size: 14px; font-weight: 600; transition: transform .15s; }
.copy .ic { width: 16px; height: 16px; } .copy:active { transform: scale(.95); }
.share { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 99px; background: var(--bubble); font-size: 15px; font-weight: 600; transition: background .15s, transform .15s; }
.share:hover { background: var(--bubble-hover); } .share:active { transform: scale(.98); }
.stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 360px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats .card { min-width: 0; }
.stats p { margin: 0; font-size: 14px; color: var(--dim); }
.stats b { display: block; margin-top: 8px; font-family: var(--display); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats b.iris { color: var(--iris); }
.pend { margin: 0; padding: 0 4px; font-size: 14px; line-height: 1.375; color: var(--dim); }
.how h3 { margin: 0; font-size: 17px; font-weight: 600; }
.how ol { list-style: none; margin: 16px 0 0; padding: 0; }
.how li { display: flex; align-items: flex-start; gap: 12px; } .how li + li { margin-top: 16px; }
.how .hi { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bubble); color: var(--iris); }
.how .hi .ic { width: 20px; height: 20px; }
.how li div { min-width: 0; padding-top: 2px; } .how li b { display: block; font-size: 15px; font-weight: 600; } .how li span { font-size: 14px; line-height: 1.375; color: var(--dim); }

/* toast */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 32px; z-index: 50; pointer-events: none; }
.toast { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 12px 20px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .1); background: #242428; font-size: 15px; font-weight: 600; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6); animation: toastIn .18s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* claim celebration: coins + bubbles burst (transform/opacity) */
.fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; left: 50%; top: 38%; width: 14px; height: 14px; border-radius: 50%; opacity: 0; animation: burst 1.5s var(--d) cubic-bezier(.2, .7, .3, 1) forwards; }
.fx i.c { background: radial-gradient(circle at 35% 35%, #fff2b0, #ffc542 55%, #b07a00); }
.fx i.b { background: transparent; border: 2px solid var(--iris); }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(calc(var(--x) * 45vw), calc(var(--y) * 40vh)) scale(1.1); } }

/* Whale Crash sheet */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); animation: fadeIn .2s both; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-in { position: relative; width: 100%; max-width: 480px; max-height: 96vh; overflow-y: auto; padding: 18px 16px 24px; border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--panel); animation: up .35s var(--ease) both; }
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 520px) { .sheet { align-items: center; } .sheet-in { border-radius: 26px; border-bottom: 1px solid var(--line); } }
.sh-head { display: flex; justify-content: space-between; gap: 12px; }
.sh-head h3 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.sh-head p { margin: 4px 0 0; font-size: 14px; color: var(--dim); }
.sh-x { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--bubble); color: var(--dim); }
.cr-stage { position: relative; margin-top: 14px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid var(--line);
  background: radial-gradient(80% 70% at 75% 10%, rgba(171, 159, 242, .2), transparent 70%), linear-gradient(180deg, #0d0d1a, #05050b); }
.cr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-mult { position: absolute; left: 16px; top: 12px; pointer-events: none; }
.cr-mult b { display: block; font-family: var(--display); font-size: clamp(40px, 12vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cr-mult span { display: inline-block; margin-top: 8px; padding: 5px 10px; border-radius: 99px; background: rgba(171, 159, 242, .15); color: var(--iris); font-size: 13px; font-weight: 600; }
.cr-stage.live .cr-mult b { color: #4ade80; } .cr-stage.boom .cr-mult b { color: var(--red); } .cr-stage.won .cr-mult b { color: var(--iris); }
.cr-stage.boom { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.cr-msg { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); padding: 9px 14px; border-radius: 14px; background: rgba(0, 0, 0, .72); font-size: 14px; font-weight: 600; white-space: nowrap; animation: rise .35s var(--ease) both; }
.tries { display: flex; justify-content: center; gap: 8px; margin: 14px 0 12px; }
.tries i { width: 26px; height: 26px; border-radius: 50%; background: url('/media/logo-96.webp') center / cover; transition: transform .4s var(--spring), opacity .4s; }
.tries i.used { opacity: .2; transform: scale(.8); }
.cr-note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.cr-hist { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 10px 0 0; }
.cr-hist li { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; }
.cr-hist li.w { color: var(--iris); } .cr-hist li.l { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
