/* Game shell: HUD, bottom bar, build sheet, tool row, toasts, dialogs, loading and error overlays.
   Mobile first (375x812 portrait, thumbs at the bottom, tap targets >= 44 px, safe-area insets);
   desktop (>= 900 px) turns the build sheet into a side panel. Colors come from the theme palette:
   app/game.js and app/boot.js set the --cp-* custom properties (ui/auth.js authPaletteVars); the
   values below are fallbacks (= default theme). */

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #e6f6ff;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
#app { position: fixed; inset: 0; overflow: hidden; }
#viewport { position: absolute; inset: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
#viewport canvas { display: block; outline: none; }
#ui { position: absolute; inset: 0; pointer-events: none; }

.cp-ui, .cp-overlay {
  --cp-accent: #f1976c; --cp-accent2: #6794d9; --cp-ok: #61cb8b; --cp-bad: #cf534f; --cp-text: #38383d;
  --cp-panel: #ffffff; --cp-ice: #d0e8ff; --cp-peri: #a0a8c9; --cp-slate: #4f5260; --cp-amber: #ffc044;
  --cp-cream: #fde4c7; --cp-white: #ffffff; --cp-sky-top: #8ed1fc; --cp-sky-mid: #bfe5fd; --cp-sky-bottom: #e6f6ff;
  --cp-ink: #2f4f7a;
  --cp-shadow: 0 3px 0 color-mix(in srgb, var(--cp-ink) 18%, transparent), 0 6px 16px color-mix(in srgb, var(--cp-ink) 14%, transparent);
  --cp-safe-t: env(safe-area-inset-top, 0px);
  --cp-safe-r: env(safe-area-inset-right, 0px);
  --cp-safe-b: env(safe-area-inset-bottom, 0px);
  --cp-safe-l: env(safe-area-inset-left, 0px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.25;
  color: var(--cp-text);
  -webkit-tap-highlight-color: transparent;
}
.cp-ui { position: absolute; inset: 0; pointer-events: none; }
.cp-ui *, .cp-ui *::before, .cp-ui *::after, .cp-overlay *, .cp-overlay *::before, .cp-overlay *::after { box-sizing: border-box; }
/* :where() keeps this at element specificity so component classes below set their own colours. */
:where(.cp-ui, .cp-overlay) button { font: inherit; color: inherit; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.cp-ui button:focus-visible, .cp-overlay button:focus-visible { outline: 3px solid var(--cp-accent2); outline-offset: 2px; }
.cp-icon { display: block; flex: none; }

/* ---------------------------------------------------------------- HUD */
.cp-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(var(--cp-safe-t) + 8px) calc(var(--cp-safe-r) + 8px) 0 calc(var(--cp-safe-l) + 8px);
  pointer-events: none;
}
.cp-hud > * { pointer-events: auto; }
/* The money pill's wrapper takes the room the other HUD items leave (hud.js fitMoney measures it);
   taps on its empty part still reach the park. Desktop: it never shrinks below the pill. */
.cp-hud > .cp-hud__statsroom { flex: 1 1 auto; min-width: 0; display: flex; pointer-events: none; }
.cp-hud__statsroom > .cp-hud__stats { pointer-events: auto; }
.cp-hud__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 0;
}
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A gem amount inside a sentence (ui/gem-text.js): the gem picture, then the number; the word "gems" is only read aloud (.cp-sr). */
.cp-gemtext { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.cp-gemtext__gem { display: block; flex: none; filter: drop-shadow(0 1px 0 rgba(10, 79, 134, 0.25)); }
/* Money and guests side by side in one pill; HUD items added later (hud.addItem) and the menu sit
   to its right, so the pill only takes the width it needs. */
/* Weather chip (ui/weather-chip.js): icon only on a phone, icon and word from 700 px; blue-grey while it rains. */
.cp-hud__weather { flex: none; gap: 6px; padding: 0 10px; color: var(--cp-slate); }
.cp-hud__weather[hidden] { display: none; }
.cp-hud__weather[data-mode="rain"] { color: #3f6fb5; }
.cp-hud__weather[data-mode="sunny"] { color: #b87400; }
.cp-hud__weatherlabel { display: none; font-size: 15px; }
@media (min-width: 700px) { .cp-hud__weatherlabel { display: inline; } }
.cp-hud__stats {
  flex: 0 1 auto;
  gap: 14px;
  padding: 0 14px;
  margin-right: auto;
  overflow: hidden;
}
.cp-hud__money { font-size: 19px; font-weight: 900; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cp-hud__money.is-negative { color: var(--cp-bad); }
/* "Vrij bouwen" (hud.js setUnlimited): "∞ Onbeperkt" in the pass's purple instead of an amount */
.cp-hud__money.is-unlimited { color: #6a3fb5; }
.cp-hud__guests { display: flex; align-items: center; gap: 4px; flex: none; font-size: 17px; font-weight: 800; line-height: 1.1; color: var(--cp-slate); }
/* Last resort on the narrowest phones (hud.js fitMoney): the money keeps the pill, the guest count goes. */
.cp-hud__stats.is-cramped .cp-hud__guests { display: none; }
.cp-hud__stats.is-up { animation: cp-flash-up 0.6s ease-out; }
.cp-hud__stats.is-down { animation: cp-flash-down 0.6s ease-out; }
@keyframes cp-flash-up { 0% { background: color-mix(in srgb, var(--cp-ok) 45%, var(--cp-panel)); } 100% { background: var(--cp-panel); } }
@keyframes cp-flash-down { 0% { background: color-mix(in srgb, var(--cp-accent) 45%, var(--cp-panel)); } 100% { background: var(--cp-panel); } }
.cp-hud__extra { display: contents; }
.cp-hud__menubtn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
  display: grid;
  place-items: center;
}

.cp-menu {
  position: absolute;
  top: calc(var(--cp-safe-t) + 60px);
  right: calc(var(--cp-safe-r) + 8px);
  width: min(344px, calc(100vw - 16px));
  padding: 14px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  /* On every screen the menu stays between the HUD row and the bottom bar and scrolls when it is longer
     (owner 2026-10-24, desktop: "Menu op pc is nu te lang. valt buiten beeld"). */
  max-height: calc(100% - var(--cp-safe-t) - var(--cp-safe-b) - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cp-menu[hidden] { display: none; }
.cp-menu__user { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
/* .cp-btn sets display, which would beat the [hidden] attribute (the login link's own rule sits in guest.css, linked for guests only) */
.cp-menu__password[hidden], .cp-menu__login[hidden], .cp-menu__others[hidden], .cp-menu__delete[hidden] { display: none; }
/* 'Account verwijderen' (ui/account-delete-sheet.js): white with a red outline and red text, like 'Opnieuw beginnen'; the sheet asks twice. */
.cp-menu__delete {
  background: var(--cp-white);
  color: var(--cp-bad);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cp-bad) 55%, transparent);
}
.cp-menu__row { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.cp-menu__check { width: 22px; height: 22px; accent-color: var(--cp-accent2); }
.cp-menu__keys { margin: 0; font-size: 14px; color: var(--cp-slate); }
@media (pointer: coarse) { .cp-menu__keys { display: none; } }

/* ---------------------------------------------------------------- buttons */
.cp-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-text) 14%, transparent);
}
/* Dark text on the light accent colours: ~6:1 contrast (white on salmon would be ~2.3:1). */
.cp-btn--primary { background: var(--cp-accent); color: var(--cp-text); }
.cp-btn--danger { background: var(--cp-bad); color: var(--cp-white); }

/* ---------------------------------------------------------------- bottom: sheet, tool row, bar */
.cp-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 calc(var(--cp-safe-r) + 8px) calc(var(--cp-safe-b) + 8px) calc(var(--cp-safe-l) + 8px);
  pointer-events: none;
}
.cp-bottom > * { pointer-events: auto; }
.cp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 4px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-bar__build {
  flex: 0 1 auto; /* a longer label (fr/de/it) shrinks the button instead of pushing the last bar button out of the bar */
  min-width: 0;
  max-width: 100%;
  height: 48px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 14px;
  background: var(--cp-accent);
  color: var(--cp-text);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--cp-text) 18%, transparent);
}
.cp-bar__build.is-open { background: var(--cp-ice); }
.cp-bar__buildlabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-bar__btn {
  flex: 1 1 0;
  min-width: 44px;
  max-width: 56px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--cp-slate);
}
.cp-bar__btn:active { background: var(--cp-ice); }
.cp-bar__btn:disabled { opacity: 0.35; cursor: default; }
.cp-bar__btn[aria-pressed="true"] { background: var(--cp-ice); color: var(--cp-accent2); }

