:root {
  /* Material 3 Expressive dark roles derived from #00FFFF. */
  --md-primary: #57f5f1;
  --md-on-primary: #003735;
  --md-primary-container: #004f4d;
  --md-on-primary-container: #75f8f5;
  --md-secondary: #b5ccca;
  --md-on-secondary: #1a3533;
  --md-secondary-container: #304b49;
  --md-on-secondary-container: #d0e8e5;
  --md-tertiary: #c2c5ff;
  --md-on-tertiary: #292f69;
  --md-tertiary-container: #41477d;
  --md-on-tertiary-container: #e0e0ff;
  --md-background: #001f1e;
  --md-on-background: #d7e8e6;
  --md-surface: #001f1e;
  --md-surface-container-lowest: #001311;
  --md-surface-container-low: #00201f;
  --md-surface-container: #092827;
  --md-surface-container-high: #143331;
  --md-surface-container-highest: #1f3e3c;
  --md-on-surface: #d7e8e6;
  --md-on-surface-variant: #afc9c6;
  --md-outline: #7d9694;
  --md-outline-variant: #3f5a58;
  --md-error: #ffb4ab;
  --md-error-container: #93000a;

  --ink: var(--md-on-surface);
  --muted: var(--md-on-surface-variant);
  --faint: #7d9694;
  --canvas: var(--md-background);
  --panel: var(--md-surface-container);
  --panel-2: var(--md-surface-container-high);
  --line: var(--md-outline-variant);
  --lime: var(--md-primary);
  --lime-deep: #147b76;
  --orange: #ffb787;
  --cyan: var(--md-tertiary);
  --yellow: #f6c95f;
  --red: var(--md-error);
  --display: 'Fjalla One', 'Segoe UI', sans-serif;
  --body: 'Roboto', 'Segoe UI', sans-serif;
  --mono: 'DM Mono', 'Cascadia Mono', monospace;
}

