/* /cybertruck viewer. Loads before site-shell.css, so rules that compete
   with shell selectors such as .site-shell .site-content p repeat that prefix. */

/* One page axis for the article, viewer, and selected-part details. */
.site-shell.site-reading.ct-page .site-content { width: min(1320px, calc(100% - 48px)); }
.site-shell.ct-page .site-content > :not(.ct-viewer) { max-width: 760px; margin-left: auto; margin-right: auto; }
.ct-viewer {
    width: 100%;
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "toolbar" "stage" "controls" "info" "drive-help";
    gap: 12px;
    min-width: 0;
}
.ct-toolbar { grid-area: toolbar; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-toolbar-note { color: var(--text-secondary); font-size: 12px; }

.ct-viewer [hidden] { display: none !important; }

.ct-stage {
    grid-area: stage;
    position: relative;
    height: clamp(440px, 72vh, 820px);
    border: 1px solid #373630;
    border-radius: 8px;
    background: radial-gradient(120% 85% at 50% 38%, #3b3f43 0%, #25282b 65%, #1c1e20 100%);
    overflow: hidden;
    scroll-margin-top: 16px;
}

.ct-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    outline: none;
    touch-action: none;
}
.ct-stage canvas:active { cursor: grabbing; }
.ct-stage canvas.is-hovering { cursor: pointer; }
.ct-stage canvas:focus-visible { outline: 2px solid #aaa69d; outline-offset: -2px; }

.ct-labels { position: absolute; inset: 0; pointer-events: none; }

.ct-label {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto;
    padding: 3px 9px;
    border: 1px solid #6a675f;
    border-radius: 999px;
    background: rgba(27, 26, 24, 0.88);
    color: #eeeae3;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}
.ct-label:hover,
.ct-label[aria-pressed="true"] { border-color: #eeeae3; }
.ct-label[aria-pressed="true"] { background: #eeeae3; color: #1b1a18; }

/* Keep all exploded-part names outside the canvas. Only the selected part gets
   an on-model callout, so orbiting and zooming cannot stack names over the truck. */
.ct-part-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ct-part-label {
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #45453d;
    border-radius: 5px;
    background: #22231f;
    color: #d8d5ce;
    font-weight: 500;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}
.ct-part-label:hover { border-color: #aaa69d; color: #eeeae3; }
.ct-part-label[aria-pressed="true"] { background: #eeeae3; color: #1b1a18; border-color: #eeeae3; }
.ct-part-label:focus-visible { outline: 2px solid #c5cbb1; outline-offset: 2px; }
.ct-selection-label { pointer-events: none; }

.ct-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 240px;
    padding: 6px 10px;
    border: 1px solid #45453d;
    border-radius: 6px;
    background: rgba(27, 26, 24, 0.94);
    font-size: 12px;
    line-height: 1.45;
    pointer-events: none;
}
.ct-tooltip strong { display: block; font-weight: 600; color: #eeeae3; }
.ct-tooltip span { display: block; color: #aaa69d; }

.ct-loading,
.ct-fallback,
.ct-noscript {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px;
    text-align: center;
}
.ct-noscript { background: #1e1d1b; }
.site-shell .site-content :is(.ct-loading, .ct-fallback p, .ct-noscript) {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.site-shell .site-content .ct-fallback p:first-child { max-width: 34ch; color: var(--text); }

.ct-controls {
    grid-area: controls;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-buttons { display: flex; flex-wrap: wrap; gap: 6px; }

.ct-button {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid #45453d;
    border-radius: 7px;
    background: #22231f;
    color: #eeeae3;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}
.ct-button:hover:not(:disabled) { border-color: #77756b; }
.ct-button[aria-pressed="true"] { background: #eeeae3; border-color: #eeeae3; color: #1b1a18; }
.ct-button:disabled { opacity: 0.45; cursor: not-allowed; }

.ct-slider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.ct-slider input { flex: 1 1 auto; min-width: 120px; max-width: 360px; accent-color: #aaa69d; }
.site-shell .ct-slider input:focus-visible { outline: 2px solid #c5cbb1; outline-offset: 4px; }
.ct-slider output { min-width: 3.2em; color: var(--text); font-variant-numeric: tabular-nums; }

.site-content .ct-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
.site-content .ct-jumps li { margin: 0; }
.site-shell .site-content .ct-jumps a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #45453d;
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}
.site-shell .site-content .ct-jumps a:hover { border-color: #aaa69d; }

.site-shell .site-content .ct-help {
    max-width: 66ch;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ct-info {
    grid-area: info;
    padding-top: 16px;
    border-top: 1px solid #373630;
}
.site-shell .site-content .ct-info-status {
    display: inline-block;
    margin: 0 0 8px;
    padding: 1px 9px;
    border: 1px solid #45453d;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.site-shell .site-content .ct-info-name {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}
.site-shell .site-content .ct-info-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.site-shell .site-content .ct-permalink {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

@media (min-width: 900px) {
    .ct-info-inner { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 28px; align-items: start; }
    .ct-info-status, .ct-info-name, .ct-permalink { grid-column: 1; justify-self: start; }
    .ct-info-body { grid-column: 2; grid-row: 1 / 5; }
}

.site-content .ct-viewer + .section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #222; }

.site-content .ct-group {
    margin: 2rem 0 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.site-content .ct-parts { margin: 0 0 1rem; padding: 0; list-style: none; }
.site-content .ct-part {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #2c2b27;
    scroll-margin-top: 16px;
}

.ct-part-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
}

.site-shell .site-content .ct-part-name {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: #5f5d56;
    text-underline-offset: 4px;
    cursor: pointer;
}
.site-shell .site-content .ct-part-name:hover,
.site-shell .site-content .is-selected .ct-part-name { text-decoration-color: currentColor; }
.site-shell .site-content .is-selected .ct-part-name { text-decoration-thickness: 2px; }

.ct-status {
    flex: none;
    padding: 1px 9px;
    border: 1px solid #45453d;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: nowrap;
}
.ct-part[data-kind="estimate"] .ct-status { border-style: dashed; border-color: #9a968c; color: var(--text); }

.site-shell .site-content .ct-part-body p { margin: 8px 0 0; font-size: 0.98rem; line-height: 1.7; }
.site-shell .site-content .ct-note { color: var(--text-secondary); }
.site-shell .site-content .ct-estimate { color: var(--text-secondary); }

.site-shell .site-content a.ct-cite {
    color: var(--text-secondary);
    text-decoration-color: #5f5d56;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.site-content .ct-sources { margin: 0 0 1rem; padding-left: 1.6rem; list-style: decimal; }
.site-content .ct-sources li { margin: 0 0 0.9rem; padding-left: 0.3rem; scroll-margin-top: 16px; }
.ct-sources li::marker { color: var(--text-secondary); }
.ct-accessed { color: var(--text-secondary); }

.site-content .ct-sources li:target,
.site-content .ct-part:target { outline: 1px dashed #8d897f; outline-offset: 6px; }

.site-shell .site-content .ct-fan {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .ct-stage { height: clamp(340px, 62vh, 520px); }
    .ct-button { min-height: 44px; }
    .ct-slider input { max-width: none; }
}

/* v2: modes, FSD view, camera markers, data tables ------------------------------------- */

.ct-modes {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #45453d;
    border-radius: 9px;
    background: #1e1e1b;
    gap: 2px;
}
.ct-modes .ct-button { border: 0; background: transparent; border-radius: 6px; min-height: 34px; }
.ct-modes .ct-button[aria-pressed="true"] { background: #eeeae3; color: #1b1a18; }
.ct-modes .ct-button:hover:not(:disabled):not([aria-pressed="true"]) { background: #2a2a26; }

.ct-drive { position: absolute; inset: 0; background: #181817; }
.ct-drive canvas { cursor: default; position: relative; z-index: 0; }
.ct-drive-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.ct-drive-worlds, .ct-drive-tools { display: flex; gap: 3px; padding: 3px; border: 1px solid #ffffff25; border-radius: 7px; background: #171816d9; pointer-events: auto; }
.ct-drive-worlds { width: max-content; }
.ct-drive-tools { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
.ct-drive-destination { flex-shrink: 0; }
.ct-drive-challenge { display: flex; gap: 12px; margin-top: 6px; padding: 6px 9px; border: 1px solid #ffffff25; border-radius: 5px; background: #171816d9; color: #eee9df; font: 12px/1.4 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.ct-drive-challenge b { color: #f5d0a0; font-weight: 600; }
.ct-drive-settings { position: absolute; right: 0; top: calc(100% + 6px); width: 240px; max-width: 100%; padding: 10px 12px; border: 1px solid #ffffff40; border-radius: 6px; background: #20211f; color: #f1ede5; pointer-events: auto; z-index: 2; }
.ct-drive-settings label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; cursor: pointer; }
.ct-drive-settings input { width: 18px; height: 18px; accent-color: #c8d4bf; }
.ct-drive-settings .ct-graphics-setting { justify-content: space-between; gap: 16px; }
.ct-drive-settings .ct-music-volume { justify-content: space-between; gap: 16px; }
.ct-drive-settings .ct-music-volume input { width: 140px; }
.ct-graphics-setting select { min-height: 44px; max-width: 170px; border: 1px solid #ffffff40; border-radius: 4px; padding: 6px 8px; color: #f2f0eb; background: #1e1f22; font: inherit; }
.ct-graphics-setting select:focus-visible { outline: 2px solid #d97757; outline-offset: 3px; }
.ct-game-brand img { display: block; width: 32px; height: 32px; image-rendering: pixelated; }
.site-shell .site-content .ct-drive-settings p { margin: 3px 0 0; color: #bdb8ad; font-size: 12px; line-height: 1.4; }
.ct-drive-settings input:focus-visible { outline: 2px solid #f1ede5; outline-offset: 3px; }
.ct-drive button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 4px; background: transparent; color: #f1ede5; font-family: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; }
.ct-drive button:hover { background: #ffffff22; }
.ct-drive button:focus-visible { outline: 2px solid #f1ede5; outline-offset: 1px; }
.ct-drive button[aria-pressed="true"] { background: #ebe6db; color: #25231e; }
.ct-drive-hud { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: baseline; gap: 22px; padding: 9px 13px; border: 1px solid #ffffff22; border-radius: 6px; background: #171816d9; color: #eee9df; font: 12px/1.4 ui-monospace, monospace; font-variant-numeric: tabular-nums; pointer-events: none; }
.ct-drive-hud strong { font-size: 24px; font-weight: 500; }
.ct-drive-hud small { color: #bdb8ad; font-size: 10px; }
#ct-drive-boost { min-width: 66px; }
#ct-drive-boost small { display: block; }
#ct-drive-boost b { font-weight: 400; }
#ct-drive-fuel { display: block; width: 66px; height: 5px; margin-top: 4px; accent-color: #89d8ee; }
#ct-drive-boost.is-firing small { color: #a3e7ff; }
#ct-drive-state { color: #c7d8d0; font-size: 10px; }
#ct-drive-world small { display: block; }
.ct-drive-message { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 5px; background: #171816df; color: #eee9df; text-align: center; font-size: 12px; pointer-events: none; }
/* Landing pop-up and boost speed lines (cybermoon-juice.mjs). Both ignore pointers. */
.ct-drive-pop { position: absolute; left: 50%; top: 26%; transform: translate(-50%, 0); opacity: 0; color: #eee9df; font-size: clamp(20px, 4vw, 34px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 12px #000a; white-space: nowrap; pointer-events: none; }
.ct-drive-pop[data-tone="best"] { color: #f5d0a0; }
.ct-drive-pop[data-tone="fail"] { color: #e7a19a; }
.ct-drive-pop.is-showing { animation: ct-drive-pop 1.3s ease-out forwards; }
@keyframes ct-drive-pop { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.7); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 22% { transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -18px) scale(1); } }
.ct-drive-speed-lines { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s; background: repeating-conic-gradient(from 0deg at 50% 50%, #ffffff00 0deg 5deg, #ffffff16 5.4deg, #ffffff00 6deg 11deg); -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 32%, #000 78%); mask-image: radial-gradient(circle at 50% 50%, transparent 32%, #000 78%); animation: ct-drive-speed .35s linear infinite; }
@keyframes ct-drive-speed { to { transform: rotate(5.5deg); } }
@keyframes ct-drive-fade { 0%, 100% { opacity: 0; } 10%, 75% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-drive-pop.is-showing { animation-name: ct-drive-fade; } .ct-drive-speed-lines { display: none; } }
.ct-drive-touch { display: none; position: absolute; bottom: 14px; left: 12px; right: 12px; justify-content: space-between; gap: 12px; pointer-events: none; }
.ct-drive-touch > div { display: flex; gap: 6px; }
.ct-drive-touch .ct-drive-extra { position: absolute; right: 0; bottom: 56px; }
.ct-drive-touch .ct-drive-extra button { font-size: 13px; min-width: 62px; }
.ct-drive-touch [data-drive-input="boost"] { border-color: #78c2d6; color: #b4e8f5; }
.ct-drive-touch [data-drive-input="handbrake"] { border-color: #c6a375; color: #eed0a6; }
.ct-drive-touch button { pointer-events: auto; min-width: 48px; min-height: 48px; padding: 10px; background: #171816d9; border: 1px solid #ffffff40; font-size: 19px; touch-action: none; user-select: none; -webkit-user-select: none; }
.ct-drive-touch [data-drive-input="brake"] { font-size: 12px; }
.ct-drive-touch button:active { background: #eee9df; color: #171816; }
.ct-drive-help { grid-area: drive-help; }
.site-shell .site-content .ct-drive-help p { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; }
.ct-drive-help summary { cursor: pointer; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.ct-viewer.is-driving .ct-controls, .ct-viewer.is-driving .ct-info { display: none; }
.ct-driving .site-explore-bar, .ct-driving .site-focus-controls { display: none !important; }
.ct-viewer.is-driving #ct-canvas, .ct-viewer.is-driving .ct-labels, .ct-viewer.is-driving .ct-tooltip, .ct-viewer.is-driving .ct-loading { visibility: hidden; }
.ct-stage:fullscreen { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
.ct-stage.ct-expanded { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 1200; border-radius: 0; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive-touch { display: flex; }
    .ct-drive-hud { bottom: 132px; gap: 12px; left: 12px; padding: 6px 10px; }
    #ct-drive-state { display: none; }
    .ct-drive-message { bottom: 192px; }
    .ct-drive-top { flex-wrap: wrap; top: 8px; left: 8px; right: 8px; }
    .ct-drive button { min-height: 44px; padding: 7px 9px; }
    .ct-drive-tools { margin-left: auto; }
    .ct-drive-tools button { font-size: 11px; padding: 7px 6px; }
    .ct-drive-settings label { min-height: 44px; }
    .ct-drive-hud strong { font-size: 20px; }
}
@media (max-width: 700px) {
    .ct-toolbar-note { display: none; }
    .ct-toolbar .ct-modes { width: 100%; }
    .ct-toolbar .ct-mode { flex: 1; padding: 8px; font-size: 13px; min-height: 44px; }
    .site-shell.site-reading.ct-page .site-content { width: calc(100% - 32px); }
}
@media (max-width: 380px) {
    .ct-drive-touch { gap: 8px; }
    .ct-drive-touch > div { gap: 4px; }
    .ct-drive-touch button { min-width: 44px; padding: 8px; }
    .ct-drive-hud { gap: 10px; }
    #ct-drive-distance { display: none; }
}

.ct-stage[data-mode="fsd"] {
    background: radial-gradient(120% 85% at 50% 38%, #1d2429 0%, #1a1d20 55%, #17191b 100%);
    border-color: #35444c;
}

.ct-label-camera {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c9ecfa;
}
.ct-label-camera::before {
    content: '';
    position: absolute;
    inset: 0;
    display: block;
    width: 7px;
    height: 7px;
    margin: auto;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: #1a3947;
    box-shadow: 0 0 0 2px rgba(13, 22, 27, 0.45);
}
.ct-label-camera[aria-pressed="true"] { background: transparent; color: #c9ecfa; }
.ct-label-camera:hover::before,
.ct-label-camera[aria-pressed="true"]::before { background: currentColor; }
.ct-label-camera:focus-visible { outline: 1px solid currentColor; outline-offset: 0; }
.ct-label-camera.is-cabin { color: #f6dcb4; }
.ct-label-camera.is-cabin::before { background: #5b4224; }
.ct-label-camera.is-cabin:hover::before,
.ct-label-camera.is-cabin[aria-pressed="true"]::before { background: currentColor; }
.ct-camera-caption { top: auto; bottom: 12px; left: 12px; max-width: calc(100% - 24px); white-space: normal; }

.site-shell .site-content .ct-inline-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.site-content .ct-flow {
    display: grid;
    gap: 10px;
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.site-content .ct-flow-step {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-areas: "index name" "index text";
    column-gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #2c2b27;
    border-radius: 8px;
    background: #1e1d1b;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-content .ct-flow-step.is-active { border-color: #6fd3ff; background: #1a2227; }
.ct-flow-index {
    grid-area: index;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #45453d;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}
.ct-flow-step.is-active .ct-flow-index { border-color: #6fd3ff; color: #6fd3ff; }
.ct-flow-name { grid-area: name; font-weight: 600; font-size: 1rem; color: var(--text); }
.ct-flow-text { grid-area: text; font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
@media (min-width: 700px) {
    .site-content .ct-flow { grid-template-columns: repeat(3, 1fr); }
}

.site-shell .site-content .ct-disclaimer {
    padding: 12px 14px;
    border: 1px dashed #9a968c;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.site-shell .site-content .ct-camera-name {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: #5f5d56;
    text-underline-offset: 3px;
    cursor: pointer;
}
.site-shell .site-content .ct-camera-name:hover,
.site-shell .site-content .ct-camera-name[aria-pressed="true"] { text-decoration-color: currentColor; }
.site-shell .site-content .ct-camera-name[aria-pressed="true"] { text-decoration-thickness: 2px; }

.site-content .ct-specs th[scope="row"],
.site-content .ct-dimensions th[scope="row"],
.site-content .ct-cameras th[scope="row"] { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-content .ct-specs thead th { color: var(--text-secondary); }
.site-content .ct-row-total td,
.site-content .ct-row-total th { border-bottom: 0; color: var(--text-secondary); }
.site-content .ct-row-estimate td,
.site-content .ct-row-estimate th { color: var(--text-secondary); }
.site-content .ct-sensors { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.site-content .ct-sensors li { font-size: 0.98rem; }
.site-shell .site-content .ct-checked { color: var(--text-secondary); font-size: 0.95rem; }
.ct-third-party { color: var(--text-secondary); }

.ct-table-scroll { max-width: 100%; overflow-x: auto; }
.ct-table-scroll:focus-visible { outline: 2px solid var(--text-secondary); outline-offset: 3px; }
.site-content .ct-specs, .site-content .ct-cameras { display: table; width: 100%; }
.site-content .ct-specs { min-width: 620px; }
.site-content .ct-cameras { min-width: 460px; }
.site-content .ct-specs thead, .site-content .ct-cameras thead { display: table-header-group; }
.site-content .ct-specs tbody, .site-content .ct-cameras tbody { display: table-row-group; }

/* Compact physical controls; details stay below the model instead of obscuring it. */
.ct-operations { border-top: 1px solid var(--border-color, #444); padding-top: 8px; width: 100%; }
.ct-action-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.ct-action-bar .ct-button { min-height: 34px; font-size: 12px; padding: 5px 8px; }
.ct-operation-tools { position: relative; margin-top: 4px; }
.ct-operation-tools > .ct-close-parts { position: absolute; right: 0; top: 0; min-height: 32px; padding: 4px 8px; font-size: 12px; }
.ct-action-bar .ct-button[aria-pressed="mixed"] { border-color: #aaa69d; background: #393b32; }
.ct-more-operations { margin: 0; }
.ct-operations summary { cursor: pointer; font-size: 12px; min-height: 34px; box-sizing: border-box; line-height: 18px; padding: 8px 80px 8px 0; }
.ct-operations summary span { opacity: .55; margin-left: 8px; font-size: 11px; }
.ct-operation-row { display: grid; grid-template-columns: 55px 1fr; gap: 6px; margin-top: 6px; align-items: start; }
.ct-operation-row > span { font-size: 11px; opacity: .65; padding-top: 8px; }
.ct-operation-row > div { display: flex; flex-wrap: wrap; gap: 4px; }
.ct-operation-row .ct-button { min-height: 32px; font-size: 11px; padding: 4px 7px; }
#ct-operation-note, .ct-cabin-hint { font-size: 12px; line-height: 1.5; margin: 0; }
.ct-more-operations > .ct-note { font-size: 11px; opacity: .65; margin: 8px 0 0; }
.ct-cabin-hint { width: 100%; }
#ct-operation-note { margin-top: 8px; }

/* Game first: the world owns the viewport; reference content is one step away. */
.site-shell.ct-page .site-content .ct-masthead { max-width: none; margin-bottom: 14px; }
.site-shell.ct-page .site-content .ct-masthead h1 { margin-bottom: 4px; font-size: 25px; }
.ct-masthead h1 span { color: var(--text-secondary); font-weight: 400; }
.site-shell.ct-page .site-content .ct-masthead p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.ct-reference { margin-top: 24px; padding: 12px 0; }
.ct-reference > summary { cursor: pointer; font-size: 13px; padding: 10px 0; }
.ct-reference > p { font-size: 14px !important; }
body.ct-driving { overflow: hidden; }
.ct-driving .site-header, .ct-driving .site-footer, .ct-driving .site-breadcrumb, .ct-driving .ct-masthead,
.ct-driving .ct-toolbar, .ct-driving .ct-reference, .ct-game-start .site-header, .ct-game-start .ct-masthead,
.ct-game-start .site-breadcrumb, .ct-game-start .ct-toolbar { display: none; }
.ct-driving .ct-stage, .ct-game-start .ct-stage { position: fixed; inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; z-index: 110; }
.ct-game-brand { position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 12px; z-index: 1; color: #fff5e5; font: 11px/20px ui-monospace, monospace; letter-spacing: .12em; text-shadow: 0 1px 4px #000; pointer-events: none; }
.site-shell .site-content .ct-game-brand a { pointer-events: auto; font-size: 10px; color: #fff5e5; text-decoration: none; border-right: 1px solid #ffffff50; padding: 4px 12px 4px 0; }
.ct-game-brand b { color: #e6c2a1; font-weight: 400; margin-left: 6px; }
.ct-drive-top { top: calc(max(12px, env(safe-area-inset-top)) + 36px); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); flex-wrap: nowrap; }
.ct-drive-worlds, .ct-drive-tools, .ct-drive-challenge { background: #161714bb; backdrop-filter: blur(8px); }
.ct-drive-tools { flex-wrap: nowrap; margin-left: auto; }
.ct-drive-settings { top: 48px; width: 300px; max-height: calc(100dvh - 160px); overflow-y: auto; box-shadow: 0 8px 24px #0005; }
.ct-drive-setting-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 9px 0; }
.ct-drive-setting-actions button, .site-shell .site-content .ct-drive-setting-actions a { background: #ffffff0c; border: 1px solid #ffffff20; font-size: 12px; text-align: center; }
.site-shell .site-content .ct-drive-setting-actions a { padding: 10px 4px; text-decoration: none; color: #eee9df; border-radius: 4px; }
.ct-drive-explore select { display: block; width: 100%; color: #f1ede5; background: #30312e; border: 1px solid #ffffff40; border-radius: 4px; padding: 9px 6px; font-size: 14px; margin-bottom: 8px; min-height: 44px; }
.ct-drive-waypoint { position: absolute; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #fff3de; background: #171816c9; border-radius: 4px; padding: 4px 10px; font: 11px/1.4 ui-monospace, monospace; pointer-events: none; }
#ct-drive-waypoint-arrow { display: inline-block; font-size: 18px; }
.ct-drive-hud { bottom: max(16px, env(safe-area-inset-bottom)); }
.ct-drive-touch { bottom: max(12px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive-top { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); gap: 6px; }
    .ct-drive-worlds, .ct-drive-tools { padding: 0; gap: 0; }
    .ct-drive button { min-height: 44px; padding: 6px 9px; font-size: 11px; }
    .ct-drive-worlds button { min-width: 48px; }
    .ct-drive-challenge { font-size: 10px; gap: 8px; margin-top: 4px; padding: 3px 7px; }
    .ct-drive-touch button { min-width: 44px; min-height: 44px; padding: 6px; font-size: 19px; background: #17181699; }
    .ct-drive-touch .ct-drive-extra { bottom: 50px; gap: 4px; }
    .ct-drive-touch .ct-drive-extra button { min-width: 45px; font-size: 11px; }
    .ct-drive-touch > div { gap: 4px; }
    .ct-drive-touch [data-drive-input="brake"] { font-size: 10px; }
    .ct-drive-hud { left: max(10px, env(safe-area-inset-left)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px); padding: 4px 7px; gap: 10px; background: #17181699; border: 0; }
    .ct-drive-hud strong { font-size: 18px; }
    #ct-drive-world, #ct-drive-distance, #ct-drive-heading { display: none; }
    #ct-drive-boost, #ct-drive-fuel { min-width: 54px; width: 54px; }
    .ct-drive-hud small { font-size: 8px; }
    .ct-drive-message { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 112px); font-size: 11px; padding: 5px 9px; max-width: calc(100% - 24px); }
    .ct-drive-waypoint { top: calc(max(12px, env(safe-area-inset-top)) + 112px); max-width: calc(100% - 20px); white-space: nowrap; font-size: 10px; }
    /* The tool row wraps on phones; open Settings below it so the toggle stays tappable. */
    .ct-drive-settings { max-width: calc(100vw - 16px); top: calc(100% + 6px); max-height: calc(100dvh - 300px); }
}
@media (max-height: 450px) and (orientation: landscape) {
    .ct-game-brand { top: 5px; }
    .ct-drive-top { top: 37px; }
    .ct-drive-settings { top: 47px; max-height: calc(100dvh - 94px); }
    .ct-drive-waypoint { top: 8px; }
    .ct-drive-message { bottom: 68px; max-width: 45%; }
}

/* The existing inspection canvas moves into this modal; no third renderer. */
.ct-drive-customize { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); z-index: 1; }
.ct-drive button.ct-drive-customize { min-height: 36px; background: #eee9df; color: #262925; border: 1px solid #ffffff65; padding: 7px 12px; }
.ct-drive-top { top: calc(max(12px, env(safe-area-inset-top)) + 44px); }
.ct-customizer { position: fixed; inset: 0; margin: auto; padding: 14px; width: min(780px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid #747771; border-radius: 10px; background: #20231f; color: #eee9df; box-shadow: 0 20px 80px #0009; }
.ct-customizer::backdrop { background: #080c09a6; }
.ct-customizer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.site-shell .site-content .ct-customizer h2 { color: #eee9df; font-size: 17px; margin: 0; letter-spacing: 0; }
.ct-customizer-header button { width: 44px; min-height: 44px; font-size: 24px; padding: 0; }
.ct-customizer-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, 1fr); gap: 16px; align-items: center; }
.ct-custom-preview { height: 290px; overflow: hidden; border: 1px solid #ffffff16; border-radius: 6px; background: radial-gradient(ellipse at 50% 30%, #525957, #202623 80%); }
.ct-viewer.is-driving .ct-customizer #ct-canvas { visibility: visible; cursor: grab; width: 100%; height: 100%; }
.ct-viewer.is-driving .ct-customizer #ct-canvas:active { cursor: grabbing; }
.site-shell .site-content .ct-customizer p { margin: 6px 0; font-size: 11px; line-height: 1.45; color: #b9c0b5; }
.ct-custom-model > p { text-align: center; }
.site-shell .site-content .ct-customizer .ct-finish-heading { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 9px; font-size: 12px; }
.ct-finish-heading strong { color: #eee9df; font-weight: 500; }
.ct-finish-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ct-drive .ct-finish-options button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; min-height: 62px; border: 1px solid #ffffff25; font-size: 10px; }
.ct-drive .ct-finish-options button[aria-pressed="true"] { background: #e4e9df; color: #252c24; border-color: #e4e9df; }
.ct-finish-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #b5bfb955; box-shadow: inset 0 1px 3px #ffffff25; }
.ct-custom-booster { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; cursor: pointer; margin-top: 5px; }
.ct-custom-booster input { width: 18px; height: 18px; accent-color: #c8d4bf; }
.ct-drive #ct-customizer-done { background: #e4e9df; color: #252c24; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive button.ct-drive-customize { top: max(6px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); min-height: 44px; }
    .ct-game-brand b { display: none; }
    .ct-drive-waypoint { top: calc(max(12px, env(safe-area-inset-top)) + 122px); }
}
@media (max-width: 600px) {
    .ct-customizer { padding: 10px; }
    .ct-customizer-header { margin-bottom: 4px; }
    .ct-customizer-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ct-custom-preview { height: min(30dvh, 250px); min-height: 140px; }
    .ct-drive .ct-finish-options button { min-height: 56px; padding: 6px 2px; gap: 4px; }
    .ct-finish-swatch { width: 22px; height: 22px; }
    .ct-customizer .ct-drive-setting-actions { margin-bottom: 0; }
}
@media (max-height: 500px) and (min-width: 601px) {
    .ct-customizer-header { margin-bottom: 0; }
    .ct-custom-preview { height: 225px; }
    .ct-drive-top { top: calc(max(8px, env(safe-area-inset-top)) + 44px); }
    .ct-drive-waypoint { top: 8px; }
}

/* Separate thumb areas and a deliberate acceleration lock for touch driving. */
.ct-drive .ct-drive-interact { position: absolute; left: 50%; transform: translateX(-50%); bottom: 78px; min-height: 44px; padding: 9px 16px; background: #d9e7dc; color: #18251e; white-space: nowrap; }
.ct-drive .ct-drive-ice { top: 112px; right: max(16px, env(safe-area-inset-right)); width: 270px; z-index: 2; }
.ct-drive-ice strong { font-size: 13px; font-weight: 500; }
.ct-drive-ice progress { width: 100%; height: 6px; accent-color: #a9dce5; }
.ct-drive-ice .ct-ice-note { opacity: .6; font-size: 10px; }
.ct-drive.is-inspecting-ice .ct-drive-waypoint, .ct-drive.is-inspecting-ice .ct-drive-challenge, .ct-drive.is-inspecting-ice .ct-drive-message { display: none; }
.ct-drive-challenge { flex-wrap: wrap; }
.ct-drive.is-on-foot [data-drive-input="handbrake"], .ct-drive.is-on-foot [data-drive-input="flip"], .ct-drive.is-on-foot #ct-drive-boost, .ct-drive.is-on-foot .ct-drive-challenge { display: none; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive .ct-drive-interact { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 202px); }
}
@media (max-height: 450px) and (orientation: landscape) {
    .ct-drive .ct-drive-interact { bottom: 60px; }
    .ct-drive .ct-drive-ice { top: 102px; right: 50%; transform: translateX(50%); width: min(270px, calc(100vw - 320px)); max-height: calc(100dvh - 114px); }
}
.ct-stage canvas, .ct-drive, .ct-drive * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ct-drive button { touch-action: manipulation; }
.ct-drive-touch, .ct-drive-touch * { touch-action: none; }
.ct-drive-touch .ct-drive-left { display: flex; flex-direction: column; gap: 10px; }
.ct-drive-touch .ct-drive-extra { position: static; display: flex; gap: 8px; }
.ct-drive-touch .ct-drive-extra button { width: 44px; min-width: 44px; min-height: 44px; padding: 4px; font-size: 11px; }
/* Drive stick: a single faint ring where the arrows used to be. */
.ct-drive-touch .ct-drive-stick { position: relative; width: 100px; height: 100px; border-radius: 50%; border: 1px solid #ffffff38; background: radial-gradient(circle, #17181633 0 45%, #17181666 70%); pointer-events: auto; touch-action: none; transition: border-color .15s, box-shadow .15s; }
.ct-drive-stick-knob { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid #ffffff55; background: #eee9df2e; pointer-events: none; }
.ct-drive-stick.is-active .ct-drive-stick-knob { background: #eee9df66; }
.ct-drive-stick:not(.is-active) .ct-drive-stick-knob { transition: transform .12s ease-out; }
.ct-drive-stick.is-fast { border-color: #a3e7ff; box-shadow: 0 0 0 2px #a3e7ff55, 0 0 14px #a3e7ff66; }
.ct-drive-stick.is-locked { border-color: #e9ce93; }
#ct-drive-lock-label { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; color: #e9ce93; font: 8px/1.2 ui-monospace, monospace; letter-spacing: .06em; pointer-events: none; }
.ct-drive-touch .ct-drive-pedals { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.ct-drive-touch .ct-drive-pedals [data-drive-input="brake"] { width: 100%; min-height: 46px; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive-hud { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 114px); }
    .ct-drive-message { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 156px); }
}
@media (max-height: 450px) and (orientation: landscape) {
    .ct-drive-message { bottom: max(16px, env(safe-area-inset-bottom)); max-width: 36%; }
}

@media (pointer: coarse), (max-width: 700px) {
    .ct-drive-tools { flex-shrink: 0; }
    .ct-drive-tools button { min-width: 44px; padding-inline: 6px; white-space: nowrap; }
}

/* Keep a single compact control available after looking around the cabin. */
.ct-drive-center-view { display: none; position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.is-cockpit .ct-drive-center-view { display: block; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive-center-view { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 114px); font-size: 11px; }
}
@media (max-width: 600px) {
    .ct-drive-top { flex-wrap: wrap; }
    .ct-drive-destination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .ct-drive-tools { margin-left: 0; }
}

/* Compact racing overlay, shared by the website and the iPhone app. */
.ct-race-panel { position: absolute; z-index: 14; right: max(14px, env(safe-area-inset-right)); top: 60px; width: min(360px, calc(100% - 28px)); max-height: calc(100% - 130px); overflow-y: auto; pointer-events: auto; box-shadow: 0 12px 44px #0008; }
.ct-race-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; letter-spacing: .08em; }
.ct-race-panel button, .ct-race-panel summary { min-height: 44px; cursor: pointer; }
.ct-race-panel button:disabled { opacity: .5; cursor: default; }
.ct-race-medals { display: flex; gap: 12px; color: #edc28a; font-size: 12px; }
.ct-race-panel details { border-top: 1px solid #ffffff26; margin-top: 8px; }
.ct-race-panel summary { display: flex; align-items: center; font-weight: 700; }
.ct-race-panel ol { padding-left: 24px; margin: 8px 0; }
.ct-race-panel li { padding: 5px 0; border-bottom: 1px solid #ffffff15; font-size: 12px; }
.ct-race-panel li strong { float: right; font-variant-numeric: tabular-nums; }
.ct-race-panel a { color: #9ee8e7; }
.ct-race-hud { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); padding: 8px 14px; background: #0f1b20e8; border: 1px solid #83e5df70; border-radius: 5px; color: #f9ead6; text-align: center; pointer-events: none; }
.ct-race-hud strong { display: block; font: 700 24px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.ct-race-hud span { font: 10px ui-monospace, monospace; letter-spacing: .06em; }
.ct-race-panel[hidden], .ct-race-hud[hidden] { display: none; }
@media(max-width: 700px) and (orientation: portrait) { .ct-race-hud { top: 108px; } .ct-race-panel { top: 104px; } }

/* Cybermoon: compact historical scene controls. */
.ct-apollo-panel { position:absolute; top:108px; right:16px; z-index:12; width:min(370px,calc(100% - 32px)); max-height:calc(100% - 128px); overflow:auto; }
.ct-apollo-panel small { color:#c7c4b8; font:10px/1.4 ui-monospace,monospace; }
.ct-apollo-panel p { margin:8px 0; font-size:12px; line-height:1.45; }
.ct-apollo-panel details { font-size:11px; }
.ct-apollo-panel a { color:#9ad8d4; }
.ct-apollo-panel .ct-drive-setting-actions { gap:5px; }
.ct-apollo-panel button { min-height:44px; }
.ct-drive.is-apollo-view .ct-drive-touch, .ct-drive.is-apollo-view .ct-drive-hud, .ct-drive.is-apollo-view .ct-drive-challenge, .ct-drive.is-apollo-view .ct-drive-waypoint { visibility:hidden; }
@media(max-height:500px) { .ct-apollo-panel { top:62px; right:12px; width:300px; max-height:calc(100% - 76px); } .ct-apollo-panel p { font-size:11px; margin:5px 0; } }

.ct-drive.is-apollo-view .ct-apollo-panel { top:auto; right:50%; bottom:14px; transform:translateX(50%); width:min(560px,calc(100% - 28px)); max-height:35%; padding:10px 12px; }
.ct-drive.is-apollo-view .ct-apollo-panel > small, .ct-drive.is-apollo-view .ct-apollo-panel > details, .ct-drive.is-apollo-view .ct-apollo-panel .ct-race-heading { display:none; }
.ct-drive.is-apollo-view #ct-apollo-status { font-weight:700; color:#d4c9a9; }
.ct-drive.is-apollo-view .ct-apollo-panel .ct-drive-setting-actions { display:flex; flex-wrap:wrap; }
.ct-drive.is-apollo-view .ct-apollo-panel button { flex:1; min-width:100px; }
@media(max-height:500px) { .ct-drive.is-apollo-view .ct-apollo-panel { bottom:8px; padding:6px 9px; max-height:32%; } .ct-drive.is-apollo-view #ct-apollo-caption { display:none; } }

.ct-drive.is-apollo-view #ct-drive-customize, .ct-drive.is-apollo-view #ct-drive-camera, .ct-drive.is-apollo-view #ct-drive-explore-toggle, .ct-drive.is-apollo-view #ct-race-toggle, .ct-drive.is-apollo-view #ct-board-toggle, .ct-drive.is-apollo-view #ct-achievements-toggle, .ct-drive.is-apollo-view #ct-daily-toggle { display:none; }

/* X handle board: same overlay language as Monument Run. */
.ct-board-panel { position: absolute; z-index: 14; right: max(14px, env(safe-area-inset-right)); top: 60px; width: min(360px, calc(100% - 28px)); max-height: calc(100% - 130px); overflow-y: auto; pointer-events: auto; box-shadow: 0 12px 44px #0008; }
.ct-board-panel button, .ct-board-panel #ct-board-close { min-height: 44px; cursor: pointer; }
.ct-board-panel ol { list-style: none; padding: 0; margin: 8px 0; }
.ct-board-panel li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #ffffff15; font-size: 13px; }
.ct-board-panel li img, .ct-board-mark { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #2a2c28; }
.ct-board-panel li span, .ct-board-panel li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.ct-board-panel li strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-board-panel li em { font-style: normal; color: #b9c0b5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-shell .site-content .ct-board-fan, .ct-board-fan { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: #b9c0b5; }
.ct-board-panel[hidden] { display: none; }
.site-shell .site-content .ct-board-note, .ct-board-note { margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: #b9c0b5; }
.ct-board-tabs { display: flex; gap: 6px; margin: 10px 0 0; }
.ct-board-tabs button { flex: 1; }
.site-shell .site-content #ct-board-players-total, #ct-board-players-total { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.ct-board-panel ol[hidden], #ct-board-players-total[hidden], #ct-board-visits[hidden] { display: none; }
.site-shell .site-content #ct-board-visits, #ct-board-visits { margin: 8px 0 0; font-size: 12px; color: #b9c0b5; font-variant-numeric: tabular-nums; }
@media(max-width: 700px) and (orientation: portrait) { .ct-board-panel { top: 104px; } }

/* Robot fieldwork shares the driving controls and preserves 44 px actions. */
.ct-drive-survey { position: absolute; top: 55px; left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 4px; background: #101b18dc; color: #d9eee2; font: 11px/1.4 ui-monospace, monospace; text-align: center; max-width: 55%; pointer-events: none; }
.ct-drive #ct-drive-return:disabled { opacity: .65; cursor: default; }
@media (max-width: 600px) and (orientation: portrait) { .ct-drive.is-on-foot .ct-drive-waypoint { top: 160px; } .ct-drive-survey { top: 190px; max-width: calc(100% - 24px); width: max-content; } }
@media (max-height: 550px) and (orientation: landscape) { .ct-drive-survey { top: 32px; padding: 3px 9px; font-size: 10px; } }

.ct-drive-actions { position: absolute; right: max(8px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); display: flex; gap: 5px; z-index: 1; }
.ct-drive .ct-drive-actions > button { position: static; min-height: 44px; }
@media (min-width: 701px) and (min-height: 551px) { .ct-drive.is-on-foot .ct-drive-message { bottom: 132px; } }
@media (max-height: 550px) and (orientation: landscape) { .ct-drive.is-on-foot .ct-drive-message { bottom: 112px; } }
/* Robot run lock indicator, styled like the firing boost readout. */
.ct-drive-run { align-self: center; padding: 1px 6px; border: 1px solid #a3e7ff80; border-radius: 4px; color: #a3e7ff; font-size: 10px; letter-spacing: .08em; }
.ct-drive-run[hidden] { display: none; }
/* Phone landscape: Safari 26 floats its ••• page menu over the top edge of the page, right of center.
   Keep that band clear by moving Customize / Exit truck under the tool row on short touch screens. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
    .ct-drive-actions { top: calc(max(8px, env(safe-area-inset-top)) + 96px); }
}

/* Compact tool row tucked into the top-right corner, right under Customize / Exit truck. */
.ct-drive-top { top: calc(max(8px, env(safe-area-inset-top)) + 42px); right: max(8px, env(safe-area-inset-right)); }
.ct-drive-tools { gap: 1px; padding: 2px; border-radius: 6px; }
.ct-drive .ct-drive-tools button { min-height: 28px; min-width: 0; padding: 3px 8px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.ct-drive .ct-drive-actions > button { min-height: 36px; }
.ct-drive-settings { top: 40px; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive-top { top: calc(max(8px, env(safe-area-inset-top)) + 48px); }
    .ct-drive-tools { padding: 1px; }
    .ct-drive .ct-drive-tools button { min-height: 32px; padding: 3px 7px; }
    .ct-drive .ct-drive-actions > button { min-height: 44px; }
    .ct-drive-settings { top: calc(100% + 6px); }
}
/* Portrait phones: the tool row sits first, right under the corner actions; Mars / Moon wraps below it. */
@media (max-width: 600px) {
    .ct-drive-top { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; }
    .ct-drive-tools { order: -1; margin-left: auto; flex-wrap: nowrap; }
    .ct-drive .ct-drive-tools button { padding: 3px 6px; }
    /* The status line wraps instead of running off a narrow screen. */
    .ct-drive-destination { flex-shrink: 1; min-width: 0; max-width: 100%; }
    .ct-drive-challenge { min-width: 0; max-width: 100%; }
}
/* Portrait phones: once the pumpkin count shows, the status line drops to its own row, so the waypoint chip moves below it. */
@media (max-width: 600px) and (orientation: portrait) {
    .ct-drive:has(#ct-drive-pumpkins:not([hidden])):not(.is-on-foot) .ct-drive-waypoint { top: calc(max(12px, env(safe-area-inset-top)) + 172px); }
}
/* Phone landscape: the row stays just below Safari's floating ••• band, actions sit right under it. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
    .ct-drive-top { top: calc(max(8px, env(safe-area-inset-top)) + 44px); }
    .ct-drive-actions { top: calc(max(8px, env(safe-area-inset-top)) + 84px); }
}
/* Moon Patrol: the lights toggle glows red and blue while it is on. */
#ct-drive-patrol { color: #cfe0ff; }
/* The patrol status can be long; let the status column shrink so the toolbar never runs off screen. */
.ct-drive-destination:has(#ct-drive-patrol:not([hidden])) { flex-shrink: 1; min-width: 0; }

/* Solar glass forge: the HUD steps aside while the furnace casts a piece, then a caption names it. */
.ct-drive.is-forging .ct-drive-touch, .ct-drive.is-forging .ct-drive-hud, .ct-drive.is-forging .ct-drive-top,
.ct-drive.is-forging .ct-drive-waypoint, .ct-drive.is-forging .ct-drive-actions, .ct-drive.is-forging .ct-drive-interact,
.ct-drive.is-forging .ct-drive-survey, .ct-drive.is-forging .ct-drive-message, .ct-drive.is-forging .ct-drive-center-view,
.ct-drive.is-forging .ct-game-brand, .ct-drive.is-forging .ct-drive-minimap { visibility: hidden; }
.ct-drive-forge-caption { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30; margin: 0; width: min(520px, calc(100% - 28px)); transform: translate(-50%, 8px); padding: 12px 16px 11px; border-radius: 12px; background: linear-gradient(180deg, rgba(14,12,10,.72), rgba(8,7,6,.82)); box-shadow: 0 0 0 1px rgba(255,170,90,.18), 0 10px 30px rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #f3ede6; opacity: 0; transition: opacity .6s ease, transform .6s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ct-drive-forge-caption.is-open { opacity: 1; transform: translate(-50%, 0); }
.ct-drive-forge-caption[hidden] { display: none !important; }
.ct-drive-forge-caption strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: .01em; color: #ffcf9e; }
.ct-drive-forge-caption span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: #ddd5cb; }
.ct-drive-forge-caption small { display: block; margin-top: 6px; color: #9a9187; font: 10px/1.4 ui-monospace, monospace; letter-spacing: .04em; }
@media (max-height: 500px) { .ct-drive-forge-caption { bottom: 8px; padding: 8px 12px; width: min(560px, calc(100% - 120px)); } .ct-drive-forge-caption span { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .ct-drive-forge-caption { transition-duration: .01s; } }
/* Rim Observatory eyepiece: the robot looks in and a real Hubble / Webb image fills the lens. */
.ct-drive.is-stargazing .ct-drive-touch, .ct-drive.is-stargazing .ct-drive-hud, .ct-drive.is-stargazing .ct-drive-top,
.ct-drive.is-stargazing .ct-drive-waypoint, .ct-drive.is-stargazing .ct-drive-actions, .ct-drive.is-stargazing .ct-drive-interact,
.ct-drive.is-stargazing .ct-drive-survey, .ct-drive.is-stargazing .ct-drive-message, .ct-drive.is-stargazing .ct-drive-center-view,
.ct-drive.is-stargazing .ct-game-brand, .ct-drive.is-stargazing .ct-drive-minimap { visibility: hidden; }
.ct-drive-eyepiece { position: absolute; inset: 0; z-index: 30; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2.4vh, 22px); padding: 16px; container-type: size; background: radial-gradient(circle at 50% 46%, #05070c 0%, #010103 70%, #000 100%); opacity: 0; transition: opacity .35s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ct-drive-eyepiece.is-open { opacity: 1; }
.ct-drive-eyepiece[hidden] { display: none !important; }
.ct-eyepiece-lens { position: relative; flex: none; width: min(84vw, 70vh); width: min(84cqw, 70cqh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000; clip-path: circle(0% at 50% 50%); transition: clip-path .95s cubic-bezier(.2,.7,.15,1); box-shadow: 0 0 0 1px rgba(150,180,220,.22), 0 0 80px rgba(70,110,255,.16); }
.ct-drive-eyepiece.is-open .ct-eyepiece-lens { clip-path: circle(50% at 50% 50%); }
.ct-eyepiece-lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; filter: blur(9px) brightness(.55) saturate(.8); transform: scale(var(--kb-s0, 1.1)) translate(var(--kb-x0, 0%), var(--kb-y0, 0%)); transition: filter 1.7s cubic-bezier(.25,.6,.2,1) .25s; }
.ct-drive-eyepiece.is-focused .ct-eyepiece-lens img { filter: none; animation: ct-eyepiece-drift 32s ease-in-out .2s infinite alternate both; }
@keyframes ct-eyepiece-drift {
    from { transform: scale(var(--kb-s0, 1.1)) translate(var(--kb-x0, 0%), var(--kb-y0, 0%)); }
    to { transform: scale(var(--kb-s1, 1.3)) translate(var(--kb-x1, 0%), var(--kb-y1, 0%)); }
}
/* Field stop: a soft dark falloff, a faint chromatic fringe and a little glass glare. */
.ct-eyepiece-vignette { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 26%), radial-gradient(circle, rgba(0,0,0,0) 54%, rgba(0,0,0,.35) 64%, rgba(0,0,0,.82) 70.5%, #000 71%);
    box-shadow: inset 0 0 0 2px rgba(255,140,90,.12), inset 0 0 0 4px rgba(90,150,255,.1), inset 0 0 40px 10px rgba(0,0,0,.65); }
.ct-eyepiece-status { position: absolute; inset: 0; display: grid; place-items: center; color: #a9b6c8; font: 12px/1.3 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.ct-drive-eyepiece.is-focused .ct-eyepiece-status { display: none; }
.ct-drive-eyepiece figcaption { max-width: min(560px, 92cqw); text-align: center; color: #e7ecf3; opacity: 0; transform: translateY(6px); transition: opacity .6s ease .75s, transform .6s ease .75s; pointer-events: none; }
.ct-drive-eyepiece.is-focused figcaption { opacity: 1; transform: none; }
.ct-drive-eyepiece figcaption strong { display: block; font-size: clamp(16px, 2.6cqh, 22px); font-weight: 650; letter-spacing: .01em; }
.ct-drive-eyepiece figcaption span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: #c5cdd8; }
.ct-drive-eyepiece figcaption small { display: block; margin-top: 6px; color: #8d97a6; font: 10px/1.4 ui-monospace, monospace; }
.ct-eyepiece-hint { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); margin: 0; color: #7f8a99; font: 10.5px/1.3 ui-monospace, monospace; letter-spacing: .08em; white-space: nowrap; opacity: 0; transition: opacity .6s ease 1.4s; pointer-events: none; }
.ct-drive-eyepiece.is-focused .ct-eyepiece-hint { opacity: 1; }
@media (max-height: 520px) and (orientation: landscape) {
    .ct-drive-eyepiece { flex-direction: row; gap: 22px; }
    .ct-eyepiece-lens { width: min(52vw, 82vh); width: min(52cqw, 82cqh); }
    .ct-drive-eyepiece figcaption { max-width: 36cqw; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-eyepiece-lens, .ct-eyepiece-lens img, .ct-drive-eyepiece figcaption { transition-duration: .01s; transition-delay: 0s; }
    .ct-drive-eyepiece.is-focused .ct-eyepiece-lens img { animation: none; }
}
/* Minimap (cybermoon-minimap.mjs): bottom right on desktop (raised clear of Center view in the cockpit),
   and mid-right on touch screens, between the top rows and the stunt buttons. */
.ct-drive-minimap { position: absolute; right: 16px; bottom: 16px; width: 168px; aspect-ratio: 1; pointer-events: none; }
.ct-drive.is-cockpit .ct-drive-minimap { bottom: 64px; }
.ct-drive-minimap[hidden] { display: none; }
.ct-drive-minimap canvas { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px #ffffff24; }
.ct-drive .ct-drive-minimap-zoom { position: absolute; right: -2px; bottom: -2px; min-height: 0; padding: 3px 7px; border-radius: 10px; background: #171816e6; box-shadow: 0 0 0 1px #ffffff2a; font-size: 10px; pointer-events: auto; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive .ct-drive-minimap, .ct-drive.is-cockpit .ct-drive-minimap { top: 50%; bottom: auto; right: max(10px, env(safe-area-inset-right)); width: 104px; transform: translateY(-50%); }
}
@media (pointer: coarse) and (max-height: 550px) and (orientation: landscape), (max-width: 700px) and (max-height: 550px) and (orientation: landscape) {
    .ct-drive .ct-drive-minimap, .ct-drive.is-cockpit .ct-drive-minimap { width: 88px; }
}
@media (pointer: fine) and (min-width: 701px) and (max-height: 520px) { .ct-drive-minimap { width: 120px; } }
.ct-drive.is-inspecting-ice .ct-drive-minimap { display: none; }

/* Live players (cybermoon-multiplayer.mjs): "N online" sits beside Mars / Moon. */
.ct-drive-world-row { display: flex; align-items: center; gap: 6px; }
.ct-drive-online { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #ffffff25; border-radius: 999px; background: #161714bb; backdrop-filter: blur(8px); color: #eee9df; font: 11px/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: auto; }
.ct-drive-online[hidden] { display: none; }
.ct-drive-online i { width: 7px; height: 7px; border-radius: 50%; background: #6fe08a; box-shadow: 0 0 6px #6fe08a99; }
#ct-drive-players-note { margin: -4px 0 6px 26px; font-size: 11px; color: #c9c3b8; }
@media (pointer: coarse), (max-width: 700px) { .ct-drive-online { padding: 4px 8px; font-size: 10px; } }
.ct-drive.is-apollo-view .ct-drive-online { visibility: hidden; }

/* Race and Board overlays are children of the stage, not the tool row: pin them under the tool row
   (the generic .ct-drive-settings "top" rules above would push them off screen on phones). */
.ct-drive .ct-race-panel, .ct-drive .ct-board-panel { top: calc(max(8px, env(safe-area-inset-top)) + 96px); max-height: calc(100% - max(8px, env(safe-area-inset-top)) - 108px); }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive .ct-race-panel, .ct-drive .ct-board-panel { top: calc(max(8px, env(safe-area-inset-top)) + 102px); max-height: calc(100% - max(8px, env(safe-area-inset-top)) - 112px); }
}

.ct-achievements-panel li { grid-template-columns: 22px minmax(0, 1fr); align-items: start; }
.ct-achievements-panel li.is-locked { opacity: .42; }
.ct-achievements-panel li strong, .ct-achievements-panel li em { display: block; }
.ct-achievements-panel li em { margin-top: 2px; font-style: normal; color: #b9c0b5; white-space: normal; }
.ct-ach-mark { width: 18px; height: 18px; margin-top: 2px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ct-achievements-toasts { position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 96px); transform: translate3d(-50%, 0, 0); display: flex; flex-direction: column; gap: 6px; width: min(320px, calc(100% - 28px)); z-index: 20; pointer-events: none; }
.ct-achievement-toast { padding: 8px 12px; border: 1px solid #ffffff40; border-radius: 6px; background: #171816; color: #eee9df; font: 12px/1.4 ui-monospace, monospace; box-shadow: 0 8px 24px #0008; }
.ct-achievement-toast small { display: block; color: #b9c0b5; font-size: 10px; letter-spacing: .08em; }
.ct-achievement-toast strong { display: block; margin: 2px 0; }
.ct-achievement-toast span { display: block; color: #c9c3b8; }

/* Icon toolbar: buttons keep their words for screen readers and tooltips; the icon
   comes from data-icon so scripts can relabel a button by changing one attribute. */
.ct-drive button.ct-icon { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; display: inline-grid; place-items: center; font-size: 0; line-height: 0; border-radius: 6px; }
.ct-drive button.ct-icon::before { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ct-drive button.ct-icon[data-icon="mars"]::before, .ct-drive button.ct-icon[data-icon="moon"]::before { width: 22px; height: 22px; background: var(--icon) center / contain no-repeat; -webkit-mask: none; mask: none; }
.ct-drive button.ct-icon[aria-pressed="false"][data-world]::before { opacity: .55; filter: grayscale(.4); }
.ct-drive button.ct-icon.ct-icon-text { width: auto; padding: 0 10px 0 8px; gap: 6px; grid-auto-flow: column; font: 12px/1 ui-monospace, monospace; }
.ct-drive button.ct-drive-customize.ct-icon { padding: 0; }
.ct-drive-tools, .ct-drive-worlds { gap: 2px; padding: 3px; }
.ct-drive-actions { gap: 6px; }
.ct-drive-challenge { gap: 10px; align-items: center; }
.ct-drive-challenge > [data-icon] { display: inline-flex; align-items: center; gap: 4px; }
.ct-drive-challenge > [data-icon]::before { content: ''; flex: none; width: 13px; height: 13px; background: currentColor; opacity: .75; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ct-drive-challenge > [data-icon][hidden] { display: none; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-drive button.ct-icon { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
    .ct-drive-tools, .ct-drive-worlds { padding: 2px; gap: 1px; }
    .ct-drive-tools button.ct-icon { padding: 0; }
    .ct-drive-challenge { font-size: 11px; gap: 9px; }
}
@media (max-width: 430px) { .ct-drive .ct-drive-tools button.ct-icon { width: 36px; min-width: 36px; } }
@media (max-width: 360px) { .ct-drive .ct-drive-tools button.ct-icon { width: 32px; min-width: 32px; } }
@media (max-width: 340px) { .ct-drive .ct-drive-tools button.ct-icon { width: 29px; min-width: 29px; } }
/* Icon buttons are compact enough for the actions to stay in the top corner in landscape. */
@media (orientation: landscape) and (max-height: 550px) { .ct-drive .ct-drive-actions { top: max(8px, env(safe-area-inset-top)); } }

[data-icon="chase"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2017l2-6h10l2%206v3H5z%22/%3E%3Cpath%20d%3D%22M8%2011l1-3h6l1%203%22/%3E%3Cpath%20d%3D%22M7%2020v1M17%2020v1%22/%3E%3Cpath%20d%3D%22M3%205l3%202M21%205l-3%202%22/%3E%3C/svg%3E"); }
[data-icon="wheel"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.5%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222.2%22/%3E%3Cpath%20d%3D%22M3.8%2010.5h6M14.2%2010.5h6M12%2014.2v6%22/%3E%3C/svg%3E"); }
[data-icon="hood"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2014l3-5h12l3%205v4H3z%22/%3E%3Cpath%20d%3D%22M7%2014h2M15%2014h2M6%2018v2M18%2018v2%22/%3E%3C/svg%3E"); }
[data-icon="robot"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%228%22%20y%3D%223%22%20width%3D%228%22%20height%3D%227%22%20rx%3D%223.5%22/%3E%3Cpath%20d%3D%22M10%206.5h4%22/%3E%3Cpath%20d%3D%22M7%2021v-5l-1.5-1%201-3.5h11l1%203.5-1.5%201v5%22/%3E%3C/svg%3E"); }
[data-icon="compass"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M15.5%208.5l-2%205-5%202%202-5z%22/%3E%3C/svg%3E"); }
[data-icon="flag"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2021V4%22/%3E%3Cpath%20d%3D%22M5%204h13l-2.5%204%202.5%204H5%22/%3E%3C/svg%3E"); }
[data-icon="stopwatch"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213.5%22%20r%3D%227%22/%3E%3Cpath%20d%3D%22M12%2013.5V10M10%203h4M18.2%207.3l1.4-1.4%22/%3E%3C/svg%3E"); }
[data-icon="pause"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%205v14M15%205v14%22%20stroke-width%3D%222.6%22/%3E%3C/svg%3E"); }
[data-icon="play"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205l11%207-11%207z%22%20fill%3D%22black%22/%3E%3C/svg%3E"); }
[data-icon="map"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206.5l6-2.5%206%202.5%206-2.5v13.5l-6%202.5-6-2.5-6%202.5z%22/%3E%3Cpath%20d%3D%22M9%204v13.5M15%206.5V20%22/%3E%3C/svg%3E"); }
[data-icon="sliders"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h9M17%207h3M4%2017h3M11%2017h9%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%227%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2217%22%20r%3D%222%22/%3E%3C/svg%3E"); }
[data-icon="paint"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018c1.4%200%202-.9%202-1.9%200-1.2-1-1.6-1-2.6s.9-1.5%202-1.5h2.2A3.8%203.8%200%200%200%2021%2011.2C21%206.6%2017%203%2012%203z%22/%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2211.5%22%20r%3D%221%22%20fill%3D%22black%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%227.3%22%20r%3D%221%22%20fill%3D%22black%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%227.3%22%20r%3D%221%22%20fill%3D%22black%22/%3E%3C/svg%3E"); }
[data-icon="exit"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%204H5v16h5%22/%3E%3Cpath%20d%3D%22M14%208l4%204-4%204M18%2012H9%22/%3E%3C/svg%3E"); }
[data-icon="enter"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%204h5v16h-5%22/%3E%3Cpath%20d%3D%22M10%208l4%204-4%204M14%2012H4%22/%3E%3C/svg%3E"); }
[data-icon="flip"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2012a8%208%200%201%201-2.6-5.9%22/%3E%3Cpath%20d%3D%22M20%204v5h-5%22/%3E%3C/svg%3E"); }
[data-icon="trophy"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%204h8v5a4%204%200%200%201-8%200z%22/%3E%3Cpath%20d%3D%22M8%206H5.5a2.5%202.5%200%200%200%202.6%204M16%206h2.5a2.5%202.5%200%200%201-2.6%204M12%2013v4M9%2020h6M10%2017h4v3h-4z%22/%3E%3C/svg%3E"); }
[data-icon="ice"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v18M4.2%207.5l15.6%209M19.8%207.5l-15.6%209%22/%3E%3Cpath%20d%3D%22M9.5%204.5L12%206l2.5-1.5M9.5%2019.5L12%2018l2.5%201.5%22/%3E%3C/svg%3E"); }
[data-icon="pumpkin"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%207c-5%200-8%202.6-8%206.5S7%2020%2012%2020s8-2.6%208-6.5S17%207%2012%207z%22/%3E%3Cpath%20d%3D%22M12%207c-2%202.5-2%2010.5%200%2013M12%207c2%202.5%202%2010.5%200%2013M12%207c0-2%201-3%202.5-3.5%22/%3E%3C/svg%3E"); }
[data-icon="shield"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l7%203v6c0%204.2-3%207.2-7%209-4-1.8-7-4.8-7-9V6z%22/%3E%3Cpath%20d%3D%22M9%2012l2%202%204-4%22/%3E%3C/svg%3E"); }
[data-icon="star"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203.5l2.6%205.4%205.9.8-4.3%204.1%201%205.9L12%2017l-5.2%202.7%201-5.9-4.3-4.1%205.9-.8z%22/%3E%3C/svg%3E"); }
[data-icon="mars"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228%22%20fill%3D%22%23c65f37%22/%3E%3Cpath%20d%3D%22M6.5%2010c2.5%201.2%205%20.2%207.5%201.2s3%20.3%204-.4M7.5%2015.3c2-.9%204%20.2%206-.4%22%20stroke%3D%22%237d321a%22%20stroke-width%3D%221.4%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2215.5%22%20r%3D%221.3%22%20fill%3D%22%238f3b1f%22/%3E%3C/svg%3E"); }
[data-icon="moon"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228%22%20fill%3D%22%23d8d5cd%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2210%22%20r%3D%221.8%22%20fill%3D%22%23b2aea4%22/%3E%3Ccircle%20cx%3D%2214.5%22%20cy%3D%2214.5%22%20r%3D%222.4%22%20fill%3D%22%23b2aea4%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%228%22%20r%3D%221%22%20fill%3D%22%23b2aea4%22/%3E%3C/svg%3E"); }
[data-icon="share"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2014V3.5M8%207.5l4-4%204%204%22/%3E%3Cpath%20d%3D%22M8.5%2010.5H6v9.5h12v-9.5h-2.5%22/%3E%3C/svg%3E"); }
[data-icon="flask"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203h6M10%203v6l-5%209a2%202%200%200%200%201.8%203h10.4a2%202%200%200%200%201.8-3l-5-9V3%22/%3E%3Cpath%20d%3D%22M7.5%2015h9%22/%3E%3C/svg%3E"); }
[data-icon="cup"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%209h11v5a5%205%200%200%201-5%205h-1a5%205%200%200%201-5-5z%22/%3E%3Cpath%20d%3D%22M16%2011h1.5a2.5%202.5%200%200%201%200%205H16M9%203c-1%201.5%201%202.5%200%204M12.5%203c-1%201.5%201%202.5%200%204%22/%3E%3C/svg%3E"); }
[data-icon="leaf"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2019c0-8%205-14%2015-14%200%2010-6%2015-14%2015%22/%3E%3Cpath%20d%3D%22M5%2019c3-4%206-7%2010-9%22/%3E%3C/svg%3E"); }
[data-icon="globe"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M3%2012h18M12%203c3%203%203%2015%200%2018M12%203c-3%203-3%2015%200%2018%22/%3E%3C/svg%3E"); }
[data-icon="home"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2011l8-7%208%207v9H4z%22/%3E%3Cpath%20d%3D%22M10%2020v-5h4v5%22/%3E%3C/svg%3E"); }
/* Outpost rooms: a card that says what a room or station is and what you can do there. */
.ct-room-card { position: absolute; top: 108px; right: 14px; width: min(330px, calc(100% - 28px)); padding: 12px 14px 12px; border: 1px solid #9ff0ff40; border-radius: 8px; background: linear-gradient(180deg, #0d1c24ee, #071015ee); color: #e6f4f8; font: 12px/1.45 ui-monospace, Menlo, monospace; box-shadow: 0 10px 30px #0008; backdrop-filter: blur(6px); z-index: 4; pointer-events: none; animation: ct-room-in .25s ease-out; }
.ct-room-card[hidden] { display: none; }
@keyframes ct-room-in { from { opacity: 0; transform: translateY(-6px); } }
.ct-room-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: #9ff0ff; font-size: 10px; letter-spacing: .12em; }
.ct-room-kicker::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ct-room-title { margin: 0 0 6px; font: 600 16px/1.25 system-ui, sans-serif; color: #fff; }
.ct-room-body { margin: 0; color: #c7dbe2; }
.ct-room-body:empty { display: none; }
.ct-room-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.ct-room-list:empty { display: none; }
.ct-room-list li { display: flex; align-items: center; gap: 7px; padding: 3px 0; border-top: 1px solid #ffffff14; }
.ct-room-list li::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--swatch, #9ff0ff55); }
.ct-room-list li[data-done="true"]::before { background: var(--swatch, #7dffb0); }
.ct-room-list li[data-done="false"] { color: #f2dcb6; }
.ct-room-list li[data-done="false"]::before { background: transparent; border: 1px solid #ffd38a; }
.ct-room-list li span { margin-left: auto; color: #9fb1b8; }
.ct-room-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #9fb1b8; font-size: 18px; line-height: 1; pointer-events: auto; cursor: pointer; }
.ct-room-fade { position: absolute; inset: 0; background: #02050a; opacity: 0; pointer-events: none; transition: opacity .7s ease; z-index: 3; }
.ct-room-fade.is-on { opacity: .92; }
@media (max-width: 700px) and (orientation: portrait) { .ct-room-card { top: 222px; left: 12px; right: 12px; width: auto; max-height: 34vh; overflow: hidden; padding: 8px 10px; font-size: 10.5px; line-height: 1.4; } .ct-room-title { font-size: 13.5px; margin-bottom: 3px; padding-right: 22px; } .ct-room-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .ct-room-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .ct-room-list li { padding: 2px 6px; border: 1px solid #ffffff1f; border-radius: 4px; } .ct-room-list li span { margin-left: 4px; } }
@media (max-height: 550px) and (orientation: landscape) { .ct-room-card { top: 44px; bottom: auto; right: 12px; transform: none; width: min(300px, 44%); max-height: calc(100% - 120px); overflow: hidden; font-size: 10.5px; } .ct-room-title { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .ct-room-card { animation: none; } .ct-room-fade { transition: none; } }

/* Card-sized player (an iframe in an X post, 245px wide and up). Sized by the game's own
   box, not the viewport, so it also holds in any small frame. Essentials only: speed, a
   short icon row, the stick and four thumb buttons; Settings and Full screen hold the rest. */
[data-icon="expand"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%209V4h5M20%209V4h-5M4%2015v5h5M20%2015v5h-5%22/%3E%3C/svg%3E"); }
.ct-drive { container: ct-drive / size; }
#ct-embed-fullscreen { display: none; }
.ct-embed #ct-embed-fullscreen { display: inline-grid; }
.ct-embed .ct-custom-model { display: none; }
.ct-embed .ct-customizer-layout { grid-template-columns: minmax(0, 1fr); }
@container ct-drive (max-height: 300px) or (max-width: 300px) {
    .ct-drive .ct-game-brand, .ct-drive .ct-drive-actions, .ct-drive .ct-drive-challenge, .ct-drive .ct-drive-waypoint,
    .ct-drive .ct-drive-minimap, .ct-drive #ct-drive-map-toggle, .ct-drive #ct-drive-explore-toggle, .ct-drive #ct-apollo-toggle, .ct-drive #ct-board-toggle, .ct-drive #ct-achievements-toggle, .ct-drive #ct-daily-toggle, .ct-drive #ct-x-account,
    .ct-drive #ct-drive-world, .ct-drive #ct-drive-distance, .ct-drive #ct-drive-heading, .ct-drive #ct-drive-state, .ct-drive #ct-drive-charge-label { display: none; }
    .ct-drive .ct-drive-top { top: 4px; left: 4px; right: 4px; gap: 4px; flex-wrap: nowrap; }
    .ct-drive .ct-drive-worlds, .ct-drive .ct-drive-tools { padding: 1px; gap: 1px; margin: 0; }
    .ct-drive .ct-drive-tools { margin-left: auto; }
    .ct-drive .ct-drive-top button.ct-icon { width: 30px; min-width: 30px; height: 30px; min-height: 30px; }
    .ct-drive .ct-drive-top button.ct-icon::before { width: 17px; height: 17px; }
    .ct-drive .ct-drive-settings { position: absolute; top: 38px; left: 4px; right: 4px; width: auto; max-width: none; max-height: calc(100cqh - 42px); padding: 6px 9px; }
    .ct-drive .ct-drive-settings label { min-height: 30px; font-size: 12px; }
    .ct-drive .ct-drive-setting-actions { margin: 5px 0; }
    .ct-drive .ct-drive-setting-actions button { min-height: 30px; padding: 4px; }
    .ct-drive .ct-graphics-setting select { min-height: 30px; padding: 3px 6px; }
    /* Speed, then a slim boost bar, between the thumbs. */
    .ct-drive .ct-drive-hud { left: 50%; right: auto; bottom: 4px; transform: translateX(-50%); gap: 6px; padding: 2px 6px; align-items: center; background: #17181699; border: 0; }
    .ct-drive .ct-drive-hud strong { font-size: 15px; }
    .ct-drive .ct-drive-hud small { font-size: 8px; }
    .ct-drive #ct-drive-boost { min-width: 34px; width: 34px; }
    .ct-drive #ct-drive-boost small { font-size: 7px; }
    .ct-drive #ct-drive-fuel { width: 34px; min-width: 34px; height: 3px; margin-top: 2px; }
    .ct-drive .ct-drive-touch { display: flex; left: 4px; right: 4px; bottom: 4px; gap: 4px; align-items: flex-end; }
    .ct-drive .ct-drive-touch .ct-drive-stick { width: clamp(50px, 42cqmin, 76px); height: clamp(50px, 42cqmin, 76px); }
    .ct-drive .ct-drive-stick-knob { width: 40%; height: 40%; margin: -20% 0 0 -20%; }
    .ct-drive #ct-drive-lock-label { bottom: 3px; font-size: 7px; }
    .ct-drive .ct-drive-touch .ct-drive-pedals { display: grid; grid-template-columns: repeat(2, 32px); gap: 3px; }
    .ct-drive .ct-drive-touch .ct-drive-extra { display: contents; }
    .ct-drive .ct-drive-touch button, .ct-drive .ct-drive-touch .ct-drive-extra button, .ct-drive .ct-drive-touch .ct-drive-pedals [data-drive-input="brake"] { width: 32px; min-width: 32px; height: 28px; min-height: 28px; padding: 0; font-size: 9px; }
    .ct-drive .ct-drive-message { top: 38px; bottom: auto; max-width: calc(100% - 16px); padding: 2px 7px; font-size: 10px; line-height: 1.25; }
    /* Between the thumbs, just above the speed. */
    .ct-drive .ct-drive-interact { top: auto; bottom: 30px; min-height: 24px; max-width: calc(100% - 2 * clamp(50px, 42cqmin, 76px) - 24px); padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
    .ct-drive .ct-drive-center-view { bottom: 66px; right: 4px; min-height: 28px; padding: 4px 8px; font-size: 10px; }
    .ct-drive .ct-drive-survey { top: 40px; font-size: 10px; padding: 3px 8px; }
    .ct-drive .ct-drive-ice, .ct-drive .ct-apollo-panel, .ct-drive .ct-room-card { top: 38px; left: 4px; right: 4px; width: auto; transform: none; max-height: calc(100cqh - 42px); overflow-y: auto; }
}
/* The narrowest cards drop the camera switch (C still cycles it). */
@container ct-drive (max-width: 260px) {
    .ct-drive #ct-drive-camera { display: none; }
}
[data-icon="x"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M4.5%204.5l15%2015M19.5%204.5l-15%2015%22/%3E%3C/svg%3E"); }
#ct-x-account[aria-pressed="true"] { color: #1d9bf0; }
[data-icon="podium"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2020V9h6v11%22/%3E%3Cpath%20d%3D%22M3%2020v-6h6M15%2020v-8h6v8%22/%3E%3Cpath%20d%3D%22M2%2020h20%22/%3E%3Cpath%20d%3D%22M12%204.5v1.5%22/%3E%3C/svg%3E"); }
/* Top bar: the icon toolbar owns the top row; palette and exit sit right under it.
   Full-size players only (the card-sized embed keeps its own compact row). */
@container ct-drive (min-width: 301px) and (min-height: 301px) {
    .ct-drive > * { --ct-bar-top: max(9px, env(safe-area-inset-top)); --ct-bar-h: 46px; }
    .ct-drive .ct-drive-top { top: var(--ct-bar-top); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); flex-wrap: nowrap; align-items: flex-start; }
    .ct-drive .ct-drive-destination { margin-top: calc(var(--ct-bar-h) + 6px); display: grid; justify-items: start; gap: 6px; }
    .ct-drive .ct-drive-world-row { display: flex; align-items: center; gap: 6px; }
    .ct-drive .ct-drive-challenge { width: fit-content; }
    .ct-drive .ct-drive-tools { margin-left: auto; padding: 3px; gap: 2px; align-items: center; justify-content: center; }
    .ct-drive .ct-drive-actions { top: calc(var(--ct-bar-top) + var(--ct-bar-h) + 6px); right: max(16px, env(safe-area-inset-right)); gap: 6px; }
    .ct-drive .ct-drive-actions { padding: 3px; gap: 2px; border: 1px solid #ffffff25; border-radius: 7px; background: #161714bb; backdrop-filter: blur(8px); }
    .ct-drive .ct-drive-actions > button.ct-icon { height: 38px; min-height: 38px; background: transparent; color: #eee9df; border-color: transparent; }
    .ct-drive .ct-drive-actions > button.ct-icon:hover { background: #ffffff1a; }
    .ct-drive .ct-drive-actions > button.ct-icon:not(.ct-icon-text) { width: 38px; min-width: 38px; }
    .ct-drive .ct-drive-challenge { margin-top: 0; }
    .ct-drive .ct-drive-top > .ct-drive-settings { top: calc(var(--ct-bar-h) + 50px); }
}
@container ct-drive (min-width: 301px) and (max-width: 560px) and (min-height: 301px) {
    .ct-drive > * { --ct-bar-top: max(8px, env(safe-area-inset-top)); }
    .ct-drive .ct-drive-top { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); }
    .ct-drive .ct-drive-tools { width: 100%; justify-content: space-between; margin-left: 0; }
    .ct-drive .ct-drive-destination { position: absolute; left: 0; top: calc(var(--ct-bar-h) + 52px); margin-top: 0; }
    .ct-drive .ct-game-brand { top: calc(var(--ct-bar-top) + var(--ct-bar-h) + 6px); left: max(8px, env(safe-area-inset-left)); }
    .ct-drive .ct-drive-actions { right: max(8px, env(safe-area-inset-right)); }
    .ct-drive .ct-drive-top > .ct-drive-settings { top: calc(var(--ct-bar-h) + 6px); }
}
/* Mars stays locked until 50 landed kickflips: dimmed, with a small padlock badge. */
.ct-drive .ct-drive-worlds button.is-locked { position: relative; opacity: .55; }
.ct-drive .ct-drive-worlds button.is-locked::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 11px; height: 11px; background: #f5d0a0; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M7%2010V7a5%205%200%200%201%2010%200v3h1.5v11h-13V10zm2.5%200h5V7a2.5%202.5%200%200%200-5%200z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M7%2010V7a5%205%200%200%201%2010%200v3h1.5v11h-13V10zm2.5%200h5V7a2.5%202.5%200%200%200-5%200z%22/%3E%3C/svg%3E") center / contain no-repeat; }
/* Icons float on the scene: no container box, just a soft shadow behind each glyph and a
   quiet highlight for the active one. Tighter rows read as one clean set. */
@container ct-drive (min-width: 301px) and (min-height: 301px) {
    .ct-drive > * { --ct-bar-h: 36px; }
    .ct-drive .ct-drive-tools, .ct-drive .ct-drive-actions { padding: 0; gap: 2px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
    .ct-drive .ct-drive-tools button.ct-icon, .ct-drive .ct-drive-actions > button.ct-icon { width: 36px; min-width: 36px; height: 36px; min-height: 36px; border: 0; border-radius: 10px; background: transparent; color: #f6f3ec;
        filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .8)) drop-shadow(0 0 5px rgb(0 0 0 / .35)); }
    .ct-drive .ct-drive-tools button.ct-icon::before, .ct-drive .ct-drive-actions > button.ct-icon::before { width: 21px; height: 21px; }
    .ct-drive .ct-drive-tools button.ct-icon:hover, .ct-drive .ct-drive-actions > button.ct-icon:hover { background: rgb(255 255 255 / .1); }
    .ct-drive .ct-drive-tools button.ct-icon[aria-pressed="true"], .ct-drive .ct-drive-tools button.ct-icon[aria-expanded="true"] { background: rgb(255 255 255 / .17); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
    .ct-drive .ct-drive-actions > button.ct-icon.ct-icon-text { width: auto; padding: 0 10px 0 8px; background: rgb(20 21 19 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); filter: none; }
    .ct-drive .ct-drive-actions > button.ct-icon:disabled { opacity: .5; }
}
@container ct-drive (min-width: 301px) and (max-width: 430px) and (min-height: 301px) {
    .ct-drive .ct-drive-tools { gap: 0; }
    .ct-drive .ct-drive-tools button.ct-icon { width: 36px; min-width: 36px; }
}
/* Phone landscape: Safari floats its ••• page menu over the top band of the page, so the
   toolbar starts just below it instead of underneath it. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
    @container ct-drive (min-width: 301px) and (min-height: 301px) {
        .ct-drive > * { --ct-bar-top: calc(max(8px, env(safe-area-inset-top)) + 40px); }
    }
}
/* Sign in with X: the X logo and a short label in the corner actions, easy to spot. */
[data-icon="xlogo"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M18.24%202.25h3.31l-7.23%208.26%208.5%2011.24h-6.65l-5.21-6.82-5.97%206.82H1.68l7.73-8.84L1.25%202.25h6.83l4.71%206.23zm-1.16%2017.52h1.83L7.08%204.13H5.12z%22/%3E%3C/svg%3E"); }
.ct-drive .ct-drive-actions > button.ct-x-signin { gap: 6px; padding: 0 11px 0 9px; font: 600 12px/1 system-ui, -apple-system, sans-serif; letter-spacing: .01em; }
.ct-drive .ct-drive-actions > button.ct-x-signin::before { width: 14px; height: 14px; }
.ct-drive .ct-drive-actions > button.ct-x-signin[aria-pressed="false"] { background: #f4f1ea; color: #111; }
.ct-drive .ct-drive-actions > button.ct-x-signin[aria-pressed="true"] { background: rgb(20 21 19 / .6); color: #f4f1ea; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
/* Touch controls, full-size players (the card embed keeps its compact grid):
   a floating stick zone on the lower left, three truck buttons (Boost, Flip, Brake; hold
   Brake while steering to drift) and the action button right above them by the thumb. */
.ct-drive .ct-drive-touch > .ct-drive-stick-zone { display: none; }
.ct-touch-only { display: none; }
@media (pointer: coarse), (max-width: 700px) {
    .ct-touch-only { display: flex; }
    @container ct-drive (min-width: 301px) and (min-height: 301px) {
        .ct-drive .ct-drive-touch > .ct-drive-stick-zone { display: block; position: absolute; left: calc(-1 * max(10px, env(safe-area-inset-left))); bottom: calc(-1 * max(12px, env(safe-area-inset-bottom))); width: 48cqw; height: 52cqh; pointer-events: auto; touch-action: none; }
        .ct-drive .ct-drive-touch .ct-drive-left { position: relative; z-index: 1; }
        .ct-drive .ct-drive-touch .ct-drive-stick { transition: border-color .15s, box-shadow .15s, translate .12s ease-out; }
        .ct-drive .ct-drive-touch .ct-drive-stick.is-active { transition: border-color .15s, box-shadow .15s; }
        .ct-drive .ct-drive-touch [data-drive-input="handbrake"] { display: none; }
        .ct-drive .ct-drive-touch .ct-drive-pedals { position: relative; z-index: 1; }
        .ct-drive .ct-drive-touch .ct-drive-extra { gap: 10px; }
        .ct-drive .ct-drive-touch .ct-drive-extra button { width: 60px; min-width: 60px; min-height: 52px; font-size: 13px; border-radius: 12px; }
        .ct-drive .ct-drive-touch .ct-drive-extra button[data-drive-input="boost"] { width: 72px; min-width: 72px; }
        .ct-drive .ct-drive-touch .ct-drive-pedals [data-drive-input="brake"] { min-height: 48px; border-radius: 12px; }
        .ct-drive .ct-drive-interact { left: auto; right: max(10px, env(safe-area-inset-right)); transform: none; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 122px); max-width: 46cqw; overflow: hidden; text-overflow: ellipsis; border-radius: 12px; }
    }
}
/* Short landscape phones: the minimap owns the space above the buttons, so the action button
   sits just left of Boost and Flip, still under the right thumb. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
    @container ct-drive (min-width: 301px) and (min-height: 301px) {
        .ct-drive .ct-drive-interact { right: calc(max(10px, env(safe-area-inset-right)) + 154px); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 62px); max-width: 30cqw; }
    }
}
/* Top bar, one set: the tool icons and the account, palette and exit actions share one row on
   wide screens and wrap cleanly to a right-aligned second row on phones. Every control is the
   same square (--ct-tool), same radius and same gap; the glyph shadow sits on the glyph only, so
   a pressed button is a soft, even tile instead of a heavy box. */
@container ct-drive (min-width: 301px) and (min-height: 301px) {
    .ct-drive > * { --ct-tool: 36px; --ct-tool-gap: 4px; --ct-glyph: 21px; --ct-bar-h: var(--ct-tool); }
    .ct-drive .ct-drive-top { flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; column-gap: var(--ct-tool-gap); row-gap: 6px; }
    .ct-drive .ct-drive-top > .ct-drive-destination { margin-right: auto; }
    .ct-drive .ct-drive-top > .ct-drive-tools, .ct-drive .ct-drive-top > .ct-drive-actions { width: auto; margin: 0; padding: 0; gap: var(--ct-tool-gap); flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
    .ct-drive .ct-drive-top > .ct-drive-actions { position: static; display: flex; pointer-events: auto; z-index: auto; }
    .ct-drive .ct-drive-top > .ct-drive-actions::before { content: ''; width: 1px; height: 20px; margin: 0 2px; background: rgb(255 255 255 / .22); }
    .ct-drive .ct-drive-top > .ct-drive-tools button.ct-icon, .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-icon {
        width: var(--ct-tool); min-width: var(--ct-tool); height: var(--ct-tool); min-height: var(--ct-tool); padding: 0; margin: 0; border: 0; border-radius: 10px;
        display: inline-grid; place-items: center; background: transparent; color: #f6f3ec; box-shadow: none; filter: none; }
    .ct-drive .ct-drive-top > .ct-drive-tools button.ct-icon::before, .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-icon::before {
        width: var(--ct-glyph); height: var(--ct-glyph); filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .8)) drop-shadow(0 0 5px rgb(0 0 0 / .35)); }
    .ct-drive .ct-drive-top > .ct-drive-tools button.ct-icon:hover, .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-icon:hover { background: rgb(255 255 255 / .1); }
    .ct-drive .ct-drive-top > .ct-drive-tools button.ct-icon[aria-pressed="true"], .ct-drive .ct-drive-top > .ct-drive-tools button.ct-icon[aria-expanded="true"] { background: rgb(255 255 255 / .16); color: #fff; box-shadow: none; }
    .ct-drive .ct-drive-top > .ct-drive-tools button.ct-icon:focus-visible, .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-icon:focus-visible { outline: 2px solid #f4f1ea; outline-offset: 1px; }
    /* Account pill: same height and radius as the icons. Signed out it is the X logo and
       "Sign in"; signed in it is the avatar and @handle. */
    .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-x-signin { width: auto; min-width: var(--ct-tool); max-width: 168px; padding: 0 12px 0 10px; gap: 7px; grid-auto-flow: column; justify-content: center;
        font: 600 12px/1 system-ui, -apple-system, sans-serif; letter-spacing: .01em; }
    .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-x-signin::before { width: 14px; height: 14px; filter: none; }
    .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-x-signin[aria-pressed="false"] { background: #f4f1ea; color: #111; }
    .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-x-signin[aria-pressed="false"]:hover { background: #fff; }
    .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-x-signin.is-signed-in { padding: 0 11px 0 4px; background: rgb(20 21 19 / .62); color: #f4f1ea; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-x-signin.is-signed-in::before { display: none; }
    .ct-drive .ct-drive-top > .ct-drive-actions > button.ct-x-signin.is-signed-in:hover { background: rgb(40 42 38 / .8); }
}
#ct-x-account .ct-x-account-face { display: none; }
#ct-x-account.is-signed-in .ct-x-account-face { display: inline-grid; width: 28px; height: 28px; place-items: center; }
#ct-x-account .ct-x-account-face img, #ct-x-account .ct-x-account-face .ct-board-mark { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
#ct-x-account .ct-x-account-face .ct-board-mark { background: #1d9bf0; }
#ct-x-account .ct-x-account-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1; }
.ct-drive #ct-x-account[aria-pressed="true"] { color: #f4f1ea; }
@container ct-drive (min-width: 301px) and (max-width: 560px) and (min-height: 301px) {
    .ct-drive .ct-drive-top { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); }
    .ct-drive .ct-drive-top > .ct-drive-tools { flex-wrap: wrap; max-width: 100%; }
    .ct-drive .ct-drive-top > .ct-drive-actions::before { display: none; }
    .ct-drive .ct-drive-top > .ct-drive-settings { top: calc(var(--ct-bar-h) * 2 + 12px); }
}
@container ct-drive (min-width: 301px) and (max-width: 372px) and (min-height: 301px) {
    .ct-drive > * { --ct-tool: 32px; --ct-tool-gap: 3px; --ct-glyph: 19px; }
}
@container ct-drive (min-width: 301px) and (max-width: 330px) and (min-height: 301px) {
    .ct-drive > * { --ct-tool: 30px; --ct-tool-gap: 2px; --ct-glyph: 18px; }
}
/* Signed-in row, the players list and one player's board. */
.ct-board-panel .ct-board-user { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-weight: 600; }
.ct-board-panel .ct-board-user[hidden], .ct-board-panel .ct-board-player[hidden] { display: none; }
.ct-board-panel .ct-board-user-face img, .ct-board-panel .ct-board-user-face .ct-board-mark { width: 28px; height: 28px; border-radius: 50%; display: block; }
.ct-board-panel #ct-board-players li { display: block; padding: 0; }
.ct-board-panel .ct-board-player-row { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "face name best" "face meta meta"; column-gap: 8px; row-gap: 2px; align-items: center;
    padding: 8px 4px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; min-height: 44px; }
.ct-board-panel .ct-board-player-row:hover { background: #ffffff10; }
.ct-board-panel .ct-board-player-row > img, .ct-board-panel .ct-board-player-row > .ct-board-mark { grid-area: face; align-self: center; }
.ct-board-panel .ct-board-player-row > span { grid-area: name; font-weight: 600; }
.ct-board-panel .ct-board-player-row > strong { grid-area: best; }
.ct-board-panel .ct-board-player-row > em { grid-area: meta; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.ct-board-panel .ct-board-handle-link { min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ct-board-panel .ct-board-handle-link:hover { text-decoration: underline; }
.ct-board-panel .ct-board-back { min-height: 36px; padding: 4px 10px; margin: 6px 0 4px; }
.ct-board-panel .ct-board-player-head { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.ct-board-panel .ct-board-player-head img, .ct-board-panel .ct-board-player-head .ct-board-mark { width: 40px; height: 40px; border-radius: 50%; display: block; }
.ct-board-panel .ct-board-player-head strong { display: block; font-size: 15px; }
.ct-board-panel .ct-board-player-head span:not(.ct-board-player-face):not(.ct-board-mark) { display: block; color: #b9c0b5; font-size: 12px; }
.ct-board-panel .ct-board-player-stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; font-size: 13px; }
.ct-board-panel .ct-board-player-stats dt { color: #b9c0b5; }
.ct-board-panel .ct-board-player-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.site-shell .site-content .ct-board-subhead, .ct-board-subhead { margin: 10px 0 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #b9c0b5; }
.ct-board-panel .ct-board-player-recent li { grid-template-columns: minmax(0, 1fr) auto; }
.ct-board-panel .ct-board-empty { color: #b9c0b5; }
.ct-board-panel .ct-board-mark { display: inline-grid; place-items: center; color: #f4f1ea; font: 700 10px/1 system-ui, -apple-system, sans-serif; background: #3a3d37; }
.ct-board-panel .ct-board-user-face .ct-board-mark, #ct-x-account .ct-x-account-face .ct-board-mark { font-size: 13px; background: #3a3d37; }
.ct-board-panel .ct-board-player-head .ct-board-mark { font-size: 17px; }
.ct-board-panel .ct-board-user-face .ct-board-mark, .ct-board-panel .ct-board-player-head .ct-board-mark { display: grid; place-items: center; }
.ct-board-tabs button[aria-pressed="true"] { background: #f4f1ea; border-color: #f4f1ea; color: #111; }
.ct-board-tabs button[aria-pressed="true"]:hover,
.ct-board-tabs button[aria-pressed="true"]:active { background: #fffdf8; border-color: #fffdf8; color: #111; }
.ct-board-tabs button[aria-pressed="false"] { background: transparent; border-color: #ffffff30; color: #f4f1ea; }
.ct-board-tabs button[aria-pressed="false"]:hover { background: #ffffff18; color: #fffdf8; }
#ct-x-account .ct-x-account-face .ct-board-mark { display: grid; place-items: center; color: #f4f1ea; font: 700 13px/1 system-ui, -apple-system, sans-serif; }

.ct-title-screen { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: #171816e8; }
.ct-title-screen[hidden] { display: none; }
.ct-title-card { width: min(420px, 100%); color: #eee9df; text-align: center; }
.ct-title-kicker { margin: 0 0 8px; font: 12px/1.4 ui-monospace, monospace; letter-spacing: .16em; color: #bdb8ad; }
.ct-title-card h2 { margin: 0 0 10px; font: 600 28px/1.15 Inter, sans-serif; }
.ct-title-lead, .ct-title-daily, .ct-title-fan { margin: 0 0 12px; color: #bdb8ad; font-size: 14px; line-height: 1.5; }
.ct-title-how { margin: 0 0 16px; padding: 0; list-style: none; color: #eee9df; font-size: 14px; line-height: 1.7; }
.ct-title-how li + li { margin-top: 2px; }
.ct-title-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#ct-title-play, #ct-title-share { min-height: 48px; min-width: 160px; padding: 10px 28px; border: 0; border-radius: 4px; font: 600 16px Inter, sans-serif; cursor: pointer; }
#ct-title-play { background: #f4f1ea; color: #111; }
#ct-title-play:hover, #ct-title-play:active { background: #fffdf8; color: #111; }
#ct-title-play:focus-visible, #ct-title-share:focus-visible { outline: 2px solid #f4f1ea; outline-offset: 3px; }
#ct-title-share { background: transparent; color: #f4f1ea; box-shadow: inset 0 0 0 1px #ffffff40; }
#ct-title-share:hover, #ct-title-share:active { background: #ffffff22; color: #fffdf8; }
#ct-title-share[hidden] { display: none; }
.ct-title-fan { margin-top: 16px; font-size: 11px; }
.ct-daily-panel { position: absolute; z-index: 14; right: max(14px, env(safe-area-inset-right)); top: 60px; width: min(360px, calc(100% - 28px)); max-height: calc(100% - 130px); overflow-y: auto; pointer-events: auto; box-shadow: 0 12px 44px #0008; }
.ct-daily-panel ol { list-style: none; padding: 0; margin: 8px 0; }
.ct-daily-panel li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #ffffff15; font-size: 13px; }
#ct-daily-result { margin: 10px 0 8px; padding: 10px 0; border-top: 1px solid #ffffff18; border-bottom: 1px solid #ffffff18; color: #eee9df; }
#ct-daily-result strong { display: block; font: 700 28px/1.1 Inter, sans-serif; }
#ct-daily-result span { display: block; margin-top: 4px; color: #bdb8ad; font-size: 13px; }
#ct-daily-result[hidden] { display: none; }
.ct-daily-panel #ct-daily-start:not(.is-secondary),
.ct-daily-panel #ct-daily-share.is-primary,
#ct-board-period-share {
    background: #f4f1ea;
    color: #111;
    box-shadow: none;
}
.ct-daily-panel #ct-daily-start:not(.is-secondary):hover,
.ct-daily-panel #ct-daily-share.is-primary:hover,
#ct-board-period-share:hover,
.ct-daily-panel #ct-daily-start:not(.is-secondary):active,
.ct-daily-panel #ct-daily-share.is-primary:active,
#ct-board-period-share:active {
    background: #fffdf8;
    color: #111;
}
.ct-daily-panel #ct-daily-share:not(.is-primary),
.ct-daily-panel #ct-daily-start.is-secondary {
    background: transparent;
    color: #f4f1ea;
    box-shadow: inset 0 0 0 1px #ffffff40;
}
.ct-daily-panel #ct-daily-share:not(.is-primary):hover,
.ct-daily-panel #ct-daily-start.is-secondary:hover {
    background: #ffffff22;
    color: #fffdf8;
}
#ct-board-period-share { margin-top: 8px; }
.ct-daily-hud { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); padding: 8px 14px; background: #171816e8; border: 1px solid #ffffff40; border-radius: 5px; color: #eee9df; text-align: center; pointer-events: none; }
.ct-daily-hud strong { display: block; font: 700 24px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.ct-daily-hud span { font: 10px ui-monospace, monospace; letter-spacing: .06em; }
.ct-daily-panel[hidden], .ct-daily-hud[hidden] { display: none; }
#ct-board-period { margin: 8px 0 0; }
.ct-combo { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); color: #f5d0a0; font: 700 18px/1.2 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 10px #000a; pointer-events: none; }
.ct-combo.is-hot { animation: ct-drive-pop .7s ease-out; }
.ct-combo[hidden] { display: none; }
@media (max-width: 700px) and (orientation: portrait) {
    .ct-daily-hud { top: 108px; }
    .ct-daily-panel { top: 104px; }
}
.ct-drive .ct-daily-panel { top: calc(max(8px, env(safe-area-inset-top)) + 96px); max-height: calc(100% - max(8px, env(safe-area-inset-top)) - 108px); }
