/* Standalone app surfaces: xskx, admin, POAS and server scan. No global site nav. */
:root {
  --ops-bg: #10100d;
  --ops-panel: rgba(25, 24, 18, .9);
  --ops-panel-2: rgba(35, 32, 22, .92);
  --ops-line: rgba(232, 214, 171, .16);
  --ops-line-strong: rgba(232, 214, 171, .28);
  --ops-text: #f0e2bf;
  --ops-muted: #a99a7c;
  --ops-copper: #c76437;
  --ops-amber: #e2b45f;
  --ops-blue: #6f9faf;
  --ops-green: #7f9a68;
  --ops-head: "DIN Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --ops-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ops-mono: "Menlo", "SFMono-Regular", "Courier New", monospace;
}

body[data-page],
body[data-stage],
body.ops-standalone,
body:has(.shell .scan-card) {
  background:
    linear-gradient(90deg, rgba(232, 214, 171, .034) 1px, transparent 1px),
    linear-gradient(0deg, rgba(232, 214, 171, .025) 1px, transparent 1px),
    radial-gradient(ellipse 70% 44% at 6% -8%, rgba(199, 100, 55, .18), transparent 62%),
    radial-gradient(ellipse 58% 40% at 96% 4%, rgba(111, 159, 175, .12), transparent 58%),
    var(--ops-bg) !important;
  background-size: 30px 30px, 30px 30px, auto, auto, auto !important;
  color: var(--ops-text) !important;
  font-family: var(--ops-body) !important;
}

