@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Oswald:wght@400;500;600&display=swap");

:root {
  --bg: #020a10;
  --panel: rgba(5, 25, 35, 0.78);
  --panel2: rgba(7, 37, 48, 0.82);
  --line: rgba(54, 218, 238, 0.24);
  --text: #dffcff;
  --muted: #6f9da6;
  --acid: #65f58a;
  --amber: #34dced;
  --red: #ff5c70;
  --cyan: #34dced;
  --display: "Oswald", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  isolation: isolate;
}
.keyart-background {
  --parallax-y: 0px;
  position: fixed;
  z-index: -2;
  inset: 0 -3vw -18vh;
  background: url("/stalzone-keyart-bg.png?v=4") center top / cover no-repeat;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.04);
  will-change: transform;
  filter: saturate(0.82) contrast(1.08) brightness(0.62);
}
.keyart-shade {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 78% 3%,
      rgba(29, 226, 218, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 45% 82%,
      rgba(93, 255, 124, 0.06),
      transparent 28%
    ),
    linear-gradient(
      90deg,
      rgba(2, 10, 16, 0.78),
      rgba(2, 10, 16, 0.36) 48%,
      rgba(2, 10, 16, 0.66)
    ),
    linear-gradient(180deg, rgba(2, 10, 16, 0.25), rgba(2, 10, 16, 0.9) 88%);
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  background: rgba(2, 10, 16, 0.58);
  backdrop-filter: blur(12px);
  z-index: 10;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--acid);
  display: grid;
  place-items: center;
  color: var(--acid);
  font: 600 16px var(--display);
  transform: skew(-4deg);
  box-shadow:
    inset 0 0 18px rgba(52, 220, 237, 0.1),
    0 0 20px rgba(52, 220, 237, 0.1);
}
.brand-mark span {
  color: var(--muted);
}
.brand b {
  font: 600 19px var(--display);
  letter-spacing: 0.12em;
}
.brand small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.system-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.system-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
}
.system-state b {
  border-left: 1px solid var(--line);
  padding-left: 8px;
  color: var(--text);
}
.icon-button {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 20px;
}
.shell {
  display: block;
}
.rail {
  display: none;
}
.mobile-nav {
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: #101410f5;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.news-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.news-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.news-filters button,
.news-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.news-filters button {
  border: 1px solid var(--line);
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}
.news-filters button.active {
  color: #11150c;
  background: var(--acid);
  border-color: var(--acid);
}
.news-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 42px;
  padding: 0 12px;
  color: var(--acid);
}
.news-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 10px var(--mono);
  padding-left: 9px;
}
.news-grid {
  display: grid;
  gap: 12px;
}
.news-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.news-card.featured {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(198, 239, 71, 0.13),
      transparent 36%
    ),
    linear-gradient(135deg, var(--panel), #111511);
}
.news-meta,
.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.news-meta {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}
.news-meta span {
  color: var(--acid);
}
.news-number {
  position: absolute;
  right: 16px;
  top: 38px;
  color: rgba(229, 232, 220, 0.045);
  font: 600 76px var(--display);
}
.news-card h2 {
  max-width: 620px;
  margin: 42px 0 12px;
  font: 500 26px/1.12 var(--display);
  text-transform: uppercase;
}
.news-card > p,
.news-full {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.news-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.news-foot small {
  color: var(--muted);
  font-size: 8px;
}
.news-link {
  color: var(--acid);
  padding: 8px 0;
}
.news-full {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
}
.comments {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.comments-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  text-transform: uppercase;
  font: 500 11px var(--mono);
}
.comments-head span {
  color: var(--acid);
}
.comment {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.comment > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.comment b {
  color: var(--text);
  font-size: 9px;
}
.faction-name {
  font-weight: 700;
  letter-spacing: 0.025em;
}
.faction-name.faction-stalkers {
  color: #ffe45c;
  text-shadow:
    0 0 4px #ffe45c,
    0 0 10px rgba(255, 228, 92, 0.65);
}
.faction-name.faction-frontier {
  color: #ff4b4b;
  text-shadow:
    0 0 4px #ff2020,
    0 0 11px rgba(255, 32, 32, 0.8);
}
.faction-name.faction-rise {
  color: #48ff55;
  text-shadow:
    0 0 4px #14ff28,
    0 0 11px rgba(20, 255, 40, 0.8);
}
.faction-name.faction-bandits {
  color: #c0c5ca;
  text-shadow:
    0 0 4px #a6abb1,
    0 0 9px rgba(166, 171, 177, 0.55);
}
.faction-name.faction-mercenaries {
  color: #48baff;
  text-shadow:
    0 0 4px #159dff,
    0 0 11px rgba(21, 157, 255, 0.85);
}
.faction-name.faction-covenant {
  color: #c05cff;
  text-shadow:
    0 0 4px #a522ff,
    0 0 11px rgba(165, 34, 255, 0.85);
}
.faction-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.faction-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.faction-option:has(input:checked) {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.04);
}
.faction-option input {
  accent-color: currentColor;
}
.faction-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
}
.faction-icon-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed currentColor;
  font: 700 11px var(--mono);
}
.faction-icon-frontier {
  background-image: url("/factions/frontier.png");
}
.faction-icon-mercenaries {
  background-image: url("/factions/mercenaries.png");
}
.faction-icon-rise {
  background-image: url("/factions/rise.png");
}
.faction-icon-covenant {
  background-image: url("/factions/covenant.png");
}
.faction-icon-frontier,
.faction-icon-mercenaries,
.faction-icon-rise,
.faction-icon-covenant {
  background-size: contain;
  background-position: center;
}
.faction-stalkers {
  color: #f2d34f;
}
.faction-frontier {
  color: #ef5350;
}
.faction-rise {
  color: #66c56c;
}
.faction-bandits {
  color: #a6abb1;
}
.faction-mercenaries {
  color: #4f9eea;
}
.faction-covenant {
  color: #b36de0;
}
@media (max-width: 700px) {
  .faction-options {
    grid-template-columns: 1fr 1fr;
  }
}
.comment time,
.comment-empty {
  color: var(--muted);
  font-size: 8px;
}
.comment p {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.like-button {
  border: 1px solid rgba(102, 225, 204, 0.35);
  background: transparent;
  color: var(--muted, #8faeb2);
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}

.like-button:hover,
.like-button.liked {
  border-color: #66e1cc;
  color: #66e1cc;
}

.like-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faction-badge {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: 0 0 12px color-mix(in srgb, currentColor 55%, transparent);
}

.faction-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  mix-blend-mode: screen;
}

.faction-badge i {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.profile-faction-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.faction-surface {
  --faction-glow: rgba(102, 225, 204, 0.18);
  box-shadow: inset 0 0 28px var(--faction-glow), 0 0 18px var(--faction-glow);
}

.faction-frontier { --faction-glow: rgba(84, 170, 255, 0.22); color: #79bdff; }
.faction-rise { --faction-glow: rgba(255, 170, 55, 0.22); color: #ffb95f; }
.faction-mercenaries { --faction-glow: rgba(92, 151, 255, 0.25); color: #83adff; }
.faction-covenant { --faction-glow: rgba(221, 76, 76, 0.24); color: #f17b7b; }
.faction-stalkers { --faction-glow: rgba(96, 210, 120, 0.2); color: #7ee294; }
.faction-bandits { --faction-glow: rgba(190, 130, 74, 0.22); color: #dba46f; }

.comment.faction-surface p,
.comment.faction-surface time {
  color: var(--text, #d7e8e8);
}

.demo-label {
  border: 1px solid currentColor;
  padding: 2px 5px;
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.65;
}
.comment-author img,
.comment-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-avatar-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
}
.avatar-settings {
  display: flex;
  align-items: center;
  gap: 22px;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font: 700 22px var(--mono);
  box-shadow: 0 0 16px rgba(198, 239, 71, 0.2);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-settings form {
  display: grid;
  gap: 10px;
}
.avatar-actions {
  display: flex;
  gap: 8px;
}
.comment-login {
  display: block;
  margin-top: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--acid);
  text-decoration: none;
  font-size: 9px;
}
.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.comment-form textarea {
  min-height: 90px;
  resize: vertical;
  border: 1px solid var(--line);
  background: #0d110d;
  color: var(--text);
  padding: 12px;
  font: 10px/1.5 var(--mono);
}
.comment-form > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-form small {
  color: var(--muted);
  font-size: 8px;
}
.news-empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 40px;
  text-align: center;
  font-size: 10px;
}
.editor-layout {
  display: grid;
  gap: 12px;
}
.article-form {
  display: grid;
  gap: 14px;
}
.article-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-form input,
.article-form textarea,
.article-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
}
.article-form textarea {
  resize: vertical;
  line-height: 1.6;
}
.editor-actions {
  display: flex;
  gap: 8px;
}
.article-list {
  display: grid;
  gap: 6px;
}
.article-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.article-list-item:hover {
  border-color: var(--acid);
}
.article-list-item span:first-child {
  display: grid;
  gap: 4px;
}
.article-list-item small {
  color: var(--muted);
}
@media (min-width: 900px) {
  .editor-layout {
    grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
    align-items: start;
  }
}
@media (min-width: 760px) {
  .news-toolbar {
    grid-template-columns: 1fr 280px;
    align-items: center;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-card.featured {
    grid-column: 1 / -1;
    min-height: 360px;
  }
  .news-card.featured h2 {
    font-size: 38px;
  }
}
.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 9px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
}
.mobile-nav span {
  font-size: 18px;
}
.mobile-nav a.active {
  color: var(--acid);
  background: linear-gradient(0deg, rgba(198, 239, 71, 0.08), transparent);
}
main {
  padding: 24px 16px 100px;
  max-width: 1400px;
  margin: auto;
}
.eyebrow {
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 8px 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.page-head h1,
.hero h1 {
  font: 500 clamp(32px, 8vw, 72px)/0.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 5px 0;
}
.page-head p,
.hero p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 590px;
  margin: 0;
}
.timestamp {
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.timestamp::before {
  content: "↻";
  color: var(--acid);
  margin-right: 6px;
}
.grid {
  display: grid;
  gap: 12px;
}
.card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(8, 35, 46, 0.58),
    rgba(3, 18, 27, 0.46)
  );
  border: 1px solid var(--line);
  padding: 18px;
  min-width: 0;
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px rgba(176, 252, 255, 0.035),
    0 18px 50px rgba(0, 0, 0, 0.18);
}
.card::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--acid);
  border-left: 2px solid var(--acid);
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}
.card-head h2 {
  font: 500 18px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.card-head small {
  font-size: 8px;
  color: var(--muted);
}
.metric {
  font: 500 38px var(--display);
  letter-spacing: -0.02em;
}
.metric small {
  font: 400 12px var(--mono);
  color: var(--muted);
}
.delta {
  font-size: 10px;
  color: var(--acid);
}
.delta.down {
  color: var(--red);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #03130f;
  text-decoration: none;
  text-transform: uppercase;
  font: 600 11px var(--mono);
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(101, 245, 138, 0.14);
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.hero {
  min-height: calc(100vh - 196px);
  display: grid;
  align-content: center;
  padding: 8vh 0;
}
.hero h1 span {
  color: var(--acid);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-readout {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-readout div {
  padding: 15px 8px;
  border-right: 1px solid var(--line);
}
.hero-readout b {
  display: block;
  font: 500 22px var(--display);
}
.hero-readout small {
  color: var(--muted);
  font-size: 7px;
}
.login-layout {
  display: grid;
  min-height: calc(100vh - 190px);
  align-items: center;
  gap: 35px;
}
.auth-card {
  max-width: 460px;
  width: 100%;
  margin: auto;
}
.auth-card .seal {
  width: 68px;
  height: 68px;
  border: 1px dashed var(--acid);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--acid);
  font: 500 22px var(--display);
  margin-bottom: 24px;
}
.auth-card h1 {
  font: 500 38px var(--display);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.auth-card p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.auth-card .button {
  width: 100%;
  margin: 18px 0;
}
.legal {
  font-size: 8px !important;
}
.scan-lines {
  height: 220px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      rgba(198, 239, 71, 0.04) 8px
    ),
    radial-gradient(circle, var(--acid) 1px, transparent 2px);
  background-size:
    auto,
    24px 24px;
  opacity: 0.7;
  position: relative;
}
.scan-lines::after {
  content: "ЗАЩИЩЁННЫЙ КАНАЛ";
  position: absolute;
  inset: 50% 0 auto;
  text-align: center;
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.25em;
}
.status-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #59492b;
  background: #211c12;
  padding: 12px;
  margin-bottom: 12px;
  color: #e7c277;
  font-size: 10px;
}
.status-banner b {
  font-size: 18px;
}
.profile-strip {
  display: flex;
  gap: 15px;
  align-items: center;
}
.avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #20281d;
  color: var(--acid);
  font: 500 22px var(--display);
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-strip h2 {
  margin: 0;
  font: 500 24px var(--display);
  text-transform: uppercase;
}
.profile-strip p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 9px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 18px;
}
.stats-row div {
  background: var(--panel);
  padding: 12px;
}
.stats-row b {
  font: 500 20px var(--display);
  display: block;
}
.stats-row small {
  font-size: 7px;
  color: var(--muted);
}
.emission {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(228, 96, 72, 0.18),
      transparent 28%
    ),
    var(--panel);
}
.emission .metric {
  color: var(--red);
}
.global-emission {
  position: fixed;
  z-index: 20;
  right: 18px;
  top: 72px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(20, 25, 18, 0.96);
  font-size: 10px;
}
.global-emission b {
  color: var(--red);
  text-transform: uppercase;
}
.global-emission small {
  color: var(--muted);
}
.global-emission .button {
  padding: 5px 8px;
}
.operation-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.operation-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}
.operation-filters input,
.operation-filters select {
  min-width: 0;
}
@media (max-width: 900px) {
  .operation-filters {
    grid-template-columns: 1fr 1fr;
  }
  .global-emission {
    left: 10px;
    right: 10px;
    top: 62px;
  }
}
.bars {
  display: flex;
  gap: 5px;
  align-items: end;
  height: 85px;
  border-bottom: 1px solid var(--line);
  margin: 15px 0;
}
.bars i {
  flex: 1;
  background: var(--acid);
  opacity: 0.55;
  min-height: 10px;
}
.bars i:last-child {
  opacity: 1;
}
.list {
  display: grid;
  gap: 0;
}
.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.list-row b {
  font-size: 11px;
}
.list-row small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.list-row strong {
  font: 500 15px var(--display);
}
.tag {
  font-size: 8px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag.online {
  border-color: #465d2c;
  color: var(--acid);
}
.clan-hero {
  padding: 24px;
  background: linear-gradient(115deg, #20291b, #111511);
  border: 1px solid var(--line);
}
.clan-hero h1 {
  font: 500 42px var(--display);
  margin: 8px 0;
  text-transform: uppercase;
}
.clan-emblem {
  width: 70px;
  height: 70px;
  border: 1px solid var(--acid);
  clip-path: polygon(50% 0, 100% 22%, 88% 82%, 50% 100%, 12% 82%, 0 22%);
  display: grid;
  place-items: center;
  color: var(--acid);
  float: right;
}
.search {
  display: flex;
  border: 1px solid var(--line);
  background: var(--panel);
  height: 48px;
  margin-bottom: 12px;
}
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--text);
  padding: 0 14px;
  font: 11px var(--mono);
  outline: none;
}
.search button {
  width: 48px;
  background: none;
  color: var(--acid);
  border: 0;
  font-size: 18px;
}
.chart {
  width: 100%;
  height: 130px;
  margin: 10px 0;
  overflow: visible;
}
.chart path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(101, 245, 138, 0.55));
}
.chart .fill {
  fill: url(#area);
  stroke: none;
}
.chart line {
  stroke: var(--line);
  stroke-width: 1;
}
.lot {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #20261e;
  border: 1px solid var(--line);
  color: var(--acid);
}
.lot h3 {
  font-size: 10px;
  margin: 0;
}
.lot small {
  font-size: 8px;
  color: var(--muted);
}
.lot strong {
  font: 500 16px var(--display);
}
.state-lab {
  position: fixed;
  right: 12px;
  bottom: 78px;
  z-index: 18;
}
.state-lab > button {
  background: var(--amber);
  color: #151009;
  border: 0;
  padding: 9px 12px;
  font: 600 9px var(--mono);
  text-transform: uppercase;
}
.lab-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 220px;
  background: #171b16;
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 15px 50px #000;
}
.state-lab.open .lab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.lab-panel b {
  grid-column: 1/-1;
  font-size: 8px;
  color: var(--muted);
  padding: 5px;
}
.lab-panel button {
  background: #222820;
  color: var(--text);
  border: 1px solid var(--line);
  font: 8px var(--mono);
  padding: 8px;
}
.widget-state {
  min-height: 185px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.widget-state .state-icon {
  font: 500 30px var(--display);
  color: var(--amber);
  margin-bottom: 8px;
}
.widget-state .button {
  margin-top: 12px;
}
.clan-catalog-controls,
.member-filters {
  display: grid;
  gap: 12px;
}
.clan-catalog-controls label,
.member-filters {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.clan-catalog-controls input,
.clan-catalog-controls select,
.member-filters input,
.member-filters select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: #0d110d;
  color: var(--text);
  padding: 0 12px;
  font: 500 12px var(--mono);
}
.clan-catalog-status,
.clan-members {
  margin-top: 12px;
}
.clan-cards {
  display: grid;
  gap: 10px;
}
.clan-card {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 18px;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.clan-card:hover {
  border-color: var(--acid);
  transform: translateY(-1px);
}
.clan-card h2 {
  margin: 12px 0 0;
  font: 500 22px var(--display);
  text-transform: uppercase;
}
.clan-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.clan-card-meta b {
  color: var(--text);
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.catalog-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.button:disabled {
  opacity: 0.35;
  cursor: default;
}
.back-link {
  color: var(--acid);
  display: inline-block;
  margin-bottom: 18px;
  font-size: 10px;
  text-decoration: none;
  text-transform: uppercase;
}
.clan-hero .profile-fields {
  margin-top: 24px;
}
.member-list {
  margin-top: 14px;
}
.skeleton {
  width: 100%;
  height: 12px;
  margin: 7px 0;
  background: linear-gradient(90deg, #242a22 25%, #31382e 50%, #242a22 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton:nth-child(2) {
  width: 65%;
}
.stale-card {
  border-color: #66502c;
}
.revoked-card {
  border-color: #653426;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 760px) {
  .topbar {
    padding: 0 30px;
  }
  .icon-button {
    display: none;
  }
  .shell {
    display: grid;
    grid-template-columns: 210px 1fr;
  }
  .rail {
    display: flex;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    border-right: 1px solid var(--line);
    padding: 30px 16px;
    flex-direction: column;
    justify-content: space-between;
  }
  .rail nav {
    display: grid;
    gap: 5px;
  }
  .rail nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 13px 12px;
    font-size: 10px;
    text-transform: uppercase;
  }
  .rail nav a::before {
    content: attr(data-icon);
    font-size: 17px;
    margin-right: 12px;
  }
  .rail nav a.active {
    color: var(--acid);
    background: rgba(198, 239, 71, 0.06);
    border-left: 1px solid var(--acid);
  }
  .rail-foot {
    border-top: 1px solid var(--line);
    padding: 15px 10px;
  }
  .rail-foot span,
  .rail-foot small {
    font-size: 7px;
    color: var(--muted);
    display: block;
  }
  .rail-foot b {
    font: 500 15px var(--display);
    display: block;
    margin: 6px 0;
  }
  .rail-foot .session-button {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 8px;
  }
  .mobile-nav {
    display: none;
  }
  main {
    padding: 42px 36px 60px;
  }
  .state-lab {
    bottom: 15px;
  }
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .span-2 {
    grid-column: span 2;
  }
  .login-layout {
    grid-template-columns: 1fr 1fr;
  }
  .scan-lines {
    height: 480px;
  }
  .hero-readout {
    max-width: 650px;
  }
  .clan-hero {
    padding: 36px;
  }
  .clan-hero h1 {
    font-size: 58px;
  }
  .clan-catalog-controls {
    grid-template-columns: 130px minmax(240px, 1fr) auto;
    align-items: end;
  }
  .clan-card {
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
  }
  .member-filters {
    grid-template-columns: minmax(200px, 1fr) 220px;
  }
}
@media (min-width: 1150px) {
  .shell {
    grid-template-columns: 235px 1fr;
  }
  .grid.dashboard {
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
  }
  .dashboard .wide {
    grid-column: span 2;
  }
  .grid.profile-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .grid.clan-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .grid.auction-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
  .keyart-background {
    transform: scale(1.04);
  }
}

@media (max-width: 759px) {
  .keyart-background {
    background-position: 54% top;
    filter: saturate(0.76) contrast(1.08) brightness(0.5);
  }
  .keyart-shade {
    background: linear-gradient(
      180deg,
      rgba(2, 10, 16, 0.42),
      rgba(2, 10, 16, 0.92) 72%
    );
  }
}

/* Anomaly Glow theme */
.noise {
  opacity: 0.08;
  mix-blend-mode: screen;
}
.topbar,
.rail,
.mobile-nav {
  box-shadow: 0 0 35px rgba(0, 205, 226, 0.05);
}
.rail {
  background: rgba(2, 10, 16, 0.28);
  backdrop-filter: blur(9px);
}
.mobile-nav {
  background: rgba(2, 10, 16, 0.68);
  backdrop-filter: blur(12px);
}
.brand b,
.page-head h1,
.hero h1 {
  text-shadow: 0 0 24px rgba(52, 220, 237, 0.16);
}
.brand-mark,
.eyebrow,
.back-link,
.news-link {
  color: var(--cyan);
}
.brand-mark {
  border-color: var(--cyan);
}
.system-state i {
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}
.rail nav a.active,
.mobile-nav a.active {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(52, 220, 237, 0.12), transparent);
  border-color: var(--cyan);
}
.card::before {
  border-color: var(--cyan);
  filter: drop-shadow(0 0 5px var(--cyan));
}
.search,
.news-search,
input,
select,
textarea {
  background-color: rgba(2, 14, 22, 0.42) !important;
  border-color: var(--line) !important;
}
.item-icon,
.avatar {
  background: rgba(15, 67, 74, 0.38);
  box-shadow: inset 0 0 18px rgba(52, 220, 237, 0.08);
}
.clan-hero,
.news-card.featured {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(52, 220, 237, 0.12),
      transparent 36%
    ),
    linear-gradient(135deg, rgba(7, 35, 46, 0.58), rgba(2, 13, 21, 0.46));
}
.scan-lines {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      rgba(52, 220, 237, 0.045) 8px
    ),
    radial-gradient(circle, var(--cyan) 1px, transparent 2px);
  background-size:
    auto,
    24px 24px;
}
.scan-lines::after {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
}
.global-emission {
  background: rgba(3, 17, 25, 0.58);
  backdrop-filter: blur(12px);
}
.status-banner {
  background: rgba(33, 28, 18, 0.58);
  backdrop-filter: blur(10px);
}
.stats-row div,
.profile-facts > div,
.profile-fields > div {
  background: rgba(4, 27, 36, 0.42);
}
.bars i {
  background: linear-gradient(180deg, var(--acid), var(--cyan));
  box-shadow: 0 0 8px rgba(52, 220, 237, 0.18);
}
.state-lab > button {
  background: var(--cyan);
  color: #021015;
}
.lab-panel {
  background: rgba(3, 18, 27, 0.72);
  backdrop-filter: blur(14px);
}
.lab-panel button {
  background: rgba(10, 48, 58, 0.7);
}
.skeleton {
  background: linear-gradient(90deg, #08212b 25%, #0d3a47 50%, #08212b 75%);
  background-size: 200% 100%;
}

.profile-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}
.profile-controls label {
  color: var(--muted);
  display: grid;
  font: 8px var(--mono);
  gap: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-controls select {
  background: #171b16;
  border: 1px solid var(--line);
  color: var(--text);
  font: 11px var(--mono);
  min-height: 42px;
  padding: 0 12px;
}
.profile-facts,
.profile-fields {
  display: grid;
  gap: 1px;
  margin-top: 20px;
}
.profile-facts > div,
.profile-fields > div {
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 5px;
  padding: 13px;
}
.profile-facts small,
.profile-fields small,
.clan-summary small {
  color: var(--muted);
  font: 8px var(--mono);
}
.profile-facts strong,
.profile-fields strong {
  font: 11px var(--mono);
  overflow-wrap: anywhere;
}
.clan-summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}
.clan-summary strong,
.clan-summary small {
  display: block;
}
.sync-meta {
  color: var(--muted);
  font: 8px var(--mono);
  padding: 8px 2px;
  text-align: right;
}
@media (min-width: 760px) {
  .profile-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-facts,
  .profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
