html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  position: fixed;
  inset: 0;
  background: #000;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hud {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 12px rgba(36,248,255,.7);
}

.top-left {
  top: 18px;
  left: 18px;
}

.top-right {
  top: 18px;
  right: 18px;
  width: 190px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(36,248,255,.22);
  background: rgba(0,0,0,.42);
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(36,248,255,.12);
}

.brand {
  font-weight: 950;
  letter-spacing: .08em;
  font-size: 18px;
}

.subbrand {
  color: #b9ffff;
  font-size: 12px;
  margin-top: 2px;
  opacity: .86;
}

.readout {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  letter-spacing: .06em;
}

#zone {
  color: #ffdc8a;
}

#position {
  color: #ffffff;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  background: rgba(36,248,255,.10);
  font-variant-numeric: tabular-nums;
}

#speed {
  color: #24f8ff;
  font-variant-numeric: tabular-nums;
}

#timer {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border: 1px solid rgba(36,248,255,.28);
  border-radius: 999px;
  background: rgba(36,248,255,.08);
  text-shadow:
    0 0 10px rgba(255,255,255,.78),
    0 0 18px rgba(36,248,255,.45);
}

#weapon {
  color: #ffdc8a;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border: 1px solid rgba(255,220,138,.28);
  border-radius: 999px;
  background: rgba(255,220,138,.08);
}

#weapon.plasmaReady {
  color: #05070b;
  background: linear-gradient(90deg, #24f8ff, #ffffff, #ffdc8a);
  border-color: rgba(255,255,255,.78);
  box-shadow:
    0 0 18px rgba(36,248,255,.46),
    0 0 28px rgba(255,220,138,.28);
  text-shadow: none;
}

#weapon.quadReady,
#weapon.doubleReady {
  color: #05070b;
  background: linear-gradient(90deg, #ffffff, #ffdc8a, #24f8ff, #ffffff);
  border-color: rgba(255,255,255,.94);
  box-shadow:
    0 0 20px rgba(255,255,255,.52),
    0 0 34px rgba(36,248,255,.36),
    0 0 46px rgba(255,220,138,.26);
  text-shadow: none;
}

.mysteryAlert {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 25%;
  transform: translateX(-50%);
  min-width: min(620px, calc(100vw - 32px));
  text-align: center;
  padding: 14px 22px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.26), rgba(36,248,255,.18) 46%, rgba(0,0,0,.74) 100%);
  color: #ffffff;
  font-size: clamp(32px, 7vw, 76px);
  font-weight: 1000;
  letter-spacing: .07em;
  text-shadow:
    0 0 12px #ffffff,
    0 0 28px #24f8ff,
    0 0 54px #ffdc8a;
  box-shadow:
    0 0 28px rgba(255,255,255,.22),
    0 0 54px rgba(36,248,255,.22);
  pointer-events: none;
}

@keyframes mysteryRollSnap {
  0% { transform: translateX(-50%) scale(.94) rotateX(0deg); filter: saturate(1.1); }
  50% { transform: translateX(-50%) scale(1.04) rotateX(180deg); filter: saturate(1.8); }
  100% { transform: translateX(-50%) scale(.96) rotateX(360deg); filter: saturate(1.2); }
}

.mysteryAlert.mysterySpin {
  color: #ffffff;
  border-color: rgba(255,255,255,.92);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.24), rgba(36,248,255,.20) 44%, rgba(0,0,0,.78) 100%);
  animation: mysteryRollSnap .16s linear infinite;
  text-shadow:
    0 0 14px #ffffff,
    0 0 34px #24f8ff,
    0 0 62px #ffdc8a;
}

.mysteryAlert.readyCard,
.mysteryAlert.usedCard {
  top: 23%;
  padding: 14px 22px 16px;
  font-size: clamp(24px, 5.4vw, 60px);
  line-height: 1.0;
}

.mysteryAlert.readyCard {
  border-color: rgba(36,248,255,.92);
  background:
    radial-gradient(circle at 50% 50%, rgba(36,248,255,.22), rgba(0,0,0,.80) 72%);
}

.mysteryAlert.usedCard {
  border-color: rgba(255,220,138,.88);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,220,138,.20), rgba(0,0,0,.82) 72%);
}

.mysteryItemName {
  display: block;
  color: #ffffff;
  font-size: clamp(30px, 6.3vw, 66px);
  font-weight: 1000;
  letter-spacing: .08em;
}

.mysteryStatus {
  display: block;
  margin-top: 4px;
  color: #24f8ff;
  font-size: clamp(18px, 3.3vw, 30px);
  font-weight: 1000;
  letter-spacing: .16em;
}

.usedCard .mysteryStatus {
  color: #ffdc8a;
}

.mysteryHint {
  display: block;
  margin-top: 8px;
  color: #b9ffff;
  font-size: clamp(10px, 1.65vw, 14px);
  font-weight: 950;
  letter-spacing: .12em;
  opacity: .86;
}

.mysteryAlert.megaHealth {
  color: #ffdc8a;
  text-shadow:
    0 0 12px #ffffff,
    0 0 30px #ffdc8a,
    0 0 58px #24f8ff;
}

.mysteryAlert.quadPlasma,
.mysteryAlert.doublePlasma {
  color: #ffffff;
  border-color: rgba(255,220,138,.92);
  text-shadow:
    0 0 14px #ffffff,
    0 0 32px #24f8ff,
    0 0 68px #ffdc8a;
}

.mysteryAlert.powerSurge {
  color: #24f8ff;
  text-shadow:
    0 0 12px #ffffff,
    0 0 32px #24f8ff,
    0 0 58px #ffdc8a;
}

.mysteryAlert.slotFull {
  color: #ffdc8a;
  border-color: rgba(255,220,138,.78);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,220,138,.20), rgba(0,0,0,.78) 70%);
  font-size: clamp(24px, 5.5vw, 54px);
  text-shadow:
    0 0 12px #ffffff,
    0 0 30px #ffdc8a;
}

.mysteryAlert.wildcardPlus {
  color: #ffffff;
  text-shadow:
    0 0 14px #ffffff,
    0 0 34px #24f8ff,
    0 0 62px #ffdc8a;
}

#weapon.itemEmpty {
  color: #b9ffff;
  background: rgba(0,0,0,.30);
  border-color: rgba(185,255,255,.20);
  box-shadow: none;
}

#weapon.surgeReady {
  color: #05070b;
  background: linear-gradient(90deg, #24f8ff, #ffffff, #24f8ff);
  border-color: rgba(255,255,255,.86);
  box-shadow:
    0 0 20px rgba(36,248,255,.50),
    0 0 38px rgba(36,248,255,.24);
  text-shadow: none;
}

.healthPanel {
  margin-top: 9px;
  width: min(330px, calc(100vw - 36px));
  padding: 7px 9px 8px;
  border: 1px solid rgba(36,248,255,.22);
  border-radius: 12px;
  background: rgba(0,0,0,.36);
  box-shadow: 0 0 18px rgba(36,248,255,.10);
}

.healthTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.healthTrack {
  height: 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

#healthFill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #24f8ff, #ffffff, #ffdc8a);
  box-shadow: 0 0 16px rgba(36,248,255,.42);
}

#healthFill.healthOk {
  background: linear-gradient(90deg, #24f8ff, #ffffff, #ffdc8a);
  box-shadow: 0 0 16px rgba(36,248,255,.42);
}

#healthFill.healthWarn {
  background: linear-gradient(90deg, #fff4a8, #ffdc8a, #ff9d2e);
  box-shadow:
    0 0 14px rgba(255,220,138,.56),
    0 0 24px rgba(255,157,46,.22);
}

#healthFill.healthDanger {
  background: linear-gradient(90deg, #ff2e5f, #ff6b2e, #ffffff);
  box-shadow:
    0 0 14px rgba(255,46,95,.70),
    0 0 28px rgba(255,107,46,.34);
}

#healthText.healthOk {
  color: #ffffff;
}

#healthText.healthWarn {
  color: #ffdc8a;
  text-shadow:
    0 0 8px rgba(255,220,138,.72),
    0 0 18px rgba(255,157,46,.32);
}

#healthText.healthDanger {
  color: #ff4e6f;
  text-shadow:
    0 0 8px rgba(255,255,255,.58),
    0 0 20px rgba(255,46,95,.62);
}

.healthSub {
  margin-top: 4px;
  color: #b9ffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.mini-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #ffdc8a;
  margin-bottom: 4px;
}

#map {
  width: 170px;
  height: 190px;
  display: block;
}

.leaderboard {
  margin-top: 7px;
  display: grid;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #e9ffff;
}

.leader-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 6px;
  align-items: center;
  opacity: .86;
}

.leader-row.me {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 12px rgba(255,255,255,.78);
}

.leader-pos {
  color: #ffdc8a;
}

.leader-time {
  color: #b9ffff;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  justify-self: end;
}

.leader-row.finished .leader-time {
  color: #ffdc8a;
}

.leader-row.me .leader-pos {
  color: #24f8ff;
}

.bottom-left {
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

button {
  border: 1px solid rgba(36,248,255,.45);
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 0 18px rgba(36,248,255,.14);
}

button:active {
  transform: translateY(1px);
}

.touch {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none;
  gap: 18px;
  pointer-events: auto;
}

.touch button {
  width: 68px;
  height: 56px;
  border-radius: 18px;
  font-size: 24px;
}

.touch .throttleBtn {
  width: 96px;
  font-size: 18px;
  color: #ffdc8a;
  border-color: rgba(255,184,77,.62);
  box-shadow:
    0 0 18px rgba(255,184,77,.18),
    0 0 24px rgba(36,248,255,.10);
}

.touch .fireBtn {
  width: 92px;
  font-size: 16px;
  color: #24f8ff;
  border-color: rgba(36,248,255,.72);
  box-shadow:
    0 0 18px rgba(36,248,255,.20),
    0 0 24px rgba(255,255,255,.10);
}

.finish {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(255,184,77,.20), rgba(0,0,0,.88) 54%, #000 100%);
}

.finish-menu-card {
  width: min(520px, 88vw);
  padding: 28px 24px 24px;
  border: 1px solid rgba(36,248,255,.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.42));
  box-shadow:
    0 0 28px rgba(36,248,255,.18),
    0 0 70px rgba(255,184,77,.10);
}


.hidden {
  display: none;
}

.finish-title {
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 1000;
  letter-spacing: .08em;
  text-shadow:
    0 0 24px #fff,
    0 0 50px #ffb84d,
    0 0 90px #24f8ff;
}

.finish-copy {
  margin: 8px 0 12px;
  color: #ffdc8a;
  font-weight: 900;
  letter-spacing: .08em;
}

.finish-reward {
  margin: 8px auto 6px;
  font-size: clamp(20px, 3.4vw, 32px);
  color: #ffffff;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow:
    0 0 16px rgba(255,255,255,.45),
    0 0 28px rgba(36,248,255,.30);
}

.finish-reward.positive {
  color: #24f8ff;
  text-shadow:
    0 0 16px rgba(36,248,255,.72),
    0 0 34px rgba(255,255,255,.22);
}

.finish-reward.negative {
  color: #ffdc8a;
  text-shadow:
    0 0 16px rgba(255,184,77,.70),
    0 0 34px rgba(255,255,255,.18);
}

.finish-wallet {
  margin: 0 auto 20px;
  color: #b9ffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.finish-board {
  min-width: min(420px, 86vw);
  margin: 0 auto 22px;
  padding: 12px 16px;
  border: 1px solid rgba(36,248,255,.26);
  border-radius: 16px;
  background: rgba(0,0,0,.38);
  box-shadow: 0 0 24px rgba(36,248,255,.12);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .08em;
  color: #e9ffff;
}

.finish-board .leader-row {
  grid-template-columns: 58px 1fr;
  margin: 4px 0;
  font-size: 15px;
}

.finish-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.finish-btn {
  min-width: 148px;
  border-radius: 14px;
  padding: 12px 16px;
  text-transform: uppercase;
}

.finish-btn.primary {
  color: #05070b;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(36,248,255,.82));
  border-color: rgba(255,255,255,.72);
  box-shadow:
    0 0 20px rgba(255,255,255,.20),
    0 0 34px rgba(36,248,255,.22);
}

.finish-btn.secondary {
  color: #b9ffff;
  border-color: rgba(36,248,255,.52);
  background: rgba(0,0,0,.50);
}

.finish-btn.danger {
  color: #ffdc8a;
  border-color: rgba(255,184,77,.52);
  background: rgba(0,0,0,.50);
}

.loading {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b9ffff;
  background: #000;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.loading.hidden {
  display: none;
}

@media (pointer: coarse) {
  .touch {
    display: flex;
  }

  .bottom-left {
    bottom: 92px;
  }
}

@media (max-width: 680px) {
  .top-right {
    transform: scale(.82);
    transform-origin: top right;
  }

  .brand {
    font-size: 15px;
  }

  .subbrand {
    font-size: 11px;
  }
}

.countdown {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(36,248,255,.10), rgba(0,0,0,.10) 36%, rgba(0,0,0,.35) 100%);
}

.countdown.hidden {
  display: none;
}

#countdownWord {
  font-size: clamp(52px, 10vw, 124px);
  font-weight: 1000;
  letter-spacing: .08em;
  color: #fff;
  text-shadow:
    0 0 12px #ffffff,
    0 0 26px #24f8ff,
    0 0 42px #ffb84d;
}

.countdownSub {
  margin-top: 8px;
  color: #ffdc8a;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,184,77,.8);
}

#fps {
  color: #a8c66c;
  font-variant-numeric: tabular-nums;
}


.damageSub {
  color: #ffdc8a;
}

.damageFeed {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 112px;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 36px));
  display: grid;
  gap: 6px;
  pointer-events: none;
  text-align: center;
}

.damageFeedLine {
  justify-self: center;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid rgba(255,220,138,.48);
  border-radius: 999px;
  background: rgba(0,0,0,.54);
  color: #ffffff;
  font-size: clamp(13px, 2.5vw, 20px);
  font-weight: 1000;
  letter-spacing: .045em;
  text-shadow:
    0 0 12px #ffffff,
    0 0 22px #24f8ff;
  box-shadow:
    0 0 18px rgba(36,248,255,.18),
    0 0 28px rgba(255,220,138,.12);
  opacity: var(--feed-alpha, 1);
}

.damageFeedLine.bigHit {
  border-color: rgba(255,255,255,.78);
  color: #ffdc8a;
  text-shadow:
    0 0 12px #ffffff,
    0 0 24px #ffdc8a,
    0 0 34px #24f8ff;
}

.damage-board {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.damage-title {
  margin-top: 8px;
  color: #ffdc8a;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.damage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  font-size: 12px;
  font-weight: 900;
}

.damage-row.me {
  color: #ffffff;
  border-color: rgba(36,248,255,.38);
  box-shadow: 0 0 14px rgba(36,248,255,.14);
}


.armorSub {
  color: #ffffff;
}

.armorSub.active {
  color: #ffdc8a;
  text-shadow:
    0 0 10px #ffffff,
    0 0 22px #24f8ff,
    0 0 32px #ffdc8a;
}

.mysteryAlert.armorShield {
  color: #ffffff;
  border-color: rgba(36,248,255,.92);
  text-shadow:
    0 0 14px #ffffff,
    0 0 34px #24f8ff,
    0 0 58px #ffdc8a;
}

.damageFeedLine.blocked {
  border-color: rgba(36,248,255,.72);
  color: #ffffff;
  text-shadow:
    0 0 12px #ffffff,
    0 0 28px #24f8ff;
}


.lap-title {
  margin-top: 10px;
  color: #24f8ff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.lap-board {
  margin-top: 5px;
  display: grid;
  gap: 4px;
}


/* v1.00 demo-ready HUD pass:
   Only race-essential info stays prominent: position, lap time, speed,
   health, held item, armor, mini track/standings, and a small FPS dev badge. */

.demoHud {
  top: 14px;
  left: 50%;
  width: min(760px, calc(100vw - 28px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(36,248,255,.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28));
  box-shadow:
    0 0 18px rgba(36,248,255,.12),
    inset 0 0 18px rgba(255,255,255,.035);
  backdrop-filter: blur(2px);
}

.demoTop {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.demoBrand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-weight: 1000;
  letter-spacing: .09em;
  font-size: clamp(13px, 2.1vw, 18px);
  white-space: nowrap;
}

.demoBrand small {
  color: #b9ffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  opacity: .72;
  text-transform: uppercase;
}

.demoStatus {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffdc8a;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.devFps {
  color: #a8c66c;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  opacity: .86;
  padding: 3px 7px;
  border: 1px solid rgba(168,198,108,.28);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
}

.demoStats {
  display: grid;
  grid-template-columns: .78fr 1.08fr .78fr 1.36fr;
  gap: 8px;
}

.statBox {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(0,0,0,.34);
}

.statLabel {
  color: #b9ffff;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .13em;
  opacity: .78;
}

.statValue {
  min-width: 0;
  color: #ffffff;
  font-size: clamp(12px, 2.05vw, 17px);
  font-weight: 1000;
  letter-spacing: .05em;
  text-align: right;
  text-shadow:
    0 0 10px rgba(255,255,255,.52),
    0 0 18px rgba(36,248,255,.26);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itemStat {
  border-color: rgba(255,220,138,.20);
}

#weapon.statValue,
#weapon {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#weapon.itemEmpty {
  color: #b9ffff;
  background: transparent;
  border: 0;
}

#weapon.plasmaReady,
#weapon.doubleReady,
#weapon.surgeReady {
  color: #ffdc8a;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow:
    0 0 10px rgba(255,255,255,.50),
    0 0 18px rgba(255,220,138,.42);
}

.demoHealth {
  width: auto;
  margin: 0;
  padding: 7px 9px 8px;
  border-radius: 13px;
  background: rgba(0,0,0,.30);
}

.demoHealth .healthTrack {
  height: 9px;
}

.hiddenMetric {
  display: none;
}

.demoMap {
  top: 14px;
  right: 14px;
  width: 164px;
  padding: 8px 8px 10px;
  border: 1px solid rgba(36,248,255,.18);
  background: rgba(0,0,0,.34);
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(36,248,255,.10);
}

.demoMap .mini-title {
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: .14em;
}

.demoMap #map {
  width: 150px;
  height: 166px;
}

.demoMap .leaderboard {
  margin-top: 5px;
  gap: 2px;
  font-size: 10px;
}

.demoMap .leader-row {
  grid-template-columns: 30px 1fr auto;
  gap: 4px;
}

.demoMap .leader-time {
  font-size: 9px;
}

.damageFeed {
  top: 128px;
  width: min(520px, calc(100vw - 36px));
}

.damageFeedLine {
  padding: 5px 10px;
  font-size: clamp(11px, 1.9vw, 15px);
  background: rgba(0,0,0,.44);
  opacity: calc(var(--feed-alpha, 1) * .82);
}

.devControls {
  opacity: .45;
  transform: scale(.90);
  transform-origin: bottom left;
}

.devControls:hover {
  opacity: 1;
}

.mysteryAlert.readyCard,
.mysteryAlert.usedCard {
  top: 28%;
  min-width: min(470px, calc(100vw - 42px));
  padding: 12px 18px 14px;
}

.mysteryItemName {
  font-size: clamp(26px, 5.4vw, 54px);
}

.mysteryStatus {
  font-size: clamp(15px, 2.7vw, 26px);
}

.mysteryHint {
  font-size: clamp(9px, 1.45vw, 12px);
}

@media (max-width: 760px) {
  .demoHud {
    top: 10px;
    width: calc(100vw - 20px);
    padding: 8px 9px 9px;
  }

  .demoTop {
    grid-template-columns: 1fr auto;
  }

  .demoStatus {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
    order: 3;
  }

  .demoStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demoMap {
    top: auto;
    right: 10px;
    bottom: 86px;
    width: 128px;
    transform: none;
  }

  .demoMap #map {
    width: 112px;
    height: 124px;
  }

  .demoMap .leaderboard {
    display: none;
  }

  .damageFeed {
    top: 154px;
  }

  .bottom-left.devControls {
    bottom: 88px;
  }
}

