:root {
  color-scheme: dark;
  --ink: #e9e5d5;
  --muted: #a5a797;
  --canvas: #10130f;
  --surface: #171b15;
  --surface-2: #1e241b;
  --line: #343b2e;
  --olive: #a9aa81;
  --amber: #ff7722;
  --amber-dark: #171208;
  --danger: #dc7668;
  --success: #90b474;
  --discord: #5865f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
a { color: inherit; }
code { color: var(--amber); background: #24291f; padding: .18em .4em; border: 1px solid var(--line); }
.eyebrow { margin: 0 0 .6rem; color: var(--olive); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 750; }
.brand-mark { display: inline-grid; place-items: center; min-width: 3.5rem; height: 2rem; border: 1px solid var(--amber); color: var(--amber); font-family: "Arial Narrow", sans-serif; font-weight: 900; letter-spacing: .08em; }
.brand-logo { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.login-logo { display: block; width: min(280px, 80%); height: auto; margin: -1rem auto 1rem; }
.text-link, .text-button { color: var(--muted); background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; }
.text-link:hover, .text-button:hover { color: var(--ink); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .75rem 1rem; border: 1px solid transparent; color: var(--ink); background: var(--surface-2); text-decoration: none; font-weight: 750; cursor: pointer; }
.button:hover { border-color: var(--amber); }
.button:disabled { opacity: .55; cursor: wait; }
.button.primary { background: var(--amber); color: var(--amber-dark); }
.button.secondary { border-color: var(--line); }
.button.discord { margin: 1rem 0; background: var(--discord); color: white; }
.button.primary-cta { min-height: 3.4rem; padding: 1rem 1.5rem; font-size: 1.05rem; }
.button.disabled { color: #777b70; border-color: var(--line); cursor: not-allowed; }
.button.compact { min-height: 2.35rem; padding: .5rem .85rem; }
.alert { position: sticky; top: 1rem; z-index: 10; padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--surface-2); }
.alert.success { border-color: var(--success); }
.alert.error { border-color: var(--danger); color: #ffd8d2; }
[hidden] { display: none !important; }

.public-page {
  overflow: hidden;
  background:
    linear-gradient(110deg, transparent 0 48%, #ff2d0010 48% 49%, transparent 49%),
    radial-gradient(circle at 22% 42%, #f75a161c 0 15%, transparent 43%),
    #090a09;
}
.lz-landing {
  width: min(1540px, 100%);
  height: 100svh;
  min-height: 640px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3.4rem);
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 34px;
}
.lz-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #554639;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: .14em;
}
.lz-wordmark { display: flex; align-items: center; gap: 1rem; color: #cfc7b5; text-decoration: none; font-size: .68rem; }
.lz-wordmark-mark { padding: .42rem .65rem; color: #090a09; background: #ef3b13; font-size: .78rem; letter-spacing: .08em; transform: skew(-8deg); }
.lz-frequency { display: flex; gap: 1.5rem; color: #777266; font-size: .62rem; }
.lz-frequency span:first-child { color: #f0d9b4; }

.lz-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(430px, .94fr) minmax(520px, 1.06fr);
  gap: clamp(1.5rem, 3.4vw, 4.5rem);
  align-items: stretch;
}
.lz-identity { min-width: 0; min-height: 0; padding: 1.25rem 0 1.4rem; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lz-logo-stage { position: relative; min-height: 0; display: grid; place-items: center; isolation: isolate; }
.lz-sun {
  position: absolute;
  width: min(44vh, 390px);
  aspect-ratio: 1;
  z-index: -1;
  border: 1px solid #a22f19;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, #be341618 0 2px, transparent 2px 9px);
  box-shadow: 0 0 90px #d5411824;
}
.lz-sun::before, .lz-sun::after { content: ""; position: absolute; background: #8f2b1c; opacity: .65; }
.lz-sun::before { left: -13%; right: -13%; top: 50%; height: 1px; }
.lz-sun::after { top: -13%; bottom: -13%; left: 50%; width: 1px; }
.lz-logo-stage img {
  display: block;
  width: min(100%, 650px);
  max-height: min(59vh, 650px);
  object-fit: contain;
  filter: drop-shadow(0 22px 28px #000c);
  transform: rotate(-1.2deg);
}
.lz-status-rail {
  position: relative;
  min-height: 104px;
  padding: .8rem 1.2rem .8rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(145px, 1fr) auto minmax(150px, .85fr);
  align-items: center;
  gap: 1.25rem;
  border: 1px solid #574d40;
  background: #171712e8;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.lz-status-rail::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #ef3b13; }
.lz-live-state { display: flex; align-items: center; gap: .8rem; }
.status-dot { flex: 0 0 auto; width: .65rem; height: .65rem; background: var(--danger); border-radius: 50%; }
.status-dot.online { background: #9cc25f; box-shadow: 0 0 0 5px #9cc25f15, 0 0 16px #9cc25f66; }
.lz-live-state div { display: grid; gap: .22rem; min-width: 0; }
.lz-live-state small, .lz-server-facts dt { color: #7f796d; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.lz-live-state strong { overflow: hidden; color: #efe9dc; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.lz-population { padding: 0 1.25rem; display: flex; align-items: center; gap: .55rem; border-inline: 1px solid #3b3932; }
.lz-population strong { color: #ff6a1b; font-family: "Arial Narrow", Impact, sans-serif; font-size: 2.8rem; line-height: 1; }
.lz-population span { color: #8e887b; font-size: .62rem; line-height: 1.2; text-transform: uppercase; }
.lz-server-facts { margin: 0; display: grid; gap: .48rem; }
.lz-server-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.lz-server-facts dd { margin: 0; color: #d7d0c1; font-size: .73rem; }

.lz-briefing {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 1.5rem 0;
  padding: 1px;
  background: linear-gradient(145deg, #7b2c1b, #3e392f 36%, #3e392f 76%, #a9371c);
  clip-path: polygon(52px 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%, 0 52px);
}
.lz-briefing::before { content: "FIELD BRIEF  /  01"; position: absolute; top: 1.15rem; right: 1.4rem; z-index: 2; color: #7c7467; font: 700 .56rem/1 monospace; letter-spacing: .12em; }
.lz-briefing-inner {
  height: 100%;
  min-height: 0;
  padding: clamp(2.25rem, 4vh, 3.8rem) clamp(2rem, 4.2vw, 4.5rem) clamp(1.6rem, 3.2vh, 3rem);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, #ffffff05 1px, transparent 1px),
    linear-gradient(0deg, #ffffff04 1px, transparent 1px),
    radial-gradient(circle at 86% 12%, #ff51100b, transparent 32%),
    #131310;
  background-size: 42px 42px, 42px 42px, auto, auto;
}
.lz-kicker { margin: 0 0 clamp(.7rem, 1.5vh, 1.1rem); color: #ed4b20; font: 800 .64rem/1 "Arial Narrow", sans-serif; letter-spacing: .18em; }
.lz-briefing h1 {
  max-width: 720px;
  margin: 0;
  color: #f1e6d3;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: clamp(3.2rem, 5.2vw, 6rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.lz-intro { max-width: 660px; margin: clamp(.8rem, 2vh, 1.4rem) 0; color: #aaa394; font-size: clamp(.85rem, 1vw, 1rem); line-height: 1.55; }
.lz-intel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-block: 1px solid #37352f; background: #37352f; }
.lz-intel-item { padding: clamp(.7rem, 1.4vh, 1rem) 1rem; display: grid; grid-template-columns: auto 1fr; gap: .75rem; background: #131310; }
.lz-intel-item > span { color: #ed4b20; font: 700 .6rem/1.3 monospace; }
.lz-intel-item strong { color: #ded7c9; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.lz-intel-item p { margin: .28rem 0 0; color: #7f7a70; font-size: .7rem; line-height: 1.35; }
.lz-promotion {
  margin-top: clamp(.75rem, 1.6vh, 1.15rem);
  padding: .72rem .9rem;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: center;
  border-left: 3px solid #ffb12b;
  background: #211d16;
}
.lz-promo-label { color: #f3a52b; font: 800 .56rem/1.35 "Arial Narrow", sans-serif; letter-spacing: .12em; }
.lz-promotion strong { display: block; color: #f0e9db; font-size: .78rem; }
.lz-promotion p { margin: .2rem 0 0; color: #827d73; font-size: .66rem; line-height: 1.3; }
.lz-promo-duration { min-width: 52px; color: #f3a52b; font: 800 .7rem/1 "Arial Narrow", sans-serif; text-align: right; text-transform: uppercase; }
.lz-cta-block { margin-top: auto; padding-top: clamp(.8rem, 2vh, 1.4rem); }
.lz-discord-cta {
  min-height: clamp(62px, 8vh, 84px);
  padding: .85rem clamp(1.2rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #100d09;
  background: linear-gradient(100deg, #ff421b, #ff7a1c);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 12px 50%);
  transition: filter .15s ease, transform .15s ease;
}
.lz-discord-cta:hover { filter: brightness(1.12); transform: translateX(4px); }
.lz-discord-cta:focus-visible { outline-color: #f7dfbd; }
.lz-discord-cta span { font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 900; letter-spacing: .025em; text-transform: uppercase; }
.lz-discord-cta small { font: 700 .58rem/1 monospace; letter-spacing: .02em; }
.lz-footer { padding: 0 .15rem; display: flex; align-items: center; justify-content: space-between; color: #59564e; border-top: 1px solid #2d2c27; font: 700 .56rem/1 monospace; letter-spacing: .12em; }
.public-header { max-width: 1180px; margin: auto; padding: 1.5rem 2rem; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.lede { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.result-shell { min-height: calc(100vh - 92px); display: grid; place-items: center; padding: 3rem 4vw; }
.result-card { width: min(680px, 100%); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.result-card h1 { font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: .92; text-transform: uppercase; margin: .4rem 0 1.1rem; }
.result-card .button { margin-top: 1rem; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-panel { width: min(480px, 100%); padding: 3rem; border: 1px solid var(--line); background: var(--surface); box-shadow: 12px 12px 0 #090b08; }
.login-panel .eyebrow { margin-top: 3rem; }
.login-panel h1 { margin: 0; font-family: Georgia, serif; font-size: 2.6rem; font-weight: 500; }
.login-panel p { color: var(--muted); line-height: 1.65; }
.login-panel .button, .login-panel > .text-link { width: 100%; text-align: center; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 1.35rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #0d100c; overflow-y: auto; }
.sidebar nav { margin-top: 2.5rem; display: grid; gap: .2rem; }
.nav-label { margin: 1.4rem .75rem .4rem; color: #6f7468; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { width: 100%; padding: .65rem .75rem; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.nav-item:hover { color: var(--ink); background: var(--surface); }
.nav-item.active { color: var(--amber); border-left-color: var(--amber); background: #1e2118; }
.sidebar-foot { margin-top: auto; padding: 1rem .75rem 0; display: grid; gap: .8rem; }
.sidebar-foot .text-button { text-align: left; }
.admin-main { width: 100%; max-width: 1540px; padding: 2rem clamp(1.25rem, 4vw, 4rem) 5rem; overflow: hidden; }
.admin-header { min-height: 5rem; margin-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.admin-header h1 { margin: 0; font-family: Georgia, serif; font-size: 2.2rem; font-weight: 500; }
.admin-identity { display: flex; align-items: center; gap: .7rem; }
.admin-identity img { width: 2.3rem; height: 2.3rem; border-radius: 50%; }
.admin-identity div { display: grid; }
.admin-identity span { color: var(--muted); font-size: .75rem; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.metric { min-height: 140px; padding: 1.25rem; display: flex; flex-direction: column; background: var(--surface); }
.metric > span, .metric small { color: var(--muted); }
.metric strong { margin: auto 0 .4rem; font-family: Georgia, serif; color: var(--amber); font-size: 2rem; font-weight: 500; }
.metric small { font-size: .72rem; }
.panel-grid { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr); gap: 1.5rem; align-items: start; }
.panel { border: 1px solid var(--line); background: var(--surface); }
.panel-heading { padding: 1.25rem; border-bottom: 1px solid var(--line); }
.panel h2, .setting-card h2 { margin: 0; font-size: 1rem; }
.action-grid { padding: 1.25rem; display: grid; gap: .7rem; }
.tabs { display: flex; gap: .2rem; padding: .75rem 1rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs button { padding: .45rem .7rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button.active { color: var(--amber); background: var(--surface-2); }
.data-list { min-height: 240px; max-height: 430px; overflow-y: auto; }
.data-row { padding: .9rem 1.25rem; display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); }
.data-row strong { overflow: hidden; text-overflow: ellipsis; }
.data-row span { color: var(--muted); overflow-wrap: anywhere; }
.empty { padding: 1.5rem; color: var(--muted); }
.settings-grid { display: grid; gap: .8rem; }
.setting-card { padding: 1.15rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr); gap: 2rem; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.setting-card p { max-width: 680px; margin: .45rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.setting-control { display: flex; justify-content: flex-end; align-items: center; gap: .65rem; }
input, select { width: 100%; min-height: 2.4rem; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 0; background: #0f120e; color: var(--ink); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.switch { position: relative; flex: 0 0 46px; width: 46px; height: 24px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line); background: #0f120e; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; background: var(--muted); transition: transform .15s; }
.switch input:checked + span { border-color: var(--amber); }
.switch input:checked + span::after { transform: translateX(22px); background: var(--amber); }

@media (max-width: 1050px) {
  .lz-grid { grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr); gap: 1.5rem; }
  .lz-briefing-inner { padding-inline: 2rem; }
  .lz-status-rail { grid-template-columns: 1fr auto; }
  .lz-server-facts { display: none; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .public-page { overflow-x: hidden; overflow-y: auto; }
  .lz-landing { height: auto; min-height: 100svh; grid-template-rows: 60px auto 34px; }
  .lz-frequency span:last-child { display: none; }
  .lz-grid { grid-template-columns: 1fr; }
  .lz-identity { min-height: 620px; }
  .lz-logo-stage img { max-height: 500px; }
  .lz-briefing { min-height: 700px; margin-top: 0; }
}
@media (max-width: 760px) {
  .lz-landing { padding-inline: 1rem; }
  .lz-wordmark > span:last-child { display: none; }
  .lz-identity { min-height: 540px; }
  .lz-status-rail { grid-template-columns: minmax(130px, 1fr) auto; gap: .5rem; padding-inline: 1rem; }
  .lz-population { padding-inline: .8rem; }
  .lz-briefing { min-height: 730px; clip-path: polygon(34px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 34px); }
  .lz-briefing-inner { padding: 2.8rem 1.35rem 1.5rem; }
  .lz-briefing h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .lz-intel-grid { grid-template-columns: 1fr; }
  .lz-promotion { grid-template-columns: 1fr auto; }
  .lz-promo-label { grid-column: 1 / -1; }
  .admin-layout { display: block; }
  .sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { margin-top: 1.5rem; grid-template-columns: repeat(2, 1fr); }
  .nav-label { grid-column: 1 / -1; }
  .sidebar-foot { display: none; }
  .admin-header { align-items: flex-start; gap: 1rem; }
  .admin-identity div { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .setting-card { grid-template-columns: 1fr; gap: 1rem; }
  .setting-control { justify-content: stretch; }
  .data-row { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 460px) {
  .lz-frequency { display: none; }
  .lz-identity { min-height: 490px; }
  .lz-status-rail { min-height: 92px; }
  .lz-live-state small { font-size: .52rem; }
  .lz-population strong { font-size: 2.25rem; }
  .lz-discord-cta small { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .login-panel { padding: 2rem; }
}
