/* ==========================================================================
   CITY HELPERS — ch.css: every UI style (menus + HUD).
   Bright, rounded, high contrast; everything is sized in em from a root size that follows the viewport
   (720p → 4K). System rounded fonts only (no web fonts, works offline).
   ========================================================================== */
:root {
  --ink: #1d2b53; --yellow: #ffd23f; --sky: #8fd3ff; --horizon: #ffe3b8; --good: #3ddc84; --red: #ff3b30;
  --blue: #2f6bff; --purple: #7d5cff; --orange: #ff8a5c; --white: #ffffff; --cream: #fff8e7; --mist: #e8eef8;
  --bw: 0.2em; --r: 1.2em; --lift: 0 0.32em 0 var(--ink);
  --font: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Varela Round', 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: max(12px, min(2.3vh, 1.32vw));
}
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--sky); font-family: var(--font); color: var(--ink); -webkit-user-select: none; user-select: none; }
#ch-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
body[data-state="play"] #ch-canvas { cursor: crosshair; }

/* ---------------------------------------------------------------- loading */
.ch-loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 30;
  background: linear-gradient(180deg, var(--sky), var(--horizon)); font-size: 2.2em; font-weight: 800; letter-spacing: 0.02em; transition: opacity .4s; }
.ch-loading.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.ch-loading.is-error { font-size: 1.4em; padding: 2em; text-align: center; background: var(--cream); }

/* ---------------------------------------------------------------- icons */
.ch-ico { width: 1.6em; height: 1.6em; flex: none; display: block; overflow: visible; }

/* ---------------------------------------------------------------- menu layer */
.ch-ui { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 2.4em 3em; box-sizing: border-box; }
.ch-ui.is-open { display: flex; }
.ch-ui[data-screen="title"] { background: radial-gradient(ellipse at 50% 42%, rgba(255,255,255,0.0) 35%, rgba(29,43,83,0.28) 100%); }
.ch-ui[data-screen="mode"], .ch-ui[data-screen="helpers"], .ch-ui[data-screen="settings"], .ch-ui[data-screen="wheel"] {
  background: linear-gradient(180deg, rgba(143,211,255,0.72), rgba(255,227,184,0.78)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ch-ui[data-screen="pause"], .ch-ui[data-screen="wheelOffer"] { background: rgba(29,43,83,0.42); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
body[data-state="pause"] .ch-ui[data-screen="helpers"], body[data-state="pause"] .ch-ui[data-screen="settings"], body[data-state="pause"] .ch-ui[data-screen="wheel"] { background: rgba(29,43,83,0.42); }
.ch-screen { width: 100%; max-width: 96em; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.6em; animation: ch-in .35s cubic-bezier(.2,1.4,.4,1); }
.ch-row { display: flex; flex-wrap: wrap; gap: 1.4em; justify-content: center; align-items: stretch; }
.ch-row-big { gap: 3em; }

.ch-head { width: 100%; display: flex; align-items: center; gap: 1.2em; }
.ch-head-text { flex: 1; text-align: center; padding-right: 4.6em; }
.ch-head h2 { margin: 0; font-size: 2.6em; font-weight: 900; color: var(--white); -webkit-text-stroke: 0.09em var(--ink); paint-order: stroke fill; text-shadow: 0 0.09em 0 var(--ink); letter-spacing: 0.01em; }
.ch-head p { margin: 0.35em 0 0; font-size: 1.05em; font-weight: 700; opacity: 0.85; }

/* ---------------------------------------------------------------- buttons */
.ch-btn { position: relative; font: inherit; font-weight: 800; color: var(--ink); background: var(--white); border: var(--bw) solid var(--ink);
  border-radius: var(--r); box-shadow: var(--lift); padding: 0.7em 1.3em; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  cursor: pointer; outline: none; transition: transform .14s cubic-bezier(.3,1.6,.5,1), box-shadow .14s; -webkit-tap-highlight-color: transparent; font-size: 1.15em; }
.ch-btn .ch-ico { width: 1.7em; height: 1.7em; }
.ch-btn.is-focus { transform: translateY(-0.18em) scale(1.06); box-shadow: 0 0 0 0.22em var(--white), 0 0 0 0.46em var(--yellow), 0 0.5em 0 var(--ink); z-index: 2; }
.ch-btn.is-press { animation: ch-press .26s ease-out; }
.ch-btn:active { transform: translateY(0.18em); box-shadow: 0 0.1em 0 var(--ink); }
.ch-btn-round { width: 4.4em; height: 4.4em; border-radius: 50%; padding: 0; flex: none; }
.ch-btn-round .ch-ico { width: 2.3em; height: 2.3em; }
.ch-btn-wide { min-width: 11em; padding: 0.8em 1.5em; font-size: 1.2em; }
.ch-btn-go { background: var(--good); }
.ch-btn-small { font-size: 1em; padding: 0.55em 1em; }

/* hold to open */
.ch-hold-ring { position: absolute; left: 0.9em; right: 0.9em; bottom: 0.32em; height: 0.34em; border-radius: 1em; background: rgba(29,43,83,0.14); overflow: hidden; pointer-events: none; }
.ch-hold-ring::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--hold, 0) * 100%); background: var(--good); border-radius: inherit; }
.ch-hold.is-holding { animation: ch-wiggle .5s ease-in-out infinite; }