@media (max-width: 430px) {
  .demoBrand small {
    display: none;
  }

  .statBox {
    padding: 5px 7px;
  }

  .statValue {
    font-size: 12px;
  }

  .demoMap {
    display: none;
  }
}


/* v1.01 open race HUD:
   Break the info out of the single box so the race view breathes.
   Held item stays off this HUD because the big item card already handles it. */

.demoHud {
  top: 12px;
  left: 14px;
  width: auto;
  max-width: calc(100vw - 28px);
  transform: none;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.demoTop {
  display: flex;
  gap: 10px;
  align-items: center;
}

.demoBrand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-shadow:
    0 0 10px rgba(255,255,255,.42),
    0 0 18px rgba(36,248,255,.32);
}

.demoStatus {
  max-width: min(280px, 36vw);
  padding: 3px 8px;
  border: 1px solid rgba(255,220,138,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  font-size: 10px;
}

.devFps {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 11;
  opacity: .72;
}

.raceStats {
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 340px));
  min-width: 290px;
  display: grid;
  grid-template-columns: .72fr 1.12fr .72fr;
  gap: 18px;
  align-items: start;
  text-align: center;
}

.raceStats .statBox {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.raceStats .statLabel {
  color: #b9ffff;
  font-size: 9px;
  opacity: .76;
  text-align: center;
}

.raceStats .statValue {
  color: #ffffff;
  font-size: clamp(15px, 2.4vw, 23px);
  text-align: center;
  padding: 0;
  text-shadow:
    0 0 10px rgba(255,255,255,.58),
    0 0 20px rgba(36,248,255,.32);
}

.lapStat .statValue {
  color: #ffdc8a;
}

#weapon {
  display: none !important;
}

.demoHealth {
  top: 74px;
  left: 14px;
  width: min(218px, 32vw);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.demoHealth .healthTop {
  margin-bottom: 4px;
  font-size: 10px;
  color: rgba(255,255,255,.88);
}

.demoHealth .healthTrack {
  height: 8px;
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.32);
}

.demoHealth .healthSub {
  margin-top: 3px;
  font-size: 9px;
  opacity: .86;
}

.demoMap {
  top: 52px;
  right: 12px;
  width: 144px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.demoMap .mini-title {
  text-align: right;
  margin-right: 4px;
  opacity: .80;
}

.demoMap #map {
  width: 132px;
  height: 146px;
  opacity: .84;
}

.demoMap .leaderboard {
  font-size: 9px;
  opacity: .84;
}

.damageFeed {
  top: 96px;
}

.devControls {
  opacity: .32;
}

@media (max-width: 860px) {
  .raceStats {
    top: 44px;
    width: min(380px, calc(100vw - 28px));
    min-width: 0;
  }

  .demoHealth {
    top: 92px;
    width: 190px;
  }

  .demoMap {
    top: auto;
    right: 10px;
    bottom: 86px;
  }

  .damageFeed {
    top: 134px;
  }
}

@media (max-width: 560px) {
  .demoTop {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .demoStatus {
    max-width: 160px;
  }

  .raceStats {
    top: 12px;
    left: auto;
    right: 10px;
    transform: none;
    width: min(245px, calc(100vw - 178px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .raceStats .statValue {
    font-size: 13px;
  }

  .demoHealth {
    top: 82px;
    left: 10px;
    width: 152px;
  }

  .demoMap {
    display: none;
  }

  .damageFeed {
    top: 126px;
  }

  .devFps {
    right: 8px;
    bottom: 76px;
    font-size: 9px;
  }
}


#healthFill.healthOver {
  background: linear-gradient(90deg, #ffffff, #ffdc8a, #24f8ff, #ffffff);
  box-shadow:
    0 0 16px rgba(255,255,255,.66),
    0 0 30px rgba(255,220,138,.42),
    0 0 40px rgba(36,248,255,.24);
}

#healthText.healthOver {
  color: #ffdc8a;
  text-shadow:
    0 0 9px rgba(255,255,255,.72),
    0 0 20px rgba(255,220,138,.62),
    0 0 30px rgba(36,248,255,.35);
}


/* v1.05 HUD polish:
   - item ready cards move higher
   - health sits bottom-left
   - overhealth is shown with a small bang marker, not more center text */

.mysteryAlert.readyCard,
.mysteryAlert.usedCard {
  top: clamp(72px, 12vh, 116px);
  min-width: min(430px, calc(100vw - 42px));
  padding: 10px 16px 12px;
}

.mysteryAlert.mysterySpin {
  top: clamp(72px, 12vh, 116px);
}

.mysteryItemName {
  font-size: clamp(23px, 4.8vw, 48px);
}

.mysteryStatus {
  font-size: clamp(14px, 2.45vw, 23px);
}

.mysteryHint {
  margin-top: 6px;
}

.demoHealth {
  top: auto;
  bottom: 58px;
  left: 14px;
  width: min(220px, 34vw);
}

.healthLabel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.healthOverMark {
  display: none;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #05070b;
  background: #ffdc8a;
  font-size: 12px;
  font-weight: 1000;
  line-height: 16px;
  text-align: center;
  box-shadow:
    0 0 10px rgba(255,255,255,.70),
    0 0 22px rgba(255,220,138,.54),
    0 0 30px rgba(36,248,255,.22);
}

.healthOverMark.active {
  display: inline-grid;
}

.devControls {
  bottom: 14px;
}

@media (max-width: 860px) {
  .demoHealth {
    top: auto;
    bottom: 86px;
    left: 10px;
    width: 180px;
  }

  .mysteryAlert.readyCard,
  .mysteryAlert.usedCard,
  .mysteryAlert.mysterySpin {
    top: clamp(70px, 11vh, 102px);
  }
}

@media (max-width: 560px) {
  .demoHealth {
    top: auto;
    bottom: 88px;
    left: 10px;
    width: 152px;
  }

  .healthOverMark {
    width: 14px;
    height: 14px;
    font-size: 10px;
    line-height: 14px;
  }
}


/* v1.12: remove the top-right mini track map to open up the race view. */
.demoMap {
  display: none !important;
}


/* v1.31 Multiplayer menu shell */
.shellOverlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 25%, rgba(36,248,255,.13), transparent 34%),
    radial-gradient(circle at 74% 64%, rgba(255,184,77,.10), transparent 30%),
    rgba(0,0,0,.48);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.shellOverlay.hidden {
  display: none;
}

.shellCard {
  width: min(780px, calc(100vw - 34px));
  border: 1px solid rgba(36,248,255,.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(4,9,18,.88), rgba(0,0,0,.76)),
    radial-gradient(circle at 50% 0%, rgba(36,248,255,.20), transparent 42%);
  box-shadow:
    0 0 34px rgba(36,248,255,.18),
    0 0 90px rgba(255,184,77,.08),
    inset 0 0 28px rgba(255,255,255,.045);
  padding: clamp(20px, 4vw, 34px);
  color: #fff;
  text-align: left;
}

.shellKicker {
  color: #24f8ff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .24em;
  text-shadow: 0 0 16px rgba(36,248,255,.82);
}

.shellCard h1 {
  margin: 7px 0 8px;
  font-size: clamp(34px, 7.5vw, 76px);
  line-height: .92;
  font-weight: 1000;
  letter-spacing: .06em;
  text-shadow:
    0 0 16px rgba(255,255,255,.82),
    0 0 34px rgba(36,248,255,.42),
    0 0 58px rgba(255,184,77,.20);
}

.shellCopy {
  max-width: 650px;
  color: #c9ffff;
  font-size: clamp(14px, 2.4vw, 17px);
  font-weight: 750;
  line-height: 1.45;
  opacity: .92;
}

.nameRow {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

#playerNameInput {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(36,248,255,.45);
  border-radius: 16px;
  background: rgba(0,0,0,.62);
  color: #ffffff;
  padding: 16px 18px;
  outline: none;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(36,248,255,.08);
}

#playerNameInput:focus {
  border-color: rgba(255,220,138,.82);
  box-shadow:
    0 0 22px rgba(255,220,138,.14),
    inset 0 0 20px rgba(36,248,255,.10);
}

#saveNameBtn,
.menuPrimary,
.menuSecondary {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 1000;
  letter-spacing: .10em;
  color: #041018;
  background: linear-gradient(90deg, #24f8ff, #ffffff, #ffdc8a);
  box-shadow:
    0 0 24px rgba(36,248,255,.25),
    0 0 36px rgba(255,220,138,.12);
  padding: 0 22px;
}

.menuSecondary {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.07);
  box-shadow: none;
}

.nameError {
  min-height: 20px;
  margin-top: 10px;
  color: #ff8ad8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
}

.shellHint {
  margin-top: 14px;
  color: #ffdc8a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
}

.menuTopline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.rankBadge {
  min-width: 142px;
  border: 1px solid rgba(255,220,138,.34);
  border-radius: 20px;
  padding: 12px 14px;
  text-align: right;
  background: rgba(255,220,138,.08);
}

.rankBadge span,
.menuStat span {
  display: block;
  color: #9effff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .18em;
}

.rankBadge strong {
  display: block;
  margin-top: 4px;
  color: #ffdc8a;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: .05em;
}

.menuStatsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.menuStat {
  border: 1px solid rgba(36,248,255,.22);
  border-radius: 18px;
  padding: 14px 14px 15px;
  background: rgba(0,0,0,.34);
}

.menuStat strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 1000;
  letter-spacing: .04em;
}

.menuActions {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 12px;
}

.menuPrimary,
.menuSecondary {
  min-height: 56px;
  font-size: 15px;
}

.serverPanel {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255,255,255,.045);
  color: #d9ffff;
}

.serverPanel strong {
  color: #ffffff;
  letter-spacing: .04em;
}

.serverPanel p {
  margin: 3px 0 0;
  color: #aeefff;
  font-size: 13px;
  font-weight: 750;
  opacity: .86;
}

.serverDot {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50%;
  background: #ffdc8a;
  box-shadow: 0 0 16px rgba(255,220,138,.8);
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .nameRow,
  .menuActions,
  .menuStatsGrid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  #saveNameBtn {
    min-height: 52px;
  }

  .menuTopline {
    flex-direction: column;
  }

  .rankBadge {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
}


/* v1.32 Private race lobby shell */
.lobbyCard {
  width: min(900px, calc(100vw - 28px));
}

.lobbyHeader,
.lobbyStatusRow,
.lobbyActions {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
}

.roomCodeBox {
  min-width: 154px;
  border: 1px solid rgba(36,248,255,.30);
  border-radius: 20px;
  padding: 13px 16px;
  background: rgba(36,248,255,.08);
  text-align: right;
  box-shadow: inset 0 0 20px rgba(36,248,255,.06);
}

.roomCodeBox span,
.lobbyLabel {
  display: block;
  color: #9effff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .18em;
}

.roomCodeBox strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 1000;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(36,248,255,.75);
}

.lobbyStatusRow {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.lobbyStatusRow > div {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(0,0,0,.34);
}

.lobbyStatusRow strong {
  display: block;
  margin-top: 5px;
  color: #ffdc8a;
  font-size: clamp(18px, 3.1vw, 26px);
  font-weight: 1000;
  letter-spacing: .05em;
}

.lobbySlots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin: 16px 0 14px;
}

.lobbySlot {
  min-height: 142px;
  border: 1px solid rgba(36,248,255,.18);
  border-radius: 20px;
  padding: 13px;
  background:
    radial-gradient(circle at 50% 0%, rgba(36,248,255,.10), transparent 55%),
    rgba(0,0,0,.36);
  box-shadow: inset 0 0 20px rgba(255,255,255,.035);
  position: relative;
  overflow: hidden;
}

.lobbySlot.connected {
  border-color: rgba(36,248,255,.48);
  box-shadow:
    0 0 20px rgba(36,248,255,.13),
    inset 0 0 22px rgba(36,248,255,.045);
}

.lobbySlot.waiting {
  border-style: dashed;
  opacity: .72;
}

