:root {
  color-scheme: dark;
  --bg: #020710;
  --bg-2: #04101c;
  --panel: rgba(7, 24, 43, 0.78);
  --panel-strong: rgba(9, 30, 54, 0.96);
  --line: rgba(78, 156, 225, 0.28);
  --line-soft: rgba(96, 178, 255, 0.16);
  --text: #f1f8ff;
  --muted: #a1b7cb;
  --dim: #65798b;
  --blue: #0ea5ff;
  --blue-2: #4dd2ff;
  --cyan: #6de9ff;
  --green: #36d071;
  --gold: #f4b434;
  --orange: #ff7b2d;
  --red: #ff4b58;
  --purple: #9c66ff;
  --shadow: 0 26px 72px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --rail: 255px;
  --max: 1220px;
  --font-display: "Bahnschrift", "Arial Narrow", "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 10% 2%, rgba(0, 151, 255, 0.19), transparent 36rem),
    radial-gradient(circle at 92% 26%, rgba(24, 203, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, #01040a 0%, #04101b 42%, #020711 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(72, 154, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 154, 232, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 76%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 11%, transparent 89%, rgba(0, 0, 0, 0.34)),
    linear-gradient(180deg, rgba(3, 9, 18, 0.78), rgba(2, 7, 16, 0.96));
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.62);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 88px;
  padding: 0 34px 0 310px;
  border-bottom: 1px solid rgba(80, 170, 255, 0.18);
  background: rgba(2, 7, 16, 0.88);
  backdrop-filter: blur(18px);
}

.topbar::before {
  position: absolute;
  right: 34px;
  bottom: -1px;
  left: 300px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(0, 183, 255, 0.8), transparent 18%, transparent 82%, rgba(0, 183, 255, 0.38));
}

.brand-badge {
  position: absolute;
  top: 6px;
  left: 18px;
  display: grid;
  width: 255px;
  min-height: 126px;
  padding: 18px 24px 20px;
  place-items: center;
  isolation: isolate;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.55));
}

.brand-badge::before,
.brand-badge::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  clip-path: polygon(0 0, 100% 0, 89% 78%, 18% 100%);
}

.brand-badge::before {
  background:
    linear-gradient(135deg, rgba(10, 60, 115, 0.82), rgba(2, 10, 22, 0.98) 54%, rgba(0, 88, 168, 0.54)),
    radial-gradient(circle at 34% 15%, rgba(37, 175, 255, 0.7), transparent 36%);
  border: 1px solid rgba(95, 185, 255, 0.34);
}

.brand-badge::after {
  inset: 6px;
  border: 1px solid rgba(83, 177, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 36%);
}

.brand-badge img {
  width: 165px;
  height: auto;
  object-fit: contain;
}

.brand-badge span {
  margin-top: 4px;
  color: #cdefff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar.scrolled .brand-badge {
  width: 160px;
  min-height: 70px;
  padding: 8px 16px;
}

.topbar.scrolled .brand-badge img {
  width: auto;
  height: 54px;
}

.topbar.scrolled .brand-badge span {
  display: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 0 6px;
  border: 1px solid rgba(69, 150, 225, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(5, 17, 32, 0.82), rgba(4, 12, 23, 0.7));
}