body[data-page] h1,
body[data-page] h2,
body[data-page] h3,
body[data-stage] h1,
body[data-stage] h2,
body[data-stage] h3,
body.ops-standalone h1,
body.ops-standalone h2,
body.ops-standalone h3,
body:has(.shell .scan-card) h1,
body:has(.shell .scan-card) h2,
body:has(.shell .scan-card) h3 {
  font-family: var(--ops-head) !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

body[data-page] .ambient .sky {
  background:
    radial-gradient(ellipse 70% 38% at 18% 0%, rgba(199, 100, 55, .18), transparent 56%),
    radial-gradient(ellipse 56% 34% at 88% 8%, rgba(111, 159, 175, .12), transparent 52%),
    linear-gradient(180deg, #15140f 0%, #0c0d0a 72%) !important;
}

body[data-page] .radar {
  border-radius: 0 !important;
  opacity: .45;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(226, 180, 95, .055) 34deg, transparent 66deg) !important;
}

body[data-page] .chrome,
body[data-page] .gate,
body[data-page] .tile,
body[data-page] .admin-wrap,
body[data-stage] .deck-rail,
body[data-stage] .view,
body[data-stage] .card,
body[data-stage] .panel,
body.ops-standalone .hero,
body.ops-standalone .panel,
body.ops-standalone .card,
body.ops-standalone .scan-card,
body.ops-standalone .metric,
body.ops-standalone .tool-panel,
body.ops-standalone .app-card,
body.ops-standalone .toc,
body:has(.shell .scan-card) .scan-card,
body:has(.shell .scan-card) .metric,
body:has(.shell .scan-card) .panel {
  border-radius: 0 !important;
  border-color: var(--ops-line) !important;
  background: var(--ops-panel) !important;
  box-shadow: none !important;
}

body[data-page] .tile,
body[data-page] .gate,
body[data-page] .admin-wrap,
body[data-stage] .card,
body.ops-standalone .panel,
body.ops-standalone .card,
body.ops-standalone .scan-card,
body.ops-standalone .tool-panel,
body.ops-standalone .toc,
body:has(.shell .scan-card) .scan-card,
body:has(.shell .scan-card) .panel {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

body[data-page] .pill,
body[data-page] .btn,
body[data-page] .btn-ghost,
body[data-page] .page-nav-pill,
body[data-stage] button,
body[data-stage] input,
body[data-stage] select,
body.ops-standalone button,
body.ops-standalone input,
body.ops-standalone select,
body.ops-standalone .btn,
body.ops-standalone .pill,
body:has(.shell .scan-card) .btn,
body:has(.shell .scan-card) .input {
  border-radius: 0 !important;
  font-family: var(--ops-mono) !important;
  letter-spacing: 1px !important;
}

body[data-page] .pill.hot,
body[data-page] .hero .crest,
body[data-page] .tile h3 .ico,
body[data-page] .nav-mark,
body[data-stage] .login-btn,
body[data-stage] .rn-btn.active,
body.ops-standalone .btn.primary,
body.ops-standalone .btn:not(.secondary),
body.ops-standalone .pill.hot,
body:has(.shell .scan-card) .btn {
  background: linear-gradient(135deg, var(--ops-amber), var(--ops-copper)) !important;
  color: #15110a !important;
}

body.ops-standalone .app-wrapper {
  height: calc(100vh - 67px) !important;
  min-height: calc(100vh - 67px) !important;
  padding-top: 0 !important;
}

body.ops-standalone:has(.app-wrapper) {
  padding: 0 !important;
  overflow: hidden !important;
}

body.ops-standalone:has(.map-shell) {
  padding: 0 !important;
  overflow: hidden !important;
}

body.ops-standalone:has(.map-shell) .map-shell {
  top: 82px !important;
  height: calc(100vh - 82px) !important;
}

html body.ops-standalone:has(.app-wrapper) > div.app-wrapper {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.ops-standalone:not(:has(.hero)):not(:has(.site-nav)) > div.app-wrapper:not([id='intro']):not([id='ambient']):not([id='radar']):not([id='dunes']) {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-page]:has(.site-nav) .chrome {
  top: 82px !important;
}

body[data-page] .hero h1,
body[data-page] .hero .tag,
body[data-page] .admin-wrap h2,
body[data-stage] .wc-title,
body[data-stage] .rb-1,
body.ops-standalone h1,
body.ops-standalone .badge,
body.ops-standalone .page-label,
body:has(.shell .scan-card) h1 span,
body:has(.shell .scan-card) .badge {
  color: var(--ops-amber) !important;
  text-shadow: none !important;
  filter: none !important;
}

body[data-stage] .orb {
  display: none !important;
}

body[data-stage] .welcome,
body[data-stage] .deck {
  background:
    linear-gradient(90deg, rgba(232, 214, 171, .03) 1px, transparent 1px),
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(199, 100, 55, .16), transparent 62%),
    #10100d !important;
  background-size: 32px 32px, auto, auto !important;
}

body[data-stage] .deck-rail {
  border-right: 1px solid var(--ops-line-strong) !important;
}

body[data-stage] .rn-btn {
  border-radius: 0 !important;
}

body[data-stage] .rb-mark,
body[data-stage] .rn-btn.active {
  box-shadow: none !important;
}

.page-hero,
.toc,
.card,
.story-box {
  border-radius: 0 !important;
}

body:has(.page-hero) .page-hero {
  position: relative !important;
  overflow: hidden !important;
  background: rgba(16, 16, 13, .88) !important;
  border-bottom: 1px solid var(--ops-line-strong) !important;
}

body:has(.page-hero) .page-hero::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  opacity: .42 !important;
  background: url('/assets/generated/season-3-golden-kingdom.png') center / cover no-repeat !important;
  filter: saturate(.85) contrast(1.08) !important;
}

body:has(.page-hero) .page-hero::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(90deg, rgba(16, 16, 13, .96), rgba(16, 16, 13, .62)),
    repeating-linear-gradient(90deg, rgba(232, 214, 171, .08) 0 1px, transparent 1px 30px) !important;
}

body:has(.shell .scan-card) .hero {
  min-height: 320px;
  align-items: end;
}

body:has(.shell .scan-card) .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background: url('/assets/generated/tactical-board-tile.png') center / cover no-repeat;
  filter: saturate(.85) contrast(1.08);
}

body:has(.shell .scan-card) .shell {
  position: relative;
  isolation: isolate;
}
