/* ==========================================================================
   HEEL & TOE — production HMI skin (loaded after app.css; overrides only)
   Layered glass panels, local typography (fonts/, SIL OFL), high-DPI vector
   icons, micro-animations. Every element id / class the game scripts use is
   unchanged — this file only restyles them.
   ========================================================================== */

/* ---------- typography: local font files, never a network request ---------- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/BarlowCondensed-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/BarlowCondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/BarlowCondensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Tamil'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/NotoSansTamil-tamil.woff2') format('woff2'); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

:root {
  --glass: rgba(14, 18, 24, 0.62);
  --glass-2: rgba(22, 27, 35, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.11);
  --glass-line-2: rgba(255, 255, 255, 0.2);
  --glow-amber: 0 0 18px rgba(232, 162, 58, 0.35);
  --glow-teal: 0 0 14px rgba(63, 208, 201, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --panel: var(--glass);
  --line: var(--glass-line);
  --line2: var(--glass-line-2);
  --radius: 12px;
}
html, body { font-feature-settings: 'tnum' 1, 'ss01' 1; }

/* ---------- glass surfaces ---------- */
.panel, .card, .modal-box, .g-spec, .toast, .hud-coach, .hud-interact, .cp-tip, .tc-editor-panel, .dash-panel, .qm-centre, .pause-traffic, .chip {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 38%, rgba(0, 0, 0, 0) 60%), var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.panel { border-radius: 16px; }
.panel h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; letter-spacing: 0.14em; color: var(--amber2); }
.panel h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(232, 162, 58, 0.5), rgba(232, 162, 58, 0)); }

/* ---------- buttons: milled keycaps ---------- */
.btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)), rgba(20, 24, 31, 0.7);
  border: 1px solid var(--glass-line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.1s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)), rgba(26, 31, 40, 0.75); border-color: rgba(255, 255, 255, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.4); }
