/* DH052 — editorial control-room refinement */
:root {
  --background: #0a0e0f;
  --foreground: #edf1ef;
  --card: #111718;
  --card-foreground: #edf1ef;
  --primary: #c89e5d;
  --primary-foreground: #18130b;
  --secondary: #151c1d;
  --secondary-foreground: #edf1ef;
  --muted: #151c1d;
  --muted-foreground: #9da9a6;
  --accent: #172425;
  --accent-foreground: #9bc5c0;
  --border: #2a3436;
  --input: #364244;
  --ring: #91bbb6;
  --amber: #c89e5d;
  --amber-soft: #dfbd84;
  --cyan: #8bb9b4;
  --cyan-dark: #172526;
  --ink: #0a0e0f;
  --panel: #111718;
  --panel-2: #151c1d;
  --line: #2a3436;
  --text: #edf1ef;
  --text-soft: #aab4b1;
  --text-faint: #7f8c89;
  --surface-raised: #151b1c;
  --surface-soft: #0e1415;
  --hairline: rgb(255 255 255 / 8%);
  --radius: 5px;
}

html {
  color-scheme: dark;
  scroll-padding-top: 112px;
}

body {
  background: linear-gradient(180deg, #0b1011 0, #0a0e0f 760px);
  color: var(--text);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff8ea;
  background: rgb(200 158 93 / 34%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.site-container {
  width: min(1160px, calc(100% - 56px));
}

.section-gap {
  margin-block: 62px;
}

.site-header {
  background: rgb(10 14 15 / 97%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgb(0 0 0 / 38%);
}

.header-inner {
  height: 62px;
  gap: 30px;
}

.brand-mark {
  color: var(--amber-soft);
  font-size: 20px;
  letter-spacing: -.04em;
}

.brand-copy {
  color: #899592;
  border-left-color: #303a3c;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
}

.primary-nav {
  gap: 3px;
}

.primary-nav a {
  color: #aab4b1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 620;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: #f4f7f5;
  background: #151b1c;
}

.header-status {
  min-height: 30px;
  color: #a7cbc7;
  background: #101718;
  border: 1px solid #2d3b3d;
  border-radius: 999px;
  gap: 7px;
  padding: 5px 10px;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .035em;
}

.header-status svg {
  width: 13px;
  height: 13px;
}

html[data-live-state="stale"] .header-status {
  color: #c2b28f;
  border-color: #4b4230;
}

.duckhunt-subnav {
  top: 62px;
  background: rgb(14 20 21 / 97%);
  border-bottom: 1px solid var(--hairline);
}

.duckhunt-subnav-inner {
  min-height: 45px;
}

.duckhunt-subbrand {
  color: #d9ba82;
  font-size: 11px;
  font-weight: 650;
}

.duckhunt-subnav nav a {
  color: #929e9b;
  border-bottom-width: 1px;
  padding: 14px 11px 13px;
  font-size: 11px;
  font-weight: 580;
}

.duckhunt-subnav nav a:hover,
.duckhunt-subnav nav a:focus-visible,
.duckhunt-subnav nav a[aria-current="page"] {
  color: #eef2f0;
  border-bottom-color: var(--amber);
}

.hero-shell,
.mb-hero {
  background: #0c1112;
  border-bottom: 1px solid var(--hairline);
}

.hero-shell::before,
.mb-hero::before {
  display: none;
}

.hero-grid,
.mb-hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, .86fr);
  gap: 58px;
  padding-block: 42px 30px;
}

.hero-shell .hero-copy h1,
.mb-hero .hero-copy h1 {
  max-width: 650px;
  margin: 12px 0 15px;
  font-size: clamp(33px, 3.7vw, 45px);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.07;
}

.hero-copy h1 span {
  color: var(--amber-soft);
}

.hero-lead {
  max-width: 650px;
  color: #b8c1bf;
  font-size: 15px;
  line-height: 1.72;
}

.eyebrow,
.section-kicker {
  color: #91bbb6;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .115em;
}

.hero-actions,
.hero-shell .hero-actions,
.mb-hero .hero-actions {
  gap: 8px;
  margin-top: 19px;
}

.cta-primary,
.cta-secondary,
.cta-ranking {
  min-height: 39px !important;
  height: 39px !important;
  border-radius: 4px !important;
  padding-inline: 16px !important;
  font-size: 12px !important;
  font-weight: 670 !important;
}

.cta-primary {
  color: #18130b !important;
  background: #c89e5d !important;
}

.cta-primary:hover {
  background: #dbb779 !important;
}

.cta-secondary {
  color: #dce2df !important;
  background: #111718 !important;
  border-color: #354144 !important;
}

.cta-secondary:hover {
  color: #fff !important;
  background: #182021 !important;
  border-color: #566467 !important;
}

.cta-ranking {
  color: #e3c58f;
  background: transparent;
  border-color: #58492f;
}

.cta-ranking:hover,
.cta-ranking:focus-visible {
  color: #fff3db;
  background: #191811;
  border-color: #806a40;
}

.radar-card,
.runtime-console {
  background: #0f1516;
  border: 1px solid #2b3638;
  border-radius: 5px;
  box-shadow: 0 18px 45px rgb(0 0 0 / 18%);
}

.radar-topline,
.radar-footer,
.console-bar {
  color: #909b98;
  background: #111718;
  border-color: #293436;
  letter-spacing: .055em;
}

.radar-screen {
  height: 210px;
  background: #0b1213;
}

.radar-ring {
  border-color: rgb(139 185 180 / 17%);
}

.radar-sweep,
.ping {
  display: none;
}

.duck-signal {
  color: var(--amber-soft);
  text-shadow: none;
}

.terminal-event {
  background: #0a1011;
  border-color: #273234;
  padding: 11px 14px;
}

.console-body {
  background: #0c1213;
  padding: 22px;
}

.console-lines,
.console-ascii {
  border-color: #283234;
  text-shadow: none;
}

.console-lines p {
  color: #96a19e;
}

.fact-grid {
  gap: 0;
  border-block: 1px solid var(--hairline);
}

.fact-card {
  min-height: 72px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hairline);
  border-radius: 0;
  padding: 14px 18px;
}

.fact-card:last-child {
  border-right: 0;
}

.fact-card svg {
  color: #83aaa6;
}

.fact-card span {
  color: #808c89;
  font-size: 8px;
}

.fact-card strong {
  color: #e4e9e7;
  font-size: 13px;
}

.mb-facts,
.hero-shell + .fact-grid.section-gap {
  margin-top: 0;
  margin-bottom: 46px;
}

.split-section,
.mb-intro {
  gap: 70px;
}

.split-section h2,
.feature-copy h2,
.section-heading-row h2,
.command-rules h2,
.mb-intro-title h2,
.mb-system-grid h2 {
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 700;
  letter-spacing: -.035em;
}

.section-intro,
.feature-copy > p,
.mb-intro-copy p,
.mb-system-grid > div:first-child > p {
  color: #aeb8b5;
  font-size: 14px;
  line-height: 1.76;
}

.step-row {
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 16px 0;
}

.step-number {
  color: #c7a56c;
  font-size: 11px;
}

.step-row h3 {
  font-size: 15px;
}

.step-row p {
  color: #9ca7a4;
  font-size: 13px;
}

.feature-band,
.mb-system-band {
  background: #0e1415;
  border-color: var(--hairline);
}

.feature-grid,
.mb-system-grid {
  gap: 62px;
  padding-block: 50px;
}

.metric-row {
  border: 1px solid var(--hairline);
  border-radius: 4px;
}

.metric-row div {
  background: #111718;
  border-color: var(--hairline);
}

.metric-row strong {
  color: #dfbd84;
}

.flight-line {
  background: #0d1314;
  border-color: #2b3638;
  border-radius: 4px;
  box-shadow: none;
}

.weapon-grid,
.command-grid,
.duo-grid,
.system-map {
  gap: 10px;
}

.weapon-card,
.command-card,
.duo-card,
.capability-card,
.system-map > div,
.join-panel,
.final-cta,
.connect-panel,
.command-callout,
.karma-alert,
.benefit-card {
  background: #111718;
  border-color: #293436;
  border-radius: 5px;
  box-shadow: none;
}

.weapon-card:hover,
.command-card:hover,
.capability-card:hover {
  background: #141b1c;
  border-color: #445154;
  transform: none;
}

.weapon-card {
  min-height: 210px;
  padding: 19px;
}

.weapon-card h3 {
  margin-top: 34px;
  font-size: 18px;
}

.weapon-card p,
.command-card p,
.capability-card p,
.duo-card p {
  color: #a4afac;
  line-height: 1.68;
}

.command-preview-grid,
.capability-grid {
  border-color: #293436;
  border-radius: 5px;
}

.command-preview,
.capability-card {
  background: #111718;
  border-color: #293436;
}

.command-preview {
  min-height: 116px;
  padding: 17px;
}

.capability-card {
  min-height: 228px;
  padding: 20px;
}

.capability-card h2 {
  margin-top: 37px;
  font-size: 17px;
}

.capability-signal,
.duo-status {
  color: #8fa9a5;
}

.final-cta,
.connect-panel,
.join-panel {
  gap: 54px;
  padding: 28px;
}

.page-hero {
  grid-template-columns: 48px minmax(0, 1fr) 250px;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 34px;
}

.page-icon {
  width: 43px;
  height: 43px;
  border-radius: 4px;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 3.8vw, 43px);
  font-weight: 710;
  line-height: 1.08;
}