.lobbyAvatar {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #041018;
  background: linear-gradient(135deg, #24f8ff, #ffffff, #ffdc8a);
  font-weight: 1000;
  font-size: 21px;
  box-shadow: 0 0 18px rgba(36,248,255,.20);
}

.waiting .lobbyAvatar {
  color: #9effff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}

.lobbyName {
  color: #ffffff;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 1000;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobbyMeta {
  margin-top: 5px;
  color: #aeefff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
}

.lobbyReady {
  position: absolute;
  right: 11px;
  bottom: 11px;
  color: #041018;
  background: #ffdc8a;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
}

.waiting .lobbyReady {
  color: #b9ffff;
  background: rgba(255,255,255,.07);
}

.lobbyFeed {
  min-height: 88px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(0,0,0,.30);
  color: #d9ffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.55;
  overflow: hidden;
}

.lobbyFeed div:first-child {
  color: #ffdc8a;
}

.lobbyActions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.35fr .75fr;
}

.lobbyStart.locked {
  opacity: .58;
  filter: grayscale(.3);
  cursor: default;
}

.lobbyStart.ready {
  animation: lobbyReadyPulse 1.2s ease-in-out infinite alternate;
}

.lobbyServer {
  margin-top: 14px;
}

@keyframes lobbyReadyPulse {
  from { box-shadow: 0 0 18px rgba(36,248,255,.20), 0 0 28px rgba(255,220,138,.10); }
  to { box-shadow: 0 0 30px rgba(36,248,255,.40), 0 0 48px rgba(255,220,138,.22); }
}

@media (max-width: 760px) {
  .lobbyHeader,
  .lobbyActions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .roomCodeBox {
    text-align: left;
  }

  .lobbyStatusRow,
  .lobbySlots {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .lobbyStatusRow,
  .lobbySlots {
    grid-template-columns: 1fr;
  }
}

/* v1.33 lobby auto-start cleanup */
.autoLobbyActions {
  grid-template-columns: 1.35fr .75fr;
}

.autoStartNote {
  min-height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #041018;
  font-weight: 1000;
  letter-spacing: .12em;
  text-align: center;
  background: linear-gradient(90deg, #24f8ff, #ffffff, #ffdc8a);
  box-shadow:
    0 0 24px rgba(36,248,255,.20),
    0 0 36px rgba(255,220,138,.10);
}

.autoStartNote.ready {
  animation: lobbyReadyPulse 0.72s ease-in-out infinite alternate;
}

.autoStartNote.launching {
  background: linear-gradient(90deg, #ffffff, #ffdc8a, #24f8ff, #ffffff);
  animation: lobbyReadyPulse 0.42s ease-in-out infinite alternate;
}

@media (max-width: 760px) {
  .autoLobbyActions {
    grid-template-columns: 1fr;
  }
}

/* v1.34 calculated race results + world ranking */
.finish {
  overflow-y: auto;
  place-content: center;
  padding: 20px 0;
}

.finish-menu-card {
  width: min(860px, 92vw);
}

.finish-copy.rank-copy {
  color: #b9ffff;
}

.finish-wallet.rank-wallet {
  margin-bottom: 16px;
  color: #ffffff;
}

.finish-board.rank-results {
  width: min(780px, 86vw);
  padding: 0;
  overflow: hidden;
  text-align: left;
  letter-spacing: .03em;
}

.rankResultHeader,
.rankResultRow {
  display: grid;
  grid-template-columns: 70px 1.2fr 100px 104px 86px;
  gap: 8px;
  align-items: center;
}

.rankResultHeader {
  padding: 10px 14px;
  color: #9effff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
  background: rgba(36,248,255,.08);
  border-bottom: 1px solid rgba(36,248,255,.16);
}

.rankResultRow {
  padding: 11px 14px;
  border-top: 1px solid rgba(255,255,255,.075);
  color: #e9ffff;
  font-size: 13px;
  font-weight: 950;
}

.rankResultRow:first-of-type {
  border-top: 0;
}

.rankResultRow.me {
  background:
    radial-gradient(circle at 12% 50%, rgba(36,248,255,.18), transparent 40%),
    rgba(36,248,255,.06);
}

.rankPlace {
  color: #ffdc8a;
  font-weight: 1000;
  letter-spacing: .08em;
}

.rankName {
  color: #ffffff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankTime {
  color: #b9ffff;
  font-variant-numeric: tabular-nums;
}

.rankRating {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.rankDelta {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 1000;
}

.rankDelta.up {
  color: #24f8ff;
  text-shadow: 0 0 14px rgba(36,248,255,.45);
}

.rankDelta.down {
  color: #ffdc8a;
  text-shadow: 0 0 14px rgba(255,220,138,.36);
}

.rankSystemNote {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(36,248,255,.12);
  color: #9effff;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: .05em;
  background: rgba(0,0,0,.22);
}

@media (max-width: 680px) {
  .rankResultHeader,
  .rankResultRow {
    grid-template-columns: 54px 1fr 74px 82px 66px;
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 11px;
  }

  .rankResultHeader {
    font-size: 9px;
  }

  .rankSystemNote {
    font-size: 10px;
  }
}

/* v1.35 multiplayer event backbone */
.onlineStatus {
  display: inline-block;
  margin-top: 8px;
  color: #041018;
  background: linear-gradient(90deg, #24f8ff, #ffffff, #ffdc8a);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .14em;
  box-shadow: 0 0 16px rgba(36,248,255,.14);
}

.rankSystemNote .sessionLine {
  display: block;
  margin-top: 6px;
  color: #ffdc8a;
}

/* NIGHTBIKE V15 SOURCE PATCH: safe mobile layout + no manual touch controls */
.touch,
.touch button,
#leftBtn,
#rightBtn,
#throttleBtn,
#fireBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Keep the game canvas/fullscreen layout intact. Only overlay cards become scrollable. */
.shellOverlay {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  align-items: start;
  justify-items: center;
  place-items: start center;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  padding-bottom: max(110px, env(safe-area-inset-bottom, 0px));
}

.shellCard,
.nameCard,
.menuCard,
.lobbyCard {
  max-height: none;
  overflow: visible;
  margin: 0 auto;
}

.lobbyFeed {
  max-height: 24svh;
  overflow-y: auto;
}

@media (max-width: 760px), (max-height: 720px) {
  .shellOverlay {
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(110px, env(safe-area-inset-bottom, 0px));
  }

  .shellCard,
  .nameCard,
  .menuCard,
  .lobbyCard {
    width: min(940px, calc(100vw - 20px));
    border-radius: 20px;
    padding: 16px;
  }

  .lobbyHeader,
  .lobbyActions,
  .autoLobbyActions {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  .lobbyStatusRow,
  .lobbySlots {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px), (max-height: 560px) {
  .lobbyStatusRow,
  .lobbySlots {
    grid-template-columns: 1fr;
  }

  .shellCard h1 {
    font-size: clamp(28px, 9vw, 46px);
  }
}





/* NIGHTBIKE V17 RESTORE: keep V15 working gyro, hide debug production UI */
#nbV15Badge,
#nbV15GyroDebug,
body.nb-v15-debug #nbV15GyroDebug {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}


/* NIGHTBIKE V20 POTATO CONFIG + PORTRAIT LOCK */
#nbV15Badge,
#nbV15GyroDebug,
body.nb-v15-debug #nbV15GyroDebug {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

#nbPortraitLockOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 255, 220, .20), rgba(0, 0, 0, .94) 58%),
    rgba(0, 0, 0, .94);
  color: #eaffff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

html.nb-v19-landscape-blocked #nbPortraitLockOverlay,
body.nb-v19-landscape-blocked #nbPortraitLockOverlay {
  display: flex !important;
}

.nb-portrait-card {
  width: min(520px, 92vw);
  border: 1px solid rgba(127, 255, 245, .42);
  border-radius: 24px;
  padding: 24px;
  background: rgba(3, 12, 20, .92);
  box-shadow: 0 0 36px rgba(0, 255, 220, .18);
}

.nb-portrait-title {
  margin: 0 0 10px;
  color: #bffff8;
  font-size: clamp(26px, 8vw, 46px);
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  font-weight: 900;
}

.nb-portrait-copy {
  color: rgba(234, 255, 255, .88);
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.45;
}


/* NIGHTBIKE V20 POTATO CONFIG */
html.nb-potato-mode body,
html.nb-potato-mode .gameShell,
html.nb-potato-mode .hud,
html.nb-potato-mode .panel,
html.nb-potato-mode .card,
html.nb-balanced-mode body {
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.nb-potato-mode * {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}

html.nb-potato-mode #map,
html.nb-potato-mode .minimap,
html.nb-potato-mode #fps {
  display: none !important;
}


/* NIGHTBIKE V21 LAPTOP DEV PASS
   Portrait lock overlay only activates on mobile gyro mode via the nb-v19-landscape-blocked class.
   Laptop/desktop keyboard mode should never receive that class.
*/
html:not(.nb-v19-landscape-blocked) #nbPortraitLockOverlay,
body:not(.nb-v19-landscape-blocked) #nbPortraitLockOverlay {
  display: none !important;
}


/* NIGHTBIKE V22 PROFILE CALIBRATION UI */
.phoneCalPanel {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  margin: -4px 0 16px;
  border: 1px solid rgba(255,220,138,.28);
  border-radius: 20px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255,220,138,.10), rgba(0,0,0,.22)),
    rgba(255,255,255,.045);
}

.phoneCalText {
  min-width: 0;
  flex: 1;
}

.phoneCalLabel {
  display: block;
  color: #9effff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#phoneCalStatus {
  display: block;
  margin-top: 4px;
  color: #ffdc8a;
  font-size: clamp(18px, 4vw, 27px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#phoneCalHint {
  margin: 6px 0 0;
  color: rgba(217,255,255,.88);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.phoneCalBtn {
  min-width: 172px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(255,255,255,.075);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .10em;
  cursor: pointer;
  text-transform: uppercase;
}

.phoneCalPanel.phone-ready {
  border-color: rgba(36,248,255,.44);
  background:
    linear-gradient(135deg, rgba(36,248,255,.14), rgba(0,0,0,.24)),
    rgba(255,255,255,.045);
  box-shadow: 0 0 22px rgba(36,248,255,.12);
}

.phoneCalPanel.phone-ready #phoneCalStatus {
  color: #bffff8;
  text-shadow: 0 0 16px rgba(36,248,255,.32);
}

.phoneCalPanel.phone-ready .phoneCalBtn {
  border-color: rgba(36,248,255,.42);
  color: #041018;
  background: linear-gradient(90deg, #24f8ff, #ffffff);
}

.phoneCalPanel.keyboard-ready .phoneCalBtn,
.phoneCalBtn.disabled {
  opacity: .58;
  cursor: default;
}

#joinRaceBtn.joinLocked {
  color: rgba(255,255,255,.58) !important;
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: none !important;
  cursor: pointer;
}

#joinRaceBtn.joinReady {
  color: #041018 !important;
  background: linear-gradient(90deg, #24f8ff, #ffffff, #ffdc8a) !important;
  box-shadow:
    0 0 24px rgba(36,248,255,.25),
    0 0 36px rgba(255,220,138,.12) !important;
}

@media (max-width: 640px) {
  .phoneCalPanel {
    flex-direction: column;
  }

  .phoneCalBtn {
    min-height: 52px;
    width: 100%;
  }
}


/* NIGHTBIKE V23 DIRECT PRIVATE RACE + LIGHT GYRO SENSITIVITY */
.phoneCalPanel.phone-ready #phoneCalHint::after {
  content: " Continue goes straight to private race.";
}


/* NIGHTBIKE V24 PLASMA VISUALS KEEP
   Potato mode still trims background/HUD/extra layers, but plasma balls and rail hit glow stay elite.
*/
html[data-nightbike-quality="potato"] canvas,
body.nb-quality-potato canvas {
  image-rendering: auto;
}


/* NIGHTBIKE V25 CLEAN CALIBRATION PROFILE RETURN
   Calibration returns to profile; player chooses Join Private Race there.
*/


/* NIGHTBIKE V32B STABLE PROFILE GATE MODEL MAP */
.profileBuilderPanel {
  display: grid;
  grid-template-columns: minmax(112px, 142px) 1fr;
  gap: 16px;
  margin: -2px 0 16px;
  padding: 14px;
  border: 1px solid rgba(36,248,255,.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(36,248,255,.10), rgba(255,220,138,.045)),
    rgba(255,255,255,.045);
  box-shadow: 0 0 26px rgba(36,248,255,.08);
}

.profileAvatarBox {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: stretch;
}

.profileAvatarPreview {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.20);
  background:
    radial-gradient(circle at 45% 25%, rgba(36,248,255,.28), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(0,0,0,.32));
  color: #eaffff;
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 1000;
  letter-spacing: .04em;
  overflow: hidden;
  text-shadow: 0 0 16px rgba(36,248,255,.35);
}

.profileAvatarPreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profileAvatarInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatarUploadBtn,
.avatarClearBtn {
  width: 100%;
  border-radius: 13px;
  border: 1px solid rgba(36,248,255,.28);
  padding: 10px 8px;
  background: rgba(0,0,0,.28);
  color: #bffff8;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.avatarClearBtn {
  border-color: rgba(255,255,255,.16);
  color: rgba(234,255,255,.72);
  background: rgba(255,255,255,.055);
}

.profileBuilderInfo {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.profileCodeRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding-bottom: 10px;
}

.profileCodeRow span,
.modelSelectRow label {
  color: #9effff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.profileCodeRow strong {
  color: #ffdc8a;
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(15px, 4vw, 22px);
  letter-spacing: .05em;
  white-space: nowrap;
}

.modelSelectRow {
  display: grid;
  gap: 7px;
}

#profileModelSelect {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(36,248,255,.28);
  border-radius: 15px;
  padding: 13px 14px;
  background:
    linear-gradient(90deg, rgba(36,248,255,.10), rgba(255,220,138,.065)),
    rgba(0,0,0,.42);
  color: #ffffff;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#profileModelSelect option {
  background: #061018;
  color: #ffffff;
}

.profileModelHint,
.profileSyncHint {
  color: rgba(217,255,255,.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.profileSyncHint {
  color: rgba(255,220,138,.86);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.lobbyAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

@media (max-width: 640px) {
  .profileBuilderPanel {
    grid-template-columns: 1fr;
  }

  .profileAvatarBox {
    max-width: 240px;
    margin: 0 auto;
    width: 100%;
  }

  .profileCodeRow {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}


/* NIGHTBIKE V27 MODEL PREVIEW */
.profileModelHint {
  display: none !important;
}

.profileModelPreview {
  border: 1px solid rgba(36,248,255,.24);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(36,248,255,.18), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.18));
  box-shadow: inset 0 0 24px rgba(36,248,255,.055);
}

.modelPreviewStage {
  height: clamp(132px, 26vw, 190px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 72%, rgba(255,220,138,.14), transparent 34%),
    radial-gradient(circle at 50% 38%, rgba(36,248,255,.16), transparent 46%),
    rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}

.modelPreviewStage img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(36,248,255,.30))
    drop-shadow(0 0 20px rgba(255,220,138,.12));
  transform: scale(1.03);
}

.profileModelPreview[data-model-kind="trike"] .modelPreviewStage img {
  max-width: 98%;
  max-height: 86%;
  transform: scale(1.06);
}

.profileModelPreview[data-model-kind="sport"] .modelPreviewStage img {
  max-width: 96%;
  max-height: 82%;
  transform: scale(1.05);
}

.modelPreviewName {
  margin-top: 10px;
  color: #bffff8;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}


/* NIGHTBIKE V28 PROFILE PREVIEW + PLASMA USERNAME */
#menuPlayerName {
  display: inline-block;
  color: #eaffff;
  letter-spacing: .07em;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, #ffffff 0%, #24f8ff 22%, #bffff8 44%, #ffdc8a 63%, #24f8ff 84%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 7px rgba(36,248,255,.55),
    0 0 17px rgba(36,248,255,.38),
    0 0 31px rgba(255,220,138,.20);
  filter: drop-shadow(0 0 7px rgba(36,248,255,.35));
}

.profileAvatarPreview.modelPlaceholder {
  padding: 8px;
  background:
    radial-gradient(circle at 50% 68%, rgba(255,220,138,.15), transparent 38%),
    radial-gradient(circle at 50% 34%, rgba(36,248,255,.20), transparent 46%),
    rgba(0,0,0,.34);
}

.profileAvatarPreview.modelPlaceholder img {
  object-fit: contain;
  width: 92%;
  height: 92%;
  filter:
    drop-shadow(0 0 9px rgba(36,248,255,.28))
    drop-shadow(0 0 15px rgba(255,220,138,.14));
}

.profileAvatarPreview.modelPlaceholder[data-model-kind="sport"] img,
.profileAvatarPreview.modelPlaceholder[data-model-kind="trike"] img {
  width: 98%;
  height: 82%;
}

.modelPreviewStage {
  height: clamp(220px, 42vw, 340px) !important;
  min-height: 220px;
  overflow: visible !important;
  padding: 14px;
}

.modelPreviewStage img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 82% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: scale(.88) !important;
  transform-origin: center center !important;
}

.profileModelPreview[data-model-kind="rider"] .modelPreviewStage img {
  max-height: 88% !important;
  transform: scale(.84) !important;
}

.profileModelPreview[data-model-kind="trike"] .modelPreviewStage img {
  max-width: 96% !important;
  max-height: 78% !important;
  transform: scale(.86) !important;
}

.profileModelPreview[data-model-kind="sport"] .modelPreviewStage img {
  max-width: 96% !important;
  max-height: 76% !important;
  transform: scale(.84) !important;
}

.modelPreviewName {
  text-shadow: 0 0 12px rgba(36,248,255,.32);
}


/* NIGHTBIKE V29 MODEL PREVIEW SIZING
   Keep the profile-picture placeholder tight, but make the large website model
   preview card smaller, centered, and readable.
*/
.profileModelPreview {
  overflow: hidden;
}

.profileModelPreview .modelPreviewStage {
  height: clamp(150px, 24vw, 210px) !important;
  min-height: 150px !important;
  max-height: 210px !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  padding: 10px !important;
}

.profileModelPreview .modelPreviewStage img,
.profileModelPreview[data-model-kind="rider"] .modelPreviewStage img,
.profileModelPreview[data-model-kind="trike"] .modelPreviewStage img,
.profileModelPreview[data-model-kind="sport"] .modelPreviewStage img {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  max-width: 74% !important;
  max-height: 68% !important;
  transform: none !important;
  transform-origin: center center !important;
  margin: 0 auto !important;
}

.profileModelPreview[data-model-kind="rider"] .modelPreviewStage img {
  max-height: 72% !important;
  max-width: 62% !important;
}

.profileModelPreview[data-model-kind="trike"] .modelPreviewStage img {
  max-height: 64% !important;
  max-width: 82% !important;
}

.profileModelPreview[data-model-kind="sport"] .modelPreviewStage img {
  max-height: 62% !important;
  max-width: 82% !important;
}

.modelPreviewName {
  color: #eaffff !important;
  letter-spacing: .10em !important;
}


/* NIGHTBIKE V31 CANVAS THUMBNAIL PREVIEW
   JS now generates contained PNG thumbnails, so the raw sprite dimensions cannot
   crop to the head or blow up the website preview.
*/
.profileModelPreview .modelPreviewStage {
  height: clamp(162px, 23vw, 218px) !important;
  min-height: 162px !important;
  max-height: 218px !important;
  overflow: hidden !important;
  padding: 8px !important;
}

.profileModelPreview .modelPreviewStage img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  margin: 0 auto !important;
}

.profileAvatarPreview.modelPlaceholder img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

.modelPreviewName {
  font-size: 13px !important;
  letter-spacing: .08em !important;
  text-transform: none !important;
}


/* NIGHTBIKE V31 LARGER WEBSITE MODEL PREVIEW */
.profileModelPreview .modelPreviewStage {
  height: clamp(220px, 31vw, 300px) !important;
  min-height: 220px !important;
  max-height: 300px !important;
  padding: 8px !important;
}

