:root {
  --bg: #fff3dc; --card: #ffffff; --ink: #17120f; --muted: #6b5f55; --line: #17120f;
  --hot: #ff5a1f; --lime: #b6f23a; --sky: #5cc8ff; --pink: #ff7ac8; --gold: #ffd23f; --mud: #8a5a2b;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --sh: 4px 4px 0 var(--ink);
  --nav: 74px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 700 16px/1.4 var(--body); }
body { min-height: 100dvh; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .01em; }
.muted { color: var(--muted); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: var(--sh);
  padding: 12px 18px; font: 400 18px var(--display); letter-spacing: .02em; text-decoration: none; color: var(--ink);
  transition: transform .06s, box-shadow .06s; user-select: none;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.hot { background: var(--hot); color: #fff; }
.btn.lime { background: var(--lime); }
.btn.sky { background: var(--sky); }
.btn.big { width: 100%; padding: 18px; font-size: 24px; border-radius: 18px; }
.btn.sm { padding: 7px 12px; font-size: 15px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.card { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh); padding: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 3px solid var(--ink); border-radius: 99px; padding: 4px 12px; background: var(--gold); font: 400 18px var(--display); }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--ink); border-radius: 99px; padding: 1px 8px; font-size: 13px; font-weight: 800; background: #fff; }
.chip.mud { background: #e2c29b; } .chip.rocket { background: var(--sky); } .chip.shield { background: var(--lime); }

/* ---------- app shell ---------- */
.app { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(var(--nav) + env(safe-area-inset-bottom) + 24px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.me-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; min-width: 0; }
.me-btn .av { width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; overflow: hidden; flex: none; }
.me-btn .av svg { width: 100%; height: 100%; transform: scale(1.5) translateY(6%); }
.me-btn b { font: 400 20px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
nav.tabs button {
  background: none; border: 0; color: #fff; display: grid; justify-items: center; gap: 2px; padding: 6px 0;
  font: 400 14px var(--display); letter-spacing: .03em; border-radius: 12px; opacity: .7;
}
nav.tabs button span { font-size: 24px; line-height: 1; }
nav.tabs button[aria-current="page"] { background: var(--hot); opacity: 1; }
@media (min-width: 560px) { nav.tabs { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border-radius: 20px 20px 0 0; } }

section.view { display: grid; gap: 14px; animation: in .18s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- stomp (home) ---------- */
.hero { text-align: center; padding: 18px 16px 18px; position: relative; overflow: hidden; background: var(--lime); }
.hero .stage { width: 190px; margin: 0 auto -6px; }
.hero .stage svg { width: 100%; display: block; overflow: visible; }
.hero .score { font: 400 64px/1 var(--display); }
.hero .label { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.bar { height: 18px; border: 3px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; margin: 12px 0 4px; }
.bar i { display: block; height: 100%; width: 0; background: var(--hot); transition: width .4s; }
.effects { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 0; margin-top: 8px; }
.walk-state { font-size: 14px; margin-top: 10px; }
.walk-state.on { color: var(--hot); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--hot); margin-right: 6px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { display: grid; gap: 6px; align-content: start; }
.mini h3 { font-size: 20px; }
.mini p { margin: 0; font-size: 14px; }
.mini .btn { margin-top: 4px; }

/* stomp animation */
.stomper .foot, .stomper .body { transform-box: fill-box; transition: transform .12s; }
.stomper.step-l .foot-l { transform: translateY(-14px) rotate(-8deg); }
.stomper.step-r .foot-r { transform: translateY(-14px) rotate(8deg); }
.stomper.step-l .body, .stomper.step-r .body { transform: translateY(-4px); }
.stomper.idle .body { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.stomper .prop { transform-origin: 60px 6px; animation: spin .5s linear infinite; transform-box: view-box; }
@keyframes spin { to { transform: scaleX(-1); } }
.pop { position: absolute; font: 400 26px var(--display); color: var(--ink); pointer-events: none; animation: pop .9s ease-out forwards; }
@keyframes pop { to { transform: translateY(-60px); opacity: 0; } }

/* ---------- wars ---------- */
.invite { display: grid; gap: 10px; background: var(--sky); }
.code { font: 400 28px/1 var(--display); letter-spacing: .12em; }
.row { display: flex; gap: 8px; align-items: center; }
.row input, .field {
  flex: 1; min-width: 0; border: 3px solid var(--ink); border-radius: 12px; padding: 11px 12px; background: #fff;
  font-weight: 800; text-transform: uppercase;
}
.field { text-transform: none; width: 100%; }
.list { display: grid; gap: 10px; }
.player {
  display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 8px 12px 8px 8px; box-shadow: 3px 3px 0 var(--ink);
  width: 100%; text-align: left;
}
.player.me { background: #fff8b8; }
.player .rk { font: 400 22px var(--display); text-align: center; }
.player .av { width: 52px; height: 52px; }
.player .av svg { width: 100%; height: 100%; }
.player .nm { font: 400 19px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .sub { display: flex; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.player .pts { font: 400 22px var(--display); text-align: right; }
.player .pts small { display: block; font: 700 11px var(--body); color: var(--muted); }
.feed { display: grid; gap: 6px; font-size: 14px; }
.feed div { padding: 8px 10px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.feed time { color: var(--muted); font-size: 12px; margin-left: 6px; }
.empty { text-align: center; padding: 18px; color: var(--muted); }

/* ---------- shop ---------- */
.preview { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; background: var(--pink); }
.preview svg { width: 120px; display: block; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.seg button { border: 0; background: #fff; padding: 10px 0; font: 400 17px var(--display); }
.seg button + button { border-left: 3px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 420px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.item {
  display: grid; gap: 4px; justify-items: center; padding: 10px 8px 12px; background: #fff; border: 3px solid var(--ink);
  border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); position: relative;
}
.item svg { width: 84px; height: 84px; }
.item b { font: 400 16px var(--display); text-align: center; }
.item .price { font-size: 14px; }
.item.on { background: var(--lime); }
.item.rare::before { content: "LEGEND"; position: absolute; top: -10px; right: -6px; background: var(--gold); border: 2px solid var(--ink); border-radius: 8px; font: 400 11px var(--display); padding: 2px 6px; transform: rotate(6deg); }
.item:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- ranks ---------- */
.prize { background: var(--gold); display: grid; gap: 6px; }
.prize .cd { font: 400 26px var(--display); }

/* ---------- sheets, toast, rush ---------- */
.scrim { position: fixed; inset: 0; background: rgba(23, 18, 15, .55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 520px; background: var(--bg); border: 3px solid var(--ink); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; max-height: 92dvh; overflow-y: auto;
  animation: up .2s ease-out;
}
@keyframes up { from { transform: translateY(40px); } }
.sheet .head { display: flex; align-items: center; gap: 12px; }
.sheet .head svg { width: 70px; flex: none; }
.sheet h2 { font-size: 26px; }
.act { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; }
.act .ic { font-size: 34px; text-align: center; }
.act small { display: block; font: 600 13px var(--body); color: var(--muted); letter-spacing: 0; }
.x { margin-left: auto; background: #fff; border: 3px solid var(--ink); border-radius: 50%; width: 40px; height: 40px; font: 400 20px var(--display); flex: none; }
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 800; max-width: calc(100% - 32px);
  box-shadow: 4px 4px 0 var(--hot); animation: drop .2s ease-out;
}
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.rush { position: fixed; inset: 0; z-index: 50; background: var(--hot); display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; touch-action: manipulation; user-select: none; }
.rush .t { font: 400 30px var(--display); }
.rush .n { font: 400 96px/1 var(--display); }
.rush .foot-btn {
  width: min(70vw, 280px); aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--ink); background: var(--lime); box-shadow: 8px 8px 0 var(--ink);
  font: 400 34px var(--display); color: var(--ink); display: grid; place-items: center; margin: 22px auto;
}
.rush .foot-btn:active { transform: translate(5px, 5px) scale(.97); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- onboarding ---------- */
.onb { max-width: 460px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 24px) 16px 40px; display: grid; gap: 16px; text-align: center; }
.onb .logo { font: 400 52px/0.95 var(--display); transform: rotate(-3deg); text-shadow: 3px 3px 0 var(--hot); }
.onb .stage svg { width: 170px; }
.colors { display: flex; gap: 14px; justify-content: center; }
.colors button { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.colors button[aria-pressed="true"] { outline: 4px solid var(--ink); outline-offset: 3px; }
.how { text-align: left; display: grid; gap: 8px; font-size: 15px; }
.how div { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; }
.how span { font-size: 26px; }
.link { background: none; border: 0; text-decoration: underline; color: var(--muted); font-weight: 800; padding: 6px; }

/* ---------- home: instant tap game + explainer ---------- */
.intro { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 16px 40px; display: grid; gap: 14px; }
.ibar { display: flex; justify-content: space-between; align-items: center; }
.ibar .brand { font: 400 26px var(--display); text-shadow: 2px 2px 0 var(--hot); }
.arena { background: var(--lime); display: grid; gap: 10px; text-align: center; padding: 14px 14px 18px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.arena-top { display: flex; justify-content: space-between; }
.fighters { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.fighters .f svg { width: 100%; max-width: 170px; overflow: visible; }
.fighters .vs { font: 400 30px var(--display); padding-bottom: 50px; }
#ffoe.hit { animation: hit .14s; }
@keyframes hit { 30% { transform: translateX(6px) rotate(4deg) scaleY(.92); } 70% { transform: translateX(-4px); } }
.hp { height: 18px; border: 3px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.hp i { display: block; height: 100%; background: #9b6bff; transition: width .1s; margin-left: auto; }
.stompbtn { font-size: 30px; padding: 26px 18px; }
.save { display: grid; gap: 12px; text-align: center; background: #fff8b8; }
.save h2 { font-size: 32px; }
.how-sec { display: grid; gap: 12px; margin-top: 18px; }
.how-sec h2 { font-size: 30px; }
.how-sec .card { display: grid; gap: 6px; }
.how-sec .tok { background: var(--ink); color: #fff; }
.how-sec .ca { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 10px; }

/* ---------- 3D home ---------- */
.home3d { min-height: 100dvh; }
.arena3d { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: linear-gradient(#7fd3ff, #ffd6ec 55%, #fff3dc); user-select: none; -webkit-user-select: none; }
.arena3d .canvas, .arena3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hud-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 12px) 16px 0; pointer-events: none; z-index: 2; }
.hud-top .brand { font: 400 22px var(--display); color: #fff; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
.hud-link { pointer-events: auto; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); padding: 6px 12px; font: 400 15px var(--display); }
.title3d { position: absolute; left: 0; right: 0; top: 13%; text-align: center; pointer-events: none; z-index: 2; margin: 0; display: grid; line-height: .85; }
.title3d span { font: 400 clamp(64px, 19vw, 132px) var(--display); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--hot); animation: titleDrop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.title3d span:last-child { animation-delay: .18s; color: var(--lime); }
.title3d.gone { animation: titleOut .35s ease-in forwards; }
@keyframes titleDrop { from { transform: translateY(-120%) rotate(-8deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes titleOut { to { transform: translateY(-60px) scale(.8); opacity: 0; } }
.hud-stats { position: absolute; top: calc(env(safe-area-inset-top) + 62px); left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; pointer-events: none; }
.hud-stats .pill { font-size: 22px; padding: 6px 16px; box-shadow: 3px 3px 0 var(--ink); }
.hud-stats .score { background: #fff; }
.hud-stats .hurry { background: var(--hot); color: #fff; animation: pulse .5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.1); } }
.hud-prompt { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 64px); display: flex; justify-content: center; z-index: 2; pointer-events: none; }
.hud-prompt span { background: var(--ink); color: #fff; font: 400 19px var(--display); padding: 12px 20px; border-radius: 16px; box-shadow: 4px 4px 0 var(--hot); }
.hud-prompt .tap { animation: bounceIn .5s cubic-bezier(.2, 1.6, .4, 1) both, nudge 1.4s 0.6s ease-in-out infinite; }
.hud-prompt .loading { opacity: .85; }
@keyframes bounceIn { from { transform: scale(.4); opacity: 0; } }
@keyframes nudge { 50% { transform: translateY(-6px); } }
.combo-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.combo { position: absolute; transform: translate(-50%, -50%); font: 400 26px var(--display); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; animation: comboUp .9s ease-out forwards; white-space: nowrap; }
.combo.big { font-size: 36px; color: var(--lime); }
.combo.gold { font-size: 34px; color: var(--gold); }
@keyframes comboUp { 0% { transform: translate(-50%, -30%) scale(.4); } 25% { transform: translate(-50%, -60%) scale(1.25); } 100% { transform: translate(-50%, -160%) scale(1); opacity: 0; } }
.endcard { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 12px calc(env(safe-area-inset-bottom) + 12px); display: flex; justify-content: center; animation: up .35s cubic-bezier(.2, 1.4, .4, 1); }
.endcard .card { width: 100%; max-width: 480px; }
.endcard h2 { font-size: 28px; }
.scroll-cue { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); z-index: 2; font: 400 15px var(--display); color: var(--ink); background: rgba(255, 255, 255, .8); border: 2px solid var(--ink); border-radius: 99px; padding: 4px 12px; text-decoration: none; }
.endcard:not([hidden]) ~ .scroll-cue { display: none; }
.below { max-width: 520px; margin: 0 auto; padding: 8px 16px 40px; }
@media (prefers-reduced-motion: reduce) { .title3d span, .hud-prompt .tap, .combo { animation: none; } }

/* ---------- login sheet ---------- */
.auth .sheet { gap: 14px; padding-top: 22px; }
.auth-form { display: grid; gap: 12px; }
.auth-label { font: 400 17px var(--display); }
.auth-input { width: 100%; font: 800 20px var(--body); padding: 16px 16px; min-height: 60px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 3px 3px 0 var(--ink); outline: none; }
.auth-input:focus { box-shadow: 3px 3px 0 var(--hot); border-color: var(--hot); }
.code-input { text-align: center; font: 400 38px var(--display); letter-spacing: .4em; padding-left: .4em; }
.auth-err { margin: 0; color: #c2372f; font-weight: 800; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 3px; background: var(--ink); opacity: .15; border-radius: 3px; }

/* ---------- race HUD ---------- */
.race-hud { position: absolute; top: calc(env(safe-area-inset-top) + 56px); left: 12px; right: 12px; z-index: 3; display: grid; gap: 10px; pointer-events: none; max-width: 520px; margin: 0 auto; }
.race-row { display: flex; justify-content: center; gap: 8px; }
.race-row .pill { font-size: 20px; padding: 5px 14px; box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.race-row #rPos { background: var(--lime); }
.race-row #rPos.lose { background: var(--hot); color: #fff; }
.race-track { position: relative; height: 16px; border: 3px solid var(--ink); border-radius: 99px; background: rgba(255, 255, 255, .85); margin: 0 26px 0 12px; }
.race-track .flag { position: absolute; right: -28px; top: -9px; font-style: normal; font-size: 22px; }
.race-track .dot { position: absolute; top: 50%; width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 50%; transform: translate(-50%, -50%); transition: left .15s linear; }
.race-track .dot.me { background: var(--lime); z-index: 1; }
.race-track .dot.rex { background: var(--grape, #9b6bff); }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; pointer-events: none; font: 400 140px var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 8px 8px 0 var(--hot); opacity: 0; }
.countdown.show { animation: cd .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.countdown.go { color: var(--lime); }
@keyframes cd { 0% { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
.race-msg { position: absolute; left: 50%; top: 32%; transform: translate(-50%, 0) scale(.6); z-index: 4; pointer-events: none; opacity: 0; font: 400 26px var(--display); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; white-space: nowrap; transition: transform .25s cubic-bezier(.2, 1.6, .4, 1), opacity .2s; }
.race-msg.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.race-msg.gold { color: var(--gold); } .race-msg.good { color: var(--lime); } .race-msg.bad { color: var(--hot); }
.mud-btn { position: absolute; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 70px); z-index: 4; width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--ink); background: #c98b4f; box-shadow: 5px 5px 0 var(--ink); font-size: 38px; display: grid; place-items: center; touch-action: manipulation; }
.mud-btn b { position: absolute; top: -6px; right: -6px; background: var(--hot); color: #fff; border: 3px solid var(--ink); border-radius: 99px; min-width: 30px; height: 30px; display: grid; place-items: center; font: 400 16px var(--display); }
.mud-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.mud-btn[disabled] { filter: grayscale(1); opacity: .6; }
.tap-hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 170px); text-align: center; z-index: 3; pointer-events: none; font: 400 30px var(--display); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; animation: nudge .5s ease-in-out infinite; }
.splat { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at 30% 40%, rgba(122, 74, 36, .85) 0 12%, transparent 13%), radial-gradient(circle at 70% 60%, rgba(122, 74, 36, .8) 0 9%, transparent 10%), radial-gradient(circle at 55% 25%, rgba(122, 74, 36, .75) 0 6%, transparent 7%), radial-gradient(circle at 20% 75%, rgba(122, 74, 36, .7) 0 7%, transparent 8%); }
.splat.on { animation: splat 1.8s ease-out; }
@keyframes splat { 0% { opacity: 0; transform: scale(1.3); } 10% { opacity: 1; transform: scale(1); } 70% { opacity: .9; } 100% { opacity: 0; } }
.arena3d.boosted::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255, 255, 255, .0) 0 4deg, rgba(255, 255, 255, .22) 4deg 5deg); mask: radial-gradient(circle at 50% 60%, transparent 30%, #000 75%); animation: speed .25s linear infinite; }
@keyframes speed { to { transform: rotate(3deg); } }

/* stomper life: blink */
.stomper .eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.12); } }
@media (prefers-reduced-motion: reduce) { .stomper .eyes { animation: none; } }

/* =====================================================================
   Logged-in app (app- prefix): candy sky, island strata, sticker UI.
   ===================================================================== */
.app-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(#7fd3ff 0%, #ffd6ec 58%, #fff3dc 100%); }
.app-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .2; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.app-cl { position: absolute; left: -260px; width: 130px; height: 42px; background: #fff; border-radius: 99px; opacity: .95; animation: app-drift 80s linear infinite; }
.app-cl::before, .app-cl::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.app-cl::before { width: 62px; height: 62px; left: 18px; top: -30px; }
.app-cl::after { width: 46px; height: 46px; left: 62px; top: -20px; }
.app-cl.c1 { top: 8%; animation-delay: -10s; }
.app-cl.c2 { top: 22%; transform: scale(.7); animation-duration: 110s; animation-delay: -60s; opacity: .8; }
.app-cl.c3 { top: 46%; animation-duration: 95s; animation-delay: -35s; }
.app-cl.c4 { top: 64%; transform: scale(.6); animation-duration: 130s; animation-delay: -90s; opacity: .7; }
.app-cl.c5 { top: 82%; animation-duration: 100s; animation-delay: -5s; }
@keyframes app-drift { to { left: calc(100% + 260px); } }

.app.app-shell { position: relative; z-index: 1; max-width: 1040px; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(var(--nav) + 56px + env(safe-area-inset-bottom)); }
.app-top { margin-bottom: 10px; }
.app-top .me-btn { min-height: 56px; gap: 10px; }
.app-top .me-btn .av { width: 56px; height: 56px; border: 4px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.app-me { display: grid; text-align: left; min-width: 0; }
.app-top .me-btn .app-me b { font: 400 24px/1.05 var(--display); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 2px 3px 0 var(--ink); }
.app-me small { font: 900 12px var(--body); color: var(--ink); opacity: .75; }
.app-top .pill { min-height: 48px; padding: 6px 16px; font-size: 22px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(2deg); }

/* headings + generic stickers */
.app-v { gap: 18px; grid-template-columns: minmax(0, 1fr); }
.app-h { display: grid; justify-items: center; gap: 8px; text-align: center; margin-top: 4px; }
.app-kick { display: inline-block; background: var(--ink); color: #fff; font: 400 14px var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px 4px; border-radius: 99px; transform: rotate(-2deg); }
.app-title { font: 400 clamp(42px, 12vw, 66px)/.95 var(--display); color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--hot); }
.app-title em { font-style: normal; color: var(--lime); }
.app-sub { margin: 0; font: 800 15px/1.35 var(--body); max-width: 30em; text-align: center; }
.app-h3 { font-size: 24px; margin: 6px 0 2px; }
.app-card { background: #fff; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 7px 7px 0 var(--ink); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.app-empty { text-align: center; padding: 22px 16px; font-weight: 800; background: rgba(255, 255, 255, .85); border: 4px dashed var(--ink); border-radius: 24px; }
.app-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px; padding: 10px 16px;
  border: 4px solid var(--ink); border-radius: 22px; background: #fff; color: var(--ink); font: 400 21px var(--display); letter-spacing: .02em;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .5), inset 0 -5px 0 rgba(0, 0, 0, .12), 0 6px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.app-btn:active { transform: translateY(4px); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .5), inset 0 -5px 0 rgba(0, 0, 0, .12), 0 2px 0 var(--ink); }
.app-btn[disabled] { opacity: .6; pointer-events: none; }
.app-b-hot { background: var(--hot); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.app-b-lime { background: var(--lime); } .app-b-sky { background: var(--sky); }

/* floating island (CSS, sits under the 3D or 2D stomper) */
.app-isl { position: absolute; left: 50%; bottom: 14px; width: 250px; height: 130px; margin-left: -125px; z-index: 1; }
.app-isl::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 58px; z-index: 2; border: 4px solid var(--ink); border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #d4ff7a, var(--lime) 60%); box-shadow: inset 0 -9px 0 #8fd12a; }
.app-isl::after { content: ''; position: absolute; left: 16px; right: 16px; top: 26px; bottom: 0; border: 4px solid var(--ink); border-radius: 0 0 50% 50% / 0 0 100% 100%; background: repeating-linear-gradient(#e0864a 0 22px, #b85f2e 22px 30px); }
.app-isl i { position: absolute; left: 50%; bottom: -34px; width: 150px; height: 16px; margin-left: -75px; border-radius: 50%; background: rgba(23, 18, 15, .14); }

/* ---------- Stomp tab ---------- */
.app-hero { display: grid; gap: 16px; }
.app-stage { position: relative; height: 310px; animation: app-float 5s ease-in-out infinite; }
@keyframes app-float { 50% { transform: translateY(-8px); } }
.app-stage > svg.stomper { position: absolute; left: 50%; bottom: 94px; width: 170px; margin-left: -85px; z-index: 2; overflow: visible; }
.app-stage.is3d > svg.stomper { display: none; }
.app-3d { position: absolute; left: 0; right: 0; top: -20px; bottom: 0; z-index: 3; }
.app-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.app-score { position: relative; z-index: 4; display: grid; justify-items: center; gap: 10px; text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 8px 8px 0 var(--ink); padding: 18px 18px 16px; }
.app-num { font: 400 clamp(76px, 23vw, 124px)/.9 var(--display); color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 5px 7px 0 var(--hot); }
.app-bar { width: 100%; height: 32px; border: 4px solid var(--ink); border-radius: 99px; background: #fff3dc; overflow: hidden; box-shadow: inset 0 4px 0 rgba(23, 18, 15, .08); }
.app-bar i { display: block; height: 100%; width: 0; border-right: 4px solid var(--ink); border-radius: 99px; background: repeating-linear-gradient(-45deg, var(--hot) 0 14px, #ff8a4a 14px 28px); background-size: 40px 40px; transition: width .4s; }
.app-bar.on i { animation: app-stripes .7s linear infinite; }
@keyframes app-stripes { to { background-position: 40px 0; } }
.app-steps { font: 400 18px var(--display); }
.app-score .effects { margin: 0; }
.app-v .chip { border: 2.5px solid var(--ink); padding: 2px 9px; font-size: 12px; font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }
.app-actions { display: grid; gap: 14px; }
.app-walk {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 88px; padding: 0 20px;
  border: 4px solid var(--ink); border-radius: 99px; background: linear-gradient(#ff8a4a, var(--hot) 55%, #e2470f); color: #fff;
  font: 400 34px var(--display); letter-spacing: .02em; text-shadow: 2px 3px 0 var(--ink);
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, .35), inset 0 -9px 0 rgba(0, 0, 0, .18), 0 9px 0 var(--ink), 0 16px 22px rgba(23, 18, 15, .22);
  transition: transform .08s, box-shadow .08s;
}
.app-walk:active { transform: translateY(7px); box-shadow: inset 0 7px 0 rgba(255, 255, 255, .35), inset 0 -9px 0 rgba(0, 0, 0, .18), 0 2px 0 var(--ink); }
.app-walk.on { background: linear-gradient(#e2ff9c, var(--lime) 55%, #8fd12a); color: var(--ink); text-shadow: none; }
.app-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--hot); border: 3px solid var(--ink); animation: blink 1s infinite; }
.app-ws { text-align: center; font: 800 14px/1.35 var(--body); background: rgba(255, 255, 255, .8); border: 3px solid var(--ink); border-radius: 16px; padding: 9px 12px; }
.app-ws.on { color: #c2410c; }
.app-ws .dot { margin-right: 6px; }

/* ---------- rows (wars + ranks) ---------- */
.app-list { display: grid; gap: 14px; }
.app-v .player {
  grid-template-columns: 30px 62px minmax(0, 1fr) auto; gap: 10px; min-height: 80px; padding: 8px 14px 8px 8px;
  border: 4px solid var(--ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.app-v .player:nth-child(odd) { transform: rotate(-.6deg); } .app-v .player:nth-child(even) { transform: rotate(.6deg); }
button.player:active { transform: translate(3px, 3px) !important; box-shadow: 2px 2px 0 var(--ink) !important; }
.app-v .player.me { background: #fff8b8; }
.app-v .player .rk { font-size: 24px; }
.app-v .player .av { position: relative; width: 62px; height: 64px; }
.app-v .player .av::before { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 52px; border-radius: 50%; background: var(--sky); border: 3px solid var(--ink); }
.app-v .player .av svg { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; overflow: visible; transform: rotate(-8deg); }
.app-v .player:nth-child(even) .av svg { transform: rotate(8deg); }
.app-v .player:nth-child(3n+2) .av::before { background: var(--pink); } .app-v .player:nth-child(3n) .av::before { background: var(--gold); }
.app-nm { display: grid; gap: 4px; min-width: 0; text-align: left; }
.app-nm .nm { font: 400 21px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nm .sub { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; font-weight: 800; }
.app-v .player .pts { font-size: 24px; }

/* ---------- Wars ---------- */
.app-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.app-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.app-invite { background: var(--sky); text-align: center; }
.app-invite .app-kick { justify-self: center; }
.app-code { font: 400 48px/1 var(--display); letter-spacing: .14em; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 var(--ink); }
.app-add { display: flex; gap: 10px; width: 100%; }
.app-add input { flex: 1; width: 100%; min-width: 0; min-height: 58px; border: 4px solid var(--ink); border-radius: 20px; padding: 0 14px; background: #fff; font: 900 18px var(--body); text-transform: uppercase; letter-spacing: .08em; }
.app-add .app-btn { width: auto; padding: 0 22px; }
.app-how div { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; font-size: 14px; font-weight: 700; }
.app-how b { display: block; font: 400 20px var(--display); }
.app-ic { width: 58px; height: 58px; display: grid; place-items: center; border: 4px solid var(--ink); border-radius: 50%; font-size: 28px; box-shadow: 3px 3px 0 var(--ink); }
.app-ic-mud { background: #e2c29b; } .app-ic-rocket { background: var(--sky); } .app-ic-shield { background: var(--lime); }
.app-feed { display: grid; gap: 8px; font-size: 14px; }
.app-feed div { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--ink); }
.app-feed time { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* ---------- Shop ---------- */
.app-shopstage { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 8px 16px 20px; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 8px 8px 0 var(--ink); background: radial-gradient(circle at 50% 35%, #ffc2e4, var(--pink) 70%); }
.app-shopstage::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 38%, #ffffff22 0 10deg, transparent 10deg 20deg); }
.app-shopstage > * { position: relative; }
.app-ministage { width: 100%; height: 230px; animation: app-float 5s ease-in-out infinite; }
.app-ministage .app-isl { bottom: 10px; transform: scale(.8); transform-origin: 50% 100%; }
.app-ministage > svg.stomper { position: absolute; left: 50%; bottom: 71px; width: 150px; margin-left: -75px; z-index: 2; overflow: visible; }
.app-shopstage .app-title { font-size: clamp(36px, 10vw, 52px); }
.app-shopmain { display: grid; gap: 18px; }
.app-seg { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; padding: 6px; background: var(--ink); border-radius: 99px; box-shadow: 4px 4px 0 rgba(23, 18, 15, .3); }
.app-seg button { min-height: 48px; border: 0; border-radius: 99px; background: transparent; color: #fff; font: 400 17px var(--display); transition: background .15s; }
.app-seg button[aria-pressed="true"] { background: var(--lime); color: var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding-top: 6px; }
@media (min-width: 420px) { .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-item { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 8px 12px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.app-item:nth-child(3n+1) { transform: rotate(-1.2deg); } .app-item:nth-child(3n+2) { transform: rotate(.8deg); }
.app-item:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.app-item-av { display: grid; place-items: center; width: 100%; aspect-ratio: 1.05; background: #eaf8ff; border: 3px solid var(--ink); border-radius: 18px; overflow: visible; }
.app-item-av svg { width: 76%; height: auto; overflow: visible; }
.app-item b { font: 400 17px/1.1 var(--display); text-align: center; }
.app-price { font: 400 15px var(--display); background: var(--gold); border: 2.5px solid var(--ink); border-radius: 99px; padding: 2px 10px; }
.app-item.on { background: var(--lime); } .app-item.on .app-price { background: #fff; }
.app-item.rare { background: linear-gradient(160deg, #fff6c9, var(--gold)); }
.app-item.rare .app-item-av { background: radial-gradient(circle, #fffbe6 30%, #ffe680); }
.app-legend { position: absolute; top: -14px; left: 50%; z-index: 2; transform: translateX(-50%) rotate(-4deg); overflow: hidden; white-space: nowrap; background: var(--gold); border: 3px solid var(--ink); border-radius: 99px; padding: 1px 10px; font: 400 13px var(--display); letter-spacing: .06em; box-shadow: 2px 2px 0 var(--ink); }
.app-legend::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #fffa 50%, transparent 70%); transform: translateX(-120%); animation: app-shine 2.8s ease-in-out infinite; }
@keyframes app-shine { 60%, 100% { transform: translateX(120%); } }

/* ---------- Ranks ---------- */
.app-prize { background: var(--gold); justify-items: center; text-align: center; }
.app-prize .cd { font: 400 44px/1 var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 var(--hot); }
.app-prize-t { font-size: 14px; font-weight: 800; }
.app-prize .link { padding: 0 4px; min-height: 44px; color: var(--ink); }
.app-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 6px; padding: 8px 4px 0; border-bottom: 5px solid var(--ink); }
.app-pod { display: grid; justify-items: center; gap: 2px; min-width: 0; text-align: center; }
.app-pod-av { width: 82%; } .app-pod1 .app-pod-av { width: 100%; }
.app-pod b { max-width: 100%; font: 400 19px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.app-pod .num { font: 400 16px var(--display); }
.app-pod.me b { color: var(--lime); }
.app-pod-step { width: 100%; height: 58px; margin-top: 4px; display: grid; place-items: start center; padding-top: 6px; font-size: 28px; border: 4px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; background: #e6e8ee; box-shadow: inset -7px 0 0 rgba(0, 0, 0, .08); }
.app-pod1 .app-pod-step { height: 92px; background: var(--gold); } .app-pod3 .app-pod-step { height: 44px; background: #f0a76a; }
.app-pod1 .app-pod-av { animation: app-hop 1.6s ease-in-out infinite; }
@keyframes app-hop { 50% { transform: translateY(-8px); } }

/* ---------- tab bar ---------- */
nav.app-tabs { padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
.app-strata { position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: 30px; pointer-events: none; }
.app-strata svg { display: block; width: 100%; height: 100%; }
nav.app-tabs button { min-height: 56px; border-radius: 18px; opacity: .78; font-size: 14px; transition: background .15s; }
nav.app-tabs button span { display: block; font-size: 25px; }
nav.app-tabs button[aria-current="page"] { background: var(--lime); color: var(--ink); opacity: 1; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
nav.app-tabs button[aria-current="page"] span { animation: app-pop .55s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes app-pop { 0% { transform: scale(.4) rotate(-20deg); } 60% { transform: scale(1.25) rotate(8deg); } }

/* ---------- sheets, toast, rush (shared, restyled) ---------- */
.scrim { background: rgba(23, 18, 15, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { border-width: 4px; border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); gap: 14px; animation: app-sheet .38s cubic-bezier(.2, 1.25, .4, 1); }
@keyframes app-sheet { from { transform: translateY(100%); } }
.app-grab { justify-self: center; width: 56px; height: 6px; border-radius: 99px; background: rgba(23, 18, 15, .25); }
.sheet h2 { font-size: 30px; }
.sheet .x { width: 48px; height: 48px; border-width: 4px; box-shadow: 3px 3px 0 var(--ink); }
.sheet .head .app-sav { flex: none; width: 76px; height: 76px; display: block; border: 4px solid var(--ink); border-radius: 50%; background: var(--sky); overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.sheet .head .app-sav svg { width: 100%; transform: scale(1.35) translateY(9%); }
.sheet .btn.app-act { min-height: 80px; border-width: 4px; border-radius: 24px; font-size: 21px; box-shadow: 0 6px 0 var(--ink); }
.sheet .btn.app-act:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.app-act-mud { background: #f3dfc6; } .app-act-rocket { background: #c9ecff; } .app-act-shield { background: #e2fbb0; }
.app-cost { background: var(--gold); border: 2.5px solid var(--ink); border-radius: 99px; padding: 2px 10px; font-size: 17px; }
.app-have { margin: 0; text-align: center; font-size: 14px; font-weight: 800; }
.sheet .row .field { min-height: 50px; text-transform: none; border-width: 4px; border-radius: 16px; }
.app-pcard { display: grid; gap: 8px; border-width: 4px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.app-pcard-hot { background: var(--lime); }
.app-pcard .btn.sm { min-height: 44px; }
.toast { background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 20px; padding: 12px 18px; font-weight: 900; box-shadow: 5px 5px 0 var(--hot); animation: app-toast .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes app-toast { from { transform: translate(-50%, -30px) scale(.8); opacity: 0; } }
.rush { background: radial-gradient(circle at 50% 45%, #ff9a5c, var(--hot) 65%); overflow: hidden; }
.rush::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, #ffffff1c 0 9deg, transparent 9deg 18deg); animation: app-spin 40s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
.app-rush { position: relative; display: grid; justify-items: center; gap: 4px; }
.app-rush-l { font: 400 24px var(--display); background: var(--ink); color: var(--gold); border-radius: 99px; padding: 4px 18px; }
.rush .t { font: 400 30px/1.1 var(--display); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); max-width: 14em; }
.rush .n { font: 400 120px/1 var(--display); color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 6px 7px 0 var(--ink); }
.rush .foot-btn { margin: 18px auto; border-width: 6px; background: radial-gradient(circle at 35% 30%, #eaffa8, var(--lime) 60%, #8fd12a); font-size: 38px; align-content: center; box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .15), 0 10px 0 var(--ink); }
.rush .foot-btn span { display: block; font-size: 84px; line-height: 1; }
.rush .foot-btn:active { transform: translateY(8px) scale(.97); box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .15), 0 2px 0 var(--ink); }

/* ---------- desktop ---------- */
@media (min-width: 860px) {
  .app.app-shell { padding-left: 32px; padding-right: 32px; }
  .app-stomp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "stage score" "stage act"; align-items: center; column-gap: 40px; }
  .app-stomp .app-hero { display: contents; }
  .app-stomp .app-stage { grid-area: stage; height: 480px; }
  .app-stomp .app-stage .app-isl { transform: scale(1.35); transform-origin: 50% 100%; }
  .app-stomp .app-stage > svg.stomper { width: 230px; margin-left: -115px; bottom: 128px; }
  .app-score { grid-area: score; } .app-actions { grid-area: act; align-self: start; }
  .app-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .app-shop { grid-template-columns: 360px minmax(0, 1fr); align-items: start; column-gap: 32px; }
  .app-shopstage { position: sticky; top: 16px; }
  .app-shopmain .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-ranks { max-width: 760px; margin: 0 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .app-cl, .app-stage, .app-ministage, .app-bar.on i, .app-legend::after, .app-pod1 .app-pod-av, nav.app-tabs button span, .sheet, .toast, .rush::before, .app-dot { animation: none !important; }
  .app-btn, .app-walk, .app-item, .app-v .player { transition: none; }
}
.app-logout { margin-top: 4px; background: #fff; color: #c2372f; }
