:root {
  --bg: #07080a;
  --bg2: #12160e;
  --card: rgba(16, 16, 12, 0.78);
  --line: #3d3420;
  --ink: #f4efe4;
  --muted: #9a917c;
  --accent: #d4b06a;
  --accent2: #c4783a;
  --danger: #d4534c;
  --ok: #d4b06a;
  --display: "Be Vietnam Pro", "Manrope", sans-serif;
  --brand: "Cinzel", "Be Vietnam Pro", serif;
  --body: "Be Vietnam Pro", "Manrope", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 var(--body);
  color: var(--ink);
  background: var(--bg);
}
.bg-world {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.bg-world::before {
  content: "";
  position: absolute; inset: -6%;
  background: url(/map.webp) center 40% / cover no-repeat;
  filter: saturate(1.25) brightness(.78) contrast(1.06);
}
.bg-world::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 52% at 50% 30%, rgba(212, 176, 106, .10), transparent 58%),
    linear-gradient(180deg, rgba(7, 8, 10, .18) 0%, rgba(7, 8, 10, .36) 52%, rgba(7, 8, 10, .72) 100%);
}
.bg-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, .42) 100%);
}
.bg-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .035;
  background-image: radial-gradient(rgba(244, 239, 228, .55) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
}
.bg3d {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
}
.masthead, .topbar, .hero, main, .overlay, .site-foot { position: relative; z-index: 1; }