.profileModelPreview .modelPreviewStage img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.profileAvatarPreview.modelPlaceholder img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.serverPrepPanel {
  border: 1px solid rgba(255,220,138,.20);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255,220,138,.08), rgba(36,248,255,.055)),
    rgba(0,0,0,.25);
}

.serverPrepHeader {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}

.serverPrepHeader span {
  color:#9effff;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.serverPrepHeader strong {
  color:#ffdc8a;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.10em;
}

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

.serverPrepGrid div {
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:8px;
  background:rgba(0,0,0,.24);
}

.serverPrepGrid b,
.serverPrepGrid span {
  display:block;
}

.serverPrepGrid b {
  color:rgba(217,255,255,.72);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.serverPrepGrid span {
  margin-top:3px;
  color:#bffff8;
  font-size:12px;
  font-weight:1000;
}

.friendCodeRow {
  display:flex;
  gap:8px;
  margin-top:10px;
}

.friendCodeRow input {
  min-width:0;
  flex:1;
  border:1px solid rgba(36,248,255,.24);
  border-radius:12px;
  padding:10px 11px;
  background:rgba(0,0,0,.32);
  color:#eaffff;
  font-weight:900;
  text-transform:uppercase;
}

.friendCodeRow button {
  border:1px solid rgba(36,248,255,.28);
  border-radius:12px;
  padding:0 12px;
  background:rgba(36,248,255,.10);
  color:#bffff8;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.08em;
}

.serverPayloadHint {
  margin-top:9px;
  color:rgba(255,220,138,.86);
  font-family:ui-monospace,Consolas,monospace;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

@media (max-width:640px) {
  .serverPrepGrid {
    grid-template-columns:1fr 1fr;
  }
  .friendCodeRow {
    flex-direction:column;
  }
  .friendCodeRow button {
    min-height:42px;
  }
}


/* NIGHTBIKE V32B STABLE MODEL IMAGES */
.profileModelPreview .modelPreviewStage {
  height: clamp(250px, 34vw, 360px) !important;
  min-height: 250px !important;
  max-height: 360px !important;
  overflow: hidden !important;
  padding: 10px !important;
}

.profileModelPreview .modelPreviewStage img,
#profileModelPreviewImg {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 92% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  margin: auto !important;
}

.profileModelPreview[data-model-kind="rider"] .modelPreviewStage img {
  max-width: 72% !important;
  max-height: 92% !important;
}

.profileModelPreview[data-model-kind="sport"] .modelPreviewStage img,
.profileModelPreview[data-model-kind="trike"] .modelPreviewStage img {
  max-width: 96% !important;
  max-height: 88% !important;
}

.profileAvatarPreview.modelPlaceholder img,
.profileAvatarPreview .modelAvatarImg {
  width: 92% !important;
  height: 92% !important;
  max-width: 92% !important;
  max-height: 92% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: auto !important;
}

.profileAvatarPreview[data-model-kind="rider"] .modelAvatarImg {
  width: 74% !important;
  height: 92% !important;
}

.profileAvatarPreview[data-model-kind="sport"] .modelAvatarImg,
.profileAvatarPreview[data-model-kind="trike"] .modelAvatarImg {
  width: 96% !important;
  height: 82% !important;
}


/* NIGHTBIKE V33 FRIENDS + GANGS PREP */
.socialPrepPanel {
  border: 1px solid rgba(36,248,255,.22);
  border-radius: 18px;
  padding: 12px;
  margin: 14px 0;
  background:
    linear-gradient(135deg, rgba(36,248,255,.075), rgba(255,220,138,.045)),
    rgba(0,0,0,.24);
}

.socialPrepHeader {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.socialPrepHeader span {
  color:#9effff;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.socialPrepHeader strong {
  color:#ffdc8a;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.10em;
}

.socialCards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.socialCard {
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:10px;
  background:rgba(0,0,0,.24);
  min-width:0;
}

.socialCardTitle {
  color:#bffff8;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.11em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.socialPreview,
.gangPreview {
  color:rgba(234,255,255,.80);
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.gangPreview {
  margin-top:10px;
  color:rgba(255,220,138,.90);
  font-family:ui-monospace,Consolas,monospace;
}

.socialCard input {
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(36,248,255,.24);
  border-radius:11px;
  padding:9px 10px;
  margin:0 0 7px;
  background:rgba(0,0,0,.32);
  color:#eaffff;
  font-weight:900;
}

.socialCard button {
  width:100%;
  border:1px solid rgba(36,248,255,.28);
  border-radius:11px;
  padding:10px 8px;
  background:rgba(36,248,255,.10);
  color:#bffff8;
  font-size:10px;
  font-weight:1000;
  letter-spacing:.08em;
}

@media (max-width: 720px) {
  .socialCards {
    grid-template-columns:1fr;
  }
}


/* NIGHTBIKE V34 FRIENDS HUB LINK */
.friendsHubBtn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 2px;
  border: 1px solid rgba(255,220,138,.34);
  border-radius: 16px;
  padding: 13px 12px;
  text-align: center;
  text-decoration: none;
  color: #071012;
  background: linear-gradient(135deg, #24f8ff, #ffdc8a);
  font-weight: 1000;
  letter-spacing: .10em;
  box-shadow: 0 0 24px rgba(36,248,255,.18);
}

.friendsHubBtn small {
  display:block;
  margin-top:4px;
  color:rgba(7,16,18,.74);
  font-size:10px;
  letter-spacing:.08em;
}

.friendsMenuButton {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}


/* NIGHTBIKE V37 CLEAN PROFILE */
.serverPrepPanel,
.profileSyncHint,
.serverPayloadHint,
.serverPrepGrid,
.serverPrepHeader,
.friendCodeRow {
  display: none !important;
}

.friendsHubTopBtn {
  margin: 12px 0 14px !important;
  border-radius: 20px !important;
  padding: 15px 14px !important;
  font-size: 14px !important;
}

.friendsHubTopBtn small {
  font-size: 11px !important;
}

@media (max-width: 720px) {
  .friendsHubTopBtn {
    margin-top: 10px !important;
  }
}


/* NIGHTBIKE V38 MENU / RACE GATE + FIND RACE */
body.nb-shell-active .hud,
body.nb-shell-active .demoHud,
body.nb-shell-active .demoHealth,
body.nb-shell-active .raceStats,
body.nb-shell-active .damageFeed,
body.nb-shell-active .mysteryAlert,
body.nb-shell-active .miniMap,
body.nb-shell-active .panel,
body.nb-shell-active .raceOnly {
  display: none !important;
}

body.nb-shell-active canvas {
  opacity: .18;
  filter: blur(1px) saturate(.75);
}

body.nb-shell-active .shellOverlay {
  background:
    radial-gradient(circle at 50% 12%, rgba(36,248,255,.16), transparent 34%),
    radial-gradient(circle at 84% 58%, rgba(255,220,138,.12), transparent 31%),
    linear-gradient(180deg, rgba(1,7,11,.96), rgba(1,7,11,.93)) !important;
  backdrop-filter: blur(7px);
}

.topActionStack {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.findRaceBtn {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 20px;
  padding: 15px 14px;
  color: #041018;
  background: linear-gradient(90deg, #ffdc8a, #ffffff, #24f8ff);
  font-weight: 1000;
  letter-spacing: .12em;
  box-shadow:
    0 0 24px rgba(255,220,138,.20),
    0 0 36px rgba(36,248,255,.18);
  cursor: pointer;
}

.findRaceBtn small {
  display: block;
  margin-top: 4px;
  color: rgba(4,16,24,.72);
  font-size: 11px;
  letter-spacing: .08em;
}

.profileCodeRow {
  display: none !important;
}

.cleanProfilePanel {
  margin-top: 6px;
}

.compactMenuActions {
  grid-template-columns: 1fr 1fr;
}

.cleanOnlinePanel {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 14px;
  border: 1px solid rgba(36,248,255,.16);
  border-radius: 17px;
  padding: 12px;
  background: rgba(0,0,0,.24);
}

.cleanOnlinePanel strong {
  color: #eaffff;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cleanOnlinePanel p {
  margin: 4px 0 6px;
  color: rgba(234,255,255,.68);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .compactMenuActions {
    grid-template-columns: 1fr;
  }
}


/* NIGHTBIKE V42 CLEAN RACE RESULTS + PODIUM */
.finish {
  z-index: 42 !important;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,220,138,.18), transparent 32%),
    radial-gradient(circle at 50% 72%, rgba(36,248,255,.14), transparent 40%),
    rgba(0,0,0,.82) !important;
  backdrop-filter: blur(8px);
}

.finish-menu-card {
  width: min(720px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 22px 18px 18px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255,220,138,.30) !important;
  background:
    linear-gradient(180deg, rgba(5,12,18,.92), rgba(3,7,12,.84)) !important;
  box-shadow:
    0 0 34px rgba(36,248,255,.18),
    0 0 74px rgba(255,220,138,.12) !important;
  text-align: center;
}

.finish-title {
  color: #ffffff !important;
  font-size: clamp(30px, 7vw, 58px) !important;
  line-height: .96 !important;
  letter-spacing: .04em !important;
  text-shadow:
    0 0 16px rgba(255,255,255,.48),
    0 0 34px rgba(36,248,255,.32),
    0 0 48px rgba(255,220,138,.22) !important;
}

.finish-copy {
  margin-top: 10px !important;
  font-size: clamp(20px, 4.8vw, 34px) !important;
  font-weight: 1000 !important;
  letter-spacing: .04em !important;
}

.finish-copy.positive,
.finish-reward.positive,
.podiumDelta.up,
.youOutsidePodium em {
  color: #ffdc8a !important;
  text-shadow: 0 0 18px rgba(255,220,138,.34);
}

.finish-copy.negative,
.podiumDelta.down {
  color: #ff5d7d !important;
  text-shadow: 0 0 18px rgba(255,93,125,.34);
}

.finish-reward.cleanRating {
  margin-top: 6px !important;
  color: #eaffff !important;
  font-size: clamp(16px, 3.4vw, 24px) !important;
  font-weight: 1000 !important;
}

.finish-wallet.cleanPlazma {
  margin: 5px 0 12px !important;
  color: rgba(234,255,255,.66) !important;
  font-size: 13px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

.clean-podium-results {
  display: block !important;
  margin: 14px auto 16px !important;
  width: 100%;
}

.cleanResultsBoard {
  width: 100%;
}

.podiumGrid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}

.podiumSlot {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: end;
  border: 1px solid rgba(36,248,255,.18);
  border-radius: 22px;
  padding: 12px 7px 10px;
  background:
    radial-gradient(circle at 50% 6%, rgba(36,248,255,.12), transparent 44%),
    rgba(0,0,0,.28);
  box-shadow: 0 0 20px rgba(36,248,255,.08);
}

.podiumSlot.me {
  border-color: rgba(255,220,138,.44);
  box-shadow:
    0 0 24px rgba(255,220,138,.12),
    0 0 24px rgba(36,248,255,.08);
}

.podium1 {
  min-height: 216px;
  background:
    radial-gradient(circle at 50% 4%, rgba(255,220,138,.20), transparent 44%),
    rgba(0,0,0,.30);
}

.podium2 {
  min-height: 178px;
}

.podium3 {
  min-height: 154px;
}

.podiumPlace {
  color: #ffdc8a;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.podiumAvatar {
  width: clamp(54px, 12vw, 82px);
  height: clamp(54px, 12vw, 82px);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.26), transparent 32%),
    linear-gradient(135deg, rgba(36,248,255,.34), rgba(255,220,138,.18)),
    rgba(0,0,0,.42);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.08),
    0 0 20px rgba(36,248,255,.16);
  overflow: hidden;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 1000;
}

.podiumAvatar.hasImage img,
.podiumAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meAvatar {
  border-color: rgba(255,220,138,.48);
}

.podiumName {
  width: 100%;
  margin-top: 8px;
  color: #eaffff;
  font-size: clamp(12px, 2.4vw, 16px);
  font-weight: 1000;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.podiumDelta {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 1000;
}

.youOutsidePodium {
  max-width: 380px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,.05);
  color: #eaffff;
  font-weight: 1000;
}

.youOutsidePodium span {
  color: rgba(234,255,255,.70);
}

.youOutsidePodium strong {
  font-size: 18px;
}

.finish-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

#quitGameBtn {
  display: none !important;
}

@media (max-width: 560px) {
  .finish-menu-card {
    padding: 18px 12px 14px !important;
  }

  .podiumGrid {
    gap: 6px;
  }

  .podiumSlot {
    border-radius: 18px;
    padding: 9px 5px 8px;
  }

  .podium1 {
    min-height: 190px;
  }

  .podium2 {
    min-height: 160px;
  }

  .podium3 {
    min-height: 146px;
  }

  .finish-actions {
    grid-template-columns: 1fr !important;
  }
}


/* NIGHTBIKE V43 FIND ANOTHER RACE FIX */
#againBtn {
  text-transform: uppercase;
}

body[data-nightbike-mode="lobby"] #finish,
body[data-nightbike-mode="race"] #finish,
body[data-nightbike-mode="countdown"] #finish {
  display: none !important;
}


/* NIGHTBIKE V44 LAP TIMES + LOBBY GANG TAGS */
.podiumTime {
  margin-top: 5px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .03em;
}

.podiumMargin {
  margin-top: 2px;
  color: rgba(234,255,255,.64);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lapTimesCard {
  max-width: 620px;
  margin: 14px auto 0;
  border: 1px solid rgba(36,248,255,.18);
  border-radius: 18px;
  padding: 10px;
  background: rgba(0,0,0,.24);
}

.lapTimesTitle {
  color: #9effff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.lapTimeRow {
  display: grid;
  grid-template-columns: 42px 1fr 74px 66px;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  color: rgba(234,255,255,.72);
  font-size: 11px;
}

.lapTimeRow.me {
  color: #ffffff;
  background: rgba(255,220,138,.08);
  box-shadow: inset 0 0 0 1px rgba(255,220,138,.14);
}

.lapTimeRow strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  color: inherit;
}

.lapTimeRow em,
.lapTimeRow b {
  font-style: normal;
  text-align: right;
  color: inherit;
}

.fastestLapTeaser {
  margin-top: 6px;
  color: rgba(255,220,138,.62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lobbyReady {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .lapTimeRow {
    grid-template-columns: 36px 1fr 64px;
  }

  .lapTimeRow b {
    display: none;
  }
}


/* NIGHTBIKE V45 PRECISION LAPS + GLOBAL RANK + PLASMA BUTTONS */
.friendsHubTopBtn,
.findRaceBtn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 74px !important;
  border-radius: 24px !important;
  font-size: clamp(18px, 5vw, 30px) !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-shadow:
    0 0 10px rgba(255,255,255,.42),
    0 0 20px rgba(36,248,255,.30);
  box-shadow:
    0 0 28px rgba(36,248,255,.24),
    0 0 44px rgba(255,220,138,.18),
    inset 0 0 26px rgba(255,255,255,.10) !important;
}

.friendsHubTopBtn::before,
.findRaceBtn::before {
  content: "BOOM BOP BAM";
  position: absolute;
  inset: auto -10% 6px -10%;
  color: rgba(4,16,24,.22);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .32em;
  text-align: center;
  pointer-events: none;
  z-index: -1;
}

.friendsHubTopBtn {
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.78), transparent 22%),
    linear-gradient(115deg, #24f8ff 0%, #ffffff 42%, #ffdc8a 74%, #ff8ad8 100%) !important;
}

.findRaceBtn {
  background:
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.82), transparent 22%),
    linear-gradient(115deg, #ffdc8a 0%, #ffffff 42%, #24f8ff 76%, #8a5cff 100%) !important;
}

.friendsHubTopBtn small,
.findRaceBtn small {
  margin-top: 7px !important;
  font-size: 11px !important;
  letter-spacing: .14em !important;
}

.rankBadge strong {
  font-size: clamp(28px, 7vw, 42px) !important;
  letter-spacing: .02em !important;
}

.leader-row {
  grid-template-columns: 42px minmax(0, 1fr) 82px;
}

.leader-row span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-time {
  font-variant-numeric: tabular-nums;
}

.podiumTime,
.lapTimeRow em {
  font-variant-numeric: tabular-nums;
}

.lapTimeRow {
  grid-template-columns: 42px 1fr 86px 78px;
}

@media (max-width: 560px) {
  .friendsHubTopBtn,
  .findRaceBtn {
    min-height: 68px !important;
    font-size: clamp(17px, 7vw, 25px) !important;
  }

  .lapTimeRow {
    grid-template-columns: 36px 1fr 78px;
  }
}


/* NIGHTBIKE V46 PROFILE CLEAN + GOD PARTICLE ROAD */
.menuStatsGrid {
  display: none !important;
}

.mapNameBox strong {
  font-size: clamp(18px, 4vw, 28px) !important;
  color: #ffffff !important;
  text-shadow:
    0 0 14px rgba(255,255,255,.40),
    0 0 26px rgba(36,248,255,.28),
    0 0 34px rgba(255,220,138,.18);
}

.mapNameBox span {
  color: #ffdc8a !important;
}

