@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fraunces:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --void: #09090b;
    --obsidian: #18181b;
    --steel: #27272a;
    --copper: #f97316;
    --amber: #fbbf24;
    --cream: #fafaf9;
    --stone: #a1a1aa;
}

body { font-family: 'Outfit', sans-serif; background: var(--void); color: var(--cream); line-height: 1.75; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Header */
.main-header { background: rgba(9, 9, 11, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--steel); position: fixed; top: 0; width: 100%; z-index: 1000; padding: 16px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 600; color: var(--copper); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-sym { width: 42px; height: 42px; background: linear-gradient(135deg, var(--copper), var(--amber)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--void); font-size: 20px; }
.toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.toggle span { width: 26px; height: 2px; background: var(--copper); transition: 0.3s; }
.toggle.active span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.toggle.active span:nth-child(2) { opacity: 0; }
.toggle.active span:last-child { transform: rotate(-45deg) translate(5px, -5px); }
.nav ul { display: flex; list-style: none; gap: 36px; }
.nav a { font-size: 0.95rem; color: var(--stone); text-decoration: none; transition: color 0.3s; }
.nav a:hover, .nav a.active { color: var(--copper); }

/* Hero */
.hero { padding: 138px 0 82px; text-align: center; background: linear-gradient(180deg, var(--obsidian), var(--void)); }
.hero-badge { display: inline-block; padding: 10px 26px; background: var(--steel); border: 1px solid var(--copper); border-radius: 8px; font-size: 0.9rem; color: var(--copper); margin-bottom: 30px; }
h1 { font-family: 'Fraunces', serif; font-size: 3.6rem; font-weight: 600; line-height: 1.15; margin-bottom: 22px; }
.hero-sub { font-size: 1.1rem; color: var(--stone); max-width: 720px; margin: 0 auto; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 62px 0; }
.card { background: var(--obsidian); border: 1px solid var(--steel); border-radius: 18px; padding: 38px 28px; text-align: center; transition: border-color 0.3s; }
.card:hover { border-color: var(--amber); }
.card-icon { font-size: 2.6rem; margin-bottom: 16px; }
.card h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--amber); margin-bottom: 12px; }
.card p { font-size: 0.95rem; color: var(--stone); }

/* Game */
.game-section { padding: 58px 0 78px; }
.section-header { text-align: center; margin-bottom: 42px; }
h2 { font-family: 'Fraunces', serif; font-size: 2.6rem; margin-bottom: 14px; }
.section-sub { color: var(--stone); max-width: 620px; margin: 0 auto; }
.game-wrapper { background: var(--obsidian); border: 1px solid var(--steel); border-radius: 22px; padding: 24px; }
.game-frame { width: 100%; height: 560px; border: none; border-radius: 14px; }

/* Features */
.features { padding: 72px 0; background: var(--obsidian); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feat { background: var(--void); border: 1px solid var(--steel); border-radius: 18px; padding: 38px 24px; text-align: center; }
.feat-icon { font-size: 2.8rem; margin-bottom: 16px; }
.feat h3 { font-size: 1rem; color: var(--copper); margin-bottom: 10px; }
.feat p { font-size: 0.9rem; color: var(--stone); }

/* Content */
.content { padding: 62px 0; }
.content-box { background: var(--obsidian); border: 1px solid var(--steel); border-radius: 22px; padding: 54px; margin-bottom: 28px; }
.content-box h2 { text-align: left; font-size: 2.1rem; margin-bottom: 20px; }
.content-box p { color: var(--stone); margin-bottom: 18px; }
.content-box ul { list-style: none; margin: 24px 0; }
.content-box li { padding: 14px 0 14px 32px; position: relative; color: var(--stone); border-bottom: 1px solid var(--steel); }
.content-box li:last-child { border-bottom: none; }
.content-box li::before { content: '◎'; position: absolute; left: 0; color: var(--amber); }

/* Page Header */
.page-title { padding: 128px 0 54px; text-align: center; background: var(--obsidian); border-bottom: 1px solid var(--steel); }
.page-title h1 { font-size: 3rem; }

/* Footer */
.footer { background: var(--obsidian); border-top: 1px solid var(--steel); padding: 58px 0 32px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 54px; margin-bottom: 44px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--stone); font-size: 0.95rem; }
.footer-nav h4, .footer-help h4 { font-family: 'Fraunces', serif; font-size: 1.15rem; margin-bottom: 18px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a, .footer-help a { color: var(--stone); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.footer-nav a:hover, .footer-help a:hover { color: var(--copper); }
.help-list { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--steel); font-size: 0.85rem; color: var(--stone); }

/* Age Modal */
.age-modal { position: fixed; inset: 0; background: rgba(9, 9, 11, 0.98); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.age-modal.hidden { display: none; }
.modal-content { background: var(--obsidian); border: 2px solid var(--copper); border-radius: 24px; padding: 54px 48px; text-align: center; max-width: 500px; }
.modal-content h2 { font-family: 'Fraunces', serif; font-size: 1.9rem; margin-bottom: 18px; }
.modal-content p { color: var(--stone); margin-bottom: 32px; }
.modal-btns { display: flex; gap: 16px; justify-content: center; }
.btn-yes, .btn-no { padding: 15px 44px; font-size: 1rem; border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s; }
.btn-yes { background: linear-gradient(135deg, var(--copper), var(--amber)); color: var(--void); font-weight: 600; }
.btn-yes:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(249, 115, 22, 0.4); }
.btn-no { background: transparent; border: 1px solid var(--stone); color: var(--stone); }
.btn-no:hover { border-color: var(--copper); color: var(--copper); }
.modal-note { font-size: 0.8rem; color: var(--stone); margin-top: 28px; }

/* Responsive */
@media (max-width: 1024px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .toggle { display: flex; }
    .nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--void); display: flex; align-items: center; justify-content: center; transform: translateX(-100%); transition: transform 0.4s; z-index: 999; }
    .nav.open { transform: translateX(0); }
    .nav ul { flex-direction: column; text-align: center; gap: 28px; }
    .nav a { font-size: 1.3rem; }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    .cards { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .game-frame { height: 380px; }
    .content-box { padding: 38px 26px; }
    .modal-content { margin: 20px; padding: 44px 30px; }
    .modal-btns { flex-direction: column; }
}
