/* AirlineWorlds public portal. Same palette as the game; no inline styles (the CSP forbids them). */
:root {
    --bg: #0b0f13; --surface: #12181d; --surface-2: #1a2229; --surface-3: #242d36;
    --line: #26303a; --text: #eef2f5; --text-2: #b9c4ce; --muted: #8794a1;
    --accent: #86d91c; --accent-hover: #9be633; --accent-dim: rgba(134, 217, 28, .14); --on-accent: #0b1503;
    --ok: #86d91c; --warn: #e8b04b; --bad: #f0746a; --info: #5eb0ee;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px; --max: 1180px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }

/* announcement */
.announce { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 8px 40px 8px 16px; background: linear-gradient(90deg, #17310a, #0f2406); border-bottom: 1px solid #2b4d13; font-size: .875rem; position: relative; text-align: center; }
.announce-link { font-weight: 700; }
.announce-close { position: absolute; right: 8px; top: 2px; background: none; border: 0; color: var(--text-2); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(11, 15, 19, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand-air { font-weight: 800; }
.brand-worlds { font-weight: 300; margin-left: -.15em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-2); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn { display: inline-block; padding: 9px 18px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit; text-transform: uppercase; letter-spacing: .06em; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-dim); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media, .hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img, .hero-video { object-fit: cover; }
.hero-fallback { background:
    radial-gradient(900px 500px at 78% 28%, rgba(134, 217, 28, .26), transparent 60%),
    radial-gradient(700px 500px at 12% 80%, rgba(46, 120, 160, .35), transparent 65%),
    url("/assets/world-dots.svg") center 55% / 1100px auto no-repeat,
    linear-gradient(180deg, #0a1218, #0b0f13); }
.hero-img ~ .hero-fallback, .hero-video ~ .hero-fallback { display: none; }
.hero-shade { background: linear-gradient(180deg, rgba(11, 15, 19, .25) 0%, rgba(11, 15, 19, .1) 35%, rgba(11, 15, 19, .92) 100%), linear-gradient(90deg, rgba(11, 15, 19, .65), transparent 60%); }
.hero-copy { position: relative; padding: 0 clamp(16px, 5vw, 64px) 28px; max-width: 880px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--accent); margin: 0 0 12px; font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin-bottom: 16px; letter-spacing: -.01em; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 56ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy > * { transition: opacity .25s ease; }
.hero.is-swapping .hero-copy > * { opacity: 0; }

/* featured strip */
.hero-strip { position: relative; display: flex; gap: 12px; overflow-x: auto; padding: 8px clamp(16px, 5vw, 64px) 24px; scrollbar-width: thin; }
.world-card { flex: 0 0 210px; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(18, 24, 29, .72); backdrop-filter: blur(6px); color: var(--text); }
.world-card:hover { text-decoration: none; border-color: var(--muted); }
.world-card.is-active { border-color: var(--accent); background: rgba(24, 40, 14, .75); }
.world-thumb { flex: 0 0 64px; height: 44px; border-radius: 5px; overflow: hidden; background: #243040; }
.world-thumb img { width: 100%; height: 100%; object-fit: cover; }
.world-meta { display: flex; flex-direction: column; line-height: 1.25; }
.world-meta small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.w-taurus .world-thumb { background: linear-gradient(135deg, #3d7a1c, #12301a); }
.w-virgo .world-thumb { background: linear-gradient(135deg, #a8843a, #3a2c12); }
.w-libra .world-thumb { background: linear-gradient(135deg, #b0587a, #3a1426); }
.w-pisces .world-thumb { background: linear-gradient(135deg, #2f7fb5, #0f2a40); }
.w-gemini .world-thumb { background: linear-gradient(135deg, #7a5bc0, #231545); }

/* bands */
.band { padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 64px); }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap.narrow { max-width: 640px; }
.band-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 28px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: clamp(32px, 6vw, 72px); }
.feature.flip .feature-media { order: 2; }
.feature-media { aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-1 { background: radial-gradient(500px 260px at 30% 60%, rgba(94, 176, 238, .35), transparent 70%), url("/assets/world-dots.svg") center / 120% auto no-repeat, #0f1a22; }
.ph-2 { background: radial-gradient(500px 260px at 70% 40%, rgba(134, 217, 28, .3), transparent 70%), linear-gradient(135deg, #14202a, #0c1318); }
.ph-3 { background: radial-gradient(500px 260px at 50% 50%, rgba(232, 176, 75, .28), transparent 70%), linear-gradient(135deg, #1b1c14, #0c1318); }
.feature-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.feature-copy p { color: var(--text-2); font-size: 1.05rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.recent h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: .95rem; }
.recent li strong { color: var(--accent); margin-right: 6px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }

/* signup */
.signup { display: grid; gap: 16px; margin: 20px 0; }
.field label { display: block; font-size: .875rem; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 14px 16px; border-radius: 8px; margin: 16px 0; border: 1px solid var(--line); }
.flash-ok { background: var(--accent-dim); border-color: #2b4d13; }
.flash-error { background: rgba(240, 116, 106, .12); border-color: #6b2c27; }

/* inner pages */
.inner { max-width: 820px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 32px); }
.inner.wide { max-width: 1280px; }
.inner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.inner h2 { margin-top: 1.6em; font-size: 1.25rem; }
.kv { border-collapse: collapse; width: 100%; margin: 20px 0; }
.kv th { text-align: left; vertical-align: top; width: 180px; padding: 12px 16px 12px 0; color: var(--text-2); }
.kv td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv tr { border-bottom: 1px solid var(--line); }

/* footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.version { color: var(--muted); }

/* roadmap (same columns as the game's roadmap) */
.rm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.rm-toolbar .btn { padding: 6px 12px; font-size: .78rem; }
.rm-note { margin-left: 12px; font-size: .875rem; }
.rm-cols { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; scroll-snap-type: x proximity; }
.rm-col { flex: 0 0 300px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--muted); border-radius: var(--radius); padding: 16px; }
.rm-col.status-shipped { border-top-color: var(--ok); }
.rm-col.status-in_progress { border-top-color: var(--warn); }
.rm-col-head { text-align: center; margin-bottom: 12px; }
.rm-col-head h2 { font-size: 1rem; margin: 8px 0 4px; }
.rm-col-head p { margin: 0; font-size: .875rem; color: var(--muted); }
.rm-col-head .rm-count { margin-top: 8px; color: var(--text-2); }
.rm-version { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.rm-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; }
.rm-card > summary { cursor: pointer; list-style: none; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.rm-card > summary::-webkit-details-marker { display: none; }
.rm-card-title { font-weight: 600; }
.rm-card-count { font-size: .75rem; color: var(--muted); }
.rm-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); vertical-align: middle; margin-left: 4px; }
.rm-card ul { list-style: none; margin: 0; padding: 0 16px 12px; font-size: .875rem; }
.rm-card li { padding: 3px 0 3px 20px; position: relative; color: var(--text-2); }
.rm-card li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.rm-card li.done::before { background: var(--ok); border-color: var(--ok); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 24px 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; padding: 10px 16px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge-ok { background: var(--accent-dim); color: var(--ok); }
.badge-warn { background: rgba(232, 176, 75, .15); color: var(--warn); }
.badge-bad { background: rgba(240, 116, 106, .15); color: var(--bad); }
.badge-info { background: rgba(94, 176, 238, .15); color: var(--info); }

@media (max-width: 800px) {
    .site-nav { display: none; }
    .site-header .btn { margin-left: auto; }
    .feature, .two-col { grid-template-columns: 1fr; }
    .feature.flip .feature-media { order: 0; }
    .rm-cols { flex-direction: column; overflow-x: visible; }
    .rm-col { flex: 0 0 auto; width: 100%; }
    .hero { min-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-copy > * { transition: none; }
}

/* private admin area */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.stat-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-size: 1.8rem; font-weight: 700; }
.admin-cols { margin-bottom: 8px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.admin-filter input, .admin-filter select, .admin-row input, .admin-row select { padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.admin-row { display: flex; gap: 8px; align-items: center; }
.admin-row input[type=text] { flex: 1; min-width: 160px; }
.admin-delete summary { cursor: pointer; color: var(--muted); font-size: .875rem; }
.admin-delete form { margin-top: 8px; }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: rgba(240, 116, 106, .12); }
.btn-sm { padding: 5px 10px; font-size: .78rem; }
.bar { display: inline-block; height: 10px; background: var(--accent); border-radius: 3px; vertical-align: middle; }
.bar-1 { width: 10px; } .bar-2 { width: 20px; } .bar-3 { width: 30px; } .bar-4 { width: 40px; } .bar-5 { width: 50px; }
.bar-6 { width: 60px; } .bar-7 { width: 70px; } .bar-8 { width: 80px; } .bar-9 { width: 90px; } .bar-10 { width: 100px; }

.nav-invite { color: var(--text-2); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.nav-invite:hover { color: var(--text); text-decoration: none; }
.hero-note { max-width: 56ch; margin: -8px 0 20px; color: var(--accent); font-size: .95rem; }
@media (max-width: 800px) { .nav-invite { display: none; } }

/* legal pages */
.legal h2 { margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; color: var(--text-2); }
.legal li { margin: .35em 0; }
.legal-table td, .legal-table th { vertical-align: top; font-size: .9rem; }
.legal code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.todo { background: rgba(232, 176, 75, .2); color: #e8b04b; border-radius: 4px; padding: 1px 6px; }

.age-note { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; color: var(--text-2); font-size: .95rem; }
.age-note img { flex: 0 0 auto; }