.btn:active { transform: translateY(1px) scale(0.99); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); }
.btn.primary { background: linear-gradient(180deg, #ffc866, #e49a2e 55%, #cf8520); color: #16110a; border-color: #ffd789; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 16px rgba(232, 162, 58, 0.35); }
.btn.primary:hover { background: linear-gradient(180deg, #ffd27a, #f0a63a 55%, #d98d24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 22px rgba(232, 162, 58, 0.5); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.back { border-radius: 50%; }

/* ---------- screens, headers, tabs ---------- */
.screen { background: radial-gradient(1200px 800px at 18% 20%, rgba(232, 162, 58, 0.07), rgba(0, 0, 0, 0) 55%), linear-gradient(90deg, rgba(6, 8, 11, 0.93) 0%, rgba(6, 8, 11, 0.86) 50%, rgba(6, 8, 11, 0.66) 100%); animation: scr-in 0.36s var(--ease); }
.scr-head h2, .g-top h2 { letter-spacing: 0.1em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.scr-head h2::after, .g-top h2::after { content: ''; display: block; width: 3.2rem; height: 3px; margin-top: 0.3rem; border-radius: 2px; background: linear-gradient(90deg, var(--amber), rgba(232, 162, 58, 0)); }
.tabs { gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-line); width: max-content; max-width: 100%; }
.tab { border: 1px solid transparent; padding: 0.4rem 1rem; transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.tab:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.tab.on { background: linear-gradient(180deg, #fff7ea, #e9e2d3); color: #13100a; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 #fff; }

/* ---------- settings: rows, selects, toggles, sliders ---------- */
.set-list { max-width: 56rem; }
.set-row { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--glass-line); transition: background 0.15s var(--ease); border-radius: 8px; }
.set-row:hover { background: rgba(255, 255, 255, 0.025); }
.set-label b { font-weight: 600; letter-spacing: 0.01em; }
.set-label span { line-height: 1.4; }
select, input[type='text'] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), #141920;
  border: 1px solid var(--glass-line-2); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.4);
  padding-right: 2rem; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23e8a23a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 0, right 0.6rem center; background-size: 100% 100%, 0.9rem 0.9rem;
}
select:hover { border-color: rgba(255, 255, 255, 0.35); }
.toggle { width: 3.3rem; height: 1.85rem; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25)); border-color: var(--glass-line-2); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55); transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.toggle i { top: 3px; left: 3px; width: 1.35rem; height: 1.35rem; background: linear-gradient(180deg, #d9d4c9, #a9a49a); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.22s var(--ease), background 0.2s var(--ease); }
.toggle.on { background: linear-gradient(180deg, rgba(63, 208, 201, 0.35), rgba(63, 208, 201, 0.18)); border-color: var(--teal); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), var(--glow-teal); }
.toggle.on i { transform: translateX(1.45rem); background: linear-gradient(180deg, #9ff3ee, #3fd0c9); }
.slider output { font-size: 1rem; }
input[type='range'] { height: 5px; background: linear-gradient(90deg, rgba(232, 162, 58, 0.9), rgba(232, 162, 58, 0.9)) no-repeat, rgba(255, 255, 255, 0.12); background-size: 0 100%; border-radius: 4px; }
input[type='range']::-webkit-slider-thumb { width: 20px; height: 20px; background: radial-gradient(circle at 40% 35%, #ffd27a, #e49a2e 60%, #b8751c); border: 2px solid #0f0c08; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), var(--glow-amber); transition: transform 0.12s var(--ease); }
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type='range']::-moz-range-thumb { background: radial-gradient(circle at 40% 35%, #ffd27a, #e49a2e 60%, #b8751c); border: 2px solid #0f0c08; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.key-btn { background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 rgba(0, 0, 0, 0.5); }
kbd { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }

/* ---------- main menu ---------- */
.main-menu { background: radial-gradient(900px 600px at 12% 30%, rgba(232, 162, 58, 0.08), rgba(0, 0, 0, 0) 60%), linear-gradient(90deg, rgba(5, 7, 10, 0.96) 0%, rgba(5, 7, 10, 0.78) 30%, rgba(5, 7, 10, 0) 58%); }
.logo { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7); }
.tag { color: var(--amber2); opacity: 0.85; }
.menu-item { position: relative; border-left: 0; padding-left: 1.3rem; border-radius: 10px; transition: background 0.2s var(--ease), padding 0.2s var(--ease), transform 0.2s var(--ease); }
.menu-item::before { content: ''; position: absolute; left: 0.35rem; top: 50%; width: 3px; height: 0; border-radius: 2px; background: var(--amber); box-shadow: var(--glow-amber); transform: translateY(-50%); transition: height 0.22s var(--ease); }
.menu-item:hover, .menu-item:focus-visible { background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)); padding-left: 1.6rem; transform: translateX(2px); }
.menu-item:hover::before, .menu-item:focus-visible::before { height: 60%; }
.menu-item .mi-label { transition: letter-spacing 0.2s var(--ease); }
.menu-item:hover .mi-label { letter-spacing: 0.13em; }
.menu-item .mi-sub { transition: max-height 0.25s var(--ease), opacity 0.25s var(--ease); opacity: 0; }
.menu-item:hover .mi-sub, .menu-item:focus-visible .mi-sub { opacity: 1; }
.chip-avatar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(232, 162, 58, 0.35); }

/* ---------- drive select, cards ---------- */
.card { transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.card:hover:not(:disabled), .card:focus-visible { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--glass-hi), 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 162, 58, 0.5); }
.mc-art { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -20px 30px rgba(0, 0, 0, 0.35); }
.art-city .mc-art { background: linear-gradient(170deg, #7a93ae 0%, #35404d 55%, #171c23 100%); }
.seg { background: rgba(0, 0, 0, 0.25); border-color: var(--glass-line); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.seg-btn { transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.seg-btn.on { background: linear-gradient(180deg, #fff7ea, #e9e2d3); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 #fff; }
.city-card.on { box-shadow: inset 0 0 0 1px rgba(232, 162, 58, 0.6), 0 0 0 1px rgba(232, 162, 58, 0.3), var(--glow-amber); }
.city-pick h3 .ta, .city-card .ta { font-family: 'Noto Sans Tamil', 'Latha', 'Nirmala UI', var(--font); }

/* ---------- pause & results ---------- */
.pause, .results { background: radial-gradient(1000px 700px at 50% 40%, rgba(10, 14, 20, 0.55), rgba(4, 6, 9, 0.85)); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.pause h2, .results h2 { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8); letter-spacing: 0.16em; }
.pause h2::after, .results h2::after { content: ''; display: block; width: 4rem; height: 3px; margin: 0.4rem auto 0; border-radius: 2px; background: linear-gradient(90deg, rgba(232, 162, 58, 0), var(--amber), rgba(232, 162, 58, 0)); }
.pause-list .btn { justify-content: flex-start; padding-left: 1.3rem; }
.res-banner { box-shadow: 0 0 24px rgba(0, 0, 0, 0.4); }

/* ---------- toasts ---------- */
.toast { border-radius: 12px; padding: 0.6rem 1.1rem; }
.toast.good { box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 16px rgba(74, 208, 122, 0.25); }
.toast.warn { box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 16px rgba(232, 162, 58, 0.3); }
.toast.bad { box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 90, 67, 0.3); }

/* ---------- loader ---------- */
#loader { background: radial-gradient(1200px 700px at 50% 35%, #1b222c 0%, #0b0e12 60%, #06080b 100%); }
.ld-logo { text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(232, 162, 58, 0.12); }
.ld-bar { height: 4px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.ld-bar i { box-shadow: 0 0 12px rgba(232, 162, 58, 0.6); }

/* ---------- HUD: the driving HMI (desktop layout; the touch layout in app.css is untouched) ---------- */
.hud-mode { text-shadow: 0 1px 2px #000, 0 0 12px rgba(232, 162, 58, 0.35); }
.hud-timer { font-variant-numeric: tabular-nums; }
body:not(.touch-device) .hud-dash {
  width: 20.5rem; padding: 0.75rem 1rem 0.7rem; border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 35%, rgba(0, 0, 0, 0) 60%), linear-gradient(180deg, rgba(14, 18, 24, 0.7), rgba(8, 10, 14, 0.78));
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi), 0 14px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
}
body:not(.touch-device) .hud-dash.minimal { width: 14.5rem; padding: 0.55rem 0.8rem; }
body:not(.touch-device) .hud-rpm { height: 9px; border-radius: 5px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 10%), rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
body:not(.touch-device) .hud-rpm-fill { background: linear-gradient(90deg, #3fd0c9, #9fe6c7 45%, #ffbf5c 80%, #ff7a4a); box-shadow: 0 0 10px rgba(63, 208, 201, 0.35); }
body:not(.touch-device) .hud-rpm-fill.red { background: linear-gradient(90deg, #ffbf5c, #ff5a43); box-shadow: 0 0 12px rgba(255, 90, 67, 0.6); }
body:not(.touch-device) .hud-rpm-red { width: 2px; background: rgba(255, 90, 67, 0.9); box-shadow: 0 0 6px rgba(255, 90, 67, 0.8); }
body:not(.touch-device) .hud-speed .v { font-size: 3.3rem; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
body:not(.touch-device) .hud-speed .u { letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--cond); font-weight: 600; }
body:not(.touch-device) .hud-gear { border: 1px solid var(--glass-line-2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -6px 12px rgba(0, 0, 0, 0.3); min-width: 2.9rem; border-radius: 12px; text-shadow: 0 0 12px rgba(236, 232, 225, 0.25); transition: color 0.15s, border-color 0.15s, box-shadow 0.15s; }
body:not(.touch-device) .hud-gear.grind { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 14px rgba(255, 90, 67, 0.6); }
body:not(.touch-device) .hud-lamps { gap: 0.3rem; margin-top: 0.55rem; }
body:not(.touch-device) .hud-lamps span {
  display: inline-flex; align-items: center; gap: 0.25rem; min-height: 1.35rem; padding: 0.08rem 0.4rem; border-radius: 6px;
  color: rgba(236, 232, 225, 0.22); border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.18);
  transition: color 0.12s, background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
body:not(.touch-device) .hud-lamps span svg { width: 1.05rem; height: 1.05rem; display: block; }
body:not(.touch-device) .hud-lamps span.on { color: #0b0d10; box-shadow: 0 0 10px currentColor; }
body:not(.touch-device) .hud-lamps span[data-l='indL'].on, body:not(.touch-device) .hud-lamps span[data-l='indR'].on { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(74, 208, 122, 0.8); }
body:not(.touch-device) .hud-lamps span[data-l='low'].on, body:not(.touch-device) .hud-lamps span[data-l='fog'].on { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(74, 208, 122, 0.7); }
body:not(.touch-device) .hud-lamps span[data-l='high'].on { background: #4b86ff; border-color: #4b86ff; box-shadow: 0 0 12px rgba(75, 134, 255, 0.8); }
body:not(.touch-device) .hud-lamps span[data-l='abs'].on, body:not(.touch-device) .hud-lamps span[data-l='tcs'].on, body:not(.touch-device) .hud-lamps span[data-l='hand'].on, body:not(.touch-device) .hud-lamps span[data-l='eng'].on, body:not(.touch-device) .hud-lamps span[data-l='lim'].on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 12px rgba(232, 162, 58, 0.7); }
body:not(.touch-device) .hud-lamps span[data-l='hand'].on { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(255, 90, 67, 0.7); }
body:not(.touch-device) .hud-lamps span[data-l='cruise'].on, body:not(.touch-device) .hud-lamps span[data-l='hold'].on { background: var(--green); border-color: var(--green); }
body:not(.touch-device) .hud-lamps span[data-l='mode'].on { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 12px rgba(63, 208, 201, 0.7); }
body:not(.touch-device) .hud-bars { gap: 0.6rem; margin-top: 0.6rem; }
body:not(.touch-device) .hud-bars .bar label { font-family: var(--cond); font-weight: 600; }
body:not(.touch-device) .hud-bars .bar div { height: 5px; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
body:not(.touch-device) .hud-bars .bar i { background: linear-gradient(90deg, rgba(236, 232, 225, 0.6), rgba(236, 232, 225, 0.95)); transition: width 0.25s linear; }
body:not(.touch-device) .hud-bars .bar i.warn { background: linear-gradient(90deg, #ff8a70, #ff5a43); box-shadow: 0 0 8px rgba(255, 90, 67, 0.6); }
body:not(.touch-device) .hud-pedals { right: -1.05rem; width: 0.62rem; gap: 3px; }
body:not(.touch-device) .hud-pedals i { border-radius: 3px; box-shadow: 0 0 6px currentColor; }
body:not(.touch-device) .hud-pedals i.c { color: rgba(63, 208, 201, 0.6); }
body:not(.touch-device) .hud-pedals i.b { color: rgba(255, 90, 67, 0.6); }
body:not(.touch-device) .hud-pedals i.t { color: rgba(74, 208, 122, 0.6); }
.hud-map { border: 2px solid rgba(255, 255, 255, 0.22); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.5); }
.hud-map-wrap::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45); }
.hud-limit { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #fff; }
.hud-street { letter-spacing: 0.1em; padding: 0.12rem 0.6rem; border-radius: 999px; background: rgba(8, 10, 13, 0.6); border: 1px solid var(--glass-line); text-shadow: none; }
.hud-coach { border-radius: 14px; }
.hud-coach .step { text-shadow: 0 0 10px rgba(232, 162, 58, 0.5); }
.hud-fps { padding: 0.1rem 0.6rem; border-radius: 999px; background: rgba(8, 10, 13, 0.5); border: 1px solid var(--glass-line); font-variant-numeric: tabular-nums; }
.hud-center { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.6); }
.hud-viewreset { border-radius: 999px; }
.hud-interact { border-radius: 14px; }
.hud-interact .key { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.cp-ring { border-width: 2px; box-shadow: 0 0 12px rgba(232, 162, 58, 0.7), inset 0 0 10px rgba(232, 162, 58, 0.35); }

/* ---------- quick menu, dashboard panel ---------- */
.qm-item { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.55); }
.qm-item.sel, .qm-item:hover { box-shadow: 0 0 0 3px rgba(232, 162, 58, 0.35), 0 0 22px rgba(232, 162, 58, 0.5); }
.dp-btn { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), rgba(18, 21, 26, 0.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 4px rgba(0, 0, 0, 0.45); transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s; }

/* ---------- micro-animations ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen .panel, .screen .card, .mode-card { animation: rise-in 0.45s var(--ease) both; }
.screen .panel:nth-child(3) { animation-delay: 0.05s; }
.hud-dash.show, .hud-map-wrap.show { animation: rise-in 0.5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .screen .panel, .screen .card, .mode-card, .hud-dash.show, .hud-map-wrap.show { animation: none; }
}

/* phones never pay for blurred glass (app.css already turns backdrop-filter off); keep panels readable */
body.touch-device .panel, body.touch-device .card, body.touch-device .toast, body.touch-device .hud-coach { background: rgba(12, 16, 21, 0.9); }
