/* 안전마일 체험: 고속도로 안내표지의 초록·흰색과 차선 노랑을 기본 언어로 쓴다 */
:root {
  --sign: #006a4e;        /* 안내표지 초록 */
  --sign-dk: #00523c;
  --lane: #f4b41a;        /* 차선 노랑: AI 안내와 쿠폰 */
  --asphalt: #24282b;
  --ink: #1d2326;
  --muted: #5b666a;
  --paper: #f3f5f1;
  --line: #d5dad6;
  --alert: #d23a3a;
  --white: #ffffff;
  --display: "Black Han Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --dash-h: clamp(118px, 23vh, 210px);
  --route-h: 58px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: #cfdde3;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, summary:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; }
[hidden] { display: none !important; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.nogl { position: fixed; inset: 0; background: linear-gradient(#bcd3df 0 48%, #8d8f55 48%); }
.nogl-road { position: absolute; left: 50%; bottom: 0; width: 140vw; height: 52%; transform: translateX(-50%); background: #45494c; clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }

.layer { position: fixed; inset: 0; z-index: 10; }

/* ---------- 노선도형 진행 표시 ---------- */
.route {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--route-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--asphalt); color: #e9ece8;
}
.route ol { flex: 1; display: flex; margin: 0; padding: 0; list-style: none; position: relative; min-width: 0; }
.route ol::before { content: ""; position: absolute; left: 10px; right: 10px; top: 13px; height: 4px; background: #4b5357; border-radius: 2px; }
.route li { flex: 1; position: relative; min-width: 0; }
.route li button {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 6px 0 4px; background: none; border: 0; text-align: left;
}
.route .stop { width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; background: var(--asphalt); border: 3px solid #7b858a; position: relative; z-index: 1; transition: transform .2s; }
.route .lbl { font-size: 12px; color: #a9b2b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.route li.done .stop { background: var(--sign); border-color: #7fc7a9; }
.route li.done .lbl { color: #cfd6d3; }
.route li.now .stop { background: var(--lane); border-color: var(--lane); transform: scale(1.35); }
.route li.now .lbl { color: #fff; font-weight: 700; }
.route-tools { display: flex; gap: 8px; flex-shrink: 0; }
.tool { background: #353b3f; border: 1px solid #535b60; border-radius: 6px; padding: 7px 11px; font-size: 13px; color: #eef1ee; }
.tool:hover { background: #41484c; }
body[data-step="0"] #btnNext { display: none; }

.virtual {
  position: fixed; z-index: 39; top: calc(var(--route-h) + 8px); right: 12px; margin: 0;
  font-size: 12px; padding: 4px 9px; border-radius: 4px; background: rgba(29,35,38,.72); color: #f1f3ef;
}

/* ---------- 안내표지 판 ---------- */
.sign {
  background: var(--sign); color: var(--white);
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 6px var(--white), 0 6px 18px rgba(0,0,0,.25);
}

/* ---------- 0. 시작 ---------- */
#intro { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--route-h) + 28px) 16px calc(var(--dash-h) + 16px); gap: 18px; }
.gantry { position: relative; width: min(680px, 100%); padding-top: 26px; }
.beam { position: absolute; top: 0; left: -40vw; right: -40vw; height: 16px; background: #8f989c; box-shadow: 0 2px 0 #6f777b; }
.gantry::before, .gantry::after { content: ""; position: absolute; top: 14px; width: 6px; height: 14px; background: #6f777b; }
.gantry::before { left: 22%; } .gantry::after { right: 22%; }
.hero { padding: 30px 36px 30px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; }
.hero h1 { grid-column: 1 / -1; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 13vw, 128px); line-height: .95; letter-spacing: -.01em; }
.hero p { margin: 0; font-size: clamp(16px, 2.6vw, 21px); line-height: 1.5; font-weight: 500; }
.plate {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--sign); border: 0; border-radius: 8px;
  padding: 12px 16px 12px 18px; font-family: var(--display); font-size: 22px;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--sign-dk);
  transition: transform .15s;
}
.plate small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); }
.plate svg { width: 28px; height: 28px; }
.plate:hover { transform: translateY(-2px); }
.intro-note { max-width: 560px; margin: 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--ink); background: rgba(243,245,241,.86); padding: 10px 14px; border-radius: 6px; }

/* ---------- 1~2. 주행 HUD ---------- */
#hud { pointer-events: none; }
#hud button { pointer-events: auto; }
.hud-top { position: absolute; top: calc(var(--route-h) + 40px); left: 16px; right: 16px; display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.k { display: block; font-size: 12px; font-weight: 500; opacity: .9; }
.score-sign { padding: 10px 18px 12px; min-width: 170px; position: relative; }
.score-sign b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.delta { position: absolute; right: 14px; top: 34px; font-family: var(--display); font-size: 20px; opacity: 0; transition: opacity .3s; }
.delta.up { opacity: 1; color: #b9f0cf; }
.delta.down { opacity: 1; color: #ffc2bd; }
.score-sign.bad { box-shadow: inset 0 0 0 3px var(--alert), inset 0 0 0 6px var(--white), 0 6px 18px rgba(0,0,0,.25); }
.ai-meter, .clock { background: rgba(29,35,38,.82); color: #fff; border-radius: 8px; padding: 10px 14px; }
.ai-meter { width: 220px; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-content: center; }
.ai-meter .k { grid-column: 1 / -1; color: var(--lane); }
.meter { position: relative; height: 10px; border-radius: 5px; background: #4a5256; align-self: center; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: 5px; background: var(--lane); transition: width .4s linear; }
.meter .thr { position: absolute; left: 70%; top: -4px; bottom: -4px; width: 2px; background: #fff; }
.ai-meter .v { font-size: 14px; font-weight: 700; min-width: 3.5em; text-align: right; }
.clock b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.zone {
  position: absolute; left: 50%; top: calc(var(--route-h) + 150px); transform: translateX(-50%);
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 6px; border: 3px solid var(--ink); white-space: nowrap;
}
.tip {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--dash-h) + 92px);
  width: min(520px, calc(100% - 32px)); margin: 0; text-align: center;
  background: rgba(243,245,241,.94); border-radius: 8px; padding: 10px 14px; font-size: 15px; line-height: 1.5;
}
.tip:empty { display: none; }
.tip.good { background: #e3f3ea; }
.tip.bad { background: #fde6e3; }
.voice {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--dash-h) + 88px);
  width: min(600px, calc(100% - 32px)); background: var(--asphalt); color: #fff;
  border-left: 8px solid var(--lane); border-radius: 8px; padding: 12px 16px 14px;
}
.voice .who { display: flex; align-items: center; gap: 6px; color: var(--lane); font-size: 13px; font-weight: 700; }
.voice .who svg { width: 18px; height: 18px; }
.voice p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; }
.controls { position: absolute; right: 16px; bottom: calc(var(--dash-h) + 16px); display: flex; gap: 10px; }
.controls button {
  width: 76px; height: 64px; border-radius: 10px; border: 0; font-weight: 700; font-size: 16px;
  background: rgba(243,245,241,.95); color: var(--ink); box-shadow: 0 3px 0 #9aa3a6;
}
.controls button:active { transform: translateY(2px); box-shadow: 0 1px 0 #9aa3a6; }
#btnFast { background: #ffe4dd; }
.signal {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--dash-h) + 16px);
  display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px;
  background: var(--lane); color: var(--ink); font-weight: 700; font-size: 17px; padding: 14px 20px;
  box-shadow: 0 4px 0 #b78407; animation: pulse 1s steps(2) infinite;
}
.signal svg { width: 24px; height: 24px; }
@keyframes pulse { 50% { background: #ffd35c; } }

/* ---------- 계기판 ---------- */
/* 계기판 판은 아래 --dash-h 높이, 핸들은 그 위로 올라온다 */
#dash { position: fixed; z-index: 9; inset: 0; pointer-events: none; overflow: hidden; }
#dash::before { content: ""; position: absolute; left: -12%; right: -12%; bottom: 0; height: var(--dash-h); background: linear-gradient(#262b2e, #1a1d20 40%); border-radius: 50% 50% 0 0 / 38% 38% 0 0; box-shadow: 0 -2px 0 #3a4044; }
.steer-wrap { position: absolute; left: 50%; bottom: 0; width: min(64vw, 540px, 66vh); aspect-ratio: 1; transform: translate(-50%, 36%); }
.steer { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(var(--steer, 0deg)); filter: drop-shadow(0 -3px 6px rgba(0,0,0,.35)); }
.cluster {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 6px; color: #e9f0ee;
  background: #0c0f10; border: 1px solid #2e3539; border-radius: 14px 14px 22px 22px; padding: 6px 16px 8px;
  box-shadow: inset 0 0 18px rgba(0,0,0,.8);
}
.cluster b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 44px); }
.cluster small { font-size: 12px; color: #9aa6a8; }
.cluster b.over { color: #ff8f86; }
.blink { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; opacity: .25; align-self: center; margin: 0 8px; }
.blink.left { border-right: 12px solid #3fbf74; }
.blink.right { border-left: 12px solid #3fbf74; }
.blink.on { animation: blink .7s steps(2) infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .2; } }
.mount { position: absolute; right: 7%; bottom: calc(var(--dash-h) * 0.38); }
.mini-phone { width: 64px; height: 92px; border-radius: 10px; background: #0f1214; border: 3px solid #3a4146; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8e9a9d; font-size: 10px; text-align: center; line-height: 1.25; }
.mini-phone svg { width: 20px; height: 20px; }
.mini-phone.open { color: var(--lane); border-color: var(--lane); }
body[data-step="0"] #dash .cluster, body[data-step="0"] #dash .mount { opacity: .35; }
body[data-step="4"] #dash, body[data-step="5"] #dash, body[data-step="6"] #dash { display: none; }

/* ---------- 3. 휴게소 ---------- */
#rest { display: flex; align-items: flex-start; justify-content: center; padding-top: calc(var(--route-h) + 48px); pointer-events: none; }
#rest button { pointer-events: auto; }
.rest-card { width: min(420px, calc(100% - 32px)); background: rgba(243,245,241,.96); border-radius: 12px; padding: 18px 20px 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.rest-msg { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.rest-sub { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; min-height: 1.5em; }
.ring { position: relative; width: 150px; height: 150px; margin: 14px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: #dfe4e0; }
.ring .prog { stroke: var(--sign); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-t b { font-family: var(--display); font-weight: 400; font-size: 34px; }
.ring-t small { font-size: 12px; color: var(--muted); }
.btn-primary {
  display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 10px;
  background: var(--sign); color: #fff; font-weight: 700; font-size: 16px; padding: 14px 16px;
  box-shadow: 0 3px 0 var(--sign-dk);
}
.btn-primary:hover { background: #007a5a; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sign-dk); }
.btn-primary:disabled { background: #a9b3af; box-shadow: none; cursor: not-allowed; }

/* ---------- 4. 앱 ---------- */
#phone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: calc(var(--route-h) + 14px) 16px 14px; background: rgba(29,35,38,.55); backdrop-filter: blur(3px); }
.device { width: min(370px, 100%); height: min(720px, calc(100dvh - var(--route-h) - 60px)); background: #101315; border-radius: 40px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 2px #3a4247; }
.screen { height: 100%; background: var(--paper); border-radius: 30px; overflow: hidden auto; display: flex; flex-direction: column; }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 12px; background: var(--sign); color: #fff; }
.app-name { font-family: var(--display); font-size: 24px; }
.app-tag { font-size: 12px; background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 4px; }
.view { padding: 16px 18px 20px; display: flex; flex-direction: column; }
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 14px; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 6px; }
.chip svg { width: 16px; height: 16px; }
.chip.ok { background: #dcefe5; color: var(--sign-dk); }
.score-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.ring-score { width: 82px; height: 82px; border-radius: 50%; border: 7px solid var(--sign); display: flex; align-items: baseline; justify-content: center; padding-top: 18px; flex-shrink: 0; }
.ring-score b { font-family: var(--display); font-size: 32px; font-weight: 400; }
.ring-score small { font-size: 12px; }
.grade { margin: 0; font-size: 19px; font-weight: 700; }
.muted { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.facts { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts b { text-align: right; }
.fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.wheel-head { margin: 0 0 12px; font-weight: 700; font-size: 15px; text-align: center; }
.wheel-wrap { position: relative; width: min(280px, 100%); margin: 0 auto; }
#wheel { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--alert); z-index: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.result { margin-top: 14px; background: #fff; border: 2px solid var(--lane); border-radius: 12px; padding: 12px 14px; }
.result-k { margin: 0; font-size: 12px; color: var(--muted); }
.result-v { margin: 2px 0 0; font-family: var(--display); font-size: 24px; line-height: 1.25; }
.why { margin-top: 8px; font-size: 13.5px; line-height: 1.55; }
.why summary { cursor: pointer; font-weight: 700; color: var(--sign-dk); }
.why p { margin: 6px 0; }
.bars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.bars li { display: grid; grid-template-columns: 5.5em 1fr 3em; align-items: center; gap: 8px; font-size: 13px; }
.bars .bar { height: 10px; background: #e3e7e3; border-radius: 5px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--sign); }
.bars li.top .bar i { background: var(--lane); }
.bars em { font-style: normal; text-align: right; color: var(--muted); }
.tier-k { margin: 14px 0 6px; font-size: 13px; font-weight: 700; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tiers li { border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; background: #fff; display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--muted); }
.tiers b { font-size: 13px; color: var(--ink); }
.tiers em { font-style: normal; font-weight: 700; color: var(--ink); }
.tiers li.now { border: 2px solid var(--sign); background: #e6f3ec; }
.coach { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #fde6e3; font-size: 13px; line-height: 1.55; }
.ad-card { position: relative; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fbe6cf; border: 1px solid #e9c7a2; }
.ad-tag { position: absolute; top: 8px; right: 10px; font-size: 11px; color: #7b5a3a; border: 1px solid #c9a27c; border-radius: 4px; padding: 0 5px; }
.ad-art { width: 84px; flex-shrink: 0; }
.ad-title { margin: 0; font-family: var(--display); font-size: 20px; color: #6b3514; }
.ad-sub { margin: 2px 0 0; font-size: 12px; color: #7b5a3a; line-height: 1.4; }
.ad-price { margin: 4px 0 0; font-weight: 700; font-size: 14px; color: #3d2412; }
.wallet-k { margin: 0 0 10px; font-weight: 700; }
.ticket {
  position: relative; background: var(--lane); color: var(--ink); border-radius: 12px; padding: 16px 18px 14px;
  -webkit-mask: radial-gradient(circle 10px at 0 60%, transparent 98%, #000) , radial-gradient(circle 10px at 100% 60%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.t-name { margin: 0; font-weight: 700; font-size: 14px; }
.t-value { margin: 4px 0 6px; font-family: var(--display); font-size: 30px; line-height: 1.15; }
.t-where { margin: 0 0 12px; font-size: 12.5px; }
.barcode { height: 44px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); border-radius: 2px; }
.phone-cap { margin: 0; font-size: 12.5px; color: #eef1ee; text-align: center; max-width: 420px; }

/* ---------- 5. 매장 ---------- */
#shop { display: flex; align-items: center; justify-content: center; padding: calc(var(--route-h) + 14px) 16px 16px; background: rgba(29,35,38,.6); backdrop-filter: blur(3px); }
.kiosk { width: min(880px, 100%); max-height: 100%; overflow: auto; background: var(--paper); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.k-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 22px; background: var(--asphalt); color: #fff; }
.k-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; }
.k-head p { margin: 0; font-size: 13px; color: #b9c2c4; }
.k-body { display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 18px 22px 22px; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; }
.menu button { width: 100%; height: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.menu button:hover { border-color: var(--sign); }
.menu .ico { width: 54px; height: 54px; }
.menu .nm { font-weight: 700; font-size: 15px; }
.menu .pr { font-family: var(--display); font-size: 19px; }
.menu .nt { font-size: 11.5px; color: var(--muted); }
.menu .cp { align-self: flex-start; font-size: 11.5px; font-weight: 700; background: var(--lane); color: var(--ink); padding: 2px 7px; border-radius: 4px; }
.menu .qty { font-size: 12px; color: var(--sign-dk); font-weight: 700; }
.cart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; align-self: start; }
.cart h3 { margin: 0 0 8px; font-size: 15px; }
.cart-list { list-style: none; margin: 0; padding: 0; min-height: 40px; font-size: 14px; }
.cart-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cart-list .rm { border: 0; background: #eef0ed; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.cart-list .empty { color: var(--muted); border: 0; }
.coupon-row { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff6dc; border: 2px dashed var(--lane); font-size: 13.5px; line-height: 1.45; }
.coupon-row label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.coupon-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sign); }
.coupon-row .hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sum { margin: 0; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 700; }
.sum .pay { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 8px; }
.sum .pay dd { font-family: var(--display); font-weight: 400; font-size: 24px; }
.receipt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(29,35,38,.55); }
.rc-paper { width: min(360px, 100%); background: #fff; padding: 22px 22px 20px; border-radius: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-size: 14px; }
.rc-paper h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--sign); }
.rc-paper ul { list-style: none; margin: 0; padding: 0 0 8px; border-bottom: 1px dashed #9aa3a6; }
.rc-paper li, .rc-line { display: flex; justify-content: space-between; margin: 6px 0; }
.rc-line b { font-weight: 700; }
.rc-pay { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 16px; }
.rc-pay b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.rc-save { margin: 10px 0 0; background: #fff6dc; padding: 10px 12px; border-radius: 8px; line-height: 1.5; }

/* ---------- 6. 정리 ---------- */
#end { overflow-y: auto; background: var(--paper); padding-top: var(--route-h); }
.report { width: min(760px, 100%); margin: 0 auto; padding: 30px 20px 48px; }
.r-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5.5vw, 44px); line-height: 1.15; color: var(--sign); }
.r-sum { margin: 12px 0 0; font-size: 16px; line-height: 1.65; }
.r-list { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: ai; }
.r-list > li { counter-increment: ai; position: relative; padding: 22px 0 22px 58px; border-top: 2px solid var(--ink); }
.r-list > li::before { content: counter(ai); position: absolute; left: 0; top: 20px; width: 40px; height: 40px; border-radius: 8px; background: var(--sign); color: #fff; font-family: var(--display); font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff; }
.r-list h3 { margin: 0; font-size: 19px; line-height: 1.4; }
.r-list p { margin: 6px 0 0; font-size: 15px; line-height: 1.65; max-width: 62ch; }
.r-list .tech { font-size: 13px; color: var(--muted); }
.chart { display: block; width: 100%; height: auto; margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.chart text { font-family: var(--body); font-size: 12px; fill: var(--muted); }
.bars.wide { max-width: 480px; margin-top: 12px; }
.bars.wide li { grid-template-columns: 7em 1fr 3em; }
.r-foot { border-top: 2px solid var(--ink); padding-top: 18px; }
.r-foot p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.r-foot .btn-primary { max-width: 280px; }

#fade { position: fixed; inset: 0; z-index: 60; background: #0f1214; opacity: 0; pointer-events: none; transition: opacity .6s; }
#fade.on { opacity: 1; }
.noscript { position: fixed; inset: 40% 16px auto; z-index: 99; background: #fff; padding: 16px; border-radius: 8px; text-align: center; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 720px) {
  :root { --route-h: 52px; }
  .route { padding: 0 10px; gap: 8px; }
  .route .lbl { display: none; }
  .route li.now .lbl { display: block; position: absolute; top: 30px; left: 0; font-size: 11px; overflow: visible; }
  .route ol::before { top: 20px; }
  .route li button { padding-top: 13px; }
  .tool { padding: 6px 8px; font-size: 12px; }
  .virtual { top: auto; bottom: 6px; right: 50%; transform: translateX(50%); white-space: nowrap; font-size: 11px; background: none; color: #9aa6a8; }
  .chart text { font-size: 16px; }
  body[data-step="4"] .virtual, body[data-step="5"] .virtual, body[data-step="6"] .virtual { display: none; }
  .hero { padding: 22px 22px 22px; grid-template-columns: 1fr; }
  .plate { justify-self: start; margin-top: 10px; }
  .hud-top { top: calc(var(--route-h) + 12px); left: 10px; right: 10px; gap: 8px; }
  .score-sign { min-width: 0; flex: 1 1 130px; padding: 8px 12px 10px; }
  .score-sign b { font-size: 36px; }
  .ai-meter { flex: 1 1 150px; width: auto; padding: 8px 12px; }
  .clock { flex: 0 0 auto; padding: 8px 12px; }
  .clock b { font-size: 26px; }
  .zone { top: auto; bottom: calc(var(--dash-h) + 168px); font-size: 13px; }
  .tip { bottom: calc(var(--dash-h) + 86px); }
  .voice { bottom: calc(var(--dash-h) + 146px); }
  .voice p { font-size: 15px; }
  .controls { right: 10px; left: 10px; justify-content: space-between; }
  .controls button { width: 84px; height: 58px; }
  .signal { bottom: calc(var(--dash-h) + 84px); font-size: 15px; width: calc(100% - 20px); justify-content: center; }
  .mount { right: 3%; }
  .steer-wrap { width: 84vw; transform: translate(-50%, 44%); }
  .mini-phone { width: 52px; height: 74px; }
  .k-body { grid-template-columns: 1fr; padding: 14px; }
  .menu { grid-template-columns: repeat(2, 1fr); }
  .device { border-radius: 30px; padding: 8px; }
  .screen { border-radius: 24px; }
  .r-list > li { padding-left: 50px; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .zone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