.primary-nav a,
.nav-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #c5d8e8;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-nav a svg,
.nav-menu svg {
  width: 15px;
  height: 15px;
  color: #4fc9ff;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-nav a:hover,
.nav-menu > button:hover,
.primary-nav .active {
  color: white;
  background: linear-gradient(180deg, rgba(0, 152, 255, 0.26), rgba(0, 94, 180, 0.18));
  box-shadow: inset 0 -2px 0 rgba(0, 183, 255, 0.95), 0 0 24px rgba(0, 153, 255, 0.24);
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(87, 174, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(3, 12, 24, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-menu.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-left: 14px;
  padding: 0 20px;
  border: 1px solid rgba(109, 218, 255, 0.42);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0, rgba(113, 222, 255, 0.38), transparent 60%),
    linear-gradient(180deg, #139dff, #0768df 62%, #024daf);
  box-shadow: 0 0 28px rgba(0, 144, 255, 0.46), inset 0 0 20px rgba(255, 255, 255, 0.13);
  color: white;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(6, 23, 42, 0.86);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--cyan);
}

.hero {
  position: relative;
  min-height: 620px;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 16, 0.95) 0%, rgba(2, 7, 16, 0.76) 34%, rgba(2, 7, 16, 0.35) 68%, rgba(2, 7, 16, 0.9) 100%),
    linear-gradient(0deg, #020710 0%, rgba(2, 7, 16, 0.05) 30%),
    url("assets/reallife-rp-banner-clean.png") center / cover no-repeat;
  filter: saturate(1.18) contrast(1.05);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 83% 57%, rgba(0, 145, 255, 0.32), transparent 23%),
    linear-gradient(180deg, transparent 54%, #020710 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: center;
  width: min(100% - 70px, var(--max));
  min-height: 620px;
  margin: 0 auto;
  padding: 132px 0 35px;
}

.hero-pretitle,
.section-kicker {
  color: var(--blue-2);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 830px;
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.15vw, 5.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: #12aaff;
  text-shadow: 0 0 24px rgba(0, 168, 255, 0.62);
}

.hero-lead {
  max-width: 535px;
  margin: 0 0 28px;
  color: #c4d3df;
  line-height: 1.7;
}

.hero-actions,
.join-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  border: 1px solid rgba(110, 221, 255, 0.48);
  background: linear-gradient(180deg, #0da3ff, #075fd2);
  box-shadow: 0 0 26px rgba(0, 145, 255, 0.45);
  color: #fff;
}

.button-secondary,
.button-ghost {
  border: 1px solid rgba(94, 183, 255, 0.34);
  background: rgba(5, 20, 36, 0.78);
  color: #d7eeff;
}

.button-ghost:hover,
.button-secondary:hover {
  border-color: rgba(111, 217, 255, 0.62);
  box-shadow: 0 0 20px rgba(0, 151, 255, 0.2);
}

.status-panel,
.career-preview,
.story-card,
.community-cards article,
.roadmap-card,
.faction-mini,
.rule-row,
.join-band,
.page-card,
.form-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 27, 48, 0.86), rgba(3, 12, 23, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}

.status-panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.status-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(89, 168, 234, 0.12);
}

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

.status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
}

.status-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.status-icon.blue {
  color: var(--blue);
}

.status-icon.gold {
  color: var(--gold);
}

.status-icon.orange {
  color: var(--orange);
}

.status-row small,
.stats-strip span,
.preview-metric small,
.faction-body small,
.career-card small,
.roadmap-card span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: min(100% - 70px, var(--max));
  margin: -26px auto 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 14, 27, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stats-strip article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid rgba(91, 170, 235, 0.13);
}

.stats-strip article:last-child {
  border-right: 0;
}

