@font-face {
  font-display: swap;
  font-family: "Frontier Display";
  font-style: normal;
  font-weight: 400;
  src: url("../../westernFrontier/fonts/thedeadsaloon-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Frontier Handbill";
  font-style: normal;
  font-weight: 400;
  src: url("../../westernFrontier/fonts/Henry McCarty.otf") format("opentype");
}

:root {
  --hud-panel: #14100a;
  --hud-panel-2: #1c1610;
  --hud-panel-3: #251c12;
  --hud-inset: #0a0704;
  --hud-frame: #2a1d10;
  --hud-mid: #4a3520;
  --hud-bright: #7a5530;
  --hud-border-gold: #a07a3c;
  --hud-paper: #f1e6cc;
  --hud-bone: #e0cfae;
  --hud-muted: #8b7960;
  --hud-dim: #5e5040;
  --hud-faint: #3d3528;
  --hud-gold: #d4a548;
  --hud-gold-bright: #f0c46a;
  --hud-gold-deep: #8b6520;
  --hud-copper: #c4824a;
  --hud-red: #c4504c;
  --hud-green: #7ba848;
  --hud-info: #6a8fb0;
  --hud-bg: rgba(20, 16, 10, 0.9);
  --hud-bg-strong: rgba(12, 8, 5, 0.96);
  --hud-border: rgba(160, 122, 60, 0.46);
  --hud-border-strong: rgba(240, 196, 106, 0.72);
  --hud-text: var(--hud-paper);
  --hud-shadow: rgba(0, 0, 0, 0.7);
  --hud-font: "Inter", "Segoe UI", Arial, sans-serif;
  --hud-head-font: "Cinzel", "Cormorant SC", Georgia, serif;
  --hud-display-font: "Frontier Display", "Rye", "Cinzel Decorative", Georgia, serif;
  --hud-title-font: "Frontier Handbill", "Rye", "Cinzel", Georgia, serif;
  --hud-mono-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hud-flavor-font: "IM Fell English", "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body.frontier-hud {
  background: #05070a;
  color: var(--hud-text);
  font-family: var(--hud-font);
  overflow: hidden;
}

.map-region-font-preload {
  font-family: "Bowlby One SC", serif;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.frontier-hud-map-stage {
  background: #05070a;
  height: 100vh;
  inset: 0;
  overflow: hidden;
  position: fixed;
  width: 100vw;
  z-index: 0;
}

.frontier-hud-map-stage canvas.js-travel-map[data-map-kind="full"] {
  display: block;
  height: 100% !important;
  image-rendering: high-quality;
  width: 100% !important;
}

.frontier-hud-map-stage .wf-map-marker-dom-layer,
.frontier-hud-map-stage .wf-travel-cinematic {
  inset: 0;
  position: absolute;
}

.frontier-hud-vignette {
  background:
    radial-gradient(circle at 50% 48%, transparent 0%, transparent 58%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 24%, transparent 68%, rgba(0, 0, 0, 0.38) 100%);
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 2;
}

.frontier-hud-map-tools {
  bottom: 92px;
  display: inline-flex;
  gap: 8px;
  left: 18px;
  position: fixed;
  right: auto;
  z-index: 20;
}

.frontier-hud-map-tools .mini-map-btn {
  align-items: center;
  backdrop-filter: blur(10px);
  background: var(--hud-bg-strong);
  border: 1px solid var(--hud-border);
  border-radius: 6px;
  color: var(--hud-text);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.frontier-hud-map-tools .mini-map-btn:hover,
.frontier-hud-map-tools .mini-map-btn:focus {
  border-color: var(--hud-border-strong);
  color: #fff7e8;
  outline: none;
}

.frontier-hud-radar {
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.58));
  pointer-events: none;
  position: fixed;
  right: 18px;
  top: 18px;
  width: clamp(158px, 15vw, 208px);
  z-index: 22;
}

.frontier-hud-radar-bezel {
  background:
    radial-gradient(circle at 50% 50%, rgba(12, 16, 18, 0.18), rgba(4, 7, 8, 0.86) 78%),
    rgba(7, 10, 10, 0.72);
  border: 2px solid rgba(237, 201, 126, 0.78);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(38, 23, 10, 0.96),
    0 0 0 5px rgba(9, 12, 13, 0.72),
    0 0 20px rgba(95, 220, 216, 0.12),
    inset 0 0 0 2px rgba(20, 12, 5, 0.78),
    inset 0 0 26px rgba(0, 0, 0, 0.62);
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.frontier-hud-radar-bezel::before {
  background:
    repeating-conic-gradient(
      from -1deg,
      rgba(255, 232, 160, 0.92) 0deg 1.5deg,
      transparent 1.5deg 10deg
    );
  border-radius: 50%;
  content: "";
  inset: 6px;
  opacity: 0.52;
  pointer-events: none;
  position: absolute;
  -webkit-mask: radial-gradient(circle, transparent 0 74%, #000 75% 100%);
  mask: radial-gradient(circle, transparent 0 74%, #000 75% 100%);
  z-index: 2;
}

.frontier-hud-radar-bezel::after {
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(168, 255, 241, 0.34) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(168, 255, 241, 0.24) 50%, transparent calc(50% + 0.5px)),
    radial-gradient(circle at 50% 50%, transparent 0 49%, rgba(170, 255, 241, 0.28) 50%, transparent 51% 62%, rgba(255, 226, 154, 0.28) 63%, transparent 64%),
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.13), transparent 22%),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(0, 0, 0, 0.44) 82%, rgba(0, 0, 0, 0.72) 100%);
  border-radius: 50%;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.frontier-hud-radar-canvas {
  border-radius: 50%;
  display: block;
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
  height: 100% !important;
  image-rendering: high-quality;
  pointer-events: none;
  width: 100% !important;
}

.frontier-hud-radar-cardinal {
  color: rgba(255, 237, 184, 0.92);
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 7px rgba(255, 210, 117, 0.42);
  z-index: 4;
}

.frontier-hud-radar-cardinal-n {
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
}

.frontier-hud-radar-cardinal-e {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.frontier-hud-radar-cardinal-s {
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.frontier-hud-radar-cardinal-w {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.frontier-hud-runtime.travel-runtime {
  backdrop-filter: blur(12px);
  bottom: 18px !important;
  left: 18px !important;
  max-width: min(340px, calc(100vw - 36px));
  position: fixed !important;
  z-index: 20 !important;
}

body.frontier-hud .wf-chat-tab {
  align-items: center;
  background: rgba(32, 20, 10, 0.76);
  border: 1px solid rgba(201, 162, 78, 0.86);
  border-radius: 5px;
  box-shadow:
    0 0 8px rgba(255, 196, 90, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.52);
  color: rgba(255, 236, 184, 0.98);
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 0;
  line-height: 1;
  min-height: 36px;
  overflow: hidden;
  padding: 0 11px;
  position: relative;
  text-shadow:
    -1px -1px 0 rgba(24, 14, 8, 0.95),
    1px -1px 0 rgba(24, 14, 8, 0.95),
    -1px 1px 0 rgba(24, 14, 8, 0.95),
    1px 1px 0 rgba(24, 14, 8, 0.95);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.frontier-hud .wf-chat-tab::before {
  border: 1px solid rgba(24, 14, 8, 0.82);
  border-radius: 4px;
  content: "";
  inset: 2px;
  pointer-events: none;
  position: absolute;
}

body.frontier-hud .wf-chat-tab::after {
  display: none;
}

body.frontier-hud .wf-chat-tab:hover,
body.frontier-hud .wf-chat-dock.is-open .wf-chat-tab {
  background: rgba(38, 24, 12, 0.84);
  border-color: rgba(239, 198, 107, 0.96);
  box-shadow:
    0 0 11px rgba(255, 196, 90, 0.36),
    0 14px 30px rgba(0, 0, 0, 0.58);
}

body.frontier-hud .wf-chat-tab-icon {
  background: rgba(255, 206, 110, 0.95);
  border: 1px solid rgba(59, 36, 22, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 196, 90, 0.38);
  flex: 0 0 auto;
  height: 7px;
  margin-left: 2px;
  position: relative;
  transform: none;
  width: 7px;
  z-index: 1;
}

body.frontier-hud .wf-chat-tab-icon i {
  display: none;
}

body.frontier-hud .wf-chat-tab-text,
body.frontier-hud .wf-chat-tab-count,
body.frontier-hud .wf-chat-tab-online {
  position: relative;
  z-index: 1;
}

body.frontier-hud .wf-chat-tab-online {
  background: rgba(24, 14, 8, 0.74);
  border: 1px solid rgba(201, 162, 78, 0.62);
  border-radius: 4px;
  box-shadow: none;
  color: rgba(255, 236, 184, 0.96);
  margin-left: 3px;
  padding: 3px 6px;
  text-shadow: none;
}

body.frontier-hud .wf-chat-tab-online > i {
  color: #7ed46d;
}

body.frontier-hud .wf-chat-tab-count {
  background: rgba(24, 14, 8, 0.82);
  border: 1px solid rgba(201, 162, 78, 0.68);
  border-radius: 4px;
  color: rgba(255, 236, 184, 0.96);
  height: 18px;
  min-width: 18px;
  padding: 0 5px;
  text-shadow: none;
}

.frontier-hud-alerts {
  display: grid;
  gap: 8px;
  left: 50%;
  max-width: min(620px, calc(100vw - 32px));
  pointer-events: none;
  position: fixed;
  top: 16px;
  transform: translateX(-50%);
  width: max-content;
  z-index: 30;
}

.frontier-hud-alert {
  backdrop-filter: blur(12px);
  background: var(--hud-bg-strong);
  border: 1px solid var(--hud-border);
  border-left: 4px solid var(--hud-gold);
  border-radius: 6px;
  box-shadow: 0 16px 40px var(--hud-shadow);
  color: var(--hud-text);
  max-width: 620px;
  padding: 10px 12px;
  pointer-events: auto;
}

.frontier-hud-alert-error {
  border-left-color: var(--hud-red);
}

.frontier-hud-alert-success {
  border-left-color: var(--hud-green);
}

/* =========================================================================
   MODULE WINDOWS (multi-window desktop)
   Camp-palette: warm browns, cream ink, gold accents, HenryMcCarty title
   ========================================================================= */

.frontier-hud-module-staging {
  display: none !important;
}

.frontier-hud-windows {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 40;
}

.frontier-hud-windows > .frontier-hud-window {
  pointer-events: auto;
}

.frontier-hud-window {
  --win-border: rgba(174, 129, 76, 0.32);
  --win-border-strong: rgba(228, 178, 108, 0.62);
  --win-surface: linear-gradient(180deg, rgba(30, 18, 10, 0.98), rgba(18, 11, 7, 0.98));
  --win-titlebar: linear-gradient(180deg, rgba(56, 35, 19, 0.96), rgba(34, 21, 12, 0.96));
  --win-kicker: #b89c76;
  --win-title: #f2dfbf;
  --win-ink: #f1debd;
  --win-accent: #e4b26c;

  animation: frontier-window-pop 0.09s linear;
  background: var(--win-surface);
  border: 1px solid var(--win-border);
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(228, 178, 108, 0.05) inset;
  color: var(--win-ink);
  display: flex;
  flex-direction: column;
  font-family: var(--font-roboto, "Inter"), "Segoe UI", Tahoma, Arial, sans-serif;
  min-height: 220px;
  min-width: 360px;
  overflow: hidden;
  position: absolute;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.frontier-hud-window.is-resizing {
  transition: none;
  user-select: none;
}

.frontier-hud-window-resize {
  background:
    linear-gradient(135deg, transparent 0%, transparent 45%, rgba(228, 178, 108, 0.45) 45%, rgba(228, 178, 108, 0.45) 55%, transparent 55%, transparent 70%, rgba(228, 178, 108, 0.3) 70%, rgba(228, 178, 108, 0.3) 80%, transparent 80%);
  bottom: 0;
  cursor: nwse-resize;
  display: block;
  height: 16px;
  position: absolute;
  right: 0;
  width: 16px;
  z-index: 2;
}

.frontier-hud-window.is-maximized .frontier-hud-window-resize {
  display: none;
}

.frontier-hud-window.is-focused {
  border-color: var(--win-border-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(228, 178, 108, 0.18) inset;
}

.frontier-hud-window.is-dragging {
  cursor: grabbing;
  transition: none;
  user-select: none;
}

.frontier-hud-window.is-maximized {
  border-radius: 0;
  bottom: 64px;
  height: auto !important;
  left: 0 !important;
  right: 0;
  top: 0 !important;
  width: auto !important;
}

@keyframes frontier-window-pop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.frontier-hud-window-titlebar {
  align-items: center;
  background: var(--win-titlebar);
  border-bottom: 1px solid var(--win-border);
  cursor: grab;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 8px 6px 14px;
  user-select: none;
}

.frontier-hud-window.is-dragging .frontier-hud-window-titlebar {
  cursor: grabbing;
}

.frontier-hud-window-title {
  color: var(--win-title);
  font-family: 'HenryMcCarty', var(--font-roboto, "Cinzel"), serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frontier-hud-window-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}

.frontier-hud-window-btn {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--win-kicker);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  padding: 0;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  width: 30px;
}

.frontier-hud-window-btn:hover,
.frontier-hud-window-btn:focus {
  background: rgba(228, 178, 108, 0.12);
  border-color: rgba(228, 178, 108, 0.32);
  color: var(--win-title);
  outline: none;
}

.frontier-hud-window-btn-close:hover,
.frontier-hud-window-btn-close:focus {
  background: rgba(217, 128, 128, 0.18);
  border-color: rgba(217, 128, 128, 0.45);
  color: #ffd6d6;
}

.frontier-hud-window-body {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 178, 108, 0.32) transparent;
}

.frontier-hud-window-body::-webkit-scrollbar { width: 8px; }
.frontier-hud-window-body::-webkit-scrollbar-thumb {
  background: rgba(228, 178, 108, 0.32);
  border-radius: 8px;
}

/* Intentionally no overrides on module internals (.panel/.well/.btn/a/etc.)
   Modules style themselves via their own CSS files plus the shared
   themes/shared/wf-module.css base layout. The window only owns its chrome
   (titlebar, body padding, scrollbar). */

/* No loading skeleton: windows open with content already populated. */

.frontier-login {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(4, 7, 10, 0.34), rgba(4, 7, 10, 0.88)),
    url("../../../modules/installed/travel/images/map-mini.webp") center / cover no-repeat,
    #05070a;
  color: var(--hud-text);
  display: flex;
  font-family: var(--hud-font);
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}

.frontier-login-panel {
  backdrop-filter: blur(16px);
  background: var(--hud-bg-strong);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  box-shadow: 0 22px 80px var(--hud-shadow);
  max-width: 420px;
  padding: 24px;
  width: 100%;
}

.frontier-login-panel h1 {
  font-size: 24px;
  margin: 0 0 18px;
}

.frontier-login-panel label {
  color: var(--hud-muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
  margin-bottom: 14px;
}

.frontier-login-panel input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--hud-text);
  min-height: 42px;
  padding: 8px 10px;
}

.frontier-login-panel button {
  background: var(--hud-gold);
  border: 0;
  border-radius: 6px;
  color: #14100a;
  font-weight: 700;
  min-height: 42px;
  width: 100%;
}

.frontier-hud-game-nav {
  bottom: 18px;
  left: 50%;
  max-width: calc(100vw - 380px);
  position: fixed;
  transform: translateX(-50%);
  z-index: 25;
}

.frontier-hud-game-nav .game-nav-list {
  align-items: stretch;
  backdrop-filter: blur(12px);
  background: var(--hud-bg-strong);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px var(--hud-shadow);
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.frontier-hud-game-nav .game-nav-list::-webkit-scrollbar {
  display: none;
}

.frontier-hud-game-nav .game-nav-item {
  background: transparent;
  border-radius: 6px;
  color: var(--hud-text);
  flex-shrink: 0;
  font-family: var(--hud-font);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.frontier-hud-game-nav .game-nav-item a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  display: inline-flex;
  gap: 6px;
  padding: 8px 14px;
  position: relative;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.frontier-hud-game-nav .game-nav-item a:hover,
.frontier-hud-game-nav .game-nav-item a:focus {
  background: rgba(225, 183, 101, 0.16);
  color: #fff7e8;
  outline: none;
}

.frontier-hud-game-nav .game-nav-item.is-active a,
.frontier-hud-game-nav .game-nav-item.is-active {
  background: rgba(225, 183, 101, 0.22);
  color: var(--hud-gold);
}

.frontier-hud-game-nav .game-nav-item.is-window-open a {
  background:
    linear-gradient(180deg, rgba(30, 92, 112, 0.26), rgba(18, 58, 72, 0.24)),
    rgba(225, 183, 101, 0.08);
  border-color: rgba(98, 220, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(12, 32, 40, 0.72) inset,
    0 0 14px rgba(64, 190, 255, 0.24);
  color: #e9fbff;
}

.frontier-hud-game-nav .game-nav-item.is-window-open a::after {
  background: #42dfff;
  border: 1px solid rgba(4, 34, 45, 0.95);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(66, 223, 255, 0.75);
  content: "";
  height: 7px;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 7px;
}

.frontier-hud-game-nav .game-nav-item.is-window-focused a {
  border-color: rgba(255, 226, 150, 0.8);
  box-shadow:
    0 0 0 1px rgba(255, 226, 150, 0.18) inset,
    0 0 18px rgba(66, 223, 255, 0.34),
    0 0 24px rgba(255, 196, 90, 0.16);
}

.frontier-hud-game-nav .game-nav-frontier-item a {
  background: rgba(8, 12, 16, 0.9);
  border-color: rgba(216, 178, 112, 0.42);
}

body.has-frontier-windows .frontier-hud-game-nav .game-nav-frontier-item a {
  border-color: rgba(255, 226, 150, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 226, 150, 0.12) inset,
    0 0 14px rgba(255, 196, 90, 0.24);
  color: #fff4d0;
}

.frontier-hud-game-nav .game-nav-item i {
  font-size: 12px;
  opacity: 0.85;
}

.frontier-hud-game-nav .game-nav-state {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.8;
}

.frontier-hud-game-nav .game-nav-empty {
  color: var(--hud-muted);
  font-size: 11px;
  font-style: italic;
  padding: 8px 14px;
}

/* Bounce icon + label of the nav item that's currently loading a module. */
.frontier-hud-game-nav .game-nav-item a.is-loading i,
.frontier-hud-game-nav .game-nav-item a.is-loading .game-nav-label {
  animation: frontier-nav-bounce 0.9s ease-in-out infinite;
  display: inline-block;
  will-change: transform;
}

.frontier-hud-game-nav .game-nav-item a.is-loading .game-nav-label {
  animation-delay: 0.08s;
}

@keyframes frontier-nav-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

/* =========================================================================
   HUDTEST TEMPLATE PASS
   ========================================================================= */

.frontier-hud-brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 14px;
  transform: translateX(-50%);
  z-index: 24;
}

.frontier-hud-wordmark {
  align-items: center;
  display: flex;
  gap: 14px;
  max-width: min(720px, calc(100vw - 380px));
  pointer-events: auto;
}

.frontier-hud-wordmark strong {
  background: linear-gradient(180deg, #f7df9f 0%, var(--hud-gold) 48%, var(--hud-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--hud-gold-bright);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.72));
  font-family: var(--hud-display-font);
  font-size: 38px;
  font-weight: 400;
  line-height: 0.95;
  max-width: min(520px, calc(100vw - 520px));
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-fill-color: transparent;
}

.frontier-hud-flourish {
  color: var(--hud-gold);
  display: block;
  flex: 0 0 90px;
  height: 14px;
  opacity: 0.9;
  position: relative;
  width: 90px;
}

.frontier-hud-flourish::before,
.frontier-hud-flourish::after {
  background: currentColor;
  content: "";
  height: 1px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.frontier-hud-flourish::before { left: 0; width: 34px; }
.frontier-hud-flourish::after { right: 0; width: 34px; }

.frontier-hud-flourish-right {
  transform: scaleX(-1);
}

.frontier-hud-flourish i,
.frontier-hud-flourish span {
  display: none;
}

.frontier-hud-location-plate {
  background: linear-gradient(180deg, rgba(28, 18, 10, 0.92), rgba(12, 8, 5, 0.95));
  border: 1px solid var(--hud-mid);
  border-top: 0;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  margin-top: -2px;
  min-width: 300px;
  padding: 6px 28px 8px;
  pointer-events: auto;
  position: relative;
  text-align: center;
}

.frontier-hud-location-name {
  color: var(--hud-gold-bright);
  font-family: var(--hud-head-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1.05;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.frontier-hud-location-meta {
  color: var(--hud-muted);
  font-family: var(--hud-mono-font);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.25;
  margin-top: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.frontier-hud-location-meta b {
  color: var(--hud-paper);
  font-weight: 500;
}

body.frontier-hud .frontier-hud-alerts {
  top: 92px;
}

body.frontier-hud .frontier-hud-game-nav {
  bottom: 18px;
  left: 50%;
  max-width: min(calc(100vw - 420px), 1120px);
  transform: translateX(-50%);
  z-index: 25;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-list {
  align-items: center;
  backdrop-filter: blur(2px);
  background: linear-gradient(180deg, rgba(38, 26, 14, 0.92) 0%, rgba(12, 8, 5, 0.96) 100%);
  border: 1px solid var(--hud-mid);
  border-radius: 0;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 1px 0 rgba(255, 210, 140, 0.06) inset;
  display: flex;
  gap: 0;
  min-height: 76px;
  overflow-x: auto;
  padding: 6px 14px;
  position: relative;
  scrollbar-width: none;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-list::before {
  border: 1px solid var(--hud-frame);
  content: "";
  inset: 3px;
  pointer-events: none;
  position: absolute;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-item {
  background: transparent;
  border-radius: 0;
  color: var(--hud-muted);
  flex: 0 0 auto;
  font-family: var(--hud-head-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-frontier-item {
  margin-right: 7px;
  padding-right: 9px;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-frontier-item::after {
  background: linear-gradient(180deg, transparent, var(--hud-mid), transparent);
  content: "";
  height: 36px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-item a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 62px;
  justify-content: center;
  min-width: 78px;
  padding: 6px 4px;
  position: relative;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-item a:hover,
body.frontier-hud .frontier-hud-game-nav .game-nav-item a:focus {
  background: rgba(212, 165, 72, 0.06);
  color: var(--hud-gold-bright);
  outline: none;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-item i {
  color: inherit;
  font-size: 22px;
  height: 24px;
  line-height: 24px;
  opacity: 1;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-label {
  display: block;
  max-width: 74px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-state {
  color: var(--hud-faint);
  font-family: var(--hud-mono-font);
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0;
  position: absolute;
  right: 6px;
  top: 5px;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-active,
body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-window-open,
body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-window-focused,
body.has-frontier-windows .frontier-hud-game-nav .game-nav-frontier-item {
  color: var(--hud-gold-bright);
}

body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-active a,
body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-window-open a,
body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-window-focused a,
body.has-frontier-windows .frontier-hud-game-nav .game-nav-frontier-item a {
  background: rgba(212, 165, 72, 0.05);
  border-color: transparent;
  box-shadow: none;
  color: inherit;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-active a::after,
body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-window-open a::after,
body.frontier-hud .frontier-hud-game-nav .game-nav-item.is-window-focused a::after,
body.has-frontier-windows .frontier-hud-game-nav .game-nav-frontier-item a::after {
  background: linear-gradient(90deg, transparent, var(--hud-gold), transparent);
  border: 0;
  border-radius: 0;
  bottom: 2px;
  box-shadow: 0 0 8px rgba(212, 165, 72, 0.7);
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  right: 8px;
  top: auto;
  width: auto;
}

body.frontier-hud .frontier-hud-game-nav .game-nav-empty {
  color: var(--hud-muted);
  font-family: var(--hud-flavor-font);
  font-size: 13px;
  font-style: italic;
  padding: 18px 22px;
}

body.frontier-hud .frontier-hud-window {
  --win-border: var(--hud-mid);
  --win-border-strong: var(--hud-bright);
  --win-title: var(--hud-gold-bright);
  --win-ink: var(--hud-bone);
  --win-kicker: var(--hud-muted);
  animation: frontier-window-pop 0.09s linear;
  background:
    linear-gradient(180deg, rgba(38, 26, 14, 0.55) 0%, rgba(10, 7, 4, 0.97) 25%, rgba(8, 5, 3, 0.97) 100%);
  border: 1px solid var(--hud-mid);
  border-radius: 0;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 1px 0 rgba(255, 210, 140, 0.05) inset;
  color: var(--hud-bone);
  font-family: var(--hud-font);
  min-width: 380px;
  overflow: hidden;
  user-select: none;
}

body.frontier-hud .frontier-hud-window::before {
  border: 1px solid var(--hud-frame);
  content: "";
  inset: 3px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

body.frontier-hud .frontier-hud-window.is-focused {
  border-color: var(--hud-bright);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(212, 165, 72, 0.18) inset,
    0 0 24px rgba(212, 165, 72, 0.12);
}

body.frontier-hud .frontier-hud-window-titlebar {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--hud-frame);
  cursor: grab;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px 9px 14px;
  position: relative;
  z-index: 2;
}

body.frontier-hud .frontier-hud-window-titlebar::after {
  background: linear-gradient(90deg, transparent 0%, var(--hud-gold-deep) 30%, var(--hud-gold) 50%, var(--hud-gold-deep) 70%, transparent 100%);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 14px;
  opacity: 0.55;
  position: absolute;
  right: 14px;
}

body.frontier-hud .frontier-hud-window-title {
  color: var(--hud-gold-bright);
  font-family: var(--hud-title-font);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body.frontier-hud .frontier-hud-window-actions {
  gap: 6px;
  position: relative;
  z-index: 3;
}

body.frontier-hud .frontier-hud-window-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hud-frame);
  border-radius: 0;
  color: var(--hud-muted);
  height: 26px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  width: 26px;
}

body.frontier-hud .frontier-hud-window-btn:hover,
body.frontier-hud .frontier-hud-window-btn:focus {
  background: rgba(212, 165, 72, 0.07);
  border-color: var(--hud-bright);
  color: var(--hud-gold);
  outline: none;
}

body.frontier-hud .frontier-hud-window-btn-close:hover,
body.frontier-hud .frontier-hud-window-btn-close:focus {
  background: rgba(184, 56, 56, 0.18);
  border-color: rgba(184, 56, 56, 0.58);
  color: #f1c0bd;
}

body.frontier-hud .frontier-hud-window-body {
  background: rgba(8, 5, 3, 0.84);
  border-top: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px;
  position: relative;
  scrollbar-color: rgba(212, 165, 72, 0.36) rgba(0, 0, 0, 0.2);
  scrollbar-width: thin;
  z-index: 2;
}

body.frontier-hud .frontier-hud-window-body::-webkit-scrollbar,
body.frontier-hud .wf-chat-messages::-webkit-scrollbar,
body.frontier-hud .wf-module-list::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

body.frontier-hud .frontier-hud-window-body::-webkit-scrollbar-thumb,
body.frontier-hud .wf-chat-messages::-webkit-scrollbar-thumb,
body.frontier-hud .wf-module-list::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 72, 0.42);
  border-radius: 0;
}

body.frontier-hud .frontier-hud-window-resize {
  background:
    linear-gradient(135deg, transparent 0%, transparent 45%, rgba(212, 165, 72, 0.45) 45%, rgba(212, 165, 72, 0.45) 55%, transparent 55%, transparent 70%, rgba(212, 165, 72, 0.3) 70%, rgba(212, 165, 72, 0.3) 80%, transparent 80%);
  z-index: 4;
}

body.frontier-hud .frontier-hud-window .wf-module-page,
body.frontier-hud .frontier-hud-window .hunt-module-page {
  color: var(--hud-bone);
  font-family: var(--hud-font);
  margin: 0;
}

body.frontier-hud .frontier-hud-window .wf-module-shell,
body.frontier-hud .frontier-hud-window .hunt-module-shell {
  margin: 0;
  max-width: none;
}

body.frontier-hud .frontier-hud-window .wf-module-content,
body.frontier-hud .frontier-hud-window .hunt-module-page .wf-module-content {
  background:
    linear-gradient(180deg, rgba(38, 26, 14, 0.55) 0%, rgba(10, 7, 4, 0.97) 25%, rgba(8, 5, 3, 0.97) 100%);
  border: 1px solid var(--hud-mid);
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 1px 0 rgba(255, 210, 140, 0.05) inset;
  color: var(--hud-bone);
  overflow: hidden;
  padding: 0;
}

body.frontier-hud .frontier-hud-window .wf-module-header,
body.frontier-hud .frontier-hud-window .hunt-module-page .wf-module-header {
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--hud-frame);
  gap: 14px;
  margin: 0;
  min-height: 72px;
  padding: 14px 18px;
}

body.frontier-hud .frontier-hud-window .wf-module-title-block,
body.frontier-hud .frontier-hud-window .hunt-module-page .wf-module-title-block {
  margin: 0;
  min-width: 0;
  transform: none;
}

body.frontier-hud .frontier-hud-window .wf-module-kicker,
body.frontier-hud .frontier-hud-window .hunt-module-page .wf-module-kicker {
  color: var(--hud-muted);
  font-family: var(--hud-head-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

body.frontier-hud .frontier-hud-window .wf-module-header h3,
body.frontier-hud .frontier-hud-window .hunt-module-page .wf-module-header h3,
body.frontier-hud .frontier-hud-window .wf-module-section-header h4 {
  color: var(--hud-paper);
  font-family: var(--hud-title-font);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 6px 0 0;
  text-transform: none;
}

body.frontier-hud .frontier-hud-window .wf-module-subtitle {
  color: var(--hud-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0 0;
  max-width: 620px;
}

body.frontier-hud .frontier-hud-window .wf-module-header-meta {
  gap: 6px;
}

body.frontier-hud .frontier-hud-window .wf-module-metric,
body.frontier-hud .frontier-hud-window .wf-module-wallet {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(74, 53, 32, 0.88);
  border-radius: 0;
  box-shadow: none;
  color: var(--hud-bone);
}

body.frontier-hud .frontier-hud-window .wf-module-metric {
  min-width: 92px;
  padding: 7px 10px;
}

body.frontier-hud .frontier-hud-window .wf-module-metric span {
  color: var(--hud-muted);
  font-family: var(--hud-head-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

body.frontier-hud .frontier-hud-window .wf-module-metric strong,
body.frontier-hud .frontier-hud-window .wf-module-wallet {
  color: var(--hud-paper);
  font-family: var(--hud-mono-font);
  font-size: 12px;
  font-weight: 700;
}

body.frontier-hud .frontier-hud-window .wf-module-wallet {
  color: var(--hud-gold-bright);
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

body.frontier-hud .frontier-hud-window .wf-module-tabs,
body.frontier-hud .frontier-hud-window .hunt-panel-tabs {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
  border: 0;
  border-bottom: 1px solid var(--hud-frame);
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  overflow: visible;
  padding: 0 14px;
}

body.frontier-hud .frontier-hud-window .wf-module-tabs .wf-module-tab,
body.frontier-hud .frontier-hud-window .hunt-panel-tabs .wf-module-tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--hud-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--hud-head-font);
  font-size: 10.5px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.22em;
  margin-bottom: -1px;
  padding: 9px 14px 8px;
  text-transform: uppercase;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

body.frontier-hud .frontier-hud-window .wf-module-tabs .wf-module-tab i,
body.frontier-hud .frontier-hud-window .hunt-panel-tabs .wf-module-tab i {
  color: inherit;
  font-size: 12px;
}

body.frontier-hud .frontier-hud-window .wf-module-tabs .wf-module-tab:hover,
body.frontier-hud .frontier-hud-window .hunt-panel-tabs .wf-module-tab:hover {
  background: rgba(212, 165, 72, 0.06);
  color: var(--hud-bone);
}

body.frontier-hud .frontier-hud-window .wf-module-tabs .wf-module-tab.active,
body.frontier-hud .frontier-hud-window .hunt-panel-tabs .wf-module-tab.active {
  background: transparent;
  border-bottom-color: var(--hud-gold);
  color: var(--hud-gold-bright);
}

body.frontier-hud .frontier-hud-window .wf-module-tab-content,
body.frontier-hud .frontier-hud-window .hunt-page-tab-panels {
  padding: 14px;
}

body.frontier-hud .frontier-hud-window .wf-module-section-header {
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(74, 53, 32, 0.78);
  border-radius: 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 12px 16px;
}

body.frontier-hud .frontier-hud-window .wf-module-section-header h4 {
  font-size: 21px;
  margin: 0;
}

body.frontier-hud .frontier-hud-window .wf-module-section-header span {
  color: var(--hud-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.frontier-hud .frontier-hud-window .wf-module-list {
  gap: 5px;
  scrollbar-color: rgba(212, 165, 72, 0.42) rgba(0, 0, 0, 0.22);
}

body.frontier-hud .frontier-hud-window .wf-module-item,
body.frontier-hud .frontier-hud-window .list-row,
body.frontier-hud .frontier-hud-window .hunt-map-clean,
body.frontier-hud .frontier-hud-window .hunt-wildlife-list-panel,
body.frontier-hud .frontier-hud-window .hunt-module-animal-detail,
body.frontier-hud .frontier-hud-window .hunt-module-stat,
body.frontier-hud .frontier-hud-window .hunt-module-skill,
body.frontier-hud .frontier-hud-window .hunt-module-guide-item {
  background: linear-gradient(180deg, rgba(28, 18, 10, 0.5), rgba(8, 5, 3, 0.6));
  border: 1px solid var(--hud-frame);
  border-radius: 0;
  color: var(--hud-bone);
}

body.frontier-hud .frontier-hud-window .wf-module-item:hover,
body.frontier-hud .frontier-hud-window .hunt-module-guide-item:hover {
  border-color: var(--hud-mid);
}

body.frontier-hud .frontier-hud-window .wf-module-item-icon,
body.frontier-hud .frontier-hud-window .wf-module-item-thumb {
  background: linear-gradient(180deg, rgba(28, 18, 10, 0.6), rgba(8, 5, 3, 0.9));
  border: 1px solid var(--hud-frame);
  border-radius: 0;
  color: var(--hud-gold);
}

body.frontier-hud .frontier-hud-window .wf-module-item-main strong {
  color: var(--hud-paper);
  font-family: var(--hud-head-font);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

body.frontier-hud .frontier-hud-window .wf-module-item-main small,
body.frontier-hud .frontier-hud-window .wf-module-item-stats span {
  color: var(--hud-muted);
  font-family: var(--hud-mono-font);
}

body.frontier-hud .frontier-hud-window .wf-module-empty {
  border: 1px dashed var(--hud-mid);
  border-radius: 0;
  color: var(--hud-muted);
}

body.frontier-hud .frontier-hud-window .btn,
body.frontier-hud .frontier-hud-window .wf-module-item .btn,
body.frontier-hud .frontier-hud-window .wf-module-lockout-btn,
body.frontier-hud .frontier-hud-window .camp-btn {
  align-items: center;
  background: linear-gradient(180deg, rgba(60, 40, 20, 0.85), rgba(20, 14, 8, 0.9));
  border: 1px solid var(--hud-mid);
  border-radius: 0;
  color: var(--hud-bone);
  display: inline-flex;
  font-family: var(--hud-head-font);
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  letter-spacing: 0.16em;
  padding: 8px 14px;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.frontier-hud .frontier-hud-window .btn:hover,
body.frontier-hud .frontier-hud-window .wf-module-item .btn:hover,
body.frontier-hud .frontier-hud-window .wf-module-lockout-btn:hover,
body.frontier-hud .frontier-hud-window .camp-btn:hover {
  border-color: var(--hud-bright);
  color: var(--hud-gold-bright);
  text-decoration: none;
}

body.frontier-hud .frontier-hud-window .btn.btn-primary,
body.frontier-hud .frontier-hud-window .wf-module-item .btn.btn-primary,
body.frontier-hud .frontier-hud-window .camp-btn--primary {
  background: linear-gradient(180deg, #a07a3c 0%, #5a3a10 70%, #3a2410 100%);
  border-color: #c8a548;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 1px 0 rgba(255, 210, 140, 0.4) inset,
    0 0 12px rgba(212, 165, 72, 0.18);
  color: #1a1208;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.frontier-hud .wf-chat-dock {
  --chat-bg: var(--hud-inset);
  --chat-panel: var(--hud-panel);
  --chat-wood: var(--hud-panel-2);
  --chat-line: var(--hud-frame);
  --chat-line-strong: var(--hud-mid);
  --chat-gold: var(--hud-gold);
  --chat-amber: var(--hud-copper);
  --chat-ink: var(--hud-paper);
  --chat-muted: var(--hud-muted);
  --chat-soft: var(--hud-dim);
  --chat-red: #b83838;
  bottom: 24px;
  font-family: var(--hud-font);
  right: 18px;
  z-index: 1250;
}

body.frontier-hud .wf-chat-dock button,
body.frontier-hud .wf-chat-dock input {
  font-family: var(--hud-font);
}

body.frontier-hud .wf-chat-tab {
  align-items: center;
  background: linear-gradient(180deg, rgba(60, 40, 20, 0.95), rgba(20, 14, 8, 0.95));
  border: 1px solid var(--hud-bright);
  border-radius: 0;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 210, 140, 0.04) inset;
  color: var(--hud-gold-bright);
  display: inline-flex;
  font-family: var(--hud-head-font);
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.24em;
  line-height: 1;
  min-height: 40px;
  padding: 9px 14px;
  text-shadow: none;
  text-transform: uppercase;
  transform: none;
}

body.frontier-hud .wf-chat-tab::before {
  display: none;
}

body.frontier-hud .wf-chat-tab:hover,
body.frontier-hud .wf-chat-dock.is-open .wf-chat-tab {
  background: linear-gradient(180deg, rgba(65, 44, 22, 0.98), rgba(20, 14, 8, 0.98));
  border-color: var(--hud-gold);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 165, 72, 0.18);
  color: var(--hud-gold-bright);
  transform: none;
}

body.frontier-hud .wf-chat-tab-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  height: auto;
  margin: 0;
  width: auto;
}

body.frontier-hud .wf-chat-tab-icon i {
  display: inline-block;
  font-size: 13px;
}

body.frontier-hud .wf-chat-tab-online,
body.frontier-hud .wf-chat-tab-count,
body.frontier-hud .wf-chat-channel-badge,
body.frontier-hud .wf-chat-mini-badge {
  align-items: center;
  background: var(--chat-red);
  border: 1px solid #2a0c0c;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: var(--hud-mono-font);
  font-size: 9px;
  font-weight: 700;
  height: 16px;
  justify-content: center;
  letter-spacing: 0.05em;
  min-width: 16px;
  padding: 1px 5px;
}

body.frontier-hud .wf-chat-tab-online {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--hud-frame);
  color: var(--hud-bone);
  gap: 4px;
  height: auto;
  margin-left: 0;
  padding: 2px 5px;
}

body.frontier-hud .wf-chat-tab-online.is-empty,
body.frontier-hud .wf-chat-tab-count.is-empty,
body.frontier-hud .wf-chat-channel-badge.is-empty,
body.frontier-hud .wf-chat-mini-badge.is-empty {
  display: none;
}

body.frontier-hud .wf-chat-panel {
  background:
    linear-gradient(180deg, rgba(38, 26, 14, 0.55) 0%, rgba(10, 7, 4, 0.97) 25%, rgba(8, 5, 3, 0.97) 100%);
  border: 1px solid var(--hud-mid);
  border-radius: 0;
  bottom: 62px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.6) inset;
  color: var(--hud-paper);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 460px;
  max-height: calc(100dvh - 118px);
  overflow: hidden;
  right: 0;
  width: min(330px, calc(100vw - 32px));
}

body.frontier-hud .wf-chat-panel::before {
  border: 1px solid var(--hud-frame);
  content: "";
  inset: 3px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

body.frontier-hud .wf-chat-dock.is-popout .wf-chat-panel {
  height: min(620px, calc(100dvh - 72px));
  width: min(460px, calc(100vw - 32px));
}

body.frontier-hud .wf-chat-head {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--hud-frame);
  display: flex;
  gap: 8px;
  min-height: 45px;
  padding: 11px 12px;
  position: relative;
  z-index: 4;
}

body.frontier-hud .wf-chat-current {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--hud-gold-bright);
  display: inline-flex;
  font-family: var(--hud-head-font);
  font-size: 13px;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 0.16em;
  min-width: 0;
  padding: 0;
  text-transform: uppercase;
}

body.frontier-hud .wf-chat-current span {
  max-width: 150px;
}

body.frontier-hud .wf-chat-current i {
  color: var(--hud-gold);
  font-size: 11px;
}

body.frontier-hud .wf-chat-head-actions {
  gap: 8px;
  margin-left: auto;
}

body.frontier-hud .wf-chat-icon-btn,
body.frontier-hud .wf-chat-emoji {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--hud-muted);
  height: 22px;
  width: 22px;
}

body.frontier-hud .wf-chat-icon-btn:hover,
body.frontier-hud .wf-chat-emoji:hover {
  background: transparent;
  color: var(--hud-gold);
}

body.frontier-hud .wf-chat-body {
  background: var(--hud-inset);
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

body.frontier-hud .wf-chat-messages {
  gap: 10px;
  height: 100%;
  padding: 10px 12px;
  scrollbar-color: rgba(212, 165, 72, 0.42) rgba(0, 0, 0, 0.22);
}

body.frontier-hud .wf-chat-day {
  color: var(--hud-muted);
  font-family: var(--hud-head-font);
  font-size: 9.5px;
  gap: 8px;
  letter-spacing: 0.22em;
  margin: 6px 0;
  text-transform: uppercase;
}

body.frontier-hud .wf-chat-day::before,
body.frontier-hud .wf-chat-day::after {
  background: var(--hud-frame);
}

body.frontier-hud .wf-chat-message {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(0, 1fr);
}

body.frontier-hud .wf-chat-avatar,
body.frontier-hud .wf-chat-roster-avatar {
  background: radial-gradient(circle at 30% 30%, #5a3a10, var(--hud-panel-2) 70%);
  border: 1px solid var(--hud-bright);
  border-radius: 50%;
  color: var(--hud-gold);
  height: 22px;
  width: 22px;
}

body.frontier-hud .wf-chat-avatar i {
  font-size: 11px;
}

body.frontier-hud .wf-chat-bubble {
  background: transparent;
  border: 0;
  min-width: 0;
  padding: 0;
}

body.frontier-hud .wf-chat-meta {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
}

body.frontier-hud .wf-chat-name {
  color: var(--hud-green);
  font-family: var(--hud-head-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.frontier-hud .wf-chat-message.is-mine .wf-chat-name,
body.frontier-hud .wf-chat-message.is-system .wf-chat-name {
  color: var(--hud-gold-bright);
}

body.frontier-hud .wf-chat-time {
  color: var(--hud-faint);
  font-family: var(--hud-mono-font);
  font-size: 9.5px;
}

body.frontier-hud .wf-chat-text {
  color: var(--hud-bone);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 1px;
}

body.frontier-hud .wf-chat-compose {
  background: transparent;
  border-top: 1px solid var(--hud-frame);
  display: block;
  padding: 8px 10px;
  position: relative;
  z-index: 3;
}

body.frontier-hud .wf-chat-compose-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 30px;
}

body.frontier-hud .wf-chat-input-wrap {
  min-width: 0;
  position: relative;
}

body.frontier-hud .wf-chat-compose input,
body.frontier-hud .wf-chat-edit-input {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--hud-paper);
  font-family: var(--hud-font);
  font-size: 13px;
  height: 26px;
  outline: none;
  padding: 5px 34px 5px 4px;
  width: 100%;
}

body.frontier-hud .wf-chat-compose input::placeholder {
  color: var(--hud-faint);
}

body.frontier-hud .wf-chat-compose input:focus {
  border: 0;
  box-shadow: none;
}

body.frontier-hud .wf-chat-emoji {
  position: absolute;
  right: 0;
  top: 2px;
}

body.frontier-hud .wf-chat-send {
  background: linear-gradient(180deg, #a07a3c 0%, #5a3a10 100%);
  border: 1px solid var(--hud-gold-deep);
  border-radius: 0;
  color: #1a1208;
  height: 26px;
  width: 30px;
}

body.frontier-hud .wf-chat-send:hover {
  background: linear-gradient(180deg, #c8a548 0%, #7a5a18 100%);
  color: #0c0805;
}

body.frontier-hud .wf-chat-channels {
  background: transparent;
  border-top: 1px solid var(--hud-frame);
  display: flex;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 3;
}

body.frontier-hud .wf-chat-channel {
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--hud-frame);
  border-radius: 0;
  color: var(--hud-muted);
  display: inline-flex;
  flex: 1 1 0;
  font-family: var(--hud-head-font);
  font-size: 9.5px;
  font-weight: 700;
  gap: 5px;
  height: 30px;
  justify-content: center;
  letter-spacing: 0.16em;
  min-width: 0;
  padding: 6px;
  text-transform: uppercase;
}

body.frontier-hud .wf-chat-channel i {
  color: inherit;
  font-size: 11px;
}

body.frontier-hud .wf-chat-channel:hover {
  color: var(--hud-bone);
}

body.frontier-hud .wf-chat-channel.is-active {
  background: linear-gradient(180deg, rgba(60, 40, 20, 0.7), rgba(20, 14, 8, 0.7));
  border-color: var(--hud-bright);
  box-shadow: none;
  color: var(--hud-gold-bright);
}

body.frontier-hud .wf-chat-popover,
body.frontier-hud .wf-chat-emoji-picker,
body.frontier-hud .wf-chat-react-picker,
body.frontier-hud .wf-chat-mention-dropdown {
  background: rgba(18, 10, 4, 0.98);
  border: 1px solid var(--hud-mid);
  border-radius: 0;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.56);
  color: var(--hud-paper);
}

body.frontier-hud .frontier-hud-window.page-camp .frontier-hud-window-body {
  padding: 0;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-shell {
  --camp-border: var(--hud-mid);
  --camp-border-soft: var(--hud-frame);
  --camp-border-strong: var(--hud-bright);
  --camp-surface: linear-gradient(180deg, rgba(38, 26, 14, 0.55) 0%, rgba(10, 7, 4, 0.97) 25%, rgba(8, 5, 3, 0.97) 100%);
  --camp-surface-inset: rgba(0, 0, 0, 0.28);
  --camp-kicker: var(--hud-muted);
  --camp-title: var(--hud-paper);
  --camp-ink: var(--hud-bone);
  --camp-ink-soft: rgba(224, 207, 174, 0.7);
  --camp-accent: var(--hud-gold);
  --camp-accent-soft: rgba(212, 165, 72, 0.18);
  background: var(--camp-surface);
  border-color: var(--hud-mid);
  border-radius: 0;
  border-top: 0;
  box-shadow: none;
  font-family: var(--hud-font);
  margin: 0;
  max-width: none;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-shell-title-wrap {
  display: none;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-shell-header {
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--hud-frame);
  min-height: 0;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-tabs {
  padding: 10px 14px 0;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-tab {
  border-bottom-width: 2px;
  color: var(--hud-muted);
  font-family: var(--hud-head-font);
  font-size: 10.5px;
  gap: 8px;
  letter-spacing: 0.22em;
  padding: 12px 16px;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-tab:hover,
body.frontier-hud .frontier-hud-window.page-camp .camp-tab.is-active {
  color: var(--hud-gold-bright);
}

body.frontier-hud .frontier-hud-window.page-camp .camp-tab.is-active {
  border-bottom-color: var(--hud-gold);
}

body.frontier-hud .frontier-hud-window.page-camp .camp-shell-body {
  padding: 16px;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--hud-frame);
  border-radius: 0;
}

body.frontier-hud .frontier-hud-window.page-camp .camp-card-head {
  background: rgba(0, 0, 0, 0.22);
  border-bottom-color: var(--hud-frame);
}

body.frontier-hud .frontier-hud-window.page-camp .camp-card-head h3,
body.frontier-hud .frontier-hud-window.page-camp .camp-radar-dominant strong {
  color: var(--hud-paper);
  font-family: var(--hud-title-font);
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .frontier-hud-window {
    border-radius: 8px;
    height: calc(100vh - 80px) !important;
    left: 8px !important;
    min-width: 0;
    top: 8px !important;
    width: calc(100vw - 16px) !important;
  }

  .frontier-hud-map-tools {
    bottom: 84px;
    left: 12px;
    right: auto;
  }

  .frontier-hud-radar {
    right: 10px;
    top: 10px;
    width: 132px;
  }

  .frontier-hud-runtime.travel-runtime {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
  }

  body.frontier-hud .frontier-hud-brand {
    top: 8px;
  }

  body.frontier-hud .frontier-hud-wordmark {
    gap: 0;
    max-width: calc(100vw - 168px);
  }

  body.frontier-hud .frontier-hud-wordmark strong {
    font-size: 28px;
    max-width: calc(100vw - 168px);
  }

  body.frontier-hud .frontier-hud-flourish {
    display: none;
  }

  body.frontier-hud .frontier-hud-location-plate {
    max-width: calc(100vw - 168px);
    min-width: 0;
    padding: 5px 16px 7px;
  }

  body.frontier-hud .frontier-hud-location-name {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  body.frontier-hud .frontier-hud-location-meta {
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  body.frontier-hud .frontier-hud-game-nav {
    bottom: 96px;
    max-width: calc(100vw - 24px);
  }

  body.frontier-hud .frontier-hud-game-nav .game-nav-list {
    min-height: 72px;
    padding: 5px 10px;
  }

  body.frontier-hud .frontier-hud-game-nav .game-nav-item a {
    min-width: 70px;
  }

  body.frontier-hud .wf-chat-dock {
    bottom: 16px;
    right: 10px;
  }

  body.frontier-hud .wf-chat-panel {
    bottom: 56px;
    max-height: calc(100dvh - 88px);
  }
}
