:root {
  --bg: #02070c;
  --surface: #07111a;
  --surface-2: #0a1722;
  --line: rgba(148, 190, 211, .22);
  --line-strong: rgba(132, 218, 236, .48);
  --text: #f2f7f9;
  --muted: #a3b2bc;
  --cyan: #00d9ef;
  --cyan-soft: #6af1ff;
  --lime: #d8ff00;
  --orange: #ff7a22;
  --radius: 10px;
  --shadow: 0 20px 70px rgba(0,0,0,.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(0,217,239,.11), transparent 30rem),
    linear-gradient(180deg, #010406, #03080d 60%, #010305);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 42px;
  overflow: hidden;
  border: 1px solid rgba(224,240,247,.62);
  border-radius: 18px;
  background: rgba(2,8,13,.93);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025);
}

.site-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(2,8,13,.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 176px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border: 1px solid rgba(0,217,239,.45);
  border-radius: 50%;
  background: rgba(0,217,239,.08);
  filter: saturate(.9);
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { letter-spacing: .1em; font-size: 16px; }
.brand-copy small { margin-top: 4px; color: var(--cyan); font-weight: 800; letter-spacing: .13em; font-size: 8px; }
.site-nav { display: flex; justify-content: center; gap: 30px; }
.site-nav a { color: #d9e1e5; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; position: relative; padding: 27px 0 25px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 13px; height: 2px; background: var(--cyan); transition: right .25s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--cyan-soft); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #001217; background: linear-gradient(180deg, #28e5f4, #00aabe); box-shadow: 0 8px 24px rgba(0,217,239,.18); }
.button-primary:hover { box-shadow: 0 10px 30px rgba(0,217,239,.34); }
.button-outline { border-color: var(--cyan); background: rgba(0,217,239,.035); color: var(--cyan-soft); }
.button-outline:hover { background: rgba(0,217,239,.11); }
.text-link { color: #c7d3d9; font-size: 12px; font-weight: 700; }
.text-link:hover { color: var(--cyan); }

.hero { min-height: 500px; position: relative; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(2,7,12,.98) 0%, rgba(2,7,12,.92) 38%, rgba(2,7,12,.42) 70%, rgba(2,7,12,.16) 100%), linear-gradient(0deg, rgba(2,7,12,.92), transparent 38%); }
.hero::after { content:""; position:absolute; inset:0; z-index:1; background: radial-gradient(circle at 80% 50%, rgba(255,115,28,.18), transparent 18rem), linear-gradient(120deg, transparent 60%, rgba(0,217,239,.09)); mix-blend-mode: screen; }
.hero-background { position: absolute; inset: 0; background: url("assets/hero.jpg") center right / cover no-repeat; transform: scale(1.03); }
.hero-content { position: relative; z-index: 3; width: 56%; padding: 60px 50px 94px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 900; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 18px; font-family: "Arial Black", "Segoe UI", sans-serif; font-size: clamp(48px, 7vw, 82px); line-height: .88; letter-spacing: .035em; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0,0,0,.5); }
h1 span { color: var(--cyan); }
.hero-text { max-width: 520px; color: #d4dde1; font-size: 16px; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 22px; }
.hero-status { position: absolute; z-index: 4; left: 50px; right: 50px; bottom: 24px; display: flex; gap: 12px; }
.hero-status span { padding: 7px 12px; border-left: 2px solid var(--cyan); background: rgba(2,8,13,.62); color: #aebbc2; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; backdrop-filter: blur(8px); }
.hero-status b { color: #fff; }

.section { padding: 52px 50px; }
.section-heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; text-align: center; margin-bottom: 28px; }
.section-heading .line { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.section-heading .line:last-child { background: linear-gradient(90deg, var(--cyan), transparent); }
.section-heading h2 { margin: 0; font-family: "Arial Black", "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 24px; }
.section-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.game-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: linear-gradient(180deg, rgba(12,27,39,.95), rgba(5,13,20,.98)); box-shadow: 0 12px 35px rgba(0,0,0,.22); transition: border-color .25s ease, transform .25s ease; }
.game-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.game-image { height: 160px; overflow: hidden; position: relative; }
.game-image::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(5,13,20,.96), transparent 60%); }
.game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover img { transform: scale(1.06); }
.game-body { padding: 15px 14px 17px; }
.title-row { min-height: 54px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.game-body h3 { margin: 0; font-family: "Arial Black", "Segoe UI", sans-serif; font-size: 17px; line-height: 1.05; text-transform: uppercase; letter-spacing: .035em; }
.tag { align-self: flex-start; padding: 2px 6px; border: 1px solid var(--cyan); border-radius: 3px; color: var(--cyan); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.game-body p { color: var(--muted); font-size: 12px; min-height: 55px; }
.game-body a, .news-card a { color: var(--cyan); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.game-body a span { padding-left: 8px; }
.center { text-align: center; margin-top: 22px; }

.about-section { display: grid; grid-template-columns: .92fr 1.6fr; min-height: 360px; border-block: 1px solid var(--line); background: linear-gradient(90deg, #07111a 0 37%, rgba(7,17,26,.4)); }
.about-copy { padding: 48px 20px 46px 50px; position: relative; z-index: 2; }
.about-copy h2, .contact-intro h2 { font-family: "Arial Black", "Segoe UI", sans-serif; text-transform: uppercase; font-size: 27px; letter-spacing: .03em; margin-bottom: 16px; }
.about-copy > p:not(.eyebrow) { color: #c4cfd4; font-size: 13px; }
.about-features { display: flex; gap: 28px; margin: 24px 0; }
.about-features div { display: grid; justify-items: center; gap: 5px; min-width: 68px; }
.about-features span { color: var(--cyan); font-size: 24px; }
.about-features small { text-align: center; text-transform: uppercase; font-weight: 800; font-size: 8px; letter-spacing: .07em; }
.about-visual { position: relative; overflow: hidden; min-height: 360px; }
.about-visual::before { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(90deg, #07111a 0%, transparent 35%), linear-gradient(0deg, rgba(2,8,13,.65), transparent 40%); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.visual-label { position: absolute; z-index:2; bottom: 24px; right: 28px; display:grid; text-align:right; padding:10px 14px; border-right:2px solid var(--cyan); background:rgba(2,8,13,.65); }
.visual-label span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.1em; }
.visual-label b { font-size:13px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; transition: transform .2s ease, border-color .2s ease; }
.news-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.news-card img { width: 110px; height: 100%; min-height: 108px; object-fit: cover; border-radius: 3px; }
.news-card time { color: var(--cyan); font-size: 8px; text-transform: uppercase; }
.news-card h3 { margin: 5px 0; font-size: 13px; }
.news-card p { margin-bottom: 7px; color: var(--muted); font-size: 10px; }

.contact-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; padding: 50px; border-top: 1px solid var(--line); background: radial-gradient(circle at 25% 0%, rgba(0,217,239,.1), transparent 25rem), var(--surface); }
.contact-intro p:not(.eyebrow) { color: var(--muted); max-width: 360px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { color: #c7d2d7; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #030a10; color: #fff; padding: 12px; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,217,239,.08); }
.contact-form .button { justify-self: start; }
.form-note { align-self: center; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-form button:disabled { opacity: .6; cursor: wait; transform: none; }
.contact-form.form-success .form-note { color: #72e3a6; }
.contact-form.form-error .form-note { color: #ff8f8f; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 24px 28px; border-top: 1px solid var(--line); background: #02070b; }
.site-footer p, .site-footer > small { margin: 0; color: var(--muted); font-size: 10px; }
.footer-brand { min-width: 160px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: #fff; }
.socials a:hover { color: var(--cyan); border-color: var(--cyan); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; padding: 0 20px; }
  .menu-toggle { display: grid; gap: 4px; width: 38px; height: 38px; place-content: center; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 19px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 12px 20px 20px; background: rgba(2,8,13,.98); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; }
  .site-nav a::after { bottom: 8px; }
  .header-cta { display: none; }
  .hero-content { width: 70%; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 1fr; }
  .about-copy { padding-right: 50px; }
  .about-visual { min-height: 300px; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .site-header { min-height: 68px; }
  .hero { min-height: 560px; align-items: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(2,7,12,.22), rgba(2,7,12,.92) 46%, #02070c 100%); }
  .hero-background { background-position: 62% top; height: 280px; }
  .hero-content { width: 100%; padding: 292px 22px 88px; }
  h1 { font-size: 45px; }
  .hero-text { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-status { left: 22px; right: 22px; bottom: 22px; overflow-x: auto; }
  .hero-status span { white-space: nowrap; }
  .section { padding: 42px 18px; }
  .section-heading { grid-template-columns: 32px 1fr 32px; gap: 10px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { display: grid; grid-template-columns: 38% 62%; }
  .game-image { height: auto; min-height: 150px; }
  .game-body { padding: 14px; }
  .game-body p { min-height: 0; }
  .about-copy { padding: 42px 22px; }
  .about-features { justify-content: space-between; gap: 8px; }
  .about-visual { min-height: 220px; }
  .contact-section { padding: 42px 22px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; text-align: left; padding: 26px 22px; }
  .footer-brand { min-width: 0; }
  .brand { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Fractured Cosmos: single-game showcase */
.featured-game {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 28, 40, .98), rgba(4, 12, 18, .98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34), inset 0 0 42px rgba(0, 217, 239, .025);
}
.featured-game-image {
  min-height: 350px;
  position: relative;
  overflow: hidden;
}
.featured-game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 14, .1), rgba(3, 9, 14, .08) 55%, rgba(3, 9, 14, .86)),
    linear-gradient(0deg, rgba(3, 9, 14, .94), transparent 60%);
}
.featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.featured-game:hover .featured-game-image img { transform: scale(1.035); }
.game-logo-lockup {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 24px;
  max-width: 520px;
}
.game-logo-lockup > span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.game-logo-lockup h3 {
  margin: 4px 0 8px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(29px, 4vw, 46px);
  line-height: .98;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .8);
}
.game-logo-lockup p {
  margin: 0;
  color: #d6e0e5;
  font-size: 13px;
}
.featured-game-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}
.featured-game-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.featured-game-heading h3 {
  margin-bottom: 14px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1.08;
  text-transform: uppercase;
}
.featured-game-body > p {
  color: #b9c7ce;
  font-size: 13px;
}
.status-tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  color: var(--cyan-soft);
  background: rgba(0, 217, 239, .07);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.game-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 24px;
}
.game-facts span {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 8px 10px;
  border-left: 2px solid var(--cyan);
  background: rgba(0, 217, 239, .045);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.game-facts b {
  color: #fff;
  font-size: 13px;
}
.featured-game-body .button { align-self: flex-start; }

.factions-intro {
  margin: 42px 0 20px;
  text-align: center;
}
.factions-intro h3 {
  margin: 0;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 21px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.faction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.faction-card {
  --faction-accent: var(--cyan);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(12, 27, 39, .96), rgba(5, 13, 20, .99));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.faction-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--faction-accent);
  box-shadow: 0 0 18px var(--faction-accent);
}
.faction-card:hover {
  transform: translateY(-5px);
  border-color: var(--faction-accent);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
}
.faction-solar { --faction-accent: #4ce9ff; }
.faction-iron { --faction-accent: #ff7a22; }
.faction-swarm { --faction-accent: #b8f333; }
.faction-aegis { --faction-accent: #9faaff; }
.faction-image {
  height: 155px;
  position: relative;
  overflow: hidden;
}
.faction-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 20, .98), transparent 65%);
}
.faction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.faction-card:hover .faction-image img { transform: scale(1.06); }
.faction-body {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 15px 15px 18px;
  position: relative;
}
.faction-number {
  position: absolute;
  top: -30px;
  right: 12px;
  color: rgba(255, 255, 255, .7);
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.faction-type {
  margin: 0 0 4px;
  color: var(--faction-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.faction-body h3 {
  margin-bottom: 11px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.faction-body > p:not(.faction-type) {
  color: var(--muted);
  font-size: 11px;
}
.faction-style {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #dce6ea;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .featured-game { grid-template-columns: 1fr; }
  .featured-game-image { min-height: 330px; }
  .featured-game-image::after {
    background: linear-gradient(0deg, rgba(3, 9, 14, .96), transparent 66%);
  }
  .faction-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .featured-game-image { min-height: 285px; }
  .game-logo-lockup { left: 20px; right: 20px; bottom: 18px; }
  .featured-game-body { padding: 25px 20px 28px; }
  .featured-game-heading { display: block; }
  .status-tag { display: inline-flex; margin-bottom: 14px; }
  .game-facts { grid-template-columns: 1fr; }
  .game-facts span { min-height: 45px; }
  .faction-grid { grid-template-columns: 1fr; }
  .faction-card { display: grid; grid-template-columns: 39% 61%; }
  .faction-image { height: auto; min-height: 210px; }
  .faction-body { min-height: 210px; }
  .faction-number { top: 10px; right: 12px; color: rgba(255, 255, 255, .14); text-shadow: none; }
}

/* Logo image upgrade */
.brand-mark-image {
  padding: 2px;
  background: radial-gradient(circle at 30% 30%, rgba(0,217,239,.14), rgba(0,217,239,.04));
}
.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Interactive faction details */
.faction-instruction {
  margin: 8px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
}
.faction-card {
  cursor: pointer;
}
.faction-card:focus-visible {
  outline: 2px solid var(--faction-accent);
  outline-offset: 2px;
}
.faction-card.is-active {
  transform: translateY(-5px);
  border-color: var(--faction-accent);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .34);
}
.faction-card.is-active .faction-style {
  border-top-color: rgba(255,255,255,.18);
}
.faction-cta {
  margin-top: 12px;
  color: var(--faction-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.faction-detail-shell {
  margin-top: 18px;
}
.faction-detail-panel {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(0,217,239,.08), transparent 20rem),
    linear-gradient(180deg, rgba(12,27,39,.96), rgba(5,13,20,.99));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.faction-detail-panel.is-active {
  animation: detailFade .22s ease;
}
@keyframes detailFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.detail-header h3 {
  margin: 0 0 8px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.detail-subtitle {
  margin: 0;
  max-width: 720px;
  color: #c3d0d6;
  font-size: 13px;
}
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.detail-badges span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,217,239,.05);
  color: #dce6ea;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.detail-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2,8,13,.5);
}
.detail-grid h4 {
  margin: 0 0 10px;
  color: var(--cyan-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.detail-grid p,
.detail-grid li {
  color: #c0ccd2;
  font-size: 12px;
}
.detail-grid ul {
  margin: 0;
  padding-left: 18px;
}
.detail-grid li + li {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .detail-header {
    flex-direction: column;
  }
  .detail-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .detail-header h3 {
    font-size: 21px;
  }
  .faction-detail-panel {
    padding: 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}


/* Legal pages */
.form-privacy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
.form-privacy a,
.footer-links a,
.legal-content a {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-decoration-color: rgba(106, 241, 255, .38);
  text-underline-offset: 3px;
}
.form-privacy a:hover,
.footer-links a:hover,
.legal-content a:hover { color: #fff; }
.footer-copy { display: grid; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.legal-main {
  padding: 54px 50px 72px;
  background:
    radial-gradient(circle at 82% 0%, rgba(0,217,239,.09), transparent 28rem),
    linear-gradient(180deg, rgba(7,17,26,.96), rgba(2,7,12,.99));
}
.legal-hero {
  max-width: 840px;
  padding: 18px 0 34px;
}
.legal-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: .95;
}
.legal-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: #c7d2d8;
  font-size: 14px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 225px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3,10,16,.72);
}
.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.legal-toc a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148,190,211,.12);
  color: #c8d3d8;
  font-size: 11px;
}
.legal-toc a:last-child { border-bottom: 0; }
.legal-toc a:hover { color: var(--cyan-soft); }
.legal-content {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(2,8,13,.75);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.legal-content section {
  scroll-margin-top: 100px;
  padding: 0 0 26px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
}
.legal-content section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.legal-content h2 {
  margin: 0 0 13px;
  color: #f4fbfd;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 20px;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.legal-content h3 {
  margin: 20px 0 8px;
  color: var(--cyan-soft);
  font-size: 13px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.legal-content p,
.legal-content li {
  color: #c4d0d5;
  font-size: 12px;
}
.legal-content ul,
.legal-content ol {
  margin: 10px 0 0;
  padding-left: 20px;
}
.legal-content li + li { margin-top: 7px; }
.legal-note {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  background: rgba(0,217,239,.075);
  color: #d8e7eb;
  font-size: 12px;
}
.legal-contact-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7,17,26,.72);
}
.legal-contact-card strong { color: #fff; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc a { display: inline-block; margin-right: 15px; border-bottom: 0; }
}

@media (max-width: 640px) {
  .legal-main { padding: 38px 20px 54px; }
  .legal-hero { padding-top: 6px; }
  .legal-hero h1 { font-size: 39px; }
  .legal-content { padding: 22px 18px; }
  .legal-content h2 { font-size: 17px; }
  .legal-meta { display: grid; gap: 5px; }
  .footer-links { gap: 7px 13px; }
}