.stats-strip svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  padding: 7px;
  color: var(--blue-2);
  border: 1px solid rgba(68, 180, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.08);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.stats-strip strong {
  align-self: start;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.split-section,
.page-section {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 34px;
  width: min(100% - 70px, var(--max));
  margin: 0 auto;
  padding: 35px 0;
  border-top: 1px solid rgba(85, 164, 232, 0.14);
}

.section-rail {
  padding-top: 4px;
}

.section-rail h2 {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  line-height: 1.06;
  text-transform: uppercase;
}

.section-rail p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.faction-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.faction-mini {
  overflow: hidden;
  min-width: 0;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.faction-mini:hover {
  border-color: rgba(96, 201, 255, 0.62);
  transform: translateY(-5px);
}

.faction-media {
  min-height: 136px;
  border-bottom: 1px solid rgba(86, 171, 244, 0.19);
  background-image:
    linear-gradient(180deg, transparent 10%, rgba(2, 7, 16, 0.9)),
    url("assets/reallife-rp-banner-clean.png");
  background-size: cover;
}

.faction-mini.police .faction-media {
  background-image:
    linear-gradient(180deg, transparent 10%, rgba(2, 7, 16, 0.9)),
    url("assets/faction-police.png");
  background-position: 18% 50%;
}

.faction-mini.fire .faction-media {
  background-image:
    linear-gradient(180deg, rgba(112, 12, 21, 0.15), rgba(3, 10, 17, 0.92)),
    url("assets/faction-fire.png");
  background-position: 45% 54%;
}

.faction-mini.medic .faction-media {
  background-image:
    linear-gradient(180deg, rgba(25, 190, 98, 0.11), rgba(3, 10, 17, 0.92)),
    url("assets/reallife-rp-hero.png");
  background-position: 68% 50%;
}

.faction-mini.civic .faction-media {
  background-position: 76% 52%;
}

.faction-mini.justice .faction-media {
  background-image:
    linear-gradient(180deg, rgba(140, 82, 255, 0.16), rgba(3, 10, 17, 0.93)),
    url("assets/reallife-rp-banner-clean.png");
  background-position: 92% 48%;
}

.faction-body {
  position: relative;
  padding: 18px;
}

.faction-symbol,
.career-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(92, 204, 255, 0.42);
  background: rgba(10, 93, 163, 0.28);
  color: var(--blue-2);
  font-family: var(--font-display);
  font-weight: 900;
  overflow: hidden;
}

.career-icon {
  width: 52px;
  height: 52px;
  padding: 0;
  border-color: rgba(80, 204, 255, 0.58);
  background: rgba(4, 14, 27, 0.8);
  box-shadow: 0 0 20px rgba(0, 166, 255, 0.16);
}

.career-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faction-body .faction-symbol {
  position: absolute;
  top: -18px;
  left: 17px;
}

.faction-body h3,
.career-card strong,
.community-cards h3,
.roadmap-card h3,
.page-card h2,
.contact-card h2 {
  margin: 14px 0 2px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.faction-body strong {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.faction-body ul,
.roadmap-card ul,
.rule-row ul {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}

.faction-body li,
.roadmap-card li,
.rule-row li {
  position: relative;
  padding-left: 14px;
  color: #d5e5f2;
  font-size: 0.86rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.faction-mini.medic .faction-body h3,
.career-card[data-career="rettung"] strong {
  font-size: 0.9rem;
  overflow-wrap: normal;
}

.faction-body li::before,
.roadmap-card li::before,
.rule-row li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
}

.faction-body a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #e0f4ff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.career-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 18px;
}

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

.career-card {
  display: grid;
  align-content: start;
  min-height: 355px;
  padding: 22px 19px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 27, 49, 0.92), rgba(3, 12, 23, 0.92));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.career-card:hover,
.career-card.active {
  border-color: rgba(67, 196, 255, 0.72);
  box-shadow: 0 0 32px rgba(0, 138, 255, 0.23);
}

.career-card.fire:hover,
.career-card.fire.active {
  border-color: rgba(255, 75, 88, 0.58);
}

.career-card.medic:hover,
.career-card.medic.active {
  border-color: rgba(54, 208, 113, 0.62);
}

.career-card p {
  min-height: 74px;
  margin: 13px 0 17px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.career-card b {
  display: block;
  min-height: 34px;
  margin: 4px 0 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.mini-bars {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
}

.mini-bars i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(101, 160, 210, 0.2);
}

.mini-bars i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, #137bff, #50e0ff);
}

.career-card em {
  align-self: end;
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: white;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.career-preview {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  box-shadow: none;
}

.career-preview > span {
  color: #b9d7ef;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.career-preview h3 {
  margin: -4px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.range-line {
  display: grid;
  gap: 9px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.range-line output {
  color: #dbeeff;
  font-family: var(--font-display);
  font-weight: 800;
}

.preview-metric {
  padding-top: 14px;
  border-top: 1px solid rgba(91, 170, 235, 0.13);
}

.preview-metric strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.rule-list {
  display: grid;
  gap: 8px;
}

.rule-row {
  overflow: hidden;
  box-shadow: none;
}

.rule-row > button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #d8edff;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
}

.rule-row > button::after {
  justify-self: end;
  content: "+";
  color: var(--blue-2);
  font-size: 1.5rem;
}

.rule-row.open > button::after {
  content: "−";
}

.rule-row > div {
  display: none;
  padding: 0 22px 20px 62px;
  color: var(--muted);
  line-height: 1.65;
}

.rule-row.open > div {
  display: block;
}

.roadmap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roadmap-detail-link {
  margin-top: 16px;
}

.roadmap-filters button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 24, 42, 0.82);
  color: #cde9ff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.roadmap-filters .active {
  border-color: rgba(78, 205, 255, 0.75);
  background: rgba(0, 137, 255, 0.24);
}

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

.roadmap-card {
  padding: 20px;
  box-shadow: none;
}

.roadmap-card.is-hidden {
  display: none;
}

.roadmap-card h3 {
  min-height: 46px;
  line-height: 1.1;
}

.roadmap-card li::before {
  background: var(--green);
}

.progress {
  position: relative;
  height: 10px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(89, 154, 210, 0.22);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d80ff, #00d5ff);
}

.progress.warning i {
  background: linear-gradient(90deg, #ff692f, #f9c03b);
}

.progress.cyan i {
  background: linear-gradient(90deg, #55e6ff, #9ee9ff);
}

.progress strong {
  position: absolute;
  right: 0;
  bottom: 18px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: none;
}

.story-text {
  padding: 34px;
}

.story-text h2 {
  margin: 0 0 15px;
  font-family: var(--font-display);
  font-size: 2rem;
}

.story-text p {
  max-width: 670px;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.story-image {
  min-height: 280px;
  background:
    linear-gradient(90deg, rgba(3, 12, 23, 0.28), rgba(3, 12, 23, 0.08)),
    url("assets/reallife-rp-hero.png") center / cover no-repeat;
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  color: #dff5ff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
}

.story-points span {
  position: relative;
  padding-left: 28px;
}

.story-points span::before {
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, var(--blue) 0 30%, transparent 35%);
}

.community-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.community-cards article {
  min-height: 210px;
  padding: 26px;
  box-shadow: none;
}

.community-cards svg {
  width: 30px;
  height: 30px;
  color: var(--blue-2);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.community-cards p {
  color: var(--muted);
  line-height: 1.6;
}

.community-cards a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue-2);
  font-family: var(--font-display);
  font-weight: 900;
}

.join-band {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 70px, var(--max));
  margin: 20px auto 42px;
  padding: 24px 28px;
}

.join-band img {
  width: 145px;
}

.join-band h2 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.join-band p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(140px, 0.7fr)) minmax(180px, 0.8fr);
  gap: 36px;
  width: min(100% - 70px, var(--max));
  margin: 0 auto;
  padding: 42px 0 32px;
  border-top: 1px solid rgba(92, 169, 232, 0.18);
}

