/* no ligatures: a pixel font joined the f and l of A floor into one glyph */
body { font-variant-ligatures: none; }
@font-face { font-family: 'VT323'; src: url(/fonts/vt323/vt323-latin-400-normal.woff2) format('woff2'); font-display: block; } /* preloaded with the page; never a first screen in a stand-in font that then changes shape */

/* The interface is bought in pieces. Default: white boxes on black in a pixel font.
   .f (A font): Rubik. .b (Buttons): a graphite console with keycaps, green keys for buying, the rest graphite.
   .g0 to .g9: the graphics level, which recolors the boxes until Buttons. */
:root {
  --ink: #17141d; --ink-soft: #b9ada3; --white: #fff; --orange: #ff7a12; --orange-edge: #a84a06;
  --slate: #241d1a; --tile: #352b26; --tile-hi: #443730; --edge: #150f0c; --cap-off: #4f433b; --cap-off-edge: #2b2320;
  --acc: #22c46e; --acc-edge: #11804a; --num-w: 400;
  --go: #2fd35c; --go-edge: #169c3c; --no: #dfe5fa; --no-edge: #aab6e6; --sheet: #1b3fd0; --red: #ff4655; --yellow: #ffcf1f;
  --panel: #000; --line: #fff; --text: #fff; --muted: #8a8a8a; --hi: #fff; --hi-ink: #000;
  --font: 'VT323', monospace; --num: 'VT323', monospace; --fs: 20px;
  --shop-w: 0px; --shop-h: 0px; --play-w: 100vw; --play-top: 40px; --play-bottom: calc(100vh - 112px); /* where the first screen's layout puts them, so the pixel in the page does not move when the game arrives */
}
/* --muted is the second line of every button (what a row does, what Better costs): dark red and dark violet were 2.7:1
   and 3:1 on their panels and read as smudges, so each is the dimmest shade of the look that still reads (5:1 or more) */
/* Accents: the colours a number, a sticker, a bar or a glow may use (--yellow and --red above are two of them).
   Every look hands them the colours it has bought, here and nowhere else: none before Red, shades of red until
   Green, red, yellow and green until Blue. Rules name the accent, never a colour, or a pay number turns up yellow
   in a one-bit game (the first Fever did, orange, and so did the Free sticker and every big pay number). */