/* ---------------------------------------------------------------- title */
.ch-title { justify-content: space-between; height: 100%; gap: 1em; }
.ch-title-top { display: flex; flex-direction: column; align-items: center; gap: 0.2em; margin-top: 0.5em; }
.ch-title-helpers { display: flex; gap: 0.6em; margin-bottom: -0.3em; }
.ch-title-face { width: 5.2em; height: 5.2em; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--ink); box-shadow: 0 0.25em 0 var(--ink); overflow: hidden; animation: ch-peek 3.2s ease-in-out infinite; }
.ch-title-face:nth-child(2) { animation-delay: .25s; } .ch-title-face:nth-child(3) { animation-delay: .5s; } .ch-title-face:nth-child(4) { animation-delay: .75s; } .ch-title-face:nth-child(5) { animation-delay: 1s; }
.ch-title-face .ch-portrait { width: 100%; height: 100%; display: block; }
.ch-logo { margin: 0; font-size: 6em; line-height: 1; font-weight: 900; color: var(--yellow); -webkit-text-stroke: 0.075em var(--ink); paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink), 0 0.13em 0 rgba(29,43,83,0.25); letter-spacing: 0.01em; text-align: center; transform: rotate(-2deg); }
.ch-tagline { margin: 0.3em 0 0; font-size: 1.5em; font-weight: 800; color: var(--white); -webkit-text-stroke: 0.12em var(--ink); paint-order: stroke fill; text-align: center; }
.ch-play { width: 11.5em; height: 11.5em; border-radius: 50%; flex-direction: column; gap: 0.1em; background: var(--good); font-size: 1.25em; border-width: 0.28em; box-shadow: 0 0.45em 0 var(--ink); animation: ch-pulse 1.6s ease-in-out infinite; }
.ch-play .ch-ico { width: 5.4em; height: 5.4em; margin-left: 0.5em; }
.ch-play .ch-btn-label { font-size: 1.8em; font-weight: 900; letter-spacing: 0.06em; }
.ch-play.is-focus { animation: ch-pulse 1.2s ease-in-out infinite; }
.ch-title-foot { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.ch-title-btns { gap: 0.8em; align-items: flex-end; }
.ch-install { background: #c9f7dc; }
.ch-devices { display: flex; gap: 0.6em; flex-wrap: wrap; }
.ch-chip { display: inline-flex; align-items: center; gap: 0.45em; background: rgba(255,255,255,0.92); border: var(--bw) solid var(--ink); border-radius: 2em; padding: 0.3em 0.9em 0.3em 0.45em; font-weight: 800; }
.ch-chip.is-dim { opacity: 0.85; font-weight: 700; }
.ch-chip .ch-ico { width: 1.6em; height: 1.6em; }

/* ---------------------------------------------------------------- cards (mode, helpers, pause) */
.ch-card { flex-direction: column; background: var(--c, var(--white)); padding: 1.2em 1.2em 1em; border-radius: 1.6em; border-width: 0.25em; min-width: 12em; gap: 0.6em; }
.ch-card .ch-btn-label { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 2em; padding: 0.25em 0.9em; font-size: 1.25em; font-weight: 900; white-space: nowrap; }
.ch-mode { width: 19em; padding: 2em 1.6em 1.4em; }
.ch-mode .ch-ico { width: 10em; height: 10em; }
.ch-mode .ch-btn-label { font-size: 1.7em; }
.ch-helper-row { gap: 1.1em; flex-wrap: nowrap; width: 100%; }
.ch-helper { flex: 1 1 0; min-width: 0; max-width: 15em; padding: 1em 0.7em 0.9em; }
.ch-helper .ch-btn-label { white-space: normal; text-align: center; font-size: 1.1em; line-height: 1.15; }
.ch-helper-art { display: block; width: 100%; max-width: 11em; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--white); border: var(--bw) solid var(--ink); overflow: hidden; position: relative; box-sizing: border-box; }
.ch-helper-art .ch-portrait { width: 100%; height: 100%; display: block; }
.ch-helper-badge { position: absolute; top: 0.6em; right: 0.6em; width: 3em; height: 3em; border-radius: 50%; background: var(--white); border: var(--bw) solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-helper-badge .ch-ico { width: 2.4em; height: 2.4em; }
.ch-helper.is-current::after { content: '★'; position: absolute; top: -0.5em; left: -0.4em; font-size: 2.2em; color: var(--yellow); -webkit-text-stroke: 0.06em var(--ink); }
.ch-helper.is-focus .ch-helper-art .ch-portrait { animation: ch-nod 1s ease-in-out infinite; }

/* ---------------------------------------------------------------- settings */
.ch-settings { max-width: 84em; }
.ch-set-list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9em 1.6em; overflow-y: auto; max-height: 60vh; padding: 0.8em 0.6em 1em; box-sizing: border-box; }
.ch-set-list { scrollbar-width: thin; scrollbar-color: var(--ink) rgba(255,255,255,0.5); }
.ch-set-list::-webkit-scrollbar { width: 0.7em; }
.ch-set-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.5); border-radius: 1em; }
.ch-set-list::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 1em; border: 0.15em solid rgba(255,255,255,0.6); }
.ch-set-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; background: rgba(255,255,255,0.88); border: var(--bw) solid var(--ink); border-radius: 1.1em; padding: 0.55em 0.7em 0.55em 0.9em; }
.ch-set-name { display: flex; align-items: center; gap: 0.5em; font-weight: 900; font-size: 1.1em; white-space: nowrap; }
.ch-seg { display: flex; gap: 0.45em; flex-wrap: wrap; justify-content: flex-end; }
.ch-seg-btn { padding: 0.45em 0.8em; font-size: 1em; border-radius: 0.9em; box-shadow: 0 0.22em 0 var(--ink); background: var(--mist); }
.ch-seg-btn.is-on { background: var(--yellow); }
.ch-seg-btn.is-on::before { content: '✓'; margin-right: -0.1em; }
.ch-set-foot { margin-top: 0.2em; }
/* Grown-ups → Controls: two columns of small rows (buttons, then words) */
.ch-ctl-list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4em; overflow-y: auto; max-height: 70vh; padding: 0.2em 0.6em; box-sizing: border-box; font-size: 0.7em; }
.ch-ctl-col { display: flex; flex-direction: column; gap: 0.3em; } .ch-ctl-col h3 { margin: 0.1em 0 0.15em; font-size: 1.15em; }
.ch-ctl-row { display: flex; align-items: center; gap: 0.7em; background: rgba(255,255,255,0.88); border: var(--bw) solid var(--ink); border-radius: 0.9em; padding: 0.12em 0.7em; font-weight: 800; }
.ch-ctl-keys { display: flex; align-items: center; gap: 0.25em; flex: none; min-width: 8.2em; } .ch-ctl-kb { font-style: normal; font-size: 0.78em; opacity: 0.7; margin-right: 0.35em; }

