@layer reset, base, splash, hud, overlays, responsive;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
  }

  button,
  canvas {
    font: inherit;
  }

  button {
    color: inherit;
  }

  [hidden] {
    display: none !important;
  }
}

@layer base {
  :root {
    color-scheme: dark;
    --ink: #080a13;
    --panel: rgba(9, 12, 21, 0.72);
    --paper: #fff7ef;
    --muted: rgba(255, 247, 239, 0.58);
    --fuchsia: #fb56b9;
    --cyan: #60e2df;
    --amber: #ffc884;
    --hairline: rgba(255, 255, 255, 0.15);
    --sans: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", sans-serif;
    --display: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
    --safe-top: max(27px, env(safe-area-inset-top));
    --safe-side: max(34px, env(safe-area-inset-left), env(safe-area-inset-right));
    --safe-bottom: max(29px, env(safe-area-inset-bottom));
    font-family: var(--sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    background: #120c1f;
    color: var(--paper);
    user-select: none;
    -webkit-user-select: none;
  }

  #experience,
  #game,
  #game > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  #game {
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 68% 40%, #ef965f, #874978 39%, #151022 81%);
  }

  #game > canvas {
    display: block;
    outline: none;
    touch-action: none;
  }

  .screen-treatment {
    position: fixed;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse at center, transparent 50%, rgba(5, 7, 13, 0.46)),
      linear-gradient(to bottom, rgba(9, 10, 17, 0.24), transparent 22%, transparent 74%, rgba(9, 10, 17, 0.38));
  }

  .film-bars {
    position: fixed;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border-top: 3px solid rgba(0, 0, 0, 0.54);
    border-bottom: 3px solid rgba(0, 0, 0, 0.54);
  }

  .overline {
    display: block;
    color: var(--amber);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  kbd {
    display: inline-grid;
    min-width: 22px;
    min-height: 21px;
    padding: 2px 5px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(12, 14, 20, 0.24);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
  }
}

