:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06101a;
  color: #f5f7f9;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html,
body,
#GameShell {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

body {
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

button {
  border: 0;
  font: inherit;
}

button:focus-visible,
#GameCanvas:focus-visible {
  outline: 3px solid #dff5a7;
  outline-offset: 3px;
}

button[aria-disabled='true'] {
  opacity: 0.42;
  cursor: not-allowed;
}

#GameShell {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(43, 79, 105, 0.22), transparent 46%),
    #06101a;
}

#GameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#GameCanvas.is-grab-ready {
  cursor: grab;
}

#GameCanvas.is-cage-ready {
  cursor: pointer;
}

#GameCanvas.is-ship-armed {
  cursor: grabbing;
}

#GameCanvas.is-aiming {
  cursor: grabbing;
}

#GameCanvas.is-walk-ready {
  cursor: move;
}

#GameCanvas.is-walking {
  cursor: move;
}

#GameCanvas.is-scouting {
  cursor: move;
}

.liberation-flash {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    circle at var(--liberation-x, 50%) var(--liberation-y, 50%),
    rgba(255, 248, 210, 0.62) 0,
    rgba(255, 214, 140, 0.28) 8%,
    rgba(120, 224, 255, 0.2) 16%,
    transparent 46%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.score-burst {
  position: absolute;
  z-index: 8;
  left: var(--burst-x, 50%);
  top: var(--burst-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  font-size: clamp(17px, 2.6vw, 26px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffe9a8;
  text-shadow: 0 0 14px rgba(255, 214, 120, 0.9), 0 2px 6px rgba(0, 0, 0, 0.65);
}

.score-burst.is-circuit {
  color: #ffd678;
  text-shadow: 0 0 22px rgba(255, 214, 120, 1), 0 2px 6px rgba(0, 0, 0, 0.65);
}

.score-burst[hidden],
.score-burst:empty {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  background: none !important;
  color: transparent !important;
  text-shadow: none !important;
  opacity: 0 !important;
}

.play-caption,
.route-label,
.here-label,
.tactical-label,
.status-toast,
.pull-hint,
.replay-indicator,
.instruction-panel,
.hud,
.objective-panel,
.warden-panel,
.scanner-panel,
.flight-score,
.aim-panel,
.score-burst,
.play-caption strong,
.play-caption span,
.how-to-play,
.how-to-play__board,
.how-to-play__list,
.how-to-play li {
  user-select: none;
  -webkit-user-select: none;
}

.leaderboard-form input {
  user-select: text;
  -webkit-user-select: text;
}

.pause-button {
  position: absolute;
  z-index: 8;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 13, 20, 0.42);
  color: rgba(238, 244, 248, 0.88);
  cursor: pointer;
  pointer-events: auto;
}

.pause-button[hidden] {
  display: none;
}

.pause-button__icon {
  display: block;
  width: 12px;
  height: 16px;
  margin: 0 auto;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.pause-sheet {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(2, 7, 12, 0.42);
  backdrop-filter: blur(10px);
}

.pause-sheet[hidden] {
  display: none;
}

.pause-sheet__board {
  display: grid;
  gap: 12px;
  width: min(92vw, 420px);
  padding: 18px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(4, 11, 18, 0.94);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.pause-sheet__board h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 235, 241, 0.72);
  text-align: center;
}

.pause-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pause-sheet__actions button,
#PauseResumeButton,
#HowToPlayButton {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 244, 248, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

#HowToPlayButton {
  width: 100%;
  letter-spacing: 0.08em;
}

#PauseResumeButton {
  width: 100%;
  background: #dff5a7;
  color: #102018;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.play-caption {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px));
  display: grid;
  justify-items: center;
  gap: 4px;
  max-width: min(88vw, 420px);
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 232, 176, 0.1);
  background: rgba(6, 14, 22, 0.12);
  color: #f4f7f4;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.88), 0 0 18px rgba(0, 0, 0, 0.7);
}

.play-caption[hidden],
.play-caption:has(strong:empty):has(span:empty) {
  display: none !important;
  background: none;
  border: 0;
  backdrop-filter: none;
}

.play-caption strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffe9ad;
}