* { box-sizing: border-box; }
 [hidden] { display: none !important; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 82% -10%, #253328 0, transparent 34rem), var(--canvas); font-family: var(--body); font-size: 16px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(196,241,94,.35); outline-offset: 3px; }
.topbar { height: 68px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(17,21,19,.88); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 600 12px var(--mono); letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: var(--canvas); background: var(--lime); font: 600 11px var(--mono); letter-spacing: -.08em; transform: skew(-10deg); }
.topbar-status, .route-label, .legend, .board-footer, .attempt-counter, .live-badge { font: 10px var(--mono); letter-spacing: .08em; }
.topbar-status { display: flex; gap: 13px; align-items: center; color: var(--muted); }
#server-time { color: var(--md-primary); white-space: nowrap; }
.pulse-dot, .footer-light, .live-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(196,241,94,.08); }
.pulse-dot { animation: pulse 2.5s ease-out infinite; }.divider { width: 1px; height: 13px; background: var(--line); }
.icon-button, .dialog-close { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.icon-button { width: 30px; height: 30px; border-radius: 50%; }
.icon-button:hover, .dialog-close:hover { border-color: var(--lime); color: var(--lime); }
.app-shell { max-width: 1920px; margin: 0 auto; padding: 58px clamp(24px, 3vw, 58px) 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(32px, 3vw, 64px); }
.main-stage { min-width: 0; }
.stage-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.route-label { margin: 0 0 12px; color: var(--lime); }.route-label span { color: var(--muted); }
h1, h2, p { margin-top: 0; } h1 { max-width: 9ch; margin-bottom: 15px; font-size: clamp(3rem, 6vw, 5.75rem); line-height: .9; letter-spacing: -.065em; font-weight: 600; } h2 { margin-bottom: 8px; font-size: 19px; letter-spacing: -.03em; } .lede { max-width: 38ch; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.attempt-counter { display: flex; align-items: baseline; gap: 9px; min-width: 89px; padding-bottom: 4px; color: var(--muted); line-height: 1.35; }.attempt-counter strong { color: var(--orange); font: 500 40px var(--display); letter-spacing: -.08em; }
.legend { display: flex; gap: 20px; align-items: center; margin-bottom: 13px; color: var(--muted); }.legend > span { display: inline-flex; align-items: center; gap: 7px; }.legend-swatch { display: inline-block; width: 8px; height: 8px; border: 1px solid var(--line); }.legend-swatch.exact { background: var(--lime); border-color: var(--lime); }.legend-swatch.close { background: var(--yellow); border-color: var(--yellow); }.legend-swatch.wrong { background: #364039; }.legend-arrow { color: var(--orange); font-size: 14px; }
.guess-board-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.board-scroll { overflow-x: auto; }.guess-board { min-width: 900px; }.guess-row { display: grid; grid-template-columns: minmax(100px, 1.1fr) minmax(120px, 1.35fr) minmax(100px, 1fr) minmax(95px, 1fr) minmax(150px, 1.5fr) minmax(80px, .8fr) minmax(130px, 1.35fr) minmax(100px, 1fr); border-bottom: 1px solid var(--line); }.guess-row:last-child { border-bottom: 0; }.guess-cell { min-height: 72px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border-right: 1px solid var(--line); background: rgba(32,40,33,.45); }.guess-cell:first-child { padding-left: 14px; }.guess-cell:last-child { border-right: 0; }.guess-row.empty .guess-cell { min-height: 64px; background: rgba(24,30,26,.55); }.guess-row.empty .guess-cell::after { content: ''; width: 16px; height: 1px; background: var(--line); }.guess-cell .cell-label { color: var(--faint); font: 9px var(--mono); letter-spacing: .05em; text-transform: uppercase; }.guess-cell .cell-value { color: var(--ink); font-size: 12px; line-height: 1.2; }.guess-cell.attribute-era .cell-value { white-space: nowrap; }.guess-cell.state-exact { background: rgba(196,241,94,.13); }.guess-cell.state-exact .cell-value { color: var(--lime); }.guess-cell.state-close { background: rgba(211,190,85,.12); }.guess-cell.state-close .cell-value { color: var(--yellow); }.guess-cell.state-wrong { background: rgba(58,70,60,.25); }.guess-cell.state-direction { background: rgba(255,157,92,.10); }.guess-cell.state-direction .cell-value { color: var(--orange); }.guess-cell .direction, .guess-cell .approximation { margin-left: 5px; font-size: 17px; }.guess-cell .approximation { color: var(--yellow); }.board-footer { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); }.board-footer span { display: inline-flex; align-items: center; gap: 8px; }.footer-light { width: 5px; height: 5px; }
.control-panel { width: 100%; min-width: 0; align-self: start; padding: 23px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(36,48,38,.92), rgba(24,30,26,.96)); box-shadow: 0 16px 42px rgba(0,0,0,.18); }.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 27px; }.panel-header h2 { margin: 0; }.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 7px; color: var(--lime); border: 1px solid rgba(196,241,94,.24); }.live-badge span { width: 5px; height: 5px; }
.guess-form label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }.search-wrap { position: relative; min-width: 0; }.search-wrap input { width: 100%; height: 47px; padding: 0 40px 0 13px; border: 1px solid var(--line); outline: 0; color: var(--ink); background: #121713; font-size: 13px; }.search-wrap input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(196,241,94,.1); }.search-icon { position: absolute; top: 10px; right: 14px; color: var(--muted); font-size: 22px; transform: rotate(-20deg); }.car-options { max-height: 246px; margin-top: 8px; overflow-y: auto; }.car-option { width: 100%; min-width: 0; padding: 10px 11px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border: 0; border-bottom: 1px solid rgba(48,59,51,.72); color: var(--muted); background: transparent; text-align: left; }.car-option:hover, .car-option.selected { color: var(--ink); background: rgba(196,241,94,.1); }.car-option.selected { box-shadow: inset 2px 0 0 var(--lime); }.car-option strong { min-width: 0; overflow: hidden; color: inherit; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.car-option span { color: var(--faint); font: 10px var(--mono); white-space: nowrap; }.submit-button, .primary-button { width: 100%; min-height: 46px; border: 1px solid var(--lime); color: var(--canvas); background: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: .02em; }.submit-button { margin-top: 18px; }.submit-button:disabled { cursor: not-allowed; color: var(--faint); border-color: var(--line); background: var(--line); }.submit-button:not(:disabled):hover, .primary-button:hover { background: #d4ff79; }.submit-button span, .primary-button span { float: right; margin-right: 12px; font-size: 16px; }.form-message { min-height: 17px; margin: 8px 0 0; color: var(--orange); font: 10px var(--mono); }
.panel-rule { height: 1px; margin: 28px 0 25px; background: var(--line); }.panel-header.compact { margin-bottom: 21px; }.briefing-row { display: grid; grid-template-columns: 26px 1fr; gap: 11px; margin: 0 0 18px; }.briefing-key { display: grid; place-items: center; width: 24px; height: 24px; font: 11px var(--mono); }.exact-key { color: var(--canvas); background: var(--lime); }.close-key { color: var(--canvas); background: var(--yellow); }.direction-key { color: var(--canvas); background: var(--orange); font-size: 9px; }.briefing-row strong { display: block; margin: 1px 0 4px; font-size: 12px; font-weight: 600; }.briefing-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }.how-button, .text-button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }.how-button { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }.how-button span { float: right; color: var(--lime); font-size: 15px; }
.result-panel { margin-top: 25px; padding: 20px; display: flex; align-items: end; justify-content: space-between; gap: 25px; border: 1px solid var(--lime-deep); background: rgba(112,143,45,.11); }.result-details { min-width: 0; flex: 1; }.result-answer-head { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; align-items: start; }.result-car-image-frame { width: 220px; height: 145px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--md-surface-container-lowest); }.result-car-image-frame img { width: 100%; height: 100%; object-fit: contain; }.result-panel h2 { margin-bottom: 4px; color: var(--lime); }.result-panel p:not(.route-label) { margin: 0; color: var(--muted); font-size: 12px; }.result-bio { max-width: 62ch; margin-top: 10px !important; line-height: 1.45; }.result-score { min-width: 88px; padding: 8px 0 0 16px; border-left: 1px solid var(--line); text-align: right; }.result-score strong { display: block; color: var(--orange); font: 400 48px/1 var(--display); letter-spacing: -.03em; }.result-score span { display: block; margin-top: 7px; color: var(--faint); font: 11px var(--mono); letter-spacing: .12em; }.result-attributes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 18px; border: 1px solid var(--line); background: var(--line); }.result-attribute { min-width: 0; padding: 9px 10px; background: var(--md-surface-container); }.result-attribute span { display: block; margin-bottom: 4px; color: var(--faint); font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; }.result-attribute strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.result-actions { min-width: 145px; display: grid; gap: 13px; }.result-actions .primary-button { min-height: 38px; }.result-actions .text-button { justify-self: center; }.toast { position: fixed; left: 50%; bottom: 24px; z-index: 3; padding: 12px 16px; color: var(--canvas); background: var(--lime); font: 11px var(--mono); transform: translate(-50%, 90px); transition: transform .3s ease-out; }.toast.visible { transform: translate(-50%, 0); }.rules-dialog { max-width: 430px; padding: 31px; color: var(--ink); background: var(--panel-2); box-shadow: 0 20px 80px #000; }.rules-dialog::backdrop { background: rgba(0,0,0,.72); }.dialog-close { float: right; width: 28px; height: 28px; font-size: 20px; }.rules-dialog h2 { max-width: 8ch; margin: 22px 0 15px; font-size: 34px; line-height: .95; }.rules-dialog > p:not(.route-label):not(.dialog-foot) { color: var(--muted); font-size: 13px; line-height: 1.6; }.rules-list { margin: 25px 0; border-top: 1px solid var(--line); }.rules-list p { padding: 13px 0; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }.rules-list b { display: inline-block; width: 65px; color: var(--lime); font: 10px var(--mono); }.dialog-foot { margin: 0; color: var(--faint); font: 10px var(--mono); line-height: 1.6; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(196,241,94,.07); } 50% { box-shadow: 0 0 0 7px rgba(196,241,94,0); } }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; max-width: 760px; padding-top: 42px; gap: 35px; }.control-panel { order: -1; }.control-panel .briefing, .control-panel .panel-rule, .control-panel .how-button { display: none; }.guess-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 11px; }.guess-form label { grid-column: 1 / -1; margin-bottom: 0; }.search-wrap { grid-column: 1; }.car-options { position: absolute; z-index: 2; width: calc(100% - 135px); margin-top: 54px; background: var(--panel-2); border: 1px solid var(--line); }.submit-button { grid-column: 2; min-width: 122px; margin-top: 0; }.form-message { grid-column: 1 / -1; } }
@media (max-width: 560px) { .topbar { height: 58px; padding: 0 18px; }.topbar-status { gap: 7px; font-size: 9px; }.topbar-status .divider, .topbar-status #connection-status, .topbar-status #date-label { display: none; }.app-shell { min-width: 0; overflow: hidden; padding: 34px 18px 45px; }.stage-heading { margin-bottom: 27px; }.stage-heading h1 { font-size: 3.5rem; }.attempt-counter { min-width: 70px; }.attempt-counter strong { font-size: 32px; }.legend { flex-wrap: wrap; gap: 10px 15px; margin-bottom: 10px; }.guess-board { min-width: 600px; }.guess-cell { min-height: 66px; padding: 9px 7px; }.guess-cell:first-child { padding-left: 9px; }.guess-cell .cell-value { font-size: 10px; }.guess-cell .cell-label { font-size: 8px; }.board-footer { min-height: 46px; font-size: 8px; }.board-footer span:last-child { text-align: right; }.control-panel { min-width: 0; padding: 18px; }.guess-form { display: block; }.car-options { position: static; width: 100%; max-height: 186px; }.submit-button { margin-top: 12px; }.result-panel { display: block; }.result-actions { margin-top: 18px; } }

/* Typography refresh: a larger, clearer reading ramp for the Activity window. */
h1, h2, .attempt-counter strong { font-family: var(--display); font-weight: 400; }
h1 { line-height: .98; letter-spacing: -.02em; }
h2 { font-size: 22px; line-height: 1.1; }
.brand { font-size: 13px; }
.topbar-status, .route-label, .legend, .board-footer, .attempt-counter, .live-badge { font-size: 12px; }
.lede { font-size: 16px; line-height: 1.6; }
.guess-cell .cell-label { font-size: 11px; }
.guess-cell .cell-value { font-size: 14px; line-height: 1.3; }
.guess-form label { font-size: 14px; }
.search-wrap input { font-size: 15px; }
.car-option strong { font-size: 14px; }
.car-option span { font-size: 12px; }
.submit-button, .primary-button { font-size: 14px; }
.form-message { font-size: 12px; }
.briefing-row strong { font-size: 14px; }
.briefing-row p { font-size: 13px; line-height: 1.45; }
.how-button, .text-button { font-size: 13px; }
.result-panel p:not(.route-label) { font-size: 14px; line-height: 1.45; }
.toast { font-size: 13px; }
.rules-dialog > p:not(.route-label):not(.dialog-foot) { font-size: 15px; line-height: 1.6; }
.rules-list p { font-size: 14px; line-height: 1.45; }
.rules-list b { font-size: 12px; }
.dialog-foot { font-size: 12px; }

@media (max-width: 560px) {
  .topbar-status { font-size: 10px; }
  .guess-cell .cell-value { font-size: 12px; }
  .guess-cell .cell-label { font-size: 10px; }
  .board-footer { font-size: 10px; }
}

/* Keep the game name and challenge identity on one deliberate line. */
.stage-heading h1 { max-width: none; white-space: nowrap; }
.challenge-date { white-space: nowrap; }
@media (max-width: 560px) {
  .stage-heading h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
}

/* Material 3 Expressive dark application mapping. */
html { background: var(--md-background); }
body { background: radial-gradient(circle at 82% -10%, #143331 0, transparent 34rem), var(--md-background); }
button:focus-visible, input:focus-visible { outline-color: rgba(87,245,241,.42); }
.topbar { background: rgba(0,31,30,.9); }
.brand-mark { color: var(--md-on-primary); background: var(--md-primary); }
.pulse-dot, .footer-light, .live-badge span { background: var(--md-primary); box-shadow: 0 0 0 4px rgba(87,245,241,.1); }
.pulse-dot { animation-name: pulse-cyan; }
.legend-swatch.wrong { background: var(--md-secondary-container); }
.guess-cell { background: rgba(20,51,49,.45); }
.guess-row.empty .guess-cell { background: rgba(9,40,39,.55); }
.guess-cell.state-exact { background: rgba(87,245,241,.14); }
.guess-cell.state-exact .cell-value { color: var(--md-primary); }
.guess-cell.state-close { background: rgba(246,201,95,.14); }
.guess-cell.state-close .cell-value { color: var(--yellow); }
.guess-cell.state-wrong { background: rgba(63,90,88,.25); }
.guess-cell.state-direction { background: rgba(255,183,135,.13); }
.guess-cell.state-direction .cell-value { color: var(--orange); }
.control-panel { background: linear-gradient(150deg, var(--md-surface-container-highest), var(--md-surface-container)); }
.live-badge { border-color: rgba(87,245,241,.3); }
.search-wrap input { background: var(--md-surface-container-lowest); }
.car-option:hover, .car-option.selected { background: rgba(87,245,241,.1); }
.submit-button:not(:disabled):hover, .primary-button:hover { background: #91fff9; }
.result-panel { background: rgba(20,123,118,.14); }
.rules-dialog { background: var(--md-surface-container-high); }
.rules-dialog::backdrop { background: rgba(0,15,15,.78); }

@keyframes pulse-cyan { 0%,100% { box-shadow: 0 0 0 3px rgba(87,245,241,.1); } 50% { box-shadow: 0 0 0 7px rgba(87,245,241,0); } }

/* Larger supporting type: keep the H1's established display size unchanged. */
.brand { font-size: 15px; }
.brand-mark { font-size: 12px; }
.topbar-status, .route-label, .legend, .board-footer, .attempt-counter, .live-badge { font-size: 16px; }
h2 { font-size: 32px; }
.lede { max-width: none; font-size: 18px; line-height: 1.6; white-space: nowrap; }
.attempt-counter strong { font-size: 44px; }
.legend-arrow { font-size: 17px; }
.board-footer { line-height: 1.4; }
.guess-cell .cell-label { font-size: 12px; }
.guess-cell .cell-value { font-size: 16px; line-height: 1.35; }
.guess-cell .direction { font-size: 17px; }
.guess-form label { font-size: 16px; }
.search-wrap input { font-size: 17px; }
.car-option strong { font-size: 16px; }
.car-option span { font-size: 13px; }
.submit-button, .primary-button { font-size: 16px; }
.submit-button span, .primary-button span { font-size: 19px; }
.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.submit-button > span {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 0;
  float: none;
  line-height: 1;
  transform: translateY(-50%);
}
.form-message { font-size: 14px; }
.briefing-key { font-size: 13px; }
.direction-key { font-size: 11px; }
.briefing-row strong { font-size: 16px; }
.briefing-row p { font-size: 15px; line-height: 1.5; }
.how-button, .text-button { font-size: 15px; }
.how-button span { font-size: 19px; }
.result-panel p:not(.route-label) { font-size: 16px; line-height: 1.5; }
.toast { font-size: 15px; }
.dialog-close { font-size: 22px; }
.rules-dialog h2 { font-size: 36px; }
.rules-dialog > p:not(.route-label):not(.dialog-foot) { font-size: 17px; line-height: 1.65; }
.rules-list p { font-size: 16px; line-height: 1.5; }
.rules-list b { font-size: 13px; }
.dialog-foot { font-size: 14px; line-height: 1.65; }

@media (max-width: 560px) {
  .topbar-status { font-size: 11px; }
  .guess-cell .cell-value { font-size: 14px; }
  .guess-cell .cell-label { font-size: 11px; }
  .board-footer { font-size: 11px; }
  .guess-form label { font-size: 15px; }
  .search-wrap input { font-size: 16px; }
  .car-option strong { font-size: 15px; }
  .submit-button, .primary-button { font-size: 15px; }
  .result-panel p:not(.route-label) { font-size: 15px; }
  .result-answer-head { grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
  .result-car-image-frame { width: 150px; height: 100px; }
  .result-score { grid-column: 2; min-width: 0; padding: 10px 0 0; border-left: 0; text-align: left; }
  .result-score strong { font-size: 40px; }
  .result-attributes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Local garage thumbnails: give every option a consistent visual anchor without
   competing with the name and generation metadata. */
.car-option { align-items: center; }
.car-option-image { flex: 0 0 104px; width: 104px; height: 59px; display: block; object-fit: cover; object-position: center; border: 1px solid var(--line); background: var(--md-surface-container-lowest); }
.car-option-image-empty { opacity: .35; }
.car-option-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: inherit; font: inherit; white-space: normal; }
.car-option-copy strong { max-width: 100%; }
.car-option-copy > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 560px) {
  .car-option-image { flex-basis: 88px; width: 88px; height: 50px; }
}

/* Game layout: keep the decision console beside the daily identity, then let
   the board and its guidance occupy the full Activity width. */
.app-shell {
  display: block;
  max-width: 1920px;
}
.stage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 50%);
  align-items: end;
  gap: clamp(28px, 3vw, 48px);
  margin-bottom: 27px;
}
.stage-heading > div:first-child {
  min-width: 0;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.picker-panel {
  align-self: start;
}
.stage-heading > div:first-child .attempt-counter {
  margin-top: 26px;
}
.board-status {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
.board-status .attempt-counter {
  min-width: 156px;
  min-height: 60px;
  padding: 8px 14px;
}
.briefing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  margin-top: 64px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--md-surface-container-highest), var(--md-surface-container));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .14);
}
.briefing-column {
  min-width: 0;
  padding: 23px;
}
.briefing-column + .briefing-column {
  border-left: 1px solid var(--line);
}
.briefing-panel .panel-header.compact {
  margin-bottom: 21px;
}
.briefing-panel .direction-briefing {
  min-height: 100px;
  margin-top: 0;
  padding: 13px 0 0;
  border-top: 0;
}
.briefing-panel .how-button {
  width: 100%;
  margin: 22px 0 0;
}

@media (max-width: 900px) {
  .app-shell {
    max-width: 760px;
  }
  .stage-heading {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .stage-heading > div:first-child {
    align-self: auto;
  }
  .picker-panel {
    order: 2;
  }
  .briefing-panel {
    grid-template-columns: 1fr;
  }
  .briefing-column + .briefing-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (min-width: 901px) and (max-width: 1300px) {
  .lede {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .stage-heading {
    gap: 22px;
  }
  .stage-heading h1 {
    font-size: clamp(2rem, 10.5vw, 3.5rem);
  }
  .stage-heading > div:first-child .attempt-counter {
    min-width: 122px;
    min-height: 68px;
    margin: 0;
    margin-top: 18px;
  }
  .briefing-panel {
    margin-top: 28px;
  }
  .briefing-column {
    padding: 18px;
  }
}

/* Traffic-light legend: the shape and label keep the status readable without color alone. */
.legend-swatch {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-swatch.exact {
  background: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 9px rgba(74, 222, 128, .55);
}
.legend-swatch.close {
  background: #facc15;
  border-color: #facc15;
  box-shadow: 0 0 9px rgba(250, 204, 21, .45);
}
.legend-swatch.wrong {
  background: #f87171;
  border-color: #f87171;
  box-shadow: 0 0 9px rgba(248, 113, 113, .45);
}

/* Reuse the same traffic-light tokens in every feedback surface. */
:root {
  --signal-exact: #4ade80;
  --signal-exact-ink: #052e16;
  --signal-close: #facc15;
  --signal-close-ink: #422006;
  --signal-miss: #f87171;
}
.legend-swatch.exact {
  background: var(--signal-exact);
  border-color: var(--signal-exact);
  box-shadow: 0 0 9px rgba(74, 222, 128, .55);
}
.legend-swatch.close {
  background: var(--signal-close);
  border-color: var(--signal-close);
  box-shadow: 0 0 9px rgba(250, 204, 21, .45);
}
.legend-swatch.wrong {
  background: var(--signal-miss);
  border-color: var(--signal-miss);
  box-shadow: 0 0 9px rgba(248, 113, 113, .45);
}
.guess-cell.state-exact {
  background: rgba(74, 222, 128, .14);
}
.guess-cell.state-exact .cell-value {
  color: var(--signal-exact);
}
.guess-cell.state-close {
  background: rgba(250, 204, 21, .14);
}
.guess-cell.state-close .cell-value {
  color: var(--signal-close);
}
.guess-cell.state-wrong {
  background: rgba(248, 113, 113, .13);
}
.guess-cell.state-wrong .cell-value {
  color: var(--signal-miss);
}
.exact-key {
  color: var(--signal-exact-ink);
  background: var(--signal-exact);
}
.close-key {
  color: var(--signal-close-ink);
  background: var(--signal-close);
}
.signal-briefing {
  position: relative;
}
.traffic-light-illustration {
  position: absolute;
  top: -8px;
  bottom: 9px;
  left: 0;
  width: 48px;
  min-height: 48px;
  padding: 0;
  z-index: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--md-surface-container-lowest);
}
.traffic-light-illustration::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 22px;
  width: 2px;
  height: 16px;
  background: var(--line);
}
.signal-copy .briefing-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  min-height: 44px;
  margin: 0 0 14px;
}
.signal-copy .briefing-row:last-child { margin-bottom: 0; }
.traffic-light-lamp {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  justify-self: center;
  display: block;
  z-index: 1;
  border: 2px solid transparent;
  border-radius: 50%;
}
.traffic-light-lamp.exact {
  background: var(--signal-exact);
  border-color: #86efac;
  box-shadow: 0 0 13px rgba(74, 222, 128, .7);
}
.traffic-light-lamp.close {
  background: var(--signal-close);
  border-color: #fde047;
  box-shadow: 0 0 13px rgba(250, 204, 21, .6);
}
.traffic-light-lamp.miss {
  background: var(--signal-miss);
  border-color: #fca5a5;
  box-shadow: 0 0 13px rgba(248, 113, 113, .6);
}
.signal-copy .briefing-row strong,
.direction-briefing .briefing-row strong { margin-top: 0; }
.direction-briefing {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-top: 23px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.direction-briefing .briefing-row {
  display: block;
  margin: 10px 0;
}
.traffic-sign {
  width: 44px;
  height: 44px;
  margin: 10px 6px 0 6px;
  display: grid;
  place-items: center;
  border: 3px solid #dc2626;
  border-radius: 6px;
  background: #fff;
  transform: rotate(45deg);
}
.traffic-sign span {
  display: inline-block;
  width: 34px;
  text-align: center;
  color: #111;
  font: 700 29px/.82 Gabarito, sans-serif;
  letter-spacing: -2px;
  transform: rotate(-45deg) scale(1.08);
  margin-left: -2px;
}

/* Direction cells use the same road-sign treatment as the briefing. */
.guess-cell .direction {
  width: 22px;
  height: 22px;
  margin-left: 12px;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  border: 2px solid #dc2626;
  border-radius: 4px;
  background: #fff;
  color: #111;
  transform: rotate(45deg);
}
.guess-cell .direction > span {
  display: block;
  color: #111;
  font: 700 18px/.8 Gabarito, sans-serif;
  transform: rotate(-45deg) scale(1);
  margin-left: -1px;
  margin-top: -1px;
}

/* Make the remaining-attempts stat read as a deliberate game status, not a loose text label. */
.attempt-counter {
  min-width: 156px;
  min-height: 78px;
  padding: 10px 14px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--md-surface-container-high), var(--md-surface-container));
}
.attempt-counter strong {
  font-size: 64px;
  line-height: .75;
  letter-spacing: -.04em;
}
.attempt-counter span {
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .1em;
}
@media (max-width: 560px) {
  .lede { white-space: normal; }
  .stage-heading { flex-wrap: wrap; }
  .stage-heading > div:first-child { flex-basis: 100%; }
  .attempt-counter {
    min-width: 122px;
    min-height: 68px;
    margin-top: 10px;
    margin-left: auto;
    padding: 8px 11px;
    gap: 10px;
  }
  .attempt-counter strong { font-size: 52px; }
  .attempt-counter span { font-size: 11px; }
}

/* Search results float from the field instead of reserving space in the panel. */
.search-combobox {
  position: relative;
  z-index: 4;
}
.car-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 360px;
  margin-top: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--md-surface-container-high);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .32);
}
.car-options .form-message {
  padding: 13px;
  margin: 0;
}