.masthead {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 7px 20px;
  background: #050608;
  border-bottom: 1px solid rgba(212, 176, 106, .22);
  color: #c9b88a;
  font: 600 10px/1 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.masthead i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: .7;
}

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(212, 176, 106, .18);
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 10, .78);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; display: block; overflow: hidden;
  background: #000; border-radius: 50%;
  border: 1px solid rgba(212, 176, 106, 0.45);
  box-shadow: 0 0 16px rgba(212, 176, 106, .18);
  flex: 0 0 auto;
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.brand strong { display: block; font: 700 13px/1.1 var(--brand); letter-spacing: .16em; }
.brand em { font-style: normal; color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav button {
  background: transparent; border: 0; color: var(--muted);
  font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.nav button.on, .nav button:hover { color: var(--ink); background: rgba(212, 176, 106, .14); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: 700 12px var(--body); letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
}

.hero, main { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.kicker {
  margin: 0 0 8px; color: var(--accent);
  font: 700 12px var(--body); letter-spacing: .22em; text-transform: uppercase;
}
h1 {
  margin: 0 0 12px; font: 800 clamp(2.1rem, 5vw, 3.6rem)/1.05 var(--display);
  letter-spacing: -.02em;
}
h1 span { display: block; color: var(--accent2); text-transform: uppercase; letter-spacing: .04em; }
.lede { max-width: 560px; color: var(--muted); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }

.seal {
  width: 128px; height: 128px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(212, 176, 106, .45);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .35), 0 0 40px rgba(212, 176, 106, .22);
  background: #000;
}
.seal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seal-lg { width: 120px; height: 120px; }
.seal-sm { width: 88px; height: 88px; margin: 0; }
.brand-word {
  margin: 0 0 6px; text-align: center;
  font: 700 15px var(--brand); letter-spacing: .32em; color: var(--accent);
}
.brand-line {
  margin: 0 0 22px; text-align: center;
  color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.brand-screen { position: relative; z-index: 1; }
.brand-card {
  position: relative;
  max-width: 440px; width: 100%;
  padding: 36px 28px 28px; text-align: center;
  background: rgba(10, 10, 8, .78);
  border: 1px solid rgba(212, 176, 106, .28);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.brand-card h2 { margin: 0 0 16px; font: 800 1.6rem var(--display); }
.brand-card form { display: grid; gap: 10px; text-align: left; }
#login.hero, #link.hero { max-width: 1080px; padding-top: 28px; }
#login.login-split {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(320px, 1fr);
  grid-template-areas:
    "panel stage"
    "tiles tiles";
  align-items: stretch;
  gap: 22px;
}
#login.login-split .login-panel { max-width: none; grid-area: panel; }
#login.login-split .login-stage { grid-area: stage; }
#login.login-split .login-tiles { grid-area: tiles; }
.login-stage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(212, 176, 106, .34);
  border-radius: 8px;
  background: #0c100c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(212, 176, 106, .12);
}
.login-stage-fx {
  position: absolute;
  inset: -8%;
  animation: stage-roar-shake 6.5s ease-in-out infinite;
}
.login-stage-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 46% 58%;
  display: block;
}
.login-stage-art.is-idle {
  animation: stage-pan 18s ease-in-out infinite alternate;
}
.login-stage-art.is-roar {
  opacity: 0;
  animation: stage-roar 6.5s ease-in-out infinite;
}
@keyframes stage-pan {
  from { transform: scale(1.02) translate3d(-0.8%, 0, 0); }
  to { transform: scale(1.06) translate3d(0.8%, 0.6%, 0); }
}
@keyframes stage-roar {
  0%, 62%, 100% { opacity: 0; }
  68% { opacity: 1; }
  82% { opacity: 1; }
  90% { opacity: 0; }
}
@keyframes stage-roar-shake {
  0%, 66%, 92%, 100% { transform: translate3d(0, 0, 0); }
  68% { transform: translate3d(-6px, 3px, 0) scale(1.03); }
  71% { transform: translate3d(7px, -4px, 0) scale(1.045); }
  74% { transform: translate3d(-5px, 2px, 0) scale(1.04); }
  78% { transform: translate3d(4px, -2px, 0) scale(1.025); }
  84% { transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .login-stage-fx, .login-stage-art.is-idle, .login-stage-art.is-roar { animation: none; }
  .login-stage-art.is-roar { display: none; }
}
.login-panel {
  position: relative;
  z-index: 2;
  padding: 28px 24px 24px;
  background: #12110c;
  border: 1px solid rgba(212, 176, 106, .4);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(212, 176, 106, .14);
}
.login-panel::before, .login-panel::after,
.brand-card::before, .brand-card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--accent);
  pointer-events: none;
}
.login-panel::before, .brand-card::before {
  top: 10px; left: 10px; border-style: solid; border-width: 2px 0 0 2px;
}
.login-panel::after, .brand-card::after {
  bottom: 10px; right: 10px; border-style: solid; border-width: 0 2px 2px 0;
}
.login-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 22px;
}
.login-identity { text-align: center; padding: 0; }
.login-action { text-align: center; }
.login-action h1 { text-align: center; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.login-action .lede { margin-left: auto; margin-right: auto; }
.login-action .hero-actions { justify-content: center; margin-bottom: 12px; }
.manifesto {
  max-width: 320px; margin: 0 auto 8px;
  color: var(--muted); font-size: 13px; line-height: 1.55;
}
.gold-rule {
  display: block; width: 84px; height: 2px; margin: 0 auto 22px; border: 0;
  background: linear-gradient(90deg, transparent, #d4b06a, transparent);
}
.gold-rule-left {
  margin: 0 0 18px;
  background: linear-gradient(90deg, #d4b06a, transparent);
}
.login-lead { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.login-lead .lede { margin-left: auto; margin-right: auto; }
.login-lead h1 { text-align: center; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.login-lead .hero-actions { justify-content: center; }
.login-tiles { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
#login.login-split .login-tiles { grid-template-columns: repeat(3, 1fr); }
.login-tiles article {
  background: linear-gradient(180deg, rgba(40, 32, 18, .78), rgba(14, 12, 8, .9));
  border-color: rgba(212, 176, 106, .42);
  border-radius: 8px;
}
.page-head { margin-bottom: 8px; }
.page-head .gold-rule { margin-left: 0; }
.tile-n {
  display: block; margin-bottom: 8px;
  font: 800 11px var(--display); letter-spacing: .18em; color: var(--accent);
}
.login-lead .btn, .login-action .btn { min-width: 240px; padding: 14px 28px; font-size: 15px; }
.btn:hover { filter: brightness(1.08); }
.home-crest {
  display: flex; align-items: center; gap: 22px;
  margin: 0 0 8px;
}
.home-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  text-transform: none; letter-spacing: -.02em;
}
.home-title span { display: inline; color: var(--accent); }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #1a1408;
  font: 700 14px var(--body); letter-spacing: .04em; text-decoration: none;
  box-shadow: 0 0 20px rgba(212, 176, 106, .18);
}
.btn.ghost, button.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn.danger { background: var(--danger); color: #fff; }
.pill {
  border: 1px solid rgba(212, 176, 106, .4); color: #e6d3a4;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .08em;
}

.feature-grid, .split, .stat-row { display: grid; gap: 14px; }
.feature-grid { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
.feature-grid.login-tiles { grid-template-columns: repeat(3, 1fr); }
.feature-grid article, .panel, .stat {
  background: rgba(24, 21, 14, 0.9);
  border: 1px solid rgba(212, 176, 106, .26);
  border-radius: 8px; padding: 20px;
}
.feature-grid.clickable article { cursor: pointer; transition: border-color .15s, transform .15s; }
.feature-grid.clickable article:hover,
.login-tiles article {
  border-color: rgba(212, 176, 106, .22);
}
.feature-grid.clickable article:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.feature-grid small, .panel small {
  color: var(--accent2); letter-spacing: .16em; font-size: 11px; font-weight: 700;
}
.feature-grid h3, .panel h3 { margin: 8px 0; font: 700 1.2rem var(--display); }
.feature-grid p, .hint { color: var(--muted); margin: 0; }
.stat-row { grid-template-columns: repeat(3, 1fr); align-items: stretch; margin: 20px 0 28px; }
.stat small { display: block; color: var(--muted); letter-spacing: .12em; font-size: 11px; }
.stat b { font: 700 1.15rem var(--display); }

.split { grid-template-columns: 1fr 1.2fr; }
.split.wide { grid-template-columns: 1.3fr 0.9fr; }
.dino3d { width: 100%; height: 360px; border-radius: 14px; overflow: hidden; background: #081620; }
body.map-open { overflow: hidden; }
body.map-open .masthead,
body.map-open .site-foot,
body.map-open .bg-world,
body.map-open .bg-vignette,
body.map-open .bg-grain,
body.map-open .bg3d { display: none; }
body.map-open main {
  max-width: none;
  width: 100%;
  padding: 10px 14px 12px;
  height: calc(100vh - 73px);
  display: flex;
  flex-direction: column;
}
body.map-open #view-map.map-page:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 8px;
}
.map-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px 28px;
  flex-wrap: wrap;
}
.map-toolbar-title h1 { margin: 0; }
.map-toolbar-stats {
  display: flex; gap: 22px; margin-left: auto;
}
.map-toolbar-stats span { display: flex; flex-direction: column; gap: 2px; }
.map-toolbar-stats small {
  color: var(--muted); letter-spacing: .1em; font-size: 10px;
  text-transform: uppercase; font-weight: 700;
}
.map-toolbar-stats b { font: 700 1.05rem var(--display); }
.map-toolbar #mapStatus { margin: 0; flex: 1 1 220px; min-width: 0; }
body.map-open #toast { display: none; }
.map-workspace {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
}
.map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 360px;
  height: 100%;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #061018;
}
#liveMap,
#liveMap.leaflet-container {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background: #061018 !important;
  cursor: crosshair;
}
.poi-tip { background: #0b1c28; border: 1px solid #1d3d4e; color: #e8f4f7; }
.heading-arrow { background: none !important; border: 0 !important; }
.heading-arrow span {
  display: block;
  width: 12px;
  height: 20px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 2px #061018);
}
.heading-arrow span svg { display: block; width: 100%; height: 100%; }
.grid-col, .grid-row, .grid-pin { background: none !important; border: 0 !important; }
.grid-col span, .grid-row span {
  display: block;
  color: #f4f7fb;
  font: 700 13px Manrope, sans-serif;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px #000, 0 0 8px #061018;
  white-space: nowrap;
  pointer-events: none;
}
.grid-row span { font-size: 12px; text-align: right; min-width: 16px; }
.grid-pin span {
  display: inline-block;
  transform: translate(14px, -32px);
  padding: 5px 10px;
  border-radius: 7px;
  background: #0b1c28f2;
  border: 1px solid #d7e6f2;
  color: #f7f3ea;
  font: 800 15px Syne, Manrope, sans-serif;
  letter-spacing: .08em;
  box-shadow: 0 2px 12px #0009;
  pointer-events: none;
  white-space: nowrap;
}
.map-name { background: none !important; border: 0 !important; }
.map-name span {
  display: block;
  transform: translate(-50%, -50%);
  font: 800 15px Segoe UI, Manrope, sans-serif;
  letter-spacing: .03em;
  text-shadow: 0 0 4px #000, 0 1px 3px #000, 0 0 12px #000c;
  white-space: nowrap;
  pointer-events: none;
}
.map-name-region span { font-size: 15px; color: #fff; }
.map-name-outpost span { font-size: 12px; font-weight: 700; }
.map-name-lake span { font-size: 11px; font-weight: 700; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.you { background: #e23b3b; }
.dot.friend { background: #f48fb1; }
.dot.ai { background: #d4b46a; }
.dot.sanc { background: #d7b85a; }
.dot.mig { background: #6eb6d8; }
.dot.patrol { background: #c9a27a; }
.map-page h1 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: .04em;
  color: var(--ink);
  text-transform: none;
}
.map-page .kicker { margin: 0 0 4px; color: var(--accent); }
.map-layers {
  flex: 0 0 232px;
  width: 232px;
  align-self: stretch;
  padding: 14px 16px 12px;
  background: rgba(8, 10, 12, 0.94);
  border: 1px solid #c9a44a;
  border-radius: 8px;
  overflow: auto;
}
.map-layers h4 {
  margin: 0 0 12px;
  font: 700 12px Syne, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; color: #e8c547;
}
.map-layers-body { display: flex; flex-direction: column; gap: 2px; }
.map-layers label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  margin: 0;
  padding: 5px 0;
  color: #f4f1ea; font: 600 13px Manrope, sans-serif;
  cursor: pointer; letter-spacing: 0;
}
.map-layers input[type="checkbox"] {
  appearance: checkbox !important; -webkit-appearance: checkbox !important;
  width: 16px !important; max-width: 16px !important; height: 16px !important;
  padding: 0 !important; margin: 0 !important;
  flex: 0 0 16px !important;
  accent-color: #c9a44a;
  cursor: pointer;
}
.map-layers .layer-sep {
  border: 0; border-top: 1px solid rgba(201, 164, 74, 0.28);
  margin: 8px 0;
  width: 100%;
}
.map-layers .layer-mig { color: #78b4e6; }
.map-layers .layer-sanc { color: #bee664; }
.map-layers .layer-patrol { color: #f07882; }
.map-layers .layer-regions { color: #f4f1ea; }
.map-layers .layer-outposts { color: #fbbf24; }
.map-layers .layer-lakes { color: #80eaff; }
.map-layers .layer-wall { color: #ff6b6b; }
.map-layers .layer-mud { color: #c48a4a; }
.map-layers .layer-water { color: #4aa7e8; }
.map-layers .layer-quarry { color: #c5c0b4; }
.map-layers .layer-note {
  margin: 2px 0 8px;
  color: #8a8374;
  font: 500 11px Manrope, sans-serif;
}
.map-layers .layer-count, .map-layers .layer-meta b {
  margin-left: auto; min-width: 22px; padding: 1px 7px;
  border-radius: 99px; background: #1a1610; color: #e8c547;
  font: 700 11px Manrope, sans-serif; text-align: center;
}
.map-layers .layer-meta {
  display: flex; align-items: center; gap: 8px;
  margin: 0; color: #cfc6b0; font: 600 12px Manrope, sans-serif;
}
.map-layers #btnFitMap,
.map-layers #btnCenterMe {
  width: 100%; margin-top: 8px; padding: 8px 10px; font-size: 12px;
  border-color: #c9a44a; color: #f3e6c0;
}
.map-layers #btnCenterMe { margin-top: 6px; }
#mapStatus { margin: 0; min-height: 1.3em; }
.steps { padding: 0; list-style: none; display: grid; gap: 12px; margin: 0 0 24px; }
.steps li {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.steps b { color: var(--accent); font: 800 18px var(--display); }
.code-row { display: flex; gap: 10px; max-width: 480px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #081620; color: var(--ink);
  font: 600 15px var(--body); letter-spacing: .08em;
}
#linkCode { text-transform: uppercase; }

.vitals { display: grid; gap: 11px; margin-top: 14px; }
.vital { display: grid; grid-template-columns: 72px 1fr 42px; align-items: center; gap: 8px; }
.vital span { font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.vital b { font: 700 12px var(--body); text-align: right; color: var(--text); }
.vital .track { height: 7px; background: #081820; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.vital .track i { display: block; height: 100%; width: 0; border-radius: 99px; }
.vital .track i.hp { background: #e23b3b; }
.vital .track i.stam { background: #f5d061; }
.vital .track i.thirst { background: #4aa7e8; }
.vital .track i.hunger { background: #e08a3c; }
.vital .track i.growth { background: #3ecfbf; }
.live-meta { margin: 0 0 4px; color: var(--text); font: 600 15px var(--body); }
.prime-panel { margin: 0 0 20px; }
.quest-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.quest-list li { color: var(--muted); font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #081620; }
.quest-list li.done { color: #d4b06a; border-color: rgba(212,176,106,.35); }

.slots { display: grid; gap: 10px; margin-top: 12px; }
.slot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px; background: #081620; border: 1px solid var(--line); border-radius: 12px;
}
.slot b { font-family: var(--display); color: var(--accent); }
.slot .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.slot .acts button {
  border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer;
  background: var(--accent); color: #041014; font: 700 12px var(--body);
}
.slot .acts button.danger { background: var(--danger); color: #fff; }

.skin-grid { display: grid; grid-template-columns: 1fr 140px; gap: 12px; margin-bottom: 16px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
input[type="color"] { height: 46px; padding: 4px; cursor: pointer; }
.swatch {
  height: 220px; border-radius: 16px;
  background: linear-gradient(145deg, #3ecfbf, #1a5c68);
  border: 1px solid var(--line);
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.toast { min-height: 1.4em; color: var(--accent); margin-top: 18px; }
.hidden { display: none !important; }
.overlay {
  min-height: 70vh; display: grid; place-items: center; padding: 40px 16px;
}
.overlay .panel { max-width: 420px; width: 100%; }

.prof-h2 {
  margin: 0 0 14px;
  font: 800 1.6rem var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.combat-row { margin: 0 0 18px; }
.kda-track {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: #081620;
  border: 1px solid var(--line);
  overflow: hidden;
}
.kda-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #e8d39a);
}
.surv-list { display: grid; gap: 8px; margin-top: 12px; }
.surv-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 14px;
  background: #081620;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.surv-row b { font: 700 14px var(--display); color: var(--ink); }
.surv-row .surv-meta { color: var(--muted); font-size: 12px; }
.surv-row .surv-cause { grid-column: 1 / -1; color: var(--accent2); font-size: 13px; }
.surv-row .surv-meta:nth-child(3) { grid-column: 1 / -1; }
.surv-row.alive .surv-cause { color: var(--muted); }

.site-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1100px; margin: 0 auto; padding: 22px 24px 36px;
  border-top: 1px solid rgba(212, 176, 106, .18);
  color: var(--muted); font-size: 12px; letter-spacing: .06em;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(212, 176, 106, .4);
}
.foot-brand strong {
  display: block; color: var(--ink);
  font: 700 12px var(--brand); letter-spacing: .16em;
}
.foot-brand span { color: var(--muted); }
.foot-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-meta a { color: var(--accent); text-decoration: none; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 860px) {
  .feature-grid, .split, .stat-row, .quest-list, .login-tiles, .login-deck,
  .feature-grid.login-tiles, #login.login-split { grid-template-columns: 1fr; }
  #login.login-split {
    grid-template-areas:
      "panel"
      "stage"
      "tiles";
  }
  .login-stage { min-height: 280px; height: 320px; }
  .login-action { text-align: center; }
  .login-action h1 { text-align: center; }
  .login-action .lede { margin-left: auto; margin-right: auto; }
  .login-action .hero-actions { justify-content: center; }
  .login-panel { padding: 28px 18px 22px; }
  .masthead { flex-wrap: wrap; gap: 8px 12px; letter-spacing: .12em; }
  .site-foot { flex-direction: column; align-items: flex-start; }
  .nav { display: none; }
  .nav.open { display: flex; flex-wrap: wrap; width: 100%; }
  .nav-toggle:not(.hidden) { display: inline-flex; }
  .who { margin-left: 0; }
  .topbar { flex-wrap: wrap; }
  .home-crest { flex-direction: column; align-items: flex-start; }
  .seal-lg { width: 132px; height: 132px; }
  body.map-open { overflow: auto; }
  body.map-open main { height: auto; }
  .map-workspace { flex-direction: column; }
  .map-layers { flex: none; width: 100%; max-width: none; align-self: stretch; }
  .map-layers-body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
  }
  .map-layers .layer-sep { display: none; }
  .map-layers .layer-meta { width: 100%; }
  .map-layers #btnFitMap,
  .map-layers #btnCenterMe { width: auto; flex: 1 1 140px; margin-top: 4px; }
  .map-wrap { height: min(78vh, 720px); min-height: 420px; background: #061018; }
  .map-toolbar-stats { margin-left: 0; }
}