:root { --fever: #ffb36b; --fever-bar: #ffb45a; --fever-text: #ffcf8f; --glow: 255, 150, 60; --glow-a: 1; --chain: #8ff0ff; --good: #6dff9b; --bad: #ff9d8c; --hot: #ffb000; --stop: #e8301f; --spend: #ffb3bb; }
.g0, .g1 { --yellow: #fff; --red: #fff; --fever: #fff; --fever-bar: #fff; --fever-text: #fff; --glow: 255, 255, 255; --glow-a: .7; --chain: #fff; --good: #fff; --bad: #fff; --hot: #fff; --stop: #8a8a8a; --spend: #bcbcbc; }
.g2 { --line: #f83800; --muted: #f05858; --hi: #f83800; --yellow: #ff9a84; --red: #f83800; --fever: #ff5a4f; --fever-bar: #ff5a4f; --fever-text: #ff5a4f; --glow: 255, 56, 46; --chain: #fff; --good: #fff; --bad: #f83800; --hot: #ff9a84; --stop: #a80020; --spend: #ff9a84; }
.g3 { --line: #f8b800; --muted: #ac7c00; --hi: #f8b800; --yellow: #f8d800; --red: #f83800; --chain: #fff; --good: #9ce000; --bad: #f83800; --hot: #f8b800; --stop: #f83800; --spend: #ff9a60; }
.g4, .g5, .g6, .g7, .g8, .g9 { --panel: #0d0b2b; --line: #9878f8; --muted: #8a70ff; --hi: #00b800; --hi-ink: #fcfcfc; }
.f { --font: 'Rubik', system-ui, sans-serif; --num: 'Rubik', system-ui, sans-serif; --num-w: 800; --fs: 16px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: manipulation; background: #000; color: var(--text); font-family: var(--font); font-size: var(--fs); font-weight: 800; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; image-rendering: pixelated; transform-origin: 50% 45%; }
.g8 #scene, .g9 #scene { image-rendering: auto; }
.ic { display: inline-block; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
img.it { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
img.px, img.ball { image-rendering: pixelated; }
.g8 img.ball, .g9 img.ball { image-rendering: auto; }
/* outlined numbers once there is a font */
.f #coins b, .f .pop, .f .rv-text b, .f .card .price, .f #lone .pr { -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }

/* ---------- the pile ---------- */
#hud { position: fixed; top: max(10px, env(safe-area-inset-top)); left: calc(var(--play-w) / 2); transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; pointer-events: none; z-index: 5; }
#spark { position: fixed; left: calc(var(--play-w) / 2); top: calc(var(--play-top) + (var(--play-bottom) - var(--play-top)) * .45); width: 8px; height: 8px; margin: -4px; background: #fff; animation: sparkle 1.2s ease-in-out infinite; pointer-events: none; z-index: 4; }
@keyframes sparkle { 50% { transform: scale(1.75); box-shadow: 0 0 10px 2px rgba(255,255,255,.55); } } /* alive, not loading */
/* What the page says when the game is slow to come, or cannot (index.html): under the pixel, in the first look's
   white on black, and the pixel stops pulsing once nothing is on its way */
#boot { position: fixed; left: calc(var(--play-w) / 2); top: calc(var(--play-top) + (var(--play-bottom) - var(--play-top)) * .45 + 28px); transform: translateX(-50%); width: min(460px, calc(100vw - 40px)); display: grid; justify-items: center; gap: 16px; text-align: center; font: 400 22px/1.15 'VT323', monospace; color: #fff; z-index: 4; }
#boot p { margin: 0; text-wrap: balance; }
#boot button { font: inherit; color: #fff; background: #000; border: 2px solid #fff; border-radius: 0; padding: 6px 18px 4px; cursor: pointer; }
#boot button:hover { background: #fff; color: #000; }
.boot-stuck #spark { animation: none; }
#made { font-size: 16px; font-weight: 700; color: #fff; opacity: .8; text-align: center; max-width: calc(var(--play-w) - 140px); text-wrap: balance; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.6); }
#made.bump { animation: popIn .4s cubic-bezier(.2,1.8,.4,1); }
.pop.full { color: var(--yellow); }
#coins { display: flex; align-items: center; gap: 8px; font-family: var(--num); font-weight: var(--num-w); font-size: 40px; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.f #coins { font-size: clamp(34px, 8vw, 50px); text-shadow: 0 3px 0 var(--ink); }
#coins .coin { width: 1em; height: 1em; }
#coins.bump { animation: bump .12s ease-out; }
#coins.land { animation: bump .3s cubic-bezier(.2,1.8,.4,1); }
@keyframes bump { 40% { transform: scale(1.12); } }
.in-fever #coins { color: var(--yellow); }

/* Fever under the counter: how much is left, and what it pays */
#fever { display: flex; align-items: center; gap: 8px; }
#fever .bar { width: 140px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.16); position: relative; overflow: hidden; }
#fever .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--fever-bar); }
#fever b { font-family: var(--num); font-weight: var(--num-w); font-size: 20px; line-height: 1; color: var(--fever-text); white-space: nowrap; }

#corner { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 64px; display: flex; gap: 8px; z-index: 6; }
.wide #corner { right: calc(var(--shop-w) + 64px); }
/* over every overlay, the title and the reveals included, so there is always a way to turn it off */
#muteBtn { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 59; }
.wide #muteBtn { right: calc(var(--shop-w) + 12px); }
body:has(#theEnd canvas) #muteBtn { z-index: 61; right: 12px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border: 2px solid var(--line); background: var(--panel); color: var(--text); }
.b .iconbtn { border: 0; border-radius: 14px; background: var(--tile); color: var(--white); box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 4px 0 var(--edge); }
.b .iconbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }

#side { position: fixed; top: calc(var(--play-top) + 6px); right: 12px; display: grid; gap: 8px; z-index: 5; }
.wide #side { right: calc(var(--shop-w) + 12px); }
.slotbox { position: relative; width: 64px; height: 78px; display: grid; justify-items: center; align-content: start; gap: 2px; padding-top: 5px; border: 2px solid var(--line); background: var(--panel); font-size: 14px; color: var(--muted); }
.slotbox img { width: 44px; height: 44px; image-rendering: pixelated; }
.slotbox span { white-space: nowrap; letter-spacing: -.02em; }
.g8 .slotbox img, .g9 .slotbox img { image-rendering: auto; }
.b .slotbox { border: 0; border-radius: 16px; background: var(--tile); color: var(--ink-soft); box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 4px 0 var(--edge); font-weight: 700; font-size: 12px; }

#side .tool { justify-content: center; padding: 0; width: 64px; }
#tags { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 5px; background: #fff; color: #16181f; font-family: var(--num); font-size: 15px; line-height: 1; white-space: nowrap; box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.tag .coin { width: 15px; height: 15px; }
.tag b { font-weight: 800; }
.tag.full { background: var(--yellow); }
#tools { position: fixed; top: calc(var(--play-bottom) + 6px); left: calc(var(--play-w) / 2); transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.tool { --charge: 1; position: relative; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px 0 6px; border: 2px solid var(--line); background: var(--panel); overflow: hidden; white-space: nowrap; }
.tool .it { width: 34px; height: 34px; }
.tool::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--charge) * 100%); background: var(--hi); }
.tool.on { outline: 3px solid var(--hi); }
.b .tool { border: 0; border-radius: 14px; background: var(--tile); color: var(--white); box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 4px 0 var(--edge); font-weight: 800; }
.b .tool::after { background: var(--acc); }

#hint { position: fixed; top: calc(var(--play-top) + (var(--play-bottom) - var(--play-top)) * .45); left: calc(var(--play-w) / 2); transform: translateX(-50%); font-size: 26px; color: #fff; pointer-events: none; animation: blink 1.1s steps(2) infinite; z-index: 4; white-space: nowrap; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- the one thing for sale, before there is a shop ---------- */
/* ---------- the dock: the next thing, and Better ----------
   The big button is the game talking, one thing at a time, from the first pixel to the end: a picture, a name, one
   line, and a bar that fills as you earn. Better, beside it and smaller, buys more of what you have. */
#dock { position: fixed; left: calc(var(--play-w) / 2); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 32px; width: max-content; max-width: calc(var(--play-w) - 24px); z-index: 6; } /* clear of the big card's ring */
/* 32px, not 20: the big button wears a 7px ring outside its box and breathes 5% when you can buy it, so at 20 its
   ring came within 2px of Better at every breath */
body:not(.docked) #dock, .ending #dock { display: none; }
body:has(#reveal:not([hidden])) #dock { pointer-events: none; }
body:has(#reveal:not([hidden])) #tools { visibility: hidden; } /* the lid row is not part of the reveal */
/* nor is anything else that was being said or shown under the jar: a how-to line, the news band and the jars' price
   tags all stood where the card's words go, and showed through them */
body:has(#reveal:not([hidden])) :is(#caption, #hint, #toasts, #tags) { visibility: hidden; } /* a press during a reveal skips the reveal, it never buys */
#dockSide { display: flex; align-items: center; gap: 10px; flex: none; } /* Better keeps its width; the big card gives way */
#dockSide:not(:has(> :not([hidden]))) { display: none; }
#catBtn { flex: none; width: 48px; height: 48px; }
#shopClose { position: absolute; top: 12px; right: 10px; z-index: 2; }
#shop:has(#shopClose:not([hidden])) #tabs { padding-right: 62px; }
#lone { position: relative; display: flex; align-items: center; gap: 14px; min-height: 74px; min-width: 0; max-width: min(540px, calc(var(--play-w) - 24px)); padding: 6px 10px; border: 2px solid var(--line); background: var(--panel); color: var(--text); font-size: 30px; text-align: left; white-space: nowrap; box-shadow: 0 0 0 5px var(--panel), 0 0 0 7px var(--line); }
#lone:has(small) { font-size: 24px; }
#lone .thumb { flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
#lone .thumb .ball { width: 44px; height: 44px; }
#lone .meta { display: grid; gap: 2px; min-width: 0; }
#lone .nm { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; }
#lone small { text-wrap: pretty; max-width: 290px; font-size: 15px; line-height: 1.2; color: var(--muted); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#lone .pr { position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 92px; height: 52px; padding: 0 14px; border: 2px solid var(--line); overflow: hidden; font-family: var(--num); }
#lone .pr .coin { width: 22px; height: 22px; }
#lone .pr > span { position: relative; display: flex; align-items: center; gap: 6px; }
#lone .pr .buy { font-weight: inherit; opacity: .5; }
#lone .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--muted); opacity: .6; transition: width .2s linear; }
#lone.can .pr { background: var(--hi); color: var(--hi-ink); }
#lone.can .pr .buy { opacity: 1; }
#lone.can .fill { display: none; }
#lone.can { animation: nudge 1s ease-in-out infinite; }
#lone.in { animation: loneIn .45s cubic-bezier(.2,1.6,.4,1); }
#lone.in.can { animation: loneIn .45s cubic-bezier(.2,1.6,.4,1), nudge 1s ease-in-out .45s infinite; }
#lone.waits { cursor: default; }
#lone.waits .thumb { opacity: .6; }
#lone.nope, #better.nope { animation: nope .25s; }
@keyframes loneIn { from { transform: translateY(30px) scale(.6); opacity: 0; } }
@keyframes nudge { 50% { transform: scale(1.05); } }
@keyframes nudgeWide { 50% { transform: scale(1.02); } }
#better { position: relative; flex: none; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; width: 212px; /* "30 frames a second" in Rubik is 146px of 148: at 192 it and "More bonus coins" lost their last letters */ min-height: 60px; padding: 6px 10px 12px 6px; border: 2px solid var(--line); background: var(--panel); color: var(--muted); font-size: 15px; line-height: 1.12; text-align: left; }
#better .thumb { width: 40px; height: 40px; display: grid; place-items: center; }
#better .nm { display: grid; gap: 2px; min-width: 0; }
#better .nm b { font-weight: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#better.can:not(.auto):not(.gift) .nm small::before { content: 'Buy'; font-weight: 800; margin-right: 2px; } /* the same word the big button uses when you can pay */
#better .nm small { display: flex; align-items: center; gap: 4px; font-size: 13px; opacity: .9; }
#better .nm small .coin { width: 13px; height: 13px; }
#better .bar { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
#better .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--muted); transition: width .2s linear; }
#better.can { color: var(--text); border-color: var(--hi); }
#better.can .fill { background: var(--hi); }
#better.in { animation: betterIn .3s cubic-bezier(.2,1.6,.4,1); }
@keyframes betterIn { from { transform: scale(.85); } }
#better.kept { outline: 3px solid var(--hi); outline-offset: 2px; } /* pressed while the jar was away: it buys when the next one lands */
/* The stickers on Better. Until Buttons is bought they are boxes like every other box (the look's own highlight,
   square, in the pixel font at a size it is drawn for); the rounded yellow pill belongs to the console. */
#better .free { position: absolute; top: -11px; right: 6px; padding: 1px 6px 2px; background: var(--hi); color: var(--hi-ink); font-family: var(--font); font-style: normal; font-size: 16px; font-weight: 900; line-height: 1; }
.f #better .free { padding: 3px 7px; font-size: 12px; }
.b #better .free { border-radius: 99px; background: var(--yellow); color: #17141d; }
#better.auto::before { content: 'Accountant'; position: absolute; top: -10px; left: 8px; padding: 1px 6px 2px; background: var(--line); color: var(--panel); font-family: var(--font); font-size: 16px; font-weight: 800; line-height: 1; }
.f #better.auto::before { padding: 2px 6px; font-size: 11px; }
.b #better.auto::before { border-radius: 99px; background: #f4f2f8; color: var(--ink); }
.pop.better { position: fixed; z-index: 40; font-size: 18px; color: var(--yellow); }
.b .pop.better small { border-radius: 8px; }
.pop.better small { display: block; max-width: 220px; margin: 4px auto 0; padding: 3px 8px; background: rgba(12,10,20,.78); font-size: 14px; line-height: 1.25; white-space: normal; text-align: center; color: #fff; text-shadow: none; }
.f .pop.better small { -webkit-text-stroke: 0; } /* a 5 px outline on 14 px letters is all outline: the backing does the job */
/* Buttons: the dock is two keys on the console, the big one green when you can buy */
.b #lone, .b #better { border: 0; border-radius: 20px; background: var(--tile); box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 var(--edge); }
.b #lone { padding: 8px 10px; }
.b #lone .thumb { width: 60px; height: 60px; border-radius: 14px; background: var(--slate); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.b #lone .thumb .it { width: 50px; height: 50px; }
.b #lone .nm { color: var(--white); }
.b #lone small { color: var(--ink-soft); font-weight: 500; font-size: 14px; }
.b #lone .pr { border: 0; border-radius: 14px; background: var(--cap-off); color: #d9d4e4; box-shadow: inset 0 2px 0 rgba(255,255,255,.1), 0 5px 0 var(--cap-off-edge); font-weight: 900; }
.b #lone .fill { background: var(--acc); opacity: .45; transition: width .35s linear; }
.b #lone.can .pr { background: var(--acc); color: #fff; box-shadow: inset 0 3px 0 rgba(255,255,255,.32), inset 0 -3px 0 rgba(0,0,0,.12), 0 5px 0 var(--acc-edge); -webkit-text-stroke: 4px rgba(23,20,29,.55); paint-order: stroke fill; }
.b #lone:active .pr { transform: translateY(3px); }
.b #better { color: var(--ink-soft); font-weight: 700; }
.b #better .thumb { border-radius: 10px; background: var(--slate); }
.b #better .bar { background: var(--cap-off); border-radius: 2px; }
.b #better .fill { background: var(--acc); opacity: .55; }
.b #better.can { color: var(--white); box-shadow: inset 0 0 0 2px var(--acc), 0 5px 0 var(--edge); }
.b #better.can .fill { opacity: 1; }
.b #better:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge); }

/* ---------- the shop ---------- */
#shop { position: fixed; right: 0; bottom: 0; width: var(--shop-w); height: var(--shop-h); background: var(--panel); border-left: 2px solid var(--line); z-index: 7; display: none; flex-direction: column; }
.has-shop #shop { display: flex; animation: unfold .35s ease-out; }
body:not(.wide) #shop { border-left: 0; border-top: 2px solid var(--line); }
@keyframes unfold { from { transform: translateY(30px); opacity: 0; } }
#tabs { display: flex; flex-wrap: nowrap; gap: 6px; padding: 16px 10px 6px; flex: none; }
.tab { position: relative; flex: 1 0 auto; height: 44px; padding: 0 10px; border: 2px solid var(--line); color: var(--muted); font-family: var(--num); font-size: 18px; white-space: nowrap; }
.tab.on { background: var(--line); color: var(--panel); }
.tab .badge { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; display: none; align-items: center; justify-content: center; background: var(--hi); color: var(--hi-ink); font-family: var(--font); font-size: 13px; font-weight: 900; border: 2px solid var(--panel); border-radius: 99px; }
.b .tab .badge { background: var(--acc); color: #fff; }
.tab .badge.show { display: flex; }
.tab .badge.pop { animation: popIn .4s cubic-bezier(.2,1.8,.4,1); }
@keyframes popIn { from { transform: scale(0); } }
#shopInner { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 28px; display: grid; gap: 8px; align-content: start; grid-auto-rows: max-content; }
/* On a phone the sheet stops in the gap between two rows, and a chevron says there are more. */
body:not(.wide) #shopInner { scroll-snap-type: y proximity; scroll-padding-top: 6px; }
body:not(.wide) #shopInner .card { scroll-snap-align: start; }
#shopMore { flex: 1 1 0; margin: 0 auto; width: 64px; min-height: 16px; display: grid; place-items: center; color: var(--muted); font-size: 18px; }
#shopMore[hidden], .wide #shopMore { display: none; }

.card { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px; text-align: left; border: 2px solid var(--line); color: var(--text); width: 100%; }
.card .thumb { flex: none; width: 50px; height: 50px; display: grid; place-items: center; position: relative; }
.card .thumb .ball { width: 40px; height: 40px; }
.card .thumb .ball.to { position: absolute; right: -8px; bottom: -6px; width: 32px; height: 32px; }
.card .thumb.q { font-family: var(--num); font-size: 28px; color: var(--muted); }
.card .meta { flex: 1; display: grid; min-width: 0; }
.card .name { font-family: var(--num); font-weight: var(--num-w); font-size: 1.15em; line-height: 1.1; }
.card small { font-size: .8em; line-height: 1.2; color: var(--muted); }
.card .price { position: relative; flex: none; min-width: 84px; height: 46px; padding: 0 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--line); font-family: var(--num); font-size: 18px; white-space: nowrap; background: var(--hi); color: var(--hi-ink); }
.card .price > span { position: relative; display: flex; align-items: center; gap: 5px; }
.card .price .coin { width: 20px; height: 20px; }
.card .price .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--muted); opacity: .55; display: none; }
.card.cant .price { background: transparent; color: var(--text); }
.f:not(.b) .card:not(.cant) .price { -webkit-text-stroke: 0; }
.card.cant .price .fill { display: block; }
.card.cant .thumb, .card.cant .name { opacity: .75; }
.card.mystery { opacity: .5; min-height: 54px; }
.card.tease { opacity: 1; }
.card.tease .thumb img { filter: brightness(0) invert(.36); }
.card.tease .price { background: transparent; color: var(--muted); box-shadow: none; -webkit-text-stroke: 0; }
.card.tease .price .coin { opacity: .6; }
.card.nope { animation: nope .25s; }
.card.bought { animation: cardBuy .35s cubic-bezier(.2,1.8,.4,1); }
@keyframes cardBuy { 0% { transform: scale(.94); } }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* Buttons: a graphite console. Cards are tiles, prices are green keycaps, the open tab is a white key. */
.b #shop { background: var(--slate); border: 0; }
.b #tabs { padding: 16px 10px 8px; }
.b .tab { border: 0; border-radius: 14px; background: var(--tile); color: var(--ink-soft); box-shadow: 0 3px 0 var(--edge); font-weight: 800; }
.b .tab.on { background: #f4f2f8; color: var(--ink); box-shadow: inset 0 -3px 0 rgba(23,20,29,.12), 0 4px 0 #8f899e; }
.b .tab .badge { border-color: var(--slate); }
.b .card { border: 0; border-radius: 18px; background: var(--tile); color: var(--white); box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 4px 0 var(--edge); padding: 8px; }
.b .card .thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--slate); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.b .card .thumb .it { width: 52px; height: 52px; }
.b .card[data-key] .thumb { background: var(--plate, #1d3463); }
.b .card .name { color: var(--white); font-size: 18px; }
.b .card small { color: var(--ink-soft); font-weight: 500; font-size: 13.5px; line-height: 1.22; }
.b .card .price { border: 0; border-radius: 14px; height: 50px; min-width: 92px; background: var(--acc); color: #fff; box-shadow: inset 0 3px 0 rgba(255,255,255,.32), inset 0 -3px 0 rgba(0,0,0,.12), 0 5px 0 var(--acc-edge); -webkit-text-stroke: 4px rgba(23,20,29,.55); paint-order: stroke fill; font-weight: 900; }
.b .card .price:active, .b .card:active .price { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.32), 0 2px 0 var(--acc-edge); }
.b .card.cant .price { background: var(--cap-off); color: #d9d4e4; box-shadow: inset 0 2px 0 rgba(255,255,255,.1), 0 5px 0 var(--cap-off-edge); -webkit-text-stroke: 0; }
.b .card.cant .price .fill { background: var(--acc); opacity: .45; transition: width .35s linear; }
.b .card.cant .thumb, .b .card.cant .name { opacity: 1; }
.b .card.mystery { background: transparent; box-shadow: inset 0 0 0 2px var(--tile); opacity: 1; }
.b .card.mystery .thumb { color: var(--ink-soft); }
.b .card.mystery small { color: var(--ink-soft); }

/* ---------- feedback ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.pop { position: absolute; font-family: var(--num); font-weight: var(--num-w); font-size: 26px; color: #fff; white-space: nowrap; transform: translate(-50%, -50%); will-change: transform, opacity; text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; }
.f .pop { text-shadow: 0 3px 0 var(--ink); }
.pop.sm { font-size: 19px; }
.f .pop.sm { -webkit-text-stroke-width: 4px; }
/* the outline is the picture's own black until there is a room behind it: in ink (#17141d) on a black screen a chain
   count stood in a dull grey-violet box */
:root { --pop-ink: #17141d; }
.g0, .g1, .g2, .g3, .g4 { --pop-ink: #000; }
.pop.lg { font-size: 34px; color: var(--yellow); -webkit-text-stroke: 7px var(--pop-ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--pop-ink); }
.pop.big { font-size: 46px; color: var(--yellow); -webkit-text-stroke: 9px var(--pop-ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--pop-ink); }
@media (max-width: 560px) { .pop.lg { font-size: 26px; } .pop.big { font-size: 30px; -webkit-text-stroke-width: 7px; } } /* a chain of twenty on a phone fits the screen, scale-up and all */
.pop.fever { color: var(--fever); }
.pop.chain { color: var(--chain); } /* no blue before Blue: the looks say so */
.pop.interest { position: fixed; z-index: 40; font-size: 20px; color: var(--yellow); }
.pop.spend { position: fixed; z-index: 40; font-size: 22px; color: var(--spend); }
.flycoin { position: fixed; left: 0; top: 0; z-index: 30; width: 26px; height: 26px; pointer-events: none; will-change: transform; }
.flycoin img { width: 100%; height: 100%; }
.bit { position: absolute; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; }
:is(.g0, .g1, .g2, .g3, .g4) .bit { border-radius: 0; } /* a pixel look's confetti is pixels */
.flyer { position: fixed; left: 0; top: 0; z-index: 9; width: calc(72px * var(--fat, 1)); height: calc(72px * var(--fat, 1)); padding: 4px; will-change: transform; }
.flyer .it { pointer-events: none; }
#toasts { position: fixed; top: calc(var(--play-top) + 6px); left: 12px; display: grid; justify-items: start; gap: 6px; pointer-events: none; z-index: 9; }
.toast { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 6px; background: var(--panel); color: var(--text); border: 2px solid var(--line); animation: toastIn .3s cubic-bezier(.2,1.6,.4,1); white-space: nowrap; }
.toast .it, .toast .ball { width: 34px; height: 34px; }
.b .toast { border: 0; border-radius: 99px; background: var(--tile); color: var(--white); font-weight: 700; box-shadow: 0 3px 0 var(--edge); }
.toast.out { opacity: 0; transition: opacity .12s; }
@keyframes toastIn { from { transform: translateY(-12px) scale(.8); } }

/* ---------- the reveal ---------- */
#reveal { position: fixed; inset: 0; z-index: 35; cursor: pointer; }
.rv-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .9); animation: fadeIn .25s ease-out; }
.b .rv-dim { background: rgba(17, 15, 22, .86); }
@keyframes fadeIn { from { opacity: 0; } }
.rv-item { position: absolute; will-change: transform; }
.rv-item .it { filter: drop-shadow(0 10px 0 rgba(0,0,0,.25)); }
.rv-rays { position: absolute; width: 130vmax; height: 130vmax; translate: -50% -50%; opacity: 0; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.1) 0 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 12%, transparent 62%); mask: radial-gradient(closest-side, #000 12%, transparent 62%); animation: rays 30s linear infinite; }
@keyframes rays { to { rotate: 360deg; } }
.rv-ring { position: absolute; width: 300px; height: 300px; border: 6px solid #fff; border-radius: 50%; opacity: 0; pointer-events: none; }
.rv-text { position: absolute; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; width: min(92vw, 460px); text-align: center; color: #fff; }
.rv-text b { font-family: var(--num); font-weight: var(--num-w); font-size: clamp(54px, 14vw, 80px); line-height: .9; }
.f .rv-text b { font-size: clamp(36px, 9vw, 58px); line-height: 1; }
.f .rv-text b { -webkit-text-stroke-width: 7px; text-shadow: 0 5px 0 var(--ink); }
.rv-text small { font-size: 24px; line-height: 1.25; max-width: 30ch; }
.f .rv-text small { font-size: 19px; font-weight: 900; text-shadow: 0 2px 0 var(--ink); }
.rv-bits { position: absolute; inset: 0; pointer-events: none; }

/* ---------- overlays ---------- */
#overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); }
#overlay > .box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; background: var(--panel); color: var(--text); border: 2px solid var(--line); }
.b #overlay > .box { border: 0; border-radius: 24px; background: var(--slate); color: var(--white); box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 6px 0 var(--edge); }
#overlay h1 { margin: 0 0 12px; font-family: var(--num); font-weight: var(--num-w); font-size: 34px; line-height: 1.05; }
#overlay h2 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 17px; color: var(--muted); }
.b #overlay h2 { color: var(--ink-soft); }
#overlay h2 .it { width: 28px; height: 28px; }
#overlay p { margin: 8px 0; }
#overlay .lead { font-size: 1.2em; }
#overlay .fans { display: flex; align-items: center; gap: 8px; font-family: var(--num); font-size: 30px; }
#overlay .fans .coin { width: 34px; height: 34px; }
#overlay .hero { width: 110px; height: 110px; margin: -6px auto 6px; }
/* a design meeting: one question, two or three answers, each saying what it does */
#overlay.decide .meet { display: block; margin-bottom: 4px; font-size: 14px; color: var(--text); opacity: .75; } /* --muted is purple on navy in the colour looks: the small print was the part that said what a pick does */
#overlay.decide .opts { display: grid; gap: 10px; margin-top: 14px; }
#overlay.decide .opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: rgba(255,255,255,.05); border: 2px solid var(--line); }
#overlay.decide .opt:hover, #overlay.decide .opt:focus-visible { background: rgba(255,255,255,.12); }
#overlay.decide .opt b { display: block; font-size: 18px; }
#overlay.decide .opt small { display: block; margin-top: 2px; color: var(--text); opacity: .8; }
#overlay.decide .opts .opt { transition: opacity .15s; }
#overlay.decide .opts:not(.armed) .opt { opacity: .45; cursor: default; } /* not taking a press yet: see E.answers */
#overlay.decide .swatch { flex: none; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.7); }
.b #overlay.decide .opt { border: 0; border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: 0 4px 0 var(--edge); }
.b #overlay.decide .opt:hover, .b #overlay.decide .opt:focus-visible { background: rgba(255,255,255,.16); }
.b #overlay.decide .swatch { border-radius: 50%; }
#overlay.title .named { margin: 4px 0 14px; text-align: center; font-family: var(--num); font-weight: var(--num-w); font-size: 30px; color: var(--yellow); }
#overlay .close { position: absolute; top: 12px; right: 12px; }
button.big { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; font-family: var(--num); font-size: 26px; background: var(--hi); color: var(--hi-ink); border: 2px solid var(--line); }
.b button.big { border: 0; border-radius: 18px; background: var(--acc); color: #fff; box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 5px 0 var(--acc-edge); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.b button.big:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--acc-edge); }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.stats dt { color: var(--muted); }
.b .stats dt { color: var(--ink-soft); }
.stats dd { margin: 0; text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; }
.finds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .9em; color: var(--muted); }
.finds li.got { color: inherit; }
.menurow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.menurow button:not(.big) { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 2px solid var(--line); }
.b .menurow button:not(.big) { border: 0; border-radius: 14px; background: var(--tile); color: var(--white); font-weight: 700; box-shadow: 0 3px 0 var(--edge); }

/* the title builds itself over the demo */
#overlay.title { background: rgba(17, 15, 22, .62); pointer-events: none; }
#overlay.title > .box { pointer-events: auto; width: min(640px, 94vw); max-height: none; overflow: visible; background: none !important; border: 0; box-shadow: none !important; padding: 0; text-align: center; }
#overlay.title .logo { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 120px); height: auto; margin: 0 auto 14px; pointer-events: none; }
#overlay.title .num { font-family: var(--num); font-weight: 900; font-size: 54px; color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; margin: -16px 0 10px; }
.titled #hud, .titled #shop, .titled #side, .titled #tools, .titled #corner, .titled #dock { opacity: 0; pointer-events: none; }

@media (max-width: 759px) {
  .f { --fs: 15px; }
  .slotbox { width: 54px; height: 68px; }
  .slotbox span { font-size: 11px; }
  #made { font-size: 14px; }
  .slotbox img { width: 36px; height: 36px; }
  .tool { flex-direction: column; justify-content: center; gap: 0; height: 54px; padding: 2px 8px 4px; }
  .tool .it { width: 30px; height: 30px; }
  .tool span { font-size: 11px; line-height: 1; }
  #tools { gap: 4px; width: max-content; max-width: calc(var(--play-w) - 8px); }
  .tool { flex: 0 1 auto; min-width: 0; padding-inline: 5px; }
  .tool span { white-space: nowrap; letter-spacing: -.02em; }
  #tools:has(.eye + .eye) #lidBtn { min-width: 0; width: auto; flex: 0 0 auto; padding-inline: 8px; font-size: 15px; }
  #tools:has(.eye + .eye) #lidBtn span { font-size: 15px; }
  .tool.eye .it { width: 26px; height: 26px; }
  #tabs { gap: 4px; padding: 14px 6px 6px; }
  .tab { flex: 1 1 0; min-width: 0; padding: 0 2px; font-size: 17px; }
  .f .tab { font-size: 13.5px; }
  .toast { height: 38px; font-size: 14px; padding: 0 10px 0 4px; }
  .toast .it, .toast .ball { width: 28px; height: 28px; }
  .card { min-height: 58px; }
  .b .card .thumb { width: 56px; height: 56px; }
  .b .card .thumb .it { width: 46px; height: 46px; }
  .card .price, .b .card .price { min-width: 80px; height: 44px; font-size: 16px; }
  #lone { font-size: 26px; min-height: 68px; }
  #lone:has(small) { font-size: 21px; }
}

/* reduced motion: the rays stand still */
@media (prefers-reduced-motion: reduce) { .rv-rays { animation: none; } }
/* phones: the site's How to play pill would sit on the shop's first card */
@media (max-width: 759px) { body:has(#shop:not([hidden])) #bf-about-panel:not([open]) { display: none !important; } }
/* The site's "How to play" corner tab is the way in to the rules until there is a Menu; then the Menu has it. With the
   catalogue beside the game the dock reaches that corner, and the tab sat on Better's corner (45x14 px at 1280x600). */
.menued #bf-about-panel:not([open]) { display: none !important; }

/* Balls tab: a bigger ball gets a bigger picture */
.card .thumb img.ball[style] { transform: scale(var(--sz)); }
/* levels on shop rows */
.card .name .lv { font-style: normal; font-size: .8em; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.b .card .name .lv { color: var(--ink-soft); }
.stopdot { position: fixed; left: -10px; top: -10px; z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: var(--stop); border: 3px solid #fff; pointer-events: none; animation: stopdot .66s steps(2) infinite; }
@keyframes stopdot { 50% { background: #5a1208; } }
.walker { position: fixed; left: 0; top: 0; z-index: 3; padding: 2px 8px; border-radius: 8px; background: #1b1b22; color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; will-change: transform; }
#order { padding: 6px 12px; border-radius: 10px; background: var(--ink); font-size: 16px; font-weight: 800; color: var(--white); white-space: nowrap; max-width: calc(var(--play-w) - 24px); overflow: hidden; text-overflow: ellipsis; }
#order img { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
#order.late { background: var(--stop); }
#order.bump { animation: orderbump .28s ease-out; }
@keyframes orderbump { 30% { transform: scale(1.14); } }
#heat { position: relative; width: min(260px, calc(var(--play-w) - 150px)); height: 22px; align-self: center; border-radius: 11px; background: var(--ink); overflow: hidden; pointer-events: none; }
#tools > #heat { position: absolute; right: calc(100% + 8px); top: 0; bottom: 0; margin: auto 0; } /* beside the lid, never pushing it: the button you press stays where it was */
#heat .fill { position: absolute; inset: 0 auto 0 0; background: var(--hot); }
#heat .red { position: absolute; top: 0; bottom: 0; right: 3%; background: var(--stop); z-index: 1; }
#heat .fill { z-index: 1; opacity: .92; }
#heat .red { z-index: 2; opacity: .8; } /* the window stays in sight while the bar runs through it */
#heat.hot .fill { background: #fff; }
#heat.go { animation: nudge .4s ease-in-out infinite; }
#heat.go span { font-size: 16px; }
#heat.go .fill { background: var(--yellow); }
#heat.dead .fill { background: var(--stop); }
#phoneBtn { position: fixed; left: calc(var(--play-w) / 2); top: calc(var(--play-top) + 8px); transform: translateX(-50%); width: 72px; height: 56px; justify-content: center; padding: 0; font-size: 26px; z-index: 6; animation: ring .5s ease-in-out infinite alternate; }
.b #phoneBtn { background: var(--go); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 4px 0 var(--go-edge); }
@keyframes ring { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-5px); } }
#boss { position: fixed; left: calc(var(--play-w) / 2); top: calc(var(--play-top) + 12px); transform: translateX(-50%); width: min(460px, calc(var(--play-w) - 32px)); padding: 14px 18px; text-align: left; font-size: 19px; line-height: 1.3; border: 2px solid var(--line); background: var(--panel); color: var(--text); z-index: 8; }
.b #boss { border: 0; border-radius: 16px; background: var(--tile); color: var(--white); box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 var(--edge); font-weight: 600; }
/* small phones: the counter leaves room for the corner buttons */
@media (max-width: 400px) { .f #coins { font-size: 30px; } #coins { font-size: 32px; } }
/* the top right is full on a phone, and the count needs the middle: under the logo instead */
@media (max-width: 560px) { #stepBtn, #doorBtn { position: fixed; left: 10px; top: calc(max(10px, env(safe-area-inset-top)) + 54px); } #stepBtn { top: calc(var(--play-bottom) + 6px); } #doorBtn { top: calc(max(10px, env(safe-area-inset-top)) + 54px); } }
/* Buttons can arrive before blue exists: the keys use the colors the screen has */
.g2.b { --acc: #e02a10; --acc-edge: #8a1400; }
.g3.b { --acc: #2fb800; --acc-edge: #1b6e00; }
/* reveal lines don't strand one word */
.rv-text small { text-wrap: balance; }
/* side shop: room above the tabs for their badges */
.wide #tabs { padding-top: 20px; }
.wide .tab { flex: 1 1 auto; min-width: 0; padding: 0 6px; font-size: 15px; }
.visiting #hud::after { content: attr(data-back); display: block; width: max-content; margin: 4px auto 0; padding: 4px 12px 5px; border-radius: 9px; font-size: 17px; font-weight: 800; color: #fff; text-align: center; background: rgba(23, 20, 29, .84); }
.lastTen #hud::after { background: #c81e12; }

/* the only words the game says about what is happening */
#caption { position: fixed; left: calc(var(--play-w) / 2); top: calc(var(--play-bottom) - 64px); transform: translateX(-50%); z-index: 6; pointer-events: none; font-family: var(--num); font-weight: var(--num-w); font-size: clamp(19px, 2.2vw, 24px); color: #fff; white-space: nowrap; }
#caption { -webkit-text-stroke: 5px #000; paint-order: stroke fill; } /* readable over the table and the glass in every era */
/* before colour the picture is white on black and so is the line: it stands on a black slip, so a falling pixel
   goes behind it instead of through the words. The line in the jar too: before a floor, "Tap anywhere" sat on the
   dotted fall under the pixels you had tapped. It blinks its letters, not its slip, or the dots show through. */
.g0:not(.f) :is(#caption, #hint), .g1:not(.f) :is(#caption, #hint) { padding: 2px 10px; background: #000; -webkit-text-stroke: 0; }
.g0:not(.f) #hint, .g1:not(.f) #hint { animation-name: blinkInk; }
@keyframes blinkInk { 50% { color: #333; } }
.f #caption { -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
#hint { -webkit-text-stroke: 5px #000; paint-order: stroke fill; }
body:not(.outdoors):has(#toasts > .toast) #caption { visibility: hidden; } /* one message at a time: the band goes first, the caption waits */
.slotbox b { position: absolute; right: 6px; bottom: 3px; font-family: var(--num); font-size: 18px; line-height: 1; color: var(--text); }
.b .slotbox b { color: var(--white); }

/* Fever: a warm glow in from the edges of the play area, fading in and out. Nothing else. */
#feverFx { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; background: radial-gradient(ellipse 72% 72% at 50% 52%, rgba(var(--glow), 0) 50%, rgba(var(--glow), calc(.22 * var(--glow-a))) 80%, rgba(var(--glow), calc(.42 * var(--glow-a))) 100%); }
.wide #feverFx { right: var(--shop-w); }
body:not(.wide) #feverFx { bottom: var(--shop-h); }
.in-fever #feverFx { opacity: 1; animation: feverBreath 3.4s ease-in-out infinite; }
@keyframes feverBreath { 50% { opacity: .62; } } /* opacity, not a filter: a filter on a full-screen layer repaints every frame and a Chromebook feels it */
@media (prefers-reduced-motion: reduce) { .in-fever #feverFx { animation: none; } }

/* the bar under Reroll refills */
.charge { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 3px; transform-origin: left; transform: scaleX(var(--charge, 1)); background: var(--text); display: none; }
.slotbox.dice .charge { display: block; }

/* the jar's one button: how full it is, then what it will do */
#lidBtn { min-width: 112px; justify-content: center; padding: 0 14px; overflow: hidden; font-family: var(--num); font-weight: var(--num-w); font-size: 20px; }
#lidBtn::after { display: none; }
#lidBtn .fill { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--muted); transition: width .2s linear; } /* how full, along the foot: a bar behind the words cut them in two */
#lidBtn.full .fill { top: 0; height: auto; }
#lidBtn span { position: relative; }
#lidBtn.full .fill { background: var(--hi); transition: none; }
#lidBtn.full { animation: nudge 1s ease-in-out infinite; } /* a full jar is the thing to do next */
#lidBtn.full span { color: var(--hi-ink); }
.b #lidBtn .fill { background: var(--cap-off); }
.b #lidBtn.full .fill { background: var(--go); }
@media (max-width: 759px) {
  #lidBtn span { font-size: 18px; }
}

/* outdoors */
.outdoors #side, .outdoors #tools, .outdoors #tags, .outdoors #hint, .walking #tags { display: none; }
#flash { position: fixed; inset: 0; display: grid; place-items: center; background: #d9f0ff; z-index: 40; pointer-events: none; }
/* The first time out the land is built behind the light, and on a slow machine that is seconds of plain pale blue that
   read as a crash (2026-11-10 audit). A wait that long gets a line; a quick flash is over before it would show. */
#flash[data-say]::after { content: attr(data-say); font-family: var(--font); font-size: 22px; font-weight: 700; color: #4d6b84; opacity: 0; animation: flashIn .35s ease-out .7s forwards, flashSay 1.4s ease-in-out 1.05s infinite alternate; }
@keyframes flashIn { to { opacity: 1; } }
@keyframes flashSay { from { opacity: 1; } to { opacity: .55; } }
#dash { position: fixed; left: calc(var(--play-w) - 12px); bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-100%); display: grid; justify-items: end; gap: 8px; z-index: 5; pointer-events: none; }
#minimap { width: min(168px, 34vw); height: min(168px, 34vw); display: block; }
#load { font-size: 15px; font-weight: 700; color: #fff; background: rgba(23, 20, 29, .84); padding: 3px 11px 4px; border-radius: 9px; white-space: nowrap; width: max-content; }
#load[hidden] { display: none; }
.card.point { outline: 3px solid #f5c21b; outline-offset: -3px; }
#shopBtn, #craneBtn, #footBtn, #boatBtn, #mechBtn, #spaceBtn, #fireBtn, #sealBtn { pointer-events: auto; width: 64px; height: 64px; padding: 6px; }
#craneBtn img, #footBtn img, #boatBtn img, #mechBtn img, #spaceBtn img, #fireBtn img, #sealBtn img { width: 100%; height: 100%; }
#hornBtn { pointer-events: auto; width: 64px; height: 64px; padding: 6px; }
#hornBtn img { width: 100%; height: 100%; }
#hornBtn.cool { opacity: .45; }
#undercut { font-size: 15px; font-weight: 700; color: #ff9d8c; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
#boss { cursor: pointer; }
#boss .replies { display: flex; gap: 8px; flex-wrap: wrap; }
#boss .replies:not(:empty) { margin-top: 10px; }
#boss .replies button { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; font-size: 16px; }
#boss .replies button b { font-weight: 800; white-space: nowrap; }
#boss .replies button i { margin-left: auto; padding-left: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
#boss .replies button .ball { width: 24px; height: 24px; flex: none; }
#boss .replies button { font: inherit; font-size: 16px; padding: 8px 12px; border: 2px solid currentColor; background: none; color: inherit; cursor: pointer; }
.b #boss .replies button { border: 0; border-radius: 10px; background: var(--go); color: var(--ink); box-shadow: 0 3px 0 var(--go-edge); font-weight: 700; }
#doorBtn[data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--acc); color: #fff; font-size: 13px; font-weight: 800; line-height: 20px; text-align: center; }
#theEnd { position: fixed; inset: 0; background: #000; z-index: 60; cursor: pointer; }
#theEnd > i { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; background: #fff; }
#theEnd canvas { width: 100%; height: 100%; display: block; }
#makeIt { position: absolute; display: block; padding: 0; overflow: hidden; color: transparent; font-size: 1px; cursor: pointer; border: 0; border-radius: 18px; background: #2b2834; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 #17141d; color: #fff; font: inherit; cursor: pointer; text-align: left; }
#makeIt > * { visibility: hidden; }
#makeIt i { font-style: normal; font-weight: 800; justify-self: end; padding: 7px 16px; border-radius: 12px; background: var(--go, #2fd35c); box-shadow: 0 3px 0 var(--go-edge, #159a50); color: #17141d; }
#caption { width: max-content; max-width: calc(var(--play-w) - 32px); white-space: normal; text-align: center; transform: translate(-50%, calc(-100% + 30px)); }
#dash .tool, #rides .tool { flex-direction: column; justify-content: center; gap: 0; height: auto; padding: 3px 6px 4px; }
#dash .tool span, #rides .tool span { font-size: 12px; line-height: 1; font-weight: 800; color: #fff; }
#shopInner .card { flex: none; }
#undercut.rate { color: #fff; opacity: .85; }
.b .card.pick:not(.cant) { box-shadow: inset 0 0 0 2px var(--acc), 0 4px 0 var(--edge); }
#phoneBtn { flex-direction: column; gap: 0; height: auto; padding: 4px 10px; }
#phoneBtn span { font-size: 13.5px; font-weight: 800; line-height: 1; }
.inspace .pop { color: #fff; }
#doorBtn { position: relative; }
#rides { display: contents; }
#shopBtn, #craneBtn, #boatBtn, #footBtn, #stepBtn { overflow: visible; }
#craneBtn, #boatBtn, #footBtn { position: relative; }
@media (min-width: 561px) { #stepBtn { position: relative; } } /* on a phone it is fixed in its own corner, which holds the badge just as well */
#shopBtn[data-n]:not([data-n=""])::before, #craneBtn[data-n]:not([data-n=""])::before, #boatBtn[data-n]:not([data-n=""])::before, #footBtn[data-n]:not([data-n=""])::before, #stepBtn[data-n]:not([data-n=""])::before { content: attr(data-n); position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--acc); color: #fff; font-size: 12px; line-height: 18px; font-weight: 800; text-align: center; }
#shopBtn::after { display: none; }
#shopBtn .ic { width: 30px; height: 30px; }
/* a phone: every ride in one strip beside the door, and none of them on the road */
@media (max-width: 560px) {
  #corner #doorBtn { position: fixed; left: 10px; top: calc(max(10px, env(safe-area-inset-top)) + 54px); }
  .outdoors #corner #doorBtn { top: calc(max(10px, env(safe-area-inset-top)) + 54px); }
  #dash { left: auto; right: 12px; transform: none; }
  #rides { position: fixed; left: 62px; right: 8px; top: calc(max(10px, env(safe-area-inset-top)) + 54px); bottom: auto; transform: none; display: flex; justify-content: flex-start; gap: 5px; overflow: visible; }
  #rides .tool { flex: 0 1 50px; min-width: 0; height: 46px; padding: 2px 1px 3px; }
  #rides .tool .it, #rides .tool .ic { width: 28px; height: 28px; }
  #rides .tool span { font-size: 10.5px; }
  .outdoors #toasts { top: calc(max(10px, env(safe-area-inset-top)) + 142px); }
  .sheet #minimap, .sheet #load, .sheet #hornBtn { display: none; }
  .outdoors #phoneBtn { top: calc(max(10px, env(safe-area-inset-top)) + 146px); }
}
@media (min-width: 561px) { .outdoors #phoneBtn { top: 146px; } }
#load.bump { animation: loadBump .3s ease-out; }
@keyframes loadBump { 30% { scale: 1.12; } }
.tab .badge, .b .tab .badge { min-width: 12px; width: 12px; height: 12px; padding: 0; font-size: 0; top: -3px; right: -3px; }
#shopBtn[data-n]:not([data-n=""])::before { font-size: 0; min-width: 12px; width: 12px; height: 12px; padding: 0; top: -3px; right: -3px; }
.finds li { color: #8a8a8a; }
.finds li.got { color: var(--text); }
@media (max-width: 560px) {
  #load { position: absolute; top: 114px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); font-size: 14px; }
}
/* on foot: the card, the case and the mark */
#talk { position: fixed; left: calc(var(--play-x, 0px) + var(--play-w) / 2); bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(540px, calc(var(--play-w) - 16px)); display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: #1c1d22; color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 #0c0d10; z-index: 9; cursor: pointer; user-select: none; -webkit-user-select: none; }
#talk[hidden], #case[hidden], #mark[hidden] { display: none; }
#talk .face { flex: none; width: 92px; height: 92px; border-radius: 12px; background: #5a8fd6; overflow: hidden; }
#talk .face[hidden] { display: none; }
#talk .face img { width: 100%; height: 100%; display: block; }
#talk .face.thing { background: #2b2e35; }
#talk .face.thing img { padding: 12px; box-sizing: border-box; object-fit: contain; }
#talk .words { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
#talk .words > b { font-size: 15px; font-weight: 800; color: #f5c21b; }
#talk .words > b[hidden], #talk .words > p[hidden] { display: none; }
#talk .words > p { margin: 0; font-size: 19px; line-height: 1.26; font-weight: 600; }
#talk .art:empty { display: none; }
#talk .art canvas { display: block; width: 100%; height: auto; border-radius: 6px; }
#talk .acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#talk .acts.many { display: grid; grid-template-columns: 1fr 1fr; }
#talk .acts button { font: inherit; font-size: 17px; font-weight: 800; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--go, #2fd35c); color: #17141d; box-shadow: 0 3px 0 var(--go-edge, #1a9a3e); cursor: pointer; }
#talk .acts button:disabled { opacity: .4; cursor: default; }
#talk .pad { background: #fff; color: #17141d; border-radius: 8px; padding: 8px 10px 4px; }
#talk .pad p { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
#talk .pad canvas { touch-action: none; cursor: crosshair; aspect-ratio: 8 / 3; }
#talk.wide { width: min(600px, calc(var(--play-w) - 16px)); }
#talk .art .page { max-height: calc(100vh - 170px); width: auto; max-width: 100%; margin: 0 auto; }
#case { position: fixed; left: calc(var(--play-x, 0px) + 12px); top: calc(var(--play-top, 0px) + 12px); display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 4px 8px; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(23, 20, 29, .84); color: #fff; z-index: 5; pointer-events: none; }
#case canvas { width: 80px; height: 32px; display: block; }
#case b { font-size: 15px; font-weight: 800; white-space: nowrap; }
#case .bag { grid-column: 1 / -1; display: flex; gap: 4px; }
#case .bag:empty { display: none; }
#case .bag img { width: 30px; height: 30px; }
#mark { position: fixed; left: 0; top: 0; padding: 3px 10px 4px; border-radius: 9px; background: #f5c21b; color: #17141d; font-size: 15px; font-weight: 800; white-space: nowrap; pointer-events: none; z-index: 4; box-shadow: 0 2px 0 #17141d; }
@media (max-width: 560px) {
  #case { top: calc(max(10px, env(safe-area-inset-top)) + 126px); left: 10px; }
  body:has(#case:not([hidden])) #phoneBtn { left: auto; right: 10px; transform: none; }
  #talk .face { width: 72px; height: 72px; }
  #talk .words > p { font-size: 17px; }
}

/* a fight: two bars and one button, and nothing else */
.bars { position: fixed; left: calc(var(--play-w) / 2); top: 100px; transform: translateX(-50%); width: min(380px, calc(var(--play-w) - 32px)); display: grid; gap: 5px; z-index: 5; pointer-events: none; }
.bars[hidden], .bars > [hidden], #leapBtn[hidden] { display: none; }
.bars > div { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 6px; padding: 3px 8px 3px 10px; border-radius: 9px; background: rgba(23, 20, 29, .84); }
.bars span { font-size: 13px; font-weight: 800; color: #fff; }
.bars i { --f: 1; position: relative; display: block; height: 10px; border-radius: 5px; background: #3a3540; overflow: hidden; }
.bars i::after { content: ''; position: absolute; inset: 0; width: calc(var(--f) * 100%); background: #2fd35c; border-radius: 5px; }
.bars .him i::after { background: #e8141c; }
.bars .rim i::after { background: #ffc98f; }
#leapBtn { position: fixed; left: calc(var(--play-w) / 2); bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: 112px; height: 58px; justify-content: center; padding: 0; z-index: 5; touch-action: none; }
#leapBtn span { font-size: 20px; font-weight: 900; color: #fff; }
#leapBtn.cool span { opacity: .55; }
.fighting .pop { will-change: auto; }
@media (max-width: 560px) { .bars { top: calc(max(10px, env(safe-area-inset-top)) + 132px); } }

/* space: Next where it always is, and the voice under the jar, off the drop point */
.outdoors.inspace #side { display: grid; }
.inspace #nextBox { pointer-events: none; }
.inspace #nextBox img { image-rendering: auto; }

/* the last thing the game does */
#receipt { position: fixed; left: 24px; top: 0; width: min(250px, calc(var(--play-w) * 0.3)); min-height: 40px; padding: 16px 16px 26px; box-sizing: border-box; display: grid; justify-items: start; gap: 5px; z-index: 7; pointer-events: none; font-weight: 800; font-size: 16px; line-height: 1.15; background: #fff; color: #17141d; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; } /* the till roll, coming down off the top of the screen */
@media (max-width: 560px) { #receipt { left: 12px; width: 190px; padding-top: 14px; font-size: 14px; } #receipt p:last-child { font-size: 16px !important; } #receipt p:nth-last-child(n+6) { display: none; } .ending .pop.big { font-size: 26px; } }
.lifting #minimap, .lifting #load, .lifting #caption, .lifting #talk { visibility: hidden; }
#receipt p { margin: 0; color: #6b6f78; }
#receipt p:last-child { color: #17141d; font-size: 19px; }
.sold-dash #dash, .sold-dash #corner, .sold-dash #side { display: none !important; }
.sold-number #hud { display: none; }
.sold-shop #shop, .sold-shop #shopBtn { visibility: hidden; }
#rewind { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #0b0b10; animation: rewIn .3s ease-out; pointer-events: none; }
#rewind img { width: min(46vw, 240px); height: auto; animation: rewSpin 1.15s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes rewIn { from { opacity: 0; } }
@keyframes rewSpin { from { transform: rotate(0) scale(1); } to { transform: rotate(-1440deg) scale(.08); } }
.ending #phoneBtn, .ending #order, .ending #boss, .ending #undercut { display: none; }
.ending #shop, .ending #dash, .ending #corner { pointer-events: none; }
.ending #dash * { pointer-events: none; }
@media (max-width: 700px) { .inspace .bars { left: 16px; transform: none; width: calc(100vw - 112px); } }
/* the road: where to go, what it paid, what just happened */
.mark { position: fixed; left: 0; top: 0; z-index: 4; display: grid; justify-items: center; gap: 0; pointer-events: none; will-change: transform; }
.mark[hidden] { display: none; }
.mark .ic { width: 38px; height: 38px; background: #ffc21a; filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)); }
.mark b { font-size: 14px; font-weight: 800; color: #fff; background: rgba(23, 20, 29, .84); padding: 0 8px 1px; border-radius: 8px; white-space: nowrap; }
.mark.foe .ic { background: #ff3b30; width: 34px; height: 34px; }
.mark.foe b { display: none; }
#paid { position: fixed; left: calc(var(--play-w) / 2); top: calc(var(--play-top) + (var(--play-bottom) - var(--play-top)) * .34); transform: translate(-50%, -50%); z-index: 7; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
#paid[hidden] { display: none; }
#paid b { font-family: var(--num); font-weight: var(--num-w); font-size: clamp(44px, 9vw, 66px); color: var(--yellow); line-height: 1; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
#paid span { font-size: 17px; font-weight: 800; color: #fff; background: rgba(23, 20, 29, .84); padding: 2px 12px 3px; border-radius: 9px; white-space: nowrap; }
#paid.in { animation: paidIn .32s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes paidIn { from { transform: translate(-50%, -50%) scale(.5); opacity: 0; } }
#load.up { animation: payUp .9s ease-out; }
#load.down { animation: payDown .9s ease-out; }
@keyframes payUp { 0% { transform: scale(1.5); color: #6dff9b; } }
@keyframes payDown { 0% { transform: scale(1.3); color: #ff3b30; } }
.steerpad { position: fixed; top: calc(var(--play-top) + (var(--play-bottom) - var(--play-top)) * .6); width: 62px; height: 62px; border-radius: 50%; background: rgba(23, 20, 29, .5); display: grid; place-items: center; z-index: 4; pointer-events: none; }
.steerpad[hidden] { display: none; }
.steerpad.left { left: 12px; }
.steerpad.right { right: 12px; }
.steerpad .ic { width: 38px; height: 38px; background: #fff; }
.steerpad.on { background: rgba(23, 20, 29, .9); }
body:not(.outdoors) .mark, body:not(.outdoors) .steerpad, body:not(.outdoors) #paid { display: none; }

/* ---------- one look ----------
   Everything laid over the game speaks the shop's language. Three surfaces: a card (tile, radius 18,
   hard bottom edge), a chip (ink, radius 10, 15 px) and a key (radius 14, hard bottom edge). One green
   key per surface: the thing to press now. Choices are graphite keys. Spacing is a multiple of 4. */
:root { --r-card: 18px; --r-cap: 14px; --r-chip: 10px; --chip: rgba(34, 25, 21, .88); --t-note: 13.5px; --t-chip: 15px; --t-body: 18px; --bar: rgba(255, 255, 255, .16);
  --card-edge: inset 0 2px 0 rgba(255,255,255,.06), 0 5px 0 var(--edge);
  --key-go: inset 0 3px 0 rgba(255,255,255,.32), inset 0 -3px 0 rgba(0,0,0,.12), 0 5px 0 var(--acc-edge);
  --key: inset 0 2px 0 rgba(255,255,255,.08), 0 4px 0 var(--edge); }
@media (max-width: 759px) { :root { --t-body: 17px; } }

/* the sheet on a phone: no leftover line from the pixel eras */
.b #shop, body.b:not(.wide) #shop { border: 0; box-shadow: 0 -4px 0 var(--edge); }
.b #shopMore { color: var(--ink-soft); }
#shopMore { position: relative; }
#shopMore::after { content: ''; position: absolute; inset: -14px 0 -6px; }

/* chips */
#order, #load, #paid span, .mark b, .visiting #hud::after, .walker, #undercut { min-height: 28px; padding: 4px 10px 5px; border-radius: var(--r-chip); background: var(--chip); color: #fff; font-size: var(--t-chip); font-weight: 800; line-height: 19px; text-shadow: none; }
#undercut { color: #ff9d8c; display: block; }
#undercut.rate { color: #fff; opacity: 1; }
#order { font-size: 16px; }
#order img { width: 20px; height: 20px; vertical-align: -4px; }
#order.late { background: var(--red); }
.lastTen #hud::after { background: #c81e12; }
.mark .ic { background: var(--yellow); }
#mark { padding: 4px 10px 5px; border-radius: var(--r-chip); background: var(--yellow); box-shadow: 0 3px 0 var(--ink); }
.card.point { outline-color: var(--yellow); }
.b .toast { border-radius: var(--r-cap); font-size: var(--t-chip); box-shadow: var(--key); }
#case { gap: 4px 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-cap); background: var(--chip); }
#case b { font-size: var(--t-chip); }

/* bars: one track, one fill */
.bars > div { min-height: 28px; padding: 4px 10px; border-radius: var(--r-chip); background: var(--chip); }
.bars span { font-size: var(--t-note); }
.bars i { height: 12px; border-radius: 6px; background: var(--bar); }
.bars i::after { background: var(--acc); border-radius: 6px; }
.bars .him i::after { background: var(--red); }
#heat { height: 20px; border-radius: var(--r-chip); background: var(--ink); box-shadow: 0 0 0 4px var(--ink); }
#fever .bar { height: 8px; border-radius: 4px; background: var(--bar); }
#fever b { font-size: var(--t-chip); }

/* cards */
.b #boss, #talk { border: 0; border-radius: var(--r-card); background: var(--tile); color: var(--white); box-shadow: var(--card-edge); }
#makeIt { border: 0; background: none; box-shadow: none; }
#makeIt:focus-visible { outline: 4px solid #2fd35c; outline-offset: 2px; }
.b #boss { padding: 14px 16px 16px; font-size: var(--t-body); line-height: 1.28; font-weight: 600; }
#talk { gap: 12px; padding: 12px; }
#talk .words > b { font-size: var(--t-chip); color: var(--ink-soft); }
#talk .words > p { font-size: var(--t-body); line-height: 1.28; }
#talk .face { border-radius: var(--r-cap); }
#talk .face.thing { background: var(--slate); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.b #overlay > .box { border-radius: var(--r-card); box-shadow: var(--card-edge); }
#makeIt { gap: 4px; padding: 16px; }
#makeIt b { font-size: 20px; font-weight: 800; }
#makeIt small { font-size: var(--t-note); color: var(--ink-soft); font-weight: 500; }

/* keys */
.b #boss .replies { display: grid; gap: 8px; }
.b #boss .replies:not(:empty) { margin-top: 12px; }
.b #boss .replies button, #talk .acts button { min-height: 46px; padding: 8px 14px; border: 0; border-radius: var(--r-cap); background: var(--tile-hi); color: var(--white); font-size: 16px; font-weight: 800; box-shadow: var(--key); }
.b #boss .replies button:only-child, #talk .acts button:only-child { background: var(--acc); color: #fff; box-shadow: var(--key-go); -webkit-text-stroke: 4px rgba(23,20,29,.55); paint-order: stroke fill; }
.b #boss .replies button:active, #talk .acts button:active, #makeIt:active i { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.b #boss .replies button i { color: var(--yellow); }
#makeIt i { min-height: 46px; display: grid; place-items: center; padding: 0 22px; border-radius: var(--r-cap); background: var(--acc); color: #fff; box-shadow: var(--key-go); -webkit-text-stroke: 4px rgba(23,20,29,.55); paint-order: stroke fill; font-size: 18px; }
.b button.big { box-shadow: var(--key-go); -webkit-text-stroke: 5px rgba(23,20,29,.55); paint-order: stroke fill; text-shadow: none; }
.b .menurow button:not(.big) { box-shadow: var(--key); }
.b #phoneBtn { background: var(--acc); color: #fff; }
.b #phoneBtn { box-shadow: var(--key-go); }
.b #lidBtn.full .fill { background: var(--acc); }
.b #lidBtn.full span { color: #fff; -webkit-text-stroke: 4px rgba(23,20,29,.55); paint-order: stroke fill; }
.b .tool.on { outline: 0; background: #f4f2f8; color: var(--ink); box-shadow: inset 0 -3px 0 rgba(23,20,29,.12), 0 4px 0 #8f899e; }
.b .tool.on span { color: var(--ink); }
.steerpad { width: 64px; height: 64px; border-radius: var(--r-card); }
.steerpad.on { background: var(--chip); }
#lidBtn span { display: flex; align-items: center; gap: 8px; }
#lidBtn em { display: flex; align-items: center; gap: 4px; font-style: normal; }
#lidBtn .coin { width: 20px; height: 20px; }
#lidBtn em.x { font-size: .8em; }
#shopInner .card.pick { order: -1; }
.f .card small { font-size: var(--t-note); }
.f .slotbox span, .b .slotbox { font-size: var(--t-note); }
.f #dash .tool span, .f #rides .tool span { font-size: var(--t-note); letter-spacing: -.01em; }
#minimap { border-radius: var(--r-card); background: var(--chip); }
/* the level sits on the plate, so a name is one line */
.card .thumb .lv { position: absolute; left: 0; bottom: 0; padding: 0 3px; background: var(--panel); color: var(--text); font-style: normal; font-size: 14px; line-height: 16px; }
.b .card .thumb .lv { left: 3px; bottom: 3px; padding: 1px 5px; border-radius: 6px; background: var(--ink); color: var(--ink-soft); font-size: var(--t-note); font-weight: 700; }
#shopInner { overflow-anchor: none; }
.b .card .price { min-width: 88px; }
.b .slotbox { border-radius: var(--r-cap); }
@media (max-width: 759px) {
  .b .card small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .b .card .price { min-width: 74px; }
  #tools { top: calc(var(--play-bottom) + 2px); }
  #lidBtn { height: 48px; }
  /* the top of the screen belongs to the logo and the sound */
  #overlay:not(.title) { place-items: start center; padding-top: 68px; }
  #overlay:not(.title) > .box { max-height: calc(100dvh - 84px); }
}

/* nothing shares a place: what the road puts on the glass, in order from the top */
#shopMore { width: 100%; }
.wide .tab { min-width: 44px; }
#dash .tool.on span, #rides .tool.on span { color: var(--ink); }
.b #leapBtn:not(.cool) { background: var(--acc); box-shadow: var(--key-go); }
.b #leapBtn:not(.cool) span { -webkit-text-stroke: 4px rgba(23,20,29,.55); paint-order: stroke fill; }
.b #leapBtn:not(.cool)::after { display: none; }
body:has(#paid:not([hidden])) .mark.goal { display: none; }
body:has(#talk:not([hidden])) #caption { visibility: hidden; }
.fighting #caption { top: calc(var(--play-bottom) - 118px); }
.sheet .steerpad { display: none; }
#receipt { top: 150px; }
@media (min-width: 561px) {
  .bars { top: 134px; }
}
@media (max-width: 560px) {
  :root { --top: max(10px, env(safe-area-inset-top)); }
  /* the count on the top line, the rides on the second, the chips under them */
  .outdoors #hud { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 6px; width: calc(100vw - 16px); }
  .outdoors #coins { flex: 0 0 100%; justify-content: center; height: 44px; margin-bottom: 56px; }
  .outdoors #fever { flex: 0 0 100%; justify-content: center; }
  .outdoors #load { position: static; transform: none; max-width: 100%; }
  .outdoors #undercut.rate { display: none; }
  .visiting.outdoors #hud::after { margin: 0; }
  .outdoors #toasts, #case { top: calc(var(--top) + 174px); }
  .bars { top: calc(var(--top) + 140px); }
  .outdoors #phoneBtn { top: calc(var(--top) + 140px); }
  .inspace #side { top: calc(var(--top) + 112px); }
  #receipt { top: calc(var(--top) + 124px); }
  /* the words go beside the map, not on it, and the map steps aside for a card */
  body.outdoors:not(.sheet):has(#minimap:not([hidden])) #caption { left: 12px; top: calc(var(--play-bottom) - 14px); transform: translateY(-100%); max-width: calc(var(--play-w) - min(168px, 34vw) - 36px); text-align: left; }
  body:has(#talk:not([hidden])) #minimap, body:has(#talk:not([hidden])) #hornBtn, body:has(#boss:not([hidden])) #minimap, body:has(#boss:not([hidden])) #hornBtn { visibility: hidden; }
  #rides.full .tool span { display: none; }
  #rides.full .tool .it, #rides.full .tool .ic { width: 34px; height: 34px; }
  /* what you do with a thumb is where a thumb is */
  #rides #fireBtn { position: fixed; left: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 56px); flex: none; width: 64px; height: 64px; }
  .sheet #rides #fireBtn, .sheet #sealBtn { display: none; }
}
/* rides have no charge to show, and green on something you can't buy yet is a lie */
#dash .tool::after { display: none; }
.b #boss .replies button:only-child { justify-content: center; }
.b .card.tease .price { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--tile-hi); -webkit-text-stroke: 0; }
@media (max-width: 560px) { #order:not([hidden]) ~ #undercut.rate { display: none; } }
@media (max-width: 560px) {
  #heat { width: calc(var(--play-w) / 2 - 104px); }
  #tools:has(#heat:not([hidden])) #lidBtn { min-width: 88px; }
  /* Step back stood at the left end of the lid row, where the heat bar runs: it covered "Dropper heat". The right end of
     that row is empty (the phone's Answer sits above it). */
  #stepBtn { left: auto; right: 10px; }
  /* the wallet stays between the logo and the Menu button (a six-digit wallet ran under the Menu), and the made line
     starts below the row of buttons, so it can be as wide as the screen and not three lines over the dropper */
  .f #coins { font-size: clamp(26px, 7.2vw, 50px); }
  #made { font-size: 14px; max-width: calc(var(--play-w) - 64px); margin-top: 10px; }
}
.b.wide #shop { box-shadow: -4px 0 0 var(--edge); }
#fever { padding: 4px 10px; border-radius: var(--r-chip); background: var(--chip); }
/* a chip is a box until Buttons, like the rest: Fever comes in the first two minutes now, and its chip was a
   rounded brown lozenge in a game of white lines on black */
body:not(.b) { --r-chip: 0px; --chip: rgba(0, 0, 0, .88); }
body:not(.b) #fever { border: 2px solid var(--line); padding: 3px 8px; }
body:not(.b) #fever .bar, body:not(.b) #fever .bar i { border-radius: 0; }
/* a mouse gets an answer too; hover never moves anything */
@media (hover: hover) {
  .b button.card:hover { background: var(--tile-hi); }
  .b .tab:not(.on):hover, .b .iconbtn:hover, .b .tool:not(.on):hover, .b .slotbox:hover { background: var(--tile-hi); color: var(--white); }
  .b #boss .replies button:not(:only-child):hover, #talk .acts button:not(:only-child):hover { background: #423d4e; }
}
button:focus-visible { outline: 2px solid var(--line); outline-offset: 4px; } /* a key lands somewhere you can see, in the look's own line: the browser's ring was blue in a one-bit game */
.b button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.b #boss .replies:has(> button:nth-child(2):last-child):not(:has(.ball)) { grid-template-columns: 1fr 1fr; }
.b #boss .replies:has(> button:nth-child(2):last-child):not(:has(.ball)) button { justify-content: center; text-align: center; }
#toasts { top: calc(var(--play-top) + 30px); }
#talk .art canvas, #talk .pad { border-radius: var(--r-chip); }
body:has(#boss:not([hidden])) #phoneBtn { display: none; }

/* ---------- off the picture ----------
   One line under the count, cards where the picture is not, one total the coins go to and come from. */
.waits { display: none !important; }
/* the band: what just happened, on its own backing, under the line and never in its place */
#toasts { left: calc(var(--play-w) / 2); top: calc(max(10px, env(safe-area-inset-top)) + 58px); transform: translateX(-50%); justify-items: center; width: max-content; max-width: calc(var(--play-w) - 24px); }
.lined #toasts { top: calc(max(10px, env(safe-area-inset-top)) + 96px); }
.toast { height: auto; min-height: 38px; box-sizing: border-box; max-width: 100%; white-space: normal; }
.toast span { padding: 4px 0; }
.toast.good span { color: var(--good); }
.toast.bad span { color: var(--bad); }
#heat span { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font-size: 12px; line-height: 1; font-weight: 800; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
#boss .who { display: block; margin-bottom: 2px; font-size: var(--t-chip); color: var(--ink-soft); }
#boss .who[hidden] { display: none; }
/* indoors the Answer button is down in the corner; outdoors it sits under the line, so the band goes under it */
.outdoors:has(#phoneBtn:not([hidden])) #toasts { top: calc(var(--play-top) + 70px); }
/* the Next chip keeps the right edge on a phone, so a long line wraps before it gets there */
@media (max-width: 560px) { body:not(.outdoors) #toasts, .inspace #toasts { max-width: calc(var(--play-w) - 156px); } }
/* one bit: the jar goes as high as it can, so the news sits on the table under it */
.g0:not(.f) #toasts, .g1:not(.f) #toasts { top: calc(var(--play-bottom) - 4px); transform: translate(-50%, -100%); }
/* ...and while the one big button is up, the news sits on top of it, never across it */
.g0:not(.f):has(#lone:not([hidden])) #toasts, .g1:not(.f):has(#lone:not([hidden])) #toasts { top: min(calc(var(--play-bottom) - 4px), calc(100dvh - 140px - env(safe-area-inset-bottom, 0px))); }
@media (min-width: 561px) { .bars { top: 104px; } }
@media (max-width: 560px) {
  body:not(.g0, .g1) #toasts, .f #toasts { top: calc(max(10px, env(safe-area-inset-top)) + 46px); }
  body.lined:not(.g0, .g1) #toasts, .f.lined #toasts { top: calc(max(10px, env(safe-area-inset-top)) + 84px); }
  .outdoors #toasts { top: calc(var(--top) + 142px); }
}

/* cards: ui.js rest() says where. Never over the jar, the truck or the horizon */
#boss { top: auto; left: var(--rest-left, 8px); bottom: calc(var(--rest-bottom, 8px) + env(safe-area-inset-bottom)); width: var(--rest-w, calc(100vw - 16px)); transform: none; animation: cardIn .2s ease-out; }
.b #boss { padding: 12px 14px 14px; }
@keyframes cardIn { from { transform: translateY(14px); opacity: 0; } }
#boss .replies button span { flex: 1; min-width: 0; text-wrap: balance; }
#phoneBtn { left: auto; right: 12px; top: calc(var(--play-bottom) - 58px); transform: none; }
.wide #phoneBtn { right: calc(var(--shop-w) + 12px); }
@keyframes ring { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@media (max-width: 759px) {
  /* a thumb on the road steers through the card; only its buttons are buttons */
  .outdoors #boss { pointer-events: none; }
  .outdoors #boss button { pointer-events: auto; }
  body:has(#boss:not([hidden])) .mark, body:has(#boss:not([hidden])) #caption { visibility: hidden; }
  .sheet #caption { visibility: hidden; }
}

/* on foot the case is a glance, so it waits at the foot of the glass, off the line */
#case, .outdoors #case { top: auto; left: calc(var(--play-x, 0px) + 12px); bottom: max(12px, env(safe-area-inset-bottom)); }
body:has(#talk:not([hidden])) #case, body:has(#boss:not([hidden])) #case, body:has(#caption:not([hidden])) #case { visibility: hidden; }
body:has(#talk:not([hidden])) #load { display: none; }

/* the shop: a hero, keys you can tell apart, a console in the scene's colours */
.b .tab.on, .b .tool.on { background: var(--orange); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(23,20,29,.14), 0 4px 0 var(--orange-edge); }
.b #shopInner .card.pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 10px; background: var(--tile-hi); }
.b .card.pick .thumb { width: 88px; height: 88px; }
.b .card.pick .thumb .it { width: 76px; height: 76px; }
.b .card.pick .name { font-size: 23px; line-height: 1.08; }
.b .card.pick .meta { gap: 4px; }
.b .card.pick .price { grid-column: 1 / -1; width: 100%; height: 60px; font-size: 30px; -webkit-text-stroke-width: 6px; }
.b .card.pick .price .coin { width: 34px; height: 34px; }
.b .card.pick .price > span { gap: 8px; }
/* can't: a well, not a key, with the picture dulled and what you have so far filling it */
.b .card.cant .price, .b .card.pick.cant .price { background: #2b2320; color: var(--ink-soft); box-shadow: inset 0 3px 0 rgba(0,0,0,.28); -webkit-text-stroke: 0; }
.b .card.cant .name { color: #d8cfc7; }
.b .card.cant .thumb { background: color-mix(in srgb, var(--plate, #1d3463) 42%, var(--slate)); }
.b .card.cant .thumb .it, .b .card.cant .thumb .ball { filter: saturate(.45) brightness(.82); }
/* pressed: the row and its key go down */
.b button.card:not(.cant):active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 2px 0 var(--edge); }
.b .card.cant:active .price { transform: none; box-shadow: inset 0 3px 0 rgba(0,0,0,.28); }
@media (max-width: 759px) {
  .b .card.pick .thumb { width: 76px; height: 76px; }
  .b .card.pick .thumb .it { width: 66px; height: 66px; }
  .b .card.pick .name { font-size: 20px; }
  .b .card.pick .price { height: 54px; font-size: 26px; }
  .b .card.pick .price .coin { width: 30px; height: 30px; }
}
/* a short phone keeps two rows in the sheet */
@media (max-width: 759px) and (max-height: 720px) {
  .b #shopInner .card.pick { grid-template-columns: auto minmax(0, 1fr) auto; }
  .b #shopInner .card.pick { padding: 6px 8px; gap: 8px; }
  .b .card.pick .thumb { width: 60px; height: 60px; }
  .b .card.pick .thumb .it { width: 52px; height: 52px; }
  .b .card.pick .name { font-size: 18px; }
  .b .card.pick .price { grid-column: auto; width: auto; min-width: 96px; height: 54px; font-size: 21px; -webkit-text-stroke-width: 5px; }
  .b .card.pick .price .coin { width: 24px; height: 24px; }
}
/* the frames row: the ball as it moves now, over the ball as it will */
.fps { display: grid; gap: 2px; width: 100%; padding: 0 3px; overflow: hidden; }
.card .thumb .fps .ball { width: 22px; height: 22px; animation: fpsRun 1.5s linear infinite alternate; }
.card .thumb .fps .ball:first-child { animation-timing-function: steps(4); }
.card.pick .thumb .fps .ball { width: 32px; height: 32px; }
@keyframes fpsRun { from { transform: translateX(0); } to { transform: translateX(calc(var(--run, 30px))); } }
.b .card.pick .thumb .fps { --run: 48px; }
@media (prefers-reduced-motion: reduce) { .card .thumb .fps .ball { animation: none; } }
/* what the line leaves out, in the Company tab */
#shopInner .facts { order: -2; scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 2px 6px; font-size: var(--t-note); color: var(--ink-soft); }
.facts b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts b:last-child { grid-column: 1 / -1; }

/* coins: one total, and they visibly arrive and leave */
.flycoin.out { z-index: 36; }
body:has(#reveal:not([hidden])) #hud { z-index: 36; }
#coins.bump .coin { animation: coinIn .22s ease-out; }
@keyframes coinIn { 35% { transform: scale(1.32); } }
#coins.bump b { animation: gain .22s ease-out; }
@keyframes gain { 35% { color: var(--yellow); } }
#coins.paying b { animation: paying .55s ease-out; }
@keyframes paying { 0%, 45% { color: #ffb3bb; } }
/* at sea the picture is the boat and the horizon: every card sits low and to the side of them */
body.atsea.outdoors #boss { top: auto; bottom: 16px; left: 16px; transform: none; width: min(300px, calc(var(--play-w) - 32px)); }
body.atsea:has(#boss:not([hidden])) .steerpad { display: none; }
body.atsea:has(#boss:not([hidden])) #caption { visibility: hidden; }
@media (max-width: 560px) {
  body.atsea.outdoors #boss { bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: calc(100vw - 24px); }
  body.atsea.outdoors.sheet #boss { bottom: var(--rest-bottom, 8px); }
  body.atsea:has(#boss:not([hidden])) #minimap { visibility: hidden; }
  body.atsea .steerpad { top: calc(var(--play-top) + (var(--play-bottom) - var(--play-top)) * .7); }
}

/* one owner for each space. A choice stands in the picture; a note takes the foot of the column and the list gives it up */
.wide.has-shop #shop { padding-bottom: var(--card-foot, 0px); }
.wide #boss.call { left: auto; right: calc(var(--shop-w, 0px) + 12px); bottom: 12px; width: min(420px, calc(var(--play-w) - 24px)); }
.wide.docked:not(.outdoors) #boss.call { bottom: var(--rest-bottom, 12px); } /* over the dock, never on it: a call that sat on the big button hid its price */
.wide.outdoors #boss.call { left: 12px; right: auto; bottom: 12px; } /* the corner is free: the site's How to play tab, which sat on the second customer, is in the Menu by the door */
.wide.outdoors:not(.menued) #boss.call { bottom: 60px; } /* and over it in a save without one */
.wide.outdoors #caption { max-width: calc(var(--play-w) - 2 * (min(168px, 34vw) + 24px)); }
/* a call card in the corner (up to 420 px) and the caption shared the foot of the picture: "It drives itself" lost its
   first words under "Two people want balls". With a call up the caption takes the space between the card and the map */
.wide.outdoors:has(#boss.call:not([hidden])) #caption { left: calc((min(420px, var(--play-w) - 24px) + 24px + var(--play-w) - min(168px, 34vw) - 24px) / 2); max-width: calc(var(--play-w) - min(420px, var(--play-w) - 24px) - min(168px, 34vw) - 72px); } /* centred, it stops short of the map on both sides: at play-w - 280 "Hold down to turn round" ran 40 px onto it */
#boss.call .replies { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) !important; }
#boss.call .replies button, .b #boss.call .replies button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pic who pay" "pic terms terms"; align-items: center; column-gap: 8px; row-gap: 1px; min-height: 58px; padding: 7px 12px; text-align: left !important; white-space: nowrap; }
#boss.call .replies button:not(:has(.ball)) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who pay" "terms terms"; }
#boss.call .replies .ball { grid-area: pic; width: 34px; height: 34px; }
#boss.call .replies b { grid-area: who; }
#boss.call .replies i { grid-area: pay; margin: 0; padding: 0; }
#boss.call .replies span { grid-area: terms; font-size: 14px; font-weight: 600; opacity: .85; text-wrap: nowrap; }
/* what points at a place outside is not left behind when you go in */
body:not(.outdoors) .mark, body:not(.outdoors) #mark { display: none; }
/* Start over is not next to anything */
.menufoot { margin-top: 30px; display: flex; justify-content: flex-end; }
.menufoot .wipe, .b .menufoot .wipe { min-height: 44px; padding: 0 6px; border: 0; background: none; box-shadow: none; color: rgba(255,255,255,.6); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.menufoot .wipe[data-armed] { color: #ff6b5e; }
/* a row that left, holding its place until the hand is off the list */
#shopInner .gap { pointer-events: none; }
/* a price that came down: the old one, struck, over the new */
.card .price s { display: block; font-size: .62em; line-height: 1; opacity: .8; font-weight: 700; -webkit-text-stroke: 0; text-decoration-thickness: 2px; }
.card .price > span:has(s) { display: grid; grid-template-columns: auto auto; justify-content: center; justify-items: center; column-gap: 4px; row-gap: 1px; }
.card .price > span:has(s) s { grid-column: 1 / -1; }
/* Retire: not a row. The foot of the shop, on every tab, quiet until you open it */
#retireBtn { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; margin: 0 10px 8px; padding: 0 10px 0 6px; border: 2px solid var(--line); color: var(--text); font-size: 15px; }
#retireBtn .it { flex: none; width: 30px; height: 30px; }
#retireBtn em { margin-left: auto; display: flex; align-items: center; gap: 4px; font-style: normal; font-family: var(--num); color: var(--muted); }
#retireBtn em .coin { width: 16px; height: 16px; }
.b #retireBtn { border: 0; border-radius: 12px; background: var(--slate); color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--tile); }
.b #retireBtn em { color: var(--ink-soft); }
.b #retireBtn:hover { box-shadow: inset 0 0 0 2px var(--tile-hi); }
#overlay.retiring p { margin: 0 0 14px; }
.stakes { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 18px; }
.stakes dt { font-weight: 800; color: var(--muted); }
.b .stakes dt { color: var(--ink-soft); }
.stakes dd { margin: 0; font-weight: 600; }
button.big.hold { position: relative; display: flex; width: 100%; overflow: hidden; justify-content: space-between; gap: 12px; padding: 0 18px; font-size: 20px; touch-action: none; -webkit-touch-callout: none; }
.b button.big.hold { background: var(--tile-hi); box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 var(--edge); text-shadow: none; }
button.big.hold .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); }
button.big.hold span, button.big.hold em { position: relative; font-style: normal; display: flex; align-items: center; gap: 6px; }
button.big.hold .coin { width: 22px; height: 22px; }
button.big.hold[disabled] { opacity: .55; cursor: default; }
.notyet { display: block; width: 100%; min-height: 44px; margin-top: 10px; font-size: 16px; color: var(--muted); }
.b .notyet { color: var(--ink-soft); }
/* a sale's receipt: solid, small, where the jar was */
.receipt { position: absolute; display: grid; gap: 2px; min-width: 150px; padding: 8px 12px; background: var(--panel); color: var(--text); border: 2px solid var(--line); font-size: 14px; line-height: 1.2; white-space: nowrap; animation: cardIn .18s ease-out; }
.receipt p { display: flex; justify-content: space-between; gap: 16px; margin: 0; }
.receipt b { font-family: var(--num); font-variant-numeric: tabular-nums; }
.receipt .keep { font-size: 17px; }
.b .receipt { border: 0; border-radius: 12px; background: var(--tile); color: var(--white); box-shadow: 0 4px 0 var(--edge); font-weight: 700; }
.b .receipt .cut { color: #ff9d8c; }
.b .receipt .keep b { color: var(--yellow); }
.tag span { font-size: 11px; font-weight: 700; margin-right: 2px; }
/* the jar is full: the crane has one button left, and it says what it pays */
.b #sealBtn { position: fixed; z-index: 6; left: calc(var(--play-x, 0px) + var(--play-w) / 2); right: auto; top: auto; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 8px); transform: translateX(-50%); flex: none; flex-direction: row; gap: 10px; justify-content: center; width: min(320px, calc(var(--play-w) - 32px)); height: 84px; padding: 8px 18px; background: var(--go); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 5px 0 var(--go-edge); }
.b #sealBtn:active { transform: translate(-50%, 3px); box-shadow: 0 2px 0 var(--go-edge); }
#sealBtn[hidden] { display: none; }
.b #sealBtn img, .b #sealBtn .it { width: 56px; height: 56px; flex: none; }
.b #sealBtn span { font-size: 18px; font-weight: 800; color: var(--ink); }
.b #sealBtn::after { display: none; }
#sealBtn b { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); white-space: nowrap; }
/* the frames you bought, side by side, instead of a picture of a book */
.rv-item .fps { display: grid; align-content: center; gap: 12%; width: 100%; height: 100%; --run: 150%; }
.rv-item .fps .ball { width: 38%; height: auto; animation: fpsRun 1.5s linear infinite alternate; }
.rv-item .fps .ball:first-child { animation-timing-function: steps(4); }
@media (prefers-reduced-motion: reduce) { .rv-item .fps .ball { animation: none; } }
/* the fight's bars say their names */
.bars.named > div { grid-template-columns: 84px 1fr; }
/* the line goes on past the edge of a phone, and says how far */
#moreJars { position: fixed; right: calc(100vw - var(--play-w)); flex-direction: row; top: calc(var(--play-bottom) - 136px); z-index: 4; pointer-events: auto; height: 44px; padding: 0 2px 0 10px; gap: 0; border-radius: 12px 0 0 12px; }
#moreJars[hidden] { display: none; }
#moreJars b { font-size: 16px; font-weight: 800; }
#moreJars .ic { width: 20px; height: 20px; }
#moreJars::after { display: none; }
body:has(#sealBtn:not([hidden])) #caption { visibility: hidden; }

/* at sea the boat is the picture: the rides you are not on step back, and stay readable and tappable */
.b.atsea #rides .tool:not(.on, #fireBtn, #shopBtn, :hover) { background: rgba(38, 34, 46, .6); box-shadow: none; }
.atsea #rides .tool:not(.on, #fireBtn, #shopBtn, :hover) .it, .atsea #rides .tool:not(.on, #fireBtn, #shopBtn, :hover) .ic { opacity: .72; }
.atsea #rides .tool:not(.on, #fireBtn, #shopBtn, :hover) span { color: rgba(255, 255, 255, .86); }
/* a longer name (Bonus coins) still leaves its price whole on a phone: the type gives way before the box does */
@media (max-width: 480px) {
  #lone { font-size: clamp(20px, 6.2vw, 30px); gap: 10px; } #lone .it { width: 44px; height: 44px; } #lone .pr { padding: 0 10px; min-width: 70px; }
  /* a phone stacks the dock: the big button, and Better as a slim bar under it, both the width of the game */
  #dock { flex-direction: column-reverse; align-items: stretch; gap: 18px; width: calc(var(--play-w) - 24px); } /* Better's Free and Accountant stickers stand 11 px proud of it, the big button's ring or key edge 5 to 7 below it: at 10 they sat on each other */
  #lone, #dockSide { width: 100%; max-width: none; }
  #lone.can, #lone.in.can { animation-name: nudgeWide; } #lone.in.can { animation-name: loneIn, nudgeWide; } /* 5% of a button the screen's width put its ring off both edges */
  #lone .meta { flex: 1; } /* the button is the screen's width: its price goes to the far end, not into the middle after a short name (A pixel, Free) */
  #better { flex: 1; width: auto; }
  #catBtn { width: 44px; height: 44px; }
  #lone:has(small) { font-size: 19px; } #lone small { font-size: 13px; max-width: none; }
  .b #lone .thumb { width: 52px; height: 52px; }
  #better { grid-template-columns: 34px 1fr; min-height: 48px; padding: 4px 10px 10px 6px; font-size: 16px; } /* read at arm's length on a bus */
  #better .nm small { font-size: 15px; } #better .nm small .coin { width: 15px; height: 15px; }
  #better .thumb { width: 34px; height: 34px; }
  #better .nm { grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
}