@media (max-width: 900px) {
  .search-combobox { grid-column: 1; }
  .search-wrap { grid-column: auto; }
}

/* Keep the column names visible while showing only the next actionable blank row. */
:root {
  --guess-columns: minmax(100px, 1.1fr) minmax(120px, 1.35fr) minmax(100px, 1fr) minmax(95px, 1fr) minmax(150px, 1.5fr) minmax(80px, .8fr) minmax(130px, 1.35fr) minmax(100px, 1fr);
}
.guess-header,
.guess-row {
  grid-template-columns: var(--guess-columns);
}
.guess-header {
  display: grid;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  background: var(--md-surface-container-high);
}
.guess-header > div {
  padding: 12px 10px 10px;
  border-right: 1px solid var(--line);
  color: var(--faint);
  font: 14px var(--mono);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.guess-header > div:first-child { padding-left: 14px; }
.guess-header > div:last-child { border-right: 0; }
.guess-cell { gap: 0; }

@media (max-width: 560px) {
  .guess-header > div {
    padding: 10px 7px 9px;
    font-size: 10px;
  }
  .guess-header > div:first-child { padding-left: 9px; }
}

/* Add a compact first column for the guessed car, with a cursor-following preview. */
:root {
  --guess-columns: minmax(92px, .8fr) minmax(100px, 1.1fr) minmax(120px, 1.35fr) minmax(100px, 1fr) minmax(95px, 1fr) minmax(150px, 1.5fr) minmax(80px, .8fr) minmax(130px, 1.35fr) minmax(100px, 1fr);
}
.guess-board { min-width: 1000px; }
.guess-image-cell {
  min-height: 72px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  background: rgba(20, 51, 49, .45);
}
.guess-thumbnail,
.guess-thumbnail-empty {
  width: 84px;
  height: 50px;
  display: block;
  border: 1px solid var(--line);
  background: var(--md-surface-container-lowest);
}
.guess-thumbnail {
  object-fit: cover;
  cursor: zoom-in;
}
.guess-thumbnail:focus-visible {
  outline: 3px solid rgba(87, 245, 241, .42);
  outline-offset: 3px;
}
.guess-thumbnail-empty { opacity: .35; }
.image-hover-preview {
  position: fixed;
  z-index: 30;
  width: min(360px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--md-surface-container-highest);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .48);
  pointer-events: none;
}
.image-hover-preview img {
  width: 100%;
  max-height: 240px;
  display: block;
  object-fit: contain;
  background: var(--md-surface-container-lowest);
}
@media (max-width: 560px) {
  .guess-board { min-width: 1000px; }
  .guess-thumbnail,
  .guess-thumbnail-empty { width: 76px; height: 45px; }
  .image-hover-preview { display: none !important; }
}