.phoneCalPanel {
  margin-top: 18px !important;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.mapNameBox {
  border-color: rgba(36,248,255,.34) !important;
  background:
    radial-gradient(circle at 18% 15%, rgba(36,248,255,.16), transparent 38%),
    rgba(0,0,0,.34) !important;
}

.mapNameBox strong {
  letter-spacing: .04em !important;
}

.demoBrand small {
  color: #9effff !important;
}

body[data-nightbike-mode="race"] .demoStatus,
body[data-nightbike-mode="countdown"] .demoStatus {
  color: #9effff;
  text-shadow:
    0 0 12px rgba(36,248,255,.36),
    0 0 24px rgba(255,220,138,.15);
}


/* NIGHTBIKE V48 LOBBY GANG LINES */
.lobbyMeta:empty {
  min-height: 1.05em;
  opacity: .28;
}

.lobbySlot .lobbyMeta {
  color: rgba(158,255,255,.78);
  font-weight: 900;
  letter-spacing: .06em;
  min-height: 1.05em;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.onlineStatus {
  transition: color .18s ease, text-shadow .18s ease;
}

.autoStartNote.launching {
  text-shadow: 0 0 18px rgba(36,248,255,.42);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.mapNameBox strong {
  letter-spacing: .075em;
}

.lobbyFeed div:first-child {
  color: #24f8ff;
  text-shadow: 0 0 16px rgba(36,248,255,.35);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.raceResultSyncCard {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(36,248,255,.34);
  background: linear-gradient(135deg, rgba(2,8,16,.92), rgba(2,20,28,.74));
  box-shadow: 0 0 24px rgba(36,248,255,.12);
  text-align: center;
  display: grid;
  gap: 4px;
}

.raceResultSyncCard span {
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 1000;
  color: rgba(160,255,255,.86);
}

.raceResultSyncCard strong {
  font-size: 13px;
  color: rgba(255,255,255,.82);
  font-weight: 850;
}

.raceResultSyncCard.synced {
  border-color: rgba(140,255,154,.42);
  box-shadow: 0 0 24px rgba(140,255,154,.15);
}

.raceResultSyncCard.synced span {
  color: #8cff9a;
}

.raceResultSyncCard.pending {
  border-color: rgba(255,220,94,.42);
  box-shadow: 0 0 24px rgba(255,220,94,.12);
}

.raceResultSyncCard.pending span {
  color: #ffdc5e;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.fastestLapRecognitionCard {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,220,94,.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(135deg, rgba(28,18,4,.92), rgba(3,14,22,.90));
  box-shadow:
    0 0 34px rgba(255,220,94,.18),
    0 0 44px rgba(36,248,255,.10),
    inset 0 0 24px rgba(255,255,255,.05);
  text-align: center;
}

.fastestLapBurst {
  color: #ffdc5e;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.fastestLapHeadline {
  margin-top: 4px;
  color: #ffffff;
  font-size: clamp(28px, 8vw, 48px);
  line-height: .98;
  font-weight: 1000;
  letter-spacing: .02em;
  text-shadow:
    0 0 14px rgba(255,255,255,.48),
    0 0 28px rgba(255,220,94,.28);
}

.fastestLapMap {
  margin-top: 4px;
  color: rgba(158,255,255,.88);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.fastestLapTime {
  margin-top: 8px;
  color: #24f8ff;
  font-size: 24px;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(36,248,255,.32);
}

.fastestLapMiniBoard {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.fastestLapMiniRow {
  display: grid;
  grid-template-columns: 52px 1fr 92px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(0,0,0,.20);
  color: rgba(234,255,255,.72);
  font-size: 11px;
}

.fastestLapMiniRow.me {
  color: #ffffff;
  background: rgba(255,220,94,.14);
  box-shadow: inset 0 0 0 1px rgba(255,220,94,.24);
}

.fastestLapMiniRow strong {
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fastestLapMiniRow em {
  font-style: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.lobbySlot.connected .lobbyReady {
  letter-spacing: .14em;
}

.lobbySlot.connected .lobbyMeta:not(:empty) {
  color: rgba(158,255,255,.86);
}

.autoStartNote.launching {
  text-shadow: 0 0 18px rgba(36,248,255,.32);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.lobbyFeed div:nth-child(2) {
  color: rgba(140,255,154,.86);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.serverOfficialResultCard {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(36,248,255,.52);
  background:
    radial-gradient(circle at 50% 0%, rgba(36,248,255,.20), transparent 34%),
    linear-gradient(135deg, rgba(2,16,26,.94), rgba(9,8,22,.92));
  box-shadow:
    0 0 34px rgba(36,248,255,.16),
    0 0 44px rgba(255,220,94,.10),
    inset 0 0 24px rgba(255,255,255,.05);
  text-align: center;
}

.serverOfficialKicker {
  color: #24f8ff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.serverOfficialWinner {
  margin-top: 5px;
  color: #ffffff;
  font-size: clamp(24px, 7vw, 42px);
  line-height: 1;
  font-weight: 1000;
  text-shadow:
    0 0 14px rgba(255,255,255,.42),
    0 0 28px rgba(36,248,255,.28);
}

.serverOfficialSub {
  margin-top: 5px;
  color: rgba(255,220,94,.90);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.serverOfficialRows {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.serverOfficialRow {
  display: grid;
  grid-template-columns: 52px 1fr 92px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  color: rgba(234,255,255,.76);
  font-size: 11px;
}

.serverOfficialRow.me {
  color: #ffffff;
  background: rgba(36,248,255,.14);
  box-shadow: inset 0 0 0 1px rgba(36,248,255,.26);
}

.serverOfficialRow strong {
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.serverOfficialRow em {
  font-style: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH / PACE PATCH */
.v59GodRailsNote {
  color: rgba(255,255,255,.88);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH
   Keep race canvas quality high, but make menu/profile/lobby/lock shell CSS safe on every tier.
   This prevents high-tier phones/laptops from getting visually trapped behind heavy overlay effects. */
html.nb-v59b-safe-shell,
body.nb-v59b-safe-shell {
  overflow: hidden;
}

html.nb-v59b-safe-shell .shellOverlay,
body.nb-v59b-safe-shell .shellOverlay,
html.nb-v59b-safe-shell .nameGate,
body.nb-v59b-safe-shell .nameGate,
html.nb-v59b-safe-shell .finish,
body.nb-v59b-safe-shell .finish,
html.nb-v59b-safe-shell #raceLobby,
body.nb-v59b-safe-shell #raceLobby,
html.nb-v59b-safe-shell #nbPortraitLockOverlay,
body.nb-v59b-safe-shell #nbPortraitLockOverlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  transform-style: flat !important;
  contain: layout paint style !important;
}

html.nb-v59b-safe-shell .shellCard,
body.nb-v59b-safe-shell .shellCard,
html.nb-v59b-safe-shell .nameCard,
body.nb-v59b-safe-shell .nameCard,
html.nb-v59b-safe-shell .menuCard,
body.nb-v59b-safe-shell .menuCard,
html.nb-v59b-safe-shell .lobbyCard,
body.nb-v59b-safe-shell .lobbyCard,
html.nb-v59b-safe-shell .finish-board,
body.nb-v59b-safe-shell .finish-board,
html.nb-v59b-safe-shell .profileBuilderPanel,
body.nb-v59b-safe-shell .profileBuilderPanel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  transform-style: flat !important;
  max-height: min(92svh, 92vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html:not(.nb-v19-landscape-blocked) #nbPortraitLockOverlay,
body:not(.nb-v19-landscape-blocked) #nbPortraitLockOverlay,
html[data-nightbike-unlock] #nbPortraitLockOverlay,
body[data-nightbike-unlock] #nbPortraitLockOverlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (orientation: landscape) and (pointer: fine) {
  html.nb-v19-landscape-blocked #nbPortraitLockOverlay,
  body.nb-v19-landscape-blocked #nbPortraitLockOverlay {
    display: none !important;
  }
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH
   Fixes stale/mixed mobile profile shell: missing buttons, huge/wrong model preview, rank defaulting visually. */
html.nb-v59b-safe-shell .topActionStack,
body.nb-v59b-safe-shell .topActionStack,
.topActionStack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 12px 0 14px !important;
}

#friendsHubBtn,
#findRaceBtn,
#joinRaceBtn,
#changeNameBtn,
#phoneCalBtn,
.nb-v59c-button-visible {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 18px !important;
  font-weight: 1000 !important;
  letter-spacing: .08em !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#findRaceBtn,
#friendsHubBtn {
  min-height: 72px !important;
  flex-direction: column !important;
}

#findRaceBtn small,
#friendsHubBtn small {
  display: block !important;
  margin-top: 4px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

#profileBuilderPanel.profileBuilderPanel,
.profileBuilderPanel.cleanProfilePanel {
  display: grid !important;
  grid-template-columns: minmax(86px, 120px) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.profileBuilderInfo,
.profileModelPreview,
.modelSelectRow {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.profileModelPreview {
  max-width: 100% !important;
  overflow: hidden !important;
}

.profileModelPreview .modelPreviewStage,
.modelPreviewStage {
  height: clamp(118px, 26svh, 172px) !important;
  min-height: 118px !important;
  max-height: 172px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  contain: layout paint style !important;
}

.profileModelPreview .modelPreviewStage img,
#profileModelPreviewImg {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 82% !important;
  max-height: 82% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  margin: auto !important;
}

.profileModelPreview[data-model-kind="rider"] #profileModelPreviewImg {
  max-width: 58% !important;
  max-height: 84% !important;
}

.profileModelPreview[data-model-kind="sport"] #profileModelPreviewImg,
.profileModelPreview[data-model-kind="trike"] #profileModelPreviewImg {
  max-width: 82% !important;
  max-height: 76% !important;
}

#menuRank {
  min-width: 3.5em !important;
  text-align: right !important;
}

@media (max-width: 760px), (pointer: coarse) {
  .shellOverlay {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-items: start !important;
    justify-items: center !important;
    place-items: start center !important;
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(100px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .shellCard,
  .menuCard,
  .nameCard,
  .lobbyCard {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 14px !important;
    border-radius: 20px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .menuTopline {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    align-items: start !important;
  }

  #menuPlayerName {
    font-size: clamp(28px, 10vw, 46px) !important;
    line-height: .95 !important;
    word-break: break-word !important;
  }

  .rankBadge {
    min-width: 88px !important;
    padding: 10px 11px !important;
    text-align: right !important;
  }

  .rankBadge strong {
    font-size: clamp(20px, 7vw, 30px) !important;
  }

  .menuStatsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 12px 0 !important;
  }

  .menuStat {
    padding: 10px 8px !important;
    min-width: 0 !important;
  }

  .menuStat strong {
    font-size: clamp(16px, 5vw, 22px) !important;
  }

  .menuActions.compactMenuActions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 100% !important;
  }
}

@media (max-width: 430px) {
  #profileBuilderPanel.profileBuilderPanel,
  .profileBuilderPanel.cleanProfilePanel {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }

  .profileAvatarBox {
    max-width: 92px !important;
  }

  .profileAvatarPreview {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
  }

  .profileModelPreview .modelPreviewStage,
  .modelPreviewStage {
    height: 128px !important;
    min-height: 128px !important;
    max-height: 128px !important;
  }
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.lobbyTruthError {
  color: #ff5d7a;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,93,122,.52);
}

.autoStartNote.serverError {
  color: #ffffff !important;
  background: rgba(255,47,91,.18) !important;
  border-color: rgba(255,47,91,.50) !important;
  box-shadow: 0 0 22px rgba(255,47,91,.16) !important;
}

html[data-nightbike-lobby-source] .lobbyFeed div:first-child::before {
  content: "" !important;
  color: rgba(36,248,255,.92);
  font-weight: 1000;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.rankBadgeButton {
  cursor: pointer !important;
  border: 1px solid rgba(255,220,138,.32) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.rankBadgeButton:active {
  transform: translateY(1px);
}

.rankBadgeButton::after {
  content: "TAP";
  display: block;
  margin-top: 4px;
  color: rgba(36,248,255,.86);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .16em;
}

.rankWindow {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  background: radial-gradient(circle at 50% 12%, rgba(255,220,138,.16), transparent 34%), radial-gradient(circle at 50% 78%, rgba(36,248,255,.14), transparent 42%), rgba(0,0,0,.72);
}

.rankWindow.hidden {
  display: none !important;
}

.rankWindowCard {
  width: min(760px, calc(100vw - 22px));
  max-height: min(88svh, 88vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(36,248,255,.34);
  border-radius: 28px;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(180deg, rgba(3,10,18,.96), rgba(0,0,0,.88)), radial-gradient(circle at 50% 0%, rgba(36,248,255,.18), transparent 44%);
  color: #eaffff;
  box-shadow: 0 0 36px rgba(36,248,255,.22), 0 0 90px rgba(255,220,138,.10);
}

.rankWindowHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.rankWindowHeader h2 {
  margin: 5px 0 14px;
  color: #ffffff;
  font-size: clamp(30px, 8vw, 54px);
  line-height: .92;
  letter-spacing: .05em;
  text-shadow: 0 0 16px rgba(255,255,255,.72), 0 0 34px rgba(36,248,255,.32);
}

.rankWindowClose {
  width: 46px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  font-size: 28px !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.rankHero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(255,220,138,.30);
  border-radius: 20px;
  background: rgba(255,220,138,.07);
}

.rankHero span,
.rankHero em {
  color: rgba(234,255,255,.76);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-style: normal;
}

.rankHero strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #ffdc8a;
  font-size: clamp(34px, 10vw, 64px);
  font-weight: 1000;
  letter-spacing: .04em;
}

.rankSection {
  margin-top: 14px;
}

.rankSectionTitle {
  margin-bottom: 8px;
  color: #24f8ff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .18em;
}

.rankList {
  display: grid;
  gap: 7px;
}

.rankListRow {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(36,248,255,.16);
  border-radius: 16px;
  padding: 10px 11px;
  background: rgba(0,0,0,.26);
}

.rankListRow.you {
  border-color: rgba(255,220,138,.58);
  background: linear-gradient(90deg, rgba(255,220,138,.16), rgba(36,248,255,.08)), rgba(0,0,0,.28);
  box-shadow: 0 0 22px rgba(255,220,138,.12);
}

.rankListRow.topRow:nth-child(1) {
  border-color: rgba(255,220,138,.72);
}

.rankListNumber {
  color: #ffdc8a;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.rankListIdentity strong,
.rankListStats strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rankListIdentity span,
.rankListStats span {
  display: block;
  margin-top: 3px;
  color: rgba(191,255,248,.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rankListStats {
  text-align: right;
}

.rankFinePrint,
.rankLoading,
.rankEmpty,
.rankError {
  margin-top: 12px;
  color: rgba(234,255,255,.72);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
}

.rankError {
  border: 1px solid rgba(255,93,122,.42);
  border-radius: 18px;
  padding: 14px;
  color: #ffffff;
  background: rgba(255,93,122,.12);
}

.rankError strong,
.rankError span {
  display: block;
}

.rankWindowActions {
  margin-top: 14px;
}

@media (max-width: 520px) {
  .rankListRow {
    grid-template-columns: 58px 1fr;
  }

  .rankListStats {
    grid-column: 2;
    text-align: left;
  }

  .rankHero {
    grid-template-columns: 1fr;
  }

  .rankHero strong {
    grid-row: auto;
    grid-column: auto;
  }
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.cleanResultsBoard.hasServerOfficialResult {
  border-color: rgba(255,220,138,.38) !important;
}

.serverOfficialResultCard.authoritative {
  order: -999;
  margin: 0 0 16px !important;
  border: 1px solid rgba(255,220,138,.62) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,220,138,.20), transparent 44%),
    linear-gradient(180deg, rgba(12,10,2,.92), rgba(2,8,12,.86)) !important;
  box-shadow:
    0 0 34px rgba(255,220,138,.20),
    0 0 62px rgba(36,248,255,.14) !important;
}

.serverOfficialSub {
  margin: 4px 0 10px;
  color: rgba(234,255,255,.76);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.lobbyFeed div:nth-child(4) {
  color: rgba(255,220,138,.92);
  font-weight: 1000;
}

.serverOfficialResultCard.authoritative .serverOfficialKicker::before {
  content: "V60 LIVE FOUNDATION · ";
  color: rgba(36,248,255,.95);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.serverOfficialResultCard.authoritative .serverOfficialKicker::before {
  content: "SERVER INSTANCE · ";
  color: rgba(36,248,255,.95);
}

.lobbyFeed div:nth-child(4)::after {
  content: " · SERVER INSTANCE";
  color: rgba(36,248,255,.88);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.loading {
  overflow: hidden;
}

.loadingMapArt {
  width: min(78vw, 420px);
  aspect-ratio: 16 / 9;
  margin: 0 auto 14px;
  border: 1px solid rgba(36,248,255,.36);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.28)),
    var(--nightbike-map-loading-art, url('/nightbike/assets/maps/bad-place-hellgate-circuit.jpg')) center / cover no-repeat;
  box-shadow:
    0 0 24px rgba(36,248,255,.22),
    0 0 62px rgba(93,94,255,.12);
}

.loadingTitle {
  font-weight: 1000;
  letter-spacing: .10em;
}

.loadingSub {
  margin-top: 5px;
  color: rgba(191,255,248,.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html[data-nightbike-lobby-source] .lobbyFeed div:first-child::after {
  content: " · V62 FROZEN SECTOR READY";
  color: rgba(141,247,255,.86);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
html[data-nightbike-map-key="map4"] .loadingMapArt {
  border-color: rgba(255,49,88,.42);
  box-shadow:
    0 0 26px rgba(36,248,255,.22),
    0 0 68px rgba(255,49,88,.13);
}

html[data-nightbike-map-key="map4"] .loadingSub::after {
  content: " · Space arena online";
  color: rgba(36,248,255,.84);
}

html[data-nightbike-map-key="map4"] .lobbyFeed div:first-child::after {
  content: " · V63 ORBITAL VOID READY";
  color: rgba(255,49,88,.88);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
html[data-nightbike-map-key="map2"] .loadingMapArt {
  border-color: rgba(36,248,255,.44);
  box-shadow:
    0 0 26px rgba(36,248,255,.24),
    0 0 70px rgba(255,49,88,.14),
    inset 0 0 36px rgba(255,255,255,.05);
}

html[data-nightbike-map-key="map2"] .loadingSub::after {
  content: " · Hydro fortress online";
  color: rgba(36,248,255,.84);
}

html[data-nightbike-map-key="map2"] .lobbyFeed div:first-child::after {
  content: " · V64 HYDRO FORTRESS READY";
  color: rgba(36,248,255,.88);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
html[data-nightbike-map-key="map1"] .loadingMapArt {
  border-color: rgba(255,220,138,.48);
  box-shadow:
    0 0 30px rgba(255,220,138,.24),
    0 0 78px rgba(168,72,255,.18),
    inset 0 0 44px rgba(36,248,255,.08);
}

html[data-nightbike-map-key="map1"] .loadingSub::after {
  content: " · Plasma genesis online";
  color: rgba(255,220,138,.88);
}

html[data-nightbike-map-key="map1"] .lobbyFeed div:first-child::after {
  content: " · V65 PLASMA GENESIS READY";
  color: rgba(255,220,138,.92);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
html[data-nightbike-map-key="map5"] .loadingMapArt {
  border-color: rgba(255,49,88,.42);
  box-shadow:
    0 0 28px rgba(36,248,255,.22),
    0 0 72px rgba(255,92,38,.16),
    inset 0 0 42px rgba(255,138,61,.06);
}

html[data-nightbike-map-key="map5"] .loadingSub::after {
  content: " · Abandoned base online";
  color: rgba(255,138,61,.88);
}

html[data-nightbike-map-key="map5"] .lobbyFeed div:first-child::after {
  content: " · V66 ABANDONED BASE READY";
  color: rgba(255,138,61,.92);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
html[data-nightbike-map-key="map6"] .loadingMapArt {
  border-color: rgba(255,49,88,.42);
  box-shadow:
    0 0 28px rgba(36,248,255,.24),
    0 0 72px rgba(255,112,38,.18),
    inset 0 0 42px rgba(255,138,61,.08);
}

html[data-nightbike-map-key="map6"] .loadingSub::after {
  content: " · Gothic arena online";
  color: rgba(255,138,61,.92);
}

html[data-nightbike-map-key="map6"] .lobbyFeed div:first-child::after {
  content: " · V67 CAMPGROUNDS READY";
  color: rgba(255,138,61,.92);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
html[data-nightbike-map-key="map7"] .loadingMapArt {
  border-color: rgba(36,248,255,.46);
  box-shadow:
    0 0 30px rgba(36,248,255,.24),
    0 0 78px rgba(255,72,22,.22),
    inset 0 0 46px rgba(255,138,61,.10);
}

html[data-nightbike-map-key="map7"] .loadingSub::after {
  content: " · Hellgate online";
  color: rgba(255,138,61,.94);
}

html[data-nightbike-map-key="map7"] .lobbyFeed div:first-child::after {
  content: " · V68 BAD PLACE READY";
  color: rgba(255,138,61,.92);
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH PATCH */
html[data-nightbike-sync-version="v69"] body::before {
  content: "";
  display: none;
}


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V71 RESIDENT MOTION + FINISH WATCHDOG */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.serverPendingBoard { padding: 18px; }

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */


/* NIGHTBIKE V76 SERVER TRUTH + LOBBY MAP PREVIEW */
.lobbyMapPreview {
  display: grid;
  grid-template-columns: minmax(148px, 240px) 1fr;
  gap: 14px;
  align-items: stretch;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(36,248,255,.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(36,248,255,.10), rgba(255,220,138,.045)),
    rgba(255,255,255,.035);
  box-shadow: inset 0 0 24px rgba(36,248,255,.055), 0 0 24px rgba(0,0,0,.20);
}

.lobbyMapArt {
  min-height: 118px;
  border-radius: 18px;
  border: 1px solid rgba(36,248,255,.34);
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.30)),
    var(--nightbike-map-loading-art, url('/nightbike/assets/maps/bad-place-hellgate-circuit.jpg')) center / cover no-repeat;
  box-shadow:
    0 0 22px rgba(36,248,255,.18),
    inset 0 0 36px rgba(0,0,0,.26);
}

.lobbyMapCopy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.lobbyMapCopy strong {
  margin-top: 5px;
  color: #ffffff;
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(36,248,255,.65);
}

.lobbyMapCopy p {
  margin: 8px 0 8px;
  color: rgba(191,255,248,.78);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lobbyMapCopy small {
  color: rgba(255,220,138,.86);
  font-weight: 1000;
  letter-spacing: .12em;
}

@media (max-width: 640px) {
  .lobbyMapPreview {
    grid-template-columns: 1fr;
  }
  .lobbyMapArt {
    min-height: 134px;
  }
}

/* NIGHTBIKE V77 RESIDENT FINISH + REMOTE SMOOTHING */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V83 FULL QUEUE + RESIDENT RESULTS */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.fixedPodiumOrder .podium1 {
  grid-column: 2;
  grid-row: 1;
}

.fixedPodiumOrder .podium2 {
  grid-column: 1;
  grid-row: 1;
}

.fixedPodiumOrder .podium3 {
  grid-column: 3;
  grid-row: 1;
}

.podiumWinnerBanner {
  max-width: 620px;
  margin: 0 auto 10px;
  border: 1px solid rgba(255,220,138,.58);
  border-radius: 18px;
  padding: 9px 12px;
  color: #ffdc8a;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,220,138,.20), transparent 55%),
    rgba(0,0,0,.36);
  font-size: clamp(14px, 3.8vw, 22px);
  font-weight: 1000;
  text-align: center;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow:
    0 0 26px rgba(255,220,138,.14),
    0 0 32px rgba(36,248,255,.08);
}

.podiumSlot.dnfPodium,
.lapTimeRow.dnfRow {
  opacity: .72;
  border-color: rgba(255,255,255,.16);
}

.podiumSlot.dnfPodium .podiumPlace,
.lapTimeRow.dnfRow span,
.lapTimeRow.dnfRow em {
  color: rgba(255,120,120,.96) !important;
  font-weight: 1000;
}

.podiumSlot.dnfPodium .podiumTime {
  color: rgba(255,120,120,.96);
  letter-spacing: .12em;
}

@media (max-width: 560px) {
  .fixedPodiumOrder {
    grid-template-columns: 1fr 1.12fr 1fr;
  }

  .fixedPodiumOrder .podium1 {
    grid-column: 2;
  }

  .fixedPodiumOrder .podium2 {
    grid-column: 1;
  }

  .fixedPodiumOrder .podium3 {
    grid-column: 3;
  }
}

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */


/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
#profileBuilderPanel.profileBuilderPanel,
.profileBuilderPanel.cleanProfilePanel {
  grid-template-columns: minmax(104px, 128px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  overflow: visible !important;
}

.profileModelBox {
  align-items: center !important;
  justify-content: start !important;
  text-align: center !important;
  min-width: 0 !important;
}

.profileAvatarMiniLabel,
.profileAvatarModelName {
  width: 100%;
  color: rgba(191,255,248,.88);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.profileAvatarModelName {
  color: rgba(255,220,138,.92);
  font-size: 10px;
  letter-spacing: .08em;
}

.profileModelMiniPreview.profileAvatarPreview,
.profileAvatarPreview.profileModelMiniPreview {
  width: min(108px, 100%) !important;
  height: 108px !important;
  min-width: 0 !important;
  min-height: 108px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(36,248,255,.32) !important;
  background:
    radial-gradient(circle at 50% 72%, rgba(255,220,138,.16), transparent 38%),
    radial-gradient(circle at 50% 34%, rgba(36,248,255,.22), transparent 46%),
    rgba(0,0,0,.34) !important;
  box-shadow:
    inset 0 0 22px rgba(36,248,255,.08),
    0 0 22px rgba(36,248,255,.10) !important;
}

.profileModelMiniPreview img,
.profileAvatarPreview.profileModelMiniPreview img {
  object-fit: contain !important;
  width: 92% !important;
  height: 86% !important;
}

.modelSelectRow label {
  display: block !important;
  margin: 0 0 2px !important;
  line-height: 1.1 !important;
}

.profilePhotoFrame.profileModelPreview {
  padding: 10px !important;
  border-radius: 18px !important;
  overflow: visible !important;
}

.profilePhotoStage.modelPreviewStage,
.profileModelPreview .profilePhotoStage {
  height: clamp(168px, 28svh, 250px) !important;
  min-height: 168px !important;
  max-height: 250px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-color: rgba(36,248,255,.22) !important;
}

.profileLargeAvatarPreview {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  overflow: hidden;
  color: #eaffff;
  background:
    radial-gradient(circle at 50% 30%, rgba(36,248,255,.20), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.32));
}

.profileLargeAvatarPreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.profilePhotoPlaceholder {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
}

.profilePhotoPlaceholder strong {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(36,248,255,.35);
  background: rgba(0,0,0,.30);
  color: #ffffff;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: .04em;
  box-shadow: 0 0 20px rgba(36,248,255,.12);
}

.profilePhotoPlaceholder span {
  color: rgba(191,255,248,.84);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profilePhotoUploadBtn,
.profilePhotoClearBtn {
  margin-top: 8px !important;
}

.friendsHubTopBtn,
.findRaceBtn {
  min-height: 70px !important;
}

#findRaceBtn {
  order: 1;
}

#friendsHubBtn {
  order: 2;
}

@media (max-width: 430px) {
  #profileBuilderPanel.profileBuilderPanel,
  .profileBuilderPanel.cleanProfilePanel {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .profileModelMiniPreview.profileAvatarPreview,
  .profileAvatarPreview.profileModelMiniPreview {
    width: 86px !important;
    height: 86px !important;
    min-height: 86px !important;
  }

  .profilePhotoStage.modelPreviewStage,
  .profileModelPreview .profilePhotoStage {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }

  .profileAvatarMiniLabel,
  .profileAvatarModelName {
    font-size: 9px !important;
    letter-spacing: .08em !important;
  }
}

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.loadingMapArt {
  filter: saturate(.88) contrast(1.08) brightness(.82) !important;
}

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
.loadingMapArt,
.lobbyMapArt {
  filter: saturate(1.08) contrast(1.08) brightness(.90) !important;
}

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* NIGHTBIKE V144 GUARD TILT + RESULTS */
.tiltSetupDjAvatar {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(130%);
  z-index: 2147481000;
  width: min(86vw, 360px);
  padding: 12px 14px 14px;
  border: 1px solid rgba(36,248,255,.30);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(36,248,255,.17), transparent 40%),
    linear-gradient(135deg, rgba(4,16,24,.92), rgba(0,0,0,.86));
  box-shadow: 0 0 28px rgba(36,248,255,.18), 0 0 50px rgba(34,255,136,.10);
  opacity: 0;
  pointer-events: none;
  transition: transform .24s ease, opacity .24s ease;
}

.tiltSetupDjAvatar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.tiltSetupTrack {
  position: relative;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(36,248,255,.10), rgba(34,255,136,.10), rgba(255,66,230,.10)),
    rgba(0,0,0,.28);
}

.tiltSetupTrack::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(36,248,255,.70), rgba(34,255,136,.65), transparent);
  box-shadow: 0 0 14px rgba(36,248,255,.32);
}

.tiltSetupDjImg {
  position: relative;
  z-index: 2;
  width: 70px;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(36,248,255,.35));
  transition: transform .10s linear;
  transform-origin: 50% 82%;
}

.tiltSetupShadow {
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 76px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%);
}

.tiltSetupHint {
  margin-top: 9px;
  color: rgba(234,255,255,.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: center;
}

.resultsEloPanel {
  margin: 12px auto 14px;
  width: min(94vw, 720px);
  padding: 14px;
  border: 1px solid rgba(36,248,255,.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(34,255,136,.12), transparent 42%),
    radial-gradient(circle at 100% 0, rgba(255,66,230,.10), transparent 42%),
    rgba(0,0,0,.42);
  box-shadow: 0 0 26px rgba(36,248,255,.13);
}

.eloResultHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
  color: rgba(234,255,255,.74);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eloResultHeader strong {
  color: #22ff88;
  font-size: 14px;
  text-shadow: 0 0 14px rgba(34,255,136,.35);
}

.eloResultList {
  display: grid;
  gap: 8px;
}

.eloResultCard {
  display: grid;
  grid-template-columns: 46px 1fr 72px 58px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  animation: nbV140EloPop .56s cubic-bezier(.2,1.2,.2,1) both;
  animation-delay: var(--delay, 0ms);
}

.eloResultCard.gain {
  border-color: rgba(34,255,136,.28);
  box-shadow: inset 0 0 22px rgba(34,255,136,.055);
}

.eloResultCard.loss {
  border-color: rgba(255,49,88,.28);
  box-shadow: inset 0 0 22px rgba(255,49,88,.045);
}

.eloResultPlace {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  color: #dfffe8;
  font-weight: 1000;
  border: 1px solid rgba(36,248,255,.24);
}

.eloResultMain strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.eloResultMain span {
  display: block;
  color: rgba(234,255,255,.62);
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.eloResultDelta {
  color: #22ff88;
  font-size: 22px;
  font-weight: 1000;
  text-align: right;
  text-shadow: 0 0 18px rgba(34,255,136,.32);
}

.eloResultCard.loss .eloResultDelta {
  color: #ff3158;
  text-shadow: 0 0 18px rgba(255,49,88,.28);
}

.eloResultMove {
  text-align: right;
}

.eloResultMove em {
  display: block;
  color: rgba(234,255,255,.52);
  font-style: normal;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.eloResultMove b {
  display: block;
  color: #24f8ff;
  font-size: 15px;
  font-weight: 1000;
}

.nbV140ResultDebugHidden {
  display: none !important;
}

@keyframes nbV140EloPop {
  from { opacity: 0; transform: translateY(12px) scale(.96); filter: blur(3px); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.015); filter: blur(0); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 460px) {
  .eloResultCard {
    grid-template-columns: 38px 1fr 58px;
  }
  .eloResultMove {
    display: none;
  }
  .eloResultDelta {
    font-size: 19px;
  }
}

/* NIGHTBIKE V144 GUARD SETUP + RESULTS */
#resultsEloPanel.v141Direct {
  margin: 12px auto 14px;
  width: min(94vw, 760px);
  padding: 14px;
  border: 1px solid rgba(34,255,136,.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(34,255,136,.16), transparent 42%),
    radial-gradient(circle at 100% 0, rgba(36,248,255,.12), transparent 44%),
    rgba(0,0,0,.50);
  box-shadow: 0 0 30px rgba(34,255,136,.14), 0 0 40px rgba(36,248,255,.09);
}

.eloResultCard.me {
  border-color: rgba(255,220,138,.46);
  box-shadow:
    inset 0 0 22px rgba(255,220,138,.08),
    0 0 22px rgba(255,220,138,.10);
}

.nbV141QuietOfficial,
#raceResultSyncCard,
.raceResultSyncCard {
  display: none !important;
}

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */

/* Race Now / Gang Gang become large plasma text actions instead of boxed buttons. */
.topActionStack {
  gap: 2px !important;
  margin: 12px 0 18px !important;
  background: transparent !important;
}

#findRaceBtn,
#friendsHubBtn.friendsHubTopBtn,
.friendsHubTopBtn,
.findRaceBtn {
  min-height: 58px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 6px 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
  overflow: visible !important;
  position: relative !important;
  isolation: isolate !important;
  font-size: clamp(34px, 10vw, 68px) !important;
  line-height: .86 !important;
  font-weight: 1000 !important;
  letter-spacing: .018em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.75),
    0 0 18px rgba(36,248,255,.66),
    0 0 36px rgba(34,255,136,.28),
    0 0 58px rgba(255,66,230,.20) !important;
  -webkit-text-stroke: 1px rgba(36,248,255,.22);
}

#findRaceBtn {
  color: #ffdc8a !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.80),
    0 0 18px rgba(255,220,138,.72),
    0 0 36px rgba(36,248,255,.38),
    0 0 58px rgba(255,66,230,.22) !important;
}

#friendsHubBtn.friendsHubTopBtn,
.friendsHubTopBtn {
  color: #24f8ff !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.80),
    0 0 18px rgba(36,248,255,.78),
    0 0 38px rgba(34,255,136,.32),
    0 0 60px rgba(255,66,230,.24) !important;
}

#findRaceBtn::after,
#friendsHubBtn.friendsHubTopBtn::after,
.friendsHubTopBtn::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(36,248,255,.90), rgba(255,220,138,.90), transparent);
  box-shadow: 0 0 16px rgba(36,248,255,.55);
  opacity: .72;
  z-index: -1;
}

#findRaceBtn::before,
#friendsHubBtn.friendsHubTopBtn::before,
.friendsHubTopBtn::before {
  content: none !important;
}

#findRaceBtn small,
#friendsHubBtn small,
.friendsHubTopBtn small {
  display: block !important;
  margin-top: 7px !important;
  color: rgba(234,255,255,.68) !important;
  font-size: clamp(10px, 2.8vw, 13px) !important;
  line-height: 1.1 !important;
  letter-spacing: .18em !important;
  text-shadow: 0 0 12px rgba(36,248,255,.34) !important;
  -webkit-text-stroke: 0 !important;
}

/* V142 rank panel: the left number is World Rank, not race finish place. */
#resultsEloPanel.v142RankOrder .eloResultPlace {
  color: #22ff88;
  width: 48px;
  height: 40px;
  font-size: 15px;
  border-color: rgba(34,255,136,.38);
  box-shadow: inset 0 0 18px rgba(34,255,136,.10), 0 0 18px rgba(34,255,136,.12);
}

.eloResultExplain {
  margin: -4px 0 10px;
  color: rgba(234,255,255,.62);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width: 460px) {
  #findRaceBtn,
  #friendsHubBtn.friendsHubTopBtn,
  .friendsHubTopBtn,
  .findRaceBtn {
    min-height: 50px !important;
    font-size: clamp(30px, 12vw, 52px) !important;
  }
}

/* NIGHTBIKE V144 SELF GUARD LOBBY POLISH */
#resultsEloPanel.v143RaceOrder .eloResultPlace {
  width: 56px;
  height: 42px;
  border-radius: 999px;
  color: #ffdc8a;
  border-color: rgba(255,220,138,.42);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
  box-shadow: inset 0 0 18px rgba(255,220,138,.10), 0 0 18px rgba(255,220,138,.13);
}

.worldRankTag {
  display: inline-block;
  margin-left: 7px;
  color: #22ff88;
  font-size: .92em;
  letter-spacing: .02em;
  text-shadow:
    0 0 10px rgba(34,255,136,.42),
    0 0 18px rgba(36,248,255,.22);
}

#resultsEloPanel.v143RaceOrder .eloResultHeader strong {
  color: #24f8ff;
}

#resultsEloPanel.v143RaceOrder .eloResultExplain {
  color: rgba(234,255,255,.68);
}

@media (max-width: 460px) {
  #resultsEloPanel.v143RaceOrder .eloResultPlace {
    width: 46px;
    height: 38px;
    font-size: 10px;
  }
  .worldRankTag {
    margin-left: 4px;
  }
}

/* NIGHTBIKE V144 SELF GUARD + LOBBY POLISH */

/* No more private-lobby debug table/copy. */
html[data-nightbike-lobby-source] .lobbyFeed div:first-child::before {
  content: "" !important;
  display: none !important;
}
.lobbyTruthError,
.lobbyTruthTable,
.lobbyTruthRow,
.lobbyDebug,
.lobbyDebugTable,
[data-lobby-debug],
[data-debug="lobby"] {
  display: none !important;
}

/* Make Race Now / Gang Gang read as clickable neon text, not static labels. */
#findRaceBtn,
#friendsHubBtn.friendsHubTopBtn,
.friendsHubTopBtn,
.findRaceBtn {
  cursor: pointer !important;
  transform: translateZ(0);
  animation: nbV144PlasmaTextBreath 2.4s ease-in-out infinite;
}

#findRaceBtn::after,
#friendsHubBtn.friendsHubTopBtn::after,
.friendsHubTopBtn::after {
  height: 3px !important;
  bottom: -1px !important;
  background-size: 220% 100% !important;
  animation: nbV144PlasmaUnderline 1.45s linear infinite;
}

#findRaceBtn:hover,
#findRaceBtn:focus-visible,
#friendsHubBtn.friendsHubTopBtn:hover,
#friendsHubBtn.friendsHubTopBtn:focus-visible,
.friendsHubTopBtn:hover,
.friendsHubTopBtn:focus-visible {
  transform: translateY(-1px) scale(1.015) !important;
  filter: brightness(1.15) saturate(1.15);
}

#findRaceBtn:active,
#friendsHubBtn.friendsHubTopBtn:active,
.friendsHubTopBtn:active {
  transform: translateY(1px) scale(.985) !important;
  filter: brightness(1.35);
}

#findRaceBtn small::before,
#friendsHubBtn small::before,
.friendsHubTopBtn small::before {
  content: "TAP · ";
  color: #22ff88;
  text-shadow: 0 0 12px rgba(34,255,136,.55);
}

@keyframes nbV144PlasmaTextBreath {
  0%, 100% { letter-spacing: .018em; filter: brightness(1); }
  50% { letter-spacing: .034em; filter: brightness(1.18); }
}

@keyframes nbV144PlasmaUnderline {
  0% { background-position: 0% 50%; opacity: .55; }
  50% { opacity: 1; }
  100% { background-position: 220% 50%; opacity: .55; }
}

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */
.v147CleanFinishCard {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  width: min(720px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 20px) !important;
  overflow-y: auto !important;
}

.v147CleanFinishCard .finish-title {
  margin: 0 !important;
  font-size: clamp(40px, 10vw, 78px) !important;
  line-height: .88 !important;
  letter-spacing: .025em !important;
  text-transform: none !important;
}

.v147CleanFinishCard .finish-copy.v147DeltaTop {
  margin: 0 0 2px !important;
  font-size: clamp(34px, 9vw, 68px) !important;
  line-height: .85 !important;
  letter-spacing: .03em !important;
  color: #22ff88 !important;
  text-shadow:
    0 0 12px rgba(255,255,255,.72),
    0 0 26px rgba(34,255,136,.50),
    0 0 48px rgba(36,248,255,.26) !important;
}

.v147CleanFinishCard .finish-copy.negative.v147DeltaTop {
  color: #ff3158 !important;
  text-shadow:
    0 0 12px rgba(255,255,255,.55),
    0 0 24px rgba(255,49,88,.42) !important;
}

.v147CleanFinishCard .finish-reward,
.v147CleanFinishCard .finish-wallet,
.v147CleanFinishCard #quitGameBtn,
.v147CleanFinishCard .cleanResultsBoard,
.v147CleanFinishCard .raceResultSyncCard,
.v147CleanFinishCard #raceResultSyncCard {
  display: none !important;
}

.finish-actions-top,
.finish-actions-bottom {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
}

.v147RaceAgainBtn,
.v147ReturnMenuBtn {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: auto !important;
  width: auto !important;
  padding: 4px 12px 8px !important;
  color: #ffdc8a !important;
  font-size: clamp(30px, 8.5vw, 58px) !important;
  line-height: .90 !important;
  font-weight: 1000 !important;
  letter-spacing: .018em !important;
  text-transform: none !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.78),
    0 0 18px rgba(255,220,138,.68),
    0 0 36px rgba(36,248,255,.35),
    0 0 58px rgba(255,66,230,.20) !important;
  -webkit-text-stroke: 1px rgba(36,248,255,.18);
  animation: nbV144PlasmaTextBreath 2.4s ease-in-out infinite;
  position: relative !important;
  cursor: pointer !important;
}

.v147ReturnMenuBtn {
  color: #24f8ff !important;
  font-size: clamp(24px, 7vw, 46px) !important;
  margin-top: 0 !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.75),
    0 0 18px rgba(36,248,255,.72),
    0 0 36px rgba(34,255,136,.28) !important;
}

.v147RaceAgainBtn::after,
.v147ReturnMenuBtn::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(36,248,255,.92), rgba(255,220,138,.90), transparent);
  box-shadow: 0 0 16px rgba(36,248,255,.55);
  background-size: 220% 100%;
  animation: nbV144PlasmaUnderline 1.45s linear infinite;
}

#resultsEloPanel.v143RaceOrder {
  margin: 6px auto 4px !important;
}

.v147WinnerLine {
  margin: 6px auto 2px;
  color: #ffffff;
  font-size: clamp(25px, 7.5vw, 50px);
  font-weight: 1000;
  letter-spacing: .025em;
  text-transform: none;
  text-shadow:
    0 0 10px rgba(255,255,255,.58),
    0 0 22px rgba(255,220,138,.34),
    0 0 34px rgba(36,248,255,.24);
}

.v147CleanFinishCard .finish-board {
  width: 100% !important;
  margin: 0 auto !important;
}

/* NIGHTBIKE V148 LANDSCAPE TILT + MAP RESULT ART */
html.nb-v148-landscape-preferred::before {
  content: "";
  display: none;
}

/* The old portrait blocker stays disabled. Landscape is preferred, portrait is fallback. */
#nbPortraitLockOverlay,
.nb-v19-landscape-blocked #nbPortraitLockOverlay,
html.nb-v19-landscape-blocked::before,
body.nb-v19-landscape-blocked::before {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Results get the map loading art as a cinematic background. */
.finish.v148MapResult {
  position: fixed !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,220,138,.14), transparent 32%),
    radial-gradient(circle at 50% 72%, rgba(36,248,255,.14), transparent 40%),
    rgba(0,0,0,.88) !important;
}

.finish.v148MapResult::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.50), rgba(0,0,0,.76)),
    var(--v148-result-art, var(--nightbike-map-loading-art)) center/cover no-repeat;
  filter: saturate(1.20) contrast(1.06) brightness(.78);
  transform: scale(1.035);
}

.finish.v148MapResult::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 15%, rgba(36,248,255,.20), transparent 35%),
    radial-gradient(circle at 50% 82%, rgba(255,220,138,.14), transparent 42%),
    linear-gradient(90deg, rgba(0,0,0,.38), transparent 28%, transparent 72%, rgba(0,0,0,.38));
}

.finish.v148MapResult .finish-menu-card {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,11,18,.82), rgba(2,6,12,.78)) !important;
  backdrop-filter: blur(7px);
}

