/* HIGH-DEFINITION ARCADE PIXEL-ART UI — BUS RUSH 2.5D */
:root {
  --px-green: #007a52;
  --px-red: #e52538;
  --px-gold: #ffca28;
  --px-bg: #0d121c;
  --px-panel: #151d2e;
  --px-panel-hi: #222e47;
  --px-border: #e6ecf5;
  --px-shadow: #06090f;
  --text-main: #f4f7fc;
  --text-muted: #9eb0c9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--px-bg);
  color: var(--text-main);
  font-family: "DotGothic16", "Press Start 2P", monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
  text-rendering: optimizeSpeed;
  touch-action: none;
  image-rendering: pixelated;
  display: flex;
  flex-direction: column;
}

#app {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* Official bottom adbar (same pattern as other games; /kit/adbar.js collapses when empty) */
#adbar {
  flex: none;
  position: relative;
  width: 100%;
  height: calc(50px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #060910;
  border-top: 2px solid #222e47;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 50;
}

@media (min-width: 768px) {
  #adbar {
    height: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}

#adbar::before {
  content: "AD";
  position: absolute;
  top: 2px;
  left: 6px;
  font-size: 9px;
  color: #6b7d99;
  pointer-events: none;
}

#adbar.adbar-empty {
  display: none !important;
  height: 0 !important;
  border: none !important;
}

button, input, select, table, th, td {
  font-family: "DotGothic16", "Press Start 2P", monospace;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hidden {
  display: none !important;
}

.mono {
  font-variant-numeric: tabular-nums;
}

/* ==================== PIXEL PANEL & BUTTON HELPERS ==================== */
.px-box,
.hud-card,
.course-card,
.modal-card,
.dash-cluster,
.controls-hint,
.ad-banner-slot {
  border-radius: 0 !important;
  border: 3px solid #2e3d59;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.14),
    inset -2px -2px 0 rgba(0, 0, 0, 0.55),
    4px 4px 0 #05070c;
}

/* ==================== MENU OVERLAY ==================== */
.overlay-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  /* Pixel-dithered dark arcade backdrop */
  background-color: #0b1019;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  padding: env(safe-area-inset-top, 12px) 14px env(safe-area-inset-bottom, 14px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  touch-action: pan-y;
}

.menu-container {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 16px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-switcher {
  display: inline-flex;
  background: var(--px-panel);
  border: 3px solid #354769;
  padding: 2px;
  gap: 2px;
  box-shadow: 3px 3px 0 #05070c;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  padding: 5px 11px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--px-gold);
  color: #111;
  box-shadow: inset -2px -2px 0 #b88a00, inset 2px 2px 0 #fff2a6;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-pill {
  background: var(--px-panel);
  border: 3px solid #3c5178;
  color: var(--text-main);
  font-family: inherit;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.12), 3px 3px 0 #05070c;
}

.icon-pill:hover {
  background: var(--px-panel-hi);
}

.icon-pill:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #05070c;
}

.hero-header {
  text-align: center;
  padding: 0;
}

.hero-art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  max-height: 270px;
  overflow: hidden;
  border: 3px solid var(--px-gold);
  background: #0a0f18;
  box-shadow:
    inset 0 0 0 2px #000,
    5px 5px 0 #05070c;
}

.hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-art-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 10px 10px;
  background: linear-gradient(
    180deg,
    rgba(6, 9, 16, 0.08) 0%,
    rgba(6, 9, 16, 0.35) 48%,
    rgba(6, 9, 16, 0.88) 100%
  );
}

@media (max-width: 640px) {
  .hero-art-frame {
    aspect-ratio: 16 / 9;
    max-height: 210px;
  }
  .hero-art-overlay {
    padding: 8px 8px 8px;
  }
  .game-tagline {
    font-size: 10px;
  }
}

.bd-ribbon {
  width: 140px;
  height: 6px;
  margin: 0 auto 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--px-green) 0 46px,
    var(--px-red) 46px 92px,
    var(--px-gold) 92px 140px
  );
  box-shadow: 2px 2px 0 #000;
}

