﻿:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #0d1218;
  --surface-2: #111923;
  --line: rgba(164, 196, 226, 0.16);
  --line-strong: rgba(111, 202, 255, 0.42);
  --text: #eef6ff;
  --muted: #a8b8c8;
  --dim: #66788b;
  --blue: #7bc8ff;
  --cyan: #36e3d0;
  --amber: #ffc857;
  --discord: #8b96ff;
  --reddit: #ff875c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 14% 18%, rgba(123, 200, 255, 0.12), transparent 28%), radial-gradient(circle at 82% 10%, rgba(54, 227, 208, 0.08), transparent 30%), linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%); z-index: -1; }
a { color: inherit; }
button, input { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 72px; padding: 12px clamp(18px, 4vw, 56px); background: rgba(7, 9, 13, 0.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.site-header-inner { width: min(1520px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(150px, 1fr); align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 136px; height: 76px; padding: 8px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.site-nav a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.header-discord { justify-self: end; }
.button, .header-discord { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 800; transition: transform .16s ease; }
.primary, .header-discord { color: #071019; background: linear-gradient(135deg, var(--cyan), var(--blue)); border-color: transparent; box-shadow: 0 12px 34px rgba(54, 227, 208, 0.2); }
.secondary { color: var(--text); background: rgba(255,255,255,0.06); }
.secondary:hover, .button:hover, .header-discord:hover { transform: translateY(-1px); }
main { overflow: hidden; }
.hero { position: relative; min-height: calc(100vh - 72px); display: grid; align-items: end; padding: clamp(110px, 16vh, 180px) clamp(18px, 5vw, 72px) 56px; }
.hero-inner { width: min(1520px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: end; gap: 40px; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,13,0.92) 0%, rgba(7,9,13,0.7) 40%, rgba(7,9,13,0.36) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,0.28) 34%, rgba(7,9,13,0.08) 100%), url("assets/spaceyap01.png") center / cover no-repeat; z-index: -1; }
.hero-content { max-width: 880px; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(46px, 7vw, 104px); line-height: 0.92; letter-spacing: 0; max-width: 900px; }
.hero-lede { max-width: 760px; margin: 24px 0 0; color: #d5e2ef; font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-panel { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(7, 9, 13, 0.62); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.hero-panel div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 6px; background: rgba(255,255,255,0.05); }
.hero-panel strong { color: var(--blue); font-size: 24px; }
.hero-panel span { color: var(--muted); text-align: right; }
.intro-strip { width: min(1520px, calc(100% - 36px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transform: translateY(-24px); background: var(--line); }
.intro-strip div { padding: 18px; background: rgba(13, 18, 24, 0.96); }
.intro-strip span { display: block; color: var(--dim); font-size: 12px; text-transform: uppercase; font-weight: 900; }
.intro-strip strong { display: block; margin-top: 4px; }
.section-shell, .community { width: min(1520px, calc(100% - 36px)); margin: 64px auto; }
.section-heading { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(260px, 1fr); gap: 28px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2, .community h2 { margin: 0; font-size: clamp(30px, 4vw, 58px); line-height: 1; letter-spacing: 0; }
.section-heading p:not(.eyebrow), .community p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 18px; }
.archive-tools, .ship-tools { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 24px 0 14px; }
.search-box { display: grid; gap: 7px; flex: 1 1 340px; max-width: 680px; }
.search-box.compact { max-width: 440px; }
.search-box span { color: var(--cyan); font-size: 12px; text-transform: uppercase; font-weight: 900; }
.search-box input { width: 100%; min-height: 52px; color: var(--text); background: linear-gradient(180deg, rgba(123,200,255,0.1), rgba(255,255,255,0.045)), var(--surface); border: 1px solid rgba(123, 200, 255, 0.48); border-radius: 8px; padding: 0 16px; outline: none; box-shadow: 0 0 0 3px rgba(123, 200, 255, 0.08), 0 14px 34px rgba(0,0,0,0.18); }
.search-box input::placeholder { color: #c4d5e6; opacity: .72; }
.search-box input:hover { border-color: rgba(54, 227, 208, 0.58); }
.search-box input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(54,227,208,0.18), 0 16px 38px rgba(0,0,0,0.24); }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 100%; }
.segmented.scroll { overflow-x: auto; }
.segmented button { min-height: 38px; border: 0; border-radius: 6px; padding: 0 12px; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; font-weight: 800; }
.segmented button.active { color: #071019; background: var(--blue); }
.results-line { color: var(--muted); margin: 10px 0 18px; min-height: 24px; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.archive-grid.compact-preview { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hof-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.hof-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.hof-card:focus-visible { outline: 3px solid rgba(123,200,255,.45); outline-offset: 2px; }
.hof-thumb { aspect-ratio: 16 / 10; background: #020305; overflow: hidden; }
.hof-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.hof-card-body { padding: 14px; }
.card-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 12px; text-transform: uppercase; font-weight: 900; }
.hof-card h3 { margin: 10px 0 8px; font-size: 18px; }
.hof-card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge-original { color: var(--blue); }
.badge-melee { color: var(--cyan); }
.badge-newbie { color: var(--amber); }
.ships-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ships-grid.compact-preview { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ship-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.ship-card h3 { margin: 0 0 8px; font-size: 20px; }
.ship-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.race-pill { display: inline-flex; min-height: 26px; align-items: center; padding: 0 9px; border-radius: 999px; background: rgba(123,200,255,0.12); color: var(--blue); font-size: 12px; font-weight: 900; }
.race-pill.muted { color: var(--muted); background: rgba(255,255,255,0.06); }
.ship-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 14px; }
.ship-stats div { display: grid; grid-template-columns: minmax(54px, auto) minmax(0, 1fr); align-items: baseline; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ship-stats dt { color: var(--dim); min-width: 0; }
.ship-stats dd { margin: 0; color: var(--text); font-weight: 800; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ship-lists { display: grid; gap: 12px; margin-top: 14px; }
.ship-lists strong { display: block; color: var(--cyan); font-size: 12px; text-transform: uppercase; margin-bottom: 4px; }
.ship-lists ul { margin: 0; padding-left: 18px; color: var(--muted); }
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; margin-top: 24px; align-items: start; }
.help-tabs { display: grid; gap: 6px; position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow: auto; padding-right: 4px; }
.help-tabs button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); text-align: left; cursor: pointer; font-weight: 800; }
.help-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.help-tabs button.active { color: #071019; border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.help-panel { min-height: 420px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 24px; }
.help-panel-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.help-panel-header h3 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.04; }
.help-panel-header a { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 800; }
.help-panel-header a:hover { color: var(--text); border-color: var(--line-strong); }
.help-content { color: var(--muted); font-size: 16px; }
.help-content p { margin: 0 0 16px; }
.help-content strong { color: var(--text); }
.help-content hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.help-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.help-content td { padding: 8px; border: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
.help-content .archived-link { color: var(--blue); }
.community { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr); gap: 28px; align-items: stretch; padding: 36px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, rgba(123,200,255,0.12), rgba(54,227,208,0.06)), var(--surface); }
.community-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.community-card { display: grid; align-content: start; min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(7,9,13,0.54); text-decoration: none; }
.community-card span { color: var(--dim); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.community-card strong { margin-top: 10px; font-size: 22px; line-height: 1.08; }
.community-card small { margin-top: 12px; color: var(--muted); font-size: 14px; }
.community-card.discord:hover { border-color: var(--discord); }
.community-card.reddit:hover { border-color: var(--reddit); }
.lightbox { width: min(96vw, 1500px); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0; background: #020305; color: var(--text); box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(0,0,0,0.84); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: 86vh; object-fit: contain; background: #000; }
.lightbox figcaption { padding: 12px 16px; color: var(--muted); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,0.7); color: var(--text); cursor: pointer; font-size: 28px; line-height: 1; }
.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; padding: 36px 18px; color: var(--dim); border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
@media (max-width: 900px) {
  .site-header-inner { grid-template-columns: 1fr auto; }
  .site-nav { order: 3; grid-column: 1 / -1; justify-self: stretch; overflow-x: auto; }
  .header-discord { grid-column: 2; grid-row: 1; }
  .hero { min-height: auto; padding-top: 96px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .intro-strip { grid-template-columns: repeat(2, 1fr); }
  .section-heading, .community, .help-layout { grid-template-columns: 1fr; }
  .help-tabs { position: static; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-height: none; padding-right: 0; }
  .community-actions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { padding: 10px 14px; gap: 10px; }
  .brand-mark { width: 106px; height: 60px; padding: 6px; }
  .brand-copy small { display: none; }
  .header-discord { min-height: 40px; padding: 0 12px; }
  h1 { font-size: 44px; }
  .hero { padding: 82px 16px 42px; }
  .hero-actions .button { width: 100%; }
  .intro-strip { grid-template-columns: 1fr; margin-inline: 16px; transform: none; }
  .section-shell, .community { width: calc(100% - 28px); margin: 48px auto; }
  .archive-grid, .ships-grid { grid-template-columns: 1fr; }
  .ship-stats { grid-template-columns: 1fr; }
}