.page-hero > div:nth-child(2) > p {
  color: #aeb8b5;
  font-size: 14px;
}

.command-grid {
  gap: 10px;
}

.command-card {
  min-height: 128px;
  padding: 17px;
}

.catalog-section {
  margin-top: 42px;
}

.catalog-search input {
  height: 41px;
  background: #111718;
  border-color: #354144;
  border-radius: 4px;
}

.shop-table-shell,
.ranking-table-shell {
  background: #0e1415;
  border-color: #293436;
  border-radius: 5px;
  box-shadow: none;
}

.shop-table th,
.ranking-table-shell th {
  color: #9aa5a2;
  background: #151c1d;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .06em;
}

.shop-table td,
.ranking-table-shell td {
  color: #cbd2d0;
  border-color: #222c2e;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.shop-table tbody tr:hover,
.ranking-table-shell tbody tr:hover {
  background: #151d1e;
}

.level-row {
  grid-template-columns: 50px 104px 1fr 132px;
  gap: 20px;
  min-height: 124px;
  border-color: #293436;
}

.level-weapon h2 {
  font-size: 19px;
}

.level-capacity strong {
  color: #9fc5c1;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  background: #080c0d;
  border-top-color: var(--hairline);
}

.footer-grid {
  padding-block: 38px;
}

.footer-bottom {
  min-height: 48px;
}

/* Observation-only live layer: values are read from the public ranking page. */
.live-observer {
  margin-top: -22px;
  margin-bottom: 52px;
  background: #0e1415;
  border: 1px solid #293436;
  border-radius: 5px;
  overflow: hidden;
}

.live-observer-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
  background: #111718;
  border-bottom: 1px solid #293436;
}

