/* The compact cockpit leaves the horizon and the car free of permanent controls. */
details > summary {
  cursor: pointer;
}
.other-races {
  margin-top: 9px;
  color: #e7e4d8;
  font: 600 12px system-ui;
}
.other-races summary {
  width: fit-content;
  padding: 8px 3px;
}
#join-choice {
  margin-top: 8px;
  color: #dedfd1;
  font: 13px system-ui;
}
#join-choice summary {
  padding: 7px 0;
}
#join-choice[open] {
  margin-bottom: 2px;
}
.street-header {
  justify-content: flex-end;
}
.street-header .menu-trigger,
.street-header .lobby-home,
#btn-pause {
  background: #14231fd9;
  color: #fff4d6;
  border: 1px solid #eee7c755;
  border-radius: 22px;
  min-height: 42px;
  padding: 0 15px;
  font: 700 13px system-ui;
  letter-spacing: 0;
  cursor: pointer;
}
body:not(.waiting) .lobby-home,
.waiting .menu-trigger {
  display: none;
}
body:has(#landing.hidden) .top-bar {
  justify-content: flex-end;
}
body:has(#landing.hidden) .top-bar .brand {
  display: none;
}
.drive-sheet,
#pause-modal .modal-card {
  box-sizing: border-box;
  width: min(335px, calc(100vw - 28px));
  max-height: 86dvh;
  overflow: auto;
  padding: 20px;
  background: #19251f;
  color: #fff1ce;
  border: 1px solid #aeac8669;
  border-top: 3px solid #f4c354;
  border-radius: 10px;
  box-shadow: 0 16px 54px #0006;
}
.drive-sheet::backdrop {
  background: #0e171b9e;
}
.drive-sheet h2,
#pause-modal h2 {
  font: 750 25px/1.1 system-ui;
  letter-spacing: -0.03em;
  margin: 0 0 15px;
}
.drive-sheet > :is(button, a),
.drive-sheet #back-room,
.drive-sheet select {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 4px;
  min-height: 42px;
  font: 600 14px system-ui;
}
.drive-sheet .resume {
  color: #17231a;
  background: #f4c354;
}
.drive-sheet #cruise-tools {
  display: block;
}
.drive-sheet #meet {
  max-width: none;
}
.display-option,
.drive-sheet details,
.race-controls {
  font: 14px/1.6 system-ui;
}
.display-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  cursor: pointer;
}
.display-option input {
  width: 18px;
  height: 18px;
  accent-color: #efbd4d;
}
.drive-sheet details,
.race-controls {
  padding: 8px 0;
  border-top: 1px solid #e3d6ac33;
}
.race-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.race-settings button {
  min-height: 35px;
}
#pause-modal .cta-stack {
  margin: 0;
  gap: 7px;
}
.phone-guide {
  display: none;
}
#first-drive {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff5da;
  background: #15231da8;
  border-radius: 15px;
  padding: 6px 12px;
  font: 600 12px system-ui;
  pointer-events: none;
}
body:not(.full-hud)
  :is(
    .landmark-card,
    #hud-rival-gap,
    .action-pad,
    .minimap-card,
    .cp-index,
    .split-controls-hint,
    .countdown-sub:empty
  ),
body:not(.full-hud) .pos-time-row > :nth-child(2),
body:not(.full-hud) .speed-cluster > :nth-child(2),
body:not(.full-hud)
  .boost-points
  :is(.hud-kicker, .points-val, .boost-head span:last-child),