.play-caption span {
  color: rgba(226, 235, 241, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.play-caption.is-fading {
  animation: play-caption-fade 3.2s ease-out forwards;
}

@keyframes play-caption-fade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .play-caption.is-fading {
    animation: none;
    opacity: 1;
  }
}

.score-burst.is-live {
  animation: score-burst-rise 1.35s ease-out forwards;
}

@keyframes score-burst-rise {
  0% { opacity: 0; transform: translate(-50%, -34%) scale(0.72); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  32% { transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -128%) scale(0.94); }
}

.counter__mastery.is-banking #ScoreCounter {
  animation: score-bank-pulse 0.62s ease-out;
}

@keyframes score-bank-pulse {
  0% { transform: scale(1); color: inherit; }
  28% { transform: scale(1.32); color: #ffe9a8; }
  100% { transform: scale(1); color: inherit; }
}

#ScoreCounter {
  display: inline-block;
  transform-origin: center left;
}

.opening-briefing {
  position: absolute;
  z-index: 11;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 80, 64, 0.18), transparent 42%),
    rgba(2, 7, 12, 0.84);
  backdrop-filter: blur(16px);
}

.opening-briefing[hidden] {
  display: none;
}

.opening-briefing__board {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(92vw, 560px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(4, 11, 18, 0.92);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.opening-briefing.is-warden .opening-briefing__board {
  border-color: rgba(255, 80, 64, 0.28);
}

.opening-briefing.is-haven .opening-briefing__board {
  border-color: rgba(141, 204, 112, 0.28);
}

.opening-briefing.is-courier .opening-briefing__board {
  border-color: rgba(255, 214, 120, 0.3);
}

.opening-briefing.is-ember .opening-briefing__board {
  border-color: rgba(255, 138, 72, 0.34);
}

.opening-briefing.is-grove .opening-briefing__board {
  border-color: rgba(126, 196, 118, 0.34);
}

.opening-briefing.is-tide .opening-briefing__board {
  border-color: rgba(95, 184, 201, 0.38);
}

.opening-briefing.is-frost .opening-briefing__board {
  border-color: rgba(198, 228, 255, 0.38);
}

.opening-briefing.is-bastion .opening-briefing__board {
  border-color: rgba(201, 160, 255, 0.38);
}

.opening-briefing.is-command .opening-briefing__board {
  border-color: rgba(255, 80, 64, 0.38);
}

.opening-briefing__kicker {
  margin: 0;
  color: #ffe29a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.opening-briefing__portrait {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.opening-briefing__portrait img {
  width: min(42vw, 168px);
  height: min(42vw, 168px);
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.opening-briefing__portrait figcaption {
  color: rgba(226, 235, 241, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.opening-briefing h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.05;
}

.opening-briefing p {
  margin: 0;
  max-width: 38ch;
  color: rgba(226, 235, 241, 0.86);
  font-size: 15px;
  line-height: 1.45;
}

.opening-briefing__progress {
  color: rgba(226, 235, 241, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.opening-briefing__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.opening-briefing__actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #dff5a7;
  color: #102018;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.opening-briefing__actions button.is-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(226, 235, 241, 0.82);
}

.how-to-play {
  position: absolute;
  z-index: 13;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(2, 7, 12, 0.84);
  backdrop-filter: blur(16px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.how-to-play[hidden] {
  display: none;
}

.how-to-play__board {
  display: grid;
  justify-items: stretch;
  gap: 14px;
  width: min(92vw, 420px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(4, 11, 18, 0.94);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.how-to-play__board h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 235, 241, 0.72);
  text-align: center;
}

.how-to-play__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-to-play__list li {
  margin: 0;
  color: rgba(238, 244, 248, 0.92);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.how-to-play__continue,
#HowToPlayContinueButton {
  min-height: 44px;
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #dff5a7;
  color: #102018;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.hud {
  position: absolute;
  z-index: 5;
  left: max(20px, env(safe-area-inset-left));
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hud--top {
  top: max(18px, env(safe-area-inset-top));
}

.hud--bottom {
  bottom: max(16px, env(safe-area-inset-bottom));
  color: rgba(235, 242, 247, 0.6);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title {
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.brand__subtitle {
  color: rgba(224, 235, 240, 0.68);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 12, 20, 0.46);
  backdrop-filter: blur(10px);
}

.counter__label {
  color: rgba(220, 231, 237, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.counter__value {
  font-size: 13px;
  font-weight: 800;
}

.counter.is-low #LaunchCounter {
  color: #ffb27d;
  text-shadow: 0 0 14px rgba(255, 119, 93, 0.38);
}

.counter.is-empty {
  border-color: rgba(255, 101, 82, 0.44);
  box-shadow: 0 0 26px rgba(255, 76, 63, 0.12);
}

.counter__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.counter__mastery {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #a9e9ff;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.counter__mastery.is-complete {
  color: #ffec9e;
  text-shadow: 0 0 14px rgba(255, 221, 120, 0.4);
}

.flight-score {
  position: absolute;
  z-index: 5;
  top: 65px;
  right: max(20px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 218, 126, 0.25);
  border-radius: 12px;
  background: rgba(5, 12, 20, 0.58);
  backdrop-filter: blur(10px);
  color: rgba(255, 232, 174, 0.68);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.flight-score[hidden] {
  display: none;
}

.flight-score strong {
  color: #ffe19a;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.flight-score small {
  grid-column: 1 / -1;
  color: #a9e9ff;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.scanner-panel {
  position: absolute;
  z-index: 5;
  top: 65px;
  left: max(20px, env(safe-area-inset-left));
  width: 150px;
  padding: 7px 9px 8px;
  border: 1px solid rgba(169, 233, 255, 0.15);
  border-radius: 12px;
  background: rgba(5, 12, 20, 0.5);
  backdrop-filter: blur(10px);
  color: rgba(194, 231, 243, 0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  pointer-events: none;
}

.scanner-panel[hidden] {
  display: none;
}

.scanner-panel svg {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: 2px;
  overflow: visible;
}

.scanner-world {
  fill: rgba(192, 209, 216, 0.35);
  stroke: rgba(226, 240, 245, 0.42);
  stroke-width: 1;
}

.scanner-world.is-restored {
  fill: #dff5a7;
  stroke: rgba(223, 245, 167, 0.6);
}

.scanner-command {
  fill: rgba(255, 214, 120, 0.25);
  stroke: #ffd678;
  stroke-width: 1.4;
}

.scanner-hazard {
  fill: #ff766d;
  opacity: 0.85;
}

.scanner-runner {
  fill: #ffffff;
  stroke: #72d9ff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 3px rgba(114, 217, 255, 0.8));
}

.scanner-warden {
  fill: #ff635c;
  stroke: #ffd0c8;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(255, 79, 70, 0.9));
}

.warden-panel {
  position: absolute;
  z-index: 5;
  top: 124px;
  right: max(20px, env(safe-area-inset-right));
  min-width: 174px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 99, 92, 0.42);
  border-radius: 10px;
  background: rgba(38, 8, 12, 0.82);
  box-shadow: 0 0 24px rgba(255, 64, 54, 0.12);
  color: #ffd7d1;
  pointer-events: none;
}

.warden-panel[hidden] {
  display: none;
}

.warden-panel span,
.warden-panel strong,
.warden-panel small {
  display: block;
}

.warden-panel span,
.warden-panel small {
  font-size: 10px;
  letter-spacing: 0.13em;
  line-height: 1.2;
  white-space: nowrap;
}

.warden-panel strong {
  margin: 3px 0;
  color: #ff7c73;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.warden-panel.is-defeated {
  border-color: rgba(223, 245, 167, 0.58);
  background: rgba(10, 34, 37, 0.86);
  box-shadow: 0 0 24px rgba(146, 220, 188, 0.16);
  color: #dcf6db;
}

.warden-panel.is-defeated strong {
  color: #dff5a7;
}

.warden-panel__track {
  display: flex;
  gap: 4px;
  margin: 4px 0 5px;
}

.warden-panel__track[hidden] {
  display: none;
}

.warden-panel__track span {
  display: block;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 124, 115, 0.18);
  border: 1px solid rgba(255, 124, 115, 0.3);
}

.warden-panel__track span.is-taken {
  background: #ff5148;
  border-color: #ff887f;
  box-shadow: 0 0 6px rgba(255, 81, 72, 0.75);
}

.warden-panel.is-step {
  animation: warden-step-pulse 0.9s ease-out 1;
}

@keyframes warden-step-pulse {
  0% {
    box-shadow: 0 0 24px rgba(255, 64, 54, 0.12);
    transform: scale(1);
  }

  22% {
    box-shadow: 0 0 34px rgba(255, 64, 54, 0.55);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 24px rgba(255, 64, 54, 0.12);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .warden-panel.is-step {
    animation: none;
  }
}

.burn-button {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: max(132px, calc(env(safe-area-inset-bottom) + 126px));
  min-width: 148px;
  min-height: 52px;
  padding: 8px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(109, 232, 255, 0.48);
  border-radius: 999px;
  background: rgba(8, 31, 45, 0.82);
  box-shadow: 0 0 28px rgba(72, 211, 255, 0.18), inset 0 0 18px rgba(109, 232, 255, 0.08);
  color: #dffbff;
  cursor: pointer;
  pointer-events: auto;
}

.burn-button[hidden] {
  display: none;
}

.burn-button span,
.burn-button strong {
  display: block;
}

.burn-button span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.burn-button strong {
  margin-top: 2px;
  color: #74e6ff;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.burn-button.is-spent {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: rgba(220, 232, 238, 0.38);
  pointer-events: none;
}

.objective-panel {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 10px;
  min-width: 176px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 224, 153, 0.13);
  border-radius: 15px;
  background: rgba(5, 12, 20, 0.5);
  backdrop-filter: blur(10px);
  text-align: left;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.objective-panel__label {
  color: rgba(255, 231, 174, 0.7);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.objective-panel__state {
  color: rgba(228, 236, 240, 0.72);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: right;
}

.objective-panel__pips {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.objective-panel__pips.is-binary {
  grid-template-columns: repeat(2, 1fr);
}

.objective-panel__pips span {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 240ms ease, box-shadow 240ms ease;
}

.objective-panel__pips span.is-filled,
.objective-panel.is-open .objective-panel__pips span {
  background: #dff5a7;
  box-shadow: 0 0 8px rgba(210, 244, 144, 0.45);
}

.objective-panel.is-open {
  border-color: rgba(255, 224, 153, 0.42);
  box-shadow: 0 0 30px rgba(255, 206, 113, 0.12);
}

.objective-panel.is-open .objective-panel__state {
  color: #ffe4a0;
}

.instruction-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: min(92vw, 440px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(5, 12, 20, 0.58);
  backdrop-filter: blur(12px);
  text-align: center;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.instruction-panel strong {
  font-size: 13px;
}

.instruction-panel span {
  color: rgba(226, 235, 241, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.instruction-panel.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.aim-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 144px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(90px, 150px) 34px;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 12, 20, 0.66);
  color: rgba(230, 240, 245, 0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.aim-panel[hidden] {
  display: none;
}

#AimLabel {
  min-width: 100px;
  max-width: 160px;
}

.aim-panel.is-locked {
  border-color: rgba(190, 246, 163, 0.35);
  color: #dffbd2;
  box-shadow: 0 0 24px rgba(141, 204, 112, 0.12);
}

.aim-panel.is-cancel {
  border-color: rgba(255, 176, 120, 0.45);
  color: #ffe0c2;
}

.aim-panel__meter {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.aim-panel__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8dcc70, #e9f9b9);
  box-shadow: 0 0 10px rgba(188, 236, 168, 0.5);
  transition: width 40ms linear;
}

.status-toast {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: max(18px, env(safe-area-inset-top));
  transform: translate(-50%, -8px) scale(0.96);
  opacity: 0;
  color: #f8fbff;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
  width: min(88vw, 680px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.status-toast:not(.is-visible),
.status-toast:empty,
.status-toast[hidden] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

.status-toast.is-memory {
  font-size: clamp(13px, 2vw, 20px);
  font-style: italic;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

.replay-indicator {
  position: absolute;
  z-index: 7;
  /* Sits below the status-toast band so replay toasts never stack on the pill. */
  top: max(64px, calc(env(safe-area-inset-top) + 46px));
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(126, 230, 255, 0.32);
  border-radius: 999px;
  background: rgba(5, 17, 27, 0.78);
  color: #b8efff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(9px);
}

.route-labels {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.route-labels:not(.is-active),
.route-labels[hidden] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.route-label,
.here-label,
.tactical-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  color: #ffe4a8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-width: 0;
  min-height: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.92), 0 0 16px rgba(0, 0, 0, 0.72);
}

.tactical-label {
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.route-label {
  white-space: nowrap;
}

.here-label {
  white-space: nowrap;
  color: #fff6d4;
}

.tactical-label--seedstone {
  border: 0;
  color: #a8eaff;
  box-shadow: none;
}

.tactical-label--hazard {
  border: 0;
  color: #ffaca6;
  box-shadow: none;
}

.tactical-label--worldheart {
  border: 0;
  color: #ffe2a0;
  box-shadow: none;
}

.route-label:empty,
.here-label:empty,
.tactical-label:empty,
.route-label[hidden],
.here-label[hidden],
.tactical-label[hidden],
.route-label:not([data-visible="true"]),
.here-label:not([data-visible="true"]),
.tactical-label:not([data-visible="true"]) {
  display: none !important;
  visibility: hidden !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  color: transparent !important;
  text-shadow: none !important;
  transform: none !important;
  opacity: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.victory-panel {
  position: absolute;
  z-index: 10;
  inset: 0;
  margin: auto;
  width: min(90vw, 520px);
  height: max-content;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(4, 11, 18, 0.82);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
  text-align: center;
}

.leaderboard-panel {
  position: absolute;
  z-index: 12;
  inset: 0;
  margin: auto;
  width: min(90vw, 520px);
  height: max-content;
  max-height: min(86vh, 680px);
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 148, 0.18);
  border-radius: 24px;
  background: rgba(4, 11, 18, 0.94);
  box-shadow:
    0 0 0 100vmax rgba(1, 6, 10, 0.72),
    0 24px 90px rgba(0, 0, 0, 0.58);
  clip-path: inset(-100vmax);
  backdrop-filter: blur(20px);
  text-align: left;
}

.leaderboard-panel__eyebrow {
  color: #ffe29a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.leaderboard-panel h2 {
  margin: 8px 0 5px;
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1;
}

.leaderboard-panel__status {
  min-height: 18px;
  margin: 0 0 14px;
  color: rgba(229, 237, 241, 0.62);
  font-size: 12px;
}

.leaderboard-form {
  margin-bottom: 12px;
}

.leaderboard-form label {
  display: block;
  margin-bottom: 5px;
  color: rgba(214, 228, 235, 0.68);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.leaderboard-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.leaderboard-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: #f2f7f9;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-form input:focus {
  border-color: rgba(255, 226, 154, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 226, 154, 0.08);
}

.leaderboard-panel button {
  pointer-events: auto;
  min-height: 44px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 999px;
  background: #eaf6e8;
  color: #102116;
  font-weight: 850;
}

.leaderboard-panel button.is-secondary,
.leaderboard-list button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(235, 243, 246, 0.76);
}

.leaderboard-list {
  max-height: min(37vh, 280px);
  margin: 0 0 14px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.leaderboard-list__rank {
  color: #ffe29a;
  font-size: 12px;
  font-weight: 850;
}

.leaderboard-list__runner {
  min-width: 0;
}

.leaderboard-list__runner strong,
.leaderboard-list__runner small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-list__runner strong {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.leaderboard-list__runner small {
  color: rgba(214, 228, 235, 0.68);
  font-size: 10px;
  line-height: 1.2;
}

.leaderboard-list__score {
  font-size: 13px;
  font-weight: 900;
}

.leaderboard-list button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 10px;
}

.leaderboard-list .leaderboard-list__empty {
  display: block;
  padding: 20px 6px;
  color: rgba(214, 228, 235, 0.48);
  font-size: 12px;
  text-align: center;
}

#CloseLeaderboardButton {
  width: 100%;
}

.victory-panel__eyebrow {
  color: #b9e6b4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.victory-panel h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 0.98;
}

.victory-panel p {
  margin: 0 auto 12px;
  color: rgba(229, 237, 241, 0.66);
  font-size: 14px;
}

.personal-best-label {
  display: block;
  margin-bottom: 10px;
  color: #ffe29a;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.result-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 10px;
}

.result-breakdown div {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.result-breakdown dt {
  overflow: hidden;
  color: rgba(214, 228, 235, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.result-breakdown dd {
  margin: 3px 0 0;
  color: #f2f7f9;
  font-size: 12px;
  font-weight: 850;
}

.victory-panel button,
.pause-sheet button,
.scout-zoom-button {
  pointer-events: auto;
  cursor: pointer;
}

.status-toast.is-warden {
  width: min(90vw, 720px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 99, 92, 0.5);
  border-radius: 10px;
  background: rgba(38, 8, 12, 0.88);
  box-shadow: 0 0 28px rgba(255, 64, 54, 0.14);
  color: #ffd0c8;
  font-size: clamp(13px, 2vw, 20px);
  line-height: 1.35;
  letter-spacing: 0.09em;
}

.constellation-summary {
  display: block;
  width: min(100%, 310px);
  height: 92px;
  margin: 2px auto 14px;
  overflow: visible;
}

.constellation-summary path {
  fill: none;
  stroke: rgba(197, 216, 226, 0.16);
  stroke-width: 1.25;
}

.constellation-summary circle {
  fill: #424d55;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

.constellation-summary g.is-awake circle {
  fill: #a9d58f;
  stroke: #e7ffd3;
  filter: drop-shadow(0 0 5px rgba(183, 236, 151, 0.7));
}

.constellation-summary g.is-heart.is-awake circle {
  fill: #ffd978;
  stroke: #fff0b8;
  filter: drop-shadow(0 0 7px rgba(255, 211, 111, 0.85));
}

.emblem-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 auto 20px;
}

.emblem {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(220, 230, 235, 0.34);
  background: rgba(255, 255, 255, 0.025);
}

.emblem strong {
  font-size: 10px;
  letter-spacing: 0.15em;
}

.emblem small {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.emblem.is-earned {
  border-color: rgba(255, 225, 148, 0.26);
  color: #ffe7a8;
  background: rgba(255, 220, 130, 0.07);
  box-shadow: inset 0 0 18px rgba(255, 212, 110, 0.05);
}

.victory-panel button {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #eaf6e8;
  color: #102116;
  font-weight: 850;
}

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

#PlayAgainButton {
  grid-column: 1 / -1;
}

.victory-panel button.is-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(235, 243, 246, 0.72);
}

.scout-zoom-button {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(6, 13, 20, 0.5);
  color: rgba(238, 244, 248, 0.62);
  font-size: 11px;
}

.scout-zoom-button {
  min-width: 44px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.scout-zoom-button[hidden] {
  display: none;
}

.hud__actions {
  display: flex;
  gap: 8px;
}

.hud--bottom {
  justify-content: flex-end;
}

.pull-hint {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  will-change: transform;
}

.pull-hint[hidden] {
  display: none;
}

.pull-hint__chevrons {
  display: flex;
  gap: 5px;
}

.pull-hint__chevrons i {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2.5px solid #ffe9ad;
  border-right: 2.5px solid #ffe9ad;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 5px rgba(255, 214, 120, 0.85));
  animation: pull-hint-march 1.15s ease-out infinite;
}

.pull-hint__chevrons i:nth-child(2) {
  animation-delay: 0.14s;
}

.pull-hint__chevrons i:nth-child(3) {
  animation-delay: 0.28s;
}

.pull-hint__label {
  color: #ffe9ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 0 8px rgba(4, 8, 14, 0.9), 0 0 14px rgba(255, 214, 120, 0.5);
  white-space: nowrap;
}

@keyframes pull-hint-march {
  0% {
    opacity: 0.15;
    transform: rotate(45deg) translate(-3px, 3px);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0.1;
    transform: rotate(45deg) translate(3px, -3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pull-hint__chevrons i {
    animation: none;
    opacity: 0.9;
  }
}

.aim-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(2, 6, 12, 0) 46%, rgba(2, 6, 12, 0.5) 100%);
  transition: opacity 300ms ease;
}

#GameShell[data-control-mode='launch'] .aim-vignette {
  opacity: 1;
}

#GameShell[data-control-mode='explore'] #GameCanvas {
  cursor: grab;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 640px) {
  .brand__subtitle {
    display: none;
  }

  .hud__actions {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }

  .scout-zoom-button {
    min-width: 44px;
    padding-inline: 5px;
    font-size: 10px;
    line-height: 1.2;
  }

  .scout-zoom-button {
    font-size: 19px;
    line-height: 1;
  }

  .instruction-panel {
    bottom: max(62px, calc(env(safe-area-inset-bottom) + 56px));
  }

  .hud {
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
  }

  .brand__title {
    font-size: 15px;
    letter-spacing: 0.12em;
  }

  .counter {
    gap: 5px;
    padding: 7px 8px;
    white-space: nowrap;
  }

  .counter__label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .counter__value {
    font-size: 12px;
  }

  .counter__mastery {
    gap: 4px;
  }

  .flight-score {
    top: 104px;
    right: max(14px, env(safe-area-inset-right));
  }

  .scanner-panel {
    top: 104px;
    left: max(14px, env(safe-area-inset-left));
    width: 118px;
  }

  .scanner-panel svg {
    height: 50px;
  }

  .objective-panel {
    top: 62px;
    min-width: 168px;
    padding: 7px 11px;
  }

  .warden-panel {
    top: 164px;
    right: max(14px, env(safe-area-inset-right));
    min-width: 142px;
    padding: 7px 9px;
  }

  .victory-panel {
    padding: 24px 22px;
  }

  .leaderboard-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 22px 18px;
  }

  .leaderboard-form > div {
    grid-template-columns: 1fr;
  }

  .leaderboard-list {
    max-height: 31vh;
  }

  .replay-indicator {
    top: max(18px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    right: max(68px, calc(env(safe-area-inset-right) + 56px));
    transform: none;
    text-align: center;
  }

  .result-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .aim-panel {
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 120px));
  }
}

@media (max-width: 380px) {
  .instruction-panel {
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px));
  }
}

@media (max-width: 340px) {
  .hud__actions {
    flex-wrap: wrap;
  }

  .instruction-panel {
    bottom: max(118px, calc(env(safe-area-inset-bottom) + 112px));
  }
}

@media (orientation: portrait) and (max-width: 640px) {
  .aim-panel,
  .burn-button {
    bottom: max(156px, calc(env(safe-area-inset-bottom) + 150px));
  }
}

@media (orientation: portrait) and (max-width: 340px) {
  .aim-panel,
  .burn-button {
    bottom: max(206px, calc(env(safe-area-inset-bottom) + 200px));
  }
}

@media (orientation: portrait) and (max-width: 380px) {
  .victory-panel {
    max-height: calc(100vh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .result-actions {
    position: sticky;
    bottom: -1px;
    padding-top: 8px;
    background: linear-gradient(
      to bottom,
      rgba(4, 11, 18, 0),
      rgba(4, 11, 18, 0.98) 8px
    );
  }

  .result-actions button {
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .burn-button {
    right: max(18px, env(safe-area-inset-right));
    left: auto;
    transform: none;
  }

  .victory-panel {
    top: max(12px, env(safe-area-inset-top));
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    margin: 0;
    width: min(calc(100vw - 24px), 760px);
    height: auto;
    max-height: none;
    padding: 16px 22px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-50%);
  }

  .opening-briefing__board {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    gap: 8px 16px;
    width: min(calc(100vw - 24px), 720px);
    padding: 16px 18px;
  }

  .opening-briefing__kicker,
  .opening-briefing h1,
  .opening-briefing p,
  .opening-briefing__actions {
    grid-column: 2;
  }

  .opening-briefing__portrait {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin: 0;
  }

  .opening-briefing__portrait img {
    width: 108px;
    height: 108px;
  }

  .opening-briefing h1 {
    max-width: none;
    font-size: 24px;
  }

  .opening-briefing p {
    max-width: none;
    font-size: 14px;
  }

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

  .how-to-play__board {
    width: min(calc(100vw - 24px), 520px);
    padding: 16px 18px 14px;
    gap: 10px;
  }

  .how-to-play__list {
    gap: 8px;
  }

  .how-to-play__list li {
    font-size: 16px;
    line-height: 1.3;
  }

  .victory-panel h1 {
    margin: 6px 0;
    font-size: 32px;
    line-height: 1;
  }

  .victory-panel p {
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.3;
  }

  .personal-best-label,
  .result-breakdown,
  .constellation-summary,
  .emblem-row {
    margin-bottom: 6px;
  }

  .constellation-summary {
    height: 58px;
  }

  .emblem {
    padding-block: 6px;
  }

  .result-actions {
    position: sticky;
    bottom: -1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 7px;
    background: linear-gradient(
      to bottom,
      rgba(4, 11, 18, 0),
      rgba(4, 11, 18, 0.98) 7px
    );
  }

  #PlayAgainButton {
    grid-column: auto;
  }
}

@media (orientation: landscape) and (min-width: 480px) and (max-height: 520px) {
  .warden-panel {
    top: 62px;
  }

  .instruction-panel {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: min(92vw, 540px);
    padding: 9px 14px;
    text-align: left;
  }

  .instruction-panel strong {
    flex: 0 0 clamp(112px, 20vw, 148px);
  }
}

@media (orientation: landscape) and (min-width: 480px) and (max-width: 640px) and (max-height: 520px) {
  .aim-panel {
    bottom: max(140px, calc(env(safe-area-inset-bottom) + 134px));
  }

  .result-actions button {
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }
}