.cp-toolrow {
  display: flex;
  flex-wrap: wrap; /* only a long sentence (.is-long below) wraps onto a row of its own */
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 6px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-toolrow[hidden] { display: none; }
.cp-toolrow__chip {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  display: grid;
  place-items: center;
  color: var(--cp-ink);
}
.cp-toolrow__x {
  position: absolute;
  top: -5px; right: -5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cp-slate);
  color: var(--cp-white);
  display: grid;
  place-items: center;
}
.cp-toolrow__readout { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-toolrow__line1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-toolrow__line1 { font-size: 16px; }
.cp-toolrow__name { font-weight: 900; }
.cp-toolrow__value { font-weight: 700; font-variant-numeric: tabular-nums; }
/* The hint is the main instruction for a first-time phone player: 16 px (BRIEF 7.1), and on very
   narrow phones it may take a second line instead of being cut off. */
.cp-toolrow__hint {
  font-size: 16px;
  line-height: 1.2;
  color: var(--cp-slate);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.cp-toolrow__readout.is-bad .cp-toolrow__hint { color: var(--cp-bad); font-weight: 800; }
.cp-toolrow__readout.is-warn .cp-toolrow__hint { color: color-mix(in srgb, var(--cp-bad) 55%, var(--cp-text)); font-weight: 800; }
/* A reason, warning or hint of more than a few words (build-bar.js LONG_LINE) is never cut off: the name stays beside the
   buttons and the whole sentence wraps on a full-width row under them (a phone leaves only ~150 px beside the buttons). */
.cp-toolrow__readout.is-long { display: contents; }
.cp-toolrow__readout.is-long .cp-toolrow__line1 { flex: 1 1 0; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; }
.cp-toolrow__readout.is-long .cp-toolrow__hint {
  order: 9;
  flex: 0 0 100%;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  padding: 0 4px 2px;
  font-size: 15px;
}
.cp-toolrow__readout.is-ok .cp-toolrow__value,
.cp-toolrow__readout.is-value .cp-toolrow__hint { color: color-mix(in srgb, var(--cp-ok) 55%, var(--cp-text)); font-weight: 800; }
.cp-toolrow__btn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  display: grid;
  place-items: center;
}
.cp-toolrow__btn[hidden], .cp-toolrow__confirm[hidden] { display: none; }
.cp-toolrow__confirm {
  flex: none;
  min-width: 92px;
  height: 44px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ok);
  color: var(--cp-text);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-text) 18%, transparent);
}
.cp-toolrow__confirm.is-remove { background: var(--cp-bad); color: var(--cp-white); }
.cp-toolrow__confirm:disabled { background: var(--cp-peri); cursor: default; }

/* The side chips N / O / Z / W of the extra-gate tool (ui/park-gate-sides.js): a row of 4 big buttons above the tool row. Selected = the game's go-green
   (the colour of the strip on the map), a dimmed chip (no gate can go on that side) shows a lock and answers a tap with the reason in the tool row. */
.cp-gatesides {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-gatesides[hidden] { display: none; }
.cp-gatechip {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  color: var(--cp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-ink) 14%, transparent);
}
.cp-gatechip__badge {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cp-white);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}
.cp-gatechip__lock { display: none; }
.cp-gatechip__word { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gatechip.is-selected {
  background: var(--cp-ok);
  color: var(--cp-text);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-text) 18%, transparent);
}
.cp-gatechip.is-off { background: transparent; color: var(--cp-slate); opacity: 0.7; box-shadow: inset 0 0 0 2px var(--cp-ice); }
.cp-gatechip.is-off .cp-gatechip__letter { display: none; }
.cp-gatechip.is-off .cp-gatechip__lock { display: block; }
.cp-gatechip.is-notice { opacity: 1; color: var(--cp-bad); box-shadow: inset 0 0 0 2px var(--cp-bad); }
@media (min-width: 900px) {
  .cp-gatesides { align-self: center; width: min(440px, 100%); }
}
@media (max-width: 359px) {
  .cp-gatechip__word { display: none; }
}

/* The path row (ui/path-row.js; AUTO OVER/UNDER, owner 22 Nov 2026, the mockup _scratch/routechoice/mockup-route3.png right half): ONE compact row above
   the tool row while Pad or Wachtrij is armed, always compact. Left to right: the level the drag's end goes to ("Laag -2", "Boven", "2 hoog"), the arrows
   ▼ ▬ ▲ (ui/slope-buttons.js .cp-slope; Ondergronds, phase B), the Over of onder button (.cp-route, lilac; the path tool), the path options as pictures
   (ui/path-options.js .cp-popt). 48 px high, one row at 375 px wide (the buttons share the width; the words are in aria-label and title); what is on is lit:
   the arrow of what the drag's end does now, Brug / Tunnel (Auto is the plain lilac), an option that is on (the game's go-green). The parts are
   display: contents, so every button is a flex item of the row. */
