:root {
  color-scheme: dark;
  --ink: #050914;
  --ink-2: #0a1222;
  --panel: rgba(8, 15, 29, 0.94);
  --panel-soft: rgba(19, 31, 51, 0.86);
  --white: #f7f8fb;
  --muted: #a9b4c4;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.3);
  --red: #e0233f;
  --red-dark: #9f152c;
  --blue: #2463c7;
  --blue-dark: #0d2b62;
  --gold: #f0bd61;
  --green: #63d39b;
  --danger: #ff405c;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: #03050b;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-screen[hidden],
.app-shell[hidden] { display: none; }

.disclaimer-dialog {
  width: min(38rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: #080f1d;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.78);
  color: #ffffff;
}

.disclaimer-dialog::backdrop {
  background: rgba(1, 3, 8, 0.84);
  backdrop-filter: blur(8px);
}

.disclaimer-flag {
  display: grid;
  height: 6px;
  margin: -1.6rem -1.6rem 1.35rem;
  grid-template-columns: repeat(3, 1fr);
}

.disclaimer-flag i:nth-child(1) { background: var(--red); }
.disclaimer-flag i:nth-child(2) { background: #ffffff; }
.disclaimer-flag i:nth-child(3) { background: var(--blue); }

.disclaimer-kicker,
.disclaimer-dialog h2,
.disclaimer-dialog p {
  margin: 0;
}

.disclaimer-kicker {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.disclaimer-dialog h2 {
  margin-top: 0.3rem;
  font-size: 2rem;
  line-height: 1;
}

.disclaimer-dialog p:not(.disclaimer-kicker) {
  margin-top: 0.9rem;
  color: #c8d0dc;
  font-size: 0.88rem;
  line-height: 1.55;
}

.disclaimer-actions {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.disclaimer-accept,
.disclaimer-cancel {
  min-height: 3.2rem;
  padding: 0 1.1rem;
  border-radius: 5px;
  font-weight: 900;
}

.disclaimer-accept {
  flex: 1;
  background: #ffffff;
  color: #050914;
}

.disclaimer-cancel {
  border: 1px solid var(--line-strong);
  background: #121c2c;
  color: #ffffff;
}

.disclaimer-accept:hover,
.disclaimer-cancel:hover {
  filter: brightness(1.08);
}

button {
  appearance: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  min-height: 36rem;
  background:
    linear-gradient(90deg, rgba(224, 35, 63, 0.1), transparent 28%, transparent 72%, rgba(36, 99, 199, 0.11)),
    #050914;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(30rem, 48rem) auto;
  align-items: center;
  min-height: 4.75rem;
  gap: 1.15rem;
  padding: 0.65rem clamp(0.8rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(224, 35, 63, 0.22), transparent 22%, transparent 72%, rgba(36, 99, 199, 0.18)),
    rgba(5, 9, 20, 0.96);
  box-shadow: 0 0.65rem 2rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.72rem;
}

.flag-mark {
  display: block;
  flex: 0 0 3.65rem;
  width: 3.65rem;
  height: auto;
  aspect-ratio: 1.9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  box-shadow: 0 0.45rem 1.15rem rgba(0, 0, 0, 0.3);
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.brand-copy small {
  overflow: hidden;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-copy strong {
  overflow: hidden;
  font-size: clamp(1rem, 1.8vw, 1.42rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud {
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.9fr 1fr 1.4fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.hud-item {
  display: grid;
  min-width: 0;
  min-height: 3.25rem;
  align-content: center;
  padding: 0.38rem 0.72rem;
  border-left: 1px solid var(--line);
}

.hud-item:first-child {
  border-left: 0;
}

.hud-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hud-item strong {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.42rem;
  margin-top: 0.13rem;
  font-size: clamp(0.88rem, 1.45vw, 1.12rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.hud-item b {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
}

.mission-hud strong {
  color: #ffffff;
}

.timer-hud.urgent strong {
  color: #ff6b7f;
  animation: timer-pulse 650ms ease-in-out infinite alternate;
}

.wind-hud i {
  position: relative;
  display: inline-block;
  width: 1.7rem;
  height: 0.55rem;
  transform-origin: 50% 50%;
}

.wind-hud i::before {
  position: absolute;
  top: 0.22rem;
  left: 0;
  width: 1.45rem;
  height: 2px;
  background: var(--gold);
  content: "";
}

.wind-hud i::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.wind-hud i.reverse {
  transform: rotate(180deg);
}

.sound-button {
  position: relative;
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
}

.mission-menu-button {
  display: grid;
  grid-template-columns: 1.35rem auto;
  align-items: center;
  min-height: 2.65rem;
  gap: 0.5rem;
  padding: 0 0.72rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.mission-menu-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.mission-menu-button strong {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after,
.menu-icon i {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #ffffff;
  content: "";
}

.menu-icon {
  position: relative;
}

.menu-icon::before {
  position: absolute;
  top: -0.38rem;
}

.menu-icon::after {
  position: absolute;
  top: 0.38rem;
}

.menu-icon i {
  position: absolute;
  inset: 0;
}

.sound-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sound-button span {
  position: relative;
  display: block;
  width: 0.6rem;
  height: 0.8rem;
  border-radius: 2px;
  background: #ffffff;
}

.sound-button span::before {
  position: absolute;
  top: -0.19rem;
  left: 0.32rem;
  width: 0.82rem;
  height: 1.18rem;
  border: 2px solid #ffffff;
  border-left: 0;
  border-radius: 0 100% 100% 0;
  content: "";
}

.sound-button.muted::after {
  position: absolute;
  width: 1.5rem;
  height: 2px;
  background: var(--red);
  content: "";
  transform: rotate(-45deg);
}

.stage-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000000;
}

.mission-countdown {
  position: absolute;
  z-index: 4;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  min-width: 4.75rem;
  padding: 0.42rem 0.65rem 0.46rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 3px solid var(--red);
  border-radius: 5px;
  background: rgba(6, 10, 18, 0.94);
  box-shadow: 0 0.45rem 1.1rem rgba(0, 0, 0, 0.35);
  color: #ffffff;
  pointer-events: none;
  text-align: right;
}

.mission-countdown[hidden] {
  display: none;
}

.mission-countdown span {
  color: #aeb8c6;
  font-size: 0.52rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.mission-countdown strong {
  margin-top: 0.16rem;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mission-countdown.urgent {
  border-color: rgba(255, 107, 127, 0.74);
  border-left-color: #ff5269;
}

.mission-countdown.urgent strong {
  color: #ff6b7f;
  animation: timer-pulse 650ms ease-in-out infinite alternate;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: none;
  touch-action: none;
  user-select: none;
}

.menu-panel {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: clamp(1rem, 4vw, 4.2rem);
  width: min(58rem, calc(100% - 2rem));
  max-height: calc(100% - 1.5rem);
  overflow: auto;
  padding: clamp(1.05rem, 2.2vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background:
    linear-gradient(115deg, rgba(224, 35, 63, 0.1), transparent 34%),
    var(--panel);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
  transform: translateY(-50%);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
}

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

.briefing-copy {
  position: relative;
  max-width: 46rem;
  padding-right: 1rem;
}

.briefing-copy::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 3.5rem;
  background: linear-gradient(180deg, var(--blue), transparent);
  content: "";
}

.kicker,
.briefing-copy h1,
.briefing-copy p {
  margin: 0;
}

.kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.briefing-copy h1 {
  margin-top: 0.26rem;
  font-size: clamp(1.9rem, 5vw, 4rem);
  line-height: 0.96;
}

.briefing-copy p:not(.kicker) {
  max-width: 42rem;
  margin-top: 0.72rem;
  color: #c7d0dc;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.5;
}

.mission-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.mission-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-width: 0;
  min-height: 3.2rem;
  gap: 0.62rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.mission-tab:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.mission-tab:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: saturate(0.35);
}

.mission-tab:disabled:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  transform: none;
}

.mission-tab:disabled > span {
  color: var(--muted);
}

.mission-tab.selected {
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(90deg, rgba(36, 99, 199, 0.32), rgba(224, 35, 63, 0.13));
  box-shadow: inset 3px 0 var(--blue);
}

.mission-tab > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
}

.mission-tab strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-tab small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  white-space: nowrap;
}

.armory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.armory-heading div {
  display: grid;
  gap: 0.08rem;
}

.armory-heading small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.armory-heading strong {
  font-size: 0.92rem;
}

.armory-heading > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
}

.weapon-rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
  margin-top: 0.6rem;
}

.weapon-rack[hidden],
.mission-selector[hidden],
.armory-heading[hidden] {
  display: none;
}

.weapon-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 9.35rem;
  align-content: start;
  gap: 0.42rem;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.weapon-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.weapon-card.selected {
  border-color: rgba(240, 189, 97, 0.84);
  background: linear-gradient(180deg, rgba(240, 189, 97, 0.12), rgba(36, 99, 199, 0.12));
  box-shadow: inset 0 -3px var(--red);
}

.weapon-card.selected::after {
  position: absolute;
  top: 0.58rem;
  right: 0.58rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 35, 63, 0.2);
  content: "";
}

.weapon-card.locked {
  cursor: not-allowed;
}

.weapon-card.locked:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  transform: none;
}

.weapon-card.locked > :not(.weapon-lock) {
  opacity: 0.32;
  filter: grayscale(0.75);
}

.weapon-lock {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.24rem;
  padding: 0.65rem;
  background: rgba(4, 8, 16, 0.62);
  color: #ffffff;
  text-align: center;
  pointer-events: none;
}

.weapon-card:not(.locked) .weapon-lock {
  display: none;
}

.weapon-lock i {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 1.05rem;
  margin-top: 0.42rem;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.weapon-lock i::before {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 50%;
  width: 0.72rem;
  height: 0.62rem;
  border: 2px solid #ffffff;
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  content: "";
  transform: translateX(-50%);
}

.weapon-lock strong {
  margin-top: 0.22rem;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.weapon-lock small {
  color: #cad2df;
  font-size: 0.58rem;
  font-weight: 750;
}

.weapon-card[data-gun="m249"] {
  grid-column: 1 / -1;
}

.weapon-class {
  color: var(--gold);
  font-size: 0.57rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rifle-art {
  display: block;
  width: 100%;
  height: 4.9rem;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0.5rem 0.38rem rgba(0, 0, 0, 0.55));
}

.weapon-card[data-gun="m249"] .rifle-art {
  height: 5.35rem;
}

.weapon-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  gap: 0.4rem;
}

.weapon-name > span {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 0.42rem;
}

.weapon-name strong {
  overflow: hidden;
  font-size: 0.96rem;
  text-overflow: ellipsis;
}

.weapon-name small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weapon-name > b {
  padding: 0.16rem 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  color: #dce4ed;
  font-size: 0.56rem;
  font-weight: 850;
  white-space: nowrap;
}

.weapon-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.weapon-stats > span {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.weapon-stats small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.5rem;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.weapon-stats i {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.weapon-stats i b {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--gold);
}

.panel-actions {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 1rem;
}

.retry-offer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(240, 189, 97, 0.54);
  border-bottom: 1px solid rgba(240, 189, 97, 0.32);
}

.retry-offer[hidden] {
  display: none;
}

.retry-offer > div:first-child {
  display: grid;
  gap: 0.16rem;
}

.retry-offer small {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retry-offer strong {
  font-size: 0.92rem;
}

.retry-offer p {
  max-width: 36rem;
  margin: 0.2rem 0 0;
  color: #bec8d5;
  font-size: 0.72rem;
  line-height: 1.4;
}

.retry-offer-actions {
  display: grid;
  min-width: 12rem;
  gap: 0.4rem;
}

.retry-offer-actions button {
  min-height: 2.35rem;
  padding: 0 0.72rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 850;
}

.retry-offer-actions button:first-child {
  background: var(--gold);
  color: #090e18;
}

.retry-offer-actions button:last-child {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.primary-action,
.secondary-action {
  min-height: 3.25rem;
  border-radius: 5px;
  font-weight: 850;
}

.primary-action {
  display: grid;
  flex: 1;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(105deg, #e9edf4 0 23%, #d91f3b 23% 47%, #174d9e 47% 100%);
  color: #ffffff;
  box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.28);
  text-align: left;
}

.primary-action:hover {
  filter: brightness(1.08);
}

.primary-action > span {
  color: #091221;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.primary-action strong {
  color: #050914;
  font-size: 0.92rem;
}

.secondary-action {
  padding: 0 1.2rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.11);
}

.campaign-complete {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(41rem, calc(100% - 2rem));
  max-height: calc(100% - 1.5rem);
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(6, 12, 24, 0.97);
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.72);
  transform: translate(-50%, -50%);
}

.campaign-complete[hidden] {
  display: none;
}

.completion-stripes {
  height: 6px;
  margin: calc(clamp(1.25rem, 3vw, 2.25rem) * -1) calc(clamp(1.25rem, 3vw, 2.25rem) * -1) 1.3rem;
  background: linear-gradient(90deg, var(--red) 0 33.333%, #ffffff 33.333% 66.666%, var(--blue) 66.666%);
}

.campaign-complete h1,
.campaign-complete > p {
  margin: 0;
}

.campaign-complete h1 {
  margin-top: 0.28rem;
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

.campaign-complete > p:not(.kicker):not(.request-status) {
  max-width: 35rem;
  margin-top: 0.8rem;
  color: #cbd4e0;
  line-height: 1.55;
}

.level-request-form {
  display: grid;
  gap: 0.52rem;
  margin-top: 1.35rem;
}

.level-request-form label {
  margin-top: 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.level-request-form input,
.level-request-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font: inherit;
}

.level-request-form input {
  min-height: 3rem;
  padding: 0 0.85rem;
}

.level-request-form textarea {
  min-height: 7rem;
  padding: 0.75rem 0.85rem;
  resize: vertical;
}

.level-request-form input:focus,
.level-request-form textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(36, 99, 199, 0.45);
}

.completion-actions {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.request-submit {
  flex: 1;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  background: linear-gradient(100deg, #f2f4f8 0 34%, #d91f3b 34% 62%, #174d9e 62%);
  color: #050914;
  font-weight: 900;
}

.request-submit:hover {
  filter: brightness(1.08);
}

.request-submit:disabled {
  cursor: default;
  filter: grayscale(0.45);
  opacity: 0.72;
}

.level-request-form[hidden] {
  display: none;
}

.request-status {
  margin-top: 1.25rem !important;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--green);
  background: rgba(99, 211, 155, 0.1);
  color: #dff8ec;
  line-height: 1.45;
}

.toast {
  position: absolute;
  z-index: 8;
  top: 1.15rem;
  left: 50%;
  min-width: 12rem;
  max-width: calc(100% - 2rem);
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: rgba(5, 9, 20, 0.92);
  box-shadow: inset 3px 0 var(--gold), 0 0.7rem 2rem rgba(0, 0, 0, 0.5);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -0.75rem);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
}

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

.reload-meter {
  position: absolute;
  z-index: 7;
  bottom: 1.25rem;
  left: 50%;
  width: min(18rem, 54vw);
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 100ms ease;
  pointer-events: none;
}

.reload-meter.show {
  opacity: 1;
}

.reload-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.actionbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 4.85rem;
  gap: 0.55rem;
  padding: 0.55rem clamp(0.7rem, 2vw, 1.25rem) max(0.55rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(36, 99, 199, 0.15), transparent 40%, rgba(224, 35, 63, 0.12)),
    rgba(5, 9, 20, 0.97);
  box-shadow: 0 -0.6rem 1.8rem rgba(0, 0, 0, 0.3);
}

.control-button {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem auto;
  align-items: center;
  min-width: 7rem;
  min-height: 3.5rem;
  gap: 0.52rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.control-button:hover,
.control-button.active {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.control-button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.04rem;
}

.control-button small {
  color: var(--gold);
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
}

.control-button strong {
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-icon {
  position: relative;
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.reload-icon::before {
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid #ffffff;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
}

.reload-icon::after {
  position: absolute;
  top: 0.34rem;
  right: 0.36rem;
  width: 0;
  height: 0;
  border-top: 0.24rem solid transparent;
  border-bottom: 0.24rem solid transparent;
  border-left: 0.35rem solid #ffffff;
  content: "";
  transform: rotate(-18deg);
}

.breath-icon::before {
  width: 1.1rem;
  height: 0.7rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  content: "";
}

.breath-icon::after {
  position: absolute;
  width: 0.1rem;
  height: 0.75rem;
  background: #ffffff;
  content: "";
}

.reset-icon::before {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
}

.reset-icon::after {
  position: absolute;
  top: 0.36rem;
  left: 0.37rem;
  width: 0;
  height: 0;
  border-right: 0.34rem solid #ffffff;
  border-top: 0.24rem solid transparent;
  border-bottom: 0.24rem solid transparent;
  content: "";
}

.breath-meter {
  position: absolute;
  right: 0.45rem;
  bottom: 0.25rem;
  left: 0.45rem;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.breath-meter b {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform-origin: left;
}

.status-strip {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(0.45rem, 1.5vw, 1.15rem);
  padding: 0 0.55rem;
  color: var(--muted);
  font-size: clamp(0.62rem, 1.15vw, 0.76rem);
  font-weight: 750;
}

.status-strip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#statusText {
  color: #ffffff;
}

.fire-button {
  display: grid;
  grid-template-columns: 2.15rem auto;
  align-items: center;
  min-width: 7.4rem;
  min-height: 3.55rem;
  gap: 0.55rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  background: linear-gradient(135deg, #e52a46, #a61029);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 0.55rem 1.2rem rgba(0, 0, 0, 0.28);
  text-transform: uppercase;
}

.fire-button:hover {
  filter: brightness(1.1);
}

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

.fire-button > span {
  display: block;
  width: 2rem;
  height: 2rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.fire-button strong {
  font-size: 0.8rem;
}

@keyframes timer-pulse {
  to { opacity: 0.58; }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(12rem, 1fr) minmax(24rem, 2fr) auto;
    gap: 0.65rem;
  }

  .hud-item {
    padding-inline: 0.5rem;
  }

  .menu-panel {
    left: 1rem;
  }

  .campaign-complete {
    width: calc(100% - 1.1rem);
    max-height: calc(100% - 0.8rem);
    padding: 1rem;
  }

  .completion-stripes {
    margin: -1rem -1rem 1rem;
  }

  .campaign-complete h1 {
    font-size: 2.2rem;
  }

  .completion-actions {
    flex-direction: column;
  }

  .control-button {
    min-width: 3.5rem;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 0.4rem;
  }

  .control-button > span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 760px) {








  .disclaimer-dialog {
    padding: 1.1rem;
  }

  .disclaimer-flag {
    margin: -1.1rem -1.1rem 1rem;
  }

  .disclaimer-actions {
    flex-direction: column;
  }

  .app-shell {
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 30rem;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 4rem;
    padding: 0.45rem 0.6rem;
  }

  .mission-countdown {
    top: 0.5rem;
    right: 0.5rem;
    min-width: 4.2rem;
    padding: 0.34rem 0.5rem 0.38rem;
  }

  .mission-countdown strong {
    font-size: 0.95rem;
  }

  .flag-mark {
    flex-basis: 3rem;
    width: 3rem;
  }

  .brand-copy small {
    font-size: 0.52rem;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .hud {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .hud-item {
    min-height: 2.55rem;
    padding: 0.3rem 0.42rem;
  }

  .hud-item span {
    font-size: 0.5rem;
  }

  .hud-item strong {
    font-size: 0.76rem;
  }

  .sound-button {
    width: 2.35rem;
    height: 2.35rem;
  }

  .mission-menu-button {
    min-height: 2.35rem;
    padding-inline: 0.58rem;
  }

  .mission-menu-button strong {
    font-size: 0.62rem;
  }

  .menu-panel {
    top: 50%;
    left: 0.55rem;
    width: calc(100% - 1.1rem);
    max-height: calc(100% - 0.8rem);
    padding: 0.85rem;
  }

  .briefing-copy h1 {
    font-size: clamp(1.55rem, 8vw, 2.65rem);
  }

  .briefing-copy p:not(.kicker) {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .mission-selector {
    gap: 0.32rem;
    margin-top: 0.82rem;
  }

  .mission-tab {
    grid-template-columns: auto 1fr;
    min-height: 2.75rem;
    gap: 0.38rem;
    padding: 0.35rem;
  }

  .mission-tab > span {
    width: 1.62rem;
    height: 1.62rem;
    font-size: 0.56rem;
  }

  .mission-tab strong {
    font-size: 0.64rem;
  }

  .mission-tab small {
    display: none;
  }

  .armory-heading {
    margin-top: 0.8rem;
    padding-top: 0.62rem;
  }

  .armory-heading > span {
    max-width: 55%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weapon-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .weapon-card {
    min-height: 7.75rem;
    gap: 0.28rem;
    padding: 0.46rem;
  }

  .rifle-art {
    height: 3.65rem;
  }

  .weapon-name strong {
    font-size: 0.78rem;
  }

  .weapon-stats {
    gap: 0.25rem;
  }

  .panel-actions {
    margin-top: 0.7rem;
  }

  .retry-offer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .retry-offer-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .primary-action,
  .secondary-action {
    min-height: 2.75rem;
  }

  .secondary-action {
    padding-inline: 0.75rem;
    font-size: 0.7rem;
  }

  .actionbar {
    min-height: 4.25rem;
    gap: 0.34rem;
    padding: 0.4rem 0.5rem max(0.4rem, env(safe-area-inset-bottom));
  }

  .control-button {
    min-width: 3.05rem;
    min-height: 3.05rem;
  }

  .control-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .status-strip {
    display: none;
  }

  .fire-button {
    flex: 1;
    justify-content: center;
    min-width: 5.8rem;
    min-height: 3.05rem;
  }
}

@media (max-width: 430px) {




  .disclaimer-dialog h2 {
    font-size: 1.65rem;
  }

  .disclaimer-dialog p:not(.disclaimer-kicker) {
    font-size: 0.78rem;
  }

  .retry-offer-actions {
    grid-template-columns: 1fr;
  }

  .brand-copy strong {
    max-width: 14rem;
  }

  .hud {
    grid-template-columns: 0.7fr 0.9fr 0.9fr 1fr 1.35fr;
  }

  .hud-item {
    padding-inline: 0.28rem;
  }

  .wind-hud i {
    width: 1rem;
  }

  .wind-hud i::before {
    width: 0.82rem;
  }

  .menu-panel {
    border-left-width: 3px;
  }

  .briefing-copy h1 {
    font-size: 1.75rem;
  }

  .weapon-name small {
    display: none;
  }

  .weapon-name > b {
    font-size: 0.48rem;
  }

  .weapon-stats small {
    font-size: 0.42rem;
  }

  .primary-action {
    gap: 0.52rem;
    padding-inline: 0.65rem;
  }

  .primary-action strong {
    font-size: 0.76rem;
  }
}

@media (max-height: 690px) and (min-width: 700px) {
  .topbar {
    min-height: 4.1rem;
  }

  .actionbar {
    min-height: 4.1rem;
  }

  .menu-panel {
    padding: 0.85rem 1rem;
  }

  .briefing-copy h1 {
    font-size: 2.15rem;
  }

  .briefing-copy p:not(.kicker) {
    margin-top: 0.45rem;
    font-size: 0.78rem;
  }

  .mission-selector,
  .armory-heading {
    margin-top: 0.65rem;
  }

  .weapon-card {
    min-height: 7.05rem;
  }

  .rifle-art {
    height: 3.35rem;
  }

  .panel-actions {
    margin-top: 0.55rem;
  }
}

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


/* Touch-only presentation leaves mouse/keyboard layouts unchanged. */
.touch-help { display: none; }
.touch-controls .app-shell { min-height: 0; height: 100dvh; }
.touch-controls .topbar {
  padding-top: max(0.4rem, env(safe-area-inset-top));
  padding-left: max(0.6rem, env(safe-area-inset-left));
  padding-right: max(0.6rem, env(safe-area-inset-right));
}
.touch-controls .actionbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 0.4rem;
  min-height: 0;
  padding: 0.45rem max(0.5rem, env(safe-area-inset-right)) max(0.45rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.touch-controls #restartButton, .touch-controls .status-strip { display: none; }
.touch-controls .control-button, .touch-controls .fire-button {
  min-width: 0;
  min-height: 56px;
  width: 100%;
  padding: 0.35rem;
  gap: 0.2rem;
  grid-template-columns: auto;
  justify-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.touch-controls .control-button > span:nth-child(2) { display: block; }
.touch-controls .control-button small { display: none; }
.touch-controls .control-button strong { font-size: 0.7rem; }
.touch-controls .control-icon { width: 1.65rem; height: 1.65rem; }
.touch-controls .fire-button { grid-template-columns: auto auto; gap: 0.55rem; }
.touch-controls .fire-button strong { font-size: 1rem; }
.touch-controls .touch-help {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  color: #c5cedb;
  text-align: center;
  font-size: 0.66rem;
  line-height: 1.3;
}
.touch-controls .mission-menu-button, .touch-controls .sound-button { min-height: 44px; min-width: 44px; }
.touch-controls .menu-panel { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.touch-controls .panel-actions {
  position: sticky;
  bottom: -0.85rem;
  z-index: 20;
  padding-block: 0.6rem;
  background: #0a1222;
}
.touch-controls .primary-action, .touch-controls .secondary-action { min-height: 48px; }
@media (orientation: landscape) and (max-height: 600px) {
  .touch-controls .app-shell { grid-template-rows: minmax(0, 1fr); }
  .touch-controls .topbar, .touch-controls .actionbar { display: none; }
  .touch-controls .stage-shell { width: 100%; height: 100%; }
  .touch-controls .menu-panel { left: 0.5rem; width: calc(100% - 1rem); max-height: calc(100% - 0.5rem); padding: 0.65rem; }
  .touch-controls .weapon-rack { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .touch-controls .weapon-card { min-height: 6rem; padding: 0.35rem; }
  .touch-controls .rifle-art { height: 2rem; }
  .touch-controls .panel-actions { bottom: -0.65rem; }
}

/* The opening screen is an arcade cover with its own responsive composition. */
.landing-screen {
  --cover-paper: #f4efdf;
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  color: var(--cover-paper);
  background: radial-gradient(ellipse at 83% 40%, #233243 0, #101923 35%, #090e15 72%);
}
.landing-screen::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.09;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, #697684 3px 4px);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.landing-masthead, .landing-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-inline: clamp(24px, 5vw, 88px);
}
.landing-masthead { min-height: 94px; border-bottom: 1px solid #f4efdf26; }
.landing-wordmark { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.landing-wordmark > svg { width: 32px; height: 32px; fill: none; stroke: #ee5445; stroke-width: 1.5; }
.landing-wordmark > span { font-size: 23px; line-height: 1; font-weight: 950; letter-spacing: -1px; }
.wordmark-accent { color: #ee5445; }
.landing-wordmark small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: 2px; font-weight: 650; }
.landing-edition { display: flex; align-items: center; gap: 9px; color: #d1d3ce; font: 10px ui-monospace, monospace; letter-spacing: 1.5px; }
.landing-edition i { width: 6px; height: 6px; border-radius: 50%; background: #e8b867; box-shadow: 0 0 12px #e8b86755; }
.landing-feature { position: relative; display: grid; grid-template-columns: 1fr 1fr; flex: 1 0 auto; width: 100%; max-width: 1600px; min-height: 600px; margin-inline: auto; }
.landing-copy { position: relative; z-index: 2; align-self: center; padding: 46px 0 48px clamp(24px, 5vw, 88px); }
.landing-eyebrow { margin: 0 0 25px; font: 10px ui-monospace, monospace; letter-spacing: 1.7px; color: #a4adb5; }
.landing-eyebrow span { color: #e8b867; }
.landing-copy h1 { margin: 0; font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif; font-size: clamp(80px, 9.3vw, 148px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.88; }
.landing-copy h1 span { display: block; }
.landing-copy .title-prefix { margin-bottom: 8px; font-family: inherit; font-size: 0.38em; line-height: 1; letter-spacing: 0.065em; }
.landing-copy .title-world { color: var(--cover-paper); }
.landing-copy .title-sniper { margin-top: 6px; color: #ee5445; }
.landing-description { margin: 26px 0 0; color: #b3bac0; font-size: 16px; line-height: 1.65; }
.landing-play { display: inline-flex; align-items: center; justify-content: space-between; gap: 50px; min-width: 244px; min-height: 62px; margin-top: 28px; padding: 0 23px; border: 1px solid #f6cc83; border-radius: 2px; background: #ebba6d; box-shadow: 0 4px 0 #8a5b2e; color: #171b20; font-size: 15px; font-weight: 900; letter-spacing: 1px; transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.landing-play svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.landing-play:hover { background: #ffcf87; transform: translateY(-2px); box-shadow: 0 6px 0 #8a5b2e; }
.landing-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a5b2e; }
.landing-play-note { margin: 16px 0 0; font-size: 11px; color: #8e9aa4; letter-spacing: 0.25px; }
.landing-art { position: relative; min-width: 0; overflow: hidden; }
.landing-orbit { position: absolute; width: 92%; aspect-ratio: 1; top: 12%; left: -1%; border: 1px solid #e9b97035; border-radius: 50%; }
.landing-orbit::before { content: ""; position: absolute; inset: 9%; border: 1px dashed #e9b97026; border-radius: 50%; }
.landing-orbit::after { content: ""; position: absolute; inset: -10%; border: 1px solid #ffffff09; border-radius: 50%; }
.landing-orbit i { position: absolute; top: 50%; left: -3%; width: 106%; height: 1px; background: #ffffff0d; }
.landing-orbit i + i { transform: rotate(90deg); }
.landing-art-word { position: absolute; top: 8%; left: 0; color: #ffffff06; font: 900 clamp(90px, 10vw, 160px)/1 Impact, sans-serif; letter-spacing: -4px; }
.landing-hero { position: absolute; z-index: 1; width: 108%; max-width: 720px; height: auto; right: -2%; top: 1%; pointer-events: none; user-select: none; mask-image: linear-gradient(#000 62%, transparent 94%); }
.landing-art-caption { position: absolute; z-index: 2; bottom: 32px; left: 5%; display: flex; align-items: center; gap: 12px; color: #929da8; font: 9px ui-monospace, monospace; letter-spacing: 2px; }
.landing-art-caption i { width: 24px; height: 1px; background: #ee5445; }
.landing-footer { min-height: 100px; border-top: 1px solid #f4efdf26; gap: 24px; }
.landing-facts { display: flex; gap: clamp(25px, 4vw, 60px); }
.landing-facts > span { display: flex; align-items: center; gap: 10px; font: 9px ui-monospace, monospace; letter-spacing: 1.5px; color: #949fa9; }
.landing-facts b { color: var(--cover-paper); font: 25px Impact, 'Arial Narrow', sans-serif; letter-spacing: 0; }
.landing-footer > p { margin: 0; color: #a2aab1; font-size: 10px; line-height: 1.7; text-align: right; }
.landing-footer > p span { color: #6f7d88; }
@media (min-width: 761px) and (max-height: 800px) {
  .landing-masthead { min-height: 76px; }
  .landing-feature { min-height: 530px; }
  .landing-copy { padding-block: 32px; }
  .landing-copy h1 { font-size: clamp(80px, 8.3vw, 120px); }
  .landing-eyebrow { margin-bottom: 20px; }
  .landing-description { margin-top: 20px; }
  .landing-play { margin-top: 22px; }
  .landing-footer { min-height: 80px; }
}
@media (max-width: 760px) {
  .landing-screen { background: radial-gradient(ellipse at 60% 20%, #243344, #0b121b 55%, #090e15); }
  .landing-masthead { min-height: 76px; margin-inline: 24px; }
  .landing-wordmark > svg { width: 28px; height: 28px; }
  .landing-wordmark > span { font-size: 21px; }
  .landing-edition { font-size: 8px; letter-spacing: 1px; }
  .landing-feature { display: flex; flex-direction: column; min-height: 0; }
  .landing-art { order: -1; height: clamp(240px, 34dvh, 340px); flex-shrink: 0; }
  .landing-orbit { width: 68%; top: 10%; left: 16%; }
  .landing-art-word { top: 15%; left: 50%; transform: translateX(-50%); font-size: 100px; }
  .landing-hero { width: min(84%, 430px); max-width: none; top: -3%; left: 50%; right: auto; transform: translateX(-50%); mask-image: linear-gradient(#000 20%, transparent 58%); }
  .landing-art-caption { display: none; }
  .landing-copy { align-self: stretch; padding: 0 24px 30px; text-align: center; margin-top: -15px; }
  .landing-eyebrow { margin-bottom: 16px; font-size: 8px; letter-spacing: 1.2px; }
  .landing-copy h1 { font-size: clamp(68px, 18vw, 110px); line-height: 0.88; }
  .landing-copy .title-prefix { display: inline; font-size: 0.37em; letter-spacing: 0.015em; vertical-align: baseline; }
  .landing-copy .title-world { display: inline; font-size: 0.6em; }
  .landing-copy .title-sniper { margin-top: 5px; }
  .landing-description { margin-top: 18px; font-size: 13px; line-height: 1.6; }
  .landing-play { width: min(100%, 340px); min-height: 58px; margin-top: 22px; }
  .landing-play-note { margin-top: 14px; font-size: 10px; }
  .landing-footer { flex-direction: column; min-height: 116px; justify-content: center; gap: 17px; margin-inline: 24px; padding-block: 20px; }
  .landing-facts { width: 100%; justify-content: center; gap: clamp(16px, 5vw, 40px); }
  .landing-facts > span { gap: 7px; font-size: 8px; letter-spacing: 1px; }
  .landing-facts b { font-size: 22px; }
  .landing-footer > p { text-align: center; font-size: 9px; }
  .landing-footer > p br { display: none; }
  .landing-footer > p span { margin-left: 4px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .landing-masthead { min-height: 60px; }
  .landing-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 315px; }
  .landing-copy { margin-top: 0; padding: 24px 0 28px 32px; text-align: left; }
  .landing-copy h1 { font-size: 68px; }
  .landing-copy .title-prefix { display: inline; font-size: 0.35em; }
  .landing-copy .title-world { display: inline; font-size: 0.6em; }
  .landing-eyebrow { font-size: 8px; margin-bottom: 16px; }
  .landing-description { font-size: 12px; margin-top: 14px; }
  .landing-play { min-height: 48px; margin-top: 16px; min-width: 200px; width: auto; }
  .landing-art { order: initial; height: auto; }
  .landing-hero { width: 110%; max-width: none; top: 0; left: auto; right: -5%; transform: none; mask-image: linear-gradient(#000 45%, transparent 88%); }
  .landing-art-caption { display: none; }
  .landing-footer { min-height: 76px; flex-direction: row; }
  .landing-facts { width: auto; }
}
@media (max-width: 760px) and (orientation: portrait) and (max-height: 700px) {
  .landing-masthead { min-height: 68px; }
  .landing-art { height: 180px; }
  .landing-hero { width: min(76%, 340px); top: -5%; }
  .landing-copy { margin-top: 0; }
  .landing-copy h1 { font-size: 68px; }
  .landing-description { margin-top: 14px; }
  .landing-play { margin-top: 18px; }
}
@supports (padding: max(0px)) {
  .landing-masthead { padding-top: env(safe-area-inset-top); }
  .landing-masthead, .landing-footer {
    margin-left: max(24px, 5vw, env(safe-area-inset-left));
    margin-right: max(24px, 5vw, env(safe-area-inset-right));
  }
  .landing-footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

.audio-dialog { width: min(28rem, calc(100% - 2rem)); }
.audio-dialog .volume-label { display: flex; justify-content: space-between; margin-top: 1.6rem; font-size: 0.95rem; font-weight: 750; }
.audio-dialog output { color: var(--gold); font-variant-numeric: tabular-nums; }
.audio-dialog input[type="range"] { width: 100%; height: 36px; margin: 8px 0 0; accent-color: var(--gold); cursor: pointer; }
.audio-dialog p.volume-hint { margin-top: 0; font-size: 0.72rem; color: var(--muted); }
/* Keep the complete desktop loadout on one screen. */
@media (min-width: 900px) {
  .menu-panel.selection-panel {
    left: 50%;
    width: min(82rem, calc(100% - 3rem));
    padding: 1.25rem 1.5rem;
    transform: translate(-50%, -50%);
  }
  .selection-panel .briefing-copy { max-width: none; }
  .selection-panel .briefing-copy h1 { font-size: clamp(1.65rem, 2.6vw, 2.5rem); line-height: 1.1; }
  .selection-panel .briefing-copy p:not(.kicker) { max-width: 70rem; font-size: 0.85rem; line-height: 1.4; margin-top: 0.5rem; }
  .selection-panel .mission-selector { margin-top: 0.85rem; }
  .selection-panel .armory-heading { margin-top: 0.8rem; padding-top: 0.65rem; }
  .selection-panel .weapon-rack { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.55rem; }
  .selection-panel .weapon-card { min-height: 9rem; padding: 0.65rem; gap: 0.35rem; }
  .selection-panel .weapon-card[data-gun="m249"] { grid-column: auto; }
  .selection-panel .rifle-art, .selection-panel .weapon-card[data-gun="m249"] .rifle-art { height: clamp(3rem, 7.5vh, 4.5rem); }
  .selection-panel .weapon-name > span { flex-wrap: wrap; gap: 0.1rem 0.35rem; }
  .selection-panel .weapon-name small { font-size: 0.5rem; }
  .selection-panel .weapon-stats small { font-size: 0.45rem; }
  .selection-panel .panel-actions { margin-top: 0.85rem; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .menu-panel.selection-panel { padding: 0.75rem 1rem; }
  .selection-panel .briefing-copy h1 { font-size: 1.65rem; }
  .selection-panel .briefing-copy p:not(.kicker) { font-size: 0.76rem; margin-top: 0.35rem; }
  .selection-panel .mission-selector { margin-top: 0.55rem; }
  .selection-panel .mission-tab { min-height: 2.6rem; padding-block: 0.35rem; }
  .selection-panel .armory-heading { margin-top: 0.5rem; padding-top: 0.4rem; }
  .selection-panel .weapon-card { min-height: 7.6rem; }
  .selection-panel .panel-actions { margin-top: 0.55rem; }
}

.landing-scores { display: block; margin-top: 20px; padding: 8px 0; background: none; color: #e8b867; font: 700 10px ui-monospace, monospace; letter-spacing: 1px; }
.score-button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: #152032; font-size: 11px; font-weight: 800; white-space: nowrap; }
.score-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(20px,4vw,32px); overflow: auto; border: 2px solid #c49345; border-radius: 10px; background: repeating-linear-gradient(0deg,#0e1115 0 3px,#11151a 3px 4px); box-shadow: 0 0 50px #000b, inset 0 0 35px #0008; color: #f5c46f; }
.score-dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
.score-dialog h2 { margin: 6px 0 22px; font: 900 clamp(30px,7vw,44px)/1 ui-monospace,monospace; letter-spacing: -2px; text-shadow: 0 0 15px #f2ab4255; }
.score-kicker { margin: 0; font: 10px ui-monospace,monospace; letter-spacing: 2px; color: #b7ad96; }
.score-mission-label { display: block; font-size: 11px; margin-bottom: 6px; }
.score-dialog select { width:100%; min-height:42px; padding:8px; border:1px solid #806846; border-radius:4px; background:#191c20; color:#f5e5c8; font:700 13px ui-monospace,monospace; }
.score-table { width:100%; border-collapse:collapse; margin-top:22px; font:700 16px ui-monospace,monospace; table-layout:fixed; }
.score-table th { padding:0 0 12px; text-align:left; color:#a79d8e; font-size:10px; }
.score-table th:first-child { width:16%; }
.score-table th:last-child { width:24%; }
.score-table td { padding:13px 0; border-top:1px solid #6b553a66; overflow-wrap:anywhere; }
.score-table td:last-child,.score-table th:last-child { text-align:right; }
.score-table tr:first-child td { color:#fff0bf; text-shadow:0 0 9px #efb84b55; }
.score-message { min-height:38px; margin:18px 0 10px; font-size:13px; line-height:1.5; color:#e8dfce; }
#scoreEntryForm[hidden] { display:none; }
#scoreEntryForm > label { display:block; font-size:12px; margin-bottom:7px; }
.score-entry { display:flex; gap:8px; }
.score-entry input { min-width:0; width:100%; height:46px; padding:10px; border:1px solid #d3a354; border-radius:3px; background:#080a0d; color:#fff1c9; font:700 15px ui-monospace,monospace; }
.score-entry button { flex-shrink:0; padding:0 14px; background:#efbd6d; color:#181713; border-radius:3px; font-weight:850; }
#scoreEntryForm small { display:block; margin-top:8px; color:#afa691; font-size:10px; }
.score-actions { display:flex; justify-content:space-between; margin-top:22px; gap:12px; }
.score-actions button { min-height:44px; padding:0 18px; background:#292723; border:1px solid #726247; border-radius:3px; font-weight:750; }
.score-actions button:last-child { color:#111; background:#f3cd8e; }
.score-footnote { margin:16px 0 0; text-align:center; font-size:10px; color:#928878; }
@media (max-width:760px) { .landing-scores { margin-inline:auto; margin-top:12px; } .score-table { font-size:13px; } .score-button { min-height:44px; padding:0 8px; font-size:10px; } }
@media (min-width:761px) and (max-width:1100px) {
  .topbar { grid-template-columns: minmax(110px,1fr) minmax(280px,2fr) auto; gap:8px; }
  .topbar .flag-mark { flex-basis:36px; width:36px; }
  .topbar .brand { gap:8px; }
  .topbar .brand-copy strong { font-size:12px; }
  .topbar .mission-menu-button { grid-template-columns:1.35rem; min-width:42px; padding-inline:9px; }
  .topbar .mission-menu-button strong { display:none; }
}
@media (max-width:430px) {
  .topbar .mission-menu-button { grid-template-columns:1.35rem; min-width:44px; padding-inline:9px; }
  .topbar .mission-menu-button strong { display:none; }
  .topbar .flag-mark { flex-basis:32px; width:32px; }
  .topbar .brand { gap:7px; }
}
/* Simplified missions and mobile aiming. */
.ammo-hud,.timer-hud,#reloadButton,#reloadMeter { display:none !important; }
.hud { grid-template-columns: 1fr 1fr; }
.weapon-stats,.weapon-class,.weapon-name b,.armory-heading small,#weaponSummary,.status-strip,.primary-action > span,.mission-tab small { display:none; }
.selection-panel .briefing-copy h1 { display:none; }
.selection-panel .briefing-copy .kicker { margin-bottom:10px; }
#missionPreview { display:none; width:100%; height:clamp(130px,24vh,240px); object-fit:cover; border-radius:6px; background:#0a1320; }
.selection-panel #missionPreview { display:block; }
.selection-panel #panelText { font-size:clamp(14px,1.35vw,18px); max-width:none; margin:12px 0 0; }
.selection-panel .weapon-card { min-height:90px; gap:5px; }
.selection-panel .rifle-art { height:60px; }
.selection-panel .armory-heading { margin-top:10px; padding-top:10px; }
.selection-panel .mission-selector { margin-top:14px; }
.landing-art { isolation:isolate; }
.landing-fall { position:absolute; object-fit:contain; pointer-events:none; z-index:-1; opacity:.62; filter:drop-shadow(0 16px 24px #0008); }
.landing-fall-one { width:39%; height:55%; left:10%; top:4%; transform:rotate(-26deg) scaleX(-1); }
.landing-fall-two { width:44%; height:52%; right:-4%; top:5%; transform:rotate(24deg); }
.landing-leaderboard { width:min(780px,calc(100% - 48px)); margin:55px auto 70px; flex-shrink:0; padding:clamp(20px,4vw,40px); border:1px solid #d7b16b66; border-radius:8px; background:#080f18; }
.landing-leaderboard h2 { font-size:clamp(27px,5vw,44px); margin:12px 0; letter-spacing:-1px; }
.landing-leaderboard p:not(.landing-eyebrow) { font-size:13px; line-height:1.5; color:#a9b4c4; }
.landing-leaderboard .score-table { color:#f5c46f; }
.touch-controls #steadyButton,.touch-controls #restartButton { display:none; }
.touch-controls .actionbar { gap:14px; justify-content:space-between; }
.touch-controls .fire-button { flex:0 1 150px; }
@media (max-width:760px) {
  .selection-panel #missionPreview { height:150px; }
  .selection-panel .weapon-rack { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .selection-panel .weapon-card { min-height:76px; padding:5px; }
  .selection-panel .rifle-art { height:40px; }
  .selection-panel .weapon-name small { display:none; }
  .landing-fall-one { left:10%; top:4%; }
  .landing-fall-two { right:0; top:3%; }
}
@media (orientation:landscape) and (max-height:600px) {
  .touch-controls .actionbar { display:flex; position:absolute; bottom:8px; left:10px; right:10px; min-height:0; border:0; padding:0; background:none; box-shadow:none; pointer-events:none; z-index:15; }
  .touch-controls .actionbar .aim-joystick,.touch-controls .actionbar .fire-button { pointer-events:auto; }
  .touch-controls .actionbar .fire-button { flex:0 0 100px; min-height:56px; }
  .touch-controls .app-shell { grid-template-rows:minmax(0,1fr); }
  .touch-controls .stage-shell { grid-row:1; }
  .selection-panel #missionPreview { height:95px; }
}
@media (prefers-reduced-motion:no-preference) {
  .landing-fall-one { animation:fall-drift-one 8s ease-in-out infinite alternate; }
  .landing-fall-two { animation:fall-drift-two 8s ease-in-out infinite alternate; }
  @keyframes fall-drift-one { to { transform:translateY(30px) rotate(-34deg) scaleX(-1); } }
  @keyframes fall-drift-two { to { transform:translateY(30px) rotate(34deg); } }
}
.touch-controls .actionbar { display:flex; }
.touch-controls .touch-help { display:none; }
.selection-panel .weapon-card[data-gun="m249"] { grid-column:auto; }
@media (max-width:760px) { .selection-panel .weapon-card[data-gun="m249"] .rifle-art { height:40px; } }

/* Make the combined board a primary destination without changing session scoring. */
.leaderboard-shortcut { min-height:46px; padding:12px 18px; border:1px solid #e8b867; border-radius:6px; background:#e8b867; color:#101820; font-weight:850; letter-spacing:.04em; }
.landing-scores { display:block; width:fit-content; min-height:52px; margin-top:16px; padding:16px 22px; border:2px solid #e8b867; border-radius:5px; background:#152032; color:#ffe0a1; font:800 14px/1.2 system-ui,sans-serif; letter-spacing:.04em; }
.score-button { border-color:#e8b867; color:#ffe0a1; background:#253044; }
@media(max-width:760px) { .leaderboard-shortcut { padding:10px; font-size:11px; } .landing-scores { margin-inline:auto; font-size:13px; } }

@media (prefers-reduced-motion: no-preference) {
  .landing-play { animation: play-now-bounce 2.4s ease-in-out infinite; transform-origin:center; }
  .landing-play:hover, .landing-play:focus-visible, .landing-play:active { animation:none; }
  @keyframes play-now-bounce {
    0%, 55%, 100% { transform:translateY(0) scale(1); }
    12% { transform:translateY(-5px) scale(1.065); }
    23% { transform:translateY(1px) scale(.98); }
    34% { transform:translateY(-2px) scale(1.025); }
    44% { transform:translateY(0) scale(.995); }
  }
}

.aim-joystick { display:none; position:relative; width:104px; height:104px; flex:0 0 104px; border-radius:50%; border:2px solid #8dabc17a; background:radial-gradient(circle,#1e3453 0 35%,#0b1525 70%); box-shadow:inset 0 3px 14px #0009,0 2px 8px #0006; touch-action:none; user-select:none; -webkit-user-select:none; }
.touch-controls .aim-joystick { display:block; }
.joystick-knob { position:absolute; left:calc(50% - 23px); top:calc(50% - 23px); width:46px; height:46px; border-radius:50%; border:2px solid #f5d698; background:radial-gradient(circle at 35% 25%,#ffe5b2,#c38a35 65%,#805014); box-shadow:0 5px 9px #0009,inset 0 2px 3px #fff6; pointer-events:none; }
@media (orientation:landscape) and (max-height:600px) { .touch-controls .aim-joystick { width:88px; height:88px; flex-basis:88px; } }

.touch-controls .fire-button { touch-action:none; user-select:none; -webkit-user-select:none; }