@layer splash {
  .splash {
    position: fixed;
    z-index: 20;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(ellipse at 49% 44%, rgba(245, 94, 172, 0.27), transparent 34%),
      linear-gradient(175deg, rgba(21, 20, 48, 0.55) 0%, rgba(61, 31, 74, 0.54) 43%, rgba(14, 12, 25, 0.87) 77%);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1s;
  }

  .has-started .splash {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .splash::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(6, 7, 13, 0.62) 100%);
    content: "";
  }

  .splash__sun {
    position: absolute;
    top: 20%;
    left: 50%;
    width: min(36vw, 380px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe49b 0%, #ff9878 44%, #f05aad 100%);
    box-shadow: 0 0 110px rgba(247, 104, 164, 0.42);
    opacity: 0.91;
    transform: translateX(-50%);
    -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 12px, transparent 12px 15px);
    mask-image: repeating-linear-gradient(to bottom, #000 0 12px, transparent 12px 15px);
  }

  .splash__horizon {
    position: absolute;
    right: 0;
    bottom: 18%;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 163, 193, 0.8), transparent);
    box-shadow: 0 0 36px 9px rgba(255, 113, 166, 0.18);
  }

  .splash__grid {
    position: absolute;
    right: -30%;
    bottom: -28%;
    left: -30%;
    height: 44%;
    background:
      linear-gradient(rgba(243, 109, 174, 0.14) 1px, transparent 1px),
      linear-gradient(90deg, rgba(243, 109, 174, 0.14) 1px, transparent 1px);
    background-size: 65px 48px;
    transform: perspective(260px) rotateX(47deg);
    transform-origin: center top;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 38%, transparent);
  }

  .splash__skyline {
    position: absolute;
    right: 0;
    bottom: 17.9%;
    left: 0;
    width: 100%;
    height: min(32vh, 260px);
    fill: rgba(12, 12, 26, 0.81);
  }

  .splash__masthead,
  .splash__footer {
    position: absolute;
    z-index: 3;
    right: var(--safe-side);
    left: var(--safe-side);
    display: flex;
    justify-content: space-between;
    color: rgba(255, 248, 241, 0.68);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .splash__masthead {
    top: var(--safe-top);
  }

  .splash__footer {
    bottom: var(--safe-bottom);
    font-size: 9px;
  }

  .splash__center {
    position: absolute;
    z-index: 4;
    top: 51%;
    left: 50%;
    display: flex;
    width: min(880px, calc(100vw - 42px));
    align-items: center;
    flex-direction: column;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .splash__eyebrow {
    margin: 0 0 14px;
    color: rgba(255, 251, 239, 0.8);
    font-size: clamp(8px, 1.1vw, 11px);
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
  }

  .wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(60px, 14.6vw, 158px);
    font-stretch: condensed;
    font-weight: 850;
    letter-spacing: -0.095em;
    line-height: 0.92;
    text-transform: uppercase;
  }

  .wordmark__vice {
    color: #fff5e9;
    text-shadow: 0 5px 30px rgba(31, 16, 35, 0.48);
  }

  .wordmark__slashes {
    margin: 0 0.11em 0 0.03em;
    color: var(--fuchsia);
    font-size: 0.69em;
    font-weight: 650;
    letter-spacing: -0.12em;
    text-shadow: 0 0 26px rgba(251, 86, 185, 0.63);
  }

  .wordmark__signal {
    color: transparent;
    -webkit-text-stroke: max(1px, 0.018em) rgba(255, 247, 239, 0.92);
    text-shadow: 0 0 40px rgba(255, 170, 202, 0.12);
  }

  .splash__tagline {
    margin: 18px 0 38px;
    color: rgba(255, 247, 239, 0.84);
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 400;
    letter-spacing: 0.08em;
  }

  .start-button {
    display: flex;
    min-width: 237px;
    height: 55px;
    align-items: center;
    justify-content: space-between;
    padding: 0 21px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 3px;
    background: rgba(11, 13, 24, 0.42);
    box-shadow: inset 0 0 24px rgba(255, 130, 180, 0.06);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.23em;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    backdrop-filter: blur(9px);
  }

  .start-button:hover,
  .start-button:focus-visible {
    border-color: var(--fuchsia);
    background: rgba(251, 86, 185, 0.19);
    box-shadow: 0 0 32px rgba(251, 86, 185, 0.19);
    transform: translateY(-2px);
  }

  .start-button svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .splash__controls {
    display: flex;
    gap: 20px;
    margin-top: 27px;
    color: rgba(255, 250, 245, 0.72);
    font-size: 10px;
  }

  .splash__controls > span {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

@layer hud {
  .hud {
    position: fixed;
    z-index: 5;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 800ms ease 250ms;
  }

  .has-started .hud {
    opacity: 1;
  }

  .has-started.photo-mode .hud {
    opacity: 0;
  }

  .hud__top {
    position: absolute;
    top: var(--safe-top);
    right: var(--safe-side);
    left: var(--safe-side);
    display: flex;
    justify-content: space-between;
  }

  .location-panel {
    min-width: 180px;
    padding: 3px 0 11px 13px;
    border-left: 2px solid rgba(96, 226, 223, 0.82);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  }

  .location-panel__district {
    margin-top: 4px;
    font-family: var(--display);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.025em;
  }

  .location-panel__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    color: rgba(255, 247, 239, 0.79);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fuchsia);
  }

  .session-panel {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.58);
  }

  .wanted-level {
    display: flex;
    gap: 5px;
    color: rgba(255, 255, 255, 0.32);
    font-size: 18px;
  }

  .wanted-level span.is-active {
    color: #ffc788;
    text-shadow: 0 0 14px rgba(255, 186, 113, 0.88);
  }

  .session-panel__label,
  .session-panel__fps {
    margin-top: 5px;
    color: rgba(255, 247, 239, 0.8);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
  }

  .session-panel__fps {
    color: var(--cyan);
    font-size: 8px;
  }

  .mission-panel {
    position: absolute;
    top: 134px;
    left: calc(var(--safe-side) + 14px);
    max-width: min(360px, 36vw);
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.67);
  }

  .mission-panel__title,
  .mission-panel__copy {
    display: block;
  }

  .mission-panel__title {
    margin-top: 7px;
    font-size: 16px;
    font-weight: 650;
  }

  .mission-panel__copy {
    margin-top: 4px;
    color: rgba(255, 247, 239, 0.72);
    font-size: 11px;
    line-height: 1.45;
  }

  .hud__bottom {
    position: absolute;
    right: var(--safe-side);
    bottom: var(--safe-bottom);
    left: var(--safe-side);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }

  .nav-cluster {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .minimap-shell {
    position: relative;
    width: 178px;
    height: 178px;
    padding: 3px;
    border: 1px solid rgba(255, 247, 239, 0.68);
    border-radius: 50%;
    background: rgba(4, 8, 14, 0.74);
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.31);
  }

  #minimap-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .minimap-shell__north {
    position: absolute;
    z-index: 1;
    top: 9px;
    left: calc(50% - 5px);
    color: var(--paper);
    font-size: 9px;
    font-weight: 700;
    text-shadow: 0 1px 6px #000;
  }

  .minimap-shell__ring {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
  }

  .nav-cluster__caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 11px 0 0 5px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.78);
  }

  #street-name {
    font-size: 11px;
    font-weight: 650;
  }

  #coordinates {
    color: rgba(255, 247, 239, 0.66);
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .drive-prompt {
    position: absolute;
    bottom: 2px;
    left: 50%;
    display: flex;
    gap: 16px;
    color: rgba(255, 247, 239, 0.8);
    font-size: 9px;
    transform: translateX(-50%);
  }

  .drive-prompt > span {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .interaction-prompt {
    position: absolute;
    bottom: 54px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(10, 12, 20, 0.71);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateX(-50%);
    backdrop-filter: blur(9px);
  }

  .speed-cluster {
    position: relative;
    width: 160px;
    height: 170px;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.42));
  }

  .speed-cluster__arc {
    position: absolute;
    inset: 0;
    width: 160px;
    height: 160px;
    transform: rotate(135deg);
  }

  .speed-cluster__arc-track,
  .speed-cluster__arc-value {
    fill: none;
    stroke-linecap: round;
    stroke-width: 3px;
    stroke-dasharray: 330 440;
  }

  .speed-cluster__arc-track {
    stroke: rgba(255, 255, 255, 0.24);
  }

  .speed-cluster__arc-value {
    stroke: var(--fuchsia);
    stroke-dashoffset: 330;
    transition: stroke-dashoffset 80ms linear, stroke 180ms ease;
  }

  .speed-cluster__readout {
    position: absolute;
    top: 48px;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .speed-cluster__value {
    font-family: var(--display);
    font-size: 49px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: -0.07em;
    line-height: 0.94;
  }

  .speed-cluster__unit {
    margin-top: 5px;
    color: rgba(255, 247, 239, 0.7);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
  }

  .speed-cluster__gear {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    color: rgba(255, 247, 239, 0.76);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-align: center;
  }

  #gear-value {
    color: var(--cyan);
  }

  .radio-toast {
    position: absolute;
    top: 121px;
    right: var(--safe-side);
    display: flex;
    width: min(310px, 41vw);
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 3px;
    background: rgba(12, 13, 23, 0.74);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 240ms ease, transform 240ms ease;
    backdrop-filter: blur(14px);
  }

  .radio-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .radio-toast__art {
    display: flex;
    width: 49px;
    height: 49px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: linear-gradient(145deg, #754b97, #ec729f 55%, #ffc688);
  }

  .radio-toast__art span {
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    animation: equalizer 700ms ease-in-out infinite alternate;
  }

  .radio-toast__art span:nth-child(2) { animation-delay: 180ms; }
  .radio-toast__art span:nth-child(3) { animation-delay: 330ms; }
  .radio-toast__art span:nth-child(4) { animation-delay: 70ms; }
  .radio-toast__art span:nth-child(5) { animation-delay: 250ms; }

  @keyframes equalizer {
    from { transform: scaleY(0.38); }
    to { transform: scaleY(1.45); }
  }

  #radio-station,
  .radio-toast__track {
    display: block;
    margin-top: 3px;
  }

  #radio-station {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .radio-toast__track {
    color: rgba(255, 247, 239, 0.7);
    font-size: 9px;
  }

  .status-toast {
    position: absolute;
    top: 27%;
    left: 50%;
    max-width: min(560px, 82vw);
    padding: 11px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(11, 11, 19, 0.56);
    font-size: 11px;
    letter-spacing: 0.1em;
    opacity: 0;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -8px);
    transition: opacity 200ms ease, transform 200ms ease;
    backdrop-filter: blur(8px);
  }

  .status-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .pause-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 15px 27px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(11, 11, 19, 0.67);
    font-size: 12px;
    letter-spacing: 0.35em;
    transform: translate(-50%, -50%);
  }

  .mobile-controls {
    display: none;
  }
}

