.hero-art {
  object-position: center center;
}
.hero-in {
  max-width: 70%;
}
@media (pointer: coarse) {
  .info-strip:after {
    content: '上下左右にドラッグして操縦。BOOST で群れを抜こう。';
  }
}
@media (max-width: 550px) {
  .hero-in {
    max-width: 100%;
  }
  .hero-art {
    object-position: 72% center;
  }
}
#raceScreen {
  padding: 0;
  overflow: hidden;
  background: #191522;
}
.cockpit {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#water {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.edge-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    #130c1c87,
    transparent 22%,
    transparent 82%,
    #170f20a8
  );
}
.flight-top,
.flight-bottom,
.route-inset,
.callout,
.drive-hint {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.flight-top {
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}
.place-box,
.path-hud,
.flight-pause,
.route-inset,
.telemetry,
.pilot-guide {
  background: #121723ba;
  border: 1px solid #f4e3ef49;
  box-shadow: 0 2px 12px #08081230;
  border-radius: 11px;
}
.place-box {
  padding: 8px 13px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 152px;
}
.place-box small,
.path-label,
.pilot-guide small,
.drive-hint {
  font-size: 11px;
  color: #e9e5ee;
}
.place-box strong {
  font:
    900 clamp(19px, 2.8vw, 39px) / 1.2 Arial,
    sans-serif;
  letter-spacing: -0.045em;
  color: #fff8e9;
  font-variant-numeric: tabular-nums;
}
.place-box strong i {
  font-size: 0.42em;
  font-style: normal;
  letter-spacing: 0;
  margin-left: 3px;
}
.path-hud {
  width: min(34vw, 390px);
  padding: 8px 13px;
}
.path-hud > div:first-child,
.path-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.path-hud b {
  font-size: 13px;
}
.path-hud #meters,
.mini-time {
  font:
    600 11px/1.4 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
}
.path-bar {
  height: 4px;
  border-radius: 6px;
  background: #eee5f22b;
  margin: 5px 0;
}
.path-bar i {
  display: block;
  border-radius: 6px;
  height: 100%;
  background: #a9ffe0;
}
.flight-pause {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  color: #fff;
}
.route-inset {
  right: max(18px, env(safe-area-inset-right));
  top: max(76px, calc(env(safe-area-inset-top) + 56px));
  width: 112px;
  height: 53px;
  padding: 1px 3px;
}
.route-inset canvas {
  width: 100%;
  height: 100%;
}
.flight-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(17px, env(safe-area-inset-bottom));
  gap: 10px;
}
.telemetry {
  padding: 8px 12px;
  min-width: 92px;
  color: #fff7ef;
}
.speed-read {
  white-space: nowrap;
  line-height: 1.1;
}
.speed-read b {
  font:
    900 italic 30px/1 Arial,
    sans-serif;
}
.speed-read small {
  font-size: 11px;
}
.mini-time {
  color: #eee7ed;
  margin-top: 4px;
}
.pickups {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.pickups .ic {
  width: 13px;
}
#chain {
  color: #9cffd9;
  margin-left: 4px;
}
.pilot-guide {
  padding: 6px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.aim-guide {
  width: 62px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #efdee963;
  position: relative;
  background:
    linear-gradient(90deg, transparent 49%, #e8daeb25 50%, transparent 52%),
    linear-gradient(0deg, transparent 48%, #e8daeb25 50%, transparent 53%);
}
.aim-guide i,
.aim-guide b {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.aim-guide i {
  width: 15px;
  height: 13px;
  border: 2px solid #8effce;
}
.aim-guide b {
  width: 5px;
  height: 5px;
  background: #fff;
}
.turbo {
  pointer-events: auto;
  width: 83px;
  height: 83px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#8af5ce var(--charge, 360deg), #504b5c 0);
  border: 1px solid #f5fff580;
  padding: 4px;
  touch-action: none;
  box-shadow: 0 3px 18px #17132655;
}
.turbo span {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background: #26363f;
  display: grid;
  align-content: center;
  justify-items: center;
  line-height: 1.3;
  color: #d2dfe1;
}
.turbo .ic {
  width: 24px;
  height: 24px;
}
.turbo b {
  font:
    850 12px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.06em;
}
.turbo.ready span {
  background: #a6f7d9;
  color: #163b36;
}
.turbo.ready {
  box-shadow: 0 0 18px #94ffcf55;
}
.callout {
  left: 50%;
  top: 24%;
  transform: translate(-50%, -5px);
  text-align: center;
  opacity: 0;
  transition: 0.16s;
  white-space: nowrap;
  color: #fff6d8;
  text-shadow:
    0 2px 5px #17101c,
    0 0 16px #17101c;
}
.callout.active {
  opacity: 1;
  transform: translate(-50%, 0);
}
.callout b,
.callout span {
  display: block;
}
.callout b {
  font-size: clamp(18px, 3vw, 36px);
  font-style: italic;
  letter-spacing: 0.05em;
}
.callout span {
  font-size: 12px;
  font-weight: 700;
}
.drive-hint {
  bottom: max(126px, calc(env(safe-area-inset-bottom) + 100px));
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 25px;
  background: #141a27b0;
  padding: 4px 12px;
}
.grid-count {
  background: #161624ad;
  border-radius: 16px;
  text-align: center;
  padding: 12px 25px;
  color: #fffbef;
  box-shadow: 0 8px 34px #18121f33;
}
.grid-count > * {
  display: block;
}
.grid-count small {
  font-size: 12px;
}
.grid-count b {
  font-size: 18px;
  color: #bdffe6;
}
.grid-count strong {
  font:
    900 italic 66px/1.2 Arial,
    sans-serif;
}
.chase-result {
  padding: clamp(15px, 3vh, 34px) 0;
}
#raceScreen:has(.chase-result) {
  overflow: auto;
  background: radial-gradient(ellipse at 50% 5%, #3b2c43, #0d1722 73%);
}
.race-board-row,
.history-line {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) 1.4fr;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.race-board-row b,
.history-line b {
  font-variant-numeric: tabular-nums;
}
.race-board-row.mine {
  background: #193d39;
  color: #b8ffe7;
}
.board-gap {
  padding: 0 18px;
  color: #a1b3bf;
  line-height: 15px;
}
.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.standings {
  padding: 15px 0 0;
}
.standings h2,
.standings > p {
  padding: 0 15px;
}
.standings h2,
.first-flag h2 {
  font-size: 18px;
}
.standings > p,
.first-flag p {
  color: #b8cad4;
  font-size: 12px;
  margin: 2px 0 12px;
}
.history-line {
  grid-template-columns: 1fr 1.3fr auto;
}
.history-line small {
  display: block;
  font-size: 10px;
  color: #b0c1cd;
}
.history-line time {
  font-size: 12px;
}
.first-flag {
  grid-column: 1/-1;
  padding: 25px;
  text-align: center;
}
.first-flag > .ic {
  width: 30px;
  height: 30px;
  color: var(--mint);
  margin-bottom: 4px;
}
.pause-panel p {
  font-size: 12px;
  margin: 0 0 12px;
}
@media (max-width: 670px) {
  .boards {
    grid-template-columns: 1fr;
  }
  .flight-top {
    left: max(9px, env(safe-area-inset-left));
    right: max(9px, env(safe-area-inset-right));
    gap: 6px;
    top: max(9px, env(safe-area-inset-top));
  }
  .place-box {
    padding: 6px 8px;
    min-width: 0;
  }
  .place-box strong {
    font-size: 23px;
  }
  .place-box small {
    font-size: 9px;
  }
  .path-hud {
    flex: 1;
    max-width: 205px;
    padding: 6px;
  }
  .path-hud b {
    font-size: 11px;
  }
  .path-hud #meters,
  .path-label {
    font-size: 8px;
  }
  .flight-pause {
    width: 37px;
    height: 38px;
  }
  .route-inset {
    width: 71px;
    height: 36px;
    top: max(85px, calc(env(safe-area-inset-top) + 72px));
    right: 9px;
  }
  .flight-bottom {
    left: max(11px, env(safe-area-inset-left));
    right: max(11px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .telemetry {
    min-width: 75px;
    padding: 7px 9px;
  }
  .turbo {
    width: 70px;
    height: 70px;
  }
  .speed-read b {
    font-size: 24px;
  }
  .pilot-guide {
    padding: 4px 9px;
  }
  .aim-guide {
    width: 50px;
    height: 36px;
  }
  .pilot-guide small {
    font-size: 9px;
  }
  .drive-hint {
    bottom: max(99px, calc(env(safe-area-inset-bottom) + 82px));
    font-size: 10px;
  }
  .callout {
    top: 27%;
  }
}
@media (max-height: 510px) and (orientation: landscape) {
  .flight-top {
    top: max(5px, env(safe-area-inset-top));
    left: max(9px, env(safe-area-inset-left));
    right: max(9px, env(safe-area-inset-right));
  }
  .place-box {
    padding: 4px 9px;
    min-width: 120px;
  }
  .place-box strong {
    font-size: 19px;
  }
  .place-box small,
  .path-label,
  #meters {
    font-size: 9px;
  }
  .flight-pause {
    height: 34px;
  }
  .path-hud {
    padding: 4px 9px;
  }
  .flight-bottom {
    bottom: max(5px, env(safe-area-inset-bottom));
  }
  .telemetry {
    padding: 4px 9px;
  }
  .speed-read b {
    font-size: 21px;
  }
  .turbo {
    width: 59px;
    height: 59px;
  }
  .turbo .ic {
    width: 18px;
    height: 18px;
  }
  .turbo b {
    font-size: 10px;
  }
  .pilot-guide {
    flex-direction: row;
    padding: 3px 7px;
  }
  .aim-guide {
    width: 41px;
    height: 29px;
  }
  .pilot-guide small {
    font-size: 9px;
  }
  .route-inset {
    width: 70px;
    height: 34px;
    top: 46px;
  }
  .callout {
    top: 25%;
  }
  .drive-hint {
    bottom: 49px;
    font-size: 9px;
  }
  .grid-count {
    padding: 4px 18px;
  }
  .grid-count strong {
    font-size: 48px;
  }
}
@media (max-width: 350px) {
  .path-label #bend {
    display: none;
  }
  .place-box strong {
    font-size: 18px;
  }
  .path-hud > div:first-child {
    display: block;
  }
  .path-hud #meters {
    display: block;
  }
}
.swim-tag {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -100%);
  color: #163b38;
  background: #b7fbe3;
  font:
    800 9px/1.1 Arial,
    sans-serif;
  letter-spacing: 0.07em;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 4px #2223;
}
.swim-tag:after {
  content: '';
  position: absolute;
  left: calc(50% - 3px);
  bottom: -3px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid #b7fbe3;
}
.rival-tag {
  background: #181e28b0;
  color: #ffefd9;
  letter-spacing: 0;
}
.rival-tag:after {
  border-top-color: #181e28b0;
}

#leaderGap {
  color: #b8e3d6;
  font-variant-numeric: tabular-nums;
}
.aim-guide #aimGold {
  border: 3px double #ffe393;
  width: 13px;
  height: 13px;
  box-shadow: 0 0 5px #ffb74088;
}
.pilot-guide .gold-text {
  color: #ffe393;
}
.drive-hint.tide-hint {
  border: 1px solid #ffce677d;
  background: #332416e6;
  color: #ffe49a;
  font-weight: 750;
}
