@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    --shade-dark: #060d08;
    --shade-mid: #0c1a10;
    --shade-light: #142418;
    --emerald: #10b981;
    --emerald-bright: #34d399;
    --mint: #a7f3d0;
    --text-white: #ecfdf5;
    --text-gray: #7c9a88;
    --line: #1f3a28;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', sans-serif;
    background: var(--shade-dark);
    color: var(--text-white);
    line-height: 1.7;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: 0.25s;
}

a:hover {
    color: var(--emerald-bright);
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 65px;
    background: rgba(6, 13, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 800;
    display: flex;
    align-items: center;
}

.header-row {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--emerald);
    letter-spacing: -0.5px;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a.now {
    color: var(--emerald-bright);
}

.toggle-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.toggle-menu span {
    width: 26px;
    height: 2px;
    background: var(--emerald);
}

.drawer-nav {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 8, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 799;
}

.drawer-nav.open {
    display: flex;
}

.drawer-nav a {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Page Area */
.page-area {
    padding-top: 65px;
}

/* Splash */
.splash {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: 
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        var(--shade-dark);
    text-align: center;
}

.splash-content {
    max-width: 850px;
}

.splash-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.splash-content h1 .mark {
    color: var(--emerald-bright);
}

.splash-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.action-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-bright));
    color: var(--shade-dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
    color: var(--shade-dark);
}

/* Tiles */
.tiles-section {
    padding: 5rem 2rem;
    background: var(--shade-mid);
}

.tiles-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tile {
    background: var(--shade-light);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.tile:hover {
    border-color: var(--emerald);
    transform: translateY(-4px);
}

.tile .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tile h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--mint);
}

.tile p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Game Area */
.game-area {
    padding: 5rem 2rem;
}

.game-center {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.game-center h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--mint);
}

.game-frame {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--shade-mid);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Doc Section */
.doc-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.doc-section h1 {
    font-size: 2.3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--mint);
}

.doc-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--emerald);
    margin: 2rem 0 0.75rem;
}

.doc-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.doc-section ul {
    list-style: none;
    margin: 1.25rem 0;
}

.doc-section li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--text-gray);
    position: relative;
}

.doc-section li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--emerald);
    font-size: 0.6rem;
}

/* Footer */
.main-footer {
    background: var(--shade-mid);
    border-top: 1px solid var(--line);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.help-zone {
    margin-bottom: 2rem;
}

.help-zone h5 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.help-zone a {
    margin: 0 1rem;
    font-size: 0.9rem;
}

.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bottom-nav a {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.small-print {
    color: var(--text-gray);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Verify Modal */
.verify-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.verify-modal.closed {
    display: none;
}

.modal-card {
    background: var(--shade-light);
    border: 2px solid var(--emerald);
    border-radius: 14px;
    padding: 2.5rem;
    max-width: 450px;
    margin: 1rem;
    text-align: center;
}

.modal-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--mint);
}

.modal-card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions button {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-proceed {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-bright));
    color: var(--shade-dark);
}

.btn-leave {
    background: transparent;
    border: 1px solid var(--line) !important;
    color: var(--text-gray);
}

.btn-proceed:hover {
    transform: scale(1.03);
}

.btn-leave:hover {
    border-color: #f87171 !important;
    color: #f87171;
}

/* Responsive */
@media (max-width: 900px) {
    .tiles-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    
    .toggle-menu {
        display: flex;
    }
    
    .splash-content h1 {
        font-size: 1.8rem;
    }
    
    .game-frame {
        aspect-ratio: 4/3;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .help-zone a {
        display: block;
        margin: 0.5rem 0;
    }
}