.cp-prow {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-prow[hidden] { display: none; }
.cp-prow > .cp-slope, .cp-prow > .cp-popt { display: contents; }
.cp-prow > .cp-slope[hidden], .cp-prow > .cp-popt[hidden], .cp-prow .cp-popt__chip[hidden], .cp-prow > .cp-route[hidden] { display: none; }
.cp-slope__level {
  flex: none;
  min-width: 66px;
  padding: 0 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cp-ice);
  color: var(--cp-ink);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cp-slope__level.is-below { background: #f6e1c4; color: #8a5426; }
.cp-slope__level.is-above { background: color-mix(in srgb, var(--cp-accent2) 20%, var(--cp-white)); }
.cp-slope__btn, .cp-route, .cp-popt__chip {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  color: var(--cp-ink);
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-ink) 14%, transparent);
}
.cp-slope__glyph { font-size: 16px; line-height: 1; }
.cp-slope__btn.is-on { background: var(--cp-ok); color: var(--cp-text); }
.cp-slope__btn--down.is-on { background: #e7a46b; color: var(--cp-text); }
.cp-slope__btn--up.is-on { background: color-mix(in srgb, var(--cp-accent2) 55%, var(--cp-white)); color: var(--cp-text); }
.cp-slope__btn:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
.cp-route { background: #e8e0fb; color: #5d3fa8; box-shadow: inset 0 -3px 0 color-mix(in srgb, #5d3fa8 18%, transparent); }
.cp-route.is-on { background: #c9b8f4; color: #432a8a; box-shadow: inset 0 0 0 3px #8c6be0; }
.cp-route__icon { display: block; width: 30px; height: 30px; stroke-width: 2.4; pointer-events: none; }
.cp-popt__chip.is-on { background: color-mix(in srgb, var(--cp-ok) 40%, var(--cp-white)); box-shadow: inset 0 0 0 3px var(--cp-ok); }
.cp-popt__img { display: block; flex: none; width: 30px; height: 30px; object-fit: contain; pointer-events: none; }
@media (min-width: 900px) {
  .cp-prow { align-self: center; width: min(560px, 100%); }
}
@media (max-width: 400px) {
  .cp-prow { gap: 3px; padding: 4px 3px; }
  .cp-slope__level { min-width: 62px; padding: 0 5px; }
  .cp-popt__img { width: 26px; height: 26px; }
  .cp-route__icon { width: 28px; height: 28px; }
}

/* The options of the area fill tool (ui/fill-options.js): four rows above the tool row - what to plant (random from a group | my choice), the group,
   in "my choice" the strip of unlocked items (a tick on each chosen one), and how full + shuffle. Selected = the game's go-green. */
.cp-fill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-fill[hidden], .cp-fill__items[hidden] { display: none; }
/* The Kabelbaan panel (ui/transport.js): which station is being placed (or the route step), the cable height and the route row
   (Automatisch, Zelf masten zetten, Mast weg), in the .cp-fill shape above the tool row; a chip the step does not use is hidden. */
.cp-cable [hidden] { display: none !important; }
.cp-cable .cp-fill__chip:disabled { opacity: 0.45; }
.cp-cable__step { pointer-events: none; opacity: 0.55; }
.cp-cable__step.is-on { opacity: 1; background: var(--cp-go, #61cb8b); color: #fff; }
/* the leg of a line with middle stations whose pylons are edited ("A–B", "B–C"): marked like the current step */
.cp-cable__leg.is-on { background: var(--cp-go, #61cb8b); color: #fff; }
.cp-cable__height { pointer-events: none; font-weight: 700; }
.cp-fill__row { display: flex; gap: 4px; }
.cp-fill__mode, .cp-fill__chip {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  color: var(--cp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-ink) 14%, transparent);
}
.cp-fill__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-fill__mode.is-selected, .cp-fill__chip.is-selected {
  background: var(--cp-ok);
  color: var(--cp-text);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-text) 18%, transparent);
}
.cp-fill__chip.is-off { background: transparent; color: var(--cp-slate); opacity: 0.65; box-shadow: inset 0 0 0 2px var(--cp-ice); }
.cp-fill__strip {
  display: flex;
  gap: 4px;
  padding: 2px 2px 4px;
  touch-action: pan-x;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cp-fill__toggle {
  flex: none;
  width: 58px;
  height: 60px;
  padding: 4px 2px 2px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-white);
  color: var(--cp-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: inset 0 0 0 2px var(--cp-ice);
}
.cp-fill__togglelabel { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-fill__count { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; color: var(--cp-slate); font-variant-numeric: tabular-nums; }
.cp-fill__item {
  position: relative;
  flex: none;
  width: 54px;
  height: 60px;
  padding: 3px 2px 2px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  color: var(--cp-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.cp-fill__item.is-on { background: color-mix(in srgb, var(--cp-ok) 40%, var(--cp-white)); box-shadow: inset 0 0 0 3px var(--cp-ok); }
.cp-fill__img { display: block; width: 38px; height: 38px; object-fit: contain; pointer-events: none; }
.cp-fill__price { font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-fill__tick {
  position: absolute;
  top: 2px; right: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cp-ok);
  color: var(--cp-text);
  display: grid;
  place-items: center;
}
.cp-fill__shuffle {
  flex: none;
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  color: var(--cp-ink);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-ink) 14%, transparent);
}
@media (min-width: 900px) {
  .cp-fill { align-self: center; width: min(520px, 100%); }
}

/* The sponsor picker (ui/reclame-options.js): above the tool row while the Reclamebord is armed, and inside the board window (ui/reclame-window.js).
   Six chips with the board's own picture (a small canvas) and the sponsor's name; the chosen one is go-green. The row scrolls sideways on a phone. */
.cp-sponsor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 6px 4px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-sponsor[hidden] { display: none; }
.cp-sponsor__title { margin: 0 4px; font-size: 14px; font-weight: 800; color: var(--cp-ink); }
.cp-sponsor__chips {
  display: flex;
  gap: 6px;
  padding: 2px 2px 4px;
  touch-action: pan-x;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cp-sponsor__chip {
  flex: none;
  width: 86px;
  padding: 4px 4px 3px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  color: var(--cp-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-ink) 14%, transparent);
}
.cp-sponsor__chip.is-selected { background: var(--cp-ok); color: var(--cp-text); box-shadow: inset 0 0 0 3px var(--cp-ok), inset 0 -3px 0 color-mix(in srgb, var(--cp-text) 18%, transparent); }
.cp-sponsor__face { display: block; width: 76px; height: 48px; border-radius: 6px; pointer-events: none; }
.cp-sponsor__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; line-height: 1.1; }
.cp-sponsorwin .cp-sponsor__chips { flex-wrap: wrap; overflow-x: visible; justify-content: flex-start; margin-bottom: 8px; }
@media (min-width: 900px) {
  .cp-sponsor { align-self: center; width: min(560px, 100%); }
}
@media (max-width: 899px) and (max-height: 700px) {
  .cp-fill__mode, .cp-fill__chip, .cp-fill__shuffle { height: 40px; }
}

.cp-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(46vh, 340px);
  padding: 8px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-sheet[hidden] { display: none; }
.cp-sheet__head { display: flex; gap: 6px; align-items: center; }
/* Tabs share the full sheet width (on phones the bar's Bouwen button turns into Sluiten, so the head
   needs no close button) and size to their label, so five tabs (with Attracties) fit uncut on a
   375 px phone. Labels never ellipsize; if a theme ever adds more tabs than fit, the strip scrolls
   sideways instead of cutting words. */
.cp-sheet__tabs {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.cp-sheet__tabs::-webkit-scrollbar { display: none; }
.cp-sheet__tab {
  flex: 1 0 auto;
  min-width: 44px;
  height: 44px;
  padding: 0 7px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  color: var(--cp-slate);
}
.cp-sheet__tab[aria-selected="true"] { background: var(--cp-ink); color: var(--cp-white); }
.cp-sheet__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-ice);
  display: none;
  place-items: center;
}
/* Phones: a two-column list of wide cards (icon left, name + price right) so Dutch compound names
   ("Snackkraam", "Informatiekiosk") fit on one line at 15 px instead of breaking mid-word.
   The desktop side panel (below) uses tall cards in three columns. */
.cp-sheet__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  /* Two rows plus a peek of the third; a longer tab scrolls inside the sheet (phones: see below). */
  max-height: 142px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cp-card {
  min-height: 54px;
  padding: 6px 8px 6px 6px;
  border: 0;
  border-radius: 14px;
  background: var(--cp-cream);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-align: left;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-accent) 30%, transparent);
}
.cp-card.is-active { background: color-mix(in srgb, var(--cp-accent2) 25%, var(--cp-white)); box-shadow: inset 0 0 0 3px var(--cp-accent2); }
.cp-card.is-locked { background: color-mix(in srgb, var(--cp-peri) 25%, var(--cp-white)); color: var(--cp-slate); box-shadow: none; }
.cp-card__icon { flex: none; color: var(--cp-ink); }
.cp-card.is-locked .cp-card__icon { color: var(--cp-slate); }
.cp-card__text { flex: 1 1 auto; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 1px; } /* max-width: in the column card of wide screens a long single word made this box wider than its card */
/* Words never break (build-bar.js shrinks a too-long single word instead); .is-squeezed is the
   last resort when even NAME_MIN_PX does not fit. */
.cp-card__name { display: block; max-width: 100%; font-size: 15px; font-weight: 800; line-height: 1.15; overflow: hidden; overflow-wrap: normal; } /* max-width: a centred name (wide screens, align-items: center) may not grow past its card, or build-bar.js cannot see that it overflows (owner 2026-11-11: names cut off) */
.cp-card__name.is-squeezed { overflow-wrap: anywhere; }
.cp-card__cost { font-size: 15px; font-weight: 700; color: var(--cp-slate); font-variant-numeric: tabular-nums; }
.cp-card__cost.cp-card__free { color: #1f9d55; } /* "Gratis" in the free-build park (ui/build-bar.js cardCost) */

/* ---------------------------------------------------------------- toasts */
.cp-toasts {
  position: absolute;
  top: calc(var(--cp-safe-t) + 60px);
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  pointer-events: none !important;
}
.cp-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(440px, 100%);
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
  font-weight: 700;
  animation: cp-toast-in 0.18s ease-out;
}
.cp-toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s; }
/* A sticky toast (a reward that did not arrive): it takes taps for its close button and stays until that is tapped. */
.cp-toast.is-sticky { pointer-events: auto; align-items: flex-start; padding-right: 6px; }
.cp-toast.is-sticky .cp-toast__text { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.cp-toast__close { flex: none; width: 44px; height: 44px; min-height: 44px; margin: -6px 0 -6px 4px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.cp-toast__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cp-ice); color: var(--cp-ink); }
.cp-toast--success .cp-toast__icon { background: var(--cp-ok); color: var(--cp-white); }
.cp-toast--warning .cp-toast__icon, .cp-toast--error .cp-toast__icon { background: var(--cp-bad); color: var(--cp-white); }
@keyframes cp-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- dialogs */
.cp-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--cp-text) 35%, transparent);
  pointer-events: auto;
  z-index: 10;
}
.cp-dialog {
  width: min(360px, 100%);
  padding: 20px;
  border-radius: 20px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
}
.cp-dialog__title { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.cp-dialog__body { margin: 0 0 18px; font-size: 16px; line-height: 1.4; white-space: pre-line; } /* (pre-line: a body may break its line, "Kramen bij uitgangen" puts its price on a line of its own) */
.cp-dialog__actions { display: flex; gap: 10px; justify-content: flex-end; }
.cp-dialog__actions .cp-btn { flex: 1 1 0; }

/* ---------------------------------------------------------------- overlays (loading, error) */
.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: calc(var(--cp-safe-t) + 16px) 16px calc(var(--cp-safe-b) + 16px);
  background: linear-gradient(180deg, var(--cp-sky-top) 0%, var(--cp-sky-mid) 45%, var(--cp-sky-bottom) 100%);
  pointer-events: auto;
}
.cp-loading { width: min(320px, 100%); text-align: center; }
.cp-loading__title { margin: 0 0 18px; font-size: 34px; font-weight: 900; color: var(--cp-white); text-shadow: 0 3px 0 color-mix(in srgb, var(--cp-ink) 45%, transparent); }
.cp-loading__bar { height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--cp-white) 70%, transparent); overflow: hidden; box-shadow: inset 0 2px 0 color-mix(in srgb, var(--cp-ink) 12%, transparent); }
.cp-loading__fill { display: block; width: 4%; height: 100%; border-radius: 999px; background: var(--cp-accent); transition: width 0.2s; }
.cp-loading__text { margin: 12px 0 0; font-weight: 700; color: var(--cp-ink); }
.cp-error { width: min(400px, 100%); padding: 22px; border-radius: 20px; background: var(--cp-panel); box-shadow: var(--cp-shadow); }
.cp-error__title { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.cp-error__body { margin: 0 0 16px; line-height: 1.45; }
.cp-error__details { margin-top: 14px; font-size: 13px; color: var(--cp-slate); }
.cp-error__details pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30vh; overflow: auto; }
/* Maintenance (server away for a deploy/restart; ui/error-screen.js): above the loading overlay. */
.cp-overlay--maintenance { z-index: 61; overflow-y: auto; }
.cp-maintenance { width: min(400px, 100%); padding: 18px 22px 22px; border-radius: 20px; background: var(--cp-panel); box-shadow: var(--cp-shadow); text-align: center; }
.cp-maintenance__logo { margin: 0 auto 10px; max-width: 280px; font-size: 28px; font-weight: 900; }
.cp-maintenance__title { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.cp-maintenance__body { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.cp-maintenance__safe { margin: 0 0 14px; line-height: 1.45; color: var(--cp-slate); }
.cp-maintenance__status { margin: 0 0 14px; min-height: 1.4em; font-size: 14px; color: var(--cp-slate); }
.cp-maintenance__retry { width: 100%; min-height: 48px; }
/* One active game per account (B15, ui/takeover.js): the takeover question and the stop screen, above the
   game, the loading overlay and the maintenance screen. */
.cp-overlay--takeover { z-index: 62; overflow-y: auto; }
.cp-takeover { width: min(400px, 100%); padding: 18px 22px 22px; border-radius: 20px; background: var(--cp-panel); box-shadow: var(--cp-shadow); text-align: center; }
.cp-takeover__logo { margin: 0 auto 10px; max-width: 280px; font-size: 28px; font-weight: 900; }
.cp-takeover__title { margin: 0 0 8px; font-size: 24px; font-weight: 900; line-height: 1.2; }
.cp-takeover__body { margin: 0 0 18px; font-size: 16px; line-height: 1.45; color: var(--cp-slate); }
.cp-takeover__actions { display: grid; gap: 10px; }
.cp-takeover__actions .cp-btn { width: 100%; min-height: 48px; }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 900px) {
  .cp-bottom { left: 0; right: 0; margin: 0 auto; width: min(760px, calc(100vw - 32px)); padding-left: 0; padding-right: 0; }
  .cp-bar { justify-content: center; gap: 8px; }
  .cp-bar__btn { flex: 0 0 52px; }
  .cp-sheet {
    position: fixed;
    left: 12px;
    top: calc(var(--cp-safe-t) + 64px);
    width: 560px; /* five tabs (Paden .. Decor) need 454 px in Dutch and up to 492 px in Spanish: 560 - 16 padding - 6 gap - 44 close = 494 */
    max-height: calc(100vh - 170px);
  }
  /* The side panel is far from the bar's Bouwen/Sluiten button: give it its own close button. */
  .cp-sheet__close { display: grid; }
  .cp-sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; }
  .cp-card { min-height: 92px; padding: 8px 4px 6px; flex-direction: column; justify-content: flex-start; gap: 3px; text-align: center; }
  .cp-card__text { align-items: center; }
  .cp-card__name { font-size: 14px; }
  .cp-hud { gap: 10px; }
  .cp-hud > .cp-hud__statsroom { flex: 1 0 auto; }
  .cp-hud__stats { gap: 16px; padding: 0 16px; }
}

