:root {
      --bg: #0b0f0c;
      --bg-soft: #101812;
      --ink: #cbbfa3;
      --muted: #a89f85;
      --shadow: rgba(0, 0, 0, 0.38);
      --stroke: rgba(255, 255, 255, 0.1);
      --stroke-strong: rgba(255, 255, 255, 0.14);
      --panel: rgba(0, 0, 0, 0.6);
      --panel-soft: rgba(0, 0, 0, 0.52);
      --panel-elevated: rgba(0, 0, 0, 0.68);
      --gold: #fbbf24;
      --gold-soft: #f7d774;
      --allies: #4f9f8d;
      --allies-soft: #7cd7c0;
      --axis: #9f3b36;
      --axis-soft: #d56d67;
      --neutral: #596157;
      --map-sea: #1b2720;
      --map-sea-deep: #101611;
      --map-land: #233327;
      --map-land-soft: #314438;
      --map-land-dark: #16211a;
      --map-mountain: rgba(202, 206, 189, 0.24);
      --map-road: rgba(251, 191, 36, 0.32);
      --map-border: rgba(131, 164, 119, 0.24);
    }

    * {
      box-sizing: border-box;
    }

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

    body {
      color: var(--ink);
      font-family: "Inter", system-ui, sans-serif;
      background:
        radial-gradient(circle at top right, rgba(255, 200, 100, 0.08), transparent 24%),
        radial-gradient(circle at 78% 18%, rgba(200, 180, 120, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(10, 14, 11, 0.98), rgba(8, 12, 9, 1)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='rgba(130,156,128,0.06)' stroke-width='1'%3E%3Cpath d='M0 55h220M0 110h220M0 165h220M55 0v220M110 0v220M165 0v220'/%3E%3C/g%3E%3C/svg%3E");
      text-shadow: 0 0 8px rgba(255, 200, 100, 0.12);
    }

    h1, h2, h3, h4, p {
      margin: 0;
    }

    .page {
      max-width: 1600px;
      margin: 0 auto;
      padding: 1.1rem;
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) minmax(360px, 430px);
      gap: 1rem;
    }

    .main-column {
      display: grid;
      gap: 1.1rem;
    }

    .dashboard-only.hidden,
    .battle-map-page.hidden,
    .intel-panel.hidden {
      display: none;
    }

    .page.about-mode {
      grid-template-columns: minmax(0, 1fr);
    }

    .page.about-mode .main-column {
      max-width: 1180px;
    }

    .operations-stack {
      align-content: start;
    }

    .hero,
    .theatre,
    .challenge-board,
    .intel-panel {
      border: 1px solid var(--stroke);
      border-radius: 14px;
      box-shadow: 0 18px 38px var(--shadow);
      overflow: hidden;
      position: relative;
      backdrop-filter: blur(8px);
    }

    .hero::before,
    .theatre::before,
    .challenge-board::before,
    .intel-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
    }

    .hero {
      padding: 1.7rem;
      background:
        linear-gradient(90deg, rgba(224, 214, 184, 0.07), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.62));
      color: var(--ink);
    }

    .page-topbar {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: 1rem;
    }

    .page-title-group {
      display: grid;
      gap: 0.2rem;
      min-width: 0;
    }

    .hero-label,
    .section-label,
    .detail-label,
    .panel-label,
    .challenge-label,
    .legend-label {
      display: block;
      font-family: "Rajdhani", sans-serif;
      font-size: 0.74rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.3rem;
    }

    h1, h2, h3, h4,
    .detail-title,
    .challenge-title,
    .node-title,
    .front-chip-name,
    .map-marker-name {
      font-family: "Rajdhani", sans-serif;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    h1 {
      font-size: clamp(2rem, 4vw, 3.35rem);
      line-height: 0.9;
      max-width: 14ch;
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
    }

    .hero-copy {
      margin-top: 1rem;
      max-width: 62rem;
      line-height: 1.6;
      font-size: 1rem;
    }

    .hero-grid {
      margin-top: 1.35rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.85rem;
    }

    .hero-actions {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
    }

    .hero-objective {
      margin-top: 1.15rem;
      padding: 1rem 1.05rem;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(224, 214, 184, 0.06), rgba(0, 0, 0, 0.62));
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--ink);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
      display: grid;
      gap: 0.7rem;
      backdrop-filter: blur(8px);
    }

    .board-objective {
      margin-top: 0.9rem;
      background: linear-gradient(180deg, rgba(224, 214, 184, 0.08), rgba(0, 0, 0, 0.64));
    }

    .hero-objective-top,
    .hero-objective-bottom {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      align-items: baseline;
    }

    .hero-objective-value {
      font-family: "Rajdhani", sans-serif;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-size: clamp(1.4rem, 3vw, 2.1rem);
      line-height: 1;
      color: var(--ink);
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
    }

    .hero-objective-subcopy {
      color: var(--muted);
      text-align: right;
      max-width: 24rem;
      line-height: 1.45;
    }

    .hero-objective-track {
      position: relative;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(7, 10, 8, 0.92);
      border: 1px solid rgba(251, 191, 36, 0.16);
    }

    .control-track,
    .mini-control-track {
      position: relative;
      overflow: hidden;
      border-radius: 999px;
      background:
        linear-gradient(90deg, rgba(159, 59, 54, 0.5) 0%, rgba(159, 59, 54, 0.18) 50%, rgba(79, 159, 141, 0.18) 50%, rgba(79, 159, 141, 0.5) 100%);
    }

    .hero-objective-track {
      height: 14px;
    }

    .hero-objective-fill {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(251, 191, 36, 0.72), rgba(251, 191, 36, 1));
      box-shadow: 0 0 18px rgba(251, 191, 36, 0.18);
    }

    .hero-objective-bottom {
      font-size: 0.88rem;
      color: var(--muted);
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.12);
    }

    .hero-button {
      border: 1px solid var(--stroke-strong);
      border-radius: 10px;
      padding: 0.7rem 1rem;
      background: rgba(0, 0, 0, 0.6);
      color: var(--muted);
      font: 700 0.95rem/1 "Rajdhani", sans-serif;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform 140ms ease, box-shadow 140ms ease;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 20px rgba(0, 0, 0, 0.24);
    }

    .hero-button:hover {
      transform: translateY(-1px);
      color: var(--ink);
      border-color: rgba(251, 191, 36, 0.26);
      box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
    }

    .hero-button.active {
      background: linear-gradient(180deg, rgba(224, 214, 184, 0.08), rgba(0, 0, 0, 0.7));
      color: var(--gold);
      border-color: rgba(251, 191, 36, 0.34);
      box-shadow: inset 0 -2px 0 rgba(251, 191, 36, 0.95), 0 14px 24px rgba(0, 0, 0, 0.3);
    }

    .menu-toggle {
      display: none;
      width: 2.85rem;
      height: 2.85rem;
      border-radius: 10px;
      border: 1px solid var(--stroke-strong);
      background: rgba(13, 19, 15, 0.96);
      color: var(--ink);
      font: inherit;
      font-size: 1.15rem;
      cursor: pointer;
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    }

    .menu-toggle:hover {
      transform: translateY(-1px);
    }

    .intel-panel-close {
      display: none;
      justify-self: end;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 10px;
      border: 1px solid var(--stroke-strong);
      background: rgba(11, 16, 13, 0.88);
      color: var(--ink);
      font: inherit;
      cursor: pointer;
    }

    .hero-stat {
      padding: 0.95rem 1rem;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
    }

    .hero-value {
      font-family: "Rajdhani", sans-serif;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 1.7rem;
      line-height: 1.05;
      color: var(--ink);
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
    }

    .mobile-activity-feed {
      display: grid;
      padding: 1rem 1.05rem;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.1);
      background:
        linear-gradient(180deg, rgba(8, 11, 9, 0.18) 0%, rgba(8, 11, 9, 0.34) 42%, rgba(8, 11, 9, 0.72) 100%),
        radial-gradient(circle at bottom right, rgba(8, 11, 9, 0.04) 0%, rgba(8, 11, 9, 0.28) 24%, rgba(8, 11, 9, 0.78) 56%, rgba(8, 11, 9, 0.98) 82%),
        url("/frontlines_bg1.png") center right / cover no-repeat,
        linear-gradient(180deg, rgba(12, 18, 14, 0.82), rgba(4, 7, 5, 0.92));
      backdrop-filter: blur(8px);
      gap: 0.75rem;
    }

    .mobile-activity-feed[hidden] {
      display: none;
    }

    .mobile-activity-head {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      align-items: baseline;
    }

    .mobile-activity-list {
      display: grid;
      gap: 0.45rem;
    }

    .mobile-activity-item {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.15rem 0.7rem;
      padding: 0.48rem 0.65rem;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(224, 214, 184, 0.04), rgba(0, 0, 0, 0.52));
      text-align: left;
      cursor: pointer;
    }

    .mobile-activity-item:hover {
      border-color: rgba(251, 191, 36, 0.24);
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
    }

    .mobile-activity-time {
      font-family: "Rajdhani", sans-serif;
      font-size: 0.66rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      white-space: nowrap;
    }

    .mobile-activity-name {
      font-family: "Rajdhani", sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink);
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
    }

    .mobile-activity-copy {
      font-size: 0.76rem;
      line-height: 1.2;
      color: var(--muted);
      white-space: nowrap;
    }

    .mobile-activity-copy:empty {
      display: none;
    }

    .mobile-activity-impact {
      align-self: center;
      justify-self: end;
      font-family: "Rajdhani", sans-serif;
      font-size: 0.96rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink);
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
      white-space: nowrap;
    }

    .mobile-activity-impact.live,
    .team-metric.live {
      color: var(--gold-soft);
    }

    .mobile-activity-impact.allies,
    .team-metric.allies {
      color: var(--allies-soft);
    }

    .mobile-activity-impact.axis,
    .team-metric.axis {
      color: var(--axis-soft);
    }

    .hero-meta {
      margin-top: 0.28rem;
      font-family: "Rajdhani", sans-serif;
      font-size: 0.82rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .hero-value.compact {
      font-size: 1.05rem;
    }

    .theatre {
      padding: 1.15rem;
      background:
        linear-gradient(180deg, rgba(224, 214, 184, 0.04), rgba(0, 0, 0, 0.64));
      color: var(--ink);
      display: grid;
      gap: 1rem;
    }

    .tile-board {
      display: grid;
      gap: 1rem;
      padding: 1rem;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      align-items: end;
    }

    .section-header p {
      max-width: 34rem;
      line-height: 1.5;
      color: var(--muted);
    }

    .map-toolbar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.85rem;
      align-items: center;
    }

    .toolbar-group,
    .map-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
      align-items: center;
    }

    .toolbar-button,
    .legend-chip {
      border: 1px solid var(--stroke);
      border-radius: 999px;
      padding: 0.45rem 0.75rem;
      background: rgba(17, 23, 19, 0.98);
      font: inherit;
      color: var(--ink);
    }

    .toolbar-button {
      cursor: pointer;
      min-width: 2.6rem;
      transition: transform 120ms ease, background 120ms ease;
    }

    .toolbar-button:hover {
      transform: translateY(-1px);
      border-color: rgba(251, 191, 36, 0.24);
      background: rgba(21, 31, 24, 0.98);
    }

    .legend-chip {
      display: inline-flex;
      gap: 0.45rem;
      align-items: center;
      font-size: 0.84rem;
    }

    .legend-dot {
      width: 0.72rem;
      height: 0.72rem;
      border-radius: 50%;
      display: inline-block;
    }

    .legend-dot.live {
      background: linear-gradient(135deg, var(--gold-soft), var(--gold));
      box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
    }

    .legend-dot.allies {
      background: var(--allies);
    }

    .legend-dot.axis {
      background: var(--axis);
    }

    .map-shell {
      position: relative;
      min-height: 72vh;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.1);
      background: linear-gradient(180deg, rgba(10, 14, 11, 0.98), rgba(5, 8, 6, 0.98));
      box-shadow: inset 0 0 0 1px rgba(116, 145, 113, 0.14);
    }

    .map-viewport {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: inherit;
      overflow: hidden;
      cursor: grab;
      touch-action: none;
      background:
        radial-gradient(circle at 20% 15%, rgba(74, 222, 128, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(12, 18, 14, 1), rgba(4, 7, 5, 1));
    }

    .map-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
    }

    .map-overlay-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .map-marker {
      position: absolute;
      transform: translate(-50%, -50%);
      pointer-events: auto;
      min-width: 138px;
      max-width: 220px;
      padding: 0.55rem 0.65rem;
      border-radius: 10px;
      border: 1px solid var(--stroke-strong);
      background: rgba(0, 0, 0, 0.6);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
      color: var(--ink);
      cursor: pointer;
      text-align: left;
      backdrop-filter: blur(8px);
      transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    }

    .map-marker:hover,
    .map-marker.active {
      transform: translate(-50%, -50%) translateY(-3px);
      border-color: rgba(251, 191, 36, 0.52);
      box-shadow: 0 18px 28px rgba(0, 0, 0, 0.38);
    }

    .map-marker.live {
      box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.34), 0 18px 28px rgba(0, 0, 0, 0.38);
    }

    .map-marker.hidden {
      display: none;
    }

    .map-marker-top,
    .map-marker-meta,
    .map-marker-race {
      display: flex;
      justify-content: space-between;
      gap: 0.45rem;
      align-items: center;
    }

    .map-marker-top {
      align-items: start;
      margin-bottom: 0.32rem;
    }

    .map-marker-region {
      font-size: 0.58rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.18rem;
    }

    .map-marker-name {
      font-size: 0.82rem;
      line-height: 1.08;
      max-width: 12ch;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .map-marker-badge {
      flex-shrink: 0;
      padding: 0.18rem 0.38rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.04);
      font-size: 0.56rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .map-marker-badge.live {
      background: rgba(74, 222, 128, 0.14);
      color: var(--allies-soft);
      border: 1px solid rgba(74, 222, 128, 0.18);
    }

    .map-marker-lanes {
      display: grid;
      gap: 0.28rem;
    }

    .map-marker-meta {
      margin-top: 0.35rem;
      font-size: 0.72rem;
      color: var(--muted);
    }

    .map-marker-state,
    .front-chip-state {
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .map-loading {
      position: absolute;
      left: 1rem;
      bottom: 1rem;
      padding: 0.65rem 0.85rem;
      border-radius: 10px;
      background: rgba(12, 18, 14, 0.86);
      color: var(--ink);
      border: 1px solid var(--stroke-strong);
      font-size: 0.84rem;
      letter-spacing: 0.04em;
      backdrop-filter: blur(6px);
      transition: opacity 180ms ease;
    }

    .map-loading.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .front-strip {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.75rem;
      overflow: visible;
      padding-bottom: 0;
    }

    .front-chip {
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 0.8rem 0.85rem;
      background: rgba(0, 0, 0, 0.6);
      text-align: left;
      cursor: pointer;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
      transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
      color: var(--ink);
      backdrop-filter: blur(8px);
    }

    .front-chip:hover,
    .front-chip.active {
      transform: translateY(-2px);
      border-color: rgba(251, 191, 36, 0.36);
      box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
    }

    .front-chip.live {
      box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.28), 0 16px 30px rgba(0, 0, 0, 0.34);
    }

    .front-chip-top,
    .front-chip-meta,
    .front-chip-race {
      display: flex;
      justify-content: space-between;
      gap: 0.55rem;
      align-items: center;
    }

    .front-chip-top {
      margin-bottom: 0.4rem;
      align-items: start;
    }

    .front-chip-meta {
      margin-top: 0.55rem;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .front-chip-name {
      font-size: 0.92rem;
      line-height: 1.08;
      max-width: 12ch;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
    }

    .front-chip-region {
      font-size: 0.64rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.25rem;
    }

    .front-chip-badge {
      flex-shrink: 0;
      padding: 0.2rem 0.42rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.04);
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .front-chip-badge.live {
      background: rgba(74, 222, 128, 0.14);
      color: var(--allies-soft);
      border: 1px solid rgba(74, 222, 128, 0.18);
    }

    .front-chip-lanes {
      display: grid;
      gap: 0.35rem;
    }

    .map-viewport.dragging {
      cursor: grabbing;
    }

    .map-world {
      position: absolute;
      inset: 0 auto auto 0;
      width: 2800px;
      height: 1900px;
      transform-origin: 0 0;
      will-change: transform;
    }

    .map-surface,
    .map-overlay,
    .map-labels,
    .map-routes,
    .map-nodes {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .map-surface {
      background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05), transparent 24%),
        radial-gradient(circle at 76% 18%, rgba(251, 191, 36, 0.04), transparent 20%),
        linear-gradient(180deg, rgba(31, 45, 35, 0.46), rgba(16, 24, 18, 0.6));
    }

    .map-surface::before,
    .map-surface::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .map-surface::before {
      background:
        radial-gradient(ellipse at 34% 33%, rgba(127, 134, 97, 0.96) 0 14%, transparent 14.2%),
        radial-gradient(ellipse at 40% 26%, rgba(127, 134, 97, 0.95) 0 13%, transparent 13.2%),
        radial-gradient(ellipse at 46% 22%, rgba(127, 134, 97, 0.95) 0 11%, transparent 11.2%),
        radial-gradient(ellipse at 49% 31%, rgba(127, 134, 97, 0.92) 0 12%, transparent 12.2%),
        radial-gradient(ellipse at 42% 42%, rgba(127, 134, 97, 0.9) 0 10%, transparent 10.2%),
        radial-gradient(ellipse at 58% 39%, rgba(127, 134, 97, 0.93) 0 16%, transparent 16.2%),
        radial-gradient(ellipse at 68% 42%, rgba(127, 134, 97, 0.92) 0 15%, transparent 15.2%),
        radial-gradient(ellipse at 76% 34%, rgba(127, 134, 97, 0.94) 0 10%, transparent 10.2%),
        radial-gradient(ellipse at 73% 70%, rgba(127, 134, 97, 0.92) 0 15%, transparent 15.2%),
        radial-gradient(ellipse at 60% 78%, rgba(127, 134, 97, 0.9) 0 9%, transparent 9.2%),
        radial-gradient(ellipse at 57% 86%, rgba(127, 134, 97, 0.88) 0 11%, transparent 11.2%);
      filter: saturate(0.9);
    }

    .map-surface::after {
      background:
        radial-gradient(circle at 43% 29%, rgba(255, 247, 235, 0.58) 0 2.4%, transparent 2.5%),
        radial-gradient(circle at 47% 30%, rgba(255, 247, 235, 0.55) 0 1.9%, transparent 2%),
        radial-gradient(circle at 51% 31%, rgba(255, 247, 235, 0.52) 0 1.7%, transparent 1.8%),
        radial-gradient(circle at 61% 39%, rgba(255, 247, 235, 0.5) 0 1.9%, transparent 2%),
        radial-gradient(circle at 64% 41%, rgba(255, 247, 235, 0.45) 0 1.6%, transparent 1.7%),
        radial-gradient(circle at 71% 42%, rgba(255, 247, 235, 0.42) 0 1.8%, transparent 1.9%),
        radial-gradient(circle at 38% 44%, rgba(255, 247, 235, 0.46) 0 1.9%, transparent 2%),
        radial-gradient(circle at 74% 71%, rgba(255, 247, 235, 0.44) 0 2%, transparent 2.1%),
        radial-gradient(circle at 62% 84%, rgba(255, 247, 235, 0.42) 0 2%, transparent 2.1%),
        linear-gradient(120deg, transparent 0 34%, rgba(229, 206, 154, 0.4) 34.4% 34.8%, transparent 35.1%),
        linear-gradient(142deg, transparent 0 44%, rgba(229, 206, 154, 0.28) 44.4% 44.7%, transparent 45%),
        linear-gradient(90deg, transparent 0 61%, rgba(94, 98, 73, 0.24) 61.5% 61.8%, transparent 62.1%),
        linear-gradient(90deg, transparent 0 39%, rgba(94, 98, 73, 0.18) 39.4% 39.7%, transparent 40%);
      opacity: 0.9;
    }

    .map-overlay {
      pointer-events: none;
      background:
        radial-gradient(circle at 24% 28%, rgba(255, 248, 227, 0.07), transparent 28%),
        radial-gradient(circle at 70% 38%, rgba(255, 248, 227, 0.06), transparent 25%),
        radial-gradient(circle at 57% 83%, rgba(255, 248, 227, 0.08), transparent 22%);
    }

    .map-routes {
      pointer-events: none;
    }

    .map-route {
      fill: none;
      stroke: rgba(251, 191, 36, 0.34);
      stroke-width: 10;
      stroke-linecap: round;
      stroke-dasharray: 14 16;
      filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.08));
    }

    .map-border {
      fill: none;
      stroke: rgba(136, 155, 132, 0.22);
      stroke-width: 4;
      stroke-dasharray: 18 12;
    }

    .region-label {
      position: absolute;
      color: rgba(220, 231, 215, 0.42);
      font-size: 1.25rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      text-shadow: 0 1px 10px rgba(0, 0, 0, 0.62);
      pointer-events: none;
      user-select: none;
    }

    .region-label.small {
      font-size: 0.95rem;
      letter-spacing: 0.16em;
    }

    .campaign-node {
      position: absolute;
      transform: translate(-50%, -50%);
      width: 212px;
      border: 1px solid rgba(32, 24, 16, 0.18);
      border-radius: 18px;
      background: rgba(253, 247, 234, 0.78);
      box-shadow: 0 14px 26px rgba(26, 21, 17, 0.18);
      overflow: hidden;
      text-align: left;
      cursor: pointer;
      transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
      backdrop-filter: blur(4px);
    }

    .campaign-node:hover,
    .campaign-node.active {
      transform: translate(-50%, -50%) translateY(-4px);
      border-color: rgba(198, 151, 76, 0.72);
      box-shadow: 0 18px 30px rgba(26, 21, 17, 0.28);
    }

    .campaign-node.live {
      box-shadow: 0 0 0 2px rgba(198, 151, 76, 0.5), 0 22px 36px rgba(26, 21, 17, 0.3);
    }

    .campaign-node::before {
      content: "";
      position: absolute;
      inset: auto auto -24px 50%;
      width: 2px;
      height: 28px;
      background: linear-gradient(180deg, rgba(48, 37, 24, 0.85), transparent);
      transform: translateX(-50%);
      pointer-events: none;
    }

    .campaign-node::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -34px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      transform: translateX(-50%);
      background: #2d2418;
      box-shadow: 0 0 0 6px rgba(45, 36, 24, 0.1);
      pointer-events: none;
    }

    .node-header {
      padding: 0.72rem 0.78rem 0.45rem;
      display: flex;
      justify-content: space-between;
      gap: 0.5rem;
      align-items: start;
    }

    .node-eyebrow {
      font-size: 0.64rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      opacity: 0.72;
      margin-bottom: 0.25rem;
    }

    .node-title {
      font-size: 1rem;
      line-height: 1.08;
      max-width: 12ch;
    }

    .node-badge {
      flex-shrink: 0;
      padding: 0.2rem 0.42rem;
      border-radius: 999px;
      background: rgba(25, 21, 15, 0.08);
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .node-badge.live {
      background: linear-gradient(135deg, var(--gold-soft), var(--gold));
      color: #20170e;
    }

    .node-body {
      padding: 0 0.78rem 0.78rem;
      display: grid;
      gap: 0.42rem;
    }

    .node-meta,
    .node-factions,
    .server-line {
      display: flex;
      justify-content: space-between;
      gap: 0.6rem;
      font-size: 0.8rem;
    }

    .node-race {
      display: grid;
      gap: 0.32rem;
    }

    .race-lane {
      height: 7px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(25, 21, 15, 0.12);
    }

    .race-lane span,
    .team-progress span {
      display: block;
      height: 100%;
    }

    .allies-fill {
      background: linear-gradient(90deg, #7eaac6, var(--allies));
    }

    .axis-fill {
      background: linear-gradient(90deg, #c36c5b, var(--axis));
    }

    .challenge-board {
      padding: 1.2rem;
      background: linear-gradient(180deg, rgba(224, 214, 184, 0.04), rgba(0, 0, 0, 0.64));
      color: var(--ink);
    }

    .challenge-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.85rem;
      margin-top: 1rem;
    }

    .challenge-card {
      min-height: 138px;
      padding: 1rem;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
    }

    .challenge-card.active {
      background: linear-gradient(180deg, rgba(224, 214, 184, 0.06), rgba(0, 0, 0, 0.64));
      border-color: rgba(251, 191, 36, 0.22);
    }

    .challenge-title {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    .challenge-copy {
      font-size: 0.94rem;
      line-height: 1.5;
      color: var(--muted);
    }

    .challenge-tag {
      display: inline-flex;
      margin-top: 0.8rem;
      padding: 0.25rem 0.55rem;
      border-radius: 999px;
      font-family: "Rajdhani", sans-serif;
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      border: 1px solid rgba(251, 191, 36, 0.18);
      color: var(--gold);
    }

    .intel-panel {
      position: sticky;
      top: 1.35rem;
      padding: 1.35rem;
      background:
        linear-gradient(180deg, rgba(224, 214, 184, 0.06), rgba(0, 0, 0, 0.8));
      color: var(--ink);
      display: grid;
      gap: 1rem;
      align-content: start;
    }

    .intel-panel-topbar {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      align-items: center;
    }

    .battle-map-page {
      position: fixed;
      inset: 0;
      z-index: 40;
      background: #000;
      display: block;
    }

    .map-header {
      position: absolute;
      top: 1rem;
      right: 1rem;
      z-index: 4;
      width: min(100% - 7rem, 560px);
      padding: 1rem 1.1rem;
      border-radius: 14px;
      border: 1px solid var(--stroke);
      background:
        linear-gradient(180deg, rgba(224, 214, 184, 0.05), rgba(0, 0, 0, 0.66));
      color: var(--ink);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(10px);
    }

    .map-header .page-title-group h2 {
      font-size: clamp(1.2rem, 2.2vw, 1.85rem);
      line-height: 1.05;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .map-header .page-title-group p {
      color: var(--muted);
      font-size: 0.86rem;
    }

    .map-stage {
      position: relative;
      min-width: 0;
      min-height: 100vh;
      background: #000;
    }

    .map-stage .map-shell {
      min-height: 100vh;
      height: 100vh;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .map-stage .map-viewport {
      min-height: 100vh;
    }

    .map-control-rail {
      position: absolute;
      top: 1rem;
      left: 1rem;
      z-index: 3;
      display: grid;
      gap: 0.55rem;
    }

    .icon-button,
    .map-back-button {
      border: 1px solid var(--stroke);
      border-radius: 10px;
      background: rgba(11, 16, 13, 0.88);
      color: var(--ink);
      font: 700 0.95rem/1 "Rajdhani", sans-serif;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      backdrop-filter: blur(10px);
    }

    .icon-button {
      width: 2.8rem;
      height: 2.8rem;
      font-size: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .map-back-button {
      padding: 0.55rem 0.8rem;
      font-size: 0.88rem;
    }

    .mobile-nav-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 49;
      background: rgba(0, 0, 0, 0.46);
      backdrop-filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 180ms ease;
    }

    .mobile-nav-backdrop.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .mobile-nav-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(82vw, 320px);
      z-index: 50;
      padding: 1.25rem;
      display: grid;
      align-content: start;
      gap: 1rem;
      background:
        linear-gradient(180deg, rgba(224, 214, 184, 0.06), rgba(0, 0, 0, 0.84));
      color: var(--ink);
      border-left: 1px solid var(--stroke);
      box-shadow: -18px 0 42px rgba(0, 0, 0, 0.34);
      transform: translateX(100%);
      transition: transform 180ms ease;
    }

    .mobile-nav-drawer.open {
      transform: translateX(0);
    }

    .mobile-nav-header {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      align-items: center;
    }

    .mobile-nav-title {
      display: grid;
      gap: 0.18rem;
    }

    .mobile-nav-title strong {
      font-family: "Rajdhani", sans-serif;
      font-size: 1.02rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .mobile-nav-title span {
      font-family: "Rajdhani", sans-serif;
      font-size: 0.76rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .mobile-nav-close {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 10px;
      border: 1px solid var(--stroke-strong);
      background: rgba(11, 16, 13, 0.88);
      color: var(--ink);
      font: inherit;
      cursor: pointer;
    }

    .mobile-nav-links {
      display: grid;
      gap: 0.7rem;
    }

    .mobile-nav-link {
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 0.82rem 1rem;
      background: rgba(0, 0, 0, 0.78);
      color: inherit;
      text-align: left;
      font: inherit;
      cursor: pointer;
      transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
    }

    .mobile-nav-link.active {
      background: linear-gradient(180deg, rgba(224, 214, 184, 0.06), rgba(0, 0, 0, 0.7));
      border-color: rgba(251, 191, 36, 0.28);
      color: var(--gold);
    }

    .mobile-nav-link:hover {
      transform: translateY(-1px);
      border-color: rgba(251, 191, 36, 0.22);
    }

    .mobile-nav-link {
      font-family: "Rajdhani", sans-serif;
      font-size: 0.96rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .map-attribution {
      position: absolute;
      right: 1rem;
      bottom: 1rem;
      z-index: 3;
      padding: 0.45rem 0.7rem;
      border-radius: 10px;
      background: rgba(11, 16, 13, 0.86);
      border: 1px solid var(--stroke);
      color: var(--muted);
      font-size: 0.76rem;
      letter-spacing: 0.04em;
      backdrop-filter: blur(10px);
    }

    .map-attribution a {
      color: var(--ink);
      text-decoration: none;
    }

    .map-attribution a:hover {
      text-decoration: underline;
    }

    .status-pill {
      justify-self: start;
      padding: 0.36rem 0.7rem;
      border-radius: 999px;
      border: 1px solid rgba(251, 191, 36, 0.2);
      color: var(--gold);
      font-family: "Rajdhani", sans-serif;
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      background: rgba(251, 191, 36, 0.06);
    }

    .detail-title {
      font-size: 2.2rem;
      line-height: 0.96;
      max-width: 10ch;
    }

    .detail-subtext {
      line-height: 1.54;
      color: var(--muted);
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
    }

    .detail-card {
      padding: 0.9rem;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
    }

    .detail-value {
      font-family: "Rajdhani", sans-serif;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 1.45rem;
      color: var(--ink);
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
    }

    .team-metric {
      font-family: "Rajdhani", sans-serif;
      font-size: 1.08rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink);
      text-shadow: 0 0 6px rgba(200, 180, 120, 0.2);
    }

    .control-board {
      display: grid;
      gap: 0.75rem;
      padding: 1rem;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
    }

    .control-track {
      height: 18px;
    }

    .mini-control-track {
      height: 12px;
    }

    .control-track::after,
    .mini-control-track::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      transform: translateX(-50%);
      background: rgba(213, 221, 208, 0.52);
      opacity: 0.8;
    }

    .control-fill,
    .mini-control-fill {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 0%;
    }

    .control-fill.allies,
    .mini-control-fill.allies {
      background: linear-gradient(90deg, rgba(79, 159, 141, 0.42), rgba(79, 159, 141, 1));
    }

    .control-fill.axis,
    .mini-control-fill.axis {
      background: linear-gradient(90deg, rgba(159, 59, 54, 1), rgba(159, 59, 54, 0.42));
    }

    .control-scale {
      display: flex;
      justify-content: space-between;
      gap: 0.5rem;
      font-family: "Rajdhani", sans-serif;
      font-size: 0.78rem;
      color: var(--muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .versus-board {
      display: grid;
      gap: 0.85rem;
      padding: 1rem;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
    }

    .team-header {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      font-size: 0.95rem;
      margin-bottom: 0.3rem;
    }

    .team-progress {
      height: 12px;
      border-radius: 999px;
      background: rgba(7, 10, 8, 0.9);
      overflow: hidden;
    }

    .server-list {
      display: grid;
      gap: 0.65rem;
    }

    .server-item {
      padding: 0.8rem 0.9rem;
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
    }

    .server-metric {
      font-family: "Rajdhani", sans-serif;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink);
    }

    .footer-note {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .intel-panel.compact-panel {
      font-size: 0.92rem;
    }

    .intel-panel.compact-panel .status-pill,
    .intel-panel.compact-panel .panel-label,
    .intel-panel.compact-panel .detail-label,
    .intel-panel.compact-panel .server-line,
    .intel-panel.compact-panel .footer-note {
      font-size: 0.76rem;
    }

    .intel-panel.compact-panel .detail-title {
      font-size: 1.45rem;
    }

    .intel-panel.compact-panel .detail-subtext {
      font-size: 0.88rem;
      line-height: 1.45;
    }

    .intel-panel.compact-panel .detail-card {
      padding: 0.8rem 0.85rem;
    }

    .intel-panel.compact-panel .detail-value {
      font-size: 1.05rem;
    }

    .intel-panel.compact-panel .team-metric {
      font-size: 0.98rem;
    }

    .intel-panel-backdrop {
      display: none;
    }

    .empty-state {
      padding: 2rem;
      text-align: center;
      border: 1px dashed rgba(128, 153, 124, 0.22);
      border-radius: 12px;
      background: rgba(16, 24, 18, 0.92);
    }

    .about-stack {
      display: grid;
      gap: 1rem;
    }

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

    .about-card {
      padding: 1.1rem;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(0, 0, 0, 0.6);
      display: grid;
      gap: 0.75rem;
      color: var(--ink);
      backdrop-filter: blur(8px);
    }

    .about-card.wide {
      grid-column: 1 / -1;
    }

    .about-card h3 {
      font-size: 1.05rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .about-card p {
      line-height: 1.6;
      color: var(--muted);
    }

    .formula-block {
      padding: 0.9rem 1rem;
      border-radius: 10px;
      border: 1px solid rgba(251, 191, 36, 0.14);
      background: rgba(0, 0, 0, 0.64);
      font-family: "Cascadia Code", "Consolas", monospace;
      font-size: 0.88rem;
      line-height: 1.7;
      color: var(--gold-soft);
      overflow-x: auto;
    }

    .about-points {
      display: grid;
      gap: 0.6rem;
    }

    .about-points p {
      margin: 0;
    }

    @media (max-width: 1180px) {
      .page {
        grid-template-columns: 1fr;
      }

      .intel-panel {
        position: static;
      }

      .map-shell {
        min-height: 62vh;
      }
    }

    @media (max-width: 820px) {
      .page {
        padding: 1rem;
      }

      .hero {
        padding: 1rem;
      }

      .page-topbar {
        align-items: center;
      }

      .hero-actions {
        display: none;
      }

      .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .dashboard-view {
        display: contents;
      }

      .hero {
        order: 1;
      }

      .mobile-activity-feed {
        order: 2;
      }

      .theatre {
        order: 3;
      }

      .intel-panel {
        order: 3;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 388px);
        max-width: 100%;
        z-index: 35;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 180ms ease;
        overflow-y: auto;
        box-shadow: -18px 0 42px rgba(0, 0, 0, 0.34);
        touch-action: pan-y;
        will-change: transform;
        padding: 0.9rem 0.9rem 1rem;
        gap: 0.75rem;
      }

      .intel-panel.mobile-open {
        transform: translateX(0);
      }

      .intel-panel.swiping {
        transition: none;
      }

      .intel-panel-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .intel-panel-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.46);
        backdrop-filter: blur(2px);
        z-index: 34;
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
      }

      .intel-panel-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
      }

      .challenge-board {
        order: 4;
      }

      .page-title-group {
        gap: 0.08rem;
      }

      .hero-grid {
        margin-top: 0.8rem;
        gap: 0.65rem;
      }

      .hero-stat {
        padding: 0.8rem 0.85rem;
      }

      .detail-grid {
        gap: 0.6rem;
      }

      .intel-panel.compact-panel .detail-title {
        font-size: 1.18rem;
        line-height: 1;
      }

      .intel-panel.compact-panel .detail-subtext {
        font-size: 0.8rem;
        line-height: 1.35;
      }

      .intel-panel.compact-panel .detail-card {
        padding: 0.68rem 0.72rem;
      }

      .intel-panel.compact-panel .detail-value {
        font-size: 0.95rem;
      }

      .intel-panel.compact-panel .team-header {
        font-size: 0.82rem;
        margin-bottom: 0.22rem;
      }

      .intel-panel.compact-panel .control-board,
      .intel-panel.compact-panel .versus-board {
        padding: 0.8rem;
      }

      .intel-panel.compact-panel .server-item {
        padding: 0.68rem 0.72rem;
      }

      .hero-grid,
      .challenge-grid,
      .detail-grid,
      .about-grid {
        grid-template-columns: 1fr;
      }

      .map-toolbar,
      .section-header {
        align-items: start;
        flex-direction: column;
      }

      .campaign-node {
        width: 190px;
      }

      .map-shell {
        min-height: 56vh;
      }

      .map-header {
        top: 0.85rem;
        right: 0.85rem;
        left: 4.65rem;
        width: auto;
        padding: 0.85rem 0.95rem;
      }

      .map-header .hero-actions {
        display: none;
      }

      .mobile-nav-backdrop {
        display: block;
      }

      .mobile-nav-drawer {
        border-radius: 0;
      }

      .map-control-rail {
        top: 0.85rem;
        left: 0.85rem;
      }
    }