/* Add a six-step remaining-attempts meter without changing the existing type treatment. */
.attempt-counter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "number label"
    "meter meter";
  align-items: center;
  row-gap: 10px;
}
.attempt-counter strong { grid-area: number; }
.attempt-counter > span { grid-area: label; }
.attempt-meter {
  grid-area: meter;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.attempt-segment {
  height: 8px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--line);
}
.attempt-segment.active {
  border-color: var(--md-primary);
  background: var(--md-primary);
  box-shadow: 0 0 9px rgba(87, 245, 241, .45);
}

/* Make the floating search results feel like a readable, high-signal garage list. */
.car-option {
  padding: 12px 13px;
  gap: 12px;
}
.car-option-copy strong {
  color: var(--lime);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.15;
}
.car-option-copy > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .car-options { max-height: 300px; }
  .car-option-copy strong { font-size: 20px; }
  .car-option-copy > span { font-size: 13px; }
}

/* Full-width hero composition: title in the image, picker floating over its fade. */
.app-shell { overflow: visible; }
.main-stage {
  max-width: 1600px;
  margin: 0 auto;
}
.guess-hero {
  --hero-image: none;
  position: relative;
  width: 100vw;
  min-height: 430px;
  margin: -58px calc(50% - 50vw) 190px;
  display: block;
  overflow: visible;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background-color: var(--md-background);
  background-image: none;
  background-position: center;
  background-size: cover;
}
.guess-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity .55s ease;
}
.guess-hero-image.visible { opacity: 1; }
.guess-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 31, 30, .18) 0%, rgba(0, 31, 30, .28) 42%, var(--md-background) 100%),
    linear-gradient(90deg, rgba(0, 31, 30, .76) 0%, rgba(0, 31, 30, .2) 34%, rgba(0, 31, 30, .2) 66%, rgba(0, 31, 30, .76) 100%);
}
.guess-hero-content {
  min-height: 430px;
  padding: 124px 24px 170px;
  display: grid;
  place-content: center;
  justify-items: center;
  transition: opacity .26s ease, transform .26s ease;
}
.guess-hero.hero-copy-fading .guess-hero-content {
  opacity: 0;
  transform: translateY(5px);
}
.guess-hero-content h1 {
  max-width: min(18ch, calc(100vw - 48px));
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.2rem, 6vw, 5.75rem);
  line-height: .98;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .42);
  white-space: nowrap;
}
.guess-hero-content h1 span { display: block; }
.hero-attributes {
  width: min(1400px, calc(100vw - 48px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
}
.hero-attribute {
  min-width: 0;
  padding: 24px 12px;
  background: rgba(0, 31, 30, .78);
  text-align: left;
  border-radius: 14px;
}
.hero-attribute-label {
  display: block;
  margin-bottom: 6px;
  color: var(--md-primary);
  font: 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-attribute-value {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-panel {
  position: absolute;
  right: auto;
  bottom: -130px;
  left: 50%;
  z-index: 2;
  width: min(870px, calc(100vw - 48px));
  margin: 0;
  transform: translateX(-50%);
  border-radius: 24px;
}
.picker-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0px;
}
.picker-panel-top .panel-header {
  flex: 1;
  margin-bottom: 0;
}
.picker-panel-top .attempt-counter {
  flex: 0 0 auto;
  margin: 0;
}
.picker-panel .guess-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
  align-items: end;
  gap: 8px 24px;
}
.picker-panel .guess-form label,
.picker-panel .form-message { grid-column: 1 / -1; }
.picker-panel .guess-form label { margin-bottom: 0; }
.picker-panel .search-combobox { grid-column: 1; }
.picker-panel .submit-button {
  grid-column: 2;
  margin: 0;
}
.topbar-challenge { color: var(--md-primary); white-space: nowrap; }
.topbar-challenge .challenge-date { color: var(--muted); }

@media (max-width: 900px) {
  .guess-hero { margin-top: -42px; }
  .guess-hero-content { min-height: 390px; padding-top: 105px; }
  .picker-panel .guess-form { grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr); }
  .hero-attributes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .guess-hero {
    min-height: 340px;
    margin-top: -34px;
    margin-bottom: 189px;
  }
  .guess-hero-content {
    min-height: 340px;
    padding: 24px 18px 150px;
    place-content: start center;
  }
  .guess-hero-content h1 {
    max-width: calc(100vw - 36px);
    font-size: clamp(2.2rem, 10vw, 4rem);
    white-space: normal;
  }
  .hero-attributes {
    width: calc(100vw - 36px);
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-attribute { padding: 9px 10px 10px; }
  .hero-attribute-label { margin-bottom: 4px; font-size: 10px; }
  .hero-attribute-value { font-size: 13px; }
  .picker-panel {
    bottom: -155px;
    width: calc(100vw - 36px);
    border-radius: 20px;
  }
  .picker-panel-top { flex-wrap: wrap; gap: 16px; }
  .picker-panel-top .panel-header { flex-basis: 100%; }
  .picker-panel-top .attempt-counter { margin-left: auto; }
  .picker-panel .guess-form { display: block; }
  .picker-panel .submit-button { margin-top: 12px; }
  .topbar-challenge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .guess-hero-image,
  .guess-hero-content { transition: none; }
}

/* Soften every contained surface while leaving the edge-to-edge hero squared off. */
button,
input,
select,
textarea { border-radius: 7px; }
.control-panel,
.result-panel,
.briefing-panel,
.attempt-counter,
.rules-dialog,
.car-options,
.image-hover-preview { border-radius: 14px; }
.guess-board-wrap {
  overflow: hidden;
  border-radius: 14px;
}
.picker-panel { border-radius: 24px; }
.guess-thumbnail,
.guess-thumbnail-empty,
.car-option-image,
.car-option-image-empty { border-radius: 5px; }

/* Final surface cleanup and extra title-to-picker breathing room. */
.topbar { border-bottom: 0; }
.control-panel,
.result-panel,
.briefing-panel,
.attempt-counter,
.rules-dialog,
.guess-board-wrap { border: 0; }
.guess-board-wrap { border-top: 0; border-bottom: 0; }
.picker-panel {
  bottom: -130px;
}
.guess-hero { margin-bottom: 235px; }

@media (max-width: 560px) {
  .picker-panel { bottom: -195px; }
  .guess-hero { margin-bottom: 229px; }
}

/* Latest visual adjustments: reveal more of the hero while keeping the
   floating picker and board relationship balanced. */
.guess-hero {
  min-height: 55vh;
  margin-bottom: 200px;
}

.guess-hero-content {
  min-height: 55vh;
}

.guess-hero .route-label {
  font-size: 20px;
}

.attempt-counter {
  background: transparent;
}

.guess-header {
  background: var(--md-on-primary);
}

.guess-header > div {
  color: var(--md-on-primary-container);
}

@media (max-width: 560px) {
  .guess-hero {
    min-height: 390px;
    margin-bottom: 279px;
  }

.guess-hero-content {
  min-height: 390px;
}
}

/* Float the translucent header over the edge-to-edge hero image. */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(0, 31, 30, .72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Keep the guesses table grid in the same primary-container family as its header. */
.guess-header,
.guess-row {
  border-color: var(--md-primary-container);
}

.board-scroll {
  overflow-y: hidden;
}

.guess-header > div,
.guess-cell,
.guess-image-cell {
  border-color: var(--md-primary-container);
}

/* Explain each column in place without making the wide board denser. */
.guess-header-cell {
  position: relative;
  cursor: help;
}

.guess-header-cell:focus-visible {
  z-index: 6;
  outline: 2px solid var(--md-primary);
  outline-offset: -3px;
}

.guess-header-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: min(360px, calc(100vw - 48px));
  padding: 16px 17px;
  color: var(--md-on-primary-container);
  background: var(--md-primary-container);
  border: 1px solid var(--md-primary);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .42);
  font: 16px/1.45 var(--body);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  max-height: min(320px, calc(100vh - 24px));
  overflow-y: auto;
  will-change: left, top, opacity, transform;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.guess-header-tip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .guess-header-tip {
    width: min(300px, calc(100vw - 36px));
    padding: 13px 14px;
    font-size: 15px;
  }
}

/* Keep the remaining-attempts count, label, and meter in one compact row. */
.attempt-counter {
  min-width: 300px;
  min-height: 78px;
  padding: 8px 0;
  grid-template-columns: auto auto auto;
  grid-template-areas: "number label meter";
  column-gap: 10px;
  row-gap: 0;
}

.attempt-counter > span {
  white-space: nowrap;
}

.attempt-meter {
  width: auto;
  grid-template-columns: repeat(8, 7px);
  gap: 12px;
}

.attempt-segment {
  width: 15px;
  height: 30px;
}

@media (max-width: 560px) {
  .attempt-counter {
    min-width: 196px;
    min-height: 68px;
    padding: 7px 0;
    column-gap: 8px;
  }

  .attempt-meter {
    grid-template-columns: repeat(6, 5px);
    gap: 3px;
  }

  .attempt-segment {
    width: 5px;
    height: 24px;
  }
}

/* Refine the meter proportions and keep the label close to its count. */
.attempt-counter {
  column-gap: 16px;
  justify-content: start;
}

.attempt-meter {
  margin-left: 10px;
}

.attempt-segment {
  height: 52px;
}

@media (max-width: 560px) {
  .attempt-counter {
    column-gap: 4px;
  }

  .attempt-meter {
    margin-left: 6px;
  }

  .attempt-segment {
    height: 40px;
  }
}

/* Cardle brand mark: a compact classic-coupe side silhouette. */
.brand-mark {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  padding: 4px 3px;
  display: grid;
  place-items: center;
  color: var(--md-on-primary);
  background: var(--md-primary);
  transform: skew(-10deg);
}

.brand-mark svg {
  width: 25px;
  height: 19px;
  display: block;
  overflow: visible;
  transform: skew(10deg);
}

.brand-car-body { fill: currentColor; }
.brand-car-window { fill: var(--md-primary); }
.brand-car-wheel {
  fill: var(--md-primary);
  stroke: currentColor;
  stroke-width: 2;
}
.brand-car-detail {
  fill: none;
  stroke: var(--md-primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: .9;
}

/* Show the persisted player streak only after Discord identity is confirmed. */
.account-status {
  color: var(--md-primary);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .account-status,
  .account-divider { display: none !important; }
}

/* Keep the floating garage menu above the telemetry board. The hero is an
   isolated stacking context, so its layer must be raised as a whole. */
.guess-hero { z-index: 2; }
.topbar { z-index: 20; }
.picker-panel { z-index: 10; }
.search-combobox { z-index: 20; }
.car-options {
  z-index: 30;
  isolation: isolate;
  background-color: var(--md-surface-container-high);
}
.car-option { background-color: var(--md-surface-container-high); }
.guess-board-wrap {
  position: relative;
  z-index: 0;
}
