:root {
    --bg-dark: #0A1020;
    --surface: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.08);
    --midnight-blue: #1E3A8A;
    --galaxy-purple: #4338CA;
    --silver: #C0C7D1;
    --moon-white: #F5F7FA;
    --deep-space: #101828;
    --text-primary: #FAFAFA;
    --text-muted: #B8C2D1;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --border-thin: 1px solid var(--silver);
    --border-glass: 1px solid rgba(192, 199, 209, 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--moon-white);
    line-height: 1.3;
}

a {
    color: var(--moon-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--silver);
}

ul {
    list-style: none;
}

/* TOP DISCLAIMER BANNER */
.top-disclaimer-banner {
    background-color: var(--deep-space);
    color: var(--text-muted);
    text-align: center;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(192, 199, 209, 0.15);
    position: relative;
    z-index: 1001;
}

/* STAR GATE (HEADER) */
.star-gate {
    position: sticky;
    top: 0;
    height: 72px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(192, 199, 209, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--moon-white);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--moon-white);
}

.btn-play-now {
    background: linear-gradient(135deg, var(--silver), var(--midnight-blue));
    color: var(--bg-dark);
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-play-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.btn-play-now:active {
    transform: translateY(0);
}

/* BUTTONS */
.btn-secondary {
    background: var(--glass);
    border: var(--border-thin);
    color: var(--moon-white);
    padding: 10px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(192, 199, 209, 0.2);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(1px);
}

.btn-submit {
    background: var(--midnight-blue);
    color: var(--moon-white);
    border: var(--border-thin);
    padding: 12px 32px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--galaxy-purple);
}

/* CELESTIAL ATRIUM (GAME SECTION) */
.celestial-atrium {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center, rgba(30,58,138,0.1) 0%, transparent 70%);
}

.game-wrapper {
    width: 100%;
    max-width: 1050px;
    background: var(--deep-space);
    border: 2px solid var(--silver);
    border-radius: 22px;
    padding: 12px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
    position: relative;
}

.game-wrapper::before, .game-wrapper::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--silver);
    opacity: 0.3;
}

.game-wrapper::before {
    top: 20px; left: 20px;
    border-right: none; border-bottom: none;
}

.game-wrapper::after {
    bottom: 20px; right: 20px;
    border-left: none; border-top: none;
}

.game-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.game-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    max-width: 1050px;
    width: 100%;
}

/* WEST OBSERVATORY */
.west-observatory {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.observatory-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: var(--moon-white);
    border-bottom: 1px solid rgba(192, 199, 209, 0.2);
    padding-bottom: 20px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pillar {
    background: var(--surface);
    border-left: 2px solid var(--silver);
    padding: 40px 24px;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.pillar::before {
    content: '✧';
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--silver);
    opacity: 0.5;
    font-size: 20px;
}

.pillar h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--moon-white);
}

.pillar p {
    color: var(--text-muted);
    font-size: 14px;
}

/* CONSTELLATION COURT */
.constellation-court {
    padding: 100px 40px;
    background: var(--deep-space);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
}

.stone-map {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--silver);
    padding: 60px;
    background: linear-gradient(180deg, rgba(10,16,32,0.9) 0%, rgba(16,24,40,0.9) 100%);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.8);
    position: relative;
}

.stone-map::after {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(192, 199, 209, 0.1);
    pointer-events: none;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.map-item {
    border-bottom: 1px solid rgba(192, 199, 209, 0.2);
    padding-bottom: 16px;
}

.map-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--silver);
    margin-bottom: 8px;
}

.map-value {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--moon-white);
}

/* EAST OBSERVATORY */
.east-observatory {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.celestial-hall-css-image {
    /* Using descriptive image name in stylesheet as requested */
    background-image: url('images/celestial-hall-rotating-star-maps.jpg');
    width: 100%;
    max-width: 700px;
    height: 420px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--silver);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.panels-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.constellation-panel {
    background: var(--surface);
    border: 1px solid rgba(192, 199, 209, 0.2);
    padding: 30px;
    position: relative;
}

.constellation-panel h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--moon-white);
}

.constellation-panel p {
    font-size: 14px;
    color: var(--text-muted);
}

/* GALAXY WALK (EDITORIAL) */
.galaxy-walk {
    padding: 100px 0;
    background: var(--bg-dark);
}

.editorial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 120px auto;
    padding: 0 40px;
    align-items: center;
}

.editorial-layout:last-child {
    margin-bottom: 0;
}

.editorial-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.editorial-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.editorial-image-container img {
    width: 100%;
    max-width: 700px;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid var(--silver);
}

.obs-two {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
}

.obs-two h2 {
    font-size: 42px;
}

.obs-two .feature-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.feature-list-item {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--silver);
}

/* ASTRONOMY LIBRARY */
.astronomy-library {
    padding: 100px 40px;
    background: var(--deep-space);
    border-top: var(--border-glass);
}

.library-image-wrapper {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    display: flex;
    justify-content: center;
}

.library-image-wrapper img {
    width: 100%;
    max-width: 700px;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid var(--silver);
}

.library-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.lib-col h3 {
    font-size: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(192, 199, 209, 0.2);
    padding-bottom: 12px;
}

.service-item {
    margin-bottom: 20px;
}

.service-item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--silver);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.service-item p {
    font-size: 16px;
    color: var(--moon-white);
}

.faq-list li {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 15px;
    padding-left: 20px;
    position: relative;
}

.faq-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--midnight-blue);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--glass);
    border: 1px solid rgba(192, 199, 209, 0.2);
    padding: 12px 16px;
    color: var(--moon-white);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--silver);
}

.form-group textarea {
    resize: none;
    height: 100px;
}

/* FOOTER */
.site-footer {
    background: #050810;
    padding: 60px 40px 30px;
    border-top: 1px solid rgba(192, 199, 209, 0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    border-bottom: 1px solid rgba(192, 199, 209, 0.1);
    padding-bottom: 40px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-box {
    border: 1px solid rgba(192, 199, 209, 0.2);
    padding: 20px;
    margin-bottom: 24px;
    display: inline-block;
}

.age-icon {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--silver);
    display: block;
    margin-bottom: 8px;
}

.disclaimer-text {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.copyright {
    font-size: 12px;
    color: rgba(184, 194, 209, 0.5);
}

/* LEGAL PAGES */
.page-container {
    max-width: 900px;
    margin: 60px auto 120px auto;
    padding: 0 40px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(192, 199, 209, 0.2);
    padding-bottom: 30px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.legal-content {
    background: var(--surface);
    border: 1px solid rgba(192, 199, 209, 0.1);
    padding: 60px;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--silver);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .east-observatory { grid-template-columns: 1fr; }
    .library-columns { grid-template-columns: 1fr; gap: 40px; }
    .editorial-layout { grid-template-columns: 1fr; text-align: center; }
    .obs-three .editorial-text { order: 2; }
    .obs-three .editorial-image-container { order: 1; }
    .footer-top { flex-direction: column; gap: 24px; }
}

@media (max-width: 768px) {
    .star-gate { padding: 0 20px; }
    .nav-links { display: none; }
    .map-grid { grid-template-columns: 1fr; }
    .stone-map { padding: 30px; }
    .game-controls { flex-direction: column; align-items: center; }
    .obs-two .feature-list { flex-direction: column; gap: 16px; }
    .legal-content { padding: 30px 20px; }
    .top-disclaimer-banner { font-size: 10px; padding: 8px 10px; }
}