.live-observer-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.live-observer-title span {
  color: #8eb8b3;
  font: 680 9px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.live-observer-title strong {
  color: #dfe5e2;
  font-size: 13px;
  font-weight: 650;
}

.live-observer-state {
  color: #93a09d;
  font: 560 9px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.live-observer[data-state="ready"] .live-observer-state {
  color: #9fc5c1;
}

.live-observer[data-state="stale"] .live-observer-state {
  color: #c3b28e;
}

.live-observer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.live-observer-metric {
  min-width: 0;
  padding: 17px 18px 16px;
  border-right: 1px solid #293436;
}

.live-observer-metric:last-child {
  border-right: 0;
}

.live-observer-metric span {
  display: block;
  color: #7f8c89;
  font: 650 8px/1.25 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.live-observer-metric strong {
  display: block;
  min-height: 28px;
  margin-top: 7px;
  color: #edf1ef;
  font-size: 18px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  transition: color .25s, background-color .25s;
}

.live-observer-metric strong.is-updated {
  color: #e6c78f;
  background: rgb(200 158 93 / 8%);
}

.live-observer-foot {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 16px;
  color: #7f8c89;
  border-top: 1px solid #293436;
  font-size: 10px;
}

.live-observer-foot strong {
  color: #aeb8b5;
  font-weight: 620;
}

.live-observer-foot a {
  color: #d4b47d;
  text-decoration: none;
}

.live-observer-foot a:hover,
.live-observer-foot a:focus-visible {
  color: #f0d5a5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (width <= 980px) {
  .hero-grid,
  .mb-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-hero {
    grid-template-columns: 46px 1fr;
  }

  .live-observer {
    margin-top: -16px;
  }
}

@media (width <= 700px) {
  html {
    scroll-padding-top: 114px;
  }

  body {
    font-size: 15px;
  }

  .site-container {
    width: min(100% - 28px, 1160px);
  }

  .section-gap {
    margin-block: 46px;
  }

  .header-inner {
    height: 59px;
  }

  .header-status {
    padding-inline: 8px;
  }

  .header-status span {
    display: inline;
  }

  .duckhunt-subnav {
    top: 59px;
  }

  .duckhunt-subnav-inner {
    padding-block: 6px 2px;
  }

  .duckhunt-subnav nav a {
    padding: 9px 9px 8px;
  }

  .hero-grid,
  .mb-hero-grid {
    gap: 23px;
    padding-block: 30px 20px;
  }

  .hero-shell .hero-copy h1,
  .mb-hero .hero-copy h1 {
    font-size: 30px;
  }

  .radar-screen {
    height: 180px;
  }

  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact-card:nth-child(2) {
    border-right: 0;
  }

  .fact-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--hairline);
  }

  .split-section,
  .mb-intro {
    gap: 28px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding-top: 31px;
    padding-bottom: 27px;
  }

  .page-hero h1 {
    font-size: 31px;
  }

  .level-row {
    grid-template-columns: 38px 78px 1fr;
    gap: 11px;
  }

  .live-observer {
    margin-top: -10px;
    margin-bottom: 42px;
  }

  .live-observer-head,
  .live-observer-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .live-observer-title {
    flex-direction: column;
    gap: 4px;
  }

  .live-observer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .live-observer-metric:nth-child(2) {
    border-right: 0;
  }

  .live-observer-metric:nth-child(-n+2) {
    border-bottom: 1px solid #293436;
  }
}

@media (width <= 430px) {
  .header-status span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fact-grid,
  .live-observer-grid {
    grid-template-columns: 1fr;
  }

  .fact-card,
  .fact-card:nth-child(2),
  .live-observer-metric,
  .live-observer-metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .fact-card:last-child,
  .live-observer-metric:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-observer-metric strong {
    transition: none;
  }
}