.footer-brand img {
  width: 150px;
  margin-bottom: 12px;
}

.footer-brand p,
.site-footer address span,
.copyright {
  color: var(--muted);
  line-height: 1.55;
}

.site-footer nav,
.site-footer address {
  display: grid;
  align-content: start;
  gap: 8px;
  font-style: normal;
}

.site-footer strong {
  margin-bottom: 6px;
  color: var(--blue-2);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.site-footer a {
  color: #c9dae8;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  gap: 9px;
}

.socials a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-link {
  opacity: 0.36;
}

.copyright {
  display: flex;
  justify-content: space-between;
  width: min(100% - 70px, var(--max));
  margin: 0 auto;
  padding: 0 0 22px;
  font-size: 0.82rem;
}

.copyright a {
  color: var(--blue-2);
}

.server-modal {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #061525;
  color: var(--text);
  box-shadow: var(--shadow);
}

.server-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
}

.modal-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.modal-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal-body {
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 12px 18px;
  border: 1px solid rgba(94, 203, 255, 0.38);
  border-radius: 6px;
  background: rgba(2, 10, 20, 0.96);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 360px;
  isolation: isolate;
  overflow: hidden;
  padding: 140px max(35px, calc((100% - var(--max)) / 2)) 54px;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 7, 16, 0.96), rgba(2, 7, 16, 0.58), rgba(2, 7, 16, 0.92)),
    var(--hero-art) center / cover no-repeat;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent, #020710 100%);
}