.game-title {
  font-family: "Press Start 2P", "DotGothic16", monospace;
  font-size: clamp(22px, 5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--px-gold);
  text-shadow:
    3px 3px 0 #b71c1c,
    6px 6px 0 #000;
}

.game-subtitle {
  margin-top: 6px;
  font-size: clamp(13px, 2.4vw, 17px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 #000;
}

.game-tagline {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.section-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--px-gold);
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 #000;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.course-card {
  background: var(--px-panel);
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.course-card:hover {
  background: var(--px-panel-hi);
}

.course-card.selected {
  border-color: var(--px-gold);
  background: #222a3d;
  box-shadow:
    inset 2px 2px 0 rgba(255, 202, 40, 0.35),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 #000;
}

.course-sky-bar {
  height: 10px;
  border: 2px solid #090c12;
  margin-bottom: 2px;
}

.course-name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 1px 1px 0 #000;
}

.course-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  color: #dbe6f5;
  padding-top: 6px;
  border-top: 2px solid #28354f;
}

.course-diff {
  color: var(--px-gold);
}

.start-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.btn-primary-big {
  background: var(--px-red);
  border: 3px solid #ffca28;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 13px 32px;
  cursor: pointer;
  width: 100%;
  max-width: 360px;
  text-shadow: 2px 2px 0 #5c000b;
  box-shadow:
    inset 3px 3px 0 #ff6f61,
    inset -3px -3px 0 #8e0014,
    5px 5px 0 #000;
}

.btn-primary-big:hover {
  background: #ff3b4f;
}

.btn-primary-big:active {
  transform: translate(3px, 3px);
  box-shadow:
    inset 3px 3px 0 #8e0014,
    2px 2px 0 #000;
}

.btn-secondary {
  background: #232f47;
  border: 3px solid #4d648f;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.12), 4px 4px 0 #000;
}

.btn-secondary:active {
  transform: translate(2px, 2px);
}

.btn-accent {
  background: var(--px-gold);
  color: #111;
  border: 3px solid #fff3b0;
  font-family: inherit;
  font-weight: 900;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset -2px -2px 0 #b88a00, 3px 3px 0 #000;
}

.controls-hint {
  background: var(--px-panel);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.version-tag {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 202, 40, 0.72);
  letter-spacing: 0.08em;
}

/* ==================== AD BANNER SLOT ==================== */
.ad-banner-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a0f18;
  border-style: dashed;
  border-color: #3d4f73;
  padding: 7px 10px;
  font-size: 11px;
  color: #dce6f2;
}

.ad-badge {
  background: var(--px-gold);
  color: #111;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  flex-shrink: 0;
}

/* ==================== IN-GAME PIXEL HUD ==================== */
.hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(8px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
}

.hud-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.hud-card {
  background: rgba(14, 20, 32, 0.90);
  padding: 5px 9px;
}

.hud-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.hud-value {
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

.hud-progress-box {
  flex: 1;
  min-width: 110px;
}

.hud-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.hud-dist-val {
  font-size: 12px;
  font-weight: 900;
  color: var(--px-gold);
}

/* Pixel-segmented progress bar */
.progress-bar {
  height: 10px;
  background: #080b12;
  border: 2px solid #354769;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #00e676 0 6px,
    #00b25a 6px 8px
  );
}

.hud-glass-box {
  min-width: 92px;
  text-align: center;
}

.glass-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 3px 0 2px;
}

.g-dot {
  width: 11px;
  height: 11px;
  background: #29b6f6;
  border: 2px solid #09131c;
  box-shadow: inset 2px 2px 0 #b3e5fc;
}

.g-dot.cracked {
  background: #ff5252;
  box-shadow: inset 2px 2px 0 #ff8a80;
}

.g-dot.broken {
  background: #1c2433;
  box-shadow: none;
}

.hud-mini-status {
  font-size: 9px;
  font-weight: 900;
  color: #b3e5fc;
}

