/* Sized for a 1280x800 handheld held at arm's length: nothing under 18 px, big focus outline. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d10; color: #fff; font: 20px/1.3 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; user-select: none; }
/* a phone held upright: the page lies on its side, so it is landscape either way (control/touch.js) */
body.turned { position: fixed; top: 0; left: 100vw; width: 100vh; width: 100dvh; height: 100vw; transform: rotate(90deg); transform-origin: 0 0; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#loading { position: fixed; left: 50%; bottom: 8%; transform: translateX(-50%); background: #000c; padding: 10px 24px; border-radius: 30px; font-size: 22px; }
[hidden] { display: none !important; }
b { font-weight: 700; } i, em { font-style: normal; }
.hyp { display: inline-block; background: #ffb300; color: #000; font-size: 15px; font-weight: 700; padding: 1px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }

/* ---- menus ---- */
.menu { position: absolute; inset: 0; pointer-events: auto; display: flex; align-items: center; justify-content: flex-start; padding-left: calc(5vw / var(--ui, 1)); background: linear-gradient(90deg, #000d 0, #000a 46%, #0000 78%); }
.menu.ingame { background: #05070be6; backdrop-filter: blur(8px); justify-content: center; padding-left: 0; }
.menu .box { width: min(760px, calc(92vw / var(--ui, 1))); max-height: calc(94vh / var(--ui, 1)); display: flex; flex-direction: column; }
.menu h1 { margin: 0 0 4px; font-size: 44px; letter-spacing: .01em; }
.menu.title h1 { font-size: 84px; font-weight: 900; letter-spacing: .06em; font-style: italic; line-height: 1; margin-bottom: 10px; }
.menu .sub { margin: 0 0 14px; color: #c5ccd6; font-size: 20px; }
.menu .rows { overflow-y: auto; padding: 4px; scrollbar-width: none; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 10px 16px; margin: 5px 0; border-radius: 10px; background: #1b1f25ee; border: 3px solid transparent; cursor: pointer; font-size: 24px; min-height: 54px; }
.row .l { font-weight: 600; }
.row .h { grid-column: 1 / -1; color: #c9d1db; font-size: 18px; }
.row.button .h { grid-column: 2; text-align: right; }
/* a lab test's row: the clip of that test from our lab simulator at the left */
.row.clip { grid-template-columns: 170px 1fr; padding-left: 8px; }
.row.clip .c { grid-row: 1 / span 2; position: relative; width: 170px; height: 106px; border-radius: 7px; overflow: hidden; background: #0b0e13; }
.row.clip .c video { width: 100%; height: 100%; object-fit: cover; display: block; }
.row.clip .c i { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 6px; font-size: 12px; line-height: 1.4; font-weight: 600; font-style: normal; color: #fff; background: #000a; }
.row.clip .l { align-self: end; } .row.clip.button .h { grid-column: 2; text-align: left; align-self: start; }
.row.focus { background: #fff; color: #000; border-color: #ffb300; }
.row.focus .h { color: #333; }
.row.on .l::after { content: "  \2714"; }
.row .v { display: flex; align-items: center; gap: 10px; }
.row .v em { opacity: .6; padding: 0 6px; }
/* a slider: drag anywhere on it. The hit area is taller than the track you see. */
.row .bar { position: relative; width: 240px; height: 34px; display: inline-block; cursor: ew-resize; touch-action: none; }
.row .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 12px; background: #8886; border-radius: 6px; }
.row .bar span { position: absolute; left: 0; top: 11px; height: 12px; background: #ffb300; border-radius: 6px; }
.row .bar i { position: absolute; top: 3px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: #fff; border: 3px solid #ffb300; box-shadow: 0 1px 4px #000a; }
.row.focus .bar::before { background: #0003; } .row.focus .bar span { background: #000; } .row.focus .bar i { background: #000; border-color: #ffb300; }
.row .v em { cursor: pointer; font-size: 26px; padding: 4px 10px !important; border-radius: 8px; } .row .v em:hover { opacity: 1; background: #ffb30055; }
.row.locked .l { opacity: .55; } .menu .lock { color: #ffb300; font-weight: 700; }
.ladder div { display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; padding: 8px 12px; margin: 5px 0; background: #1b1f25ee; border-radius: 10px; font-size: 21px; }
.ladder div u { grid-row: span 2; text-decoration: none; font-size: 26px; align-self: center; } .ladder div b { display: block; } .ladder div i { color: #b9c2cd; font-size: 18px; }
.ladder .won { background: #2e7d3299; } .ladder .won i { color: #e2f3e3; } .ladder .next { outline: 3px solid #ffb300; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .badges div { padding: 8px 12px; background: #1b1f25ee; border-radius: 10px; font-size: 19px; } .badges .won { background: #b8860bcc; } .badges i { display: block; color: #cfd6df; font-size: 16px; }
.keyset { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 14px; background: #0b0d10d9; border-radius: 10px; padding: 10px 14px; font-size: 19px; align-items: center; }
.keyset > span:nth-child(odd) { white-space: nowrap; }
.keyset kbd, .chips kbd { font: inherit; font-weight: 700; background: #fff; color: #000; border-radius: 6px; padding: 0 8px; white-space: nowrap; }
.progress { height: 14px; background: #8886; border-radius: 7px; overflow: hidden; margin: 6px 0 10px; } .progress span { display: block; height: 100%; background: #ffb300; }
.row.slider .v b { min-width: 150px; text-align: right; }
.row.choice .v b { min-width: 190px; text-align: center; }
.menu.tight .row { padding: 5px 16px; margin: 3px 0; min-height: 42px; font-size: 21px; }
.menu .keys { margin: 10px 4px 0; color: #aab3be; font-size: 18px; }
.menu .keys b { background: #fff; color: #000; border-radius: 50%; padding: 1px 9px; }
.menu .keys kbd { font: inherit; font-weight: 700; background: #fff; color: #000; border-radius: 6px; padding: 0 8px; }
.row.choice .h, .row.slider .h { font-size: 17px; } .ladder small { font-weight: 400; color: #c5ccd6; font-size: 17px; }
.info { margin: 8px 0; padding: 4px 6px; font-size: 19px; }
.info > .note, .info > .recs, .info > h3 { background: #0b0d10d9; border-radius: 10px; padding: 8px 12px; }
.info .note { color: #cfd6df; margin: 8px 0; line-height: 1.45; }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats4 div { background: #1b1f25ee; border-radius: 10px; padding: 10px 12px; }
.stats4 b { display: block; font-size: 32px; } .stats4 i { color: #b9c2cd; font-size: 17px; }
.chal div { padding: 8px 12px; margin: 5px 0; background: #1b1f25ee; border-radius: 10px; }
.chal div b { display: block; font-size: 22px; } .chal div i { color: #b9c2cd; font-size: 18px; }
.chal .won { background: #2e7d3299; } .chal .won i { color: #e2f3e3; }
.info h3 { margin: 14px 0 6px; font-size: 22px; }
.recs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; } .recs div { display: flex; justify-content: space-between; border-bottom: 1px solid #fff3; padding: 3px 0; } .recs i { color: #c5ccd6; }

/* ---- HUD ---- */
.hud { position: absolute; inset: 0; text-shadow: 0 1px 3px #000, 0 0 8px #000a; font-size: 20px; }
.hud > div { position: absolute; }
.hud .tl, .hud .tr, .hud .bl, .hud .br { background: #0b0d10b8; border-radius: 14px; padding: 10px 16px; text-shadow: none; }
.hud .assist:not(:empty), .hud .warn:not(:empty), .hud .cam { background: #0b0d10cc; border-radius: 26px; padding: 4px 20px; text-shadow: none; margin: 4px auto; width: max-content; }
.hud .tr:has(.where:empty) { display: none; }
.hud .tl { left: 16px; top: 14px; } .hud .tr { right: 16px; top: 14px; text-align: right; }
/* the tap / click buttons down the right edge */
.hud .chips { right: 16px; top: 120px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; pointer-events: auto; }
.chips button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 92px; min-height: 44px; padding: 4px 8px 5px; font: inherit; font-size: 13px; line-height: 1.1; white-space: nowrap; color: #fff; background: #0b0d10cc; border: 2px solid #ffffff40; border-radius: 10px; cursor: pointer; text-shadow: none; touch-action: manipulation; }
.chips button:hover { border-color: #ffb300; } .chips button.hit { background: #ffb300; color: #000; } .chips button.on { border-color: #ffb300; background: #4a3600e6; }
.chips kbd { font-size: 12px; padding: 0 6px; border-radius: 5px; }
/* with a controller (the Steam Deck): gas top middle, a smaller speed box, and the controller picture bottom right in
   place of the column and the hints */
.hud.pad .chips, .hud.pad .br { display: none; }
.hud.pad .tl { padding: 7px 12px; } .hud.pad .big { margin-right: 16px; } .hud.pad .big:nth-child(2) { margin-right: 0; } .hud.pad .big b { font-size: 28px; } .hud.pad .big i { font-size: 13px; } .hud.pad .sm { font-size: 15px; margin-top: 6px; max-width: 300px; }
.hud.pad .bl { padding: 26px 10px 8px !important; } .hud.pad .truckmap { width: 48px; height: 72px; } .hud.pad .truckmap span { width: 14px; height: 14px; } .hud.pad .truckmap em { font-size: 13px; top: -20px; }
.hud .deckmap:empty { display: none; }
.hud .deckmap { right: 16px; bottom: 14px; width: 444px; height: 166px; background: #0b0d10b8; border-radius: 26px 26px 40px 40px; text-shadow: none; font-size: 11px; line-height: 1; pointer-events: auto; }
.deckmap u, .deckmap span { position: absolute; white-space: nowrap; text-decoration: none; }
.deckmap u { transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; background: #fff; color: #000; font-weight: 800; font-size: 10px; box-sizing: border-box; }
.deckmap .b-rd { width: 17px; height: 17px; border-radius: 50%; } .deckmap .b-sq { width: 17px; height: 17px; border-radius: 4px; font-size: 8px; } .deckmap .b-sh { width: 30px; height: 15px; border-radius: 5px; font-size: 9px; }
.deckmap .b-st { width: 30px; height: 30px; border-radius: 50%; background: #0000; border: 3px solid #fff; box-shadow: inset 0 0 0 5px #0b0d10, inset 0 0 0 20px #fff8; }
.deckmap u.on { background: #ffb300; } .deckmap span.on { color: #ffb300; font-weight: 700; } .deckmap [data-act] { cursor: pointer; }
.deckmap span { color: #e8edf2; } .deckmap .s-l { transform: translate(calc(-100% - 12px), -50%); } .deckmap .s-r { transform: translate(12px, -50%); }
.deckmap .s-t { transform: translate(-50%, calc(-100% - 11px)); } .deckmap .s-b { transform: translate(-50%, 12px); }
.deckmap .b-sh + .s-l { transform: translate(calc(-100% - 19px), -50%); } .deckmap .b-sh + .s-r { transform: translate(19px, -50%); }
/* the controls overlay (the column above and the hints) stays away until the Controls button pulls it up */
.hud:not(.ctl) .chips, .hud:not(.ctl) .br { display: none; }
.hud .ctlbtn { position: absolute; right: 16px; top: 78px; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 2px 8px 2px 12px; font: inherit; font-size: 16px; color: #fff; background: #0b0d10b8; border: 2px solid #ffffff30; border-radius: 10px; cursor: pointer; text-shadow: none; pointer-events: auto; touch-action: manipulation; }
.hud .ctlbtn kbd { font: inherit; font-size: 14px; font-weight: 700; background: #fff; color: #000; border-radius: 6px; padding: 0 7px; white-space: nowrap; }
.hud .ctlbtn:hover, .hud.ctl .ctlbtn { border-color: #ffb300; } .hud .ctlbtn.hit { background: #ffb300; color: #000; }
body.touchui .hud .ctlbtn { display: none; }
.hud .flash { inset: 0; background: #fff; opacity: 0; pointer-events: none; } .hud .flash.go { animation: flash88 1.1s ease-out; }
.hud .count { left: 0; right: 0; top: 24%; text-align: center; font-size: 190px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 0 6px #000, 0 6px 40px #000c; pointer-events: none; font-variant-numeric: tabular-nums; }
.hud .count.pop { animation: countpop .9s ease-out; } .hud .count.go { color: #ffb300; }
@keyframes countpop { 0% { transform: scale(1.7); opacity: .2; } 18% { transform: scale(1); opacity: 1; } 100% { transform: scale(.92); opacity: .85; } }
body.touchui .hud .count { font-size: 120px; }
@keyframes flash88 { 0% { opacity: 1; } 12% { opacity: .15; } 22% { opacity: .9; } 100% { opacity: 0; } }
.hud .big b.mph88 { color: #ffb300; text-shadow: 0 0 18px #ff6a00, 0 0 4px #ff6a00; font-style: italic; }
.toasts .unlock { background: linear-gradient(90deg, #ffb300, #ffe27a, #ffb300); font-size: 21px; padding: 7px 22px; letter-spacing: .03em; box-shadow: 0 0 30px #ffb300aa; animation: pop .5s; }
.toasts .marty { background: #ff5a1f; color: #fff; font-size: 22px; font-style: italic; padding: 7px 22px; box-shadow: 0 0 40px #ff5a1f; animation: pop .5s; }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.hud .bl { left: 16px; bottom: 14px; padding-top: 30px !important; display: flex; align-items: flex-end; gap: 22px; } .hud .br { right: 16px; bottom: 14px; max-width: calc(100vw / var(--ui, 1) - 440px); text-align: right; font-size: 14px; color: #e8edf2; line-height: 1.5; padding: 6px 12px !important; }
.hud .br b { background: #fff; color: #000; border-radius: 6px; padding: 0 6px; }
/* messages: bottom middle, out of the way of the truck. What is on now (assists, warnings) sits lowest, popups stack above it */
.hud .msgs { left: 130px; right: 130px; bottom: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hud.ctl:not(.pad) .msgs { bottom: 76px; } .hud.pad.ctl .msgs { right: 476px; }   /* the key hints / the controller picture are down there */
.hud .big { display: inline-block; margin-right: 26px; } .hud .big b { display: block; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; } .hud .big i { font-size: 18px; color: #dde3ea; }
.hud .sm { margin-top: 10px; font-size: 20px; max-width: 440px; line-height: 1.4; }
.hud .where { font-size: 22px; font-weight: 600; } .hud .tag { color: #ffb300; font-weight: 700; font-size: 18px; margin-top: 2px; } .hud .fps { font-size: 18px; margin-top: 2px; font-variant-numeric: tabular-nums; }
/* gas: a bar up the left edge, so the bottom middle is free for the messages */
.hud .gas { left: 16px; top: 50%; transform: translateY(-50%); width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: #0b0d10b8; border-radius: 14px; padding: 8px 4px; text-shadow: none; white-space: nowrap; }
.hud .gas em { font-size: 13px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; } .hud .gas b { font-size: 19px; } .hud .gas i { font-size: 11px; }
.gbar { width: 18px; height: 190px; border: 2px solid #fff; border-radius: 9px; overflow: hidden; background: #0008; display: flex; flex-direction: column; justify-content: flex-end; } .gbar span { display: block; height: 100%; background: #fff; width: 100%; } .gbar .mid { background: #ffb300; } .gbar .low { background: #ff3d2e; }
/* the truck seen from above, nose up, a jet at each corner */
.truckmap { position: relative; width: 64px; height: 96px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 96%22%3E%3Cg fill=%22%23000%22 stroke=%22%23fff%22 stroke-width=%221.5%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%2215%22 width=%227%22 height=%2215%22 rx=%222%22/%3E%3Crect x=%2255%22 y=%2215%22 width=%227%22 height=%2215%22 rx=%222%22/%3E%3Crect x=%222%22 y=%2266%22 width=%227%22 height=%2215%22 rx=%222%22/%3E%3Crect x=%2255%22 y=%2266%22 width=%227%22 height=%2215%22 rx=%222%22/%3E%3Cpath fill=%22%23000a%22 d=%22M15 3h34l7 9 1 76-4 5H11l-4-5 1-76z%22/%3E%3Cpath fill=%22%23fff3%22 d=%22M14 27h36l-4 12H18z%22/%3E%3Cpath fill=%22none%22 d=%22M18 39l1 16h26l1-16M14 59h36v29H14z%22/%3E%3Cpath d=%22M14 8h36%22 fill=%22none%22/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.truckmap span { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; }
.truckmap span.on { background: #ffb300; border-color: #ffb300; box-shadow: 0 0 14px 4px #ffb300; }
.truckmap span { background: #0b0d10; } .truckmap [data-v="0"] { left: 6%; top: 3%; } .truckmap [data-v="1"] { right: 6%; top: 3%; } .truckmap [data-v="2"] { left: 6%; bottom: 1%; } .truckmap [data-v="3"] { right: 6%; bottom: 1%; }
.truckmap em { position: absolute; top: -24px; left: 0; right: 0; text-align: center; font-size: 16px; }
.hud .assist { font-size: 19px; font-weight: 800; letter-spacing: .05em; } .hud .warn { font-size: 21px; font-weight: 900; color: #ff3d2e; letter-spacing: .05em; }
.hud .toasts { max-width: 100%; } .hud .tips { left: 432px; right: 432px; top: 56px; max-width: none; text-align: center; } .hud.hasgoal .tips { top: 136px; } .toasts div { background: #000c; border-radius: 20px; padding: 4px 16px; margin: 4px auto; font-size: 16px; width: max-content; max-width: 100%; box-sizing: border-box; text-shadow: none; } .toasts .big { background: #ffb300; color: #000; font-weight: 800; font-size: 18px; }
.hud .cam { left: 50%; top: 18px; transform: translateX(-50%); font-size: 22px; font-weight: 600; opacity: 0; } .hud .cam.fade { animation: camfade 2.2s; }
@keyframes camfade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* the game's own line (course clock, ball score, a countdown) */
/* the middle column: between the speed panel (left) and the buttons (right), so nothing lands on either */
.hud .goal:not(:empty) { left: 500px; right: 290px; top: 14px; text-align: center; background: #0b0d10cc; border-radius: 20px; padding: 6px 18px; text-shadow: none; font-size: 18px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.hud .goal.next { font-size: 15px; line-height: 1.25; border-radius: 14px; padding: 4px 14px; } .hud .goal.next b { font-size: 16px; color: #ffb300; }
.hud .goal b { font-size: 21px; } .hud.hasgoal .cam { top: 96px; }
#ui:has(.menu:not([hidden])) .hud { visibility: hidden; }         /* a menu is up: the flying read-outs wait behind it */
.eggs div { padding: 6px 12px; margin: 5px 0; background: #1b1f25ee; border-radius: 10px; font-size: 20px; } .eggs .won { background: #2e7d3299; } .eggs i { color: #b9c2cd; font-size: 18px; margin-left: 8px; }

/* short screens (the Steam Deck is 1280 x 800): the whole title menu fits without scrolling */
body.compact {
  .row { padding: 3px 16px; margin: 3px 0; min-height: 38px; font-size: 20px; border-width: 2px; }
  .row .h { font-size: 16px; }
  .menu.title h1 { font-size: 52px; margin-bottom: 4px; }
  .menu h1 { font-size: 36px; }
  .menu .sub { margin-bottom: 8px; font-size: 18px; }
}

/* ---- a phone (control/touch.js): thumbs at the bottom corners, switches along the top. Laid out 720 px tall. ---- */
body.touchui { touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.touchpad { position: absolute; inset: 0; display: none; } body.touchui .touchpad { display: block; }
body.touchui .hud .chips, body.touchui .hud .br, body.touchui .hud .tr .where, body.touchui .hud .tr .tag { display: none; }
body.touchui .hud .tr { right: 70px; top: 76px; background: none; padding: 0 4px; }   /* just the frame rate, when it is switched on */
body.touchui .hud .tl { left: 70px; top: 18px; width: 340px; white-space: nowrap; } body.touchui .hud .tl .sm { white-space: normal; font-size: 18px; }
body.touchui .hud .big { margin-right: 18px; } body.touchui .hud .big:nth-child(2) { margin-right: 0; } body.touchui .hud .big b { font-size: 36px; }
body.touchui .hud .gas { left: 352px; top: auto; bottom: 70px; transform: none; } body.touchui .gbar { height: 150px; }
body.touchui .hud .bl { left: 426px; bottom: 70px; }
body.touchui .hud .msgs { left: 536px; right: 536px; bottom: 16px !important; }
body.touchui .hud .goal:not(:empty) { left: 452px; right: 452px; top: 82px; }
body.touchui .hud .cam, body.touchui .hud.hasgoal .cam { top: 170px; } body.touchui .hud .tips, body.touchui .hud.hasgoal .tips { left: 452px; right: 452px; top: 82px; } body.touchui .hud.hasgoal .tips { top: 214px; }
.tb { position: absolute; pointer-events: auto; touch-action: none; font: inherit; font-weight: 700; color: #fff; background: #282a30db; border: 2px solid #ffffff99; border-radius: 10px; padding: 0; line-height: 1.05; text-align: center; -webkit-tap-highlight-color: transparent; }
.tb.on { border-color: #ffb300; background: #4a3600e6; } .tb.down { background: #ffb300; color: #000; border-color: #fff; }
.tb.tap { height: 52px; font-size: 18px; top: 18px; }
.tb.t-camera { left: calc(50% - 212px); width: 120px; } .tb.t-mode { left: calc(50% - 82px); width: 150px; }
.tb.t-feedback { left: calc(50% + 78px); width: 170px; border-color: #f66; color: #fbb; } .tb.t-feedback.on { background: #a00; color: #fff; }
.tb.t-refill { right: 274px; width: 100px; } .tb.t-reset { right: 164px; width: 100px; } .tb.t-pause { right: 70px; width: 84px; }
.tb.t-hover, .tb.t-autoland { top: auto; bottom: 356px; height: 64px; width: 120px; } .tb.t-hover { left: 90px; } .tb.t-autoland { left: 222px; }
.tb.hold, .tb.t-kickflip, .tb.t-gainer { border-radius: 50%; border-width: 3px; border-color: #ffffffd9; background: #282a30b8; top: auto; }
/* the jet pad: 3 x 3, JUMP in the middle, arrows = a pair of jets, corners = three */
.tb.t-jump, .tb.t-up, .tb.t-down, .tb.t-left, .tb.t-right, .tb.t-ul, .tb.t-ur, .tb.t-dl, .tb.t-dr { width: 92px; height: 92px; font-size: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tb.t-jump, .tb.t-up, .tb.t-down, .tb.t-left, .tb.t-right { border-radius: 12px; background: #282a30e0; }
.tb.t-jump { font-size: 22px; background: #ff8c00c8; } .tb.t-jump small { font-size: 12px; font-weight: 600; }
.tb.t-ul, .tb.t-up, .tb.t-ur { bottom: 274px; } .tb.t-left, .tb.t-jump, .tb.t-right { bottom: 176px; } .tb.t-dl, .tb.t-down, .tb.t-dr { bottom: 78px; }
.tb.t-ul, .tb.t-left, .tb.t-dl { right: 268px; } .tb.t-up, .tb.t-jump, .tb.t-down { right: 170px; } .tb.t-ur, .tb.t-right, .tb.t-dr { right: 72px; }
.tb u { display: grid; grid-template-columns: 9px 9px; gap: 3px; text-decoration: none; } .tb u s { width: 9px; height: 9px; border-radius: 50%; background: #ffffff38; } .tb u s.f { background: #ffb300; } .tb.down u s.f { background: #000; }
.tb.t-kickflip { right: 392px; bottom: 80px; width: 126px; height: 126px; font-size: 19px; }
.tb.hold.on { border-color: #ffb300; box-shadow: 0 0 14px 4px #ffb300; } .tb.hold.down { background: #ffb300; color: #000; }
.touchpad .jetbox { position: absolute; right: 62px; bottom: 68px; width: 308px; height: 308px; border-radius: 14px; background: #282a3066; }
.touchpad .stick { position: absolute; left: 90px; bottom: 70px; width: 250px; height: 250px; border-radius: 50%; border: 3px solid #ffffffd9; background: #282a3066; pointer-events: auto; touch-action: none; display: flex; align-items: center; justify-content: center; }
.touchpad .stick i { width: 110px; height: 110px; border-radius: 50%; background: #282a30d0; border: 3px solid #fff; pointer-events: none; }
#ui:has(.menu:not([hidden])) .touchpad { visibility: hidden; }
.backbtn { pointer-events: auto; font: inherit; font-size: 22px; font-weight: 700; color: #000; background: #fff; border: 0; border-radius: 10px; padding: 8px 26px; min-height: 48px; }

/* SMIFHI's remarks: his words on screen while he says them */
.toasts .voice { background: #06141ce6; color: #bfeaff; font-size: 16px; font-style: italic; font-weight: 500; border: 1px solid #4fc3f780; box-shadow: 0 0 18px #4fc3f733; max-width: 100%; white-space: normal; }

/* one size on every screen: everything is drawn for a screen 800 px tall (the Steam Deck) and scaled up on a bigger one (main.js sets --ui) */
.hud, .menu, body.touchui .touchpad { right: auto; bottom: auto; width: calc(100% / var(--ui, 1)); height: calc(100% / var(--ui, 1)); transform: scale(var(--ui, 1)); transform-origin: 0 0; }

/* multiplayer: a text box in a row, a paint dot, the list of who is in the lobby */
.row.text input { font: inherit; width: 300px; padding: 6px 12px; border-radius: 8px; border: 2px solid #8888; background: #0b0d10; color: #fff; outline: none; }
.row.text.area { display: block; } .row.text textarea { display: block; font: inherit; width: 100%; box-sizing: border-box; height: 120px; margin: 8px 0 4px; padding: 8px 12px; border-radius: 8px; border: 2px solid #8888; background: #0b0d10; color: #fff; outline: none; resize: none; }
.row.text textarea:focus { border-color: #ffb300; } .info .hint { font-size: 16px; opacity: .85; }
.row.text input:focus { border-color: #ffb300; } .row.focus.text input { background: #fff; color: #000; border-color: #0006; }
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .45em; border: 2px solid #fff9; vertical-align: -.05em; box-sizing: border-box; }
.row.focus .dot { border-color: #0007; }
/* the high scores (the public page) */
.boardbox { position: relative; max-height: min(52vh, 440px); overflow-y: auto; border-radius: 10px; overscroll-behavior: contain; }
.board { width: 100%; border-collapse: collapse; font: 600 20px ui-monospace, Menlo, Consolas, monospace; background: #0b0d10d9; border-radius: 10px; overflow: hidden; }
.board td { padding: 4px 12px; } .board tr.me td { background: #fff; color: #000; }
.board td:nth-child(1) { color: #ffb300; width: 48px; } .board tr.me td:nth-child(1) { color: #000; } .board td:nth-child(3) { text-align: right; }
.board td:nth-child(4) { text-align: right; color: #8f99a8; font-weight: 400; font-size: 15px; width: 84px; } .board tr.me td:nth-child(4) { color: #333; }
.menu.hs h1 { color: #ffb300; font-style: italic; letter-spacing: .04em; text-shadow: 0 0 18px #ffb30080; } .menu.hs input { text-transform: uppercase; font: 700 24px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.tb.t-full { right: 8px; width: 54px; } .tb.t-full svg { display: block; margin: auto; pointer-events: none; } .tb.t-full.on { border-color: #ffb300; }
.players { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.players div { display: flex; align-items: center; gap: 4px; background: #0b0d10d9; border-radius: 10px; padding: 8px 12px; font-size: 21px; border: 2px solid transparent; }
.players div.me { border-color: #ffb30099; } .players .dot { width: 1em; height: 1em; flex: none; } .players b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players i { margin-left: auto; color: #b9c2cd; font-size: 16px; font-style: normal; white-space: nowrap; padding-left: 8px; }

.code { letter-spacing: .18em; font-size: 1.25em; color: #ffd400; }

/* the lab simulator's clip of a lab test, popped up the first time that test is flown; click or tap to close */
.hud .simclip { left: 96px; top: 30%; width: 340px; border-radius: 10px; overflow: hidden; background: #0b0e13; border: 2px solid #ffb300; box-shadow: 0 8px 30px #000a; opacity: 0; transform: translateX(-30px); transition: opacity .35s, transform .35s; cursor: pointer; }
.hud .simclip.on { opacity: 1; transform: none; } .hud .simclip video { display: block; width: 100%; }
.hud .simclip i { display: block; padding: 4px 10px; font-style: normal; font-size: 14px; font-weight: 600; color: #fff; background: #000c; }
body.touchui .hud .simclip { width: 250px; left: 50%; margin-left: -125px; top: 12%; }
/* What's new (the public page's list of fixes) */
.news h3 { margin: 14px 0 4px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.news p { margin: 5px 0; line-height: 1.35; } .news p b { color: #ffb000; margin-right: 6px; }

/* the newsletter card after 5 kickflips (main.js newsCard) */
.newscard { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 50; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 24px); background: #0e1014eb; border: 1px solid #f5a623; border-radius: 14px; padding: 14px 18px; color: #fff; font-size: 16px; box-shadow: 0 8px 30px #0008; animation: pop .4s; }
.newscard span { opacity: .8; font-size: 14px; } .newscard button { font: inherit; border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.newscard .yes { background: #f5a623; color: #111; font-weight: 700; } .newscard .no { background: none; color: #fffb; padding: 9px 4px; }
@media (max-width: 620px) { .newscard { flex-wrap: wrap; bottom: 50%; } }
