/* Russo One — headings, numbers, buttons (chunky and readable; the pixel font tried here had a poor Cyrillic);
   Rubik — everything you read */
@font-face { font-family: "Russo One"; src: url(assets/russo-cyr.woff2?v=23) format("woff2"); font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Russo One"; src: url(assets/russo-lat.woff2?v=23) format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; src: url(assets/rubik-cyr.woff2?v=23) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; src: url(assets/rubik-lat.woff2?v=23) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

[hidden] { display: none !important; }

/* The owner's pick, design/variant-1-rich.png: riveted bronze panels, metal buttons, coloured tab tiles, big pixel
   lettering. Every frame here is a picture cut from that design's own parts (assets/ui-*.png, built by
   tools/build_assets.py ui_kit) and drawn as a 9-slice behind the element, so panels keep their rivets at any size. */
:root {
  --f-head: "Russo One", "Rubik", system-ui, sans-serif;
  --f-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #0e0b08;
  --text: #f4e6c4;
  --muted: #cdb991;
  --dim: #9a8769;
  --copper: #f28a3c;
  --copper-hi: #ffb877;
  --gold: #ffcf4a;
  --green: #9be05a;
  --red: #ff6b4f;
  --amber: #ffb454;
  --o: 0 2px 0 rgba(0, 0, 0, .7);
  /* full screen in Telegram: the status bar + Telegram's own buttons on top, the home bar below (set by app.js
     from safeAreaInset + contentSafeAreaInset); outside Telegram the browser's safe areas */
  --top: max(env(safe-area-inset-top, 0px), var(--safe-top, 0px));
  --bot: max(env(safe-area-inset-bottom, 0px), var(--safe-bot, 0px));
  --ease: cubic-bezier(.2, .8, .25, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--f-body); font-weight: 500; color: var(--text); -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img { -webkit-user-drag: none; }
b { font-weight: 700; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--ink); }

/* ---- 9-slice frames: the picture sits behind the element's content ---------------------------- */
:where(#hud, #store, #sheet, #run-card, .feat, .card, .btn, .navb, .rk, .ico, .task-ico, .lvl, .bar, .plate, .bal, .chip, .tabs, .tab-ink,
    .facts > div, .stat-pair > div, .lb, .skin, .method, .pill, .x, .link, .avatar, .ph, .day, #energy, #toast) { position: relative; isolation: isolate; }
:where(#hud, #store, #sheet, #run-card, .feat, .card, .btn, .navb, .rk, .ico, .task-ico, .lvl, .bar, .plate, .bal, .chip, .tabs, .tab-ink,
    .facts > div, .stat-pair > div, .lb, .skin, .method, .pill, .x, .link, .avatar, .ph, .day, #energy, #toast)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border: solid transparent; border-width: var(--bw);
  border-image: var(--img) var(--sl) fill / var(--bw) / 0 round; }
/* the big riveted panel */
:where(#hud, #store, #sheet, #run-card, .pill) { --img: url(assets/ui-panel.webp?v=23); --sl: 80; --bw: 24px; }
/* the thinner riveted panel: the cards that lead a page */
.feat { --img: url(assets/ui-panel-s.webp?v=23); --sl: 72; --bw: 20px; }
/* a dark plate with a thin bronze edge: list cards and small boxes */
:where(.card, .plate, .bal, .chip, .tabs, .facts > div, .stat-pair > div, .lb, .skin, .method, .link, #toast) { --img: url(assets/ui-plate.webp?v=23); --sl: 44; --bw: 12px; }
/* a riveted slot for an icon */
:where(.rk, .ico, .task-ico, .avatar, .day) { --img: url(assets/ui-slot.webp?v=23); --sl: 62; --bw: 13px; }

/* ---- pages ------------------------------------------------------------------------------ */
#pages { position: relative; flex: 1; overflow: hidden; }
.page { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.page.on { visibility: visible; opacity: 1; }
.page.in { animation: pageIn .32s var(--ease) both; }
.page.out { visibility: visible; animation: pageOut .2s ease both; pointer-events: none; }
@keyframes pageIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); } }
@keyframes pageOut { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -16px)); } }
/* the other pages: the yard at dusk (the picture stands on its bottom edge, so the sign never sits behind a title) */
.page:not(#p-home) { background: linear-gradient(rgba(20, 14, 9, .78), rgba(14, 10, 7, .9)), url(assets/bg-yard.webp?v=23) 55% 100% / auto 165% no-repeat var(--ink); }
.scroll { position: relative; z-index: 1; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(var(--top) + 10px) 10px 18px; display: flex; flex-direction: column; gap: 8px; }
.scroll > *, #sheet-body > *, .pane > * { flex-shrink: 0; }   /* a long page scrolls, its cards never get squeezed */
.scroll.enter > * { animation: rise .4s var(--ease) both; }
.scroll.enter > :nth-child(2) { animation-delay: .03s; } .scroll.enter > :nth-child(3) { animation-delay: .06s; }
.scroll.enter > :nth-child(4) { animation-delay: .09s; } .scroll.enter > :nth-child(5) { animation-delay: .12s; }
.scroll.enter > :nth-child(n+6) { animation-delay: .15s; }

/* page header: a riveted tile in the tab's own colour with its icon, the title and the copper you have */
.ph { --img: url(assets/ui-tile-brown.webp?v=23); --sl: 72; --bw: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 14px 13px; min-height: 76px; }
.ph[data-tab=shop] { --img: url(assets/ui-tile-blue.webp?v=23); }
.ph[data-tab=top] { --img: url(assets/ui-tile-green.webp?v=23); }
.ph[data-tab=profile] { --img: url(assets/ui-tile-purple.webp?v=23); }
.ph > img { height: 46px; width: auto; flex: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)); }
.ph > div:not(.avatar) { flex: 1; min-width: 0; }
.ph h1 { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 21px; line-height: 1; text-transform: uppercase; letter-spacing: .5px; color: #fff3d6; text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
.ph p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.25; color: #e3d2ad; }
.bal { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 11px 8px 9px; font-family: var(--f-head); font-weight: 400; font-size: 14px; color: var(--copper); text-shadow: var(--o); }
.bal img { height: 15px; }

/* ---- home: the yard ---------------------------------------------------------------------- */
#bg { position: absolute; inset: 0;
  background: url(assets/bg-yard.webp?v=23) var(--bg-x, 58%) var(--bg-y, 100%) / var(--bg-w, auto) var(--bg-h, 100%) no-repeat, linear-gradient(#2f72c4, #4a97e0 60%); }
#bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 14, 22, .3), rgba(10, 14, 22, 0) 16%, rgba(0, 0, 0, 0) 70%, rgba(12, 9, 5, .45)); }

#hud { position: absolute; z-index: 5; left: 50%; top: calc(var(--top) + 6px); transform: translateX(-50%); width: min(400px, calc(100% - 10px)); display: flex; align-items: stretch; padding: 13px 14px 14px; }
.stat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat .lbl { font-family: var(--f-head); font-weight: 400; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; color: #ecdcb6; text-shadow: var(--o); white-space: nowrap; }
.stat .val { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.stat .val img { height: 26px; width: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.stat .val b { font-family: var(--f-head); font-weight: 400; font-size: 22px; line-height: 1; color: var(--copper); text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
.stat .val em { font-style: normal; font-family: var(--f-head); font-weight: 400; font-size: 13px; color: var(--copper); margin-left: -3px; text-shadow: var(--o); }
.hud-sep { width: 3px; margin: 2px 6px; background: #6d4f2e; box-shadow: -1px 0 0 #0b0703, 1px 0 0 #0b0703; }
.bump { animation: bump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1.15); } 100% { transform: scale(1); } }

#hero { position: absolute; z-index: 2; left: var(--hero-x, 20%); bottom: var(--hero-b, 30%); height: var(--hero-h, 40%); aspect-ratio: 420 / 640;
  transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
#hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shadow { position: absolute; left: 10%; right: 4%; bottom: -2%; height: 7%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); animation: shadow 3.6s ease-in-out infinite; }
#hero.hop { animation: hop .5s cubic-bezier(.3, 1.5, .5, 1); }
#hero.tap { animation: tapped .16s steps(4); }
@keyframes breathe { 0%, 100% { transform: none; } 25% { transform: scale(1.006, 1.012) rotate(-.4deg); } 50% { transform: scale(1.01, 1.022); } 75% { transform: scale(1.006, 1.012) rotate(.4deg); } }
@keyframes shadow { 50% { transform: scaleX(.96); opacity: .85; } }
@keyframes hop { 0% { transform: scale(1.06, .92); } 35% { transform: translateY(-7%) scale(.97, 1.05); } 65% { transform: scale(1.04, .96); } 100% { transform: none; } }
@keyframes tapped { 0% { transform: scale(1.05, .93); } 60% { transform: scale(.98, 1.03); } 100% { transform: none; } }

/* the yard's buttons: the tools you own in slots on the left, the badger's strength under his feet */
#rack { position: absolute; z-index: 3; left: 6px; top: var(--rack-top, 30%); display: flex; flex-direction: column; gap: 5px; }
.rk { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.rk img { max-width: 36px; max-height: 34px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.rk.add { font-family: var(--f-head); font-weight: 400; font-size: 26px; line-height: 1; color: var(--gold); text-shadow: var(--o); padding-bottom: 3px; }
.rk:active { transform: scale(.94); }
.rk i:not(.run-ico) { position: absolute; right: 7px; bottom: 6px; font-style: normal; font-family: var(--f-head); font-weight: 400; font-size: 10px; color: var(--green); text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
/* the right column: the wheel, the run, the tasks */
#acts { position: absolute; z-index: 3; right: 6px; top: var(--rack-top, 30%); display: flex; flex-direction: column; gap: 5px; }
.act { width: 66px; height: var(--act-h, 70px); flex-direction: column; gap: 1px; padding-bottom: 2px; }
.act img { max-width: 40px; max-height: calc(var(--act-h, 70px) * .52); }
/* the run's icon stands still (owner, 2026-11-28): one frame of the cycle, in the skin that is worn */
.act .run-ico { width: 38px; height: calc(var(--act-h, 70px) * .52); background: url(assets/run-ico.webp?v=23) 50% 50% / contain no-repeat; }
.act span { font-family: var(--f-head); font-size: 9.5px; line-height: 1; text-transform: uppercase; letter-spacing: .2px; color: #ecdcb6; text-shadow: var(--o); }
.act .dot { top: 5px; right: 6px; }
.tight .act span { display: none; }
#energy { --img: url(assets/ui-bar.webp?v=23); --sl: 36 48; --bw: 10px 13px; position: absolute; z-index: 3; left: calc(var(--hero-x, 20%) + var(--hero-w, 160px) * .5 - 82px);
  bottom: calc(var(--hero-b, 30%) - 30px); width: 164px; height: 26px; }
#energy i { position: absolute; inset: 5px 7px; background: url(assets/ui-fill-green.webp?v=23) 0 0 / 100% 100% no-repeat; clip-path: inset(0 calc(100% - var(--e, 1) * 100%) 0 0); transition: clip-path .2s steps(4); }
#energy.low i { background-image: url(assets/ui-fill-orange.webp?v=23); }
#energy span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 2px; font-family: var(--f-head); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #fff; text-shadow: 0 1px 0 #1c3a08, 1px 0 0 #1c3a08, -1px 0 0 #1c3a08, 0 -1px 0 #1c3a08, 0 2px 0 rgba(0, 0, 0, .5); }

/* a pixel speech bubble: the four side shadows make the stepped corners */
#bubble { position: absolute; z-index: 4; left: calc(var(--hero-x, 20%) + var(--hero-w, 160px) * .5); max-width: min(210px, 50%);
  bottom: calc(var(--hero-b, 30%) + var(--hero-h, 40%) * .84);
  padding: 8px 10px; font-size: 14px; font-weight: 700; line-height: 1.25; color: #2a1d10; background: #fbefd2;
  box-shadow: -4px 0 0 #fbefd2, 4px 0 0 #fbefd2, 0 -4px 0 #fbefd2, 0 4px 0 #fbefd2, -4px 8px 0 rgba(0, 0, 0, .4), 4px 8px 0 rgba(0, 0, 0, .4), 0 12px 0 rgba(0, 0, 0, .4);
  animation: pop .25s steps(4) both; transform-origin: 0 100%; }
#bubble::after { content: ""; position: absolute; left: 10px; bottom: -8px; width: 8px; height: 4px; background: #fbefd2; box-shadow: -4px 4px 0 #fbefd2; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

#store { position: absolute; z-index: 3; left: 50%; bottom: 4px; transform: translateX(-50%); width: min(400px, calc(100% - 10px));
  padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 7px; }
.store-head { display: flex; justify-content: space-between; align-items: center; }
.store-head span { font-family: var(--f-head); font-weight: 400; font-size: 16.5px; line-height: 1; letter-spacing: .5px; text-transform: uppercase; color: #f1e2bd; text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
.lvl { --img: url(assets/ui-badge.webp?v=23); --sl: 56 62; --bw: 10px 11px; padding: 5px 12px 6px; font-family: var(--f-head); font-weight: 400; font-size: 12px; text-transform: uppercase; color: #5a3a05; text-shadow: 0 1px 0 rgba(255, 240, 170, .6); }
.store-bar { display: flex; align-items: center; gap: 6px; }
.store-bar .bar { flex: 1; }
.plate { padding: 4px 9px 5px; font-family: var(--f-head); font-weight: 400; font-size: 15px; color: #f1e2bd; text-shadow: var(--o); white-space: nowrap; }
.store-rate { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-head); font-weight: 400; font-size: 14px; color: #f1e2bd; text-shadow: var(--o); }
.store-rate i { flex: 1; height: 2px; max-width: 70px; background: #8f6b3a; }
.store-rate img { height: 18px; }
.store-btns { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.store-btns .btn { --bh: 52px; font-size: 16px; }
.store-btns .btn.full { --img: url(assets/ui-btn-green.webp?v=23); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { filter: brightness(1.25); } }
.mini-fire { width: 26px; height: 28px; margin: -6px 0 -2px -6px; background: url(assets/fire-anim.webp?v=23) 0 0 / 1200% 100% no-repeat; animation: fire 1.1s steps(12) infinite; }

/* ---- progress bar: the riveted groove and a fill that is always drawn full width and cut to the value ----- */
.bar { --img: url(assets/ui-bar.webp?v=23); --sl: 36 48; --bw: 9px 12px; height: 24px; }
.bar i { position: absolute; inset: 5px 7px; background: url(assets/ui-fill-orange.webp?v=23) 0 0 / 100% 100% no-repeat; clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); transition: clip-path .5s ease; }
.bar.full i { animation: blink 1s steps(2) infinite; }
.bar.green i { background-image: url(assets/ui-fill-green.webp?v=23); }

/* ---- buttons: the riveted metal plates of the design ----------------------------------------- */
.btn { --bh: 46px; --img: url(assets/ui-btn-grey.webp?v=23); --sl: 70 80; --bw: calc(var(--bh) * .41) calc(var(--bh) * .47);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--bh); padding: 2px 16px 5px;
  font-family: var(--f-head); font-weight: 400; font-size: 14.5px; line-height: 1.05; text-transform: uppercase; letter-spacing: .5px; color: #f6ead0; text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
  transition: transform .06s, filter .1s; }
.btn.copper, .btn.red { --img: url(assets/ui-btn-copper.webp?v=23); }
.btn.green { --img: url(assets/ui-btn-green.webp?v=23); }
.btn.blue { --img: url(assets/ui-btn-blue.webp?v=23); }
.btn:active:not(:disabled) { transform: translateY(2px); filter: brightness(.9); }
.btn:disabled { color: #a3947b; text-shadow: none; cursor: default; }
.btn:disabled::before { filter: grayscale(.9) brightness(.55); }
.btn.wide { --bh: 54px; width: 100%; font-size: 16.5px; }
.btn.price { --bh: 42px; gap: 4px; padding-left: 12px; padding-right: 12px; min-width: 78px; font-size: 13.5px; flex: none; }
.btn.price img { height: 14px; }
.card .btn.small { --bh: 40px; flex: none; padding-left: 12px; padding-right: 12px; font-size: 13px; }

/* ---- bottom tabs: five riveted tiles, the open one in gold ---------------------------------- */
#nav { position: relative; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 5px 5px calc(5px + var(--bot)); background: #17100a; box-shadow: inset 0 3px 0 #0b0703; }
.navb { --img: url(assets/ui-tile-brown.webp?v=23); --sl: 72; --bw: 17px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-bottom: 2px; transition: transform .1s; }
.navb img { height: 36px; width: auto; max-width: 52px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.navb span { font-family: var(--f-head); font-weight: 400; font-size: 10.5px; line-height: 1; text-transform: uppercase; letter-spacing: .2px; color: #ecdcb6; text-shadow: var(--o); }
.navb[data-go=shop] { --img: url(assets/ui-tile-blue.webp?v=23); }
.navb[data-go=top] { --img: url(assets/ui-tile-green.webp?v=23); }
.navb[data-go=profile] { --img: url(assets/ui-tile-purple.webp?v=23); }
.navb.on { --img: url(assets/ui-tile-gold.webp?v=23); }
.navb.on span { color: var(--gold); }
.navb.on img { transform: translateY(-2px) scale(1.08); }
.navb:active { transform: scale(.95); }
.dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; background: var(--red); box-shadow: 0 0 0 2px #0b0703; animation: blink 1s steps(2) infinite; }

/* ---- content blocks ---------------------------------------------------------------------- */
.note { margin: 0; font-size: 14px; line-height: 1.45; color: #dcc9a2; }
.note b { color: var(--text); }
.note.small { font-size: 12px; color: var(--muted); }
/* the token's name keeps its own spelling inside upper-case headings */
.nc { text-transform: none; }
.sec { margin: 10px 4px 0; font-family: var(--f-head); font-weight: 400; font-size: 13.5px; text-transform: uppercase; letter-spacing: .6px; color: #f1e2bd; text-shadow: 0 2px 0 rgba(0, 0, 0, .75); }
.card { padding: 12px 13px; display: flex; gap: 11px; align-items: center; }
.card .ico, .ico { width: 56px; height: 56px; padding: 11px; object-fit: contain; flex: none; }
.card .grow, .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card .t, .t { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.card .s, .s { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.s b { color: var(--text); }
.card.col { flex-direction: column; align-items: stretch; }
.card.done { opacity: .55; }
.card.hot::before { filter: brightness(1.5) sepia(.35) saturate(1.5); }
.feat { padding: 18px 16px 17px; }
.chip { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-family: var(--f-head); font-weight: 400; font-size: 12px; color: var(--copper-hi);
  padding: 4px 10px 5px 8px; white-space: nowrap; text-shadow: var(--o); }
.chip img { height: 14px; }
.big { font-family: var(--f-head); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--copper); text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
.big.good { color: var(--green); }
.big.warn { color: var(--amber); }
.big.bad { color: var(--red); }
.row { display: flex; gap: 8px; align-items: center; }
.row > .btn { flex: 1; }
.between { justify-content: space-between; }
.center { text-align: center; align-items: center; justify-content: center; }
.levels { width: 100%; border-collapse: collapse; font-size: 13px; }
.levels td { padding: 8px; }
.levels tr:nth-child(odd) td { background: rgba(255, 236, 200, .05); }
.levels td:first-child { font-family: var(--f-head); font-weight: 400; font-size: 12.5px; }
.levels td:last-child { text-align: right; color: var(--muted); }
.levels tr.got td { color: var(--muted); }
.levels tr.me td, .levels tr.me td:last-child { color: #16210b; background: var(--green); font-weight: 700; }
.link { font-size: 13px; font-weight: 600; line-height: 1.4; word-break: break-all; padding: 11px 12px; color: var(--copper-hi); user-select: text; -webkit-user-select: text; }
.result { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; text-align: center; }
.result img { height: 110px; width: auto; }
.result .note { text-align: center; }
.tool-pic { height: 92px !important; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); animation: float 1.6s steps(4) infinite alternate; }
@keyframes float { to { transform: translateY(-6px); } }
.tool-pic.spoil { animation: shake .12s linear 6; filter: grayscale(.6) brightness(.8); }
.tool-pic.work { animation: work .28s steps(3) infinite; }
@keyframes work { 50% { transform: translate(10px, 4px) rotate(8deg); } }
.inspector-in { animation: slidein .55s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes slidein { from { transform: translateX(130%); } }
.whistle { font-family: var(--f-head); font-weight: 400; font-size: 26px; color: #fff; text-shadow: 0 3px 0 var(--red), 0 5px 0 #000; letter-spacing: 2px; animation: shake .12s linear 8; }
@keyframes shake { 25% { transform: translate(-2px, 1px) rotate(-2deg); } 75% { transform: translate(2px, -1px) rotate(2deg); } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.facts > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px; text-align: center; }
.facts b { font-family: var(--f-head); font-weight: 400; font-size: 18px; color: var(--copper); text-shadow: var(--o); }
.facts span { font-size: 11px; line-height: 1.25; color: var(--muted); }
.card.tool-row { cursor: pointer; }
.card.tool-row.owned::before { filter: hue-rotate(60deg) saturate(1.6) brightness(1.25); }
.own-mark { flex: none; display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-head); font-weight: 400; font-size: 13px; text-transform: uppercase; color: var(--green); text-shadow: var(--o); }
.own-mark img { height: 20px; }

/* refining: the ways to clean the wire */
.methods { display: flex; flex-direction: column; gap: 6px; }
.method { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; text-align: left; }
.method:active { transform: scale(.98); }
.method img, .method .fire-anim { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.method > b { font-family: var(--f-head); font-weight: 400; font-size: 19px; color: var(--green); text-shadow: var(--o); }
.method.fire > b { color: var(--amber); }

/* games: the run stage, the wheel, the daily bonus */
.stage-card { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 14px 15px; display: flex; }
.stage { position: relative; height: 124px; margin: 0 0 10px; background: url(assets/run-bg.webp?v=23) 0 100% / auto 100% repeat-x; animation: scroll 9s linear infinite; box-shadow: 0 0 0 2px #0b0703; overflow: hidden; }
@keyframes scroll { to { background-position-x: -372px; } }
.st-badger, .st-insp { position: absolute; z-index: 1; bottom: 8px; background-repeat: no-repeat; }
.st-badger { left: 58%; height: 74px; aspect-ratio: 139 / 150; background-size: 1200% 100%; animation: runico .55s steps(12) infinite; }
.st-insp { left: 12%; height: 88px; aspect-ratio: 123 / 170; background: url(assets/run-inspector.webp?v=23) 0 0 / 1400% 100% no-repeat; animation: insprun .8s steps(14) infinite, chase 3.6s ease-in-out infinite; }
@keyframes runico { to { background-position-x: 109.0909%; } }
@keyframes insprun { to { background-position-x: 107.6923%; } }
@keyframes chase { 50% { transform: translateX(14px); } }
.stage-info { display: flex; flex-direction: column; gap: 8px; }
.stage-info h3, .card h3, .feat h3 { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 18px; line-height: 1; text-transform: uppercase; letter-spacing: .5px; color: #fff3d6; text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
.wheel-card { display: flex; align-items: center; gap: 12px; }
.wheel-card h3 { font-size: 15.5px; }
.wheel-card canvas { width: 62px; height: 62px; flex: none; }
.wheel-card canvas.spin { animation: turn 7s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.daily { display: flex; flex-direction: column; gap: 10px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.day { aspect-ratio: 1 / 1.25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; --bw: 9px; }
.day em { font-style: normal; font-family: var(--f-head); font-weight: 400; font-size: 9.5px; color: var(--muted); text-transform: uppercase; }
.day b { font-family: var(--f-head); font-weight: 400; font-size: 12px; color: var(--copper-hi); text-shadow: var(--o); }
.day img { height: 18px; }
.day.got { opacity: .6; }
.day.now { --img: url(assets/ui-tile-gold.webp?v=23); --sl: 72; --bw: 11px; }
.day.now em { color: var(--gold); }
.task-ico { width: 52px; height: 52px; flex: none; padding: 10px; display: flex; align-items: center; justify-content: center; }
.task-ico img { max-width: 100%; max-height: 100%; object-fit: contain; }
.task-ico .run-ico { width: 30px; height: 33px; background: url(assets/run-ico.webp?v=23) 50% 50% / contain no-repeat; }
.card .s.nw { white-space: nowrap; }

/* the exchange: the rate, the candle chart, the deal */
.mk { display: flex; flex-direction: column; gap: 9px; }
.mk-rate { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.mk-rate b { font-family: var(--f-head); font-weight: 400; font-size: 32px; line-height: 1; color: var(--copper); text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
.mk-rate img { height: 26px; width: 26px; }
.mk-rate span { font-family: var(--f-head); font-size: 15px; color: #f1e2bd; text-shadow: var(--o); }
.mk-chg { flex: none; padding: 6px 9px 7px; font-family: var(--f-head); font-size: 12.5px; white-space: nowrap; color: #16210b; background: var(--green); box-shadow: 0 0 0 2px #0b0703; }
.mk-chg.down { color: #2a0d07; background: var(--red); }
.mk-chg:empty { display: none; }
#mk-chart { display: block; width: 100%; height: 190px; box-shadow: 0 0 0 2px #0b0703, 0 0 0 4px #6d4f2e, 0 0 0 6px #0b0703; margin: 4px 0; image-rendering: pixelated; }
.tfs, .parts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tfs button, .parts button { height: 32px; padding-bottom: 2px; font-family: var(--f-head); font-size: 12.5px; text-transform: uppercase; color: var(--muted); background: #17100a; box-shadow: inset 0 0 0 2px #3d2e1d; }
.tfs button.on, .parts button.on { color: #1a0f05; background: var(--copper); box-shadow: inset 0 3px 0 #ffb877, inset 0 -3px 0 #a04d1d; }
.mk-n { font-family: var(--f-head); font-weight: 400; font-size: 17px; color: #f1e2bd; text-shadow: var(--o); }
.mk-n.get { color: var(--green); }
.mk-have { display: inline-flex; align-items: center; gap: 7px; }
.mk-have img { height: 24px; width: 24px; }

/* profile */
.avatar { width: 62px; height: 62px; flex: none; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding: 8px 8px 9px; }
.avatar img { height: 46px; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-pair > div { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px 12px; }
.stat-pair b { font-family: var(--f-head); font-weight: 400; font-size: 20px; line-height: 1; color: var(--copper); text-shadow: var(--o); }
.stat-pair span { font-size: 11.5px; color: var(--muted); }
.rank { display: flex; flex-direction: column; gap: 8px; }
.rank .t { font-family: var(--f-head); font-size: 17px; text-transform: uppercase; color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .75); display: flex; align-items: center; gap: 8px; }
.rank .t img { height: 26px; }
.sw { flex: none; width: 58px; height: 30px; position: relative; background: #0d0906; box-shadow: 0 0 0 2px #6d4f2e, 0 0 0 4px #0b0703; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #6b5a46; box-shadow: inset 0 3px 0 #8d7961, inset 0 -3px 0 #45382a; transition: transform .15s steps(3); }
.sw.on::after { transform: translateX(28px); background: #5f9f32; box-shadow: inset 0 3px 0 #8fd058, inset 0 -3px 0 #3b6a1b; }

/* leaderboard: the podium and the list */
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 4px; padding: 6px 2px 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.pod img.who { height: 74px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)); }
.pod .nm { max-width: 100%; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .vl { font-family: var(--f-head); font-weight: 400; font-size: 13px; color: var(--copper); text-shadow: var(--o); white-space: nowrap; }
.pod .blk { width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; font-family: var(--f-head); font-weight: 400; font-size: 22px; color: #3b2a05; text-shadow: 0 1px 0 rgba(255, 240, 170, .5);
  position: relative; isolation: isolate; height: 62px; }
.pod .blk::before { content: ""; position: absolute; inset: 0; z-index: -1; border: solid transparent; border-width: 12px; border-image: url(assets/ui-badge.webp?v=23) 56 62 fill / 12px / 0 round; }
.pod.p2 .blk { height: 46px; } .pod.p2 .blk::before { filter: grayscale(1) brightness(1.15); }
.pod.p3 .blk { height: 34px; } .pod.p3 .blk::before { filter: sepia(1) saturate(1.6) hue-rotate(-18deg) brightness(.8); }
.pod.me .nm { color: var(--green); }
.lb-list { display: flex; flex-direction: column; gap: 4px; }
.lb { display: grid; grid-template-columns: 28px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; }
.lb-n { font-family: var(--f-head); font-weight: 400; font-size: 15px; color: var(--muted); text-align: center; text-shadow: var(--o); }
.lb img { height: 40px; width: 30px; object-fit: contain; object-position: 50% 100%; }
.lb-name { font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--green); margin-left: 4px; }
.lb > b { font-family: var(--f-head); font-weight: 400; font-size: 14.5px; color: var(--copper); white-space: nowrap; text-shadow: var(--o); }
.lb.me::before { filter: hue-rotate(60deg) saturate(1.6) brightness(1.3); }

/* segmented tabs (shop, top): a dark groove with a copper plate that slides */
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; flex: none; }
.tab { position: relative; z-index: 1; height: 42px; padding-bottom: 3px; font-family: var(--f-head); font-weight: 400; font-size: 14.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); text-shadow: var(--o); transition: color .2s; }
.tab.on { color: #fff3d6; }
.tab-ink { --img: url(assets/ui-btn-copper.webp?v=23); --sl: 70 80; --bw: 17px 20px; position: absolute; z-index: 0; left: 5px; top: 5px; bottom: 5px; width: calc(50% - 5px); transition: transform .2s steps(5); }
.tabs[data-at=run] .tab-ink { transform: translateX(100%); }
.pane { display: flex; flex-direction: column; gap: 8px; }
.pane.from-r > * { animation: fromR .28s var(--ease) both; }
.pane.from-l > * { animation: fromL .28s var(--ease) both; }
.pane.enter > * { animation: rise .35s var(--ease) both; }
.pane > :nth-child(2) { animation-delay: .03s; } .pane > :nth-child(3) { animation-delay: .06s; } .pane > :nth-child(n+4) { animation-delay: .09s; }

/* skins */
.skins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.skin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 11px 11px; text-align: center; }
.skin.on { --img: url(assets/ui-tile-gold.webp?v=23); --sl: 72; --bw: 16px; }
.skin-pic { width: 100%; height: 104px; display: flex; align-items: flex-end; justify-content: center; }
.skin-pic img { height: 98px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)); transition: transform .2s steps(3); }
.skin:active .skin-pic img { transform: translateY(-4px); }
.skin .t { font-size: 14px; }
.skin .btn { --bh: 40px; width: 100%; font-size: 13px; }

/* ---- sheet: details over the page ------------------------------------------------------ */
#veil { position: fixed; left: 0; right: 0; top: 0; bottom: var(--nav-h, 0px); z-index: 20; background: rgba(5, 4, 2, .7); }
#veil.in { animation: fadeIn .25s ease both; }
#veil.out { animation: fadeOut .25s ease both; pointer-events: none; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
#sheet { position: fixed; z-index: 21; left: 5px; right: 5px; bottom: calc(var(--nav-h, 0px) + 5px); max-height: calc(100% - var(--top) - var(--nav-h, 0px) - 20px);
  display: flex; flex-direction: column; padding: 14px 13px 15px; will-change: transform, opacity; transform-origin: var(--ox, 50%) 100%; }
#sheet.in { animation: sheetIn .4s cubic-bezier(.18, 1, .32, 1) both; }
#sheet.out { animation: sheetOut .24s cubic-bezier(.4, 0, .8, .45) both; pointer-events: none; }
@keyframes sheetIn { 0% { opacity: 0; transform: translateY(26px) scale(.88); } 50% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(18px) scale(.9); } }
#sheet.out.dragged { animation-name: sheetDrop; animation-duration: .24s; }
@keyframes sheetDrop { to { transform: translateY(calc(100% + 24px)); opacity: .5; } }
#sheet.grow { overflow: hidden; transition: height .3s var(--ease); }
#sheet > header { position: relative; touch-action: none; cursor: grab; display: flex; align-items: center; gap: 10px; padding: 2px 0 9px 4px; margin-bottom: 9px; box-shadow: 0 2px 0 #8f6b3a, 0 4px 0 #0b0703; }
#sheet-ico { height: 34px; width: 40px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
#sheet h2 { flex: 1; margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .5px; color: #fff3d6; text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
#sheet[data-kind=bad] h2 { color: var(--red); }
.x { --img: url(assets/ui-btn-grey.webp?v=23); --sl: 70 80; --bw: 15px 17px; width: 40px; height: 38px; flex: none; padding-bottom: 3px; font-size: 16px; font-weight: 700; color: #f6ead0; text-shadow: var(--o); }
.x:active { transform: translateY(2px); filter: brightness(.9); }
#sheet-body { position: relative; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
#sheet.hd #sheet-title, #sheet.hd #sheet-ico { animation: hdIn .25s var(--ease) both; }
@keyframes hdIn { from { opacity: 0; transform: translateY(-6px); } }
#sheet-body.enter > * { animation: rise .4s var(--ease) .06s both; }
#sheet-body.enter > :nth-child(2) { animation-delay: .1s; } #sheet-body.enter > :nth-child(3) { animation-delay: .14s; }
#sheet-body.enter > :nth-child(4) { animation-delay: .17s; } #sheet-body.enter > :nth-child(n+5) { animation-delay: .2s; }
#sheet-body.swap > * { animation: swapIn .25s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fromR { from { opacity: 0; transform: translateX(26px); } }
@keyframes fromL { from { opacity: 0; transform: translateX(-26px); } }
@keyframes swapIn { from { opacity: 0; transform: scale(.97); } }
.card.odds { flex: 1; flex-direction: column; align-items: center; gap: 0; padding: 10px 8px; }
.card.odds .big { font-size: 22px; }
.popin { animation: pop .35s steps(5) both; }
.insp-run { height: 150px; aspect-ratio: 123 / 170; background: url(assets/run-inspector.webp?v=23) 0 0 / 1400% 100% no-repeat;
  animation: slidein .55s cubic-bezier(.2, .9, .3, 1.2), insprun .9s steps(14) infinite; }
/* waiting for a payment: one lit pixel walking round a square of four */
.spinner { width: 8px; height: 8px; margin: 14px; background: transparent; animation: walk .8s steps(1) infinite; }
@keyframes walk { 0% { box-shadow: -8px -8px 0 var(--copper-hi), 8px -8px 0 #5b3414, 8px 8px 0 #5b3414, -8px 8px 0 #5b3414; }
  25% { box-shadow: -8px -8px 0 #5b3414, 8px -8px 0 var(--copper-hi), 8px 8px 0 #5b3414, -8px 8px 0 #5b3414; }
  50% { box-shadow: -8px -8px 0 #5b3414, 8px -8px 0 #5b3414, 8px 8px 0 var(--copper-hi), -8px 8px 0 #5b3414; }
  75% { box-shadow: -8px -8px 0 #5b3414, 8px -8px 0 #5b3414, 8px 8px 0 #5b3414, -8px 8px 0 var(--copper-hi); } }
/* first-visit hints */
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 8px; height: 8px; background: #5b4630; } .dots i.on { background: var(--gold); }

/* fire scene */
.fire-anim { display: block; aspect-ratio: 126 / 133; background: url(assets/fire-anim.webp?v=23) 0 0 / 1200% 100% no-repeat; animation: fire 1.1s steps(12) infinite; }
@keyframes fire { to { background-position-x: 109.0909%; } }
.pit { position: relative; width: 170px; height: 170px; margin: 2px auto 0; }
.pit::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 4%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 150, 50, .55), rgba(255, 100, 20, 0)); animation: blink .6s steps(2) infinite; }
.pit .fire-anim { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 0; height: 150px; animation-duration: 1s; }
.pit.burn .fire-anim { height: 186px; animation: fire .55s steps(12) infinite, burn .3s ease-in-out infinite; }
@keyframes burn { 0%, 100% { transform: none; filter: brightness(1.1); } 50% { transform: scale(1.06, 1.1); filter: brightness(1.45); } }
.ember { position: absolute; bottom: 40%; width: 4px; height: 4px; background: #ffcf6a; box-shadow: 0 0 0 1px #ff8a2a; animation: ember 1.4s steps(10) infinite; opacity: 0; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx, 10px), -110px); opacity: 0; } }

/* wheel sheet */
.wheel-wrap { position: relative; width: min(300px, 76vw); aspect-ratio: 1; margin: 14px auto 0; }
.wheel-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#wheel-disc { transition: transform 4.6s cubic-bezier(.12, .7, .1, 1); }
.wheel-rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 22%; height: auto; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)); }
.wheel-pin { position: absolute; left: 50%; top: -5%; width: 15%; height: auto; transform: translateX(-50%); z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)); }

/* ---- runner ----------------------------------------------------------------------------- */
#runner { position: fixed; inset: 0; z-index: 30; background: #000; display: flex; align-items: center; justify-content: center; }
#runner.in { animation: runIn .35s var(--ease) both; }
#runner.out { animation: runOut .3s ease both; pointer-events: none; }
@keyframes runIn { from { opacity: 0; transform: scale(1.05); } }
@keyframes runOut { to { opacity: 0; transform: scale(.97); } }
#run-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#run-hud { position: absolute; left: 6px; right: 56px; top: calc(var(--top) + 6px); display: flex; gap: 4px; pointer-events: none; }
.pill { --bw: 16px; --sl: 80; display: flex; align-items: center; gap: 6px; padding: 9px 14px 10px; font-family: var(--f-head); font-weight: 400; font-size: 17px; line-height: 1; color: var(--copper); text-shadow: var(--o); }
.pill img { height: 20px; }
.run-x { position: absolute; right: 8px; top: calc(var(--top) + 10px); z-index: 2; }
#run-card { z-index: 3; width: min(350px, 92vw); padding: 20px 18px 19px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
#run-card.show { animation: cardIn .4s cubic-bezier(.2, .9, .3, 1.12) both; }
#run-card.hide { animation: cardOut .24s ease both; pointer-events: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(34px) scale(.94); } }
@keyframes cardOut { to { opacity: 0; transform: translateY(18px) scale(.96); } }
#run-card > * { animation: rise .4s var(--ease) both; }
#run-card > :nth-child(2) { animation-delay: .06s; } #run-card > :nth-child(3) { animation-delay: .12s; } #run-card > :nth-child(n+4) { animation-delay: .18s; }
#run-card h3 { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .6px; color: var(--copper-hi); text-shadow: 0 3px 0 rgba(0, 0, 0, .75); }
#run-card .note { text-align: center; }

/* ---- fx / toast / splash ---------------------------------------------------------------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.fly { position: absolute; font-family: var(--f-head); font-weight: 400; font-size: 22px; color: var(--copper-hi); text-shadow: 0 3px 0 #000; animation: fly 1.1s var(--ease) forwards; white-space: nowrap; }
.fly.green { color: var(--green); }
.fly.small { font-size: 15px; animation-duration: .8s; }
@keyframes fly { 0% { transform: translateY(6px) scale(.7); opacity: 0; } 15% { transform: translateY(0) scale(1.1); opacity: 1; } 100% { transform: translateY(-74px) scale(1); opacity: 0; } }
.spark { position: absolute; width: 6px; height: 6px; background: #ffd58a; box-shadow: 0 0 0 2px #ff9b4a; }
#toast { position: fixed; z-index: 50; left: 50%; top: calc(var(--top) + 96px); transform: translateX(-50%); max-width: 88vw; padding: 11px 15px 12px;
  font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--text); animation: toast .25s steps(4) both; }
@keyframes toast { from { transform: translate(-50%, -14px); opacity: 0; } }
#splash { position: fixed; inset: 0; z-index: 60; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .35s; }
#splash img { height: 180px; animation: breathe 1.4s ease-in-out infinite; }
#splash span { font-family: var(--f-head); font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
#app:not(.loading) #splash { opacity: 0; pointer-events: none; }

@media (max-width: 359px) { .navb span { font-size: 10.5px; } .store-btns .btn { font-size: 16px; } .stat .lbl { font-size: 10.5px; } }
@media (min-width: 600px) {
  #app { max-width: 520px; margin: 0 auto; left: 0; right: 0; }
  #sheet { max-width: 510px; left: 0; right: 0; margin: 0 auto; width: calc(100% - 10px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* 2026-11-28, owner: «слишком наляпано, много всего в одном месте». The yard keeps the badger, three buttons and the
   store; the store's speed sits in its title row; pages have no subtitles; cards stand further apart. */
.store-head .store-speed { font-family: var(--f-head); font-weight: 400; font-size: 14px; color: #f1c27a; text-shadow: var(--o); }
.scroll { gap: 12px; }