.finish.v148MapResult #resultsEloPanel.v143RaceOrder {
  background:
    radial-gradient(circle at 0 0, rgba(34,255,136,.14), transparent 42%),
    radial-gradient(circle at 100% 0, rgba(255,66,230,.11), transparent 42%),
    rgba(0,0,0,.58) !important;
  backdrop-filter: blur(4px);
}

@media (orientation: landscape) and (max-height: 560px) {
  .v147CleanFinishCard {
    max-height: calc(100vh - 12px) !important;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
    gap: 6px !important;
  }
  .v147CleanFinishCard .finish-title {
    font-size: clamp(32px, 9vh, 58px) !important;
  }
  .v147CleanFinishCard .finish-copy.v147DeltaTop {
    font-size: clamp(30px, 9vh, 54px) !important;
  }
  .v147RaceAgainBtn {
    font-size: clamp(28px, 8vh, 46px) !important;
  }
  .v147ReturnMenuBtn {
    font-size: clamp(22px, 7vh, 36px) !important;
  }
  .resultsEloPanel {
    padding: 10px !important;
  }
  .eloResultCard {
    min-height: 48px !important;
    padding: 8px 9px !important;
  }
}

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */
.installNightBikeBtn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(36,248,255,.30);
  color: #eaffff !important;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.38), transparent 22%),
    linear-gradient(115deg, rgba(0,0,0,.38), rgba(36,248,255,.16), rgba(255,220,138,.13)) !important;
  font-weight: 1000 !important;
  letter-spacing: .08em !important;
  text-shadow: 0 0 10px rgba(255,255,255,.36), 0 0 20px rgba(36,248,255,.28);
  box-shadow: 0 0 22px rgba(36,248,255,.14), inset 0 0 24px rgba(255,255,255,.06);
}
.installNightBikeBtn small {
  display: block;
  margin-top: 5px;
  color: rgba(234,255,255,.70);
  font-size: 10px;
  letter-spacing: .10em;
}
.installNightBikeBtn::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(36,248,255,.82), rgba(255,220,138,.72), transparent);
  box-shadow: 0 0 12px rgba(36,248,255,.45);
  background-size: 220% 100%;
  animation: nbV144PlasmaUnderline 1.65s linear infinite;
}

