/* Runelyx.xyz - Deep Ocean Mystic Theme */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Source+Serif+Pro:wght@400;600;700&display=swap');

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

:root {
    --ocean-deep: #0c1929;
    --ocean-mid: #152642;
    --ocean-light: #1e3a5f;
    --teal-accent: #20c997;
    --silver-glow: #c0d6df;
    --pearl-white: #f0f4f7;
    --text-soft: #94a8b3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background: var(--ocean-deep);
    color: var(--pearl-white);
    line-height: 1.75;
}

/* Top Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 25, 41, 0.92);
    backdrop-filter: blur(16px);
    z-index: 8000;
    border-bottom: 1px solid rgba(32, 201, 151, 0.3);
}

.navbar-content {
    max-width: 1350px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(140deg, var(--teal-accent), var(--ocean-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ocean-deep);
}

.logo-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pearl-white);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2.2rem;
}

.nav-menu a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.selected {
    color: var(--teal-accent);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--teal-accent);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--teal-accent);
    margin: 5px 0;
    transition: all 0.3s;
}

.nav-toggle.toggled span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.toggled span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.toggled span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 25, 41, 0.98);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(32, 201, 151, 0.3);
}

.nav-dropdown.shown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 0.9rem 2rem;
    color: var(--pearl-white);
    text-decoration: none;
    transition: background 0.3s;
}

.nav-dropdown a:hover {
    background: rgba(32, 201, 151, 0.15);
}

/* Main Wrapper */
main {
    padding-top: 78px;
}

/* Hero Banner */
.hero-splash {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(175deg, var(--ocean-deep) 0%, var(--ocean-mid) 60%, var(--ocean-light) 100%);
    position: relative;
}

.hero-splash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 80%, rgba(32, 201, 151, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 30%, rgba(192, 214, 223, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-box {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.hero-box h1 {
    font-family: 'Source Serif Pro', serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pearl-white);
    line-height: 1.25;
}

.hero-box .lead {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Highlight Pills */
.highlight-pills {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.pill {
    background: rgba(30, 58, 95, 0.7);
    border: 1px solid rgba(32, 201, 151, 0.4);
    border-radius: 60px;
    padding: 1rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill .ico {
    font-size: 1.5rem;
}

.pill-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--teal-accent);
}

.pill-text span {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* Game Display */
.game-display {
    padding: 5rem 2rem;
    background: var(--ocean-mid);
}

.display-heading {
    font-family: 'Source Serif Pro', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--silver-glow);
}

.game-panel {
    max-width: 1320px;
    margin: 0 auto;
    background: var(--ocean-deep);
    border: 2px solid var(--ocean-light);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-window {
    width: 100%;
    height: 580px;
    border: none;
    border-radius: 12px;
    background: #000;
}

/* Info Panels */
.info-panels {
    padding: 5rem 2rem;
    background: var(--ocean-deep);
}

.panels-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.panel {
    background: linear-gradient(180deg, rgba(21, 38, 66, 0.5) 0%, rgba(12, 25, 41, 0.7) 100%);
    border: 1px solid rgba(32, 201, 151, 0.2);
    border-radius: 16px;
    padding: 2.2rem;
}

.panel h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    color: var(--teal-accent);
    margin-bottom: 1rem;
}

.panel p {
    color: var(--text-soft);
    line-height: 1.85;
}

/* Footer */
.site-bottom {
    background: var(--ocean-deep);
    border-top: 1px solid var(--ocean-light);
    padding: 2.5rem 2rem;
}

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

.bottom-content p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.resource-links {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.resource-links a {
    color: var(--teal-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.resource-links a:hover {
    opacity: 0.7;
}

/* Age Check Modal */
.age-check {
    position: fixed;
    inset: 0;
    background: rgba(12, 25, 41, 0.97);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.age-check.cleared {
    display: none;
}

.age-dialog {
    background: var(--ocean-mid);
    border: 2px solid var(--teal-accent);
    border-radius: 20px;
    padding: 2.8rem;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.age-dialog .symbol {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.age-dialog h2 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.7rem;
    color: var(--pearl-white);
    margin-bottom: 1rem;
}

.age-dialog p {
    color: var(--text-soft);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.age-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-age {
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Raleway', sans-serif;
}

.btn-confirm {
    background: var(--teal-accent);
    color: var(--ocean-deep);
}

.btn-confirm:hover {
    background: #2dd4a8;
}

.btn-exit {
    background: transparent;
    color: var(--pearl-white);
    border: 1px solid var(--text-soft);
}

.btn-exit:hover {
    border-color: var(--pearl-white);
}

/* Inner Pages */
.page-intro {
    padding: 9rem 2rem 3.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
}

.page-intro h1 {
    font-family: 'Source Serif Pro', serif;
    font-size: 2.6rem;
    color: var(--pearl-white);
    margin-bottom: 0.5rem;
}

.page-intro p {
    color: var(--text-soft);
    font-size: 1.05rem;
}

.inner-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.inner-content h2 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.5rem;
    color: var(--teal-accent);
    margin: 2.2rem 0 1rem;
}

.inner-content p, .inner-content li {
    color: var(--text-soft);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.inner-content ul {
    list-style: none;
    padding-left: 1.3rem;
}

.inner-content ul li::before {
    content: '◈';
    color: var(--teal-accent);
    margin-right: 0.7rem;
}

/* Responsive */
@media (max-width: 960px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .panels-container {
        grid-template-columns: 1fr;
    }
    
    .hero-box h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 600px) {
    .highlight-pills {
        flex-direction: column;
        align-items: center;
    }
    
    .pill {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .game-window {
        height: 400px;
    }
    
    .age-options {
        flex-direction: column;
    }
    
    .resource-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .page-intro h1 {
        font-size: 2rem;
    }
}
