:root {
    color-scheme: dark;
    --background: #071014;
    --background-deep: #03090c;
    --panel: rgba(12, 28, 35, 0.92);
    --panel-edge: #2d7f8f;
    --text: #e6f6f8;
    --muted: #8eb3ba;
    --accent: #61d7e8;
    --accent-strong: #9af4ff;
    --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background-deep); }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--background-deep); color: var(--text); }
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 0 32px;
    background: linear-gradient(180deg, rgba(3, 9, 12, 0.94), rgba(3, 9, 12, 0.76));
    border-bottom: 1px solid rgba(97, 215, 232, 0.16);
    backdrop-filter: blur(14px);
    transition: background 180ms ease, box-shadow 180ms ease;
}
.site-header.scrolled { background: rgba(3, 9, 12, 0.97); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--accent);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: inset 0 0 18px rgba(97, 215, 232, 0.08), 0 0 18px rgba(97, 215, 232, 0.08);
    transform: skewX(-7deg);
}
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 0.9rem; letter-spacing: 0.17em; }
.brand-copy small { color: var(--accent); font-size: 0.62rem; letter-spacing: 0.22em; }
.site-nav { display: flex; justify-content: center; align-items: stretch; height: 100%; }
.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: #bad3d8;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.site-nav a::after { content: ''; position: absolute; inset: auto 16px 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 160ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-link, .play-link { text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 800; }
.account-link { color: var(--muted); padding: 10px 12px; }
.account-link:hover { color: var(--text); }
.play-link { padding: 11px 17px; color: #031014; background: var(--accent); border: 1px solid var(--accent); }
.play-link:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.nav-toggle { display: none; border: 0; background: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }

.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; background: #061015; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-image: var(--slide-image), radial-gradient(circle at 75% 40%, #16313b 0, #071014 55%, #03090c 100%);
    background-position: center;
    background-size: cover;
    transition: opacity 700ms ease, visibility 700ms ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 8, 11, 0.92) 0%, rgba(2, 8, 11, 0.68) 42%, rgba(2, 8, 11, 0.2) 70%, rgba(2, 8, 11, 0.46) 100%), linear-gradient(0deg, rgba(2, 8, 11, 0.82), transparent 45%); }