.page-hero h1 {
  max-width: 860px;
  margin: 10px 0 13px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

.page-grid {
  display: grid;
  gap: 18px;
}

.page-card {
  padding: 28px;
  box-shadow: none;
}

.page-card p,
.page-card li,
.form-panel p,
.contact-card p,
.legal-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.status-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-chip.open {
  color: #8cffbc;
  background: rgba(54, 208, 113, 0.16);
  border: 1px solid rgba(54, 208, 113, 0.36);
}

.status-chip.planning {
  color: #ffd37a;
  background: rgba(244, 180, 52, 0.16);
  border: 1px solid rgba(244, 180, 52, 0.38);
}

.form-layout,
.contact-grid,
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px;
}

.form-page {
  grid-template-columns: 1fr;
}

.form-panel,
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 18, 34, 0.82);
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-form label,
.feedback-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #dceeff;
  font-family: var(--font-display);
  font-weight: 800;
}

.feedback-form fieldset {
  padding: 18px;
  border: 1px solid rgba(83, 164, 235, 0.2);
  border-radius: var(--radius);
  background: rgba(2, 10, 20, 0.36);
}

.feedback-form fieldset label {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(83, 164, 235, 0.26);
  border-radius: 6px;
  background: rgba(2, 10, 20, 0.7);
  color: white;
  padding: 13px 14px;
  resize: vertical;
}

.feedback-form input[type="radio"],
.feedback-form input[type="checkbox"] {
  accent-color: var(--blue);
}

.form-status {
  min-height: 22px;
  color: #8cffbc;
}

.feedback-table {
  display: grid;
  gap: 14px;
}

.feedback-entry {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 14, 27, 0.84);
}

.feedback-entry header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

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

.danger {
  border-color: rgba(255, 75, 88, 0.42);
  color: #ffd3d7;
}

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

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

.story-prose {
  max-width: 850px;
}

.story-page-section {
  grid-template-columns: minmax(0, 1fr) 315px;
  align-items: start;
}

.story-prose h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-transform: uppercase;
}

.story-prose p {
  color: var(--muted);
  line-height: 1.8;
}

.story-prose blockquote {
  margin: 26px 0 0;
  padding: 22px;
  border-left: 3px solid var(--blue);
  background: rgba(0, 132, 255, 0.08);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.story-facts {
  display: grid;
  gap: 14px;
}

.fact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 18, 34, 0.72);
}

.fact-card strong {
  display: block;
  color: var(--blue-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.roadmap-page-section {
  display: block;
}

.roadmap-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.roadmap-toolbar h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.roadmap-toolbar p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legend-pill,
.phase-task::before {
  display: inline-grid;
  place-items: center;
}

.legend-pill {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #dcefff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legend-pill.done {
  border-color: rgba(54, 208, 113, 0.45);
  color: #9cffc6;
}

.legend-pill.active {
  border-color: rgba(244, 180, 52, 0.5);
  color: #ffd37a;
}

.legend-pill.planned {
  border-color: rgba(255, 75, 88, 0.42);
  color: #ffbdc4;
}

.phase-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phase-detail-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 355px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 27, 49, 0.92), rgba(3, 12, 23, 0.94));
}

.phase-detail-card.is-hidden {
  display: none;
}

