/* Red Galaxy — site styles (2026 redesign, converted from Claude Design canvas) */

:root {
  --bg: #0a0708;
  --panel: #0d090a;
  --panel2: #141011;
  --text: #e8e2e0;
  --muted: #c6bdba;
  --muted2: #b9afac;
  --muted3: #a49b98;
  --dim: #7d7370;
  --dim2: #6f6663;
  --red: #c83020;
  --red-hi: #e03a26;
  --orange: #ff5a3c;
  --orange-soft: #ff8a72;
  --line: rgba(255,255,255,0.07);
  --line2: rgba(255,255,255,0.1);
  --line3: rgba(255,255,255,0.14);
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font-body); min-height: 100vh; overflow-x: hidden; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-soft); }
::selection { background: var(--red); color: #fff; }

@keyframes rgFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rgDrift { from { transform: scale(1.05); } to { transform: scale(1.13) translate3d(-1.5%,-1%,0); } }
@keyframes rgPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ── Header ─────────────────────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,7,8,0.94), rgba(10,7,8,0.72));
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: 1320px; margin: 0 auto; padding: 13px clamp(14px,3vw,28px);
  display: flex; align-items: center; gap: clamp(10px,1.6vw,24px); flex-wrap: wrap;
}
.hd-logo { display: flex; align-items: center; flex: 0 0 auto; }
.hd-logo img { height: 32px; width: auto; display: block; }
.hd-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; order: 3; }
.lang-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.13);
  color: var(--text); padding: 9px 13px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  cursor: pointer; white-space: nowrap; display: inline-block;
}
.lang-btn:hover { background: rgba(255,255,255,0.11); color: var(--text); }
.cta-play {
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.cta-play:hover { background: var(--red-hi); color: #fff; }
.hd-nav {
  display: flex; gap: 2px; align-items: center; flex: 1 1 100%; min-width: 0;
  order: 4; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
}
.hd-navlink {
  background: transparent; border: none; color: var(--muted2);
  padding: 8px 12px; border-radius: 5px; font: inherit;
  letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap;
}
.hd-navlink:hover { color: #fff; }
.hd-navlink.active { background: rgba(200,48,32,0.18); color: #fff; }
.hd-sep { width: 1px; height: 18px; background: var(--line3); margin: 0 8px; }
.hd-ext { color: var(--muted2); padding: 8px 10px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.hd-ext:hover { color: #fff; }
.hd-ext .arr { font-family: var(--font-mono); font-size: 10px; opacity: 0.6; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: flex-end;
  overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: rgDrift 34s ease-in-out infinite alternate;
}
video.hero-bg { animation: none; }
.hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,7,8,0.55) 0%, rgba(10,7,8,0.15) 35%, rgba(10,7,8,0.88) 82%, #0a0708 100%);
}
.hero-in { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px,4vw,28px) 96px; width: 100%; }
.hero-box { max-width: 760px; animation: rgFade 0.8s ease both; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(200,48,32,0.5); background: rgba(200,48,32,0.14);
  padding: 7px 14px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--orange-soft); margin-bottom: 28px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: block; animation: rgPulse 2.4s ease-in-out infinite; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px,6.6vw,88px); line-height: 0.97; letter-spacing: -0.02em;
  margin: 0 0 20px; text-transform: uppercase; color: #fff; text-wrap: balance;
}
.hero-body { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 580px; margin: 0 0 40px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-red {
  background: var(--red); color: #fff; padding: 17px 36px; border-radius: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 44px rgba(200,48,32,0.4);
}
.btn-red:hover { background: var(--red-hi); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2);
  color: var(--text); padding: 17px 36px; border-radius: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.13); color: #fff; }

/* ── Stats strip ────────────────────────────────────────── */
.stats { border-bottom: 1px solid var(--line); background: var(--panel); }
.stats-in {
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px,4vw,28px) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
}
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat-k { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--orange); line-height: 1; }
.stat-v { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--dim); margin-top: 8px; text-transform: uppercase; }