.hero-grid { position: absolute; inset: 0; opacity: 0.34; background-image: linear-gradient(rgba(97, 215, 232, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(97, 215, 232, 0.05) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, black, transparent 72%); }
.hero-content { position: absolute; z-index: 2; left: clamp(28px, 7vw, 120px); top: 50%; width: min(720px, 76vw); transform: translateY(-45%); }
.hero-kicker, .eyebrow { color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.hero h1, .hero h2 { margin: 13px 0 20px; max-width: 780px; font-size: clamp(3.1rem, 6vw, 6.8rem); line-height: 0.94; letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance; }
.hero p { max-width: 650px; margin: 0; color: #bad1d6; font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 1px solid var(--accent); text-decoration: none; text-transform: uppercase; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; cursor: pointer; }
.primary-action { background: var(--accent); color: #031014; }
.primary-action:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.secondary-action { background: rgba(5, 17, 22, 0.5); color: var(--accent-strong); }
.secondary-action:hover { background: rgba(97, 215, 232, 0.12); }
.primary-action:disabled, .secondary-action:disabled { opacity: 0.55; cursor: wait; }
.slide-caption { position: absolute; z-index: 2; right: clamp(28px, 5vw, 86px); bottom: 98px; max-width: 300px; padding: 14px 18px; border-left: 2px solid var(--accent); background: rgba(3, 11, 15, 0.64); backdrop-filter: blur(8px); }
.slide-caption span { display: block; margin-bottom: 5px; color: var(--accent); font-size: 0.64rem; letter-spacing: 0.18em; }
.slide-caption strong { font-size: 0.94rem; letter-spacing: 0.04em; }
.hero-controls { position: absolute; z-index: 5; left: clamp(28px, 7vw, 120px); bottom: 42px; display: flex; align-items: center; gap: 16px; }
.carousel-arrow { width: 38px; height: 38px; border: 1px solid rgba(97, 215, 232, 0.45); background: rgba(3, 12, 16, 0.58); color: var(--accent); font-size: 1.7rem; cursor: pointer; }
.carousel-arrow:hover { border-color: var(--accent); background: rgba(97, 215, 232, 0.1); }
.carousel-dots { display: flex; align-items: center; gap: 9px; }
.carousel-dot { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(190, 222, 228, 0.24); cursor: pointer; }
.carousel-dot.active { background: var(--accent); box-shadow: 0 0 10px rgba(97, 215, 232, 0.42); }
.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 26px; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); color: var(--muted); text-decoration: none; font-size: 0.58rem; letter-spacing: 0.2em; }
.scroll-cue i { display: block; width: 1px; height: 22px; background: linear-gradient(var(--accent), transparent); }

.content-section { position: relative; padding: 92px clamp(24px, 6vw, 96px); overflow: hidden; }
.news-section {
    background:
        linear-gradient(rgba(4, 13, 17, 0.86), rgba(4, 13, 17, 0.96)),
        var(--section-image) center / cover no-repeat;
}
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; max-width: 1440px; margin: 0 auto 34px; }
.section-heading h2, .universe-copy h2 { margin: 7px 0 0; font-size: clamp(2rem, 3.4vw, 3.7rem); letter-spacing: -0.03em; text-transform: uppercase; }
.section-link, .text-action { color: var(--accent); text-decoration: none; text-transform: uppercase; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.section-link:hover, .text-action:hover { color: var(--accent-strong); }
.news-add-button { padding: 11px 16px; border: 1px solid rgba(97, 215, 232, 0.5); background: rgba(8, 25, 31, 0.82); color: var(--accent-strong); text-transform: uppercase; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; cursor: pointer; }
.news-add-button:hover { border-color: var(--accent); background: rgba(97, 215, 232, 0.12); }
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; max-width: 1440px; margin: 0 auto; }
.news-card { min-width: 0; border: 1px solid rgba(97, 215, 232, 0.16); background: rgba(12, 28, 35, 0.7); cursor: pointer; transition: transform 180ms ease, border-color 180ms ease; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(97, 215, 232, 0.48); }
.news-image-wrap { position: relative; min-width: 0; }
.news-image { display: block; aspect-ratio: 16 / 9; background-image: var(--card-image), linear-gradient(135deg, #17313a, #081419); background-size: cover; background-position: center; border-bottom: 1px solid rgba(97, 215, 232, 0.16); }
.news-edit-button { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 8px 12px; border: 1px solid rgba(154, 244, 255, 0.72); background: rgba(3, 12, 16, 0.88); color: var(--accent-strong); text-transform: uppercase; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; cursor: pointer; backdrop-filter: blur(8px); }
.news-edit-button:hover, .news-edit-button:focus-visible { border-color: var(--accent-strong); background: rgba(18, 61, 70, 0.94); outline: none; }
.news-body { padding: 22px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; color: var(--muted); font-size: 0.63rem; letter-spacing: 0.12em; }
.news-meta span { color: var(--accent); }
.news-card h3 { margin: 12px 0 10px; font-size: 1.28rem; line-height: 1.25; }
.featured-news h3 { font-size: 1.55rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--accent-strong); }
.news-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.9rem; }
.news-read-more { color: #688d95; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }

.development-section { background: linear-gradient(180deg, #061015, #030b0f); border-top: 1px solid rgba(97, 215, 232, 0.1); }
.development-heading h2 { margin: 7px 0 0; font-size: clamp(2rem, 3.4vw, 3.7rem); letter-spacing: -0.03em; text-transform: uppercase; }
.development-rate { display: flex; align-items: center; gap: 14px; padding-left: 22px; border-left: 1px solid rgba(97, 215, 232, 0.3); }
.development-rate strong { color: var(--accent-strong); font-size: 2.2rem; line-height: 1; }
.development-rate span { color: var(--muted); font-size: 0.62rem; line-height: 1.45; letter-spacing: 0.12em; text-transform: uppercase; }
.development-feed { max-width: 1440px; margin: 0 auto; border: 1px solid rgba(97, 215, 232, 0.16); background: rgba(8, 22, 28, 0.68); }
.development-update { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 15px 20px; border-bottom: 1px solid rgba(97, 215, 232, 0.09); }
.development-update:last-child { border-bottom: 0; }
.development-update time { color: var(--accent); font-size: 0.66rem; letter-spacing: 0.08em; white-space: nowrap; }
.development-update h3 { margin: 0; font-size: 0.96rem; font-weight: 600; line-height: 1.45; }
.development-empty { padding: 26px 20px; color: var(--muted); }

.universe-section {
    min-height: 760px;
    background:
        linear-gradient(90deg, rgba(4, 13, 17, 0.96) 0%, rgba(4, 13, 17, 0.72) 48%, rgba(4, 13, 17, 0.5) 100%),
        var(--section-image) center / cover no-repeat;
}
.universe-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr); align-items: center; gap: 70px; max-width: 1440px; min-height: 576px; margin: 0 auto; }
.universe-copy, .pillar-grid { position: relative; z-index: 1; }
.universe-copy { max-width: 650px; }
.universe-copy p { color: #aac6cc; line-height: 1.78; font-size: 1.02rem; }
.universe-copy .text-action { display: inline-block; margin-top: 12px; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(97, 215, 232, 0.18); background: rgba(97, 215, 232, 0.18); }
.pillar-grid article { min-height: 210px; padding: 28px; background: rgba(5, 18, 23, 0.9); backdrop-filter: blur(8px); }
.pillar-index { color: var(--accent); font-size: 0.66rem; letter-spacing: 0.16em; }
.pillar-grid h3 { margin: 28px 0 8px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pillar-grid p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.88rem; }

.news-modal, .story-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.news-modal.open, .story-modal.open { display: flex; }
.news-modal-backdrop { position: absolute; inset: 0; background: rgba(1, 6, 8, 0.82); backdrop-filter: blur(8px); }
.news-modal-panel { position: relative; z-index: 1; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--panel-edge); background: linear-gradient(180deg, rgba(13, 33, 41, 0.99), rgba(5, 16, 21, 0.99)); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); }
.news-modal-header { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 26px 28px 20px; border-bottom: 1px solid rgba(97, 215, 232, 0.14); }
.news-modal-header h2 { margin: 7px 0 0; font-size: 2rem; text-transform: uppercase; }
.news-modal-close { border: 0; background: transparent; color: var(--muted); font-size: 2rem; line-height: 1; cursor: pointer; }
.news-modal-close:hover { color: var(--accent-strong); }
.news-form { display: grid; gap: 18px; padding: 26px 28px 30px; }
.news-form label { display: grid; gap: 8px; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.news-form label small { color: #688d95; font-size: 0.65rem; font-weight: 600; }
.news-form input, .news-form select, .news-form textarea { width: 100%; border: 1px solid rgba(97, 215, 232, 0.24); background: rgba(2, 11, 15, 0.82); color: var(--text); padding: 12px 13px; font: inherit; font-size: 0.9rem; line-height: 1.45; outline: none; }
.news-form textarea { resize: vertical; min-height: 140px; }
.news-form input:focus, .news-form select:focus, .news-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(97, 215, 232, 0.08); }
.news-form-status { min-height: 20px; color: var(--muted); font-size: 0.82rem; }
.news-form-status.error { color: #ff9f9f; }
.news-form-status.success { color: var(--accent-strong); }
.news-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.story-modal-panel { position: relative; z-index: 1; width: min(960px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--panel-edge); background: linear-gradient(180deg, rgba(13, 33, 41, 0.99), rgba(5, 16, 21, 0.99)); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); }
.story-modal-close { position: absolute; top: 14px; right: 16px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(154, 244, 255, 0.44); background: rgba(3, 12, 16, 0.86); color: var(--accent-strong); }
.story-modal-image { aspect-ratio: 21 / 9; background: #071014; border-bottom: 1px solid rgba(97, 215, 232, 0.18); overflow: hidden; }
.story-modal-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-modal-content { padding: clamp(26px, 5vw, 54px); }
.story-modal-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.12em; }
.story-modal-meta span { color: var(--accent); }
.story-modal-content h2 { max-width: 800px; margin: 14px 0 24px; font-size: clamp(2rem, 4.5vw, 4.2rem); line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; }
.story-modal-summary { max-width: 780px; color: #bad1d6; font-size: 1.04rem; line-height: 1.8; }
.story-modal-summary p { margin: 0 0 1.2em; white-space: pre-line; }
.story-modal-summary p:last-child { margin-bottom: 0; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; padding: 42px clamp(24px, 6vw, 96px); background: #02080a; border-top: 1px solid rgba(97, 215, 232, 0.13); color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.footer-brand div { display: grid; gap: 4px; }
.footer-brand strong { font-size: 0.8rem; letter-spacing: 0.16em; }
.footer-brand small { color: var(--accent); font-size: 0.58rem; letter-spacing: 0.16em; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 0.72rem; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid rgba(97, 215, 232, 0.1); font-size: 0.72rem; }

@media (max-width: 1080px) {
    .site-header { grid-template-columns: auto auto 1fr; gap: 18px; padding: 0 20px; }
    .nav-toggle { display: block; order: 2; justify-self: end; }
    .site-nav { position: fixed; inset: var(--header-height) 0 auto; display: none; height: auto; padding: 12px 20px 20px; flex-direction: column; background: rgba(3, 9, 12, 0.98); border-bottom: 1px solid rgba(97, 215, 232, 0.18); }
    .site-nav.open { display: flex; }
    .site-nav a { min-height: 46px; padding: 0; border-bottom: 1px solid rgba(97, 215, 232, 0.08); }
    .site-nav a::after { display: none; }
    .header-actions { justify-self: end; order: 3; }
    .account-link { display: none; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-news { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
    .featured-news .news-image { aspect-ratio: auto; min-height: 310px; border-bottom: 0; border-right: 1px solid rgba(97, 215, 232, 0.16); }
    .universe-inner { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 720px) {
    :root { --header-height: 66px; }
    .site-header { padding: 0 14px; }
    .brand-copy { display: none; }
    .brand-mark { width: 38px; height: 38px; }
    .play-link { padding: 9px 11px; font-size: 0.63rem; }
    .hero { min-height: 620px; }
    .hero-content { left: 22px; top: 48%; width: calc(100vw - 44px); }
    .hero h1, .hero h2 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
    .hero p { font-size: 0.94rem; line-height: 1.55; }
    .hero-actions { display: grid; width: 100%; max-width: 340px; }
    .slide-caption { display: none; }
    .hero-controls { left: 22px; bottom: 30px; }
    .scroll-cue { display: none; }
    .content-section { padding: 68px 20px; }
    .section-heading { align-items: start; flex-direction: column; }
    .news-add-button { width: 100%; }
    .development-rate { padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(97, 215, 232, 0.3); }
    .development-update { grid-template-columns: 1fr; gap: 7px; padding: 14px 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .featured-news { grid-column: auto; display: block; }
    .featured-news .news-image { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid rgba(97, 215, 232, 0.16); }
    .pillar-grid { grid-template-columns: 1fr; }
    .pillar-grid article { min-height: 175px; }
    .news-modal, .story-modal { padding: 12px; align-items: flex-start; }
    .news-modal-panel, .story-modal-panel { max-height: calc(100vh - 24px); }
    .news-modal-header, .news-form { padding-left: 20px; padding-right: 20px; }
    .news-form-actions { display: grid; }
    .story-modal-image { aspect-ratio: 16 / 9; }
    .story-modal-content { padding: 26px 20px 30px; }
    .site-footer { grid-template-columns: 1fr; padding: 36px 20px; }
    .footer-links { flex-wrap: wrap; }
    .footer-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
