/* Bakery Run: a 16-bit side scroller. Chunky pixel fonts, hard-edged boxes with stepped corners, no smoothing.
   The level itself is one pixel canvas (render.js); this file styles the screens, buttons and cards around it. */
:root {
  --ink: #2b2140;          /* the sprites' outline color, used for every border */
  --night: #1b1530;
  --plum: #3d2f5c;
  --cream: #fff3d6;
  --gold: #ffd25a;
  --gold-dk: #c98a1a;
  --berry: #e04868;
  --sky: #78c6f0;
  --pad-h: 214px;   /* portrait: family buttons, then the D-pad and A/B */
  --px-font: 'Press Start 2P', 'Courier New', monospace;
  --body-font: 'VT323', 'Courier New', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--body-font);
  font-size: 20px;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible { outline: 3px dashed var(--gold); outline-offset: 3px; }
/* the button the controller has picked in a menu */
.pad-focus { outline: 4px solid var(--gold); outline-offset: 3px; transform: scale(1.04); }
.hidden { display: none !important; }
.px, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.screen { position: fixed; inset: 0; }

/* Pixel boxes: a 4px ink border with the corners stepped in, plus a hard drop shadow */
.pixel-box, .card, .big-btn, .pill, .pad-btn, .swap, .pause, .pastries, .sign-bubble, .toast {
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 8px 0 0 rgba(0, 0, 0, 0.35);
  border-radius: 0;
}

/* ---------- Title ---------- */
.title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  text-align: center; overflow: hidden;
  background: linear-gradient(to bottom, #5fb8ec 0 18%, #78c6f0 18% 34%, #92d2f2 34% 48%, #acdcf3 48% 60%, #ffe8c4 60% 70%, #5fb34a 70% 72%, #a8693a 72% 100%); }
.title-name { margin: 0; font-family: var(--px-font); font-size: clamp(28px, 9vw, 52px); line-height: 1.1; color: var(--gold);
  text-shadow: 4px 0 var(--ink), -4px 0 var(--ink), 0 4px var(--ink), 0 -4px var(--ink), 4px 4px var(--ink), -4px 4px var(--ink), 4px -4px var(--ink), -4px -4px var(--ink), 0 9px 0 var(--berry); }
.title-tag { margin: 0; font-family: var(--px-font); font-size: clamp(9px, 2.6vw, 12px); color: var(--ink); }
.title-family { display: flex; gap: 6px; align-items: flex-end; justify-content: center; }
.title-family img { width: clamp(84px, 24vw, 140px); height: auto; }
.big-btn { padding: 14px 26px; font-family: var(--px-font); font-size: clamp(16px, 4.6vw, 22px); color: var(--ink);
  background: linear-gradient(var(--gold) 0 70%, var(--gold-dk) 70%); margin: 4px; }
.big-btn:active { transform: translateY(4px); }
.blink-btn { animation: pulse 1s steps(2) infinite; }
@keyframes pulse { 50% { filter: brightness(1.18); } }
.title-best { margin: 0; font-size: 22px; color: var(--cream); min-height: 1em; max-width: 340px;
  text-shadow: 2px 2px 0 var(--ink); }
.title-help { margin: 0; max-width: 340px; font-size: 20px; line-height: 1.05; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); }
.title-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.pill { padding: 6px 12px; font-family: var(--px-font); font-size: 9px; color: var(--cream); text-decoration: none; background: var(--plum); margin: 4px; }

/* ---------- The level ---------- */
.game { display: flex; flex-direction: column; background: var(--night); }
.view { position: relative; flex: 1; overflow: hidden; touch-action: none; background: var(--sky); }
.stage { position: absolute; left: 0; bottom: 0; display: block; }

