/* ---- digital chase gauges, gear flash, ice notes (loads after style.css) ---- */
.hud-gauge{filter:none;border-radius:22%;background:rgba(14,12,12,.72);border:1.5px solid rgba(255,138,58,.7);
  box-shadow:0 0 10px rgba(255,138,58,.35),inset 0 0 12px rgba(234,244,255,.08)}
.hud-gauge.right{border-color:rgba(234,244,255,.7);box-shadow:0 0 10px rgba(234,244,255,.3),inset 0 0 12px rgba(255,138,58,.08)}
.hud-gauge .seg{opacity:.16;transition:opacity .08s}
.hud-gauge .seg.on{opacity:1;filter:drop-shadow(0 0 2px currentColor)}
.hud-gauge.red .seg.on{stroke:#ff3b2f}
.hud-gauge.red svg{animation:redPulse .38s ease-in-out infinite alternate}
@keyframes redPulse{from{opacity:1;filter:drop-shadow(0 0 1px #ff3b2f)}to{opacity:.55;filter:drop-shadow(0 0 6px #ff3b2f)}}
.hud-gauge .mid{top:0;bottom:0;transform:none;justify-content:center}
#ui .hud-gauge .num{-webkit-text-stroke:0;text-shadow:0 0 8px rgba(255,138,58,.7);font-family:"Courier New",monospace;font-weight:900;display:inline-block;line-height:1}
#ui .hud-gauge.left .num{font-size:clamp(34px,10.5vh,66px);color:#fff4e6}
#ui .hud-gauge.right .num{font-size:clamp(22px,6.8vh,42px);color:#eaf4ff;text-shadow:0 0 8px rgba(234,244,255,.6)}
.hud-gauge.right .mid{padding-bottom:12%}
.hud-gauge .lab{-webkit-text-stroke:0;color:#ff8a3a;font-size:clamp(12px,2.3vh,15px);letter-spacing:.08em;margin-top:3px;text-shadow:0 1px 2px #000}
.hud-gauge.right .lab{color:#eaf4ff}
.hud-gauge .sbar{position:absolute;left:14%;right:14%;bottom:15%;height:max(4px,.9vh);border-radius:9px;background:rgba(234,244,255,.15);overflow:hidden}
.hud-gauge .sbar b{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);border-radius:9px;transition:transform .12s linear;
  background:linear-gradient(90deg,#eaf4ff,#ff8a3a);box-shadow:0 0 6px #ff8a3a}
@keyframes gearPop{0%{transform:scale(1.35);text-shadow:0 0 14px #ff8a3a,0 0 26px #ff8a3a}100%{transform:scale(1);text-shadow:0 0 6px rgba(255,138,58,.6)}}
#ui .hud-gauge .num.shift,.hud-clock .gear.shift{animation:gearPop .35s ease-out both}
.hud-clock .speed .gear{display:inline-block;font-weight:900;color:#ff8a3a;font-size:max(20px,calc(var(--u)*32));line-height:1;
  padding:1px .38em;margin-left:6px;border-radius:99px;background:rgba(14,12,12,.7);border:1px solid rgba(255,138,58,.7);text-shadow:0 0 6px rgba(255,138,58,.6)}
.ncard.ice{background:linear-gradient(#e6f4ff,#9fc9e6);border-color:#3f6f94;box-shadow:0 3px 0 #27475f}

@media (max-height:340px){
  /* manual shift buttons: a tight column on the right edge, between the pause button and the pedals */
  #ui .shiftpad{flex-direction:column;top:58px;right:10px;gap:6px}
  #ui .shiftpad .sbtn{width:50px;height:44px}
  .ncard:nth-child(3){display:none}
  .ncard{width:58px;min-height:42px;padding:2px 3px}
  .ncard:nth-child(1){width:60px;min-height:44px}
  .ncard svg{width:24px;height:24px}
  .ncard:nth-child(1) svg{width:26px;height:26px}
  .bar{height:5px}
  .ncard{animation-name:cardFade}
  .ncard .sev{font-size:16px}
  .hud-clock{min-width:0;border-width:7px;border-image-width:7px}
  .hud-clock .in>.small{display:none}
  .ncard:nth-child(2){display:none}
  .ncard .mods{line-height:1}
  .hud-top{top:14px}
  .clock{font-size:18px}
  .gar .cards{gap:5px;padding:0 44px}
  .gar .card .btn{max-width:100%;min-width:0;padding-left:4px;padding-right:4px;font-size:13px;white-space:nowrap;overflow:hidden}
  .hud-clock .speed .num{font-size:16px}
  /* tiny frames: the dials give way (km/h and the gear stack under the time in the clock panel, all hugging the
     left edge under the platform's back button); no room for the chase minimap (the cockpit tablet still shows the
     map); the camera button hugs the right edge under the pause button (the drift readout follows the clock) */
  .hud.chase.map-on .hud-map{display:none}
  .hud-clock{left:10px;top:58px}
  #ui .cambtn{right:10px !important;top:62px !important}
  .hud.chase .hud-gauge{display:none}
  .hud.chase .hud-clock .speed{display:flex}
  .hud-clock .speed,.hud.chase .hud-clock .speed{flex-direction:column;align-items:flex-start;gap:2px}
  .hud-clock .speed .small{display:none}
  .hud-clock .speed .gear{font-size:16px;margin-left:0;padding:0 .4em}
  .hud-clock .speed .num{min-width:0}
  .hud-gauge .lab{display:none}
  /* ranked page: the explanation keeps clear of the platform's back button (top-left) */
  .rk-info{padding:0 12px 0 64px;font-size:12px;line-height:1.15}
  .rk-grid{gap:8px 10px}
}