.hud-pause-btn {
  pointer-events: auto;
  background: rgba(14, 20, 32, 0.92);
  border: 3px solid #3c5178;
  color: #fff;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 #000;
}

.hud-pause-btn:active {
  transform: translate(2px, 2px);
}

/* Center Countdown & Callout */
.hud-countdown {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Press Start 2P", "DotGothic16", monospace;
  font-size: clamp(46px, 11vw, 90px);
  font-weight: 400;
  color: var(--px-gold);
  text-shadow: 4px 4px 0 #b71c1c, 8px 8px 0 #000;
  animation: popIn 0.25s steps(4);
}

.hud-callout {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 #000;
  padding: 5px 14px;
  background: #0b101b;
  border: 3px solid currentColor;
  box-shadow: 4px 4px 0 #000;
  animation: popIn 0.16s steps(3);
}

@keyframes popIn {
  from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Bottom Pixel Dashboard + Arcade Touch Controls */
.hud-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.dash-cluster {
  background: rgba(14, 20, 32, 0.92);
  padding: 6px 10px;
  min-width: 162px;
  text-align: center;
}

.speed-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.speed-num {
  font-family: "Press Start 2P", "DotGothic16", monospace;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

.speed-unit {
  font-size: 11px;
  font-weight: 900;
  color: var(--px-gold);
}

.speed-bar-wrap {
  position: relative;
  height: 11px;
  background: #080b12;
  border: 2px solid #354769;
  margin: 5px 0;
  overflow: hidden;
}

.speed-bar-fill {
  height: 100%;
  width: 50%;
  background: repeating-linear-gradient(
    90deg,
    #ffca28 0 6px,
    #ff6f00 6px 8px
  );
}

.min-speed-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: 3px;
  background: #ff1744;
  z-index: 2;
}

.dash-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
}

.min-lock-badge strong {
  color: #ff8a80;
}

.horn-bar-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.horn-track {
  width: 42px;
  height: 7px;
  background: #080b12;
  border: 1px solid #4d648f;
  display: inline-block;
}

.horn-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: #ffeb3b;
}

/* Chunky Arcade Pixel Touch Buttons */
.touch-group {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.touch-btn {
  border-radius: 0;
  border: 3px solid #dce6f5;
  background: rgba(21, 29, 46, 0.88);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.22),
    inset -3px -3px 0 rgba(0, 0, 0, 0.55),
    4px 4px 0 #000;
}

.touch-btn.active,
.touch-btn:active {
  transform: translate(2px, 2px);
  background: #ffca28;
  color: #111;
  text-shadow: none;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.35), 2px 2px 0 #000;
}

.steer-btn {
  width: clamp(54px, 13vw, 72px);
  height: clamp(54px, 13vw, 72px);
  font-size: 22px;
}

.horn-btn {
  width: clamp(60px, 14vw, 76px);
  height: clamp(60px, 14vw, 76px);
  background: #d32f2f;
  border-color: var(--px-gold);
  font-size: 12px;
  line-height: 1.15;
  box-shadow:
    inset 3px 3px 0 #ff6659,
    inset -3px -3px 0 #7f0000,
    4px 4px 0 #000;
}

.pedal-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.boost-btn,
.brake-btn {
  width: clamp(52px, 12vw, 66px);
  height: clamp(32px, 7vw, 40px);
  font-size: 11px;
}

.boost-btn {
  background: #007a52;
  border-color: #69f0ae;
}

.brake-btn {
  background: #8e1c1c;
  border-color: #ff8a80;
}

/* ==================== MODALS ==================== */
.modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(5, 8, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  touch-action: pan-y;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--px-panel);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-card.compact {
  max-width: 380px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: #26334d;
  border: 2px solid #5a72a1;
  color: #fff;
  width: 32px;
  height: 32px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
}

.modal-btn-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Result Modal */
.result-title {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--px-gold);
  text-shadow: 2px 2px 0 #000;
}

.result-title.crash {
  color: #ff5252;
}