/* ---------- Heads-up display ---------- */
.hud { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-left { display: flex; flex-direction: column; gap: 12px; margin: 4px; }
.hearts { display: flex; gap: 3px; }
.hearts img { width: 27px; height: 24px; }
.pastries { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 4px; background: var(--plum); width: max-content; }
.pastries img { width: 28px; height: 28px; }
.pastries b { font-family: var(--px-font); font-size: 11px; font-weight: 400; }
.swaps { display: flex; gap: 12px; margin: 4px; }
.swap { position: relative; width: 54px; height: 54px; padding: 4px; background: var(--plum); opacity: 0.75; touch-action: none; }
.swap img.face { width: 100%; height: 100%; display: block; }
.swap.hint, .pad-btn.hint { animation: hint-pulse 0.5s ease-in-out 8 alternate; opacity: 1; } /* whose turn it is in the final boss fight */
@keyframes hint-pulse { from { transform: scale(1); box-shadow: 0 0 0 0 #ffe58f; } to { transform: scale(1.15); box-shadow: 0 0 0 4px #ffe58f; } }
.swap span { position: absolute; right: -10px; bottom: -10px; font-size: 14px; line-height: 1; padding: 2px; background: var(--ink); }
.swap.active { opacity: 1; background: var(--gold); transform: translateY(-2px); }
.pause { width: 40px; height: 40px; background: var(--plum); font-size: 16px; margin: 4px; }
.level-name { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 70px); left: 0; right: 0; margin: 0; text-align: center;
  font-family: var(--px-font); font-size: 11px; color: var(--cream); text-shadow: 2px 2px 0 var(--ink);
  pointer-events: none; animation: fadeOut 4s steps(8) forwards; }
@keyframes fadeOut { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.sign-bubble { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 118px); left: 50%; transform: translateX(-50%);
  width: min(88%, 380px); padding: 8px 12px; background: var(--cream); color: var(--ink);
  font-size: 22px; line-height: 1; text-align: center; pointer-events: none; }
.toast { position: absolute; left: 50%; bottom: calc(var(--pad-h) + 18px); transform: translateX(-50%); padding: 6px 12px;
  background: var(--plum); font-size: 20px; line-height: 1; width: max-content; max-width: min(88%, 380px); text-align: center; pointer-events: none; }
body.boss-fight .toast { bottom: auto; top: calc(max(10px, env(safe-area-inset-top)) + 112px); } /* keep the arena floor clear */

/* The reserve box: a spare Golden Croissant waits here until tapped */
.reserve { width: 40px; height: 40px; padding: 4px; background: var(--plum); display: grid; place-items: center;
  box-shadow: 0 -4px 0 0 var(--gold), 0 4px 0 0 var(--gold), -4px 0 0 0 var(--gold), 4px 0 0 0 var(--gold), 0 8px 0 0 rgba(0, 0, 0, 0.35); }
.reserve img { width: 32px; height: 30px; }
.pad-btn.action.super { background: linear-gradient(#ffd25a 0 70%, #c98a1a 70%); color: var(--ink); }

/* The boss's name and hearts, under the family buttons */
.boss-bar { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 70px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--plum); white-space: nowrap; pointer-events: none;
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 8px 0 0 rgba(0, 0, 0, 0.35); }
.boss-bar b { font-family: var(--px-font); font-size: 9px; font-weight: 400; color: var(--gold); }
.boss-bar span { display: flex; gap: 2px; }
.boss-bar span i { width: 7px; height: 12px; background: #5a4f6a; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.boss-bar span i.on { background: var(--berry); box-shadow: inset 0 -3px 0 #a8264a, inset 0 2px 0 #ffb0c0; }
/* the Team meter (HUD) and the TEAM button: fill as you fight, glow rainbow when full */
.team-meter { position: relative; width: 84px; height: 16px; padding: 0; display: grid; place-items: center; line-height: 1; background: #2a2238; border: 2px solid var(--ink); overflow: hidden; }
.team-meter span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #7fd3ff, #a8f07a); transition: width 0.2s; }
.team-meter b { position: relative; font-family: var(--px-font); font-size: 7px; font-weight: 400; color: var(--cream); text-shadow: 1px 1px 0 var(--ink); }
.team-meter.ready span, .pad-btn.team.ready { background: linear-gradient(90deg, #ff7a95, #ffd25a, #a8f07a, #7fd3ff, #c8a0ff); background-size: 200% 100%; animation: rainbow 0.8s linear infinite; }
@keyframes rainbow { to { background-position: 200% 0; } }
.pad-btn.team { right: -6px; bottom: -4px; width: 48px; height: 48px; color: var(--cream);
  background: conic-gradient(#7fd3ff var(--fill, 0%), #3a3048 0); }
.pad-btn.team b { font-size: 18px; font-weight: 400; line-height: 1; }
.pad-btn.team.ready { color: var(--ink); animation: rainbow 0.8s linear infinite, pulse 0.6s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }
/* World map: a row of level buttons per world; the boss is the crowned one at the end */
.level-list { display: flex; flex-direction: column; gap: 12px; }
.level-list .alt-btn { text-align: left; line-height: 1.6; background: rgba(255, 210, 90, 0.14); }

/* ---------- On-screen controls: a D-pad on the left, A and B on the right (like a 16-bit controller) ---------- */
.pad { height: var(--pad-h); flex-shrink: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'swaps swaps swaps' 'dpad . ab';
  align-items: center; row-gap: 6px;
  padding: 12px max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: repeating-linear-gradient(90deg, #2a2142 0 8px, #241c3a 8px 16px); border-top: 4px solid var(--ink); touch-action: none; }
.pad .swaps { grid-area: swaps; justify-self: center; }
.dpad { grid-area: dpad; position: relative; width: 132px; height: 132px; flex-shrink: 0; touch-action: none; }
/* A controller is connected: no on-screen D-pad or A/B, just the family row (labelled LB / RB) */
body.gamepad { --pad-h: 84px; }
body.gamepad .dpad, body.gamepad .ab { display: none; }
body.gamepad .pad { grid-template-areas: 'swaps swaps swaps'; }
.shoulder { display: none; font-family: var(--px-font); font-size: 9px; color: var(--cream); padding: 4px 5px; background: var(--ink); align-self: center; }
body.gamepad .shoulder { display: inline-block; }
.dpad .arm, .dpad .hub { position: absolute; width: 44px; height: 44px; background: linear-gradient(#5a4a85 0 70%, #3d2f5c 70%); }
.dpad .arm { box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.dpad .up { left: 44px; top: 0; } .dpad .down { left: 44px; bottom: 0; } .dpad .left { left: 0; top: 44px; } .dpad .right { right: 0; top: 44px; }
.dpad .hub { left: 44px; top: 44px; background: #3d2f5c; }
.dpad .hub::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: #2a2142; }
.dpad .arm::after { content: ''; position: absolute; left: 50%; top: 50%; border: 9px solid transparent; transform: translate(-50%, -50%); }
.dpad .up::after { border-bottom: 11px solid var(--cream); border-top: 0; }
.dpad .down::after { border-top: 11px solid var(--cream); border-bottom: 0; }
.dpad .left::after { border-right: 11px solid var(--cream); border-left: 0; }
.dpad .right::after { border-left: 11px solid var(--cream); border-right: 0; }
.dpad.up .up, .dpad.down .down, .dpad.left .left, .dpad.right .right { background: linear-gradient(#8a72c8 0 70%, #5a4a85 70%); transform: translateY(2px); }
.ab { grid-area: ab; position: relative; width: 168px; height: 124px; flex-shrink: 0; }
.pad-btn { position: absolute; width: 72px; height: 72px; border-radius: 50%; font-family: var(--px-font); color: var(--ink); touch-action: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 0 0 4px var(--ink), 0 6px 0 4px rgba(0, 0, 0, 0.35); }
.pad-btn.down { transform: translateY(4px); filter: brightness(1.15); }
.pad-btn.jump { right: 4px; top: 4px; width: 80px; height: 80px; background: radial-gradient(circle at 40% 35%, #ffe58f, var(--gold) 55%, var(--gold-dk)); }
.pad-btn.jump b { font-size: 22px; font-weight: 400; }
.pad-btn small { font-size: 6px; line-height: 1.2; max-width: 60px; text-align: center; }
.pad-btn.action { left: 4px; bottom: 4px; background: radial-gradient(circle at 40% 35%, #ffb0c0, #ff7a95 55%, #c43a5a); }
.pad-btn.action i { position: absolute; top: -10px; left: -6px; font-style: normal; font-size: 11px; color: var(--cream); background: var(--ink); padding: 3px 4px; }
.pad-btn.action b { font-size: 22px; line-height: 1; font-weight: 400; font-family: system-ui; }
.pad-btn.action.super { background: radial-gradient(circle at 40% 35%, #fff2a8, #ffd25a 55%, #c98a1a); }

/* Landscape phones and wide screens: the controls float over the bottom corners of the level */
@media (orientation: landscape) {
  :root { --pad-h: 0px; }
  .pad { position: absolute; left: 0; right: 0; bottom: 0; height: auto; background: none; border: 0; pointer-events: none;
    grid-template-areas: 'dpad swaps ab'; align-items: end; }
  .pad .swaps { align-self: end; margin-bottom: 6px; }
  .dpad, .pad-btn, .swap { pointer-events: auto; opacity: 0.9; }
  /* sideways the controls sit over the level, so they're see-through (solid while pressed) */
  .dpad, .pad-btn { opacity: 0.45; transition: opacity 0.15s; }
  .dpad.up, .dpad.down, .dpad.left, .dpad.right, .pad-btn.down, .pad-btn.team.ready { opacity: 0.85; }
  .swap { opacity: 0.8; }
  body.gamepad { --pad-h: 0px; }
  body.gamepad .pad { grid-template-areas: '. swaps .'; }
  .toast { bottom: 118px; }
}

/* ---------- Cards ---------- */
.modal { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(27, 21, 48, 0.7); z-index: 10; }
.card { width: min(100%, 340px); padding: 20px 18px; text-align: center; display: flex; flex-direction: column; gap: 14px;
  background: var(--plum); }
.card h2 { margin: 0; font-family: var(--px-font); font-size: 18px; font-weight: 400; color: var(--gold); line-height: 1.3; text-shadow: 3px 3px 0 var(--ink); }
.card p { margin: 0; line-height: 1; }
.card .big-btn { font-size: 14px; padding: 12px 16px; }
.alt-btn { padding: 10px; font-family: var(--px-font); font-size: 10px; color: var(--cream); background: rgba(255, 255, 255, 0.08); }
.alt-btn:hover { background: rgba(255, 255, 255, 0.16); }
.stars { font-family: var(--px-font); font-size: 30px; color: var(--gold); letter-spacing: 6px; text-shadow: 3px 3px 0 var(--ink); }
.keys, .soon { font-size: 18px; color: #d8cdea; }

/* A phone held sideways (short and wide): everything has to fit in about 360-430 px of height */
.card { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (orientation: landscape) and (max-height: 500px) {
  .title { gap: 6px; padding: 8px 16px; overflow-y: auto; }
  .title-name { font-size: clamp(24px, 8vh, 36px); }
  .title-family img { width: clamp(56px, 17vh, 84px); }
  .title .big-btn { padding: 10px 22px; font-size: 16px; }
  .title-best { font-size: 18px; }
  .title-help { display: none; }
  .title-links { gap: 4px; margin-top: 0; }
  .card { gap: 10px; padding: 14px 16px; }
  .keys, .soon { font-size: 16px; }
  .stars { font-size: 24px; }
  /* the storybook: the picture on the left, the words and buttons on the right */
  .story-card { width: min(100%, 760px); display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'title title' 'art text' 'art btns';
    align-items: center; column-gap: 16px; }
  .story-card h2 { grid-area: title; }
  #storyArt { grid-area: art; }
  .story-text { grid-area: text; min-height: 0; font-size: 19px; }
  .story-btns { grid-area: btns; }
  /* playing: the top bar in one row, and the family buttons up top beside pause, so nothing covers the family's path */
  .hud-left { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; max-width: calc(100% - 300px); }
  .pad .swaps { position: fixed; top: max(6px, env(safe-area-inset-top)); right: calc(max(8px, env(safe-area-inset-right)) + 56px); margin: 0; gap: 10px; }
  .swap { width: 44px; height: 44px; }
  .level-name { top: calc(max(10px, env(safe-area-inset-top)) + 56px); }
}
/* Very short (a phone sideways inside another app, like a browser with its bar showing): smaller controls and top bar */
@media (orientation: landscape) and (max-height: 330px) {
  .title { gap: 3px; padding: 4px 16px; }
  .title-tag { display: none; }
  .title-name { font-size: 22px; }
  .title-family img { width: 50px; }
  .title .big-btn { padding: 7px 18px; font-size: 14px; }
  .title-best { font-size: 16px; }
  .title-links .pill { padding-top: 4px; padding-bottom: 4px; }
  .dpad, .ab { zoom: 0.72; }
  .hud-left { zoom: 0.8; max-width: 440px; gap: 8px; }
  .pause { zoom: 0.8; }
  .pad .swaps { top: max(4px, env(safe-area-inset-top)); right: calc(max(8px, env(safe-area-inset-right)) + 44px); gap: 6px; }
  .swap { width: 34px; height: 34px; }
  .level-name { top: calc(max(8px, env(safe-area-inset-top)) + 40px); }
  .toast { bottom: 90px; }
  .sign-bubble { top: calc(max(8px, env(safe-area-inset-top)) + 44px); width: min(100% - 280px, 380px); font-size: 18px; }
  .card { gap: 8px; padding: 10px 14px; }
  .card h2 { font-size: 14px; }
  .card .big-btn { padding: 9px 14px; font-size: 12px; }
  .alt-btn { padding: 7px; }
  .story-text { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .blink-btn, .level-name { animation: none; }
}

/* ---------- The storybook ---------- */
.modal.story { position: fixed; z-index: 30; background: rgba(27, 21, 48, 0.88); }
.story-card { width: min(100%, 420px); gap: 12px; }
.story-card h2 { font-size: 12px; }
#storyArt { width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; border: 3px solid var(--ink); background: #1b1530; }
.story-text { font-size: 21px; line-height: 1.15 !important; color: var(--cream); text-align: left; min-height: 4.6em; }
.story-btns { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.story-btns .big-btn { flex: 1; }
.page-mark { font-style: normal; font-size: 10px; margin-left: 2px; }

/* The effects layer (fx.js): the WebGL picture, and the words and flashes on a pixel canvas above it */
.stage.ui { pointer-events: none; }

/* ---------- The world map (map.js): the map fills the screen, the place you're at is described at the bottom ---------- */
.map { background: var(--night); }
.map-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.map-view canvas { position: absolute; left: 0; top: 0; display: block; }
.map-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: linear-gradient(rgba(27, 21, 48, 0.85), rgba(27, 21, 48, 0)); pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-world-name { font-family: var(--px-font); font-size: 9px; line-height: 1.4; font-weight: 400; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); flex: 1; min-width: 130px; }
.map-total { font-size: 20px; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); }
.map-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--plum); box-shadow: 0 -4px 0 0 var(--ink); }
.map-info-text { flex: 1; min-width: 0; }
.map-info h2 { margin: 0 0 4px; font-family: var(--px-font); font-size: 12px; font-weight: 400; color: var(--cream); }
.map-info p { margin: 0; font-size: 20px; line-height: 1; color: var(--gold); }
.map-info .big-btn { padding: 12px 16px; font-size: 14px; white-space: nowrap; }

/* ---------- Score, and the family account ---------- */
.score { font-family: var(--px-font); font-size: 11px; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); align-self: center; padding: 0 6px; }
.win-score { margin: 0; font-size: 24px; color: var(--gold); }
.win-score b { font-family: var(--px-font); font-size: 16px; font-weight: 400; }
.win-score small { display: block; font-size: 18px; color: var(--cream); }
.modal.account { position: fixed; z-index: 30; background: rgba(27, 21, 48, 0.88); }
.account-card { width: min(100%, 380px); gap: 10px; }
.account-card .field { width: 100%; padding: 10px; margin: 4px 0; font-family: var(--body-font); font-size: 22px; color: var(--ink); background: var(--cream);
  border: 0; box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink); -webkit-user-select: text; user-select: text; }

/* ---------- High score boards ---------- */
.modal.boards { position: fixed; z-index: 30; background: rgba(27, 21, 48, 0.88); }
.board-card { width: min(100%, 400px); gap: 8px; }
.board-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.board-tabs .pill.on { background: var(--gold); color: var(--ink); }
.board-tabs .pill[disabled] { opacity: 0.4; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.board-list li { display: flex; gap: 10px; align-items: baseline; padding: 4px 8px; font-size: 21px; background: rgba(255, 255, 255, 0.05); }
.board-list li.me { background: rgba(255, 210, 90, 0.25); }
.board-list li b { width: 2ch; font-family: var(--px-font); font-size: 10px; font-weight: 400; color: var(--gold); }
.board-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list li i { font-style: normal; color: var(--gold); }
.board-list .board-note { justify-content: center; color: var(--cream); background: none; }
.account-starter { margin: 0; font-size: 22px; color: var(--gold); }

/* The speed counter (pause card → Speed counter): frames per second and the slowest frame lately */
.fps-meter { position: absolute; right: 8px; top: 72px; z-index: 30; padding: 3px 6px; font: 11px/1.2 monospace; color: #fff;
  background: rgba(0, 0, 0, 0.6); border-radius: 4px; pointer-events: none; white-space: nowrap; }

/* World 8 missions: the HUD chip turns green when done; the map info shows the mission on its own line */
.mission-count.done { color: #a8f07a; }
#mapDetail { white-space: pre-line; }
