:root {
    --night: #061321;
    --deep: #0b2238;
    --panel: rgba(5, 20, 35, .78);
    --panel-soft: rgba(10, 31, 52, .72);
    --line: rgba(225, 184, 92, .24);
    --gold: #e8bd65;
    --gold-soft: #ffe7a5;
    --text: #f4f1e9;
    --muted: #b8c1ca;
    --cyan: #70d4e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--night) url('/assets/adventure-background-unified.webp') center top / min(100%, 1920px) auto no-repeat;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 14, 28, .14), rgba(3, 14, 28, .9) 80%, var(--night));
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 220px; }
.brand img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 5px 22px rgba(0,0,0,.45)); }
.brand strong { display: block; color: var(--gold-soft); font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.main-nav a { padding: 9px 13px; color: #dbe4eb; border: 1px solid transparent; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-soft); border-color: var(--line); background: rgba(7, 28, 48, .55); }
.main-content { position: relative; z-index: 1; padding: 50px 0 86px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(34px, 7vw, 100px); min-height: 500px; }
.hero-copy { max-width: 680px; }
.eyebrow, .card-kicker { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--gold-soft); font-style: normal; }
h2 { margin-bottom: 12px; font-size: clamp(1.45rem, 2.4vw, 2.25rem); letter-spacing: -.03em; }
h3 { margin-bottom: 5px; font-size: 1rem; }
.hero-copy > p { max-width: 580px; color: #d1d9df; font-size: 1.07rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid var(--gold); border-radius: 8px; color: var(--gold-soft); background: rgba(9, 33, 52, .78); cursor: pointer; font: inherit; font-weight: 800; transition: .2s ease; }
.button:hover:not(:disabled) { color: var(--night); background: var(--gold); box-shadow: 0 8px 25px rgba(232,189,101,.22); }
.button:disabled { cursor: not-allowed; opacity: .54; }
.button-gold { color: #1c1a13; background: var(--gold); }
.text-link { color: var(--gold-soft); font-weight: 700; }
.text-link:hover { color: white; }
.login-card, .server-card, .feature-card, .narrow-card, .form-card, .empty-state { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(8, 30, 50, .86), rgba(3, 16, 30, .76)); box-shadow: 0 22px 55px rgba(0,0,0,.28); backdrop-filter: blur(10px); }
.login-card { padding: 28px; border-radius: 18px; }
.login-card h2 { margin-top: 8px; }
.muted, .login-card small { color: var(--muted); }
label { display: block; margin: 16px 0; color: #dce6ed; font-size: .82rem; font-weight: 700; }
input { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid rgba(208, 220, 230, .2); border-radius: 7px; outline: none; color: var(--text); background: rgba(0,0,0,.27); font: inherit; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,189,101,.12); }
.login-card form .button { width: 100%; margin-top: 5px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 12px; color: var(--gold-soft); font-size: .8rem; font-weight: 700; }
.auth-links a:hover { text-decoration: underline; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 25px 0 86px; }
.feature-card { display: block; min-height: 145px; padding: 22px; border-radius: 12px; transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(232,189,101,.64); }
.feature-card span { display: block; margin-bottom: 26px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.feature-card strong { display: block; margin-bottom: 5px; font-size: 1.1rem; }
.feature-card small { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; }
.section-heading { margin-bottom: 20px; }
.news-list { display: grid; gap: 11px; }
.news-item { padding: 18px 20px; border-left: 2px solid var(--gold); background: rgba(5, 19, 33, .62); }
.news-item > span { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-item p { margin-bottom: 0; color: var(--muted); }
.server-card { align-self: start; padding: 25px; border-radius: 15px; }
.server-card h2 { margin-top: 16px; color: var(--gold-soft); }
.server-card p { color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: #dfe7ed; font-size: .85rem; font-weight: 700; }
.status-dot, .gateway-indicator span { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(232,189,101,.13); }
.status-ready { background: #5ee0a0; box-shadow: 0 0 0 5px rgba(94,224,160,.13); }
.status-unavailable { background: #e77979; box-shadow: 0 0 0 5px rgba(231,121,121,.13); }
.article-page { max-width: 850px; padding: 64px 0 20px; }
.article-page h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.article-page > p { max-width: 680px; color: #d1d9df; font-size: 1.08rem; }
.integration-note, .empty-state { margin-top: 28px; padding: 20px; border-radius: 12px; color: var(--muted); }
.integration-note { border-left: 3px solid var(--gold); background: rgba(16, 36, 52, .66); }
.form-card { max-width: 520px; margin-top: 28px; padding: 25px; border-radius: 15px; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--gold-soft); margin-bottom: 5px; }
.empty-state span { color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.info-grid div { display: grid; gap: 3px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 20, 35, .62); }
.info-grid strong { color: var(--gold); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.info-grid span { color: #e5edf2; }
.narrow-card { max-width: 600px; margin: 80px auto; padding: 34px; border-radius: 16px; }
.narrow-card p { color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 18px 0 28px; color: rgba(217, 226, 232, .72); border-top: 1px solid rgba(232,189,101,.16); font-size: .74rem; }
.gateway-indicator { position: fixed; right: 18px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(232,189,101,.22); border-radius: 999px; color: #dce7ed; background: rgba(4, 17, 29, .83); font-size: .72rem; backdrop-filter: blur(8px); }
.gateway-ready span { background: #5ee0a0; }
.gateway-unavailable span { background: #e77979; }
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.feather { position: absolute; top: -90px; left: var(--x, 50%); width: 42px; height: 42px; opacity: .58; animation: feather-fall 17s linear infinite; animation-delay: var(--delay); transform: rotate(var(--rotation, 0deg)); }
.feather-right { left: auto; right: var(--x, 15%); }
.feather img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(0,0,0,.35)); }
.feather:nth-child(1) { --x: 8%; --rotation: -22deg; }
.feather:nth-child(2) { --x: 15%; --rotation: 28deg; }
.feather:nth-child(3) { --x: 27%; --rotation: -12deg; }
.feather:nth-child(4) { --x: 31%; --rotation: 20deg; }
.feather:nth-child(5) { --x: 47%; --rotation: -30deg; }
.feather:nth-child(6) { --x: 48%; --rotation: 18deg; }
.feather:nth-child(7) { --x: 66%; --rotation: -16deg; }
.feather:nth-child(8) { --x: 70%; --rotation: 25deg; }
.feather:nth-child(9) { --x: 84%; --rotation: -25deg; }
.feather:nth-child(10) { --x: 86%; --rotation: 15deg; }
@keyframes feather-fall { 0% { transform: translate3d(0, -100px, 0) rotate(var(--rotation)); } 50% { transform: translate3d(calc(var(--drift) * 42px), 52vh, 0) rotate(calc(var(--rotation) + 90deg)); } 100% { transform: translate3d(calc(var(--drift) * -35px), 112vh, 0) rotate(calc(var(--rotation) + 180deg)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
@media (max-width: 850px) { .topbar, .hero-grid, .content-grid { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; } .main-nav { justify-content: flex-start; } .hero-grid { min-height: auto; } .login-card { max-width: 520px; } .content-grid { display: grid; } }
@media (max-width: 600px) { .shell { width: min(100% - 24px, 1180px); } .main-content { padding-top: 28px; } h1 { font-size: clamp(2.5rem, 14vw, 4.4rem); } .feature-grid, .info-grid { grid-template-columns: 1fr; } .feature-grid { margin-bottom: 55px; } .main-nav { gap: 3px; } .main-nav a { padding: 8px 9px; font-size: .67rem; } .login-card { padding: 22px; } .site-footer { flex-direction: column; } .gateway-indicator { right: 12px; bottom: 12px; } }
