:root {
  --bg: #0d0f0e; --bg2: #141816; --panel: #191e1b; --panel2: #202622; --line: #2c342f; --ink: #f1efe6; --dim: #98a39b;
  --hi: #ffd400; --hot: #ff6a3d; --ok: #58d68d; --bad: #ff5a4f; --ice: #8fd3ff;
  --r: 18px; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cond: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px); }
#app { min-height: 100%; padding-bottom: env(safe-area-inset-bottom); }
h1, h2 { font-family: var(--cond); font-weight: 800; letter-spacing: .01em; margin: 0 0 .4em; line-height: 1.1; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: uppercase; } h2 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: .4em 0 .8em; } a { color: var(--hi); cursor: pointer; text-decoration: underline; }
.dim { color: var(--dim); font-size: .92rem; } small { color: var(--dim); }
.kick { display: inline-block; font: 700 .72rem var(--mono); letter-spacing: .18em; color: #111; background: var(--hi); padding: .25em .7em; border-radius: 4px; margin-bottom: .8em;
  background-image: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(0,0,0,.14) 8px 16px); }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(13,15,14,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font: 900 1.25rem var(--cond); letter-spacing: .14em; } .brand b { color: var(--hi); }
.back { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; font: 600 .9rem inherit; cursor: pointer; }
.top-title { flex: 1; font: 700 .8rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.wallet { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; } .wallet b { font: 700 1.05rem var(--mono); color: var(--hi); } .wallet i { font: normal .7rem var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }

.view { max-width: 1120px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .row.wrap { margin-top: 4px; }
.lbl { font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-left: 6px; }

/* knappar: mjuka, lite tryckbara */
.btn { appearance: none; border: 0; cursor: pointer; font: 800 1rem var(--cond); letter-spacing: .06em; text-transform: uppercase; color: #141414; background: var(--hi);
  padding: .7em 1.3em; border-radius: 14px; box-shadow: 0 4px 0 #a88a00, 0 8px 18px rgba(255,212,0,.16); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a88a00; }
.btn.small { font-size: .85rem; padding: .5em .95em; border-radius: 11px; box-shadow: 0 3px 0 #a88a00; }
.btn.ghost { background: var(--panel2); color: var(--ink); box-shadow: 0 3px 0 #0a0c0b, inset 0 0 0 1px var(--line); }
.btn.ghost:active { box-shadow: 0 0 0 #0a0c0b, inset 0 0 0 1px var(--line); } .btn.danger { color: var(--bad); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.chip { appearance: none; cursor: pointer; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .5em .8em; font: 600 .9rem inherit; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; transition: border-color .15s, background .15s; }
.chip small { font: .7rem var(--mono); } .chip.s { flex-direction: row; padding: .4em .9em; border-radius: 999px; }
.chip.on { border-color: var(--hi); background: rgba(255,212,0,.12); color: var(--hi); } .chip.on small { color: var(--hi); opacity: .8; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
input[type=range] { accent-color: var(--hi); width: 100%; max-width: 220px; height: 28px; }
input.num, input.txt, .asks input { background: var(--bg2); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: .5em .7em; font: 600 1rem var(--mono); width: 110px; }
input.txt { width: 200px; }
.lock { font: 700 .7rem var(--mono); letter-spacing: .1em; color: var(--dim); border: 1px dashed var(--line); border-radius: 8px; padding: .4em .6em; }
.warnbox, .okbox { border-radius: 12px; padding: .7em 1em; font-size: .92rem; } .warnbox { background: rgba(255,90,79,.12); border: 1px solid rgba(255,90,79,.4); color: #ffb3ad; } .okbox { background: rgba(88,214,141,.1); border: 1px solid rgba(88,214,141,.35); color: #b6efcd; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--hi); color: #111; font: 800 .95rem var(--cond); letter-spacing: .05em; padding: .7em 1.3em; border-radius: 999px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: pop .25s ease-out; }
@keyframes pop { from { transform: translate(-50%, 16px); opacity: 0; } }

/* meny */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: linear-gradient(120deg, #1c221e 0%, #171b18 55%, #2a2410 100%); border: 1px solid var(--line); border-radius: 24px; padding: 24px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--hi) 0 14px, #111 14px 28px); }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: .02em; margin-bottom: .15em; } .hero h1 em { font-style: normal; color: var(--hi); }
.hero p { max-width: 56ch; color: #c9d0ca; }
.plate { width: clamp(120px, 22vw, 230px); transform: rotate(-6deg); filter: drop-shadow(0 14px 24px rgba(0,0,0,.5)); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pills > div, .tiles > div { background: rgba(0,0,0,.32); border: 1px solid var(--line); border-radius: 14px; padding: .6em .9em; display: flex; flex-direction: column; min-width: 128px; }
.pills span, .tiles span { font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); } .pills b, .tiles b { font: 700 1.15rem var(--mono); } .pills small, .tiles small { font: .72rem var(--mono); }
.pills .good b, .good { color: var(--ok); } .pills .bad b, .tiles .bad b, td.bad, .bad { color: var(--bad); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mcard { appearance: none; text-align: left; cursor: pointer; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden;
  box-shadow: 0 5px 0 #080a09; transition: transform .1s, box-shadow .1s, border-color .15s; font: inherit; }
.mcard:hover { border-color: var(--c, var(--hi)); } .mcard:active { transform: translateY(4px); box-shadow: 0 1px 0 #080a09; }
.mcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c, var(--hi)); }
.mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .mc-ico { font-size: 1.7rem; }
.mc-tag { font: 700 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--hi)); border: 1px solid currentColor; border-radius: 999px; padding: .2em .7em; }
.mcard strong { font: 800 1.5rem var(--cond); text-transform: uppercase; letter-spacing: .04em; } .mcard > span { color: var(--dim); font-size: .9rem; }
.c1 { --c: #ffd400; } .c2 { --c: #ff6a3d; } .c3 { --c: #ff4d6d; } .c4 { --c: #58d68d; } .c5 { --c: #8fd3ff; } .c6 { --c: #a8b0aa; }

/* karriär */
.aids { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.aid { appearance: none; text-align: left; cursor: pointer; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font: inherit; }
.aid b { font: 800 1.05rem var(--cond); text-transform: uppercase; letter-spacing: .05em; } .aid i { font: 700 .75rem var(--mono); font-style: normal; background: #3a423d; color: var(--dim); border-radius: 999px; padding: .15em .8em; align-self: center; }
.aid.on i { background: var(--ok); color: #082414; } .aid small { grid-column: 1 / -1; }
.level.locked { opacity: .55; } .lv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .lv-head span { font: .8rem var(--mono); color: var(--dim); }
.lv-head h2 i { font-style: normal; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; background: var(--hi); color: #111; border-radius: 8px; margin-right: .5em; }
.evs { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ev { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.ev b { display: block; font: 800 1.1rem var(--cond); letter-spacing: .03em; } .ev small { font: .74rem var(--mono); }
.ev-res { font: 700 .78rem var(--mono); color: var(--dim); white-space: nowrap; } .ev-res.done { color: var(--ok); }
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; } .ladder i { color: var(--dim); font-style: normal; }
.ladder span { font: 700 .78rem var(--mono); letter-spacing: .06em; padding: .35em .7em; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); color: var(--dim); }
.ladder span.fin { min-width: 2.2em; text-align: center; } .ladder span.cur { background: var(--hi); color: #111; border-color: var(--hi); box-shadow: 0 0 0 4px rgba(255,212,0,.18); }
table.res, table.stats { width: 100%; border-collapse: collapse; font: .9rem var(--mono); } table.res th { text-align: left; color: var(--dim); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
table.res td, table.res th, table.stats td { padding: .42em .5em; border-bottom: 1px solid var(--line); } table.res tr.me td { color: var(--hi); font-weight: 700; background: rgba(255,212,0,.06); }
.flag { color: var(--bad); font-weight: 800; } .final.podium { border-color: var(--hi); box-shadow: 0 0 0 4px rgba(255,212,0,.12); }
table.stats td:first-child { color: var(--dim); width: 44%; } table.stats em { font-style: normal; font-size: .8rem; margin-left: .5em; } em.up { color: var(--ok); } em.dn { color: var(--bad); }
table.codes td small { display: block; }

/* garage */
.g-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.g-curve canvas { width: 100%; height: auto; background: #0f1211; border: 1px solid var(--line); border-radius: 14px; }
.legend { display: flex; gap: 14px; align-items: center; font: .74rem var(--mono); color: var(--dim); margin-top: 6px; flex-wrap: wrap; } .legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; margin-right: -8px; }
.l1 { background: var(--hi); } .l2 { background: var(--hot); } .l3 { background: repeating-linear-gradient(90deg, #aaa 0 4px, transparent 4px 8px); }
.okb { color: var(--ok); } .nob { color: var(--bad); } .pvbox { background: rgba(143,211,255,.1); border: 1px solid rgba(143,211,255,.4); border-radius: 12px; padding: .5em .8em; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card.own { border-color: #3d5a48; } .card.sel { border-color: var(--hi); box-shadow: inset 0 0 0 1px var(--hi); }
.c-top { display: flex; justify-content: space-between; font: 700 .7rem var(--mono); letter-spacing: .1em; color: var(--dim); } .c-top b { color: var(--hi); } .card.own .c-top b { color: var(--ok); }
.card strong { overflow-wrap: anywhere; hyphens: auto; font: 800 1.2rem var(--cond); letter-spacing: .03em; text-transform: uppercase; } .card em { font-size: .82rem; color: var(--hi); font-style: normal; } .card p { font-size: .86rem; color: #c3cbc5; margin: 0; flex: 1; }
.card ul { margin: 0; padding: 0; list-style: none; font: .76rem var(--mono); color: var(--dim); } .card .row { margin-top: 6px; gap: 6px; }
.swatch { width: 40px; height: 40px; border-radius: 12px; border: 3px solid transparent; background: var(--c); cursor: pointer; box-shadow: 0 3px 0 #080a09; } .swatch.on { border-color: #fff; }

/* trimning */
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.sliders label, label.sl { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; } .sliders label.off { opacity: .5; }
.sliders span, label.sl span { display: flex; justify-content: space-between; font-weight: 600; } .sliders b, label.sl b { font-family: var(--mono); color: var(--hi); } .sliders input, label.sl input { max-width: none; } .sliders small { font: .72rem var(--mono); }
.mep { display: grid; grid-template-columns: 170px 1fr 170px; gap: 10px; align-items: center; font: .8rem var(--mono); margin: 5px 0; } .mep > div { background: #0f1211; border-radius: 6px; height: 14px; overflow: hidden; } .mep i { display: block; height: 100%; border-radius: 6px; } .mep b { text-align: right; font-weight: 600; }
.f1 { background: var(--hi); } .f2 { background: var(--hot); } .f3 { background: #9aa39c; } .f4 { background: var(--ice); } .f5 { background: var(--ok); } .f6 { background: #6b5560; }

/* räknebänken, kompendium */
.asks { display: grid; gap: 10px; margin: 14px 0; } .asks label { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.asks label.right { border-color: var(--ok); } .asks label.wrong { border-color: var(--bad); } .asks small { grid-column: 1 / -1; color: var(--bad); font-family: var(--mono); }
.klist { display: grid; gap: 8px; } .klist button { appearance: none; cursor: pointer; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); display: grid; grid-template-columns: 2.2em 1fr; gap: 0 10px; font: inherit; }
.klist i { grid-row: span 2; font: 800 1.1rem var(--cond); font-style: normal; background: var(--hi); color: #111; border-radius: 8px; display: grid; place-items: center; height: 2.2em; } .klist b { font: 800 1.1rem var(--cond); letter-spacing: .03em; } .klist span { font: .78rem var(--mono); color: var(--dim); }
.formula { font: 600 1.05rem var(--mono); background: #0f1211; border: 1px solid var(--line); border-left: 5px solid var(--hi); border-radius: 10px; padding: .8em 1em; margin: .6em 0 1em; overflow-x: auto; white-space: nowrap; }
.chapter p { max-width: 70ch; }

/* heat – Pro Telemetry HUD & In-Car View (inspirerat av referensbilden) */
body.racing { overflow: hidden; } body.racing #app { padding: 0; }
.race { position: fixed; inset: 0; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
.race-cv { width: 100%; height: 100%; display: block; }
.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); color: #f3f4f6; padding: calc(6px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hud button { pointer-events: auto; cursor: pointer; }
.hud-card { background: linear-gradient(145deg, rgba(20, 24, 31, 0.86), rgba(12, 15, 20, 0.90)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.48); border-radius: 9px; padding: 6px 9px; pointer-events: auto; }
.hud-row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; width: 100%; }
.hud-col-l, .hud-col-r { display: flex; align-items: flex-start; gap: 6px; flex-wrap: nowrap; }
.hud-col-c { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }

/* Vänster topp: Leaderboard + Status/Bränsle/Däck (sida vid sida som i referensbilden!) */
.hud-lb { width: 156px; font-size: 0.62rem; }
.hud-lb-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 3px; margin-bottom: 3px; }
.hud-lb-pos b { font: 900 1.65rem var(--cond); color: #fff; line-height: 0.95; }
.hud-lb-pos span { color: #9ca3af; font-size: 0.68rem; margin-left: 2px; }
.hud-lb-lap { color: #e5e7eb; font-weight: 700; font-size: 0.65rem; }
.hud-lb-list > div { display: flex; align-items: center; justify-content: space-between; padding: 1px 0; white-space: nowrap; }
.hud-lb-list .lb-l { display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
.hud-lb-list i.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.hud-lb-list em.num { font-style: normal; color: #9ca3af; width: 10px; }
.hud-lb-list .me { color: var(--hi); font-weight: 800; background: rgba(255,212,0,.09); border-radius: 4px; padding: 0 3px; margin: 0 -3px; }
.hud-lb-foot { margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: 0.58rem; color: #d1d5db; }
.hud-lb-foot b { color: #fb7185; }

.hud-statcard { width: 168px; font-size: 0.58rem; }
.hud-stat-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.hud-stat-hd span { color: #9ca3af; font-weight: 700; letter-spacing: .04em; }
.hud-stat-hd b { color: #34d399; font-size: 0.74rem; }
.hud-bar-bg { width: 100%; height: 5px; background: #1f2937; border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.hud-bar-fg { height: 100%; background: linear-gradient(90deg, #10b981, #a3e635); border-radius: 99px; transition: width .12s; }
.hud-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 3px; }
.hud-stat-dot { width: 7px; height: 7px; border-radius: 2px; background: #34d399; display: inline-block; margin-right: 3px; }

/* Mitten topp: 5 Startljus i realistisk armatur */
.hud-lights { display: flex; gap: 7px; background: linear-gradient(180deg, #232730, #12151a); padding: 7px 12px; border-radius: 12px; border: 2px solid #090b0e; box-shadow: 0 8px 22px rgba(0,0,0,.65), inset 0 1px 1px rgba(255,255,255,.12); transition: opacity .4s; }
.hud-lights.dimmed { opacity: 0.22; }
.hud-lights i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a1212, #1a0606); border: 2px solid #07080a; box-shadow: inset 0 2px 5px rgba(0,0,0,.85); transition: all .08s; }
.hud-lights i.on { background: radial-gradient(circle at 35% 35%, #ff7b7b, #e11d48 55%, #881337); box-shadow: 0 0 18px rgba(244, 63, 94, 0.95), inset 0 1px 4px rgba(255,255,255,.65); }
.hud-top-btns { display: flex; gap: 4px; align-items: center; padding: 3px 6px; font-size: 0.58rem; }
.hud-mini-btn { background: rgba(255,255,255,.09); color: #f3f4f6; border: 1px solid rgba(255,255,255,.15); border-radius: 5px; padding: 2px 6px; font: 700 0.58rem var(--mono); white-space: nowrap; }
.hud-mini-btn.on { background: rgba(14, 165, 233, 0.35); border-color: #38bdf8; color: #fff; }

/* Höger topp: Underlag + Minimap & Tider */
.hud-surfcard { width: 136px; font-size: 0.58rem; }
.hud-mapcol { display: flex; flex-direction: column; gap: 5px; width: 154px; }
#hMap { width: 100%; height: 86px; display: block; }
.hud-timecard { font-size: 0.58rem; }
.hud-time-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5px 0; color: #d1d5db; }
.hud-time-row b.big { font-size: 0.86rem; color: #fff; font-weight: 800; }
.hud-sectors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; margin-top: 3px; text-align: center; font-size: 0.52rem; }
.hud-sectors span { background: rgba(255,255,255,.06); border-radius: 4px; padding: 1.5px 0; color: #9ca3af; }

/* Mitten: Meddelande + Närhetsradar */
.hud-center-wrap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; margin: auto 0; }
.hud-msg { position: fixed; left: 50%; top: 26%; transform: translate(-50%, -50%) scale(.92); opacity: 0; transition: opacity .18s, transform .18s; text-align: center; font: 900 clamp(1.3rem, 3.5vw, 2.1rem) var(--cond); letter-spacing: .05em; text-shadow: 0 3px 0 #000, 0 0 24px rgba(0,0,0,.85); z-index: 30; pointer-events: none; background: rgba(12,15,20,.82); padding: 6px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); }
.hud-msg small { display: block; font: 700 .74rem var(--mono); color: #f3f4f6; letter-spacing: 0; } .hud-msg.show { opacity: 1; transform: translate(-50%, -50%) scale(1); } .hud-msg.go { color: var(--ok); border-color: var(--ok); } .hud-msg.warn { color: var(--bad); border-color: var(--bad); }
#hRadar { width: 96px; height: 96px; opacity: 0.88; }

/* Nederkant: Motorn Just Nu (MEP) + In-Car Rattdisplay + Växel/Hastighet/G-kraft */
.hud-row-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; width: 100%; }
.hud-mepcard { width: 205px; font-size: 0.58rem; }
.hud-mep-row { display: flex; align-items: center; gap: 4px; margin: 1.5px 0; }
.hud-mep-row > span { width: 38px; color: #9ca3af; }
.hud-mep-row > div { flex: 1; height: 5px; background: #1f2937; border-radius: 99px; overflow: hidden; }
.hud-mep-row > div i { display: block; height: 100%; border-radius: 99px; }
.hud-mep-row > b { width: 46px; text-align: right; color: #e5e7eb; font-weight: 600; }

/* In-Car Digital Ratt-/Dash-skärm i mitten längst ner (som i referensbilden!) */
.hud-wheel-cluster { background: linear-gradient(180deg, #161920, #0b0d12); border: 2px solid #28303d; border-radius: 14px 14px 6px 6px; padding: 5px 10px; display: flex; align-items: center; gap: 8px; box-shadow: 0 -4px 20px rgba(0,0,0,.75), inset 0 1px 2px rgba(255,255,255,.15); }
.wc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.wc-btns i { width: 11px; height: 11px; border-radius: 50%; display: block; border: 1.5px solid rgba(255,255,255,.35); box-shadow: 0 0 5px currentColor; }
.wc-screen { background: #060a10; border: 1px solid #1e293b; border-radius: 5px; padding: 4px 8px; min-width: 132px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.wc-Screen-l, .wc-Screen-r { font-size: 0.54rem; color: #94a3b8; display: flex; flex-direction: column; gap: 1px; }
.wc-Screen-l b { color: #facc15; font-size: 0.64rem; }
.wc-Screen-r b { color: #38bdf8; font-size: 0.64rem; }
.wc-Screen-c b { font: 900 1.55rem var(--mono); color: #fff; line-height: 1; display: block; }
.wc-Screen-c span { font-size: 0.68rem; color: #e2e8f0; font-weight: 700; }

/* Höger botten: Växel, 15 LED RPM, Hastighet & G-kraft/Däcktemp */
.hud-right-bot { display: flex; flex-direction: column; gap: 5px; width: 205px; }
.hud-dash-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hud-gear { font: 900 1.95rem var(--mono); width: 28px; text-align: center; color: #fff; line-height: 1; }
.hud-leds { display: flex; gap: 1.5px; height: 6px; margin-bottom: 2px; }
.hud-leds i { flex: 1; background: #1f2937; border-radius: 1.5px; }
.hud-leds i.g { background: #22c55e; box-shadow: 0 0 5px #22c55e; }
.hud-leds i.y { background: #facc15; box-shadow: 0 0 5px #facc15; }
.hud-leds i.r { background: #ef4444; box-shadow: 0 0 7px #ef4444; }
.hud-speed b { font: 900 1.65rem var(--mono); color: #fff; line-height: 1; display: block; text-align: right; }
.hud-speed span { font-size: 0.54rem; color: #9ca3af; display: block; text-align: right; }
.hud-badges { display: flex; gap: 3px; margin-top: 4px; justify-content: space-between; }
.hud-badge { flex: 1; text-align: center; font-size: 0.52rem; font-weight: 700; padding: 1.5px 3px; border-radius: 4px; background: rgba(255,255,255,.06); color: #9ca3af; border: 1px solid rgba(255,255,255,.1); }
.hud-badge.on { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.45); }
.hud-badge.warn { background: rgba(239, 68, 68, 0.25); color: #fca5a5; border-color: rgba(239, 68, 68, 0.55); }
.hud-gcard { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.56rem; }
.hud-tires { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.hud-tire-box { background: rgba(14, 165, 233, 0.14); border: 1px solid rgba(56, 189, 248, 0.32); border-radius: 4px; padding: 2px 5px; display: flex; justify-content: space-between; }
.hud-tire-box b { color: #7dd3fc; }
.hud-keys-bar { text-align: center; font-size: 0.56rem; color: rgba(243,244,246,.85); background: rgba(0,0,0,.5); padding: 2px 10px; border-radius: 99px; margin: 2px auto 0; backdrop-filter: blur(4px); }

/* GoPro Clean-läge (standard i GoPro In-Car-vy: helt fri sikt över förararmar, mockaratt, aluminiumpanel, golvrör & dörrsträvor!) */
.hud.gopro-clean .hud-statcard,
.hud.gopro-clean .hud-surfcard,
.hud.gopro-clean .hud-timecard,
.hud.gopro-clean .hud-mepcard,
.hud.gopro-clean .hud-gcard,
.hud.gopro-clean #hRadar,
.hud.gopro-clean .hud-keys-bar { display: none !important; }
.hud.gopro-clean .hud-lb { width: 132px; padding: 4px 6px; opacity: 0.86; }
.hud.gopro-clean .hud-mapcol { width: 146px; opacity: 0.86; }
.hud.gopro-clean #hMap { height: 74px; }
.hud.gopro-clean .hud-right-bot { position: fixed; top: 96px; right: 10px; width: 146px; opacity: 0.86; }
.hud.gopro-clean .hud-gear { font-size: 1.45rem; width: 20px; }
.hud.gopro-clean .hud-speed b { font-size: 1.25rem; }

.pause { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: grid; place-items: center; pointer-events: auto; z-index: 40; } .pause[hidden] { display: none; } .pause > div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 260px; text-align: center; font-family: inherit; }
.touch { position: fixed; inset: 0; pointer-events: none; z-index: 25; } .touch > div { position: absolute; bottom: calc(84px + env(safe-area-inset-bottom)); } .t-l { left: 14px; display: flex; gap: 10px; }
.t-r { right: 14px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 10px; align-items: end; }
.touch button { width: 70px; height: 70px; border-radius: 22px; border: 2px solid rgba(255,255,255,.35); background: rgba(10,13,12,.5); color: #fff; font: 800 .8rem var(--cond); letter-spacing: .06em; touch-action: none; pointer-events: auto; }
.touch button.on { background: rgba(255,212,0,.55); border-color: var(--hi); } .t-g { grid-column: 2; grid-row: 1 / span 2; height: 150px !important; border-color: rgba(88,214,141,.8) !important; } .t-b { grid-column: 1; grid-row: 2; border-color: rgba(255,90,79,.8) !important; } .t-s { grid-column: 1; grid-row: 1; font-size: .7rem !important; }

@media (max-width: 600px) {
  .view { padding: 12px; gap: 12px; } .panel { padding: 14px; } .hero { grid-template-columns: 1fr; padding: 18px; } .hero-r { display: none; }
  .g-top { grid-template-columns: 1fr; } .ev { grid-template-columns: 1fr auto; } .ev-res { grid-column: 1; grid-row: 2; } .ev .btn, .ev .lock { grid-row: 1 / span 2; grid-column: 2; }
  .mep { grid-template-columns: 1fr; gap: 2px; } .mep b { text-align: left; } .top-title { display: none; } .topbar { justify-content: space-between; }
  .hud-statcard, .hud-surfcard, .hud-mepcard, .hud-gcard, .hud-keys-bar, .hud-wheel-cluster { display: none; }
  .hud-lb { width: 145px; } .hud-mapcol { width: 135px; } .hud-right-bot { width: 190px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.stats-p .pills { margin-top: 6px; } table.stat-t { margin-top: 12px; } table.stat-t td:not(:first-child), table.stat-t th:not(:first-child) { text-align: right; }

/* online */
.roomcode{font:900 clamp(2.6rem,9vw,4.4rem)/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.28em;color:#ffd23f;margin:.15em 0 .3em;text-shadow:0 3px 0 rgba(0,0,0,.45)}
.on-in{background:#0e1318;border:1px solid #2c3742;border-radius:10px;color:#f1f4f6;padding:.6em .8em;font:inherit;min-width:0}
.on-in.code{width:6.2em;text-transform:uppercase;letter-spacing:.3em;font-weight:800;text-align:center}
.on-in.link{flex:1;font-size:.85rem;color:#9fb0bf}
.dot{display:inline-block;width:.8em;height:.8em;border-radius:50%;margin-right:.5em;border:1px solid rgba(255,255,255,.35);vertical-align:-.05em}

.stats.ctl th{text-align:left;font-size:.72rem;color:#9fb0bf;padding:4px 6px}.stats.ctl td{padding:4px 6px}.cap{color:#ffd23f}

/* mästerskap */
.heats{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:10px 0}
.heat{background:#10161c;border:1px solid #26313b;border-radius:12px;padding:10px}.heat.mine{border-color:#ffd23f;box-shadow:0 0 0 1px #ffd23f55}.heat.done{opacity:.8}
.heat .hh{display:flex;justify-content:space-between;font-size:.85rem;margin-bottom:4px}.heat .hh span{color:#8fa1b3}
.heat ol{margin:0 0 6px 18px;padding:0;font-size:.82rem;line-height:1.45}.heat li.me{color:#ffd23f;font-weight:800}.heat i.flag{color:#ff6a3d;font-style:normal;font-size:.7rem}
.tblwrap{overflow-x:auto}.res.full{min-width:760px;font-size:.82rem}.res.full td,.res.full th{padding:5px 6px;white-space:nowrap}
.res td.purple{color:#c084fc;font-weight:800}
details{margin:6px 0}details summary{cursor:pointer;font-weight:700;padding:4px 0}

/* garage-showroom */
.panel.showroom{position:relative;padding:0;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#16303f 0%,#0b0f14 70%);min-height:260px}
#showroom{width:100%;height:clamp(240px,38vw,420px)}#showroom canvas{width:100%;height:100%;display:block}
.sr-label{position:absolute;left:18px;bottom:14px;display:flex;flex-direction:column;gap:2px;text-shadow:0 2px 8px #000}
.sr-label b{font-size:1.25rem;letter-spacing:.02em}.sr-label span{color:#8fd8ff;font-size:.85rem}

.hud-watch { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 31; display: flex; align-items: center; gap: 8px; background: rgba(12,15,20,.86); border: 1px solid var(--hi); border-radius: 12px; padding: 6px 8px; pointer-events: auto; }
.hud-watch[hidden] { display: none; }
.hud-watch span { font: 700 .7rem var(--mono); color: #cbd5e1; text-align: center; min-width: 9rem; line-height: 1.2; }
.hud-watch b { display: block; font: 900 1.15rem var(--cond); color: #fff; letter-spacing: .04em; }
.hud-watch button { font: 900 1.3rem var(--cond); width: 52px; height: 46px; border-radius: 10px; border: 0; background: var(--hi); color: #111; cursor: pointer; touch-action: manipulation; }

.invite-box { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; background: rgba(14,18,24,.96); border: 2px solid var(--hi); border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100vw - 24px); }
.invite-box b { display: block; font: 900 1.05rem var(--cond); color: #fff; }
.invite-box small { color: #cbd5e1; font-family: var(--mono); font-size: .72rem; }
.inv-list { display: grid; gap: 6px; }
.inv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: rgba(255,255,255,.04); border-radius: 10px; }
.inv-row b { display: block; } .inv-row small { color: var(--dim, #94a3b8); font-size: .75rem; }

.xpbar { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin: 4px 0 8px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--hi), #ffef9a); border-radius: 6px; }
.swatch.locked { opacity: .45; font-size: .8rem; display: grid; place-items: center; cursor: not-allowed; }

.hud-off { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%); z-index: 32; text-align: center; font: 900 6.5rem/1 var(--cond); color: #ffd23f; text-shadow: 0 4px 18px rgba(0,0,0,.7), 0 0 2px #000; pointer-events: none; }
.hud-off[hidden] { display: none; }
.hud-off small { display: block; font: 800 .95rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-top: 4px; }
.hud-off.pop { animation: offpop .35s ease-out; }
@keyframes offpop { from { transform: translate(-50%, -50%) scale(1.5); opacity: .3; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.chat { max-height: 220px; overflow-y: auto; display: grid; gap: 4px; margin-bottom: 8px; }
.chat .cl { padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: .9rem; } .chat .cl.me { background: rgba(255,210,63,.12); }
.chat .cl b { color: var(--hi); margin-right: 4px; }

.card.lesson { text-align: left; cursor: pointer; }
.formler td.f { font: 600 1rem var(--mono); color: #ffe9a6; white-space: normal; }
.formler td { vertical-align: top; padding: 8px 10px; }
ol.steps li { margin: 6px 0; line-height: 1.5; }
.formelblad h2 { margin-top: 18px; }
@media print { body { background: #fff !important; color: #000 !important; } .top, .noprint, nav, .toast { display: none !important; } .panel { background: #fff !important; color: #000 !important; border: 0 !important; box-shadow: none !important; } .formler td.f { color: #000 !important; } .formler small, .dim { color: #333 !important; } }
@media (max-width: 560px) { .formler tr { display: grid; } .formler td.f { padding-top: 0; } }
.sheet-view{overflow:auto;max-height:78vh;border:1px solid #ffffff22;border-radius:8px;background:#fff;-webkit-overflow-scrolling:touch}
.sheet-view img{display:block;max-width:none;min-width:100%}
.chip.ref{margin-top:4px;font-size:.75em;padding:2px 8px}
/* Motorskola: uppgift till vänster, formelpappret till höger */
.view.v-skola:has(.split) { max-width: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split-l { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split-r { position: sticky; top: 66px; display: flex; flex-direction: column; gap: 8px; height: calc(100vh - 80px); min-width: 0; }
.side-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sheet-view.side { flex: 1; max-height: none; }
@media (max-width: 760px) { /* mobil: uppgiften överst, pappret som nedre halva av skärmen */
  .split { display: block; } .split-l { padding-bottom: 50vh; }
  .split-r { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 48vh; z-index: 40; background: #0e1218; border-top: 2px solid var(--hi); padding: 6px; }
}
/* klottruta ovanför svarsfälten */
.scratch { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.scratch code { font-family: var(--mono); color: var(--hi); }
.scr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px dashed #ffffff40; border-radius: 10px; background: #0b0f14; overflow: hidden; }
.scr-in, .scr-out { font: 15px/1.6 var(--mono); padding: 10px 12px; margin: 0; }
.scr-in { width: 100%; min-height: 6.6em; resize: vertical; background: transparent; color: #e8ece9; border: 0; outline: none; overflow-x: auto; }
.scr-out { color: var(--hi); text-align: right; min-width: 9ch; border-left: 1px solid #ffffff1a; background: #ffffff06; white-space: pre; overflow: hidden; }
/* säsongstabell med placering per race */
.se-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.se-tab th small { display: block; font-size: .65rem; opacity: .7; font-weight: 400; white-space: nowrap; }
.se-tab td.pl { text-align: center; font-family: var(--mono); }
.se-tab td.p1 { color: #ffd23f; font-weight: 700; } .se-tab td.p2 { color: #d9dee3; font-weight: 700; } .se-tab td.p3 { color: #e0a060; font-weight: 700; }
.se-tab th:first-child, .se-tab td:first-child { width: 2.5em; } .se-tab td:nth-child(2) { width: auto; white-space: nowrap; }
/* servicepaus */
.service .svbar { position: relative; height: 26px; border-radius: 8px; background: #ffffff10; overflow: hidden; margin: 6px 0 10px; }
.service .svbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffd23f, #ff9a3d); transition: width .3s; }
.service .svbar span { position: relative; display: block; text-align: center; line-height: 26px; font: 600 13px var(--mono); color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.svjobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.svjob { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid #ffffff22; background: #ffffff08; color: inherit; cursor: pointer; }
.svjob:hover:not(:disabled) { border-color: var(--hi); } .svjob:disabled { opacity: .45; cursor: default; }
.svjob small { opacity: .75; } .svjob span { font: 12px var(--mono); color: var(--hi); } .svjob.must { border-color: #ff6a3d; }
.service.closed { opacity: .75; } #svClock { font-family: var(--mono); color: var(--hi); }
/* fotoläge i repriset */
.photo-btn { position: fixed; right: 14px; bottom: 90px; z-index: 30; pointer-events: auto; padding: 8px 14px; border-radius: 999px; border: 1px solid #ffffff40; background: #0c1014cc; color: #fff; font: 700 12px var(--mono); letter-spacing: .06em; cursor: pointer; }
.photo-on #hHudRoot *, .photo-on .touch, .photo-on .touch * { visibility: hidden !important; }
.photo-on #hHudRoot .photo-ui, .photo-on #hHudRoot .photo-ui * { visibility: visible !important; }
.photo-clean #hHudRoot .photo-ui, .photo-clean #hHudRoot .photo-ui * { visibility: hidden !important; }
.photo-on canvas { cursor: grab; touch-action: none; }
.photo-ui { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; pointer-events: auto; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #0c1014d9; border: 1px solid #ffffff2a; color: #fff; max-width: calc(100vw - 20px); }
.photo-ui .ph-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.photo-ui button { min-width: 40px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid #ffffff30; background: #ffffff12; color: #fff; font: 600 14px system-ui; cursor: pointer; }
.photo-ui .ph-snap { background: var(--hi); color: #111; border-color: var(--hi); font-weight: 800; }
.photo-ui label { display: flex; align-items: center; gap: 6px; font: 12px var(--mono); opacity: .9; } .photo-ui input[type=range] { width: 110px; }
.photo-ui small { opacity: .7; font-size: 11px; text-align: center; }
/* prestationer */
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 12px; }
.ach { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #ffffff1a; background: #ffffff06; opacity: .7; }
.ach.on { opacity: 1; border-color: var(--hi); background: #ffd23f12; }
.ach .ai { font-size: 26px; text-align: center; } .ach b { display: block; } .ach small { display: block; opacity: .8; } .ach small.ok { color: #5ce080; opacity: 1; }
.ach .rw { font: 600 12px var(--mono); color: var(--hi); } .xpbar.s { height: 5px; margin: 5px 0 2px; }
/* introduktion */
.intro-box { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 35; width: min(560px, calc(100vw - 24px)); padding: 12px 16px 14px; border-radius: 14px; background: #0c1014e6; border: 2px solid var(--hi); color: #fff; text-align: center; overflow: hidden; pointer-events: none; }
.intro-box span { display: block; font: 700 11px var(--mono); letter-spacing: .12em; color: var(--hi); }
.intro-box b { display: block; font-size: 22px; margin: 2px 0 4px; } .intro-box p { margin: 0; font-size: 15px; line-height: 1.4; }
.intro-box kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 5px; border: 1px solid #ffffff50; background: #ffffff18; font: 600 13px var(--mono); }
.intro-box i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--hi); transition: width .4s; }
.introban { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-color: var(--hi); }
.introban h2 { margin: 2px 0 4px; }
.toast.achtoast { bottom: auto; top: 70px; border-radius: 16px; text-align: center; white-space: nowrap; max-width: calc(100vw - 24px); background: linear-gradient(90deg, #ffd23f, #ffb02e); display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 8px 30px #0008; }
.toast.achtoast span { font: 700 10px var(--mono); letter-spacing: .14em; opacity: .75; }
.photo-ui[hidden], .photo-btn[hidden], .intro-box[hidden] { display: none !important; }
.rematch { border-color: var(--hi); }
/* stadskörning */
.city { position: fixed; inset: 0; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; }
.city-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.city .c-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.c-money, .c-task, .c-speed { background: #0c1014d9; border: 1px solid #ffffff26; border-radius: 12px; color: #fff; padding: 8px 12px; }
.c-money span, .c-task span { display: block; font: 700 10px var(--mono); letter-spacing: .12em; opacity: .75; } .c-money b { font: 800 22px var(--mono); color: var(--hi); } .c-money small, .c-task small { display: block; font-size: 12px; opacity: .8; }
.c-task { text-align: center; border-color: var(--hi); min-width: 180px; } .c-task b { display: block; font: 800 26px var(--mono); }
.c-btns { display: flex; gap: 6px; pointer-events: auto; } .c-btns button { padding: 7px 10px; border-radius: 9px; border: 1px solid #ffffff30; background: #0c1014cc; color: #fff; font: 700 11px var(--mono); cursor: pointer; }
.c-msg { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 12px; background: #0c1014e0; color: #fff; font: 700 17px system-ui; text-align: center; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 90vw; }
.c-msg.show { opacity: 1; } .c-msg.go { border: 2px solid #5ce080; } .c-msg.warn { border: 2px solid #ff6a3d; } .c-msg b { color: var(--hi); font-size: 24px; }
.c-arrow { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); font-size: 46px; color: var(--hi); text-shadow: 0 0 8px #000; pointer-events: none; transform-origin: 50% 50%; }
.c-map { position: absolute; right: 10px; bottom: 10px; width: 180px; height: 180px; border-radius: 12px; border: 2px solid #ffffff40; background: #111; }
.c-speed { position: absolute; left: 10px; bottom: 10px; display: grid; grid-template-columns: auto auto; gap: 0 8px; align-items: baseline; }
.c-speed b { font: 800 34px var(--mono); } .c-speed span { font: 12px var(--mono); opacity: .7; } .c-speed small { font: 700 14px var(--mono); color: var(--hi); } .c-speed i { font: 11px var(--mono); opacity: .75; font-style: normal; }
.c-load { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 20px system-ui; background: #0c1014; }
.city .touch { position: absolute; left: 0; right: 0; bottom: 0; }
@media (pointer: coarse) { .c-map { width: 120px; height: 120px; top: 70px; bottom: auto; } .c-speed { bottom: 172px; } }