/* Phones (portrait): the card grid shows at least two full rows of cards plus a group heading
   (Kramen: Eten / Drinken / Voorzieningen) and grows to 44% of the screen minus the fixed parts
   (user 2026-10-16: "the build menu may be bigger, at least 2 rows visible, and scroll"; this
   overrides the 35% coverage of BRIEF 5.9). Fixed parts: HUD band 52 px (8 + 44), bottom padding 6,
   bar 52 (44 + 2 x 4), gap 6, sheet padding 2 x 6 + tabs 44 + gap 6 = 178 px (+ 2 px margin + safe
   areas). Floor 150 px = heading 18 + 2 x 48 px cards + gaps + a peek of the next row. More cards
   scroll inside the grid, whose bottom edge fades out while more are below (.has-more, build-bar.js).
   The tool row hides while the sheet is open (the cards show the active tool), like the ride editor. */
@media (max-width: 899px) {
  .cp-bottom { padding-bottom: calc(var(--cp-safe-b) + 6px); }
  .cp-bar__build, .cp-bar__btn { height: 44px; }
  .cp-sheet { gap: 6px; padding: 6px; max-height: none; }
  .cp-sheet__grid { max-height: max(150px, calc(44vh - 180px - var(--cp-safe-t) - var(--cp-safe-b))); }
  @supports (height: 1dvh) {
    .cp-sheet__grid { max-height: max(150px, calc(44dvh - 180px - var(--cp-safe-t) - var(--cp-safe-b))); }
  }
  .cp-card { min-height: 48px; padding: 4px 8px 4px 6px; }
  .cp-card__name { white-space: nowrap; }
  .cp-card__name.is-wrapped { white-space: normal; }
  .cp-card__cost { line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cp-bottom.has-sheet > .cp-toolrow, .cp-bottom.has-sheet > .cp-gatesides, .cp-bottom.has-sheet > .cp-fill, .cp-bottom.has-sheet > .cp-sponsor { display: none; }
}
/* the path row (ui/path-row.js: the level, the arrows, Over of onder, the path options) hides behind an open build sheet at every width */
.cp-bottom.has-sheet > .cp-prow { display: none; }
.cp-sheet__grid.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
}

/* Short phones (e.g. 320x640): tighter paddings (HUD 50, bar 50, gaps 4: 164 px fixed + 2 margin);
   the grid still shows a heading and two full rows of 46 px cards (floor 124 px). */
