@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #0c1929;
    --bg-panel: #132238;
    --bg-card: #1a3050;
    --silver: #c0c0c0;
    --steel-blue: #4682b4;
    --ice-blue: #87ceeb;
    --text-white: #ffffff;
    --text-silver: #a8b8c8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-base);
    color: var(--text-white);
    line-height: 1.75;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Russo One', sans-serif;
    color: var(--ice-blue);
}

a { color: var(--ice-blue); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--silver); }

/* Header */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(12, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--steel-blue);
}

.header-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 42px; height: 42px; }
.brand span { font-family: 'Russo One', sans-serif; font-size: 1.4rem; color: var(--ice-blue); }

.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { color: var(--text-silver); font-weight: 600; font-size: 0.9rem; }
.desktop-nav a:hover { color: var(--ice-blue); }

.ham-menu { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.ham-menu span { width: 26px; height: 2px; background: var(--ice-blue); transition: 0.3s; }
.ham-menu.open span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.ham-menu.open span:nth-child(2) { opacity: 0; }
.ham-menu.open span:last-child { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-panel); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 1rem 2rem; color: var(--text-silver); border-bottom: 1px solid var(--bg-card); }

main { padding-top: 76px; }

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-base) 100%);
}

.hero-box { max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; color: var(--text-silver); margin-bottom: 2.5rem; }

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--steel-blue), var(--ice-blue));
    color: var(--bg-base);
    font-family: 'Russo One', sans-serif;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(70, 130, 180, 0.4); color: var(--bg-base); }

/* Info Panels */
.info-panels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 2rem;
    background: var(--bg-panel);
}

.info-panel {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--steel-blue);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.info-panel .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.info-panel h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.info-panel p { color: var(--text-silver); font-size: 0.95rem; }

/* Game */
.game-section { padding: 4rem 2rem; }
.game-section h2 { text-align: center; font-size: 2.2rem; margin-bottom: 2rem; }

.game-frame {
    max-width: 1100px;
    margin: 0 auto;
    border: 2px solid var(--steel-blue);
    border-radius: 12px;
    overflow: hidden;
}
.game-frame iframe { width: 100%; height: 600px; border: none; display: block; }

/* Features */
.features { padding: 4rem 2rem; background: var(--bg-panel); }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; }
.features-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.feat-item { text-align: center; padding: 1.5rem; }
.feat-item .sym { font-size: 2rem; margin-bottom: 0.75rem; }
.feat-item h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.feat-item p { color: var(--text-silver); font-size: 0.85rem; }

/* Play Page */
.play-header { padding: 4rem 2rem 2rem; text-align: center; background: var(--bg-panel); }
.play-header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.play-header p { color: var(--text-silver); max-width: 600px; margin: 0 auto; }

.play-game { padding: 2rem; }
.play-game .game-frame { max-width: 1300px; }
.play-game .game-frame iframe { height: 680px; }

.tips-box { max-width: 800px; margin: 2rem auto 0; background: var(--bg-card); border-radius: 10px; padding: 2rem; border: 1px solid var(--steel-blue); }
.tips-box h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--ice-blue); }
.tips-box p { color: var(--text-silver); font-size: 0.95rem; margin-bottom: 0.5rem; }

/* Content Pages */
.page-text { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }
.page-text h1 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
.page-text h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.page-text p { color: var(--text-silver); margin-bottom: 1.25rem; }
.page-text ul { list-style: none; margin: 1rem 0 1.5rem; }
.page-text ul li { padding: 0.6rem 0 0.6rem 1.5rem; color: var(--text-silver); position: relative; }
.page-text ul li::before { content: '▪'; position: absolute; left: 0; color: var(--ice-blue); }

/* Footer */
footer { background: var(--bg-panel); border-top: 1px solid var(--steel-blue); padding: 3rem 2rem; margin-top: 4rem; }
.footer-box { max-width: 1000px; margin: 0 auto; text-align: center; }
.footer-box h4 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--text-silver); }
.help-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.help-links a { padding: 0.6rem 1.25rem; border: 1px solid var(--steel-blue); border-radius: 6px; color: var(--steel-blue); font-size: 0.9rem; }
.help-links a:hover { background: var(--steel-blue); color: var(--bg-base); }
.copyright { color: var(--text-silver); font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--bg-card); }

/* Age Modal */
.age-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.97); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.age-overlay.dismissed { display: none; }
.age-modal { background: var(--bg-card); border: 2px solid var(--steel-blue); border-radius: 16px; padding: 2.5rem; max-width: 440px; text-align: center; }
.age-modal h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.age-modal p { color: var(--text-silver); margin-bottom: 2rem; }
.age-btns { display: flex; gap: 1rem; justify-content: center; }
.age-btns button { padding: 0.85rem 2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.age-yes { background: var(--steel-blue); color: white; border: none; }
.age-yes:hover { background: var(--ice-blue); }
.age-no { background: transparent; color: var(--steel-blue); border: 2px solid var(--steel-blue); }
.age-no:hover { background: rgba(70,130,180,0.1); }

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .ham-menu { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .game-frame iframe { height: 420px; }
    .play-game .game-frame iframe { height: 480px; }
    .features-grid { grid-template-columns: 1fr; }
    .info-panels { flex-direction: column; align-items: center; }
    .info-panel { max-width: 100%; }
    .age-modal { margin: 1rem; padding: 2rem; }
    .age-btns { flex-direction: column; }
    .help-links { flex-direction: column; align-items: center; }
}
