/* Page frame = light "showroom" by day, graphite at night (body.night). The cabin keeps its own dark tokens. */
:root {
  color-scheme: light;
  --bg: #f1f3f6; --panel: #ffffff; --line: #dde3ea; --text: #141b26; --muted: #5f6b7a;
  --acc: #2f6cf6; --acc-ink: #ffffff; --acc-soft: #eef4ff; --seg: #e7ebf0; --hover: #f3f6fa; --warn-ink: #b26a00;
  --shadow: 0 8px 24px rgba(20, 27, 38, .06); --topbar: rgba(255, 255, 255, .82);
  --accent: #4fd1c5;   /* in-cabin highlight (hotspots, physical buttons) */
  --ok: #12b76a;
  --warn: #f5a524;
  --red: #ff5a5f;
  --blue: #5aa0ff;
  --font: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --sky-top: #7fa9d9; --sky-bottom: #dfe9f2; --ground: #6c8559; --hills: #8fa6a0; --asphalt: #5a5f66; --asphalt-near: #3c4046; --amb: #3fe0d4;
}
body.night {
  color-scheme: dark;
  --bg: #16191e; --panel: #1f232a; --line: #2e333b; --text: #eceef1; --muted: #9aa1ab;
  --acc: #6b9bff; --acc-ink: #0b1220; --acc-soft: rgba(107, 155, 255, .14); --seg: #1a1d22; --hover: #262b33; --warn-ink: #ffbf5c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --topbar: rgba(22, 25, 30, .84);
}
.night { --sky-top: #04060b; --sky-bottom: #121827; --ground: #0b100e; --hills: #0f1519; --asphalt: #16191d; --asphalt-near: #0d0f12; }
/* the car interior stays dark whatever the frame does */
.cabin { --text: #e8edf3; --muted: #8a96a6; --panel: #0f141b; --line: #222b36; --bg: #07090d; color: var(--text); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); word-break: keep-all; min-height: 100vh; -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.muted { color: var(--muted); }

/* top bar: brand + grouped toggles (segmented look, icon + word) */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; flex-wrap: wrap;
  background: var(--topbar); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.b-txt { display: flex; flex-direction: column; line-height: 1.2; }
.b-txt b { font-size: 16px; letter-spacing: -.01em; }
.b-txt small { color: var(--muted); font-size: 12px; font-weight: 500; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: linear-gradient(140deg, #6f9dff, #2f6cf6 55%, #1e4fd1); box-shadow: 0 6px 16px rgba(47, 108, 246, .28), inset 0 1px 0 rgba(255,255,255,.35); }
.mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg, .tgroup { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--seg); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 13px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--acc); color: var(--acc-ink); box-shadow: 0 2px 8px rgba(47, 108, 246, .3); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 6px 11px; cursor: pointer; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.chip svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { color: var(--text); background: var(--hover); }
.tgroup .chip:hover { background: var(--panel); }
.chip[aria-pressed="true"] { color: var(--acc); background: var(--panel); box-shadow: 0 1px 3px rgba(20, 27, 38, .1); }
.chip.ghost { border: 1px solid var(--line); background: var(--panel); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 18px 20px; align-items: start; }
.hint { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 12.5px; }
.hint li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.hint svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hint b { color: var(--text); font-weight: 600; margin-right: 3px; }

/* ---------- cabin: 1600x900 drawing space; overlays positioned in % (x/16, y/9) ---------- */
.cabin {
  --scr-l: 52.625%; --scr-t: 36.556%; --scr-w: 32.8125%;   /* 12.9": 525x295 at (842,329); height% == width% (16:9); bottom sits on the climate strip */
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px;
  background: #0a0d12; border: 1px solid rgba(255,255,255,.07); user-select: none; container-type: inline-size;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .08);
}
.cabin[data-variant="17"] { --scr-l: 47.5%; --scr-t: 26.222%; --scr-w: 43.125%; }   /* 690x388 at (760,236): rises above the dash like the photos */

.windshield { position: absolute; inset: 0 0 auto 0; height: 42%; overflow: hidden; }
.road { width: 100%; height: 100%; display: block; }
.road .lane polygon { fill: #e9e9e9; opacity: .85; }
.road .lane { animation: lane 1s linear infinite paused; }
.cabin.moving .road .lane { animation-play-state: running; animation-duration: var(--lane-dur, 1s); }
@keyframes lane { to { transform: translateY(70px); opacity: .4; } }
.road .beam { opacity: 0; transition: opacity .3s; }
.cabin.night.lamp-pos .road .beam.pos, .cabin.night.lamp-low .road .beam.low, .cabin.lamp-high .road .beam.high { opacity: 1; }
.cabin:not(.night) .road .beam { opacity: 0 !important; }

.wiper { position: absolute; bottom: 3%; width: 40%; height: .45cqw; min-height: 2px; background: #0b0b0b; border-radius: 3px; transform-origin: 0 50%; transform: rotate(3deg); }
.wiper.w1 { left: 14%; } .wiper.w2 { left: 50%; }
.cabin.wipe .wiper { animation: wipe var(--wipe-dur, 1.4s) ease-in-out infinite; }
.cabin.wipe-once .wiper { animation: wipe .9s ease-in-out 1; }
@keyframes wipe { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-150deg); } }
.spray { position: absolute; inset: auto 10% 0 10%; height: 60%; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle at 30% 100%, rgba(140,200,255,.6), transparent 40%), radial-gradient(circle at 70% 100%, rgba(140,200,255,.6), transparent 40%); }
.cabin.spraying .spray { opacity: 1; }
.rain-drops { position: absolute; inset: 0; opacity: 0; background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.6px); background-size: 22px 26px; }
.cabin.raining .rain-drops { opacity: .65; }
.cabin.raining.wipe .rain-drops { opacity: .25; }

.interior { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.interior .glyph { fill: none; stroke: #d3d9e1; stroke-width: 1.6; font-family: var(--font); }
.interior .glyph text { fill: #d3d9e1; stroke: none; }
.interior .pedal { fill: #262c34; stroke: #3a434f; transition: transform .1s; }
.cabin.brake-on .interior .pedal.brake { fill: #3b2a2a; stroke: var(--red); transform: translateY(4px); }
.cabin.accel-on .interior .pedal.accel { fill: #23362f; stroke: var(--ok); transform: translateY(4px); }
.interior .stalk-left, .interior .stalk-right { transition: transform .15s; transform-box: fill-box; }
.cabin[data-tl="up"] .interior .stalk-left { transform: translateY(-6px) rotate(-3deg); }
.cabin[data-tl="down"] .interior .stalk-left { transform: translateY(6px) rotate(3deg); }
.cabin[data-gear="R"] .interior .stalk-right { transform: translateY(-8px); }
.cabin[data-gear="D"] .interior .stalk-right, .cabin[data-gear="M"] .interior .stalk-right { transform: translateY(8px); }

.slim {
  position: absolute; left: 17.5%; top: 34.9%; width: 22.5%; height: 4.6%;
  background: #010203; border: 1px solid #1d242e; border-radius: .6cqw; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 1.2cqw; font-size: 1cqw; color: #cfd7e1;
}
.slim .s-left { display: flex; gap: .7cqw; align-items: center; }
.slim .s-right { display: flex; gap: .7cqw; align-items: center; justify-content: flex-end; }
.slim .s-spd { font-size: 2cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.slim .s-spd small { font-size: .8cqw; color: #8792a1; margin-left: .2cqw; font-weight: 400; }
.slim .off { grid-column: 1 / -1; text-align: center; color: #2c333d; }
.slim .s-msg { color: var(--warn); }

/* tell-tale lamps (slim display + screen cluster) */
.ind { display: inline-flex; align-items: center; justify-content: center; height: 1.4em; min-width: 1.4em; font-size: inherit; font-weight: 700; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.ind svg { width: 1.4em; height: 1.4em; }
.ind.green { color: #4ade80; } .ind.blue { color: #60a5fa; } .ind.red { color: #f87171; } .ind.amber { color: #fbbf24; } .ind.white { color: #e5e7eb; }
.ind.blink { animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: .1; } }

.screen {
  position: absolute; left: var(--scr-l); top: var(--scr-t); width: var(--scr-w); aspect-ratio: 16 / 9;
  background: #000; border: .45cqw solid #0d1015; border-radius: 1cqw; overflow: hidden; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.7);
  container-type: inline-size;
}
.climpanel {
  position: absolute; left: var(--scr-l); width: var(--scr-w); top: calc(var(--scr-t) + var(--scr-w) + .5%); height: 4.8%;
  background: linear-gradient(#141920, #0c0f13); border: 1px solid #262e39; border-radius: .8cqw;
  display: flex; align-items: center; justify-content: space-around; padding: 0 .6cqw; gap: .3cqw;
}

/* physical buttons on the climate panel */
.pk { display: flex; flex-direction: column; align-items: center; gap: .1cqw; }
.pk small { font-size: .8cqw; color: #7c8796; white-space: nowrap; }
.rocker { display: flex; flex-direction: column; border: 1px solid #2c3541; border-radius: .5cqw; overflow: hidden; background: #0b0e12; }
.rocker button, .knob button { border: 0; background: transparent; color: #c3ccd6; font-size: 1cqw; line-height: 1; padding: .15cqw .7cqw; cursor: pointer; }
.rocker button + button { border-top: 1px solid #2c3541; }
.rocker button:hover, .knob button:hover, .pbtn:hover { color: var(--accent); background: #121820; }
.rocker .lv { font-size: .8cqw; text-align: center; color: var(--accent); min-height: .8cqw; }
.knob { display: flex; align-items: center; gap: .1cqw; border: 1px solid #2c3541; border-radius: 1cqw; background: radial-gradient(circle, #1d242d, #0b0e12); }
.pbtn { border: 1px solid #2c3541; background: #0b0e12; border-radius: .5cqw; padding: .25cqw .6cqw; font-size: .8cqw; cursor: pointer; color: #aab4c0; }
.pbtn.on { color: var(--accent); border-color: var(--accent); }
.pbtn.hazard { color: #ff6b6b; font-size: 1.1cqw; padding: .1cqw .7cqw; }
.pbtn.hazard.on { background: #3a1416; animation: blinkbg .8s steps(1) infinite; }
@keyframes blinkbg { 50% { background: #0b0e12; } }

/* hotspots */
/* The layer spans the whole cabin but must not swallow clicks meant for the screen and climate strip. */
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hot { position: absolute; pointer-events: auto; border: 1px solid transparent; border-radius: .6cqw; background: transparent; cursor: pointer; padding: 0; }
.hot.round { border-radius: 50%; }
.hot:hover, .hot:focus-visible, .hot.sel { border-color: rgba(79,209,197,.85); background: rgba(79,209,197,.12); }
.hot.lit { background: rgba(61,220,132,.1); border-color: rgba(61,220,132,.45); }
.hot .tip { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -2px); font-size: max(10px, .8cqw); white-space: nowrap; color: #d6dee8; background: rgba(7,9,13,.85); padding: 1px 6px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; }
.hot:hover .tip, .hot:focus-visible .tip, .cabin.show-labels .hot .tip { opacity: 1; }

.toast { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); background: rgba(7,9,13,.9); border: 1px solid var(--line); color: var(--text); padding: .5cqw 1.2cqw; border-radius: .8cqw; font-size: max(12px, 1cqw); opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 70%; text-align: center; }
.toast.show { opacity: 1; }
.toast.warn { border-color: var(--warn); color: #ffd18a; }

/* first-drive guide: pulse the next spot to touch */
.hot.guide { border: 2px solid #ffd166; animation: guide 1.3s ease-out infinite; z-index: 2; }
.hot.guide .tip { opacity: 1; background: #ffd166; color: #1a1300; font-weight: 700; font-size: max(12px, 1cqw); padding: 2px 8px; }
@keyframes guide { 0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .75); } 100% { box-shadow: 0 0 0 1.4cqw rgba(255, 209, 102, 0); } }

/* grab-and-move controls */
.hot.drag { cursor: grab; touch-action: none; }
.hot.drag:active { cursor: grabbing; }
.interior .stalk-left, .interior .stalk-right { will-change: transform; }
.knob-label { position: absolute; left: 7.4%; top: 58.6%; font-size: max(10px, .75cqw); color: var(--accent); background: rgba(7,9,13,.7); border-radius: 6px; padding: 0 5px; pointer-events: none; white-space: nowrap; }
.interior .knob-mark { transition: transform .12s; }
.cabin[data-wiper="OFF"] .interior .knob-mark { transform: translateY(10px); fill: #6b7684; }
.cabin[data-wiper="AUTO_SLOW"] .interior .knob-mark { transform: translateY(5px); }
.cabin[data-wiper="AUTO_NORMAL"] .interior .knob-mark { transform: translateY(1px); }
.cabin[data-wiper="AUTO_HIGH"] .interior .knob-mark { transform: translateY(-3px); }
.cabin[data-wiper="LO"] .interior .knob-mark { transform: translateY(-7px); }
.cabin[data-wiper="HI"] .interior .knob-mark { transform: translateY(-11px); }

/* head-up display projected on the windshield (own drawing; item layout follows the manual figure) */
.hud {
  position: absolute; left: 18.75%; top: 19.5%; width: 20%; height: 12.5%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  color: #e9fbff; text-shadow: 0 0 .5cqw rgba(120, 230, 255, .9); font-size: 1cqw; pointer-events: none;
  opacity: var(--hud-op, .8); transform: translateY(var(--hud-y, 0)) rotate(var(--hud-rot, 0deg)); transition: opacity .2s, transform .2s;
}
.hud[hidden] { display: none; }
.hud.road { color: #fff6d6; text-shadow: 0 0 .6cqw rgba(255, 210, 120, .95), 0 0 .2cqw #000; }
.hud-route { display: flex; align-items: baseline; gap: .6cqw; }
.hud-arrow { font-size: 2cqw; line-height: 1; }
.hud-route b { font-size: 1.3cqw; } .hud-route small { font-size: .7cqw; opacity: .7; }
.hud-row { display: flex; align-items: center; gap: 1.2cqw; }
.hud-spd b { font-size: 2.6cqw; font-variant-numeric: tabular-nums; }
.hud-spd small { font-size: .7cqw; margin-left: .2cqw; }
.hud-lfa { font-size: 1.4cqw; opacity: .45; } .hud-lfa.on { color: #7dffa4; opacity: 1; }
.hud-scc { font-size: 1.1cqw; font-weight: 700; opacity: .6; min-width: 1.5cqw; } .hud-scc.on { color: #7dffa4; opacity: 1; }
.hud-sign { display: grid; place-items: center; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; border: .3cqw solid #ff4d4d; background: rgba(255,255,255,.9); color: #111; font-weight: 800; font-size: .9cqw; text-shadow: none; }
.hud-turn { color: #7dffa4; animation: blink .8s steps(1) infinite; font-size: 1.3cqw; }

/* ---------- side panel: white card, start checklist, control card, timeline log ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  max-height: calc(100vh - 92px); overflow: auto; position: sticky; top: 70px; box-shadow: var(--shadow); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.p-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.panel .muted { margin: 4px 0 0; font-size: 13px; }
.src { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--acc); background: var(--acc-soft); border-radius: 6px; padding: 1px 8px; }
.panel h3.p-sec { margin: 20px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.start { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--acc-soft); }
.start-t { display: block; font-size: 14px; margin-bottom: 10px; }
.start ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.start li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 6px 8px; border-radius: 10px; }
.start li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line); background: var(--panel); flex: none; }
.start li.done { color: var(--muted); }
.start li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.start li.now { color: var(--text); background: var(--panel); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 27, 38, .08); }
.start li.now i { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.start-tip { margin: 10px 0 0; font-size: 12.5px; color: var(--warn-ink); }
.ctrl { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 12px; background: var(--panel); }
.ctrl h4 { margin: 0; font-size: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ctrl .tag { font-size: 11px; font-weight: 600; color: var(--warn-ink); background: color-mix(in srgb, var(--warn) 14%, transparent); border-radius: 6px; padding: 2px 8px; white-space: normal; line-height: 1.4; }
.states { display: flex; flex-wrap: wrap; gap: 3px; margin: 10px 0; padding: 3px; border-radius: 10px; background: var(--seg); width: fit-content; max-width: 100%; }
.states span { font-size: 12px; padding: 3px 9px; border-radius: 7px; color: var(--muted); }
.states span.cur { background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.inputs { display: grid; gap: 6px; }
.inputs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 13.5px; text-align: left; transition: border-color .15s, background .15s; }
.inputs button i { font-style: normal; color: var(--muted); }
.inputs button:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); background: var(--acc-soft); }
.ctrl .note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--hover); font-size: 12.5px; color: var(--muted); }
.ctrl .note ul { margin: 6px 0 0; padding-left: 16px; }
.ctrl ul.note { padding-left: 26px; }
.ctrl .note li + li { margin-top: 3px; }
.ctrl details.note summary { cursor: pointer; color: var(--text); font-weight: 600; font-size: 12.5px; }
.log { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1.5px solid var(--line); font-size: 13px; color: var(--muted); }
.log li { position: relative; padding: 3px 0 7px 4px; }
.log li::before { content: ""; position: absolute; left: -19.5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 2px solid var(--panel); }
.log li:first-child { color: var(--text); font-weight: 600; }
.log li:first-child::before { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.log li.warn { color: var(--warn-ink); }
.log li.warn::before { background: var(--warn); }
.log time { display: block; font-size: 11px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; opacity: .85; }

.foot { padding: 8px 20px 30px; }
.foot p { margin: 0 auto; max-width: 980px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.foot b { color: var(--text); }

/* narrower windows: the toggles keep their icons, words move to the tooltip */
@media (max-width: 1360px) {
  .tgroup .chip span, .chip.ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tgroup .chip, .chip.ghost { padding: 7px 9px; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; padding: 12px; }
  .panel { position: static; max-height: none; }
}
@media (max-width: 700px) {
  .cabin-wrap { overflow-x: auto; }
  .cabin { width: 900px; }      /* keep controls tappable on phones; the cabin scrolls sideways */
  .topbar { padding: 10px 12px; }
  .tools { margin-left: 0; width: 100%; }
}

/* ---------- realism pass: lighting, glass, ambient strip ---------- */
.amb { position: absolute; left: 7.5%; right: 0; top: 53.3%; height: .3%; border-radius: 2px; background: var(--amb); box-shadow: 0 0 1.2cqw .25cqw var(--amb); opacity: .8; pointer-events: none; }
.cabin.night .amb { opacity: 1; box-shadow: 0 0 2cqw .5cqw var(--amb); }
.cabin.night .interior { filter: brightness(.42) saturate(.9); }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 28%, transparent 45%); }
.screen { border-color: #08090b; box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.05); }
.climpanel { background: linear-gradient(#1b1e22, #070809); border-color: #2a2e34; border-radius: .4cqw .4cqw .9cqw .9cqw; box-shadow: 0 .6cqw 1.2cqw rgba(0,0,0,.55); }
.slim { box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.cabin::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse 75% 70% at 50% 42%, transparent 62%, rgba(0,0,0,.38)); }
.hotspots { z-index: 5; }
.toast { z-index: 6; }
.knob-label { z-index: 5; }
.interior.front .footwell text { font-family: var(--font); }

/* ---------- trims & details from the reference footage ---------- */
.interior .stitch { stroke: #f2eee6; opacity: .55; }
.interior .quilt { stroke: #8e897f; opacity: .7; }
.cabin.trim-black .interior .rim { stroke: url(#gRimK); }
.cabin.trim-black .interior .hub { fill: url(#gHubK); }
.cabin.trim-black .interior .spoke { fill: url(#gSpokeK); }
.cabin.trim-black .interior .bracket { fill: url(#gSpokeK); }
.cabin.trim-black .interior .pad { fill: url(#gPadK); }
.cabin.trim-black .interior .stitch { stroke: #9aa0a8; opacity: .45; }
.cabin.trim-black .interior .quilt { stroke: #4b4f55; opacity: .9; }
.cabin.trim-black { --amb: #d9e4ff; }
/* backlit gear band on the shift stalk */
.interior .gear-band text { fill: #56616d; font-family: sans-serif; font-weight: 700; }
.cabin[data-gear="P"] .interior .g-p, .cabin[data-gear="R"] .interior .g-r, .cabin[data-gear="N"] .interior .g-n,
.cabin[data-gear="D"] .interior .g-d, .cabin[data-gear="M"] .interior .g-d { fill: #ffffff; filter: drop-shadow(0 0 2px #9fd0ff); }
/* climate strip: wide red hazard and a round volume knob, as on the real strip */
.pbtn.hazard { background: linear-gradient(#e0323c, #a5141d); color: #fff; border-color: #ff6b73; padding: .1cqw 1.8cqw; font-size: 1cqw; }
.pbtn.hazard.on { animation: hazblink .8s steps(1) infinite; }
@keyframes hazblink { 50% { background: #5a0b10; } }
.knob { border-radius: 999px; padding: 0 .2cqw; background: radial-gradient(circle at 50% 35%, #3a3f46, #0b0d10 70%); box-shadow: inset 0 0 0 1px #4a5058; }

/* ---------- readability: enlarge the touchscreen, hide the side panel ---------- */
body, button { text-rendering: optimizeLegibility; }
.screen { transition: transform .25s ease; }
.scr-zoom { position: absolute; z-index: 9; left: calc(var(--scr-l) + var(--scr-w) - 8%); top: calc(var(--scr-t) - 3.6%);
  border: 1px solid rgba(255,255,255,.18); background: rgba(10,13,18,.82); color: #e6ebf1; border-radius: 999px;
  padding: .25cqw .9cqw; font-size: max(11px, .85cqw); cursor: pointer; backdrop-filter: blur(4px); }
.scr-zoom:hover { border-color: var(--accent); color: var(--accent); }
.zoom-backdrop { position: absolute; inset: 0; z-index: 7; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cabin.screen-zoom .zoom-backdrop { opacity: 1; pointer-events: auto; }
.cabin.screen-zoom .screen { transform: translate(var(--zx), var(--zy)) scale(var(--zk)); transform-origin: 0 0; z-index: 8; }
.cabin.screen-zoom .scr-zoom { left: auto; right: 1.4%; top: 1.6%; }
.toast { z-index: 10; }
.no-panel .layout { grid-template-columns: 1fr; }
.no-panel .panel { display: none; }

/* slim display widgets (left / center / right chosen in 차량 설정 › 화면 › 슬림 디스플레이) */
.slim { cursor: pointer; }
.slim:hover { border-color: rgba(79,209,197,.6); }
.slim .s-center { display: flex; justify-content: center; }
.slim .s-w { display: inline-flex; align-items: baseline; gap: .25cqw; white-space: nowrap; }
.slim .s-w b { font-size: 1.15cqw; font-variant-numeric: tabular-nums; }
.slim .s-w small { font-size: .7cqw; color: #8f9aa8; }
.slim .s-gear { font-size: 1.4cqw; }
.slim .s-media b { font-size: .95cqw; }
.slim[data-mode="어둡게"] { color: #9aa5b2; }
.slim[data-mode="어둡게"] .s-spd { color: #c3ccd6; }
.slim[data-mode="밝게"] { color: #f2f6fa; }

/* ---------- support (donation): quiet ghost button, popup follows the frame theme ---------- */
/* warm coral (same family as the coffee-cup icon) so it reads as its own thing, not as one of the blue toggles */
.support-btn { color: #c8325a; font-weight: 600; border: 1px solid #ffc4d1; background: linear-gradient(135deg, #fff0f4, #fff5ee); }
.support-btn svg { stroke: #e0456b; }
.support-btn:hover { color: #a8244a; background: linear-gradient(135deg, #ffe2ea, #ffeadd); border-color: #ffa9bc; }
body.night .support-btn { color: #ff9fb5; border-color: rgba(240, 88, 125, .4); background: rgba(240, 88, 125, .14); }
body.night .support-btn svg { stroke: #ff8aa6; }
body.night .support-btn:hover { color: #ffc2d0; background: rgba(240, 88, 125, .22); }
.support-btn.setup { border-style: dashed; }
dialog.support { width: min(420px, calc(100vw - 32px)); padding: 28px 26px 22px; border: 1px solid var(--line); border-radius: 20px; color: var(--text); text-align: center;
  background: var(--panel); box-shadow: 0 30px 80px rgba(15, 23, 42, .28); }
dialog.support::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); }
dialog.support[open] { animation: spIn .18s ease-out; }
@keyframes spIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.sp-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--hover); color: var(--muted); cursor: pointer; }
.sp-cup { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 20px; background: linear-gradient(140deg, #ffb3c6, #ff8a6b); color: #4a1609; box-shadow: 0 10px 24px rgba(255, 122, 89, .28); }
.sp-cup svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-cup .steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 50% { opacity: .35; transform: translateY(-1.5px); } }
dialog.support h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.sp-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sp-links { display: grid; gap: 8px; }
.sp-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .12s, filter .12s; }
.sp-link:hover { transform: translateY(-1px); filter: brightness(1.04); }
.sp-link span { opacity: .7; font-weight: 500; }
.sp-link.toss { background: #3182f6; color: #fff; }
.sp-link.kakao { background: #fee500; color: #191600; }
.sp-link.bmc { background: #ffdd00; color: #1a1600; }
.sp-setup { margin: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.sp-setup small { color: var(--muted); opacity: .8; }
.sp-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.foot-support { margin-top: 10px !important; }
.foot .link { border: 0; background: none; padding: 0; color: #e0456b; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sp-qr { margin: 0 auto 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-qr img { width: 180px; height: 180px; border-radius: 14px; background: #fff; padding: 8px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.sp-qr figcaption { color: var(--muted); font-size: 12.5px; }
@media (hover: none) and (pointer: coarse) { .sp-qr { display: none; } }   /* on a phone the button opens Kakao Pay directly */