.result-sub {
  text-align: center;
  font-size: 13px;
  color: #ff8a80;
  margin-top: -6px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-box {
  background: #0d1320;
  border: 2px solid #2b3a57;
  padding: 8px 10px;
  text-align: center;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.stat-val {
  font-size: 17px;
  font-weight: 900;
}

.rank-register-box {
  background: #1c2233;
  border: 2px solid var(--px-gold);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-est-line {
  font-size: 13px;
  text-align: center;
}

.rank-est-line strong {
  color: var(--px-gold);
  font-size: 17px;
}

.rank-input-row {
  display: flex;
  gap: 8px;
}

.rank-input-row input {
  flex: 1;
  background: #080c14;
  border: 2px solid #4d648f;
  padding: 8px 10px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  user-select: text;
  -webkit-user-select: text;
}

.btn-ad-continue {
  background: #007a52;
  border: 3px solid #69f0ae;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
}

.share-row {
  display: flex;
  gap: 8px;
}

.btn-share {
  flex: 1;
  background: #23304a;
  border: 2px solid #536b99;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  padding: 9px 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.btn-x {
  background: #05070c;
  border-color: #7888a6;
}

.result-actions {
  display: flex;
  gap: 8px;
}

.result-actions .btn-primary-big {
  flex: 1.3;
  padding: 11px 14px;
  font-size: 14px;
}

.result-actions .btn-secondary {
  flex: 1;
}

/* Ranking Table */
.ranking-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.rank-tab {
  background: #0d1320;
  border: 2px solid #354769;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.rank-tab.active {
  background: var(--px-gold);
  color: #111;
  border-color: #fff3b0;
}

.ranking-table-wrap {
  max-height: 46vh;
  overflow-y: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ranking-table th,
.ranking-table td {
  padding: 7px 6px;
  border-bottom: 2px solid #222e47;
  text-align: left;
}

.ranking-table th {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.ranking-table tr.is-player td {
  color: var(--px-gold);
  font-weight: 900;
}

/* Settings */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.setting-title {
  font-size: 14px;
  font-weight: 900;
}

.setting-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-btn {
  min-width: 60px;
  padding: 7px 12px;
  border: 2px solid #4d648f;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  background: #0d1320;
  color: #8a9bb8;
}

.toggle-btn.on {
  background: #00c853;
  border-color: #b9f6ca;
  color: #062111;
}

/* Rewarded Ad Simulation Modal */
.ad-sim-card {
  text-align: center;
}

.ad-sim-badge {
  display: inline-block;
  margin: 0 auto;
  background: var(--px-gold);
  color: #111;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 10px;
}

.ad-sim-copy {
  background: #0b101b;
  border: 2px solid #354769;
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 900;
}

.ad-progress-bar {
  height: 12px;
  background: #080b12;
  border: 2px solid #354769;
  overflow: hidden;
}

.ad-progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, #ffca28 0 6px, #00e676 6px 12px);
}

.ad-countdown {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .hud-bottom { gap: 5px; }
  .dash-cluster { min-width: 122px; padding: 5px 7px; }
  .dash-meta { flex-direction: column; gap: 2px; }
  .hud-glass-box { min-width: 72px; padding: 5px; }
  .g-dot { width: 9px; height: 9px; }
}

/* ==================== リザルトのランキング上位 ==================== */
.result-top { background: #141a28; border: 2px solid #2e3d59; padding: 8px 10px; }
.result-top-head { font-size: 13px; color: var(--px-gold); text-align: center; margin-bottom: 4px; }
.result-top-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.result-top-list li { display: flex; gap: 8px; padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.result-top-list li:last-child { border-bottom: none; }
.result-top-list .no { width: 2.2em; color: #8fa6bf; }
.result-top-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-top-list .tm { font-variant-numeric: tabular-nums; }
.result-top-list li.me { background: rgba(255, 210, 74, 0.16); color: var(--px-gold); }
.result-top-list li.empty { justify-content: center; color: #8fa6bf; }