.phase-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.phase-detail-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.phase-detail-card .phase-label {
  color: var(--blue-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phase-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.phase-tasks {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-task {
  position: relative;
  padding-left: 30px;
  color: #d6e8f5;
  line-height: 1.42;
}

.phase-task::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.phase-task.done::before {
  content: "✓";
  color: #052313;
  background: var(--green);
}

.phase-task.active::before {
  content: "!";
  color: #291801;
  background: var(--gold);
}

.phase-task.planned::before {
  content: "•";
  color: #fff;
  background: var(--red);
}

.phase-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-status.done {
  color: #9cffc6;
  background: rgba(54, 208, 113, 0.13);
  border: 1px solid rgba(54, 208, 113, 0.34);
}

.phase-status.active {
  color: #ffd37a;
  background: rgba(244, 180, 52, 0.14);
  border: 1px solid rgba(244, 180, 52, 0.36);
}

.phase-status.planned {
  color: #ffbdc4;
  background: rgba(255, 75, 88, 0.13);
  border: 1px solid rgba(255, 75, 88, 0.32);
}

.roadmap-edit-note {
  margin-top: 24px;
  padding: 18px;
  border: 1px dashed rgba(96, 184, 255, 0.38);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(4, 14, 27, 0.56);
}

.audit-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(410px, calc(100% - 36px));
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 12, 23, 0.98);
  box-shadow: var(--shadow);
}

.audit-panel header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.audit-panel button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

.audit-list {
  margin: 0;
  padding: 12px 16px 16px;
  list-style: none;
}

.audit-list li {
  padding: 7px 0;
  color: var(--muted);
}

.audit-list .pass {
  color: #9cffc6;
}

.audit-list .fail {
  color: #ffb3bb;
}

@media (max-width: 1180px) {
  .topbar {
    padding-left: 250px;
  }

  .brand-badge {
    width: 220px;
    min-height: 112px;
  }

  .brand-badge img {
    width: 140px;
  }

  .primary-nav a,
  .nav-menu > button {
    padding: 0 9px;
    font-size: 0.72rem;
  }

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

  .career-console,
  .story-card {
    grid-template-columns: 1fr;
  }

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

  .career-preview > span,
  .career-preview h3,
  .career-preview .button {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 940px) {
  .topbar {
    justify-content: space-between;
    min-height: 76px;
    padding: 0 18px;
  }

  .topbar::before {
    left: 18px;
  }

  .brand-badge {
    position: relative;
    top: auto;
    left: auto;
    width: 178px;
    min-height: 72px;
    padding: 8px 18px 12px;
  }

  .brand-badge img {
    width: 118px;
  }

  .brand-badge span {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    padding: 10px;
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a,
  .nav-menu > button {
    justify-content: flex-start;
  }

  .nav-dropdown {
    position: static;
    display: none;
    margin: 6px 0 0 23px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu.open .nav-dropdown {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(100% - 34px, var(--max));
    padding-top: 78px;
  }

  .status-panel {
    max-width: 430px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 34px, var(--max));
  }

  .stats-strip article:nth-child(2n) {
    border-right: 0;
  }

  .split-section,
  .page-section {
    grid-template-columns: 1fr;
    width: min(100% - 34px, var(--max));
  }

  .career-cards,
  .community-cards,
  .contact-grid,
  .legal-grid,
  .story-page-section,
  .phase-detail-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .roadmap-toolbar {
    grid-template-columns: 1fr;
  }

  .roadmap-legend {
    justify-content: flex-start;
  }

  .career-preview {
    grid-template-columns: 1fr;
  }

  .join-band {
    grid-template-columns: 1fr;
    width: min(100% - 34px, var(--max));
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 34px, var(--max));
  }

  .copyright {
    width: min(100% - 34px, var(--max));
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2.15rem, 10.3vw, 3.2rem);
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(91, 170, 235, 0.13);
  }

  .stats-strip article:last-child {
    border-bottom: 0;
  }

  .faction-card-grid,
  .career-cards,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .story-text {
    padding: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    display: grid;
    gap: 8px;
  }

  .page-hero {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
