:root {
  --bg: #030911;
  --panel: rgba(5, 15, 27, 0.78);
  --panel-strong: rgba(5, 16, 29, 0.94);
  --line: rgba(143, 165, 186, 0.18);
  --text: #f5f7fb;
  --muted: #a4b0bd;
  --orange: #ff7a00;
  --orange-2: #ff9b22;
  --blue: #56b9ff;
  --red: #ff3d35;
  --violet: #9f4fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 5%, rgba(37, 76, 110, 0.14), transparent 32%),
    linear-gradient(180deg, #050b14 0%, #02070d 100%);
  font-family: Arial, Helvetica, sans-serif;
}

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

.page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  height: 48px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-link {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #d8dde5;
  opacity: 0.9;
}

.top-link:hover {
  color: #fff;
  opacity: 1;
}

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand span,
.hero h1 span {
  color: var(--orange);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: #d8dde5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  color: #fff;
  opacity: 1;
}

.nav a.active {
  color: var(--orange);
  opacity: 1;
}

.top-cta,
.primary {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(255, 122, 0, 0.18);
}

.top-cta {
  min-width: 150px;
}

.hero {
  position: relative;
  min-height: 285px;
  display: grid;
  grid-template-columns: 430px 1fr;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 22% 45%, rgba(48, 90, 125, 0.09), transparent 32%),
    linear-gradient(90deg, rgba(3, 9, 17, 0.98), rgba(3, 9, 17, 0.58) 45%, rgba(3, 9, 17, 0) 72%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 4px;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero h2 {
  margin: 10px 0 16px;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.hero p {
  width: 350px;
  margin: 0;
  color: #c7d0dc;
  font-size: 13px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.primary {
  min-width: 185px;
  padding: 0 22px;
}

.trailer {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 3px;
  color: #e4e9f0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trailer i {
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.trailer i::after {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  content: "";
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 12px 0 16px;
}

.section-title span {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.section-title h1,
.section-title h2 {
  margin: 0;
  color: #dce2ea;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.features {
  padding-top: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.feature-grid--page {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.feature-grid--page article {
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.page-intro-text {
  text-align: center;
  margin: 0 0 8px;
}

.feature-grid article {
  min-height: 124px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-grid h3 {
  margin: 12px 0 6px;
  color: #f4f6fa;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid p {
  margin: 0;
  color: #aab4c1;
  font-size: 11px;
  line-height: 1.35;
}

.feature-icon {
  display: block;
  width: 58px;
  height: 58px;
  margin: -4px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 122, 0, 0.22)) drop-shadow(0 0 14px rgba(86, 185, 255, 0.16));
}

.icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  color: var(--orange);
  position: relative;
}

.icon::before,
.icon::after {
  position: absolute;
  content: "";
}

.freedom::before {
  inset: 6px 17px;
  border: 2px solid currentColor;
  border-bottom: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.freedom::after {
  left: 9px;
  right: 9px;
  bottom: 4px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
  clip-path: polygon(50% 100%, 100% 0, 0 0);
}

.swords::before,
.swords::after {
  top: 4px;
  left: 20px;
  width: 3px;
  height: 38px;
  background: currentColor;
  transform: rotate(45deg);
}

.swords::after {
  transform: rotate(-45deg);
}

.cube::before {
  inset: 8px;
  border: 2px solid currentColor;
  transform: rotate(30deg) skew(-12deg);
}

.cube::after {
  top: 13px;
  left: 21px;
  width: 2px;
  height: 23px;
  background: currentColor;
}

.chart::before {
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 2px;
  background: currentColor;
}

.chart::after {
  left: 10px;
  bottom: 9px;
  width: 25px;
  height: 26px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: skew(-18deg);
}

.clan::before {
  inset: 12px 8px 6px;
  border: 2px solid currentColor;
  border-radius: 14px 14px 2px 2px;
}

.clan::after {
  top: 6px;
  left: 17px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.trophy::before {
  inset: 8px 10px 18px;
  border: 2px solid currentColor;
  border-radius: 0 0 10px 10px;
}

.trophy::after {
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 12px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.faction-grid article {
  position: relative;
  min-height: 96px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  padding: 16px 22px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background:
    radial-gradient(circle at 42px 50%, var(--faction-glow), transparent 58px),
    linear-gradient(135deg, rgba(8, 19, 31, 0.86), rgba(4, 10, 17, 0.92));
}

.faction-grid img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px currentColor);
}

.raiders {
  --faction-glow: rgba(255, 61, 53, 0.2);
  color: var(--red);
}

.rangers {
  --faction-glow: rgba(61, 164, 255, 0.2);
  color: #3da4ff;
}

.xeno {
  --faction-glow: rgba(159, 79, 255, 0.2);
  color: var(--violet);
}

.faction-grid h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.faction-grid p {
  margin: 0;
  color: #b6c0cb;
  font-size: 12px;
  line-height: 1.35;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(5, 13, 22, 0.72);
}

.info-strip article {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-content: center;
  column-gap: 12px;
  padding: 10px 24px;
}

.mini {
  grid-row: span 2;
  align-self: center;
  width: 30px;
  height: 30px;
  border: 1px solid #aeb8c4;
  border-radius: 50%;
  opacity: 0.85;
}

.info-strip h3 {
  margin: 0;
  color: #e6ebf2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-strip p {
  margin: 4px 0 0;
  color: #9faab7;
  font-size: 11px;
  line-height: 1.25;
}

.bottom-cta {
  padding: 16px 0 10px;
  text-align: center;
}

.bottom-cta p {
  margin: 0 0 10px;
  color: #ccd3dc;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.bottom-cta .primary {
  min-width: 205px;
}

.site-footer {
  margin-top: 20px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.site-footer a {
  color: #9faab7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer-sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.legal-header {
  margin-bottom: 28px;
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.legal-header h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.legal-meta {
  margin: 0 0 16px;
  color: #8fa0b3;
  font-size: 11px;
}

.legal-intro {
  margin: 0;
  color: #c7d0dc;
  font-size: 13px;
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  color: #e6ebf2;
}

.legal-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 122, 0, 0.45);
  border-radius: 3px;
  color: var(--orange);
  font-size: 11px;
}

.legal-section p {
  margin: 0 0 12px;
  color: #aab4c1;
  font-size: 13px;
  line-height: 1.55;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #aab4c1;
  font-size: 13px;
  line-height: 1.55;
}

.legal-list li {
  margin-bottom: 8px;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 12px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table th {
  width: 34%;
  color: #dce2ea;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
}

.legal-table td {
  color: #aab4c1;
  line-height: 1.45;
}

.legal-table thead th {
  width: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.legal-table a {
  color: var(--blue);
}

.legal-contact {
  text-align: center;
}

.legal-contact .contact-email {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .legal-header h1 {
    font-size: 22px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .legal-table th {
    border-bottom: 0;
  }
}

.contact-section {
  text-align: center;
}

.contact-card {
  max-width: 420px;
  margin: 16px auto 0;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(5, 13, 22, 0.72);
}

.contact-lead {
  margin: 0 0 14px;
  color: #c7d0dc;
  font-size: 14px;
  line-height: 1.5;
}

.contact-email {
  display: inline-block;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.contact-email:hover {
  color: var(--orange-2);
}

.contact-note {
  margin: 14px 0 0;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 24px, 1120px);
  }

  .topbar,
  .hero,
  .feature-grid,
  .feature-grid--page,
  .faction-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .feature-grid--page article {
    border-right: 0;
  }

  .topbar {
    height: auto;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-art img {
    opacity: 0.42;
  }

  .feature-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

}

.page-section {
  padding: 24px 0 16px;
}

.page-section h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: #dce2ea;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
}

.faction-count {
  margin-top: 6px !important;
  color: currentColor !important;
  font-size: 11px !important;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.85;
}

.leaderboard {
  margin-top: 14px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(5, 13, 22, 0.72);
  font-size: 12px;
}

.lb-table th,
.lb-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-table th {
  color: #aab4c1;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.lb-table a {
  color: var(--blue);
}

.lb-table a:hover {
  text-decoration: underline;
}

.news-preview {
  margin-top: 14px;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-list--full {
  margin-top: 8px;
}

.news-card {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(5, 13, 22, 0.72);
}

.news-card time {
  display: block;
  color: #8fa0b3;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.news-card h2,
.news-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card p,
.news-body {
  margin: 0;
  color: #aab4c1;
  font-size: 12px;
  line-height: 1.45;
}

.news-more {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
}

.news-more a {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}

.profile-search,
.login-form {
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin: 16px auto 0;
}

.profile-search label,
.login-form label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #aab4c1;
}

.profile-search input,
.login-form input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(5, 13, 22, 0.9);
  color: var(--text);
  font-size: 14px;
}

.form-error {
  margin: 12px auto 0;
  max-width: 360px;
  color: var(--red);
  font-size: 12px;
  text-align: center;
}

.login-section {
  text-align: center;
}

.login-hint {
  max-width: 480px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-card {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(5, 13, 22, 0.72);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.profile-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.online-badge {
  color: #5dff8a;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-score .label {
  display: block;
  color: #8fa0b3;
  font-size: 10px;
  text-transform: uppercase;
}

.profile-score .value {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
}

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

.profile-grid article {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.profile-grid h3 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  color: #dce2ea;
}

.profile-grid p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #aab4c1;
}

.resources-block,
.events-block {
  margin-top: 16px;
}

.resources-block h3,
.events-block h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
}

.resources-list,
.events-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 12px;
  font-size: 11px;
  color: #aab4c1;
}

.events-list {
  grid-template-columns: 1fr;
  gap: 6px;
}

.events-list time {
  color: #8fa0b3;
  margin-right: 8px;
  font-size: 10px;
}

@media (max-width: 900px) {
  .profile-grid,
  .resources-list {
    grid-template-columns: 1fr 1fr;
  }

  .profile-header {
    flex-direction: column;
  }
}