body:not(.full-hud)
  :is(.location .mode-tag, .lower-right, .lower-left #mini-button span) {
  display: none;
}
body:not(.full-hud) #race-hud {
  background: linear-gradient(0deg, #0b171e22, transparent 15%);
}
body:not(.full-hud) .hud-top-left {
  left: max(14px, env(safe-area-inset-left));
  top: max(14px, env(safe-area-inset-top));
}
body:not(.full-hud) .pos-time-row,
body:not(.full-hud) .speed-cluster,
body:not(.full-hud) .location,
body:not(.full-hud) #guidance,
body:not(.full-hud) .speed {
  background: linear-gradient(100deg, #101c1be6, #17221bc7);
  color: #fff7db;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 1px 7px #13170a21;
}
body:not(.full-hud) .pos-time-row {
  padding: 8px 12px;
}
body:not(.full-hud) .hud-top-center {
  position: absolute;
  left: max(89px, calc(env(safe-area-inset-left) + 80px));
  right: auto;
  top: max(14px, env(safe-area-inset-top));
  transform: none;
  text-align: left;
  width: min(195px, 42vw);
  padding: 7px 11px 8px;
  border: 0;
  border-radius: 6px;
  color: #fff7db;
  background: #14201dcf;
}
body:not(.full-hud) .hud-top-center .progress-track {
  margin: 4px 0;
  height: 3px;
}
body:not(.full-hud) .pos-value {
  font-size: 32px;
  line-height: 1;
}
body:not(.full-hud) .pos-total {
  font-size: 17px;
}
body:not(.full-hud) .hud-top-left .hud-kicker {
  font-size: 8px;
}
body:not(.full-hud) .speed-cluster {
  padding: 8px 12px;
  gap: 10px;
}
body:not(.full-hud) .speed-num {
  font-size: 40px;
}
body:not(.full-hud) .boost-points {
  min-width: 46px;
  width: 50px;
}
body:not(.full-hud) .boost-head {
  font-size: 8px;
}
body:not(.full-hud) .boost-bar {
  height: 4px;
}
body:not(.full-hud) .location {
  left: max(12px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  padding: 8px 12px;
  max-width: calc(100vw - 120px);
}
body:not(.full-hud) .location h1 {
  font: 750 clamp(17px, 2.2vw, 26px) / 1.1 system-ui;
  letter-spacing: -0.035em;
  margin: 1px 0;
}
body:not(.full-hud) #street {
  font-size: 11px;
  opacity: 0.85;
}
body:not(.full-hud) #guidance {
  right: auto;
  left: max(12px, env(safe-area-inset-left));
  top: calc(max(12px, env(safe-area-inset-top)) + 75px);
  text-align: left;
  max-width: min(55vw, 245px);
  padding: 6px 10px;
  border-left: 3px solid #98cfb5;
}
body:not(.full-hud) #gap {
  display: none;
}
body:not(.full-hud) .lower-left {
  align-items: flex-end;
  gap: 5px;
}
body:not(.full-hud) #mini-button {
  width: clamp(82px, 9vw, 110px);
  padding: 3px;
  border: 1px solid #efe5c65c;
  border-radius: 9px;
  overflow: hidden;
}
body:not(.full-hud) #mini {
  border-radius: 6px;
  aspect-ratio: 4/3;
}
body:not(.full-hud) .speed {
  padding: 5px 9px;
}
body:not(.full-hud) .speed strong {
  font-size: 32px;
}
body:not(.full-hud) #nearby #spot-note {
  display: none;
}
body:not(.full-hud) #nearby {
  padding: 8px 10px;
  background: #14221dda;
  border-radius: 5px;
}
body:has(
    #driving-menu[open],
    #atlas[open],
    #pause-modal:not(.hidden),
    #finish-modal:not(.hidden)
  )
  :is(#touch, #touch-drive) {
  visibility: hidden;
}
@media (any-pointer: coarse) {
  .phone-guide {
    display: block;
  }
  .keyboard-guide,
  #first-drive {
    display: none;
  }
  body:not(.full-hud):not(.waiting) #touch {
    display: grid;
    grid-template-rows: 54px;
    grid-template-columns: repeat(2, clamp(44px, 12vw, 66px)) 1fr repeat(
        2,
        clamp(57px, 16vw, 82px)
      );
    gap: 5px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  body:not(.full-hud) #touch button {
    grid-row: 1;
    border-radius: 12px;
    font: 700 16px/1 system-ui;
  }
  body:not(.full-hud) #touch :is([data-key='Space'], [data-key='ShiftLeft']),
  body:not(.full-hud) #touch-drive [data-drive='KeyC'] {
    display: none;
  }
  #touch small {
    color: inherit;
    font: 600 10px/1.2 system-ui;
    opacity: 0.78;
    margin-top: 3px;
    letter-spacing: 0;
  }
  #touch b {
    font-weight: 750;
  }
  #touch .pressed {
    background: #f1c358;
    color: #1b261d;
  }
  #touch .shifted {
    background: #9ce9c8;
    color: #13291e;
  }
  #touch .shifted small {
    opacity: 1;
    font-weight: 800;
  }
  .full-hud #touch small {
    display: none;
  }
  body:not(.full-hud) .lower-left,
  body:not(.full-hud) .hud-bottom-left {
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 63px);
  }
  body:not(.full-hud) #nearby {
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 65px);
  }
  body:not(.full-hud) .hud-top-center {
    width: min(180px, 41vw);
  }
  body:not(.full-hud) #touch-drive button {
    flex: 0 0 clamp(44px, 12vw, 66px);
    border-radius: 12px;
    height: 54px;
  }
  body:not(.full-hud) #touch-drive [data-drive='ArrowRight'] {
    margin-right: auto;
  }
  body:not(.full-hud) #touch-drive [data-drive='Space'] {
    background: #f4c354;
    color: #142219;
  }
}
@font-face {
  font-family: 'Bengali street signs';
  src: url('/fonts/noto-bengali.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D;
}
#street,
.brand-city {
  font-family: 'Bengali street signs', var(--mono);
}
