body.missions-page {
  min-height: 100vh;
  margin: 0;
  background: #f5f1e8;
  color: #161616;
  font-family: var(--text-body, Inter, system-ui, sans-serif);
}

.mission-shell {
  width: min(760px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
  display: grid;
  gap: 14px;
}

.mission-header,
.panel,
.scan-card,
.mission-card {
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(28, 25, 20, 0.1);
}

.mission-header {
  padding: clamp(18px, 4vw, 28px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mission-header p,
.panel-heading span,
.scan-card span {
  margin: 0;
  color: #8c2722;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mission-header h1 {
  max-width: 560px;
  margin: 5px 0 0;
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.preview-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(140, 39, 34, 0.26);
  border-radius: 999px;
  padding: 8px 10px;
  color: #8c2722;
  font-weight: 900;
  font-size: 0.8rem;
}

.panel {
  padding: clamp(16px, 4vw, 24px);
}

.panel-heading,
.player-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading strong,
.player-strip strong,
.scan-card strong {
  display: block;
  color: #161616;
}

.mission-form,
.game-panel {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: #4f4b45;
  font-weight: 800;
  font-size: 0.9rem;
}

input,
select {
  min-height: 44px;
  border: 1px solid rgba(22, 22, 22, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #161616;
  font: inherit;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 700;
  line-height: 1.4;
}

.check-row input {
  min-height: auto;
  margin-top: 3px;
}

button,
.primary,
.secondary {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  background: #8c2722;
  color: #fff;
}

.secondary {
  border: 1px solid rgba(22, 22, 22, 0.14);
  background: #fbfaf7;
  color: #24221f;
}

.compact {
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.86rem;
}

.player-strip {
  margin-bottom: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fbfaf7;
}

.player-strip span {
  display: block;
  color: #62615c;
  font-size: 0.86rem;
  font-weight: 800;
}

.scan-card {
  padding: 16px;
  display: grid;
  gap: 8px;
  background: #161616;
  color: #fff;
}

.scan-card span {
  color: #f2b15f;
}

.scan-card strong {
  color: #fff;
  font-size: clamp(2rem, 10vw, 4rem);
  letter-spacing: 0.08em;
}

.scan-card p,
.hint,
.status {
  margin: 0;
  color: #62615c;
  line-height: 1.45;
}

.scan-card p {
  color: rgba(255, 255, 255, 0.74);
}

.mission-list {
  display: grid;
  gap: 10px;
}

.mission-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.mission-card.is-complete {
  opacity: 0.62;
}

.mission-card p {
  margin: 0;
  color: #161616;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
}

.mission-card span {
  color: #62615c;
  font-size: 0.86rem;
  font-weight: 800;
}

.scanner-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(22, 22, 22, 0.1);
  padding-top: 14px;
}

#scanner-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
}

.status {
  min-height: 24px;
  text-align: center;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .mission-header {
    display: grid;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}