/* ── Sections ───────────────────────────────────────────── */
.sec { max-width: 1320px; margin: 0 auto; padding: clamp(56px,7vw,96px) clamp(16px,4vw,28px); }
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--dim); margin-bottom: 16px; }
.sec-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px,5vw,68px); line-height: 1; text-transform: uppercase;
  margin: 0 0 22px; color: #fff;
}

/* ── Media / screenshots ────────────────────────────────── */
.media-hint { font-size: 16px; line-height: 1.6; color: var(--dim); margin: 0 0 48px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px,1fr)); gap: 16px; }
.shot {
  padding: 0; border: 1px solid var(--line2); background: var(--panel2);
  cursor: pointer; overflow: hidden; position: relative; aspect-ratio: 16/9; display: block;
}
.shot:hover { border-color: rgba(200,48,32,0.7); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; transition: transform 0.5s ease, opacity 0.3s; }
.shot:hover img { transform: scale(1.04); opacity: 1; }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(10,7,8,0.92));
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: #d5cecb; text-transform: uppercase;
}

/* ── Community ──────────────────────────────────────────── */
.comm { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.comm-glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 12%, rgba(200,48,32,0.16), transparent 70%); }
.comm-in { position: relative; max-width: 1320px; margin: 0 auto; padding: clamp(56px,7vw,96px) clamp(16px,4vw,28px) 120px; }
.comm-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px,4vw,54px); line-height: 1; text-transform: uppercase;
  margin: 0 0 22px; color: #fff;
}
.comm-intro { font-size: 18.5px; line-height: 1.65; color: var(--muted2); max-width: 620px; margin: 0 0 56px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line2); background: rgba(255,255,255,0.03);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; color: #fff; margin: 0; }
.card p { font-size: 15.5px; color: var(--muted3); margin: 0; line-height: 1.6; }
.btn-discord {
  margin-top: auto; align-self: flex-start; background: #5865f2; color: #fff;
  padding: 14px 28px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.btn-discord:hover { background: #6d78f5; color: #fff; }
.card-links { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.card-links.tight { margin-top: 6px; }
.rowlink {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line3); padding: 14px 18px; border-radius: 6px;
  color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.rowlink:hover { border-color: var(--red); background: rgba(200,48,32,0.12); color: #fff; }
.rowlink .tag { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.rowlink-soon {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px dashed rgba(255,255,255,0.12); padding: 14px 18px; border-radius: 6px;
  color: var(--dim2); font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.rowlink-soon .tag { font-family: var(--font-mono); font-size: 11px; }

/* ── Footer ─────────────────────────────────────────────── */
.ft { border-top: 1px solid var(--line); background: var(--bg); }
.ft-mid {
  max-width: 1320px; margin: 0 auto; padding: 52px clamp(16px,4vw,28px) 36px;
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
}
.ft-mid img { height: 30px; width: auto; display: block; opacity: 0.85; }
.ft-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.ft-nav a { color: var(--muted3); }
.ft-nav a:hover { color: #fff; }
.ft-bot {
  max-width: 1320px; margin: 0 auto; padding: 24px clamp(16px,4vw,28px) 52px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--dim2); line-height: 1.8;
}
.ft-company { text-align: right; }

/* ── Lightbox ───────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,4,5,0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw; cursor: zoom-out; backdrop-filter: blur(6px);
  animation: rgFade 0.25s ease both;
}
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid rgba(255,255,255,0.15); }
.lb-close {
  position: absolute; top: 24px; right: 28px; background: none;
  border: 1px solid rgba(255,255,255,0.25); color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 18px; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,0.12); }

/* ── Legal pages ────────────────────────────────────────── */
.legal { margin: 0 auto; padding: clamp(56px,7vw,96px) clamp(16px,4vw,28px) 110px; }
.legal.narrow { max-width: 820px; }
.legal.wide { max-width: 1320px; }
.legal-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--dim); margin-bottom: 16px; }
.legal-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px,4.4vw,56px); line-height: 1.02; text-transform: uppercase;
  margin: 0 0 14px; color: #fff;
}
.legal-updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); margin: 0 0 32px; }
.legal-notice {
  font-size: 14.5px; line-height: 1.6; color: var(--orange-soft);
  border: 1px solid rgba(200,48,32,0.45); background: rgba(200,48,32,0.1);
  padding: 14px 18px; border-radius: 6px; margin: 0 0 28px;
}
.legal-intro { font-size: 17px; line-height: 1.75; color: var(--muted); margin: 0 0 8px; text-wrap: pretty; }
.legal-body { display: flex; flex-direction: column; gap: 4px; }
.lsec { display: flex; flex-direction: column; gap: 12px; }
.lsec.l2 { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 30px; margin-top: 24px; }
.lsec.l3 { border-top: none; padding-top: 10px; margin-top: 10px; }
.lsec h2, .lsec h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: 0.01em; }
.lsec.l2 > h2 { font-size: 24px; color: #fff; }
.lsec.l3 > h3 { font-size: 18px; color: var(--text); }
.lp { font-size: 16px; line-height: 1.75; color: var(--muted3); margin: 0; text-wrap: pretty; }
.lul { display: flex; gap: 12px; align-items: flex-start; }
.lul .dash { color: var(--red); font-size: 15px; line-height: 1.75; flex: 0 0 auto; }
.lul .txt { font-size: 16px; line-height: 1.75; color: var(--muted3); text-wrap: pretty; }
.legal-nav { display: flex; gap: 14px; flex-wrap: wrap; margin: 52px 0 0; border-top: 1px solid var(--line2); padding-top: 28px; }
.legal-nav a {
  background: none; border: 1px solid rgba(255,255,255,0.18); color: var(--text);
  padding: 12px 22px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.legal-nav a:hover { border-color: var(--red); color: #fff; }

/* Sanctions table — grid on desktop, cards on mobile */
.stbl-wrap { margin: 36px 0 0; }
.stbl-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: #fff; margin: 0 0 18px; }
.stbl { border: 1px solid rgba(255,255,255,0.12); overflow: hidden; }
.stbl-head, .stbl-row { display: grid; grid-template-columns: minmax(0,2.6fr) repeat(7, minmax(0,1fr)); }
.stbl-head { background: var(--panel2); border-bottom: 1px solid rgba(255,255,255,0.12); }
.stbl-head > div {
  padding: 10px; font-family: var(--font-mono); font-size: clamp(8px,1vw,9.5px);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted2);
  line-height: 1.4; overflow-wrap: anywhere; hyphens: auto;
}
.stbl-row { border-bottom: 1px solid rgba(255,255,255,0.07); }
.stbl-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.stbl-row > div {
  padding: 10px 8px; font-size: clamp(10px,1.25vw,12.5px); line-height: 1.45;
  color: var(--muted3); overflow-wrap: anywhere; hyphens: auto; min-width: 0;
}
.stbl-row > div:first-child { color: var(--text); }
.stbl-row > div.perm { color: var(--orange); }
.scards { display: none; flex-direction: column; gap: 12px; }
.scard { border: 1px solid rgba(255,255,255,0.12); background: var(--panel); padding: 16px; }
.scard-rule { font-size: 15px; line-height: 1.45; color: #fff; font-weight: 600; margin-bottom: 12px; }
.scard-steps { display: flex; flex-direction: column; gap: 6px; }
.scard-step { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 6px; }
.scard-step .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
.scard-step .val { font-size: 13.5px; color: var(--muted); text-align: right; }
.scard-step .val.perm { color: var(--orange); }
@media (max-width: 900px) {
  .stbl-wrap .stbl { display: none; }
  .scards { display: flex; }
}