@media (max-width: 899px) and (max-height: 700px) {
  .cp-hud { padding-top: calc(var(--cp-safe-t) + 6px); }
  .cp-bottom { gap: 4px; padding-bottom: calc(var(--cp-safe-b) + 4px); }
  .cp-bar { padding: 3px; }
  .cp-sheet { gap: 4px; padding: 4px; }
  .cp-sheet__grid { gap: 4px; max-height: max(124px, calc(42vh - 166px - var(--cp-safe-t) - var(--cp-safe-b))); }
  .cp-card { min-height: 46px; padding-top: 3px; padding-bottom: 3px; }
  .cp-sheet__grid.has-more {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 8px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 8px), transparent);
  }
  @supports (height: 1dvh) {
    .cp-sheet__grid { max-height: max(124px, calc(42dvh - 166px - var(--cp-safe-t) - var(--cp-safe-b))); }
  }
}

/* Phones under ~372 px: the bar (build button + 5 icon buttons of 44 px) does not fit with the
   Bouwen/Sluiten label, so the build button shows only its icon; the label stays in the DOM
   (visually hidden) as the button's accessible name. */
@media (max-width: 371px) {
  .cp-bar__build { position: relative; min-width: 56px; padding: 0; justify-content: center; }
  .cp-bar__buildlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Narrow phones: icon-only confirm (its aria-label keeps the word). */
@media (max-width: 420px) {
  .cp-toolrow__confirm { min-width: 56px; justify-content: center; padding: 0; }
  .cp-toolrow__confirmlabel { display: none; }
}
/* Very narrow phones (320-360 px): slightly smaller tab labels so five tabs still fit uncut. */
@media (max-width: 360px) {
  .cp-sheet__tabs { gap: 2px; }
  .cp-sheet__tab { font-size: 13.5px; padding: 0 4px; }
  .cp-card { padding-left: 5px; padding-right: 5px; gap: 4px; }
  .cp-card__icon .cp-icon { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-hud__stats.is-up, .cp-hud__stats.is-down, .cp-toast { animation: none; }
  .cp-loading__fill { transition: none; }
}

/* ---------------------------------------------------------------- stall cards (docs/api/stalls.md)
   Raster icons (ui/icons.js imageIcon, 64 + 128 px files): 40 px in the 48 px phone list cards, 64 px
   in the desktop side panel. Locked stalls keep their picture (greyed, with a lock badge) so players
   see what is coming; gem stalls show a gem badge and their gem price instead of the euro price.
   The Kramen tab groups its cards under full-width labels (Eten, Drinken, Voorzieningen). */
.cp-card__icon.has-img { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.cp-card__img { display: block; width: 40px; height: 40px; object-fit: contain; -webkit-user-drag: none; }
.cp-card.is-locked:not(.is-gemlocked):not(.is-passlocked) .cp-card__img { filter: grayscale(0.9); opacity: 0.55; }

/* Animated coaster cards (Achtbanen tab; ui/ride-strips.js, theme/default/ride-strips.js): the sprite strip of a family (20 frames side by side) lies
   over the static icon and plays as a CSS steps() animation of the background position (no script per frame): the strip is 20 times as wide as the card
   picture, the position runs from 0 to 20/19 of the way (= one whole strip), 20 steps in 3.6 s (a calm pace: 2 s was too speedy, owner 2026-10-26). The element is always in the layout (an empty, transparent layer: the observer needs it to be rendered); the script paints it (.is-ready: an image
   is there, the static icon steps aside) and adds .is-playing (on screen; also in low quality mode, not with data saver); reduced motion plays nothing. A locked card has no strip at all. */
.cp-card__strip { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 2000% 100%; background-position: 0 0; pointer-events: none; }
.cp-card__icon.has-strip .cp-card__img { visibility: hidden; }
.cp-card__strip.is-playing { animation: cp-strip 3.6s steps(20) infinite; }
@keyframes cp-strip { from { background-position: 0 0; } to { background-position: 105.2632% 0; } }
@media (prefers-reduced-motion: reduce) { .cp-card__strip.is-playing { animation: none; } }

.cp-card__badge {
  position: absolute;
  right: -5px; bottom: -3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cp-slate);
  color: var(--cp-white);
  box-shadow: 0 0 0 2px var(--cp-white);
}
.cp-card__badge.is-gem { background: var(--cp-gem, #6a46c9); }
/* "Heb je al": a placed attraction / coaster family keeps a green check on its card. */
.cp-card__badge.is-owned { background: #2f9e44; }
/* A stall card counts the park's stalls of its kind (2026-10-26): the number in the green badge, a pill when it has two digits. */
.cp-card__badge.is-count { width: auto; min-width: 20px; padding: 0 5px; border-radius: 10px; font-size: 12px; font-weight: 800; line-height: 20px; }
.cp-card__icon.has-badge { position: relative; }
.cp-card.is-gemlocked {
  background: color-mix(in srgb, var(--cp-gem, #6a46c9) 12%, var(--cp-white));
  color: var(--cp-text);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--cp-gem, #6a46c9) 35%, transparent);
}
.cp-card__gems { display: inline-flex; align-items: center; gap: 3px; color: var(--cp-gem, #6a46c9); font-weight: 800; }
.cp-card__gems .cp-icon { flex: none; }
/* A card of the Topia Supportpas ("Kramen bij uitgangen", app/exit-stalls.js): the pass heart (the colour of the pass sheet) and "Supportpas" on the price line. */
.cp-card__badge.is-pass { background: #e0457b; }
.cp-card.is-passlocked {
  background: color-mix(in srgb, #e0457b 10%, var(--cp-white));
  color: var(--cp-text);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, #e0457b 35%, transparent);
}
.cp-card__pass { display: inline-flex; align-items: center; gap: 3px; color: #c2325f; font-weight: 800; }
.cp-card__pass .cp-icon { flex: none; fill: currentColor; }
.cp-sheet__group {
  grid-column: 1 / -1;
  padding: 2px 4px 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-slate);
}
.cp-toolrow__img { display: block; width: 40px; height: 40px; object-fit: contain; }
@media (min-width: 900px) {
  .cp-card__icon.has-img, .cp-card__img { width: 64px; height: 64px; }
  .cp-sheet__group { padding: 6px 4px 0; font-size: 14px; }
  /* A card with a 64 px picture is taller than the 92 px min-height. The side panel's grid is shrunk
     to the panel height and scrolls, so plain auto rows would stay at the min-height and clip the
     price: rows are at least as tall as their content. */
  .cp-sheet__grid { grid-auto-rows: minmax(min-content, auto); }
}
@media (max-width: 360px) {
  .cp-card__icon.has-img, .cp-card__img { width: 36px; height: 36px; }
}
/* Admin link in the HUD menu (owner only, /beheer). */
.cp-menu__admin { display: flex; justify-content: center; text-decoration: none; }

/* ---------------------------------------------------------------- day and night clock (ui/daytime.js) */
/* A small sun / moon with the game clock under the money pill (the HUD row itself is full on phones). */
.cp-day {
  position: absolute;
  top: calc(var(--cp-safe-t) + 8px + 44px + 6px);
  left: calc(var(--cp-safe-l) + 8px);
  display: flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px 0 7px;
  border-radius: 12px;
  background: var(--cp-panel); box-shadow: var(--cp-shadow);
  font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1;
  color: var(--cp-slate);
  pointer-events: none;
}
.cp-day[hidden] { display: none; }
.cp-day__icon { display: grid; place-items: center; color: var(--cp-amber); }
/* The season in the day pill: a coloured icon and its name after the clock. */
.cp-day__seasonbox { display: flex; align-items: center; gap: 4px; margin-left: 4px; padding-left: 8px; border-left: 2px solid rgba(80, 96, 128, 0.18); }
.cp-day__seasonbox[hidden] { display: none; }
.cp-day__seasonicon { display: grid; place-items: center; }
.cp-day__season { font-size: 14px; }
/* Phones: while the free-land pill shows (it floats right, under the money row), the day pill keeps only the season icon so the two never overlap (de, fr: the longest labels). */
@media (max-width: 479px) { .cp-ui:has(.cp-freeland:not([hidden])) .cp-day__season { display: none; } .cp-ui:has(.cp-freeland:not([hidden])) .cp-day__seasonbox { padding-left: 6px; } }
/* The narrowest phones (de: the free-land pill starts at 113 px of 360): the icon goes too, the season stays in the pill's tooltip and label. */
@media (max-width: 369px) { .cp-ui:has(.cp-freeland:not([hidden])) .cp-day__seasonbox { display: none; } }
/* The chips right of the clock start 100 px from the left (css/boost.css), the season makes the clock wider than that: it gives way while they show. */
@media (max-width: 699px) { .cp-ui:has(.cp-boost__chip:not([hidden])) .cp-day__seasonbox { display: none; } }
@media (min-width: 700px) and (max-width: 1099px) { .cp-ui:has(.cp-tvboost__chip:not([hidden])) .cp-day__seasonbox { display: none; } }
.cp-day[data-season="spring"] .cp-day__seasonicon { color: #e8709f; }
.cp-day[data-season="summer"] .cp-day__seasonicon { color: #f2a62a; }
.cp-day[data-season="autumn"] .cp-day__seasonicon { color: #e0701f; }
.cp-day[data-season="winter"] .cp-day__seasonicon { color: #4f9fd8; }
.cp-day.is-night .cp-day__icon { color: #6f86cc; }
.cp-day.is-warm .cp-day__icon { color: #ff9744; }
@media (max-width: 899px) and (max-height: 520px) { .cp-day { top: calc(var(--cp-safe-t) + 6px + 44px + 4px); } }

/* 'Kwaliteit' in the Menu (perf phase 1, 2026-11-01): the label and a native select (Automatisch / Hoog / Laag / Zuinig) */
.cp-menu__quality { justify-content: space-between; }
.cp-menu__quality > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cp-menu__select { flex: 0 1 auto; min-width: 0; max-width: 64%; min-height: 44px; padding: 0 10px; border: 2px solid var(--cp-ice); border-radius: 12px; background: var(--cp-white); color: var(--cp-text); font: inherit; font-weight: 700; cursor: pointer; }
.cp-menu__select:focus-visible { outline: 3px solid var(--cp-accent2); outline-offset: 2px; }

/* ---------------------------------------------------------------- first-ride steps strip (ui/first-ride-coach.js) */
/* Lives at the top of the bottom column, so it stands right above the bar and never over the HUD or the goal chip. It hides while the build sheet or a tool is open
   (.is-building) and while a window or dialog is open (the :has() rules are the instant part; the script's isBusy covers the rest at its next look). */
.cp-coach {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 8px 8px 8px 14px; border-radius: 16px;
  background: var(--cp-panel); box-shadow: var(--cp-shadow);
}
.cp-coach[hidden] { display: none; }
.cp-coach__text { flex: 1 1 150px; min-width: 0; font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--cp-text); }
.cp-coach__go { flex: 0 0 auto; min-height: 44px; padding: 0 14px; }
.cp-coach__go[hidden] { display: none; }
.cp-coach__close { flex: 0 0 auto; width: 44px; height: 44px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--cp-slate); }
.cp-ui.is-building .cp-coach,
.cp-ui:has(.cp-ridewin:not([hidden]), .cp-ridechoice:not([hidden]), .cp-guestwin:not([hidden]), .cp-menu:not([hidden]), .cp-landcard:not([hidden]), > .cp-modal) .cp-coach { display: none; }

/* The supporter badge (ui/supporter-badge.js): a small heart next to a park name while that account's Topia Supportpas runs (rankings, friends, park visit) */
.cp-supporter { display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: 4px; color: #e0457b; vertical-align: middle; }
.cp-supporter svg { fill: currentColor; }

/* ---------------------------------------------------------------- phones: the HUD is one row (ui/hud.js ONE_ROW_QUERY, max-width 699px) */
/* Owner 2026-11-17 ("Beetje veel zo boven aan", proposal A "1 regel"): the money pill "EUR 7,2 mln . 8.702", the gems pill and the menu in
   one row of 40 px. hud.js sets .is-onerow on the bar, .cp-ui--onerow on the layer and .is-folded on every chip that became a row of the
   money pill's panel (rating, weather, day clock, "Dubbel geld", "Tv-reclame"); from 700 px none of these classes exist, so nothing below
   applies there. Touch targets stay 44 px (an invisible 2 px above and below each 40 px pill). */
.cp-ui .is-folded { display: none !important; }
.cp-hud__badge { display: none; }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__stat, .cp-hud:is(.is-onerow, .is-wide) .cp-hud__menubtn { position: relative; height: 40px; }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__menubtn { width: 42px; }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__stat::after, .cp-hud:is(.is-onerow, .is-wide) .cp-hud__menubtn::after, .cp-hud.is-onerow .cp-bonuschip::after { content: ''; position: absolute; inset: -2px 0; }
.cp-hud.is-onerow .cp-bonuschip { position: relative; width: 40px; height: 40px; min-height: 40px; }
.cp-hud.is-onerow > .cp-hud__statsroom { padding-right: 12px; } /* room for the badge on the pill's corner */
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__stats {
  overflow: visible; /* the badge hangs over the corner; the amount itself still cuts off inside .cp-hud__money */
  gap: 7px;
  padding: 0 13px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cp-hud.is-onerow .cp-hud__stats.has-badge { padding-right: 22px; } /* the count stays clear of the badge */
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__stats:active { transform: translateY(1px); }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__stats:focus-visible { outline: 3px solid var(--cp-accent2); outline-offset: 2px; }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__stats[aria-expanded="true"] { box-shadow: var(--cp-shadow), 0 0 0 3px color-mix(in srgb, var(--cp-accent2) 60%, transparent); }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__money { font-size: 17px; }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__guests { font-size: 16px; }
.cp-hud:is(.is-onerow, .is-wide) .cp-hud__guests::before { content: '\00b7'; margin-right: 3px; color: var(--cp-peri); font-weight: 900; }
/* The badge: the boost that ends first ("x2"), in a ring that runs down with its time (--cp-badge-frac 1..0); "+1" for each other one. */
.cp-hud.is-onerow .cp-hud__badge {
  position: absolute; top: -7px; right: -10px;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: conic-gradient(#e8890c calc(var(--cp-badge-frac, 1) * 1turn), #ffe9b8 0);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--cp-ink) 32%, transparent);
}
.cp-hud.is-onerow .cp-hud__badge[hidden] { display: none; }
.cp-hud__badgedisk {
  display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--cp-amber); color: #7a4e00;
  font-size: 11px; font-weight: 900; line-height: 1; letter-spacing: -0.3px;
}
.cp-hud.is-onerow .cp-hud__badge[data-row="tvboost"] { background: conic-gradient(#3fa7e0 calc(var(--cp-badge-frac, 1) * 1turn), #e3f3fd 0); }
.cp-hud__badge[data-row="tvboost"] .cp-hud__badgedisk { background: #cdeafc; color: #1d5f8a; }
.cp-hud.is-onerow .cp-hud__badge[data-row="sunny"] { background: conic-gradient(#f2b51f calc(var(--cp-badge-frac, 1) * 1turn), #fff1c4 0); }
.cp-hud__badge[data-row="sunny"] .cp-hud__badgedisk { background: #ffe9a3; color: #8a5a00; }
.cp-hud__badgemore {
  position: absolute; right: -8px; bottom: -5px;
  min-width: 17px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--cp-panel); color: var(--cp-slate);
  font-size: 10px; font-weight: 900; line-height: 15px; text-align: center;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--cp-ink) 30%, transparent);
}
.cp-hud__badgemore[hidden] { display: none; }
/* A boost started or a warning came up (rain on its way): three short pulses, so it is not missed now the chip itself is gone. */
.cp-hud__stats.is-pulse { animation: cp-hud-pulse 0.5s ease-out 3; }
.cp-hud__stats.is-pulse .cp-hud__badge { animation: cp-hud-badge-pop 0.5s ease-out 3; }
@keyframes cp-hud-pulse {
  0% { box-shadow: var(--cp-shadow), 0 0 0 0 color-mix(in srgb, var(--cp-amber) 90%, transparent); }
  100% { box-shadow: var(--cp-shadow), 0 0 0 11px color-mix(in srgb, var(--cp-amber) 0%, transparent); }
}
@keyframes cp-hud-badge-pop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } }

/* The panel the money pill opens: one row per thing that left the bar. Rows that open something are buttons of 44 px. */
.cp-hudinfo {
  position: absolute;
  top: calc(var(--cp-safe-t) + 8px + 40px + 7px);
  left: calc(var(--cp-safe-l) + 8px);
  width: min(272px, calc(100% - var(--cp-safe-l) - var(--cp-safe-r) - 16px));
  padding: 6px 8px 9px;
  border-radius: 18px;
  background: var(--cp-panel);
  box-shadow: var(--cp-shadow);
  pointer-events: auto;
  z-index: 6;
  animation: cp-hudinfo-in 0.14s ease-out;
}
.cp-hudinfo[hidden] { display: none; }
@keyframes cp-hudinfo-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.cp-hudinfo__rows { display: flex; flex-direction: column; }
.cp-hudinfo__row {
  display: flex; align-items: center; gap: 9px;
  width: 100%; min-height: 44px; padding: 0 6px;
  border: 0; border-radius: 0; background: none;
  font: inherit; font-size: 16px; font-weight: 800; color: var(--cp-text); text-align: left;
}
.cp-hudinfo__row[hidden] { display: none; }
.cp-hudinfo__row + .cp-hudinfo__row { border-top: 2px solid color-mix(in srgb, var(--cp-ice) 55%, transparent); }
.cp-hudinfo__row.is-link { cursor: pointer; }
.cp-hudinfo__row.is-link:active { background: color-mix(in srgb, var(--cp-ice) 55%, transparent); }
/* every row keeps the arrow's column, so the values line up; only a row that opens something shows the arrow */
.cp-hudinfo__row::after { content: ''; flex: none; width: 9px; margin-left: -2px; color: var(--cp-peri); font-size: 22px; font-weight: 900; line-height: 1; transform: translateY(-2px); }
.cp-hudinfo__row.is-link::after { content: '\203a'; }
.cp-hudinfo__icon { display: grid; place-items: center; flex: none; width: 22px; color: var(--cp-slate); }
.cp-hudinfo__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-hudinfo__value { margin-left: auto; flex: none; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-hudinfo__row[data-row="rating"] .cp-hudinfo__icon { color: var(--cp-amber); }
.cp-hudinfo__row[data-row="rating"] .cp-icon { fill: currentColor; stroke: color-mix(in srgb, var(--cp-amber) 55%, var(--cp-text)); stroke-width: 1.2; }
.cp-hudinfo__row[data-row="boost"] .cp-hudinfo__icon, .cp-hudinfo__row[data-row="boost"] .cp-hudinfo__value { color: #8a5a00; }
.cp-hudinfo__row[data-row="tvboost"] .cp-hudinfo__icon, .cp-hudinfo__row[data-row="tvboost"] .cp-hudinfo__value { color: #1d5f8a; }
.cp-hudinfo__row[data-row="sunny"] .cp-hudinfo__icon, .cp-hudinfo__row[data-row="sunny"] .cp-hudinfo__value { color: #b87400; }
.cp-hudinfo__row[data-tone="day"] .cp-hudinfo__icon { color: #f2a62a; }
.cp-hudinfo__row[data-tone="night"] .cp-hudinfo__icon { color: #6f86cc; }
.cp-hudinfo__row[data-tone="rain"] .cp-hudinfo__icon, .cp-hudinfo__row[data-tone="rain"] .cp-hudinfo__label { color: #3f6fb5; }
.cp-hudinfo__row[data-tone="spring"] .cp-hudinfo__icon { color: #e8709f; }
.cp-hudinfo__row[data-tone="summer"] .cp-hudinfo__icon { color: #f2a62a; }
.cp-hudinfo__row[data-tone="autumn"] .cp-hudinfo__icon { color: #e0701f; }
.cp-hudinfo__row[data-tone="winter"] .cp-hudinfo__icon { color: #4f9fd8; }
.cp-hudinfo__hint { margin: 5px 6px 0; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--cp-slate); }
@media (max-width: 899px) and (max-height: 700px) { .cp-hudinfo { top: calc(var(--cp-safe-t) + 6px + 40px + 7px); } }
/* Narrow phones (360 px Androids): tighter spacing, so "EUR 7,2 mln . 8.702" with a badge still fits next to the gems pill and the menu.
   If it does not (320 px with a long amount), hud.js fitMoney shortens the amount and then drops the count; the panel always has it. */
@media (max-width: 389px) {
  .cp-hud.is-onerow { gap: 5px; }
  .cp-hud.is-onerow > .cp-hud__statsroom { padding-right: 10px; }
  .cp-hud.is-onerow .cp-hud__stats { gap: 5px; padding: 0 10px; }
  .cp-hud.is-onerow .cp-hud__stats.has-badge { padding-right: 19px; }
  .cp-hud.is-onerow .cp-hud__guests::before { margin-right: 2px; }
  .cp-hud.is-onerow .cp-gems__pill { gap: 4px; padding: 0 9px 0 6px; }
  .cp-hud.is-onerow .cp-hud__menubtn { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-hudinfo, .cp-hud__stats.is-pulse .cp-hud__badge { animation: none; }
  .cp-hud__stats.is-pulse { animation: none; box-shadow: var(--cp-shadow), 0 0 0 4px color-mix(in srgb, var(--cp-amber) 80%, transparent); }
}

/* ---------------------------------------------------------------- tablets and desktops: the HUD is one left row (ui/hud.js WIDE_QUERY, min-width 700px) */
/* Owner 2026-11-18 ("Bovenkant van B"): hud.js sets .is-wide on the bar from 700 px and builds .cp-hud__leftbox: the money chip with guests and rating
   ("EUR 11,2 mln . 9.050 . star 816", the phone's chip style above), the time chip (ui/time-chip.js) and a running Dubbel geld / Tv-reclame as small
   chips. The right side is the gems pill and the menu. A narrow window lets the chips wrap under the money chip (flex-wrap), never over the right side. */
.cp-hud__timechip, .cp-hud__ratingseg { display: none; }
.cp-hud.is-wide { align-items: flex-start; }
.cp-hud.is-wide > .cp-hud__leftbox { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; pointer-events: none; }
.cp-hud.is-wide > .cp-hud__leftbox > * { pointer-events: auto; }
.cp-hud.is-wide .cp-hud__leftbox > .cp-hud__statsroom { flex: none; min-width: 0; max-width: 100%; }
.cp-hud.is-wide .cp-hud__stats { flex: none; margin-right: 0; }
.cp-hud.is-wide .cp-hud__stats.is-cramped .cp-hud__guests { display: flex; }
.cp-hud.is-wide .cp-hud__extra > * { flex: none; }
.cp-hud.is-wide .cp-hud__ratingseg { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; line-height: 1.1; color: var(--cp-text); }
.cp-hud.is-wide .cp-hud__ratingseg[hidden] { display: none; }
.cp-hud.is-wide .cp-hud__ratingseg::before { content: '\00b7'; margin-right: 3px; color: var(--cp-peri); font-weight: 900; }
.cp-hud.is-wide .cp-hud__timechip { display: flex; gap: 8px; padding: 0 12px; font-size: 15px; font-weight: 800; color: var(--cp-text); }
.cp-hud.is-wide .cp-hud__timechip[hidden] { display: none; }
.cp-timechip__part { display: flex; align-items: center; gap: 5px; }
.cp-timechip__part[hidden] { display: none; }
.cp-timechip__icon { display: grid; place-items: center; }
.cp-timechip__part + .cp-timechip__part::before { content: '\00b7'; margin-right: 3px; color: var(--cp-peri); font-weight: 900; }
.cp-timechip__part--time .cp-timechip__icon { color: #f2a62a; }
.cp-hud__timechip.is-night .cp-timechip__part--time .cp-timechip__icon { color: #6f86cc; }
.cp-hud__timechip[data-season="spring"] .cp-timechip__part--season .cp-timechip__icon { color: #e8709f; }
.cp-hud__timechip[data-season="summer"] .cp-timechip__part--season .cp-timechip__icon { color: #f2a62a; }
.cp-hud__timechip[data-season="autumn"] .cp-timechip__part--season .cp-timechip__icon { color: #e0701f; }
.cp-hud__timechip[data-season="winter"] .cp-timechip__part--season .cp-timechip__icon { color: #4f9fd8; }
.cp-timechip__part--weather { color: var(--cp-slate); }
.cp-timechip__part--weather[data-mode="rain"] { color: #3f6fb5; }
.cp-timechip__part--weather[data-mode="sunny"] { color: #b87400; }
.cp-timechip__part--weather .cp-timechip__icon { color: currentColor; }
/* the boost chips are small in this row: "x2 . 58:46" (no word), "Tv-reclame . 11:42:00" (no effect line) */
.cp-hud.is-wide .cp-boost__word { display: none; }
.cp-hud.is-wide .cp-boost__chip, .cp-hud.is-wide .cp-tvboost__chip { padding: 0 10px 0 8px; border-radius: 14px; }
.cp-hud.is-wide .cp-tvboost__chip { top: auto; left: auto; } /* (below 1100 px css/boost.css floats it under the old day clock) */
.cp-hud.is-wide .cp-tvboost__effect { display: none; }
.cp-hud.is-wide .cp-tvboost__chipicon svg { width: 20px; height: 20px; }
.cp-hud.is-wide .cp-sunny__chip { padding: 0 10px 0 8px; border-radius: 14px; }
.cp-hud.is-wide .cp-sunny__chipicon svg { width: 20px; height: 20px; }
/* the info panel (a tap on the money chip) under the left row, as on the phone */
.cp-ui--wide .cp-hudinfo { width: 300px; }

/* ---------------------------------------------------------------- the bottom bar is a short pill (ui/build-bar.js PILL_QUERY, phones; from 2026-11-18 every width) */
/* Owner 2026-11-17 (mockup "Optie B, kort balkje in het midden"): build-bar.js sets .is-pill on .cp-bottom (and .is-phone below 700 px). Owner 2026-11-18
   ("Onderkant van A") the same pill on tablets and desktops, with the rotate buttons after a divider (.cp-bar__rot; a mouse has no twist). The pill is 50 px high and sits in the middle with Bouwen, the goal ring and the event item
   (40 px buttons, 44 px to tap through an invisible 2 px edge); the park shows left and right of it. The camera buttons are not in the
   DOM there (two fingers turn the park). While the build sheet is open the bar is as wide as the sheet: Sluiten left, the eye with its
   text label right (the goal ring and the event item hide while building: windows.css / events.css .is-building). */
.cp-bar__btnicon { display: grid; place-items: center; }
.cp-bar__btnlabel { display: none; }
.cp-bottom.is-pill > .cp-bar { align-self: center; max-width: 100%; box-sizing: border-box; height: 50px; padding: 5px; gap: 4px; justify-content: center; border-radius: 19px; }
@media (max-width: 899px) { .cp-bottom.is-pill.has-sheet > .cp-bar { align-self: stretch; justify-content: space-between; } }
/* from 700 px: the camera buttons (40 px, like the other buttons of the pill) after a divider; no pill on desktop is wider than its buttons */
.cp-bottom.is-pill .cp-bar__rot { flex: 0 0 40px; width: 40px; height: 40px; }
.cp-bottom.is-pill .cp-bar__rot.is-first { position: relative; margin-left: 9px; }
.cp-bottom.is-pill .cp-bar__rot.is-first::before { content: ''; position: absolute; left: -7px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--cp-peri) 45%, transparent); }
.cp-bottom.is-pill .cp-bar__build { position: relative; flex: none; height: 40px; min-width: 0; padding: 0 14px 0 10px; justify-content: flex-start; }
.cp-bottom.is-pill .cp-bar__buildlabel { position: static; width: auto; height: auto; clip-path: none; }
.cp-bottom.is-pill .cp-bar .cp-goalchip { position: relative; width: 40px; height: 40px; }
.cp-bottom.is-pill .cp-bar .cp-actions__pill { position: relative; height: 40px; min-width: 40px; }
.cp-bottom.is-pill .cp-bar__build::after, .cp-bottom.is-pill .cp-bar .cp-goalchip::after, .cp-bottom.is-pill .cp-bar .cp-actions__pill::after, .cp-bottom.is-pill .cp-bar__scenery::after { content: ''; position: absolute; inset: -2px; }
.cp-bottom.is-pill .cp-bar__scenery {
  position: relative; flex: 0 1 auto; min-width: 44px; max-width: none; height: 40px; padding: 0 12px 0 10px;
  display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--cp-text);
}
.cp-bottom.is-pill .cp-bar__scenery .cp-bar__btnicon { flex: none; color: var(--cp-slate); }
.cp-bottom.is-pill .cp-bar__scenery[aria-pressed="true"] .cp-bar__btnicon { color: var(--cp-accent2); }
/* a long label (it "Nascondi decorazioni" on 320 px) takes two lines instead of being cut off */
.cp-bottom.is-pill .cp-bar__btnlabel { display: block; min-width: 0; line-height: 1.1; text-align: left; }

/* The one-time tip "Draai je park met twee vingers" (ui/twist-tip.js): a bright pill above the bottom bar; a tap closes it. */
.cp-twisttip {
  align-self: center; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 6px 16px 6px 10px; border: 0; border-radius: 22px;
  display: flex; align-items: center; gap: 8px; background: var(--cp-panel); color: var(--cp-text); box-shadow: var(--cp-shadow);
  font-size: 15px; font-weight: 800; line-height: 1.2; text-align: left; animation: cp-twisttip-in 0.25s ease-out;
}
.cp-twisttip__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cp-amber) 35%, var(--cp-white)); }
.cp-twisttip__icon svg { animation: cp-twisttip-turn 2.4s ease-in-out infinite; }
.cp-bottom.has-sheet > .cp-twisttip { display: none; }
@keyframes cp-twisttip-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes cp-twisttip-turn { 0%, 20% { transform: rotate(0); } 60%, 100% { transform: rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .cp-twisttip, .cp-twisttip__icon svg { animation: none; } }

/* A confirm with a picture (ui/confirm.js `image`): what the player gets, big, between the title and the text */
.cp-dialog__pic { display: grid; place-items: center; margin: 0 0 10px; }
.cp-dialog__img { display: block; width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(47, 79, 122, 0.12)); }
@media (max-height: 520px) { .cp-dialog__img { width: 80px; height: 80px; } }

/* A tab strip with more tabs than fit fades at the edge that has more behind it (ui/build-bar.js updateTabFade) */
.cp-sheet__tabs.has-more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.cp-sheet__tabs.has-more-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.cp-sheet__tabs.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
/* a group heading with a small icon (the pass heart of "Supportpas") */
.cp-sheet__group:has(.cp-icon) { display: flex; align-items: center; gap: 5px; }
.cp-sheet__group .cp-icon { flex: none; color: #c2325f; }
/* the heading as a button (its heart opens the Supportpas sheet, ui/build-bar.js): the look of the plain heading, a hand and a soft hover */
button.cp-sheet__group.is-link { justify-self: start; margin: 0; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 800; text-align: left; cursor: pointer; }
button.cp-sheet__group.is-link:hover, button.cp-sheet__group.is-link:focus-visible { color: #c2325f; background: color-mix(in srgb, #e0457b 10%, transparent); }
@media (min-width: 900px) { button.cp-sheet__group.is-link { font-size: 14px; } }
/* the pass hearts next to park names and on the free park (ui/pass-link.js): a tap opens the Supportpas sheet */
.cp-pass-links [data-pass-link] { cursor: pointer; }
.cp-pass-links .cp-supporter[data-pass-link]:hover { transform: scale(1.15); }