/* ---------------------------------------------------------------- wheel setup */
.ch-wheel { max-width: 84em; gap: 1.1em; }
.ch-wheel-devices { display: flex; gap: 0.7em; flex-wrap: wrap; justify-content: center; min-height: 2.6em; }
.ch-chip-btn { border-radius: 2em; padding: 0.35em 1em 0.35em 0.5em; font-size: 1em; box-shadow: 0 0.22em 0 var(--ink); background: var(--mist); }
.ch-chip-btn.is-on { background: var(--yellow); }
.ch-wheel-body { width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4em; }
.ch-wheel-step { display: flex; gap: 1.2em; align-items: center; background: var(--white); border: 0.25em solid var(--ink); border-radius: 1.6em; padding: 1.2em 1.4em; box-shadow: var(--lift); min-height: 12em; }
.ch-step-icon { width: 8.5em; height: 8.5em; flex: none; border-radius: 50%; background: var(--cream); border: var(--bw) solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-step-icon .ch-ico { width: 6.2em; height: 6.2em; }
.ch-step-icon .is-left { animation: ch-turn-left 1.8s ease-in-out infinite; }
.ch-step-icon .is-right { animation: ch-turn-right 1.8s ease-in-out infinite; }
.ch-step-title { font-size: 2em; font-weight: 900; }
.ch-step-text { font-size: 1.35em; font-weight: 800; margin-top: 0.25em; line-height: 1.25; }
.ch-step-msg { font-size: 1.05em; font-weight: 700; margin-top: 0.4em; color: #4a5a85; min-height: 1.3em; }
.ch-step-dots { margin-top: 0.7em; display: flex; flex-wrap: wrap; gap: 0.3em; }
.ch-step-dots i { width: 0.65em; height: 0.65em; border-radius: 50%; background: #d5dbe8; border: 0.1em solid var(--ink); display: inline-block; }
.ch-step-dots i.is-done { background: var(--good); }
.ch-step-dots i.is-now { background: var(--yellow); transform: scale(1.35); }
.ch-meters { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0.8em 1.2em; align-items: center; background: rgba(255,255,255,0.9); border: 0.25em solid var(--ink); border-radius: 1.6em; padding: 1em 1.2em; box-shadow: var(--lift); }
.ch-meter-steer { display: flex; flex-direction: column; align-items: center; gap: 0.7em; }
.ch-meter-wheel { width: 8em; height: 8em; transition: transform .05s linear; }
.ch-meter-wheel .ch-ico { width: 100%; height: 100%; }
.ch-steer-bar { position: relative; width: 100%; height: 0.9em; background: var(--mist); border: var(--bw) solid var(--ink); border-radius: 1em; }
.ch-steer-mid { position: absolute; left: 50%; top: -0.35em; bottom: -0.35em; width: 0.2em; margin-left: -0.1em; background: var(--ink); border-radius: 1em; }
.ch-steer-knob { position: absolute; top: 50%; left: 50%; width: 1.5em; height: 1.5em; margin: -0.75em 0 0 -0.75em; border-radius: 50%; background: var(--yellow); border: var(--bw) solid var(--ink); }
.ch-pedals { display: flex; gap: 0.9em; }
.ch-pedal { display: flex; flex-direction: column; align-items: center; gap: 0.35em; font-weight: 900; }
.ch-pedal-bar { position: relative; width: 2.6em; height: 9em; border-radius: 0.9em; background: var(--mist); border: var(--bw) solid var(--ink); overflow: hidden; }
.ch-pedal-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .05s linear; }
.is-gas .ch-pedal-fill { background: var(--good); }
.is-brake .ch-pedal-fill { background: var(--red); }
.ch-raw { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; font-size: 0.8em; opacity: 0.85; min-height: 1.2em; }
.ch-raw-ax { display: inline-flex; align-items: center; gap: 0.35em; }
.ch-raw-ax i { position: relative; display: inline-block; width: 4em; height: 0.45em; background: #d5dbe8; border-radius: 1em; }
.ch-raw-ax i::after { content: ''; position: absolute; top: -0.2em; width: 0.85em; height: 0.85em; border-radius: 50%; background: var(--blue); left: calc((var(--v) + 1) * 50% - 0.42em); }
.ch-wheel-summary { font-size: 0.95em; display: flex; flex-wrap: wrap; gap: 0.4em 0.8em; justify-content: center; min-height: 1.4em; }
.ch-map-item { background: rgba(255,255,255,0.85); border-radius: 1em; padding: 0.15em 0.6em; border: 0.12em solid var(--ink); }
.ch-map-item em { font-style: normal; font-weight: 900; }
.ch-map-item.is-auto { opacity: 0.7; border-style: dashed; }
/* optional steps (map / blinkers): a grown-up presses the button, or Skip */
.ch-step-opt { display: inline-block; vertical-align: middle; font-size: 0.5em; font-weight: 900; padding: 0.15em 0.7em; margin-left: 0.4em; border-radius: 1em; background: var(--mist); border: 0.14em solid var(--ink); }
.ch-wheel-step.is-optional { background: #f4f8ff; border-style: dashed; }
.ch-wheel-actions { align-items: center; }
.ch-lock { background: rgba(255,255,255,0.8); border: var(--bw) solid var(--ink); border-radius: 1.2em; padding: 0.4em; }

/* ---------------------------------------------------------------- dialogs, pause */
.ch-dialog { background: var(--white); border: 0.28em solid var(--ink); border-radius: 2em; box-shadow: 0 0.5em 0 var(--ink); padding: 2em 2.6em; display: flex; flex-direction: column; align-items: center; gap: 0.8em; max-width: 40em; text-align: center; }
.ch-dialog h2 { margin: 0; font-size: 2.4em; font-weight: 900; }
.ch-dialog p { margin: 0 0 0.6em; font-size: 1.2em; font-weight: 700; line-height: 1.35; }
.ch-dialog-icon .ch-ico { width: 7em; height: 7em; animation: ch-turn-left 2.4s ease-in-out infinite; }
.ch-pause { gap: 2em; }
.ch-pause-head { display: flex; align-items: center; gap: 1em; }
.ch-pause-head h2 { margin: 0; font-size: 3.4em; font-weight: 900; color: var(--white); -webkit-text-stroke: 0.08em var(--ink); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink); }
.ch-pause-face { width: 6em; height: 6em; border-radius: 50%; overflow: hidden; background: var(--c); border: 0.22em solid var(--ink); box-shadow: 0 0.25em 0 var(--ink); }
.ch-pause-face .ch-portrait { width: 100%; height: 100%; display: block; }
.ch-pause-row .ch-card { width: 13em; }
.ch-pause-row .ch-card .ch-ico { width: 6em; height: 6em; }
.ch-pause-big { width: 15em !important; }

/* ---------------------------------------------------------------- HUD */
.ch-hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; transition: opacity .3s; }
.ch-hud.is-off { opacity: 0; }
.ch-hud-top { position: absolute; top: 1.2em; left: 1.2em; right: 1.2em; display: flex; justify-content: center; }
.ch-hud-helper { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.5em; }
.ch-hud-face { width: 4.6em; height: 4.6em; border-radius: 50%; overflow: hidden; background: var(--c, var(--purple)); border: 0.22em solid var(--ink); box-shadow: 0 0.22em 0 var(--ink); }
.ch-hud-face .ch-portrait { width: 100%; height: 100%; display: block; }
.ch-hud-name { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 1.2em; padding: 0.25em 0.9em; font-weight: 900; font-size: 1.1em; max-width: 8.4em; line-height: 1.1; text-align: center; }
.ch-hud-hint { background: var(--white); border: 0.22em solid var(--ink); border-radius: 2em; padding: 0.5em 1.3em; font-size: 1.35em; font-weight: 800; box-shadow: 0 0.22em 0 var(--ink); max-width: 46em; text-align: center; }
.ch-hud-hint.is-pop { animation: ch-pop .35s cubic-bezier(.2,1.6,.4,1); }
.ch-hud-prompt { position: relative; display: flex; align-items: center; gap: 0.55em; background: var(--white); border: 0.24em solid var(--ink); border-radius: 2.4em; padding: 0.45em 1.4em 0.45em 0.55em; box-shadow: 0 0.3em 0 var(--ink); font-size: 1.45em; font-weight: 900; animation: ch-bob 1.4s ease-in-out infinite; white-space: nowrap; }
.ch-hud-prompt .ch-ico { width: 2em; height: 2em; }
.is-hidden { display: none !important; }

.ch-key { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em; padding: 0 0.4em; box-sizing: border-box; border: 0.14em solid var(--ink); border-radius: 0.55em; background: var(--white); font-weight: 900; font-size: 1em; line-height: 1; box-shadow: 0 0.14em 0 var(--ink); }
.ch-key.is-round { border-radius: 50%; padding: 0; width: 1.9em; color: var(--white); -webkit-text-stroke: 0.04em var(--ink); }
.ch-key-a { background: var(--good); } .ch-key-b { background: var(--red); } .ch-key-x { background: var(--blue); } .ch-key-y { background: var(--yellow); color: var(--ink) !important; }
.ch-key.is-shoulder { border-radius: 0.8em 0.8em 0.35em 0.35em; background: var(--mist); }
.ch-key.is-dpad { background: #5a6378; color: var(--white); border-radius: 0.3em; }
.ch-key.is-stick { border-radius: 50%; background: #5a6378; color: var(--white); width: auto; }
.ch-key.is-wheel { background: var(--yellow); border-radius: 1em; }

.ch-hud-drive { position: relative; display: flex; align-items: flex-end; gap: 0.9em; }
.ch-dial { position: relative; width: 15em; height: 8.8em; background: rgba(255,255,255,0.92); border: 0.24em solid var(--ink); border-radius: 8em 8em 1.4em 1.4em; box-shadow: 0 0.28em 0 var(--ink); }
.ch-dial-svg { position: absolute; left: 0.9em; right: 0.9em; top: 0.8em; width: calc(100% - 1.8em); height: auto; }
.ch-dial-needle { transition: transform .1s linear; }
/* first person: the cockpit display shows the turtle → rabbit dial and the backing-up arrow (cars, trucks and machine
   cabs alike), right where the HUD's would cover it; the HUD keeps the light / siren / work flags */
.ch-hud-drive.is-first .ch-speedo { display: none; }
.ch-dial-turtle, .ch-dial-rabbit { position: absolute; bottom: 0.25em; }
.ch-dial-turtle { left: 0.35em; } .ch-dial-rabbit { right: 0.35em; }
.ch-dial-turtle .ch-ico, .ch-dial-rabbit .ch-ico { width: 2.5em; height: 2.5em; }
.ch-speedo { display: flex; flex-direction: column; align-items: center; gap: 0.35em; }
/* backing up: an orange arrow in the dial's hub (the needle swings from it); no letters, nothing to read */
.ch-way { position: absolute; left: 50%; bottom: 0.55em; transform: translateX(-50%); width: 2.5em; height: 2.5em; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9em; color: var(--white);
  background: var(--orange); border: 0.12em solid var(--ink); box-shadow: 0 0.12em 0 var(--ink); animation: ch-pop-hub .35s cubic-bezier(.2,1.6,.4,1); }
.ch-way svg { width: 1.5em; height: 1.5em; }
@keyframes ch-pop-hub { 0% { transform: translateX(-50%) scale(0.6); } 100% { transform: translateX(-50%) scale(1); } }
.ch-hud-flags { display: flex; flex-direction: column; gap: 0.4em; }
.ch-flag { width: 2.8em; height: 2.8em; border-radius: 50%; background: rgba(255,255,255,0.8); border: var(--bw) solid var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0.55; }
.ch-flag .ch-ico { width: 2em; height: 2em; }
.ch-flag.is-on { opacity: 1; background: var(--yellow); }
.ch-flag.is-siren.is-on { animation: ch-flash .5s steps(2) infinite; }
.ch-flag.is-steer { opacity: 1; background: var(--white); }

.ch-hud-map { position: relative; flex: none; width: 13em; height: 13em; border-radius: 50%; overflow: hidden; background: #cfe8b8; box-shadow: 0 0.3em 0 var(--ink); }
.ch-hud-map canvas { width: 100%; height: 100%; display: block; }
.ch-map-ring { position: absolute; inset: 0; border-radius: 50%; border: 0.26em solid var(--ink); box-sizing: border-box; }
.ch-map-n { position: absolute; top: 0.25em; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 0.9em; color: var(--white); -webkit-text-stroke: 0.08em var(--ink); paint-order: stroke fill; }

/* ---- top: mission card strip (1-2-3) + hint */
.ch-top-mid { display: flex; flex-direction: column; align-items: center; gap: 0.6em; max-width: calc(100% - 33em); }
.ch-cards { display: flex; align-items: center; gap: 0.55em; width: max-content; }
.ch-cards > * { flex: none; }
.ch-job { width: 4.6em; height: 4.6em; border-radius: 50%; background: var(--c, var(--yellow)); border: 0.24em solid var(--ink); box-shadow: 0 0.24em 0 var(--ink); display: flex; align-items: center; justify-content: center; margin-right: 0.4em; }
.ch-job .ch-ico { width: 3em; height: 3em; filter: drop-shadow(0 0.1em 0 rgba(255,255,255,0.8)); }
.ch-card-step { position: relative; width: 5.2em; height: 5.2em; border-radius: 1.1em; background: var(--white); border: 0.22em solid var(--ink); box-shadow: 0 0.22em 0 var(--ink); display: flex; align-items: center; justify-content: center; overflow: visible; transition: transform .25s cubic-bezier(.3,1.6,.5,1), opacity .25s; }
.ch-card-step .ch-ico { width: 3.3em; height: 3.3em; position: relative; z-index: 1; }
.ch-card-step.is-next { opacity: 0.62; transform: scale(0.88); background: var(--mist); }
.ch-card-step.is-done { background: #c9f7dc; transform: scale(0.88); }
.ch-card-step.is-done .ch-ico { opacity: 0.5; }
.ch-card-step.is-now { transform: scale(1.12); background: #fff6cf; box-shadow: 0 0 0 0.24em var(--white), 0 0 0 0.5em var(--yellow), 0 0.3em 0 0.5em rgba(29,43,83,0.35); animation: ch-glow 1.3s ease-in-out infinite; z-index: 2; }
.ch-card-num { position: absolute; top: -0.65em; left: -0.65em; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 900; font-size: 0.95em; display: flex; align-items: center; justify-content: center; z-index: 3; border: 0.12em solid var(--white); }
.ch-card-step.is-now .ch-card-num { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.ch-card-fill { position: absolute; left: 0.25em; right: 0.25em; bottom: 0.25em; height: 0.55em; border-radius: 1em; background: rgba(29,43,83,0.12); overflow: hidden; display: none; }
.ch-card-step.is-now .ch-card-fill { display: block; }
.ch-card-fill::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--f, 0) * 100%); background: var(--good); border-radius: inherit; transition: width .15s linear; }
.ch-card-count { position: absolute; top: -0.6em; right: -0.75em; font-weight: 900; font-size: 0.95em; background: var(--white); border: 0.14em solid var(--ink); border-radius: 1em; padding: 0 0.35em; z-index: 3; }
.ch-card-count:empty { display: none; }
.ch-card-tick { position: absolute; right: -0.55em; bottom: -0.55em; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--good); border: 0.18em solid var(--ink); display: flex; align-items: center; justify-content: center; z-index: 3; animation: ch-pop .35s cubic-bezier(.2,1.6,.4,1); }
.ch-card-tick .ch-ico { width: 1.5em; height: 1.5em; opacity: 1 !important; }
.ch-card-title { position: absolute; top: calc(100% + 0.5em); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--white); font-weight: 800; font-size: 0.9em; padding: 0.2em 0.7em; border-radius: 1em; }
.ch-card-more { font-size: 2em; font-weight: 900; opacity: 0.6; color: var(--white); -webkit-text-stroke: 0.06em var(--ink); }
.ch-cards:not(.is-hidden) + .ch-hud-hint { margin-top: 1.4em; }

/* ---- radio card (dispatcher) */
.ch-radio { position: relative; width: 16em; box-sizing: border-box; background: var(--white); border: 0.26em solid var(--ink); border-radius: 1.6em; box-shadow: 0 0.32em 0 var(--ink); padding: 0.8em 0.9em 1.1em; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "head job" "text text" "btns btns"; gap: 0.5em 0.7em; align-items: center; animation: ch-slide-in .45s cubic-bezier(.2,1.4,.4,1), ch-ring 1.6s ease-in-out .5s 3; overflow: hidden; }
.ch-radio-head { grid-area: head; position: relative; }
.ch-radio-ico { display: flex; width: 4.2em; height: 4.2em; border-radius: 50%; background: var(--c); border: 0.2em solid var(--ink); align-items: center; justify-content: center; }
.ch-radio-ico .ch-ico { width: 2.9em; height: 2.9em; }
.ch-radio-wave { position: absolute; right: -0.9em; top: -0.2em; display: flex; flex-direction: column; gap: 0.18em; }
.ch-radio-wave i { display: block; width: 0.9em; height: 0.25em; border-radius: 1em; background: var(--ink); animation: ch-wave 0.8s ease-in-out infinite; }
.ch-radio-wave i:nth-child(2) { animation-delay: .15s; width: 1.2em; } .ch-radio-wave i:nth-child(3) { animation-delay: .3s; }
.ch-radio-job { grid-area: job; justify-self: center; width: 6.6em; height: 6.6em; border-radius: 1.3em; background: #fff6cf; border: 0.22em solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-radio-job .ch-ico { width: 5em; height: 5em; }
.ch-radio-job.has-ride { position: relative; }
.ch-radio-ride { position: absolute; right: -1.15em; bottom: -0.45em; width: 3.5em; height: 3.5em; border-radius: 50%; background: var(--white); border: 0.2em solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-radio-job .ch-radio-ride .ch-ico { width: 2.6em; height: 2.6em; }
.ch-radio-text { grid-area: text; display: flex; flex-direction: column; gap: 0.2em; text-align: center; }
.ch-radio-text b { font-size: 1.25em; font-weight: 900; }
.ch-radio-text span { display: inline-flex; align-items: center; justify-content: center; gap: 0.3em; font-weight: 800; opacity: 0.85; }
.ch-radio-text span .ch-ico { width: 1.3em; height: 1.3em; }
.ch-radio-btns { grid-area: btns; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 0.4em; }
.ch-radio-btns > span { display: inline-flex; align-items: center; gap: 0.35em; font-size: 1.15em; padding: 0.25em 0.6em; border-radius: 2em; border: 0.15em solid var(--ink); }
.ch-radio-yes { background: #c9f7dc; animation: ch-pulse 1.2s ease-in-out infinite; }
.ch-radio-no { background: var(--mist); opacity: 0.85; }
.ch-radio-btns .ch-ico { width: 1.9em; height: 1.9em; }
.ch-radio-time { position: absolute; left: 0; bottom: 0; height: 0.45em; width: calc(var(--f, 1) * 100%); background: var(--c); transition: width .2s linear; }

/* ---- speech bubbles (screen-projected) */
.ch-bubbles { position: absolute; inset: 0; overflow: hidden; }
.ch-bubble { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.5em; max-width: 13em; background: var(--white); border: 0.22em solid var(--ink); border-radius: 1.4em; padding: 0.45em 0.95em 0.45em 0.45em; box-shadow: 0 0.24em 0 var(--ink); font-size: 1.3em; font-weight: 800; line-height: 1.2; transition: opacity .25s; will-change: transform; }
/* placed by ch-hud-layout.js; pushed away from its speaker, the tail would point at the wrong spot */
.ch-bubble.is-moved::after, .ch-bubble.is-moved::before { display: none; }
.ch-bubble::after { content: ''; position: absolute; left: 50%; bottom: -0.95em; margin-left: -0.6em; border: 0.6em solid transparent; border-top: 0.75em solid var(--ink); }
.ch-bubble::before { content: ''; position: absolute; left: 50%; bottom: -0.58em; margin-left: -0.42em; border: 0.42em solid transparent; border-top: 0.55em solid var(--white); z-index: 1; }
.ch-bubble.is-player { background: #fff6cf; }
.ch-bubble.is-player::before { border-top-color: #fff6cf; }
.ch-bubble-ico { flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--cream); border: 0.14em solid var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ch-bubble-ico .ch-ico { width: 1.85em; height: 1.85em; }
.ch-bubble.is-talking .ch-bubble-ico { animation: ch-talk .3s ease-in-out infinite alternate; }
.ch-bubble-sound { display: flex; gap: 0.25em; padding: 0 0.3em; }
.ch-bubble-sound i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ink); animation: ch-wave .9s ease-in-out infinite; }
.ch-bubble-sound i:nth-child(2) { animation-delay: .15s; } .ch-bubble-sound i:nth-child(3) { animation-delay: .3s; }

/* ---- subtitles + fact card */
.ch-subs { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.4em; max-width: 100%; }
.ch-subs:empty { display: none; }
.ch-sub { display: flex; align-items: center; gap: 0.5em; background: rgba(29,43,83,0.86); color: var(--white); border-radius: 1.2em; padding: 0.35em 1em 0.35em 0.4em; font-size: 1.2em; font-weight: 800; line-height: 1.25; animation: ch-in .25s ease-out; transition: opacity .3s; }
.ch-sub.is-out { opacity: 0; }
/* the radio line: the helper's colour as a stripe (a white or yellow helper colour would hide white words) */
.ch-sub.is-radio { background: rgba(29,43,83,0.92); border: 0.16em solid var(--ink); box-shadow: inset 0.55em 0 0 var(--c, var(--blue)); padding-left: 0.85em; }
.ch-sub-ico { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; }
.ch-sub-ico .ch-ico { width: 1.5em; height: 1.5em; }
.ch-fact { position: relative; display: flex; align-items: center; gap: 0.5em; max-width: 100%; box-sizing: border-box; background: #fff6cf; border: 0.22em solid var(--ink); border-radius: 1.3em; padding: 0.5em 0.9em 0.5em 0.5em; box-shadow: 0 0.24em 0 var(--ink); font-weight: 800; font-size: 1.1em; line-height: 1.25; }
.ch-fact.is-pop { animation: ch-slide-left .45s cubic-bezier(.2,1.4,.4,1); }
.ch-fact-bulb, .ch-fact-ico { flex: none; width: 3em; height: 3em; border-radius: 50%; background: var(--white); border: 0.14em solid var(--ink); display: flex; align-items: center; justify-content: center; }
/* the bulb is a small badge on the topic picture, so the words get the width of the narrow side column */
.ch-fact-bulb { position: absolute; left: -0.45em; top: -0.45em; width: 1.9em; height: 1.9em; background: var(--yellow); animation: ch-pulse 1.4s ease-in-out infinite; z-index: 1; }
.ch-fact-bulb .ch-ico { width: 1.4em !important; height: 1.4em !important; }
.ch-fact .ch-ico { width: 2.2em; height: 2.2em; }
.ch-fact-text { min-width: 0; }

/* ---- interaction prompt: the tool flavour */
.ch-hud-prompt.is-tool { background: #fff6cf; }

/* ---- tool in hand */
.ch-tool { position: relative; display: flex; align-items: flex-end; gap: 0.6em; flex-direction: row-reverse; }
.ch-tool-main { position: relative; width: 6.8em; height: 6.8em; border-radius: 50%; background: var(--white); border: 0.26em solid var(--ink); box-shadow: 0 0.3em 0 var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-tool-main .ch-ico { width: 4.6em; height: 4.6em; }
.ch-tool-main.is-empty { opacity: 0.7; background: var(--mist); }
.ch-tool.is-ready .ch-tool-main { box-shadow: 0 0 0 0.24em var(--white), 0 0 0 0.5em var(--good), 0 0.3em 0 0.5em rgba(29,43,83,0.35); animation: ch-pulse 1s ease-in-out infinite; }
.ch-tool.is-using .ch-tool-main { animation: ch-wiggle .3s ease-in-out infinite; }
.ch-tool-count { position: absolute; top: -0.3em; right: -0.3em; min-width: 1.6em; height: 1.6em; border-radius: 1em; background: var(--orange); border: 0.14em solid var(--ink); font-weight: 900; font-size: 1.1em; display: flex; align-items: center; justify-content: center; }
.ch-tool-on { position: absolute; left: -0.2em; top: -0.2em; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--yellow); border: 0.14em solid var(--ink); box-shadow: 0 0 1em var(--yellow); }
.ch-tool-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4em; margin-bottom: 0.4em; }
.ch-tool-side > span { display: inline-flex; align-items: center; gap: 0.35em; background: rgba(255,255,255,0.92); border: 0.16em solid var(--ink); border-radius: 2em; padding: 0.25em 0.6em 0.25em 0.3em; font-weight: 900; }
.ch-tool-side .ch-ico { width: 1.7em; height: 1.7em; }
.ch-tool-belt i { display: inline-flex; width: 2.1em; height: 2.1em; border-radius: 50%; align-items: center; justify-content: center; opacity: 0.55; }
.ch-tool-belt i.is-on { opacity: 1; background: var(--yellow); box-shadow: inset 0 0 0 0.12em var(--ink); }
.ch-tool-away { opacity: 0.85; font-size: 0.9em; }

/* ---- work mode: which stick moves what */
.ch-work { position: relative; flex: none; display: flex; flex-direction: column; gap: 0.35em; background: rgba(255,255,255,0.94); border: 0.24em solid var(--ink); border-radius: 1.3em; padding: 0.6em 0.8em; box-shadow: 0 0.28em 0 var(--ink); animation: ch-slide-in .35s cubic-bezier(.2,1.4,.4,1); }
.ch-work-row { display: flex; align-items: center; gap: 0.45em; font-weight: 900; font-size: 1.1em; }
.ch-work-row .ch-ico { width: 2.2em; height: 2.2em; }
.ch-work-row.is-exit { opacity: 0.75; border-top: 0.12em dashed rgba(29,43,83,0.35); padding-top: 0.3em; margin-top: 0.15em; }
.ch-work-dir { font-size: 1.35em; font-weight: 900; width: 1em; text-align: center; }

/* ---- load gauge (garbage truck, dump truck, loader) */
.ch-cargo { display: flex; flex-direction: column; align-items: center; gap: 0.25em; align-self: flex-end; }
.ch-cargo-bar { position: relative; width: 2.1em; height: 6.4em; border-radius: 0.9em; background: rgba(255,255,255,0.92); border: 0.2em solid var(--ink); overflow: hidden; }
.ch-cargo-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, var(--good), var(--yellow)); transition: height .3s; }
.ch-cargo.is-full .ch-cargo-bar i { background: var(--orange); animation: ch-flash-full .6s steps(2) infinite; }
.ch-cargo .ch-ico { width: 2.3em; height: 2.3em; }

/* ---- "new job" banner, confetti, great job, sticker pop */
.ch-banner { position: relative; display: flex; align-items: center; gap: 1em; background: var(--white); border: 0.3em solid var(--ink); border-radius: 2em; box-shadow: 0 0.4em 0 var(--ink); padding: 1em 1.6em 1em 1em; max-width: 100%; box-sizing: border-box; }
.ch-banner.is-in { animation: ch-banner 2.8s cubic-bezier(.2,1.2,.4,1) forwards; }
.ch-banner-ico { width: 6em; height: 6em; border-radius: 50%; background: var(--c); border: 0.24em solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-banner-ico .ch-ico { width: 4.3em; height: 4.3em; }
.ch-banner-text { display: flex; flex-direction: column; gap: 0.2em; }
.ch-banner-text b { font-size: 2.1em; font-weight: 900; }
.ch-banner-text span { font-size: 1.2em; font-weight: 800; opacity: 0.8; }
.ch-fx { position: absolute; inset: 0; overflow: hidden; }
.ch-confetti i { position: absolute; top: -1em; width: 0.7em; height: 1.1em; border-radius: 0.15em; animation: ch-fall linear forwards; }
.ch-confetti i.is-round { border-radius: 50%; width: 0.8em; height: 0.8em; }
.ch-yay { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; animation: ch-yay 2.3s cubic-bezier(.2,1.5,.4,1) forwards; }
.ch-yay-star .ch-ico { width: 11em; height: 11em; filter: drop-shadow(0 0.3em 0 rgba(29,43,83,0.35)); animation: ch-spin 2.6s ease-out; }
.ch-yay b { font-size: 3.4em; font-weight: 900; color: var(--yellow); -webkit-text-stroke: 0.08em var(--ink); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink); margin-top: -0.2em; white-space: nowrap; }
.ch-sticker-pop { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0.4em; animation: ch-sticker-in .7s cubic-bezier(.2,1.6,.4,1); transition: left .9s cubic-bezier(.6,-0.3,.6,1), top .9s cubic-bezier(.6,-0.3,.6,1), transform .9s, opacity .9s; }
.ch-sticker-pop.is-away { left: 3.5em; top: 3.5em; transform: translate(-50%, -50%) scale(0.25) rotate(-30deg); opacity: 0.2; }
.ch-sticker { width: 12em; height: 12em; border-radius: 50%; background: var(--c); border: 0.5em solid var(--white); box-shadow: 0 0 0 0.25em var(--ink), 0 0.5em 0 0.25em rgba(29,43,83,0.4); display: flex; align-items: center; justify-content: center; animation: ch-wiggle 1s ease-in-out .7s 2; }
.ch-sticker .ch-ico { width: 8em; height: 8em; filter: drop-shadow(0 0.15em 0 rgba(255,255,255,0.8)); }
.ch-sticker-new { position: absolute; top: -0.2em; right: -1.2em; background: var(--red); color: var(--white); font-weight: 900; font-size: 1.6em; padding: 0.15em 0.6em; border-radius: 1em; border: 0.14em solid var(--ink); transform: rotate(12deg); }
.ch-sticker-pop b { font-size: 1.7em; font-weight: 900; background: var(--white); border: 0.16em solid var(--ink); border-radius: 2em; padding: 0.2em 0.9em; }
.ch-hud-helper.is-pop .ch-hud-face { animation: ch-pop .45s cubic-bezier(.2,1.6,.4,1); }

.ch-hud-hint { max-width: 100%; box-sizing: border-box; }

/* ---- regions (ch-hud-layout.js sizes them): every piece flows in a stack, so nothing overlaps.
   Side stacks are 16em wide at most; the centre band (prompts, subtitles, banner) stays clear of them. */
.ch-reg { position: absolute; display: flex; flex-direction: column; gap: 0.6em; pointer-events: none; }
.ch-reg-sub { display: flex; flex-direction: column; gap: 0.6em; }
.ch-reg-sub:empty { display: none; }
.ch-reg-sub > * { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; margin: 0 !important; max-width: 100%; box-sizing: border-box; flex: none; }
.ch-reg-sub > .chf-shape { transform: none; }   /* it centred itself with translateX(-50%) */
/* wide helper cards wrap inside the 16em side stacks instead of sticking out of them */
.ch-reg-sub > .chf-meter, .ch-reg-sub > .chf-board .chf-board-pic, .ch-reg-sub > .chf-board .chf-board-keys { flex-wrap: wrap; justify-content: center; }
.ch-reg-tr { right: 1.2em; top: 1.2em; width: 16em; align-items: flex-end; }
.ch-reg-tr > .ch-reg-sub { width: 100%; align-items: flex-end; }
.ch-reg-tl { left: 1.2em; top: 6.6em; width: 16em; align-items: flex-start; }
.ch-reg-tl > .ch-reg-sub { width: 100%; align-items: flex-start; }
.ch-reg-br { right: 1.4em; bottom: 1.2em; align-items: flex-end; }
.ch-reg-br > .ch-reg-sub { max-width: 16em; align-items: flex-end; }
.ch-br-row { display: flex; align-items: flex-end; gap: 0.9em; }
.ch-reg-bl { left: 1.4em; bottom: 1.4em; align-items: flex-start; }
.ch-reg-bl > .ch-reg-sub { max-width: 16em; align-items: flex-start; }
.ch-reg-bottom { left: 0; right: 0; bottom: 3.2em; margin: 0 auto; width: -webkit-fit-content; width: fit-content; max-width: calc(100% - 36em); align-items: center; }
.ch-reg-bottom > .ch-reg-sub { align-items: center; }
.ch-reg-center { left: 0; right: 0; top: 30%; margin: 0 auto; width: -webkit-fit-content; width: fit-content; max-width: calc(100% - 36em); align-items: center; }
.ch-reg-center > .ch-reg-sub { align-items: center; }

/* ---- job card: "Dig 4 scoops 2/4", "Level the ground 70%" (HUD.jobCard) */
.ch-jobcard { display: flex; align-items: center; gap: 0.6em; background: rgba(255,255,255,0.95); border: 0.22em solid var(--ink); border-radius: 1.3em; padding: 0.45em 0.9em 0.45em 0.45em; box-shadow: 0 0.24em 0 var(--ink); font-weight: 900; width: 15em; box-sizing: border-box; animation: ch-slide-left .4s cubic-bezier(.2,1.4,.4,1); }
.ch-jobcard-ico { flex: none; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--c, #ffb000); border: 0.16em solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-jobcard-ico .ch-ico { width: 2.5em; height: 2.5em; }
.ch-jobcard-body { display: flex; flex-direction: column; gap: 0.3em; flex: 1; min-width: 0; }
.ch-jobcard-title { font-size: 1.05em; line-height: 1.1; }
.ch-jobcard-bar { position: relative; height: 0.9em; border-radius: 1em; background: rgba(29,43,83,0.14); overflow: hidden; border: 0.12em solid var(--ink); }
.ch-jobcard-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--good), var(--yellow)); transition: width .25s; }
.ch-jobcard-count { font-size: 1.4em; min-width: 2em; text-align: right; }

/* ---- load gauge: a badge (the hydrant) and a calm warning when nearly empty */
.ch-gauge { position: relative; }
.ch-gauge-badge { order: -1; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--yellow); border: var(--bw) solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-gauge-badge .ch-ico { width: 1.6em; height: 1.6em; }
.ch-cargo.is-warn .ch-cargo-bar { animation: ch-flash-full .8s steps(2) infinite; }

/* ---- View hold ring (HUD.viewPress: tap = big map, hold = the registered action) */
.ch-overlay.is-viewHold { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; align-items: flex-end; }
.ch-vhold { display: flex; align-items: center; gap: 0.6em; margin-bottom: 4em; padding: 0.4em 1.1em 0.4em 0.5em; border-radius: 3em; background: var(--white); border: 0.22em solid var(--ink); box-shadow: 0 0.24em 0 var(--ink); }
.ch-vhold-ring { position: relative; width: 3.6em; height: 3.6em; flex: none; }
.ch-vhold-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ch-vhold-ring .ch-key, .ch-vhold-ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ch-vhold-ico .ch-ico { width: 2em; height: 2em; }
.ch-vhold-what { display: flex; gap: 0.2em; align-items: center; }
.ch-vhold-what > span { width: 2.2em; height: 2.2em; border-radius: 50%; overflow: hidden; border: 0.12em solid var(--ink); background: var(--c, var(--mist)); }
.ch-vhold-what .ch-portrait, .ch-vhold-what .ch-ico { width: 100%; height: 100%; display: block; }
.ch-stickers .ch-head p { color: var(--white); font-size: 1.35em; font-weight: 900; -webkit-text-stroke: 0.09em var(--ink); paint-order: stroke fill; opacity: 1; }
/* ---- off-screen goal arrow */
.ch-edge { position: absolute; left: 0; top: 0; width: 4.6em; height: 4.6em; border-radius: 50%; background: var(--yellow); border: 0.24em solid var(--ink); box-shadow: 0 0.2em 0 var(--ink); display: flex; align-items: center; justify-content: center; will-change: transform; }
.ch-edge-icon .ch-ico { width: 2.8em; height: 2.8em; }
.ch-edge-arrow { position: absolute; inset: -1.3em; pointer-events: none; }
.ch-edge-arrow::after { content: ''; position: absolute; right: 0; top: 50%; margin-top: -0.75em; border: 0.75em solid transparent; border-left: 1.05em solid var(--ink); }

/* ---- overlays: radial tool picker + big map */
.ch-overlay { position: fixed; inset: 0; pointer-events: auto; display: flex; align-items: center; justify-content: center; background: rgba(29,43,83,0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 12; animation: ch-in .2s ease-out; }
.ch-hud.is-overlay > :not(.ch-overlay):not(.ch-hud-top) { opacity: 0.25; }
.ch-picker { display: flex; flex-direction: column; align-items: center; gap: 0.6em; }
.ch-pick-title { display: flex; align-items: center; gap: 0.5em; background: var(--white); border: 0.22em solid var(--ink); border-radius: 2em; padding: 0.3em 1.1em 0.3em 0.4em; box-shadow: 0 0.22em 0 var(--ink); font-size: 1.3em; font-weight: 900; }
.ch-pick-title .ch-ico { width: 2.2em; height: 2.2em; }
.ch-pick-ring { position: relative; width: 31em; height: 31em; }
.ch-pick-item { position: absolute; transform: translate(-50%, -50%); width: 7.2em; height: 7.2em; border-radius: 50%; background: var(--white); border: 0.26em solid var(--ink); box-shadow: 0 0.3em 0 var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform .14s cubic-bezier(.3,1.6,.5,1); font: inherit; color: var(--ink); }
.ch-pick-item .ch-ico { width: 4.8em; height: 4.8em; }
.ch-pick-item.is-focus { transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 0.24em var(--white), 0 0 0 0.5em var(--yellow), 0 0.4em 0 0.5em rgba(29,43,83,0.4); z-index: 2; background: #fff6cf; }
.ch-pick-item.is-on { background: #c9f7dc; }
.ch-pick-badge { position: absolute; bottom: -0.2em; right: -0.2em; min-width: 1.6em; height: 1.6em; border-radius: 1em; background: var(--orange); border: 0.14em solid var(--ink); font-weight: 900; font-size: 1.05em; display: flex; align-items: center; justify-content: center; }
.ch-pick-star { position: absolute; top: -0.7em; right: -0.5em; animation: ch-pulse 1s ease-in-out infinite; }
.ch-pick-star .ch-ico { width: 2.4em; height: 2.4em; }
/* the middle of the ring only names the lit picture (no second copy of it); with words off it stays empty */
.ch-pick-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 11em; padding: 0.35em 1.1em; border-radius: 2em; background: var(--white); border: 0.22em solid var(--ink); box-shadow: 0 0.2em 0 var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.ch-pick-center.is-empty { display: none; }
.ch-pick-center.is-pop { animation: ch-pop .3s cubic-bezier(.2,1.6,.4,1); }
.ch-pick-center b { font-size: 1.15em; font-weight: 900; line-height: 1.1; max-width: 9em; }
.ch-picker.is-many .ch-pick-ring { width: 35em; height: 35em; }
.ch-picker.is-many .ch-pick-item { width: 6.2em; height: 6.2em; }
.ch-picker.is-many .ch-pick-item .ch-ico { width: 4.1em; height: 4.1em; }
.ch-picker.is-solo .ch-pick-ring { width: 15em; height: 15em; }
.ch-pick-item.is-solo { width: 12em; height: 12em; }
.ch-pick-item.is-solo > .ch-ico { width: 8em; height: 8em; }
.ch-pick-item.is-solo .ch-pick-star { top: -0.3em; right: -0.3em; }
.ch-pick-item.is-solo.is-focus { transform: translate(-50%, -50%) scale(1.06); }
.ch-pick-label { background: var(--white); border: 0.2em solid var(--ink); border-radius: 2em; padding: 0.25em 1.2em; font-size: 1.4em; box-shadow: 0 0.2em 0 var(--ink); }
.ch-pick-label:empty { display: none; }
.ch-pick-help { display: flex; gap: 1.2em; }
.ch-pick-help span { display: inline-flex; align-items: center; gap: 0.35em; background: var(--white); border: 0.16em solid var(--ink); border-radius: 2em; padding: 0.25em 0.7em 0.25em 0.3em; font-size: 1.2em; }
.ch-pick-help .ch-ico { width: 1.9em; height: 1.9em; }
.ch-bigmap { display: flex; flex-direction: column; align-items: center; gap: 0.6em; height: 94%; }
.ch-bigmap-frame { position: relative; height: calc(100% - 4em); aspect-ratio: 1 / 1; border-radius: 2em; overflow: hidden; border: 0.3em solid var(--ink); box-shadow: 0 0.4em 0 var(--ink); background: #9fd3f0; }
.ch-bigmap-canvas { width: 100%; height: 100%; display: block; }
.ch-bigmap-legend { position: absolute; right: 1.2em; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0.35em; }
.ch-legend-item { display: flex; align-items: center; gap: 0.4em; background: rgba(255,255,255,0.94); border: 0.16em solid var(--ink); border-left: 0.6em solid var(--c); border-radius: 1em; padding: 0.15em 0.6em 0.15em 0.3em; font-weight: 800; }
.ch-legend-item .ch-ico { width: 1.9em; height: 1.9em; }

/* ---------------------------------------------------------------- sticker book */
.ch-ui[data-screen="stickers"] { background: linear-gradient(180deg, rgba(255,214,231,0.86), rgba(255,227,184,0.86)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body[data-state="pause"] .ch-ui[data-screen="stickers"] { background: rgba(29,43,83,0.5); }
.ch-book-btn { background: #ffd6e7; }
.ch-stickers { gap: 1.1em; }
.ch-stk-tabs { gap: 0.9em; }
.ch-stk-tab { flex-direction: column; gap: 0.2em; padding: 0.4em 0.5em 0.35em; border-radius: 1.4em; background: var(--white); }
.ch-stk-tab.is-on { background: var(--c); }
.ch-stk-tab-face { width: 4.4em; height: 4.4em; border-radius: 50%; overflow: hidden; background: var(--white); border: 0.16em solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ch-stk-tab-face .ch-portrait { width: 100%; height: 100%; display: block; }
.ch-stk-tab-face .ch-ico { width: 3.2em; height: 3.2em; }
.ch-stk-tab-n { font-weight: 900; font-size: 1em; background: var(--white); border-radius: 1em; padding: 0 0.5em; border: 0.12em solid var(--ink); }
.ch-stk-grid { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.3em 1.6em; overflow-y: auto; max-height: 52vh; padding: 1em; box-sizing: border-box; }
.ch-stk { flex-direction: column; gap: 0.4em; padding: 0; background: none; border: none; box-shadow: none; width: 9em; }
.ch-stk .ch-btn-label { font-size: 0.85em; font-weight: 900; background: var(--white); border: 0.14em solid var(--ink); border-radius: 1em; padding: 0.1em 0.6em; text-align: center; line-height: 1.15; }
.ch-stk-face { position: relative; width: 7.4em; height: 7.4em; border-radius: 50%; background: var(--c); border: 0.35em solid var(--white); box-shadow: 0 0 0 0.2em var(--ink), 0 0.35em 0 0.2em rgba(29,43,83,0.35); display: flex; align-items: center; justify-content: center; }
.ch-stk-face .ch-ico { width: 4.9em; height: 4.9em; }
.ch-stk.is-locked .ch-stk-face { background: #e3e7ef; box-shadow: 0 0 0 0.2em #8a94a6; border-style: dashed; border-color: #8a94a6; }
.ch-stk.is-locked .ch-stk-face .ch-ico { filter: grayscale(1) brightness(1.15); opacity: 0.35; }
.ch-stk-q { position: absolute; font-size: 3.4em; font-weight: 900; color: #8a94a6; }
.ch-stk-n { position: absolute; top: -0.3em; right: 0.2em; background: var(--red); color: var(--white); font-weight: 900; border-radius: 1em; padding: 0.05em 0.5em; border: 0.14em solid var(--ink); }
.ch-stk.is-focus { transform: translateY(-0.2em) scale(1.08); box-shadow: none; }
.ch-stk.is-focus .ch-stk-face { box-shadow: 0 0 0 0.22em var(--ink), 0 0 0 0.5em var(--yellow), 0 0.4em 0 0.5em rgba(29,43,83,0.35); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-aspect-ratio: 4/3) {
  .ch-set-list { grid-template-columns: minmax(0, 1fr); }
  .ch-wheel-body { grid-template-columns: minmax(0, 1fr); }
  .ch-helper-row { flex-wrap: wrap; }
  .ch-helper { flex: 0 0 11em; }
  .ch-logo { font-size: 4.4em; }
}

/* ---------------------------------------------------------------- motion */
@keyframes ch-in { from { opacity: 0; transform: translateY(1em) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes ch-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ch-press { 0% { transform: scale(1.06); } 40% { transform: scale(0.94); } 100% { transform: scale(1.04); } }
@keyframes ch-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
@keyframes ch-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.25em); } }
@keyframes ch-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
@keyframes ch-peek { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.3em); } }
@keyframes ch-nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes ch-turn-left { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-70deg); } }
@keyframes ch-turn-right { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(70deg); } }
@keyframes ch-flash { 0% { background: #ff3b30; } 100% { background: #2f6bff; } }
@keyframes ch-flash-full { 0% { opacity: 1; } 100% { opacity: 0.55; } }
@keyframes ch-glow { 0%, 100% { box-shadow: 0 0 0 0.24em var(--white), 0 0 0 0.5em var(--yellow), 0 0.3em 0 0.5em rgba(29,43,83,0.35); } 50% { box-shadow: 0 0 0 0.24em var(--white), 0 0 0 0.75em #ffe680, 0 0.3em 0 0.75em rgba(29,43,83,0.25); } }
@keyframes ch-slide-in { from { transform: translateX(120%); } to { transform: none; } }
@keyframes ch-slide-left { from { transform: translateX(-120%); } to { transform: none; } }
@keyframes ch-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-3deg); } 20%, 40% { transform: rotate(3deg); } 50% { transform: rotate(0); } }
@keyframes ch-wave { 0%, 100% { transform: scale(0.6); opacity: 0.5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes ch-talk { from { transform: translateY(0); } to { transform: translateY(-0.12em) scale(1.06); } }
@keyframes ch-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--dx, 0), 110vh) rotate(var(--r, 720deg)); opacity: 0; } }
@keyframes ch-yay { 0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(0.9); } }
@keyframes ch-spin { from { transform: rotate(-200deg) scale(0.3); } to { transform: rotate(0) scale(1); } }
@keyframes ch-sticker-in { 0% { transform: translate(-50%, -50%) scale(0) rotate(-40deg); } 100% { transform: translate(-50%, -50%) scale(1) rotate(0); } }
@keyframes ch-banner { 0% { transform: scale(0.3); opacity: 0; } 12% { transform: scale(1.06); opacity: 1; } 20% { transform: scale(1); } 82% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ch-screen, .ch-play, .ch-title-face, .ch-hud-prompt, .ch-hold.is-holding, .ch-step-icon .ch-ico, .ch-dialog-icon .ch-ico, .ch-flag.is-siren.is-on,
  .ch-card-step.is-now, .ch-radio, .ch-radio-yes, .ch-tool.is-ready .ch-tool-main, .ch-fact-bulb, .ch-confetti i, .ch-pick-star { animation: none !important; }
}

/* ---------------------------------------------------------------- crosshair (aimed tools) + slow motion */
.ch-crosshair { position: absolute; left: 50%; top: 50%; width: 3.2em; height: 3.2em; margin: -1.6em 0 0 -1.6em; pointer-events: none; z-index: 5; transition: transform .15s; }
.ch-crosshair i { position: absolute; inset: 0; border: 0.22em solid rgba(255,255,255,0.95); border-radius: 50%; box-sizing: border-box; box-shadow: 0 0 0 0.12em rgba(29,43,83,0.55), inset 0 0 0 0.12em rgba(29,43,83,0.55); transition: transform .15s, border-color .15s; }
.ch-crosshair b { position: absolute; left: 50%; top: 50%; width: 0.55em; height: 0.55em; margin: -0.275em 0 0 -0.275em; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0.1em var(--ink); }
.ch-crosshair.is-hot i { border-color: var(--good); transform: scale(0.82); }
.ch-crosshair.is-hot b { background: var(--good); }
.ch-crosshair.is-zoom { transform: scale(0.72); }
.ch-crosshair.is-hidden { display: none; }
.ch-hud.is-slow::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(90,160,255,0) 50%, rgba(60,110,255,0.38) 100%); }
.ch-slow { display: flex; flex-direction: column; align-items: center; gap: 0.2em; align-self: flex-end; }
.ch-slow-ico .ch-ico { width: 1.6em; height: 1.6em; }
.ch-slow-bar { position: relative; display: block; width: 1.25em; height: 3.4em; border-radius: 0.65em; background: rgba(255,255,255,0.92); border: 0.18em solid var(--ink); overflow: hidden; }
.ch-slow-bar b { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(0deg, #3d8bff, #8fd3ff); transition: height .25s; }
.ch-slow.is-on .ch-slow-bar b { background: linear-gradient(0deg, var(--yellow), #fff6c8); }
.ch-slow.is-on .ch-slow-ico { animation: ch-pop .35s cubic-bezier(.2,1.6,.4,1); }
.ch-hud.is-first .ch-slow { display: none; }

/* ---------------------------------------------------------------- road signs and lights (ch-hud-road.js): one slim line at the top, a marker on the sign, a quiet badge */
.ch-road { position: absolute; left: 50%; top: 1.2em; transform: translate(-50%, -130%); opacity: 0; transition: transform .3s cubic-bezier(.2,1.25,.4,1), opacity .18s, top .22s; pointer-events: none; }
.ch-road.is-on { transform: translate(-50%, 0); opacity: 1; }
.ch-road-note { display: flex; align-items: center; gap: 0.5em; height: 2.7em; box-sizing: border-box; padding: 0 0.85em 0 0.45em; white-space: nowrap; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 0.8em; box-shadow: 0 0.2em 0 var(--ink); }
.ch-road-note svg { width: 1.9em; height: 1.9em; flex: none; display: block; }
.ch-road-note b { font-size: 1.3em; font-weight: 900; line-height: 1; }
.ch-road-lamps { display: flex; gap: 0.28em; padding: 0.22em 0.3em; background: #4a4f5a; border: 0.14em solid var(--ink); border-radius: 0.9em; }
.ch-road-lamps i { width: 1.25em; height: 1.25em; box-sizing: border-box; border-radius: 50%; background: #2b2f3a; border: 0.1em solid var(--ink); }
.ch-road-lamps i.is-red.is-on { background: #ff3b30; box-shadow: 0 0 0.55em #ff3b30; }
.ch-road-lamps i.is-yellow.is-on { background: #ffd23f; box-shadow: 0 0 0.55em #ffd23f; }
.ch-road-lamps i.is-green.is-on { background: #3ddc84; box-shadow: 0 0 0.55em #3ddc84; }
.ch-road-mark { position: absolute; left: 0; top: 0; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; pointer-events: none; }
.ch-road-mark span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--white); border: 0.16em solid var(--ink); border-radius: 50%; box-sizing: border-box; box-shadow: 0 0.14em 0 var(--ink); }
.ch-road-mark span svg { width: 1.8em; height: 1.8em; display: block; }
.ch-road-mark i { position: absolute; inset: 0; }
.ch-road-mark i::after { content: ''; position: absolute; left: 50%; top: 100%; margin: -0.12em 0 0 -0.5em; border-left: 0.5em solid transparent; border-right: 0.5em solid transparent; border-top: 0.8em solid var(--ink); }
.ch-road-badge { display: flex; align-items: center; gap: 0.35em; padding: 0.18em 0.7em 0.18em 0.35em; white-space: nowrap; background: rgba(255,255,255,0.9); border: 0.14em solid var(--ink); border-radius: 2em; font-size: 0.92em; }
.ch-road-badge .ch-ico { width: 1.5em; height: 1.5em; }
.ch-road-badge b { font-weight: 800; }

/* ---------------------------------------------------------------- coins (CH.Economy) */
.ch-coins { display: flex; align-items: center; gap: 0.4em; padding: 0.3em 0.9em 0.3em 0.5em; border-radius: 2em; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--lift); font-weight: 900; font-size: 1.35em; color: var(--ink); align-self: flex-end; }
.ch-coins .ch-ico { width: 1.7em; height: 1.7em; }
.ch-coins.is-pop { animation: ch-pop .4s cubic-bezier(.2,1.6,.4,1); }
.ch-coins-float { position: absolute; right: 0; top: -0.2em; font-size: 1.1em; font-weight: 900; color: var(--good); -webkit-text-stroke: 0.08em var(--ink); paint-order: stroke fill; pointer-events: none; animation: ch-coin-float 1.4s ease-out forwards; }
.ch-coins-float.is-minus { color: var(--red); }
.ch-coins-wrap { position: relative; }
@keyframes ch-coin-float { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-2.6em); opacity: 0; } }
.ch-pick-price { position: absolute; left: 50%; bottom: -0.5em; transform: translateX(-50%); font-size: 0.78em; font-weight: 900; background: var(--yellow); border: 0.15em solid var(--ink); border-radius: 1em; padding: 0.05em 0.6em; white-space: nowrap; }
.ch-pick.is-poor { opacity: 0.55; }

/* ---------------------------------------------------------------- Customize Character (ch-ui-character.js)
   The turning model is drawn on the game canvas, so the screen itself has a clear background. */
.ch-portrait-3d { object-fit: cover; }
.ch-custom-card .ch-btn-label { white-space: normal; text-align: center; font-size: 1.05em; line-height: 1.1; }
.ch-custom-face { display: block; width: 6em; height: 6em; border-radius: 50%; overflow: hidden; background: var(--white); border: var(--bw) solid var(--ink); box-sizing: border-box; }
.ch-custom-face .ch-portrait { width: 100%; height: 100%; display: block; }
.ch-ui[data-screen="character"] { background: none; padding: 1.6em 2.4em; }
.ch-char { height: 100%; max-width: none; gap: 0.8em; align-items: stretch; }
.ch-char-body { flex: 1; min-height: 0; display: flex; gap: 1.5em; }
.ch-char-stage { flex: 0 0 36%; display: flex; align-items: flex-end; justify-content: center; }
.ch-char-name { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 2em; box-shadow: var(--lift); padding: 0.1em 1.2em; font-size: 2.3em; font-weight: 900; margin-bottom: 0.3em; }
.ch-char-side { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.5em; }
.ch-char-row { display: flex; gap: 1em; justify-content: center; }
.ch-char-card { flex: 1 1 0; min-width: 0; max-width: 14em; padding: 0.8em 0.6em; }
.ch-char-card .ch-btn-label { font-size: 1.5em; }
.ch-char-art { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 1.2em; background: var(--white); border: var(--bw) solid var(--ink); overflow: hidden; box-sizing: border-box; }
.ch-char-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ch-char-card.is-current::after { content: '✓'; position: absolute; top: -0.4em; right: -0.3em; width: 1.5em; height: 1.5em; line-height: 1.5em; border-radius: 50%; background: var(--good); border: var(--bw) solid var(--ink); font-size: 1.7em; font-weight: 900; text-align: center; }
.ch-char-foot { display: flex; gap: 1.2em; justify-content: center; }
.ch-char-opts { display: flex; flex-direction: column; gap: 0.9em; background: rgba(255,255,255,0.92); border: var(--bw) solid var(--ink); border-radius: 1.4em; padding: 1em 1.2em; }
.ch-char-opt { display: flex; align-items: center; gap: 0.8em; }
.ch-char-opt > b { flex: 0 0 5.6em; font-size: 1.15em; font-weight: 900; }
.ch-char-opt > div { display: flex; flex-wrap: wrap; gap: 0.65em; }
.ch-char-pick { padding: 0; width: 2.9em; height: 2.9em; border-radius: 50%; background: var(--c, var(--mist)); box-shadow: 0 0.22em 0 var(--ink); font-size: 1em; }
.ch-char-pick.is-hair { width: 4.4em; height: 4.4em; border-radius: 1em; background: var(--white); }
.ch-char-pick img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.ch-char-pick.is-on::after { content: '✓'; position: absolute; top: -0.45em; right: -0.45em; width: 1.4em; height: 1.4em; line-height: 1.4em; border-radius: 50%; background: var(--good); border: 0.14em solid var(--ink); font-size: 1em; font-weight: 900; text-align: center; }
