:root {
  color-scheme: dark;
  --bg: #0e1210;
  --surface: #151a17;
  --surface-2: #1c231f;
  --surface-3: #242c27;
  --text: #f4f2e9;
  --muted: #a9b0aa;
  --line: #343d37;
  --accent: #b7c95b;
  --accent-strong: #d4e875;
  --accent-ink: #11160f;
  --warm: #d7a851;
  --danger: #e16b5d;
  --sky: #55c9cf;
  --pda-green: #9ec77f;
  --pda-amber: #d8b764;
  --pda-cyan: #79b8b7;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#systems,
#factions,
#missions,
#progress,
#cabinet,
#community,
#serverFacts {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

button {
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.topbar {
  min-height: 74px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(13, 17, 15, 0.92);
  backdrop-filter: blur(16px);
}

.topbar > *,
.portal > * {
  min-width: 0;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  border: 1px solid var(--line);
  object-fit: cover;
}

.filter-control,
.metric-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dashboard-tab,
.filter-button,
.metric-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter-button.is-active,
.metric-button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--text);
}

.account-button,
.primary-button,
.secondary-button,
.portal-enter,
.action-button,
.buy-button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-ink);
  background: var(--accent);
  cursor: pointer;
  font-weight: 850;
}

.account-button {
  justify-self: end;
  padding: 0 18px;
}

.account-button:hover,
.primary-button:hover,
.portal-enter:hover,
.action-button:hover,
.buy-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.secondary-button:hover {
  border-color: var(--accent);
}

.portal {
  min-height: calc(100svh - 138px);
  padding: clamp(48px, 9vh, 96px) max(20px, calc((100vw - var(--max)) / 2)) 54px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: url("/assets/dayz-hero.png");
  background-position: center;
  background-size: cover;
}

.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 8, 7, 0.88) 0%, rgba(5, 8, 7, 0.63) 42%, rgba(5, 8, 7, 0.12) 76%);
}

.portal-copy {
  width: min(690px, 100%);
  text-align: left;
  text-shadow: 0 2px 24px #000;
}

.portal-copy h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(66px, 9vw, 142px);
  line-height: 0.86;
  letter-spacing: 0;
}

