/* / — the game page. Full-bleed stage, HP bar under the top bar, HIT bottom centre, cards below the fold. */
.canvas-fix { position: fixed; z-index: 0; left: 0; right: 0; top: var(--nav-h); height: calc(100lvh - var(--nav-h)); background: var(--sky); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; -webkit-tap-highlight-color: transparent; }
.no-webgl .canvas-fix { background: linear-gradient(var(--sky), var(--snow) 70%); }
main, body.game .foot { position: relative; z-index: 1; }
.stage { position: relative; height: calc(100svh - var(--nav-h)); min-height: 520px; pointer-events: none; user-select: none; -webkit-user-select: none; }
.stage > * { pointer-events: auto; }
.stage > .hud { pointer-events: none; }

/* HP bar */
:root { --hp-h: 44px; }
@media (max-width: 767px) { :root { --hp-h: 30px; } }
.hp { position: fixed; z-index: 30; top: var(--nav-h); left: 0; right: 0; height: var(--hp-h); display: flex; align-items: center; gap: 10px; padding: 5px calc(var(--gutter) + var(--safe-r)) 5px calc(var(--gutter) + var(--safe-l)); background: var(--snow); border-bottom: var(--line); transition: transform .3s; }
.hp-face { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ice); border: var(--line); border-radius: 8px; }
.hp-face svg { width: 26px; height: 26px; }
.hp-track { position: relative; flex: 1; height: 100%; background: #2b3a4a; border: var(--line); border-radius: 8px; overflow: hidden; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25); }
.hp-trail { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; }
.hp-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(20, 32, 43, .55); z-index: 1; }
.past-story .hp { transform: translateY(-110%); }
.hp-fill { position: absolute; inset: 0; background: var(--cherry); transform-origin: 0 50%; transform: scaleX(1); box-shadow: inset 0 -5px 0 var(--cherry-d), inset 0 3px 0 rgba(255, 255, 255, .25); }
.hp.low .hp-fill { animation: hpPulse .8s ease-in-out infinite; }
@keyframes hpPulse { 50% { filter: brightness(1.18); } }
.hp-label { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 3px var(--ink); }
.hp-day { font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; }
.hp-num { font-family: var(--f-mono); font-size: 16px; font-weight: 500; }
body[data-state="before"] .hp-fill { background: var(--shadow); box-shadow: inset 0 -5px 0 #6f98bc; }

/* state pill + banners */
.state-pill { position: absolute; z-index: 6; top: calc(var(--hp-h) + 16px); left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-weight: 500; font-size: 15px; background: var(--snow); border: var(--line); border-radius: 999px; padding: 8px 16px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.state-pill b { color: var(--cherry); font-weight: 500; }
.banner { position: absolute; z-index: 7; top: calc(var(--hp-h) + 20px); left: 50%; transform: translateX(-50%); width: min(92%, 720px); text-align: center; font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 26px); line-height: 1.25; color: var(--snow); background: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 5px 0 var(--cherry); animation: bannerIn .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bannerIn { from { transform: translate(-50%, -14px) scale(.96); opacity: 0; } }

.down-card { position: absolute; z-index: 6; top: calc(var(--hp-h) + 18px); left: 50%; transform: translateX(-50%); width: min(92%, 560px); text-align: center; background: var(--snow); border: var(--line); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); padding: 14px 18px 16px; animation: bannerIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.dc-kicker { margin: 0; font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--cherry); letter-spacing: .04em; -webkit-text-stroke: 1px var(--ink); }
.dc-line { margin: 8px 0 6px; font-size: 15px; }
.dc-line b { color: var(--cherry); }
.dc-wake { margin: 0; font-family: var(--f-mono); font-size: 14px; }
.dc-wake b { font-weight: 500; font-size: 18px; }
.dc-proof { display: inline-block; margin-top: 6px; font-family: var(--f-mono); font-size: 12px; }

/* HUD */
.hud { position: absolute; z-index: 6; left: 0; right: 0; bottom: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 0 calc(var(--gutter) + var(--safe-r)) 0 calc(var(--gutter) + var(--safe-l)); pointer-events: none; transition: opacity .25s, transform .3s; }
.scrolled .hud { opacity: 0; }
.scrolled .hud > * { pointer-events: none !important; }
.hud > * { pointer-events: auto; }
.stats { justify-self: end; margin: 0; font-family: var(--f-mono); font-size: 14px; font-weight: 500; background: rgba(247, 251, 255, .92); border: var(--line); border-radius: 8px; padding: 8px 12px; white-space: nowrap; }
.stats span { color: var(--ink); }
body[data-state="before"] .stats { visibility: hidden; }
.hit {
  width: 264px; height: 96px; border: 3px solid var(--ink); border-radius: 16px; background: var(--cherry); color: #fff; cursor: pointer;
  font-family: var(--f-display); font-size: 46px; letter-spacing: .06em; text-shadow: 0 3px 0 var(--ink);
  box-shadow: inset 0 -4px 0 var(--cherry-d), inset 0 4px 0 rgba(255, 255, 255, .28), 0 6px 0 var(--ink);
  touch-action: manipulation; transition: transform .05s, box-shadow .05s; -webkit-tap-highlight-color: transparent;
}
.hit:hover:not(:disabled) { background: #ec3348; }
.hit:active:not(:disabled), .hit.pop { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--cherry-d), inset 0 3px 0 rgba(255, 255, 255, .28), 0 3px 0 var(--ink); }
.hit.pop { animation: hitPop .12s; }
@keyframes hitPop { 50% { transform: translateY(4px) scale(.97); } }
.hit:disabled, .hit.asleep { background: var(--shadow); cursor: default; font-size: 19px; letter-spacing: .03em; box-shadow: inset 0 -4px 0 #6f98bc, inset 0 4px 0 rgba(255, 255, 255, .3), 0 6px 0 var(--ink); }
.hit.asleep { cursor: pointer; }
.hit.asleep:hover { background: #9dc0da; }
.chip-slot { justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: var(--line); border-radius: 999px; background: var(--snow); font-family: var(--f-mono); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.chip:hover { background: #fff; }
.name-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--snow); border: var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 3px 0 var(--ink); max-width: 300px; }
.name-form input { width: 170px; height: 30px; border: 2px solid var(--ink); border-radius: 6px; padding: 0 8px; font-family: var(--f-mono); font-size: 14px; background: #fff; }
.name-err { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--cherry-d); }
.name-err:empty { display: none; }

/* floating damage numbers */
.dmg { position: absolute; z-index: 4; pointer-events: none; font-family: var(--f-display); font-size: 32px; color: var(--cherry); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); opacity: 0; transform: translate(-50%, -50%); white-space: nowrap; }
.dmg.crit { font-size: 48px; color: #fff; text-shadow: 0 4px 0 var(--cherry), 0 6px 0 var(--ink); }
.dmg.go { animation: dmgUp .7s ease-out forwards; }
@keyframes dmgUp { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 20% { transform: translate(-50%, -80%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

/* below the fold */
.below { background: var(--snow); border-top: var(--line); padding: 40px 0 48px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.card ol, .card ul { list-style: none; margin: 0; padding: 0; }
#top10 li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--ice); font-size: 14px; }
#top10 li.me { background: #fff1f3; }
#top10 .rk { font-family: var(--f-mono); color: var(--muted); }
#top10 .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top10 .dm { font-family: var(--f-mono); font-weight: 500; }
.mark { display: inline-block; width: 9px; height: 9px; background: var(--cherry); border: 1.5px solid var(--ink); margin-right: 6px; transform: rotate(45deg); vertical-align: 1px; }
.addr { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
li.empty { color: var(--muted); font-size: 14px; padding: 6px 0; border: 0 !important; display: block !important; }
#feed li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--ice); font-size: 13.5px; line-height: 1.4; }
#feed li.new { animation: feedIn .5s; }
@keyframes feedIn { from { background: #fff1f3; } }
#feed time { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-top: 1px; }
#feed .hb { font-family: var(--f-display); color: var(--cherry); font-size: 12px; letter-spacing: .03em; }
#feed li.topple b:first-child { color: var(--cherry); }
.tx { font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
#yday .big { font-family: var(--f-display); font-size: 22px; line-height: 1.2; margin: 0 0 6px; }
#yday p { margin: 0 0 8px; }
#yday b { color: var(--cherry); }
#yday .links { font-family: var(--f-mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.how { margin-top: 40px; }
.how h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 16px; }
.how ol { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 10px; max-width: 760px; }
.how li { counter-increment: how; position: relative; padding-left: 36px; font-size: 17px; }
.how li::before { content: counter(how); position: absolute; left: 0; top: -4px; font-family: var(--f-display); color: var(--cherry); font-size: 22px; }

@media (max-width: 1023px) {
  .hud { gap: 12px; }
  .stats { font-size: 12.5px; padding: 6px 9px; }
  .cards { grid-template-columns: 1fr 1fr; }
  #yday { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* the fixed HIT bar (stat strip + 72 px button + padding) must never cover the footer */
  body.game .foot { padding-bottom: calc(150px + var(--safe-b)); }
  .scrolled .hud { opacity: 1; transform: translateY(115%); }
  .stage { height: calc(100svh - var(--nav-h)); min-height: 440px; }
  .hp { gap: 6px; padding-top: 3px; padding-bottom: 3px; }
  .hp-face { width: 24px; height: 24px; border-radius: 6px; } .hp-face svg { width: 18px; height: 18px; }
  .hp-day { font-size: 13px; }
  .hp-num { font-size: 12px; }
  .hp-label { padding: 0 8px; }
  .state-pill { top: calc(var(--hp-h) + 10px); font-size: 13px; padding: 6px 12px; }
  .banner { top: calc(var(--hp-h) + 10px); font-size: 16px; padding: 10px 12px; }
  .down-card { top: calc(var(--hp-h) + 10px); padding: 10px 12px 12px; }
  .dc-kicker { font-size: 24px; }
  .dc-line { font-size: 13.5px; }
  .hud {
    position: fixed; bottom: 0; display: flex; flex-direction: column; gap: 6px; align-items: stretch;
    padding: 8px calc(var(--gutter) + var(--safe-r)) calc(10px + var(--safe-b)) calc(var(--gutter) + var(--safe-l));
    background: linear-gradient(rgba(247, 251, 255, 0), rgba(247, 251, 255, .9) 30%); z-index: 40; pointer-events: auto;
  }
  .stats { justify-self: auto; align-self: center; font-size: 12px; padding: 3px 8px; border-width: 1.5px; background: rgba(247, 251, 255, .95); }
  .hit { width: 100%; height: 72px; font-size: 32px; }
  .hit:disabled, .hit.asleep { font-size: 18px; }
  .chip-slot { display: none; }
  .nav-menu .name-chip { width: 100%; }
  .nav-menu .chip { width: 100%; justify-content: space-between; box-shadow: none; }
  .nav-menu .name-form { max-width: none; box-shadow: none; }
  .nav-menu .name-form input { flex: 1; min-width: 0; }
  .nav-menu [data-menu-slot] { padding: 8px 0; border-bottom: 1px solid var(--ice); display: flex; flex-direction: column; gap: 8px; }
  .cards { grid-template-columns: 1fr; }
  .below { padding: 28px 0 32px; }
  .how li { font-size: 15px; padding-left: 28px; }
}

/* wallet (after launch) */
.wallet-slot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wl-chip .chip { cursor: default; }
.wl-chip button.chip { cursor: pointer; }
.chip-holder { background: var(--cherry); color: #fff; }
.chip-linked { white-space: normal; height: auto; min-height: 38px; padding: 6px 12px; font-size: 12px; max-width: 320px; border-radius: 12px; }
.chip-heavy { font-family: var(--f-display); font-weight: 400; letter-spacing: .04em; background: var(--ink); color: var(--snow); }
.hb-modal { border: var(--line); border-radius: 14px; padding: 0; width: min(92vw, 440px); background: var(--snow); color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.hb-modal::backdrop { background: rgba(20, 32, 43, .45); }
.hb-in { padding: 18px; display: grid; gap: 10px; }
.hb-in h2 { font-family: var(--f-display); font-weight: 400; margin: 0; font-size: 24px; color: var(--cherry); }
.hb-sub, .hb-fine { margin: 0; font-size: 13px; color: var(--muted); }
.hb-amt { display: grid; gap: 4px; font-family: var(--f-mono); font-size: 12px; }
.hb-amt input { height: 40px; border: 2px solid var(--ink); border-radius: 8px; padding: 0 10px; font-family: var(--f-mono); font-size: 16px; }
.hb-quote { margin: 0; font-family: var(--f-display); font-size: 26px; }
.hb-quote.zero { color: var(--muted); }
.hb-msg { margin: 0; font-size: 13px; min-height: 1.2em; }
.hb-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 767px) { .nav-menu .wallet-slot .chip { width: 100%; justify-content: center; box-shadow: none; } }

/* archetype icons */
.ci { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -4px; image-rendering: pixelated; border-radius: 3px; background: var(--ice); outline: 1.5px solid var(--ink); outline-offset: -1px; }
.chip .ci { width: 22px; height: 22px; margin-left: -6px; }
.chip-ic:empty { display: none; }
#top10 .nm .ci { margin-right: 6px; }
#feed .ci { width: 15px; height: 15px; margin-right: 3px; vertical-align: -3px; }

/* scroll cue */
.scroll-cue { position: absolute; right: calc(var(--gutter) + var(--safe-r)); bottom: 34px; z-index: 6; font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-decoration: none; background: rgba(247, 251, 255, .85); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 10px; transition: opacity .2s; }
.scrolled .scroll-cue { opacity: 0; pointer-events: none; }

/* ── scroll story ─────────────────────────────────────── */
.story { position: relative; height: 720vh; pointer-events: none; }
.story-pin { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; }
.beat { position: absolute; inset: 28px 0 0; padding: 4vh calc(var(--gutter) + 2vw); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; opacity: 0; visibility: hidden; }
.kin { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(60px, 9.6vw, 168px); line-height: .9; letter-spacing: .005em; text-transform: uppercase; max-width: 46vw; }
.kin > span { display: block; color: var(--snow); -webkit-text-stroke: clamp(2px, .28vw, 4px) var(--ink); paint-order: stroke fill; text-shadow: .06em .06em 0 var(--ink); will-change: transform; }
.kin > span.o { color: transparent; text-shadow: none; -webkit-text-stroke: clamp(2px, .3vw, 4.5px) var(--ink); }
.kin > span.c { color: var(--cherry); }
.beat-sub { margin: 18px 0 0; max-width: 34ch; font-family: var(--f-mono); font-weight: 500; font-size: clamp(14px, 1.3vw, 18px); background: var(--snow); border: var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: 0 4px 0 var(--ink); }
.beat-sub b { color: var(--cherry); font-weight: 500; }
.beat[data-beat="back"] { align-items: flex-start; }
.beat-fists { justify-content: flex-start; }
.co-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.co-lines polyline { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.co-lines circle { fill: var(--cherry); stroke: var(--ink); stroke-width: 3; }
.callout { position: absolute; top: 12%; width: min(330px, 30vw); background: var(--snow); border: var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 5px 0 var(--ink); }
.callout b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); line-height: 1; color: var(--cherry); -webkit-text-stroke: 1px var(--ink); margin-bottom: 6px; }
.callout span { font-size: 14px; }
.co-hold { left: calc(var(--gutter) + 2vw); }
.co-burn { right: calc(var(--gutter) + 2vw); }
.co-note { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5vh; margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: 14px; background: var(--ink); color: var(--snow); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.story.static { height: auto; }
.story.static .story-pin { position: static; height: auto; overflow: visible; padding: 40px 0; background: linear-gradient(rgba(191, 224, 242, 0), rgba(191, 224, 242, .85) 20%); }
.story.static .beat { position: relative; inset: auto; opacity: 0; visibility: visible; min-height: 60vh; transition: opacity .6s; }
.story.static .beat.seen { opacity: 1; }
.story.static .callout, .story.static .co-note { position: relative; inset: auto; transform: none; width: auto; max-width: 420px; margin: 10px 0; }
.story.static .co-lines { display: none; }

/* proof strip (solid: covers the fixed canvas) */
.proof-strip { position: relative; background: var(--ice); border-top: var(--line); padding: 44px 0 40px; }
.kin-sm { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.05; margin: 0 0 18px; }
.days { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.days li { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; background: var(--snow); border: var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.days li.empty { display: block; box-shadow: none; }
.days .dn { font-family: var(--f-display); font-size: 18px; }
.days .dl { font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.days b { color: var(--cherry); font-weight: 600; }
.proof-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.below { position: relative; }

@media (max-width: 767px) {
  .story { height: 530vh; }
  .beat { inset: 22px 0 0; justify-content: flex-start; padding-top: 3vh; }
  .kin { font-size: clamp(44px, 14.5vw, 72px); max-width: none; }
  .kin > span { display: inline-block; margin-right: .18em; }
  .beat-sub { font-size: 13px; margin-top: 10px; }
  .callout { width: 46vw; top: 4%; padding: 9px 10px; }
  .callout b { font-size: 19px; }
  .callout span { font-size: 12px; }
  .co-hold { left: var(--gutter); } .co-burn { right: var(--gutter); }
  .co-note { bottom: 3vh; font-size: 12px; }
  .scroll-cue { display: none; }
  .days li { grid-template-columns: 1fr; gap: 4px; }
  .proof-strip { padding: 32px 0; }
}

/* combo + first-hit line */
.hit-wrap { position: relative; display: flex; justify-content: center; }
.combo { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: flex; align-items: baseline; gap: 6px; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.combo.on { opacity: 1; }
.combo b { font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; color: var(--cherry); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.combo span { font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; background: var(--ink); color: var(--snow); padding: 3px 7px; border-radius: 5px; }
.combo.hot b { color: #F2A93B; }
.combo.bump b { animation: comboBump .14s; }
.combo.big b { animation: comboBig .32s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes comboBump { 50% { transform: scale(1.15); } }
@keyframes comboBig { 0% { transform: scale(.6) rotate(-6deg); } 60% { transform: scale(1.45) rotate(3deg); } }
.stats .st-first { display: none; }
.stats.first .st-live { display: none; }
.stats.first .st-first { display: inline; color: var(--cherry); font-family: var(--f-display); font-weight: 400; font-size: 1.15em; letter-spacing: .02em; }

/* past the story: the scene fades out behind the proof strip (no cropped head peeking over it) */
/* the snowfield fades into the proof strip (no blank band, no cropped head) */
.proof-strip::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 55vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(207, 232, 245, 0), rgba(207, 232, 245, .75) 45%, var(--ice)); }

/* cards with a little character: snow caps + faint snow texture */
.cards .card { position: relative; margin-top: 10px; background-color: var(--snow); background-image: radial-gradient(rgba(141, 180, 209, .22) 1px, transparent 1.6px); background-size: 14px 14px; }
.cards .card::before { content: ''; position: absolute; left: 6px; right: 6px; top: -12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 12V6h6V2h6v3h6V0h6v12z' fill='%23F7FBFF'/%3E%3Cpath d='M0 6h6V2h6v3h6V0h6V6' fill='none' stroke='%2314202B' stroke-width='2'/%3E%3C/svg%3E") repeat-x bottom left / 24px 12px; }
.cards .card h2 { display: flex; align-items: center; gap: 8px; }
#top10 .ci { width: 24px; height: 24px; vertical-align: -7px; }
#feed .ci { width: 18px; height: 18px; vertical-align: -4px; }
#top10 li:nth-child(1) .rk { color: var(--cherry); font-weight: 500; }

/* story type: fluid, never clipped */
.beat { justify-content: flex-start; padding-top: calc(var(--hp-h) + 5vh); }
.kin { font-size: clamp(52px, min(7.4vw, 14vh), 136px); }
@media (max-width: 767px) {
  .beat { padding: calc(var(--hp-h) + 2vh) var(--gutter) 0; }
  .kin { font-size: clamp(34px, 11vw, 58px); max-width: 100%; }
  .kin > span { display: block; margin-right: 0; }
  .kin > span, .kin > span.o, .kin > span.c { -webkit-text-stroke: 2px var(--ink) !important; text-shadow: .06em .06em 0 var(--ink) !important; paint-order: stroke fill; }
  .kin > span.o { color: var(--snow) !important; }
  .callout { left: var(--gutter); right: var(--gutter); width: auto; padding: 8px 10px; }
  .co-hold { top: calc(var(--hp-h) + 6px); }
  .co-burn { top: auto; bottom: calc(3vh + 46px); }
  .callout b { font-size: 18px; margin-bottom: 3px; }
  .callout span { font-size: 12px; line-height: 1.35; display: block; }
  .combo b { font-size: 28px; }
  .combo { bottom: calc(100% + 30px); }
  .dmg { font-size: 26px; } .dmg.crit { font-size: 38px; }
}
