/* Arcade Deluxe: tactile bevels with restrained, fine pixel-cut details. */
#race{
  --hud-frame:url('assets/hud-frame-gold-v432.svg');
  --hud-steel:url('assets/hud-frame-steel-v432.svg');
  --hud-action:url('assets/hud-frame-action-v432.svg');
  --hud-font:system-ui,Arial,sans-serif;
}
#race .pos,#race .hud-coins,#race .best-lap-hud,#race .hud-speed,#race #pause-btn,#race #time,#race .hud-lap,#race .hud-center .hud-sector,
#race #race-mission,#race #drive-feedback,#race #battle-status,#race #ghost-status,#race #pass-toast{
  border-image-slice:16 fill;border-image-width:calc(12 * var(--hu));filter:drop-shadow(0px calc(2 * var(--hu)) calc(1 * var(--hu)) #04132c65);
}
#race .pos,#race .hud-speed{position:relative;gap:calc(2 * var(--hu))}
#race .pos strong,#race .hud-speed strong,#race .hud-lap strong,#race .hud-coins b{
  font-weight:1000;letter-spacing:-.07em;color:#ffe35b;-webkit-text-stroke:calc(.55 * var(--hu)) #ffe35b;
  text-shadow:0 calc(1.6 * var(--hu)) #bb781c,calc(1.4 * var(--hu)) calc(3 * var(--hu)) #061329;
}
#race .pos strong{font-size:calc(39 * var(--hu))}
#race .hud-speed strong{font-size:calc(32 * var(--hu))}
#race .pos span,#race .hud-speed small{letter-spacing:.055em;font-weight:900;text-shadow:1px 1px #061329;}
#race .pos:before,#race .hud-speed:before{
  content:'';position:absolute;width:calc(16 * var(--hu));height:calc(12 * var(--hu));top:calc(8 * var(--hu));left:calc(7 * var(--hu));
  background:repeating-conic-gradient(#f4c64d 0 25%,transparent 0 50%) 0 0/calc(6 * var(--hu)) calc(6 * var(--hu));opacity:.48;transform:skewX(-9deg);pointer-events:none;
}
#race .hud-speed:before{width:calc(13 * var(--hu));height:calc(6 * var(--hu));left:calc(7 * var(--hu));background:repeating-linear-gradient(120deg,#f7cd56 0 2px,transparent 2px 5px)}
#race .hud-center .race-brand span,#race .hud-center .race-brand b{
  font-weight:1000;letter-spacing:-.065em;-webkit-text-stroke:calc(.5 * var(--hu)) currentColor;
}
#race .hud-center .race-brand b{color:#ffdf36;text-shadow:0 2px #e1a22b,2px 3px #a64119,3px 5px #08152d,-1px -1px #08152d,1px -1px #08152d;}
#race .hud-center .race-brand span{text-shadow:1px 2px #06172d,-1px -1px #06172d}
#race .hud-center .hud-sector{padding-inline-end:calc(10 * var(--hu))}
#race #sector-progress{background:linear-gradient(#fff2aa 0 10%,#ffdc4c 10% 79%,#e8a728 79% 100%);font-weight:1000}
#race .hud-lap strong{font-size:calc(20 * var(--hu));letter-spacing:-.03em}
#race .race-progress{bottom:calc(6.5 * var(--hu));height:calc(2 * var(--hu));background:#34526c}
#race #time{font-weight:1000;letter-spacing:-.045em;text-shadow:1px 2px #06152c;-webkit-text-stroke:.2px currentColor}
#race #race-mini-map{border-image-slice:16;border-image-width:calc(12 * var(--hu));filter:drop-shadow(0px 2px 1px #04132c70)}
#race .control,#race #item-btn{border-image-slice:16 fill;border-image-width:calc(15 * var(--hu));filter:drop-shadow(0 2px 1px #07142c88)}
#race .hud-control-icon{filter:drop-shadow(1px 2px #07162c55)}
#race .drift-meter,#race .boost-track{border-image-slice:16 fill;border-image-width:calc(9 * var(--hu))}
#race .drift-meter:after,#race .boost-track:after{background:repeating-linear-gradient(103deg,transparent 0 calc(100%/8 - 1.5px),#071a38 calc(100%/8 - 1.5px) calc(100%/8))}
#race .control.steer.pressed,#race .control.steer:active,#race #drift-btn.pressed,#race #boost-btn.pressed{filter:brightness(.93)}
#race #item-btn.equipped:not(.rolling),#race #item-btn.special-ready{filter:drop-shadow(0 1px 2px #f5ce5066)}
@media(orientation:portrait){
  #race .pos strong{font-size:23px;letter-spacing:-.06em}
  #race .hud-speed strong{font-size:20px}
  #race .pos:before,#race .hud-speed:before{display:none}
  #race .hud-lap strong{font-size:13px}
  #race .race-progress{bottom:4px;height:1.5px}
  #race .hud-center .hud-sector{padding-inline-end:5px}
  #race .control.steer{border-image:none;filter:none}
  #race .drift-meter,#race .boost-track{border-image-width:4px}
}