/* NIGHTBIKE V150 INSTALLED APP + CONTROLS CLEANUP */
.nb-v150-installed-app .installNightBikeBtn,
.installNightBikeBtn.hidden,
#installNightBikeBtn.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.phoneCalPanel.desktop-keyboard-pass {
  border-color: rgba(36,248,255,.28) !important;
  background: rgba(0,0,0,.30) !important;
}

.phoneCalPanel.desktop-keyboard-pass #phoneCalStatus {
  color: #bffff8 !important;
  font-size: clamp(16px, 3.2vw, 22px) !important;
}

.phoneCalPanel.desktop-keyboard-pass #phoneCalHint {
  font-size: 12px !important;
  opacity: .78;
}

@media (orientation: landscape) and (max-height: 560px) {
  .phoneCalPanel {
    margin: 6px 0 8px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 15px !important;
    align-items: center !important;
  }

  .phoneCalLabel {
    font-size: 9px !important;
    letter-spacing: .14em !important;
  }

  #phoneCalStatus {
    font-size: clamp(13px, 4.4vh, 18px) !important;
    line-height: .95 !important;
    margin-top: 2px !important;
    white-space: nowrap;
  }

  #phoneCalHint {
    display: none !important;
  }

  .phoneCalBtn {
    min-width: 108px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    letter-spacing: .08em !important;
    white-space: nowrap;
  }
}

/* NIGHTBIKE V151 PLAYER COMBAT FEED + TILT CONTROL */
.phoneCalLabel {
  color: #9effff;
}
.phoneCalBtn {
  white-space: nowrap;
}
@media (orientation: landscape) and (max-height: 560px) {
  #phoneCalStatus {
    font-size: clamp(12px, 4.1vh, 17px) !important;
  }
  .phoneCalBtn {
    min-width: 116px !important;
    font-size: 9.5px !important;
  }
}