@layer overlays {
  .overlay-panel {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: grid;
    padding: 38px;
    place-items: center;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(17px);
  }

  .map-overlay__frame {
    display: flex;
    width: min(920px, 92vw);
    max-height: 90vh;
    flex-direction: column;
  }

  .overlay-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .overlay-panel__header h2 {
    margin: 5px 0 0;
    font-family: var(--display);
    font-size: clamp(25px, 4.5vw, 36px);
    letter-spacing: -0.045em;
  }

  .icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 26px;
    font-weight: 300;
    transition: border-color 160ms ease, color 160ms ease;
  }

  .icon-button:hover {
    border-color: var(--fuchsia);
    color: var(--fuchsia);
  }

  .map-overlay__canvas-wrap {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #101823;
  }

  #map-canvas {
    display: block;
    width: 100%;
    max-height: min(66vh, 600px);
    object-fit: contain;
  }

  .map-overlay__legend {
    display: flex;
    align-items: center;
    gap: 23px;
    margin-top: 15px;
    color: rgba(255, 247, 239, 0.8);
    font-size: 10px;
  }

  .map-overlay__legend > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .legend-dot--player {
    background: var(--cyan);
  }

  .legend-dot--mission {
    background: var(--amber);
  }

  .help-overlay__card {
    width: min(570px, 88vw);
    max-height: 88vh;
    padding: 27px 31px 24px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 16, 25, 0.79);
  }

  .control-list {
    margin-top: 25px;
  }

  .control-list > div {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 247, 239, 0.86);
    font-size: 12px;
  }

  .control-list > div > span:last-child {
    text-align: right;
  }

  .help-overlay__signoff {
    margin: 22px 0 0;
    color: var(--amber);
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

@layer responsive {
  @media (max-width: 740px) {
    :root {
      --safe-top: max(17px, env(safe-area-inset-top));
      --safe-side: max(15px, env(safe-area-inset-left), env(safe-area-inset-right));
      --safe-bottom: max(17px, env(safe-area-inset-bottom));
    }

    .splash__masthead span:last-child,
    .splash__footer span:last-child {
      display: none;
    }

    .splash__sun {
      top: 31%;
      width: 57vw;
    }

    .splash__controls {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 14px;
    }

    .location-panel__district {
      font-size: 20px;
    }

    .mission-panel {
      top: 114px;
      max-width: 240px;
    }

    .mission-panel__copy {
      font-size: 10px;
    }

    .minimap-shell {
      width: 124px;
      height: 124px;
    }

    .speed-cluster {
      width: 120px;
      height: 126px;
    }

    .speed-cluster__arc {
      width: 120px;
      height: 120px;
    }

    .speed-cluster__readout {
      top: 36px;
    }

    .speed-cluster__value {
      font-size: 37px;
    }

    .speed-cluster__unit,
    .speed-cluster__gear {
      font-size: 8px;
    }

    .drive-prompt,
    .session-panel__fps {
      display: none;
    }

    .radio-toast {
      top: 108px;
      width: min(270px, 49vw);
    }

    .radio-toast__art {
      width: 38px;
      height: 38px;
    }

    .overlay-panel {
      padding: 17px;
    }

    .map-overlay__legend {
      flex-wrap: wrap;
      gap: 10px 16px;
    }

    .help-overlay__card {
      padding: 22px 20px;
    }
  }

  @media (pointer: coarse), (max-width: 600px) {
    .drive-prompt,
    .splash__controls {
      display: none;
    }

    .hud__bottom {
      bottom: calc(var(--safe-bottom) + 79px);
    }

    .mobile-controls {
      position: absolute;
      right: var(--safe-side);
      bottom: var(--safe-bottom);
      left: var(--safe-side);
      display: flex;
      justify-content: space-between;
      pointer-events: auto;
    }

    .mobile-controls__steering,
    .mobile-controls__actions {
      display: flex;
      gap: 9px;
    }

    .mobile-controls__utility {
      position: absolute;
      bottom: 70px;
      left: 50%;
      display: flex;
      gap: 6px;
      transform: translateX(-50%);
    }

    .mobile-controls button {
      display: grid;
      width: 58px;
      height: 58px;
      padding: 0;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.39);
      border-radius: 50%;
      background: rgba(10, 12, 20, 0.48);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.07em;
      touch-action: none;
      backdrop-filter: blur(8px);
    }

    .mobile-controls__steering button {
      font-size: 37px;
      line-height: 1;
    }

    .mobile-controls__utility button {
      width: auto;
      min-width: 38px;
      height: 32px;
      padding: 0 8px;
      border-radius: 17px;
      font-size: 8px;
    }

    .mobile-controls button:active {
      border-color: var(--fuchsia);
      background: rgba(251, 86, 185, 0.3);
    }
  }

  @media (max-height: 540px) {
    .splash__center {
      top: 49%;
    }

    .splash__tagline {
      margin-bottom: 18px;
    }

    .splash__controls {
      margin-top: 16px;
    }

    .mission-panel {
      display: none;
    }

    .minimap-shell {
      width: 112px;
      height: 112px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}