.portal-copy p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-enter {
  width: auto;
  max-width: 100%;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-connect {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(9, 13, 11, 0.55);
  backdrop-filter: blur(8px);
}

.hero-monitor {
  width: min(530px, 100%);
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 10px #000;
}

.hero-monitor div {
  min-width: 0;
  display: grid;
}

.hero-monitor small {
  color: #d7ddd8;
}

.hero-monitor strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.hero-monitor code {
  color: #e4e7e2;
  font-size: 12px;
}

.server-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.steam-glyph {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.steam-glyph::after {
  content: "";
  width: 8px;
  height: 2px;
  position: absolute;
  left: -7px;
  top: 9px;
  background: currentColor;
  transform: rotate(28deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  color: #fff;
  text-decoration: none;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 8px #000;
}

.portal-details {
  min-height: 134px;
  padding: 24px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.portal-details > div {
  min-width: 0;
  padding: 8px 26px;
  display: grid;
  gap: 5px;
}

.portal-details > div:first-child {
  padding-left: 0;
}

.portal-details > div + div {
  border-left: 1px solid var(--line);
}

.portal-details strong {
  font-size: 20px;
}

.portal-details span {
  color: var(--muted);
  font-size: 13px;
}

.portal-details h2,
.section-heading h2,
.leader-heading h2,
.feature-panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.portal-details p:not(.kicker) {
  color: var(--muted);
  line-height: 1.55;
}

.primary-button {
  padding: 0 20px;
}

.trust-band {
  padding: 58px max(20px, calc((100vw - var(--max)) / 2)) 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.trust-intro,
.community-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.trust-intro h2,
.community-band h2,
.trust-point h3 {
  margin: 0;
  letter-spacing: 0;
}

.trust-intro h2,
.community-band h2 {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.trust-intro > p,
.community-band p,
.trust-point p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.trust-points {
  margin: 42px 0 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-point {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 38px) 32px;
}

.trust-point + .trust-point {
  border-left: 1px solid var(--line);
}

.trust-point > span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.trust-point h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.feature-list .trust-point:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.feature-list .trust-point:nth-child(3n + 1) {
  border-left: 0;
}

.faction-section {
  margin: 16px 0 64px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.faction-section > header h2,
.account-pitch h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.faction-paths {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faction-paths article {
  min-width: 0;
  padding: clamp(28px, 5vw, 56px);
}

.faction-paths article + article {
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.faction-paths span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.faction-paths h3 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.faction-paths p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.faction-paths strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.account-pitch {
  margin-bottom: 64px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.account-pitch p:last-child {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-pitch .primary-button {
  padding: 0 22px;
}

.community-band {
  margin-top: 72px;
  padding-top: 64px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.community-band > div > h2 + p {
  margin-top: 14px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.social-link {
  min-width: 0;
  min-height: 94px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 5px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.social-link + .social-link {
  border-left: 1px solid var(--line);
}

.social-link:hover {
  color: var(--accent-ink);
  background: var(--accent);
}

.social-link span {
  color: var(--muted);
  font-size: 13px;
}

.social-link:hover span {
  color: var(--accent-ink);
}

a.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.landing-content {
  overflow: hidden;
}

.landing-manifesto {
  padding-bottom: 64px;
}

.manifesto-copy {
  max-width: 660px;
}

.manifesto-copy p + p {
  margin-top: 18px;
}

.section-lead {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-image {
  min-height: 320px;
  margin: 34px 0 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line);
  background: var(--surface);
}

.story-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.story-image figcaption {
  min-height: 96px;
  padding: 32px 34px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(6, 9, 7, 0.94), rgba(6, 9, 7, 0));
  text-shadow: 0 2px 10px #000;
}

.story-image figcaption span {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-image figcaption strong {
  max-width: 680px;
  font-size: 18px;
  text-align: right;
}

.feature-checks,
.account-features {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.feature-checks li,
.account-features li {
  padding: 12px 0 12px 24px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #d8ddd9;
  line-height: 1.45;
}

.feature-checks li::before,
.account-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 18px;
  left: 0;
  background: var(--accent);
}

.faction-free {
  box-shadow: inset 4px 0 0 var(--warm);
}

.faction-adventurer {
  box-shadow: inset 4px 0 0 var(--sky);
}

.rank-road {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-road > div {
  min-width: 0;
  min-height: 146px;
  padding: 20px 16px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.rank-road > div + div {
  border-left: 1px solid var(--line);
}

.rank-road span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.rank-road strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.rank-road small {
  color: var(--muted);
  line-height: 1.4;
}

.rank-road > div:nth-child(n + 5) span {
  color: var(--warm);
}

.rank-note {
  max-width: 920px;
  margin: 20px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  line-height: 1.65;
}

.mission-showcase,
.progression-section,
.hunt-section,
.world-systems,
.audience-section {
  margin-top: 78px;
  padding-top: 68px;
  border-top: 1px solid var(--line);
}

.split-heading,
.audience-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 70px;
  align-items: end;
}

.split-heading h2,
.progression-section h2,
.hunt-section h2,
.world-systems h2,
.audience-section h2 {
  max-width: 820px;
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.split-heading > p,
.audience-section > div p,
.hunt-copy > p:last-child,
.world-systems > header > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.audience-section > div p + p {
  margin-top: 18px;
}

.mission-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission-types article {
  min-width: 0;
  min-height: 250px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mission-types article:nth-child(even) {
  background: var(--surface);
}

.mission-types span,
.systems-ledger article > span,
.hunt-sides span,
.world-systems article > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.mission-types h3,
.systems-ledger h3,
.hunt-sides h3,
.world-systems h3 {
  margin: 14px 0 12px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.mission-types p,
.systems-ledger p,
.hunt-sides p,
.world-systems article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.mission-flow {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.mission-flow > div {
  min-width: 0;
  min-height: 116px;
  padding: 22px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  align-items: start;
}

.mission-flow > div + div {
  border-left: 1px solid var(--line);
}

.mission-flow span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.mission-flow strong {
  display: block;
  margin-bottom: 4px;
}

.mission-flow small {
  color: var(--muted);
  line-height: 1.45;
}

.systems-ledger {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.systems-ledger article {
  min-width: 0;
  padding: 34px;
}

.systems-ledger article + article {
  border-left: 1px solid var(--line);
}

.systems-ledger article:nth-child(2) {
  background: var(--surface);
}

.systems-ledger ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.systems-ledger li {
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #d8ddd9;
  font-size: 14px;
}

.systems-ledger article > small {
  margin-top: 18px;
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.mastery-demo {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mastery-demo > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mastery-demo > div span {
  color: var(--muted);
  font-size: 13px;
}

.mastery-demo > i {
  height: 8px;
  margin-top: 12px;
  display: block;
  overflow: hidden;
  background: #29312c;
}

.mastery-demo > i b {
  width: 64%;
  height: 100%;
  display: block;
  background: var(--accent);
}

.hunt-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 46px;
}

.hunt-copy {
  align-self: end;
}

.hunt-copy > p:last-child {
  margin-top: 18px;
}

.hunt-section > .story-image {
  min-height: 420px;
  margin: 0;
  aspect-ratio: 16 / 10;
}

.hunt-sides {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hunt-sides article {
  min-width: 0;
  padding: 30px 34px;
}

.hunt-sides article + article {
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.world-systems > header {
  max-width: 860px;
}

.world-systems > header > p:last-child {
  margin-top: 18px;
}

.world-systems > div {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.world-systems article {
  min-width: 0;
  padding: 32px;
}

.world-systems article + article {
  border-left: 1px solid var(--line);
}

.account-pitch-expanded {
  margin-top: 78px;
  padding: 48px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 56px;
}

.account-pitch-copy > p:not(.kicker) {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.account-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.account-features li:nth-child(even) {
  margin-left: 20px;
}

.account-pitch-copy > small {
  max-width: 630px;
  margin-top: 14px;
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.terminal-preview {
  min-height: 390px;
  padding: 22px;
  border: 1px solid #52736a;
  background-color: #09110d;
  background-image:
    linear-gradient(rgba(121, 184, 183, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 184, 183, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: inset 0 0 50px rgba(53, 105, 82, 0.18);
}

.terminal-preview header,
.terminal-preview footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--pda-cyan);
  font-size: 10px;
  font-weight: 900;
}

.terminal-preview header {
  padding-bottom: 16px;
  border-bottom: 1px solid #40594f;
}

.terminal-preview header b {
  color: var(--pda-green);
}

.terminal-preview > div {
  min-height: 63px;
  padding: 13px 0;
  display: grid;
  gap: 6px;
  border-bottom: 1px solid rgba(121, 184, 183, 0.22);
}

.terminal-preview > div span {
  color: var(--pda-cyan);
  font-size: 10px;
}

.terminal-preview > div strong {
  color: #e0f0e4;
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
}

.terminal-preview footer {
  padding-top: 18px;
}

.community-actions {
  margin-top: 24px;
}

.community-actions .primary-button {
  padding: 0 22px;
}

.dashboard {
  width: min(var(--max), calc(100% - 40px));
  margin: 28px auto 72px;
  padding: 0 26px 34px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #536259;
  border-top: 4px solid #69786f;
  border-radius: 3px;
  background-color: #0b110e;
  background-image:
    linear-gradient(rgba(121, 184, 183, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 184, 183, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52), inset 0 0 70px rgba(53, 77, 61, 0.2);
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(173, 216, 185, 0.025) 3px 4px);
}

.dashboard > :not(.pda-scan) {
  position: relative;
  z-index: 1;
}

.dashboard.is-entering {
  animation: pda-boot 460ms ease-out both;
}

.pda-scan {
  height: 2px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--pda-green);
  box-shadow: 0 0 18px var(--pda-green);
  opacity: 0;
}

.dashboard.is-switching .pda-scan {
  animation: pda-scan 420ms ease-out;
}

.pda-statusbar {
  min-height: 58px;
  margin: 0 -26px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #4a5b51;
  background: #111a15;
}

.pda-device,
.pda-telemetry {
  display: flex;
  align-items: center;
}

.pda-device {
  min-width: 0;
  gap: 11px;
}

.pda-device div {
  min-width: 0;
  display: grid;
}

.pda-device strong {
  color: var(--pda-green);
  font-size: 12px;
}

.pda-device small,
.pda-telemetry {
  color: #819188;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
}

.pda-signal {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--pda-green);
  box-shadow: 0 0 12px var(--pda-green);
  animation: signal-pulse 2.2s ease-in-out infinite;
}

.pda-signal.is-offline {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
}

.pda-telemetry {
  gap: 18px;
  white-space: nowrap;
}

.pda-telemetry span,
.pda-telemetry time {
  padding-left: 18px;
  border-left: 1px solid #3c4b42;
}

.pda-telemetry b {
  color: var(--pda-cyan);
}

.is-hidden {
  display: none !important;
}

.profile-band {
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.identity > div {
  min-width: 0;
}

.avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 30px;
  font-weight: 900;
}

.identity h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.steam-name,
.profile-note {
  margin: 7px 0 0;
  color: var(--muted);
}

.profile-note {
  overflow-wrap: anywhere;
}

.verified {
  margin-left: 8px;
  padding: 2px 5px;
  color: #bce6ff;
  border: 1px solid #3e7191;
  font-size: 9px;
  font-weight: 900;
}

.balances {
  display: flex;
  gap: 10px;
}

.balances > div {
  min-width: 144px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border: 1px solid #34443a;
  border-left: 3px solid var(--pda-amber);
  background: rgba(24, 35, 29, 0.88);
}

.balances > div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.balances strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.balances strong span {
  display: inline;
}

.dashboard-tabs {
  margin: 0 -26px;
  padding: 0 26px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.dashboard-tab {
  min-width: 120px;
  min-height: 52px;
  padding: 0 18px;
  white-space: nowrap;
  font-weight: 800;
}

.dashboard-tab::before {
  content: attr(data-code) "/";
  margin-right: 7px;
  color: #718078;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
}

.dashboard-tab.is-active {
  color: var(--pda-green);
  background: rgba(126, 161, 119, 0.08);
  box-shadow: inset 0 -3px 0 var(--pda-green);
}

.dashboard-layout {
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: pda-view-in 220ms ease-out both;
}

.section-heading,
.leader-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.status-pill,
.balance-inline {
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 126px;
  padding: 16px;
  display: grid;
  grid-template-rows: 42px 16px minmax(32px, auto);
  align-content: start;
  row-gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.stat-card .sprite-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  color: var(--accent-strong);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 39px;
  overflow-wrap: anywhere;
}

.stat-rank strong {
  font-size: 24px;
  line-height: 39px;
  overflow-wrap: normal;
}

.overview-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.feature-panel,
.leaderboard,
.account-panel,
.faction-hero,
.compact-monitor {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard .feature-panel,
.dashboard .leaderboard,
.dashboard .account-panel,
.dashboard .faction-hero,
.dashboard .compact-monitor,
.dashboard .stat-card,
.dashboard .item-card,
.dashboard .mission-card,
.dashboard .achievement-card,
.dashboard .weapon-card,
.dashboard .cache-card {
  border-color: #35463c;
  border-radius: 2px;
  background: rgba(18, 27, 22, 0.93);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.dashboard .section-heading h2,
.dashboard .leader-heading h2,
.dashboard .feature-panel h3 {
  color: #e1e8df;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
}

.dashboard .status-pill,
.dashboard .balance-inline {
  border-color: #465a4e;
  border-radius: 2px;
  color: var(--pda-cyan);
  background: rgba(14, 25, 19, 0.72);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.dashboard button,
.dashboard .stat-card,
.dashboard .feature-panel,
.dashboard .item-card,
.dashboard .mission-card,
.dashboard .achievement-card,
.dashboard .weapon-card,
.dashboard .cache-card {
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

@media (hover: hover) {
  .dashboard .stat-card:hover,
  .dashboard .feature-panel:hover,
  .dashboard .item-card:hover,
  .dashboard .mission-card:hover,
  .dashboard .achievement-card:hover,
  .dashboard .weapon-card:hover,
  .dashboard .cache-card:hover {
    border-color: var(--pda-cyan);
    transform: translateY(-2px);
  }
}

.feature-panel p:not(.kicker),
.faction-hero p:not(.kicker) {
  color: var(--muted);
  line-height: 1.55;
}

.mission-progress {
  height: 7px;
  margin: 18px 0 8px;
  overflow: hidden;
  background: var(--surface-3);
}

.mission-progress span {
  height: 100%;
  display: block;
  background: var(--accent);
}

.product-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-button {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
}

.product-button b,
.product-button span {
  display: block;
}

.product-button span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.product-button:hover {
  border-color: var(--accent);
}

.purchase-terms {
  margin: 12px 0 0;
  font-size: 12px;
}

.shop-note {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.purchase-terms a,
.legal-content a,
.legal-nav a {
  color: var(--accent-strong);
}

.faction-hero {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-left: 4px solid var(--accent);
}

.rank-mark,
.bounty-value {
  min-width: 112px;
  text-align: center;
  color: var(--accent-strong);
  font-size: 42px;
  font-weight: 950;
}

.content-grid,
.shop-grid,
.achievement-grid,
.mission-grid,
.weapon-grid,
.cache-grid {
  display: grid;
  gap: 12px;
}

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

.shop-grid,
.weapon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-grid,
.mission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.free-faction-grid {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.free-faction-grid .wanted-terminal,
.free-faction-grid .feature-panel {
  margin: 0;
}

.free-status .mission-progress {
  max-width: 520px;
}

.free-cache-section {
  margin-top: 0;
}

.cache-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-card,
.mission-card,
.achievement-card,
.weapon-card,
.cache-card {
  min-height: 188px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.cache-card {
  min-height: 270px;
}

.cache-card > small {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.45;
}

.cache-card > strong {
  margin: auto 0 12px;
  color: var(--pda-cyan);
  font-size: 12px;
}

.item-card:hover,
.weapon-card:hover,
.mission-card:hover {
  border-color: #657268;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  border-radius: 8px;
  background: var(--accent);
  font-size: 21px;
  font-weight: 950;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.item-card h3,
.mission-card h3,
.achievement-card h3,
.weapon-card h3 {
  margin: 11px 0 7px;
  letter-spacing: 0;
}

.item-card p,
.mission-card p,
.achievement-card p,
.weapon-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.weapon-card code,
.good-card code,
.dialog-weapon-head code {
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  color: #8fa29a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-button,
.buy-button,
.secondary-button {
  margin-top: auto;
  padding: 0 14px;
}

.action-button:disabled,
.buy-button:disabled,
.product-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.locked-card {
  opacity: 0.68;
}

.achievement-card.is-done {
  border-color: #657831;
}

.achievement-track p strong {
  display: block;
  margin-bottom: 5px;
  color: #e1e8df;
}

.achievement-levels {
  margin: auto 0 13px;
  display: grid;
  grid-template-columns: repeat(var(--levels), minmax(0, 1fr));
  gap: 4px;
}

.achievement-levels i {
  height: 5px;
  display: block;
  background: #28372e;
}

.achievement-levels i.is-current {
  background: var(--pda-amber);
}

.achievement-levels i.is-done {
  background: var(--accent);
}

.achievement-progress {
  margin-top: 0;
}

.achievement-progress span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.achievement-progress div {
  height: 6px;
  background: var(--surface-3);
}

.achievement-progress i {
  height: 100%;
  display: block;
  background: var(--accent);
}

.side-column {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 98px;
}

.metric-tabs {
  width: 100%;
  overflow: hidden;
}

.metric-button {
  min-height: 36px;
  flex: 1;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.leader-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.leader-row:last-child {
  border-bottom: 0;
}

.leader-position {
  color: var(--muted);
  font-weight: 900;
}

.leader-row.is-first .leader-position {
  color: var(--warm);
}

.leader-player {
  min-width: 0;
}

.leader-player strong,
.leader-player span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-player span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.leader-value {
  color: var(--accent-strong);
  font-weight: 900;
}

.leader-empty {
  margin: 0;
  padding: 22px 0;
  color: var(--muted);
}

.leader-pagination,
.achievement-pagination {
  min-height: 48px;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.leader-pagination button,
.achievement-pagination button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #405448;
  color: var(--muted);
  background: #111a15;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.leader-pagination button.is-active,
.achievement-pagination button.is-active {
  border-color: var(--pda-cyan);
  color: var(--pda-cyan);
  background: #15231d;
}

.leader-pagination button:disabled,
.achievement-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.leader-pagination span,
.achievement-pagination span {
  color: var(--muted);
}

.account-panel {
  display: grid;
  gap: 14px;
}

.account-panel button {
  width: 100%;
}

.account-panel div span,
.account-panel code {
  display: block;
}

.account-panel div span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.account-panel code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wanted-terminal {
  min-width: 0;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid #526159;
  border-left: 3px solid var(--danger);
  border-radius: 4px;
  background:
    linear-gradient(rgba(121, 184, 183, 0.035) 1px, transparent 1px),
    #101713;
  background-size: 100% 4px;
}

.wanted-terminal::after {
  width: 52%;
  height: 1px;
  content: "";
  position: absolute;
  right: 0;
  top: 48px;
  background: linear-gradient(90deg, transparent, rgba(121, 184, 183, 0.55));
}

.wanted-terminal-head,
.wanted-terminal-grid {
  display: grid;
  gap: 12px;
}

.wanted-terminal-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--pda-cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wanted-terminal-head b {
  color: var(--danger);
  font-size: 10px;
}

.wanted-target {
  margin: 30px 0 22px;
}

.wanted-target small,
.wanted-terminal-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.wanted-target strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.05;
}

.wanted-terminal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.wanted-terminal-grid div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(121, 184, 183, 0.045);
}

.wanted-terminal-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-size: 23px;
}

.wanted-terminal code {
  color: var(--pda-cyan);
  font-size: 10px;
}

@keyframes pda-boot {
  from {
    opacity: 0;
    filter: brightness(1.8) saturate(0.45);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: translateY(0);
  }
}

@keyframes pda-scan {
  0% {
    top: 0;
    opacity: 0;
  }
  18% {
    opacity: 0.72;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes pda-view-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes signal-pulse {
  0%, 100% {
    opacity: 0.58;
  }
  50% {
    opacity: 1;
  }
}

.toast {
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #202823;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-color: var(--danger);
}

.footer {
  min-height: 88px;
  padding: 22px max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #0b0e0c;
}

.footer div,
.footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text);
}

.legal-body {
  min-height: 100vh;
}

.legal-header {
  min-height: 74px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #0b0e0c;
}

.legal-back {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.legal-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-title {
  max-width: 820px;
  margin-bottom: 54px;
}

.legal-title h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-title > p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal-title small {
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-nav {
  padding: 16px;
  display: grid;
  gap: 4px;
  position: sticky;
  top: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.legal-nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 0 0 54px;
  scroll-margin-top: 22px;
}

.legal-content section + section {
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 8px 0 24px;
  font-size: 32px;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 30px 0 12px;
  font-size: 19px;
  letter-spacing: 0;
}

.legal-content p,
.legal-content li {
  color: #c8cec9;
  line-height: 1.75;
}

.legal-content strong {
  color: var(--text);
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content code {
  color: var(--text);
}

.legal-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-details div {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-details dt {
  color: var(--muted);
}

.legal-details dd {
  margin: 0;
  color: var(--text);
}

.sprite-icon {
  width: 58px;
  height: 58px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.icon-profile { background-image: url("/assets/ui/profile.png"); }
.icon-infected { background-image: url("/assets/ui/infected.png"); }
.icon-clock { background-image: url("/assets/ui/clock.png"); }
.icon-mission { background-image: url("/assets/ui/mission.png"); }
.icon-money { background-image: url("/assets/ui/money.png"); }
.icon-crystal { background-image: url("/assets/ui/crystal.png"); }
.icon-license { background-image: url("/assets/ui/license.png"); }
.icon-rank { background-image: url("/assets/ui/rank.png"); }
.icon-weapon { background-image: url("/assets/ui/weapon.png"); }
.icon-ammo { background-image: url("/assets/ui/ammo.png"); }
.icon-magazine { background-image: url("/assets/ui/magazine.png"); }
.icon-attachment { background-image: url("/assets/ui/attachment.png"); }
.icon-server { background-image: url("/assets/ui/server.png"); }
.icon-achievement { background-image: url("/assets/ui/achievement.png"); }
.icon-identity { background-image: url("/assets/ui/identity.png"); }
.icon-compass { background-image: url("/assets/ui/compass.png"); }

.item-visual {
  width: 100%;
  height: 96px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d120f;
}

.item-visual .sprite-icon {
  width: 54px;
  height: 54px;
}

.item-image {
  width: 100%;
  height: 100%;
  padding: 7px;
  position: absolute;
  inset: 0;
  object-fit: contain;
  background: #0d120f;
}

.empty-state {
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 20px;
}

.icon-button:hover {
  border-color: var(--accent);
}

.compact-monitor .leader-heading {
  align-items: center;
}

.compact-server {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.compact-server:last-child {
  border-bottom: 0;
}

.compact-server .sprite-icon {
  width: 40px;
  height: 40px;
  opacity: 0.58;
}

.compact-server.is-online .sprite-icon {
  opacity: 1;
}

.compact-server strong,
.compact-server span {
  display: block;
}

.compact-server span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.compact-server a {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.feature-panel > .sprite-icon,
.faction-hero .sprite-icon {
  float: left;
  width: 52px;
  height: 52px;
  margin: 0 14px 8px 0;
}

.guild-section {
  margin-top: 28px;
}

.tactical-section {
  padding-top: 28px;
  border-top: 1px solid #35463c;
}

.map-toolbar {
  margin: 16px 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.map-filters,
.map-zoom {
  display: flex;
  gap: 6px;
  align-items: center;
}

.map-filters button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #405448;
  color: var(--muted);
  background: #111a15;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.map-filters button.is-active {
  border-color: var(--pda-cyan);
  color: var(--pda-cyan);
  background: #15231d;
}

.map-zoom button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #405448;
  color: var(--pda-cyan);
  background: #111a15;
  font-size: 22px;
  line-height: 1;
}

.map-zoom output {
  min-width: 54px;
  color: var(--muted);
  text-align: center;
  font: 700 12px/1 monospace;
}

.tactical-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.tactical-map-frame,
.map-intel {
  border: 1px solid #405448;
  background: #0d1511;
}

.tactical-map-frame {
  position: relative;
  min-width: 0;
}

.tactical-map-viewport {
  width: 100%;
  aspect-ratio: 1;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  cursor: grab;
  scrollbar-color: var(--pda-cyan) #111a15;
  scrollbar-width: thin;
}

.tactical-map-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.tactical-map-stage {
  position: relative;
  min-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #121912;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent calc(10% - 1px), rgba(195, 222, 204, 0.1) calc(10% - 1px), rgba(195, 222, 204, 0.1) 10%),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(195, 222, 204, 0.1) calc(10% - 1px), rgba(195, 222, 204, 0.1) 10%),
    linear-gradient(rgba(5, 10, 7, 0.08), rgba(5, 10, 7, 0.08)),
    url("/assets/maps/chernarusplus.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.map-place {
  position: absolute;
  z-index: 2;
  max-width: 100px;
  transform: translate(-50%, -50%);
  color: rgba(240, 244, 225, 0.86);
  font-size: clamp(8px, 1.1vw, 11px);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px #07100b, 0 0 5px #07100b;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  z-index: 5;
  width: 18px;
  height: 18px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #07100b;
  border-radius: 50%;
}

.map-marker-player {
  background: var(--pda-cyan);
  box-shadow: 0 0 0 4px rgba(101, 209, 213, 0.18);
}

.map-marker-mission {
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 4px rgba(190, 216, 70, 0.18);
}

.map-marker-bounty {
  background: #e8655b;
  box-shadow: 0 0 0 4px rgba(232, 101, 91, 0.18);
}

.map-marker-contract {
  border-radius: 2px;
  background: #e7a74e;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 4px rgba(231, 167, 78, 0.2);
}

.map-marker-cache {
  border-radius: 2px;
  background: #f4f2db;
  box-shadow: 0 0 0 4px rgba(244, 242, 219, 0.18);
}

.map-marker.is-selected {
  outline: 2px solid #f4f2db;
  outline-offset: 4px;
}

.map-north {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pda-cyan);
  color: var(--pda-cyan);
  background: rgba(10, 17, 13, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.map-legend {
  min-height: 42px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #405448;
  color: var(--muted);
  font-size: 11px;
}

.map-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.map-legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.map-legend-dot.is-player {
  background: var(--pda-cyan);
}

.map-legend-dot.is-mission {
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.map-legend-dot.is-bounty {
  background: #e8655b;
}

.map-legend-dot.is-contract {
  border-radius: 1px;
  background: #e7a74e;
  transform: rotate(45deg);
}

.map-legend-dot.is-cache {
  border-radius: 1px;
  background: #f4f2db;
}

.map-intel {
  min-height: 320px;
}

.map-intel-selected,
.map-empty {
  min-height: 215px;
  padding: 18px;
  border-bottom: 1px solid #405448;
}

.map-intel-selected .map-legend-dot {
  float: left;
  margin: 3px 9px 0 0;
}

.map-intel h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.map-intel p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.map-intel-selected strong,
.map-intel-selected small,
.map-intel-selected code {
  margin-top: 10px;
  display: block;
}

.map-intel-selected strong {
  color: var(--accent-strong);
  line-height: 1.45;
}

.map-intel-selected small {
  color: var(--muted);
}

.map-intel-selected code {
  color: var(--pda-cyan);
  font-size: 12px;
}

.map-target-list {
  padding: 12px;
}

.map-target-heading {
  min-height: 34px;
  padding: 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-target-list button {
  width: 100%;
  min-height: 42px;
  padding: 8px 6px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid #28382f;
  color: #e7ede8;
  background: transparent;
  text-align: left;
}

.map-target-list button:hover,
.map-target-list button:focus-visible {
  color: var(--pda-cyan);
  background: #142019;
}

.map-target-list button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-target-list button b {
  flex: 0 0 auto;
  color: #ef8178;
}

.map-target-list > p {
  padding: 12px 6px;
  font-size: 12px;
}

.map-data-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.license-panel {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 52px 112px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #6f703f;
  border-left: 4px solid var(--warm);
  border-radius: 2px;
  background: var(--surface-2);
}

.license-panel .sprite-icon {
  width: 52px;
  height: 52px;
}

.license-current {
  min-height: 52px;
  padding-right: 14px;
  display: grid;
  align-content: center;
  border-right: 1px solid var(--line);
}

.license-current span,
.license-current strong {
  display: block;
}

.license-current span {
  color: var(--muted);
  font-size: 11px;
}

.license-current strong {
  margin-top: 2px;
  color: var(--warm);
  font-size: 30px;
  line-height: 1;
}

.license-copy h2,
.license-copy p {
  margin: 0;
}

.license-copy h2 {
  margin-top: 3px;
  font-size: 18px;
}

.license-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.license-progress {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--surface-3);
}

.license-progress span {
  height: 100%;
  display: block;
  background: var(--warm);
}

.license-buy {
  min-width: 168px;
  display: grid;
  gap: 5px;
  text-align: right;
}

.license-buy strong {
  color: var(--warm);
  font-size: 20px;
}

.catalog-tools {
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}

.search-control span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.search-control input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-2);
}

.search-control input:focus {
  border-color: var(--accent);
  outline: 0;
}

.rank-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.rank-filter {
  min-height: 38px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.rank-filter.is-active {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}

.catalog-grid .weapon-card {
  min-width: 0;
}

.weapon-card .sprite-icon,
.item-card .sprite-icon,
.achievement-card .sprite-icon,
.mission-card .sprite-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
}

.weapon-card > .item-visual {
  margin-bottom: 12px;
}

.weapon-card .secondary-button {
  margin-bottom: 8px;
}

.button-hint {
  display: block;
  margin-top: 7px;
  color: #c9a7a2;
  font-size: 10px;
  line-height: 1.35;
}

.catalog-pagination {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.catalog-pagination .secondary-button {
  min-width: 120px;
}

.weapon-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #111714;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

.weapon-dialog::backdrop {
  background: rgba(3, 6, 4, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-close {
  width: 40px;
  height: 40px;
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 25px;
}

.dialog-weapon-head {
  padding-right: 52px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.dialog-weapon-head .sprite-icon {
  width: 74px;
  height: 74px;
}

.dialog-weapon-head .item-visual {
  width: 110px;
  height: 74px;
}

.dialog-weapon-head h2 {
  margin: 0 0 5px;
  font-size: 32px;
}

.dialog-weapon-head > strong {
  color: var(--accent-strong);
  font-size: 25px;
}

.dialog-note {
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-actions {
  max-width: 280px;
  margin-bottom: 28px;
}

.dialog-actions .buy-button {
  width: 100%;
}

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

.good-card {
  min-height: 92px;
  padding: 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.good-card .sprite-icon {
  width: 50px;
  height: 50px;
}

.good-card .item-visual {
  width: 52px;
  height: 52px;
}

.good-card strong,
.good-card span {
  display: block;
}

.good-card span {
  color: var(--accent-strong);
  font-weight: 900;
}

.good-card .buy-button {
  min-width: 92px;
}

@media (max-width: 1120px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid,
  .weapon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .site-nav {
    display: none;
  }

  .account-button {
    grid-column: 2;
    width: 168px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal {
    min-height: calc(100svh - 124px);
    background-position: 62% center;
  }

  .portal::before {
    background: rgba(5, 8, 7, 0.62);
  }

  .trust-intro,
  .community-band,
  .account-pitch,
  .account-pitch-expanded,
  .split-heading,
  .audience-section,
  .overview-grid,
  .content-grid,
  .free-faction-grid {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .audience-section {
    gap: 24px;
  }

  .rank-road {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rank-road > div:nth-child(5) {
    border-left: 0;
  }

  .rank-road > div:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }

  .mission-types,
  .mission-flow,
  .world-systems > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-types article:nth-child(3),
  .mission-flow > div:nth-child(3),
  .world-systems article:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .mission-flow > div:nth-child(3),
  .world-systems article:nth-child(3) {
    border-left: 0;
  }

  .systems-ledger {
    grid-template-columns: 1fr;
  }

  .systems-ledger article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hunt-section {
    grid-template-columns: 1fr;
  }

  .hunt-copy {
    max-width: 760px;
  }

  .hunt-section > .story-image,
  .hunt-sides {
    grid-column: auto;
  }

  .account-pitch-expanded {
    padding: 34px;
  }

  .portal-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-details > div:nth-child(3) {
    border-left: 0;
  }

  .portal-details > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .trust-point + .trust-point {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .faction-paths {
    grid-template-columns: 1fr;
  }

  .faction-paths article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .profile-band {
    align-items: stretch;
    flex-direction: column;
  }

  .balances {
    width: 100%;
  }

  .balances > div {
    min-width: 0;
    flex: 1;
  }

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

  .pda-statusbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pda-telemetry {
    width: 100%;
    justify-content: space-between;
  }

  .pda-telemetry span:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .tactical-layout {
    grid-template-columns: 1fr;
  }

  .map-intel {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 10px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .account-button {
    width: 190px;
    padding: 0 14px;
    font-size: 13px;
  }

  .portal {
    padding: 32px 14px 28px;
  }

  .portal-copy h1 {
    font-size: 64px;
  }

  .portal-copy p:last-child {
    font-size: 15px;
  }

  .portal-copy p {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .map-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .map-filters button {
    min-width: 0;
    padding: 0 5px;
  }

  .map-zoom {
    justify-content: flex-end;
  }

  .portal-enter,
  .hero-connect {
    width: 100%;
  }

  .hero-monitor {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-monitor code {
    grid-column: 2;
  }

  .portal-details {
    grid-template-columns: 1fr;
  }

  .portal-details > div,
  .portal-details > div:first-child {
    padding: 14px 0;
  }

  .portal-details > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-band {
    padding: 42px 14px 48px;
  }

  .trust-intro,
  .community-band {
    gap: 24px;
  }

  .community-band {
    margin-top: 50px;
    padding-top: 44px;
  }

  .trust-points {
    margin: 32px 0 42px;
  }

  .faction-paths article,
  .account-pitch {
    padding: 26px 20px;
  }

  .landing-manifesto {
    padding-bottom: 42px;
  }

  .story-image {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .story-image figcaption {
    padding: 38px 18px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .story-image figcaption strong {
    font-size: 15px;
    text-align: left;
  }

  .split-heading h2,
  .progression-section h2,
  .hunt-section h2,
  .world-systems h2,
  .audience-section h2 {
    font-size: 32px;
  }

  .rank-road {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-road > div {
    min-height: 126px;
  }

  .rank-road > div:nth-child(odd) {
    border-left: 0;
  }

  .rank-road > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .mission-showcase,
  .progression-section,
  .hunt-section,
  .world-systems,
  .audience-section {
    margin-top: 54px;
    padding-top: 48px;
  }

  .mission-types,
  .mission-flow,
  .world-systems > div,
  .hunt-sides,
  .account-features {
    grid-template-columns: 1fr;
  }

  .mission-types article,
  .mission-types article:nth-child(3),
  .mission-flow > div,
  .mission-flow > div:nth-child(3),
  .world-systems article,
  .world-systems article:nth-child(3),
  .hunt-sides article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mission-types article:first-child,
  .mission-flow > div:first-child,
  .world-systems article:first-child {
    border-top: 0;
  }

  .mission-types article {
    min-height: 0;
    padding: 24px 20px;
  }

  .mission-flow > div {
    min-height: 98px;
  }

  .systems-ledger article,
  .world-systems article,
  .hunt-sides article {
    padding: 26px 20px;
  }

  .hunt-section > .story-image {
    min-height: 300px;
  }

  .account-pitch-expanded {
    margin-top: 54px;
    padding: 26px 20px;
  }

  .account-features li:nth-child(even) {
    margin-left: 0;
  }

  .terminal-preview {
    min-height: 360px;
    padding: 18px;
  }

  .terminal-preview header {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-actions .primary-button {
    width: 100%;
    text-align: center;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .social-link + .social-link {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .dashboard {
    width: calc(100% - 28px);
    margin-top: 14px;
    padding: 0 14px 24px;
  }

  .pda-statusbar {
    margin: 0 -14px;
    padding: 10px 12px;
  }

  .pda-telemetry {
    gap: 8px;
  }

  .pda-telemetry span,
  .pda-telemetry time {
    padding-left: 8px;
  }

  #pdaPointer {
    display: none;
  }

  .dashboard-tabs {
    margin: 0 -14px;
    padding: 0 14px;
  }

  .identity {
    align-items: flex-start;
  }

  .avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .balances {
    flex-direction: column;
  }

  .section-heading,
  .leader-heading,
  .faction-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading,
  .leader-heading {
    display: grid;
  }

  .faction-hero {
    display: flex;
  }

  .stats-grid,
  .shop-grid,
  .weapon-grid,
  .mission-grid,
  .cache-grid,
  .product-row {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 100px;
  }

  .filter-control,
  .metric-tabs {
    width: 100%;
  }

  .filter-button,
  .metric-button {
    min-width: 0;
    flex: 1;
    padding: 8px 5px;
  }

  .dashboard-tab {
    min-width: 106px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 12px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer div,
  .footer nav {
    display: grid;
    gap: 9px;
  }
}

@media (max-width: 820px) {
  .legal-main {
    padding-top: 42px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .legal-header,
  .legal-main {
    width: 100%;
  }

  .legal-header {
    padding: 10px 14px;
  }

  .legal-main {
    padding: 34px 14px 60px;
  }

  .legal-title {
    margin-bottom: 36px;
  }

  .legal-title h1 {
    font-size: 42px;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-content h2 {
    font-size: 27px;
  }

  .legal-details div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .license-panel {
    grid-template-columns: 52px 112px minmax(0, 1fr);
  }

  .license-buy {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .license-panel {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .license-panel .sprite-icon {
    width: 44px;
    height: 44px;
  }

  .license-current {
    min-height: 44px;
    border-right: 0;
  }

  .license-copy,
  .license-buy {
    grid-column: 1 / -1;
  }

  .license-buy {
    min-width: 0;
  }

  .catalog-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .dialog-weapon-head {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .dialog-weapon-head .sprite-icon {
    width: 58px;
    height: 58px;
  }

  .dialog-weapon-head .item-visual {
    width: 58px;
    height: 58px;
  }

  .dialog-weapon-head > strong {
    grid-column: 1 / -1;
  }

  .good-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .good-card .item-visual {
    width: 44px;
    height: 44px;
  }

  .good-card .buy-button,
  .good-card .button-hint {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .toast {
    transition: none;
  }

  .dashboard,
  .dashboard .view,
  .dashboard .pda-scan,
  .dashboard .pda-signal,
  .dashboard button,
  .dashboard .stat-card,
  .dashboard .feature-panel,
  .dashboard .item-card,
  .dashboard .mission-card,
  .dashboard .achievement-card,
  .dashboard .weapon-card {
    animation: none !important;
    transition: none !important;
  }
}