/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO UI ADDON */
.v156LobbyOverlay {
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 8%, rgba(255,255,255,.10), transparent 20%),
    radial-gradient(circle at 18% 92%, rgba(255,66,230,.22), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(36,248,255,.20), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.82)) !important;
}
.v156LobbyNebula,
.v156LobbyGrid {
  position: absolute;
  inset: -10%;
  pointer-events: none;
}
.v156LobbyNebula {
  background:
    radial-gradient(circle at 52% 34%, rgba(255,66,230,.24), transparent 15%),
    radial-gradient(circle at 50% 35%, rgba(36,248,255,.20), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(34,255,136,.08), transparent 36%);
  filter: blur(6px);
  opacity: .92;
  animation: nbV156NebulaDrift 7s ease-in-out infinite alternate;
}
.v156LobbyGrid {
  background:
    linear-gradient(90deg, rgba(36,248,255,.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,66,230,.07) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(760px) rotateX(62deg) translateY(22%);
  transform-origin: center bottom;
  opacity: .35;
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, transparent 100%);
}
.v156LobbyCard {
  position: relative;
  width: min(1180px, calc(100vw - 22px)) !important;
  max-height: calc(100dvh - 18px);
  overflow-y: auto;
  overflow-x: hidden;
  border-color: rgba(36,248,255,.54) !important;
  border-radius: 28px !important;
  padding: clamp(13px, 2.2vw, 24px) !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(255,255,255,.20), transparent 25%),
    radial-gradient(circle at 5% 20%, rgba(36,248,255,.22), transparent 28%),
    radial-gradient(circle at 95% 30%, rgba(255,66,230,.20), transparent 30%),
    linear-gradient(180deg, rgba(2,5,16,.92), rgba(0,0,0,.82)) !important;
  box-shadow:
    0 0 30px rgba(36,248,255,.28),
    0 0 78px rgba(255,66,230,.18),
    inset 0 0 34px rgba(255,255,255,.06) !important;
}
.v156LobbyCard::before,
.v156LobbyCard::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
}
.v156LobbyCard::before {
  background:
    linear-gradient(90deg, transparent, rgba(36,248,255,.18), transparent),
    repeating-linear-gradient(90deg, rgba(36,248,255,.06) 0 1px, transparent 1px 70px);
  opacity: .40;
  mix-blend-mode: screen;
}
.v156LobbyCard::after {
  inset: 5px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 0 34px rgba(36,248,255,.08);
}
.v156LobbyCard > * {
  position: relative;
  z-index: 1;
}
.v156LobbyBrandPlate {
  display: grid;
  place-items: center;
  gap: 3px;
  margin: 0 0 10px;
  text-align: center;
}
.v156NightbikeWord {
  font-size: clamp(34px, 7.8vw, 88px);
  line-height: .82;
  font-weight: 1000;
  font-style: italic;
  letter-spacing: .025em;
  color: #fff;
  text-shadow:
    0 0 7px rgba(255,255,255,.95),
    0 0 18px rgba(36,248,255,.95),
    0 0 42px rgba(36,248,255,.58),
    0 0 66px rgba(255,66,230,.38);
  filter: drop-shadow(0 0 15px rgba(36,248,255,.45));
}
.v156LoadingMatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 3px 28px 5px;
  border: 1px solid rgba(255,66,230,.46);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255,66,230,.18), transparent),
    rgba(0,0,0,.42);
  color: #ff7dff;
  font-size: clamp(16px, 3vw, 31px);
  font-weight: 1000;
  letter-spacing: .16em;
  text-shadow: 0 0 18px rgba(255,66,230,.86);
  box-shadow: 0 0 22px rgba(255,66,230,.22), inset 0 0 18px rgba(255,255,255,.05);
}
.v156LobbyHeader {
  align-items: flex-start !important;
  margin-top: 6px;
}
.v156LobbyHeader h1 {
  margin: 4px 0 0;
  font-size: clamp(30px, 5.2vw, 62px) !important;
  line-height: .88 !important;
  text-shadow: 0 0 22px rgba(36,248,255,.58);
}
.v156LobbyTagline {
  margin: 7px 0 0;
  color: rgba(191,255,248,.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.v156MapNameBox {
  background:
    linear-gradient(135deg, rgba(36,248,255,.16), rgba(255,66,230,.10)),
    rgba(0,0,0,.50) !important;
  border-color: rgba(36,248,255,.48) !important;
}
.v156LobbyMain {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .78fr);
  gap: 14px;
  align-items: stretch;
  margin: 12px 0 14px;
}
.v156MapPreview {
  position: relative;
  min-height: 245px;
  margin: 0 !important;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, .62fr) !important;
  border-color: rgba(36,248,255,.42) !important;
  background:
    linear-gradient(135deg, rgba(36,248,255,.14), rgba(255,66,230,.12)),
    rgba(0,0,0,.45) !important;
  box-shadow:
    0 0 28px rgba(36,248,255,.18),
    inset 0 0 30px rgba(36,248,255,.07) !important;
  overflow: hidden;
}
.v156MapPreview::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  pointer-events: none;
  box-shadow: inset 0 0 26px rgba(255,66,230,.08);
}
.v156MapArt {
  position: relative;
  min-height: 214px !important;
  overflow: hidden;
  border-color: rgba(36,248,255,.60) !important;
}
.v156MapArt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 56% 38%, rgba(255,66,230,.42), transparent 17%),
    radial-gradient(circle at 58% 36%, rgba(36,248,255,.34), transparent 27%),
    linear-gradient(90deg, rgba(0,0,0,.30), transparent 52%, rgba(0,0,0,.18));
  mix-blend-mode: screen;
  opacity: .9;
}
.v156ParticleCore {
  position: absolute;
  left: 54%;
  top: 33%;
  width: clamp(72px, 12vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255,255,255,1) 0 7%, rgba(255,66,230,.92) 8% 21%, rgba(36,248,255,.62) 22% 36%, transparent 58%);
  box-shadow:
    0 0 24px rgba(255,255,255,.8),
    0 0 54px rgba(255,66,230,.72),
    0 0 88px rgba(36,248,255,.55);
  animation: nbV156CorePulse 1.55s ease-in-out infinite alternate;
}
.v156ParticleCore::before,
.v156ParticleCore::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 2px solid rgba(36,248,255,.68);
  border-left-color: rgba(255,66,230,.9);
  border-bottom-color: transparent;
  animation: nbV156CoreSpin 3.2s linear infinite;
}
.v156ParticleCore::after {
  inset: -34%;
  animation-duration: 5.1s;
  animation-direction: reverse;
  opacity: .65;
}
.v156TrackLine {
  position: absolute;
  left: 3%;
  right: -4%;
  bottom: 23%;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(36,248,255,.95), rgba(255,66,230,.92), rgba(255,220,138,.55), transparent);
  filter: blur(1px);
  transform: perspective(500px) rotateX(62deg) rotateZ(-4deg);
  box-shadow: 0 0 25px rgba(36,248,255,.48), 0 0 42px rgba(255,66,230,.35);
}
.v156MapCopy strong {
  text-shadow:
    0 0 16px rgba(255,255,255,.36),
    0 0 28px rgba(36,248,255,.72) !important;
}
.v156RaceStatusPanel {
  position: relative;
  min-height: 245px;
  border: 1px solid rgba(255,66,230,.30);
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 34%, rgba(36,248,255,.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255,66,230,.12), transparent 38%),
    rgba(0,0,0,.47);
  box-shadow:
    0 0 26px rgba(255,66,230,.12),
    inset 0 0 24px rgba(36,248,255,.055);
  overflow: hidden;
}
.v156RaceStatusPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(36,248,255,.06) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, transparent, rgba(255,66,230,.08), transparent);
  opacity: .58;
  pointer-events: none;
}
.v156StatusHeader {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  text-align: center;
  margin-bottom: 8px;
}
.v156StatusHeader span {
  color: rgba(191,255,248,.70);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .20em;
}
.v156StatusHeader strong {
  color: #fff;
  font-size: clamp(22px, 3.1vw, 36px);
  letter-spacing: .08em;
  text-shadow: 0 0 20px rgba(255,255,255,.38), 0 0 32px rgba(36,248,255,.52);
}
.v156LockOrb {
  position: relative;
  z-index: 1;
  width: clamp(70px, 9vw, 108px);
  aspect-ratio: 1;
  margin: 6px auto 12px;
  border-radius: 50%;
  border: 2px solid rgba(36,248,255,.64);
  box-shadow:
    0 0 22px rgba(36,248,255,.34),
    inset 0 0 22px rgba(255,66,230,.12);
}
.v156LockOrb i,
.v156LockOrb b {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed rgba(255,66,230,.66);
  animation: nbV156CoreSpin 3.9s linear infinite;
}
.v156LockOrb b {
  inset: 28%;
  border-style: solid;
  border-color: rgba(255,255,255,.46);
  animation-direction: reverse;
  animation-duration: 2.3s;
}
.v156StatusRow {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
}
.v156StatusRow > div {
  padding: 9px 10px !important;
  border-color: rgba(36,248,255,.22) !important;
  background: rgba(0,0,0,.38) !important;
}
.v156StatusRow strong {
  font-size: clamp(15px, 2.2vw, 21px) !important;
  color: #ffdc8a !important;
}
.v156MusicBtn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid rgba(255,66,230,.42);
  border-radius: 16px;
  color: #eaffff;
  background:
    linear-gradient(115deg, rgba(36,248,255,.16), rgba(255,66,230,.16)),
    rgba(0,0,0,.40);
  font-weight: 1000;
  letter-spacing: .10em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255,66,230,.12), inset 0 0 16px rgba(255,255,255,.04);
}
.v156MusicBtn strong {
  color: #ffdc8a;
  text-shadow: 0 0 14px rgba(255,220,138,.74);
}
.v156MusicBtn.playing {
  border-color: rgba(36,248,255,.72);
  box-shadow: 0 0 24px rgba(36,248,255,.26), 0 0 44px rgba(255,66,230,.16);
}
.v156MusicBtn.playing strong {
  color: #22ff88;
  text-shadow: 0 0 14px rgba(34,255,136,.85);
}
.v156LobbySlots {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 12px 0 !important;
}
.v156LobbySlots .lobbySlot {
  min-height: 122px !important;
  border-radius: 18px !important;
  border-color: rgba(36,248,255,.30) !important;
  background:
    radial-gradient(circle at 84% 0%, rgba(255,66,230,.14), transparent 42%),
    radial-gradient(circle at 12% 0%, rgba(36,248,255,.17), transparent 42%),
    rgba(0,0,0,.42) !important;
}
.v156LobbySlots .lobbySlot.connected:nth-child(even) {
  border-color: rgba(255,66,230,.46) !important;
  box-shadow: 0 0 18px rgba(255,66,230,.16), inset 0 0 20px rgba(255,255,255,.035) !important;
}
.v156LobbySlots .lobbyAvatar {
  width: 48px !important;
  height: 48px !important;
  margin-bottom: 8px !important;
  border-radius: 15px !important;
  box-shadow: 0 0 20px rgba(36,248,255,.28), 0 0 28px rgba(255,66,230,.12) !important;
}
.v156BoostStrip {
  display: grid;
  grid-template-columns: auto minmax(150px, .7fr) minmax(180px, 1fr) minmax(140px, .7fr);
  gap: 12px;
  align-items: center;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(36,248,255,.28);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(36,248,255,.10), rgba(255,66,230,.08), rgba(255,220,138,.06)),
    rgba(0,0,0,.38);
}
.v156Bolt {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #041018;
  background: linear-gradient(135deg, #24f8ff, #fff, #ffdc8a);
  font-weight: 1000;
  box-shadow: 0 0 20px rgba(36,248,255,.35);
}
.v156BoostStrip strong {
  color: #fff;
  letter-spacing: .08em;
}
.v156BoostStrip p {
  margin: 2px 0 0;
  color: rgba(217,255,255,.72);
  font-size: 12px;
  font-weight: 850;
}
.v156BoostBar {
  position: relative;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(36,248,255,.40);
  background: rgba(0,0,0,.42);
  overflow: hidden;
  box-shadow: inset 0 0 18px rgba(36,248,255,.08);
}
.v156BoostBar i {
  position: absolute;
  inset: 4px 18% 4px 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #24f8ff, #ffffff, #ff42e6);
  box-shadow: 0 0 18px rgba(36,248,255,.65);
  animation: nbV156BoostCharge 1.6s ease-in-out infinite alternate;
}
.v156WeaponOnline {
  color: rgba(234,255,255,.82);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-align: right;
}
.v156WeaponOnline b {
  display: block;
  color: #ff42e6;
  text-shadow: 0 0 14px rgba(255,66,230,.72);
}
.v156LobbyFeed {
  border-color: rgba(255,66,230,.22) !important;
  background:
    linear-gradient(90deg, rgba(36,248,255,.07), rgba(255,66,230,.05)),
    rgba(0,0,0,.38) !important;
  min-height: 74px !important;
}
.v156LobbyActions {
  grid-template-columns: 1.4fr .72fr !important;
  align-items: center !important;
}
.v156LobbyServer {
  margin-top: 10px !important;
  border-color: rgba(36,248,255,.20) !important;
  background: rgba(0,0,0,.30) !important;
}
@keyframes nbV156NebulaDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); opacity: .82; }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.06); opacity: 1; }
}
@keyframes nbV156CorePulse {
  from { transform: translate(-50%, -50%) scale(.94); filter: saturate(1.2); }
  to { transform: translate(-50%, -50%) scale(1.08); filter: saturate(1.7); }
}
@keyframes nbV156CoreSpin {
  to { transform: rotate(360deg); }
}
@keyframes nbV156BoostCharge {
  from { right: 30%; filter: brightness(1); }
  to { right: 6%; filter: brightness(1.35); }
}
@media (orientation: landscape) and (max-height: 650px) {
  .v156LobbyCard {
    padding: 10px 12px !important;
    border-radius: 22px !important;
  }
  .v156LobbyBrandPlate { margin-bottom: 4px; }
  .v156NightbikeWord { font-size: clamp(30px, 9vh, 56px); }
  .v156LoadingMatch {
    min-height: 24px;
    font-size: clamp(13px, 3.8vh, 22px);
    padding: 2px 18px 4px;
  }
  .v156LobbyHeader h1 { font-size: clamp(24px, 6.2vh, 42px) !important; }
  .v156LobbyTagline { display: none; }
  .v156LobbyMain {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .72fr);
    gap: 10px;
    margin: 8px 0;
  }
  .v156MapPreview,
  .v156RaceStatusPanel { min-height: 184px; }
  .v156MapArt { min-height: 158px !important; }
  .v156LobbySlots .lobbySlot {
    min-height: 92px !important;
    padding: 9px !important;
  }
  .v156LobbySlots .lobbyAvatar {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 5px !important;
  }
  .v156BoostStrip { display: none; }
  .v156LobbyFeed {
    min-height: 48px !important;
    max-height: 64px;
  }
}
@media (max-width: 900px) {
  .v156LobbyMain { grid-template-columns: 1fr; }
  .v156StatusRow { grid-template-columns: repeat(3, 1fr) !important; }
  .v156LockOrb { display: none; }
  .v156BoostStrip { grid-template-columns: auto 1fr; }
  .v156BoostBar,
  .v156WeaponOnline {
    grid-column: 1 / -1;
    text-align: left;
  }
}
@media (max-width: 620px) {
  .v156MapPreview { grid-template-columns: 1fr !important; }
  .v156StatusRow,
  .v156LobbySlots { grid-template-columns: 1fr !important; }
  .v156LobbyActions { grid-template-columns: 1fr !important; }
}

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */


/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */
#installNightBikeBtn, .installNightBikeBtn { display: none !important; visibility: hidden !important; pointer-events: none !important; }
.profileEloPanel {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(70, 245, 255, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 242, 255, .10), rgba(255, 215, 96, .06));
  box-shadow: 0 0 24px rgba(0, 255, 255, .10), inset 0 0 20px rgba(255,255,255,.035);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
}
.profileEloPanel span {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(225, 255, 255, .72);
}
.profileEloPanel strong {
  grid-row: span 2;
  font-size: 30px;
  line-height: 1;
  color: #fff7bb;
  text-shadow: 0 0 16px rgba(255, 224, 92, .52);
}
.profileEloPanel em {
  font-size: 11px;
  color: rgba(185, 255, 255, .72);
  font-style: normal;
}

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */
.v163MusicBtn {
  margin-top: 8px;
  width: 100%;
  border: 1px solid rgba(255, 220, 138, .38);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff7c8;
  background: linear-gradient(90deg, rgba(255,220,138,.12), rgba(36,248,255,.10));
  box-shadow: 0 0 18px rgba(255,220,138,.14), inset 0 0 16px rgba(255,255,255,.035);
  font-weight: 900;
  letter-spacing: .08em;
}
.v163MusicBtn strong {
  color: #24f8ff;
  margin-left: 6px;
}
.v163MusicBtn.playing strong {
  color: #ffdc8a;
  text-shadow: 0 0 12px rgba(255,220,138,.72);
}
.v163MusicBtn.blocked strong {
  color: #ff5d7a;
}

/* NIGHTBIKE V165 LOBBY MP3 SOCIAL CASINO */
.lobbyCasinoPanel {
  position: relative;
  margin: 14px 0 14px;
  padding: 14px;
  border: 1px solid rgba(255,220,138,.36);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,220,138,.18), transparent 48%),
    radial-gradient(circle at 90% 10%, rgba(255,66,230,.14), transparent 52%),
    linear-gradient(135deg, rgba(5,9,18,.88), rgba(0,0,0,.70));
  box-shadow: 0 0 28px rgba(255,220,138,.12), inset 0 0 24px rgba(255,255,255,.035);
  overflow: hidden;
}
.lobbyCasinoPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,220,138,.10), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px);
  opacity: .45;
}
.casinoHeader, .casinoOdds, .casinoNote { position: relative; z-index: 1; }
.casinoHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}
.casinoHeader span {
  color: rgba(255,220,138,.78);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .20em;
  text-transform: uppercase;
}
.casinoHeader strong {
  color: #eaffff;
  font-size: 15px;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(36,248,255,.45);
}
.casinoPick {
  padding: 11px 12px;
  border: 1px solid rgba(36,248,255,.22);
  border-radius: 16px;
  background: rgba(0,0,0,.34);
  margin-bottom: 10px;
}
.casinoPick span, .casinoPick em {
  display: block;
  color: rgba(206,255,255,.70);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-style: normal;
}
.casinoPick strong {
  display: block;
  margin: 4px 0 3px;
  color: #ffdc8a;
  font-size: clamp(18px, 3vw, 26px);
  text-shadow: 0 0 18px rgba(255,220,138,.46);
}
.casinoTable {
  display: grid;
  gap: 7px;
}
.casinoOddsRow {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) .7fr .55fr .6fr;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  color: #eaffff;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}
.casinoOddsRow.favorite {
  border-color: rgba(255,220,138,.45);
  background: linear-gradient(90deg, rgba(255,220,138,.11), rgba(36,248,255,.06));
}
.casinoName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.casinoElo, .casinoProb {
  color: rgba(206,255,255,.72);
  font-size: 10px;
  letter-spacing: .08em;
}
.casinoLine {
  color: #ffdc8a;
  font-size: 13px;
  text-shadow: 0 0 12px rgba(255,220,138,.32);
}
.casinoNote, .casinoEmpty {
  margin-top: 8px;
  color: rgba(255,255,255,.50);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
@media (max-width: 680px) {
  .casinoOddsRow { grid-template-columns: 1fr .55fr; }
  .casinoElo { display: none; }
}

/* NIGHTBIKE V166: virtual casino prediction lock feedback */
.casinoOddsRow.locked {
  outline: 2px solid rgba(255,255,255,.72);
  transform: translateY(-1px);
}
.casinoOddsRow.locked .casinoLine,
.casinoOddsRow.locked .casinoProb {
  text-shadow: 0 0 12px currentColor;
}


/* NIGHTBIKE V168 RED EDGES + HD RESULTS */
.finish.v209softcloseHdGallery {
  overflow: hidden;
}

.finish.v209softcloseHdGallery .nb-v209softclose-hd-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.finish.v209softcloseHdGallery .nb-v209softclose-hd-slide {
  position: absolute;
  inset: -3%;
  opacity: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.28) contrast(1.10) brightness(.86);
  transform: scale(1.04);
  animation: nbV168HdResultSlide 9.6s linear infinite;
  will-change: opacity, transform;
}

.finish.v209softcloseHdGallery .finish-menu-card {
  z-index: 2 !important;
  background: linear-gradient(180deg, rgba(2,8,14,.76), rgba(2,6,12,.74)) !important;
  backdrop-filter: blur(9px) saturate(1.1);
}

.finish.v209softcloseHdGallery #resultsEloPanel.v143RaceOrder {
  backdrop-filter: blur(6px) saturate(1.06);
}

@keyframes nbV168HdResultSlide {
  0% { opacity: 0; transform: scale(1.04); }
  6% { opacity: .94; }
  21% { opacity: .94; transform: scale(1.08); }
  28% { opacity: 0; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.10); }
}
