/* Velocrest — race HUD and menus */
.vc-hud { position: absolute; inset: 0; font-family: "Segoe UI", "Arial Narrow", system-ui, sans-serif; color: #f4f4f0; letter-spacing: .02em; }
.vc-hud b { font-weight: 800; }
.vc-info { position: absolute; left: 16px; top: 58px; display: grid; gap: 8px; }
.vc-top { display: flex; gap: 8px; }
.vc-pos, .vc-lap { background: rgba(10, 12, 16, .62); border-left: 3px solid #e8442a; padding: 6px 12px 6px 10px; display: flex; align-items: baseline; gap: 6px; backdrop-filter: blur(6px); }
.vc-pos b, .vc-lap b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.vc-pos span, .vc-lap span { font-size: 16px; opacity: .8; }
.vc-hud .lbl { font-size: 11px !important; opacity: .65 !important; letter-spacing: .12em; margin-right: 2px; align-self: center; }
.vc-times { background: rgba(10, 12, 16, .55); padding: 8px 12px; min-width: 190px; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.vc-cur { font-size: 26px; font-weight: 800; }
.vc-row { font-size: 14px; opacity: .85; display: flex; justify-content: space-between; gap: 12px; }
.vc-row span { opacity: .6; font-size: 11px; letter-spacing: .12em; align-self: center; }
.vc-delta { font-size: 16px; font-weight: 800; min-height: 4px; }
.vc-delta.good { color: #6cf08f; } .vc-delta.bad { color: #ff6b5e; }
.vc-tower { position: absolute; right: 16px; top: 62px; display: grid; gap: 2px; font-size: 13px; min-width: 190px; }
.vc-tower .r { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; background: rgba(10, 12, 16, .55); padding: 3px 8px; align-items: center; }
.vc-tower .r.me { background: rgba(232, 68, 42, .82); }
.vc-tower .r b { text-align: right; } .vc-tower .r i { font-style: normal; opacity: .75; font-variant-numeric: tabular-nums; font-size: 12px; }
.vc-tacho { position: absolute; right: 22px; bottom: 18px; width: 210px; height: 210px; }
.vc-tacho svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55)); }
.vc-tacho .tbg { fill: none; stroke: rgba(10, 12, 16, .6); stroke-width: 14; }
.vc-tacho .tred { fill: none; stroke: rgba(230, 50, 40, .85); stroke-width: 14; }
.vc-tacho .tfill { fill: none; stroke: #f4f4f0; stroke-width: 8; stroke-linecap: butt; }
.vc-tacho .tfill.hot { stroke: #ff5a3c; }
.vc-tacho text { fill: rgba(255, 255, 255, .7); font-size: 11px; text-anchor: middle; font-weight: 700; }
.vc-gear { position: absolute; left: 0; right: 0; top: 62px; text-align: center; font-size: 46px; font-weight: 900; }
.vc-spd { position: absolute; left: 0; right: 0; top: 116px; text-align: center; }
.vc-spd b { font-size: 30px; font-variant-numeric: tabular-nums; display: block; line-height: 1; } .vc-spd span { font-size: 11px; opacity: .7; letter-spacing: .14em; }
.vc-map { position: absolute; left: 16px; bottom: 16px; width: 170px; height: 170px; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .6)); }
.vc-lights { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); display: none; gap: 10px; background: rgba(8, 8, 10, .85); padding: 10px 14px; border-radius: 10px; }
.vc-lights.show { display: flex; }
.vc-lights i { width: 38px; height: 38px; border-radius: 50%; background: #2a0b0b; box-shadow: inset 0 0 8px #000; }
.vc-lights i.on { background: radial-gradient(circle at 40% 35%, #ff8a73, #e8160c 60%, #8a0b05); box-shadow: 0 0 22px #ff2a10; }
.vc-msg { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) scale(.96); font-size: 44px; font-weight: 900; letter-spacing: .06em; opacity: 0; transition: opacity .25s, transform .25s; text-shadow: 0 4px 22px rgba(0, 0, 0, .7); white-space: nowrap; }
.vc-msg.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vc-msg.good { color: #6cf08f; } .vc-msg.warn { color: #ffcf4a; }
.vc-sub { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); background: rgba(10, 12, 16, .6); padding: 6px 14px; font-size: 14px; display: none; }
.vc-sub.show { display: block; }
.vc-hud.touch .vc-tacho { right: auto; left: 50%; transform: translateX(-50%) scale(.72); transform-origin: bottom center; bottom: 4px; }
.vc-hud.touch .vc-map { left: auto; right: 12px; top: 62px; bottom: auto; width: 120px; height: 120px; }
.vc-hud.touch .vc-tower { display: none !important; }
.vc-replay-tag { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); background: #c41a16; padding: 4px 12px; font-weight: 900; letter-spacing: .2em; font-size: 13px; }

/* menu */
.overlay.vc-menu { z-index: 15; background: linear-gradient(90deg, rgba(6, 8, 12, .86) 0, rgba(6, 8, 12, .7) 420px, rgba(6, 8, 12, 0) 760px); backdrop-filter: none; place-items: stretch start; padding: 64px 22px 22px; }
.vc-panel { width: min(100%, 460px); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 86px); overflow: auto; padding-right: 6px; }
.vc-brand { font-size: 40px; font-weight: 900; letter-spacing: .14em; line-height: 1; }
.vc-brand small { display: block; font-size: 12px; letter-spacing: .3em; opacity: .7; margin-top: 6px; font-weight: 700; }
.vc-sec { display: grid; gap: 6px; }
.vc-sec h3 { font-size: 11px; letter-spacing: .22em; opacity: .65; font-weight: 800; }
.vc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-opt { font: inherit; font-weight: 700; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #f4f4f0; padding: 8px 12px; border-radius: 8px; cursor: pointer; text-align: left; }
.vc-opt:hover { background: rgba(255, 255, 255, .14); }
.vc-opt.sel { background: #e8442a; border-color: #e8442a; }
.vc-opt.lock { opacity: .6; }
.vc-opt small { display: block; font-weight: 500; opacity: .75; font-size: 12px; }
.vc-card { display: grid; gap: 4px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 10px 12px; }
.vc-card .t { display: flex; justify-content: space-between; font-weight: 800; }
.vc-stats { display: grid; grid-template-columns: 80px 1fr; gap: 3px 10px; font-size: 12px; align-items: center; }
.vc-stats i { display: block; height: 6px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; } .vc-stats i b { display: block; height: 100%; background: #e8442a; }
.vc-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; }
.vc-swatches button.sel { border-color: #fff; box-shadow: 0 0 0 2px #e8442a; }
.vc-go { margin-top: 6px; font-size: 18px; padding: 14px; background: #e8442a; color: #fff; }
.vc-credits { font-size: 12px; opacity: .7; line-height: 1.5; }
.vc-wallet { font-weight: 800; color: #ffcf4a; }
.vc-invite { font-size: 13px; background: rgba(255, 255, 255, .08); padding: 8px 10px; border-radius: 8px; word-break: break-all; user-select: all; }
.vc-results table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.vc-results td, .vc-results th { padding: 5px 6px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .1); font-variant-numeric: tabular-nums; }
.vc-results tr.me td { color: #ffcf4a; font-weight: 800; }
.vc-results .card { width: min(100%, 560px); }
@media (max-width: 700px) { .overlay.vc-menu { background: rgba(6, 8, 12, .8); place-items: stretch center; } .vc-brand { font-size: 30px; } .vc-tower { display: none; } }
/* small / landscape phone screens: compact HUD */
@media (max-height: 520px) {
  .vc-info { top: 50px; gap: 4px; }
  .vc-pos b, .vc-lap b { font-size: 24px; }
  .vc-times { min-width: 150px; padding: 5px 9px; } .vc-cur { font-size: 19px; } .vc-row { font-size: 12px; }
  .vc-tacho { width: 150px; height: 150px; right: 12px; bottom: 8px; }
  .vc-gear { top: 44px; font-size: 34px; } .vc-spd { top: 82px; } .vc-spd b { font-size: 22px; }
  .vc-map { width: 110px; height: 110px; }
  .vc-tower { display: none; }
  .vc-lights { top: 54px; } .vc-lights i { width: 26px; height: 26px; }
  .vc-msg { font-size: 30px; }
}
/* portrait phones: the centred tacho sat under the DRIFT button and the idle steering stick. Put the tacho above the stick on the
   left and lift DRIFT above the CAM / BRAKE cluster (375 × 812: stick 26–150 px wide at the bottom, tacho 8–134 px at 526–652 px
   high, DRIFT 546–612, CAM 620–686, BRAKE 700–786 on the right). */
@media (max-aspect-ratio: 3/4) {
  .vc-hud.touch .vc-tacho { left: 8px; bottom: 160px; transform: scale(.6); transform-origin: bottom left; }
  body.game .touch-btn.slot1 { right: calc(112px + var(--by-safe-right)); bottom: calc(200px + var(--by-safe-bottom)); }
}
