* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #f0f4f8;
    color: #334155;
    line-height: 1.6;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* App Wrapper */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0891b2;
}

.logo-emoji {
    font-size: 1.8rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: #0891b2;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0891b2;
}

/* Age Modal */
.modal-age {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-age.hidden {
    display: none;
}

.modal-box {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-box h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.modal-box p {
    color: #64748b;
    margin-bottom: 1rem;
}

.modal-note {
    font-size: 0.9rem;
    color: #94a3b8;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #64748b;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
}

.hero-h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.badge-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Sections */
.about-section,
.features-section,
.notice-section,
.game-section,
.values-section {
    margin: 3rem 0;
}

.heading-2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 1.5rem;
}

.text-lead {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.section-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #0891b2;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.7;
}

/* Notice Section */
.notice-block {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #ef4444;
}

.notice-title {
    font-size: 1.8rem;
    color: #991b1b;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.notice-items {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-items li {
    background: #fff;
    padding: 1.2rem;
    border-radius: 10px;
    color: #475569;
}

.strong {
    font-weight: 700;
    color: #0f172a;
}

.notice-items .strong {
    color: #991b1b;
}

/* Game Section */
.game-box {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.game-notes {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.game-notes p {
    color: #475569;
    margin: 0.8rem 0;
}

.game-notes .strong {
    color: #0891b2;
}

/* Values Section */
.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-block {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.value-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.value-block h4 {
    font-size: 1.4rem;
    color: #0891b2;
    margin-bottom: 0.8rem;
}

.value-block p {
    color: #475569;
    line-height: 1.7;
}

/* Page Top */
.page-top {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
}

.page-heading {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.doc-date {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}

/* Play Page */
.alert-section {
    margin: 2rem 0;
}

.alert-box {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #eab308;
}

.alert-box p {
    color: #475569;
    margin: 0;
}

.alert-box .strong {
    color: #0891b2;
}

.gameplay-section {
    margin: 2rem 0;
}

.instructions-section {
    margin: 2rem 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 2rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.instruction-panel {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.instruction-panel h4 {
    font-size: 1.3rem;
    color: #0891b2;
    margin-bottom: 1rem;
}

.instruction-list {
    list-style: none;
    padding: 0;
}

.instruction-list li {
    padding: 0.6rem 0 0.6rem 2rem;
    color: #475569;
    position: relative;
}

.instruction-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #0891b2;
}

.responsibility-section {
    margin: 2rem 0;
}

.responsibility-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #0891b2;
}

.responsibility-box h3 {
    font-size: 1.8rem;
    color: #0c4a6e;
    margin-bottom: 1rem;
}

.responsibility-box p {
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Legal Section */
.legal-section {
    margin: 2rem 0;
}

.legal-content {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: #0891b2;
    margin: 1.5rem 0 1rem;
}

.legal-content p {
    color: #475569;
    margin: 1rem 0;
    line-height: 1.8;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content ul li {
    color: #475569;
    margin: 0.5rem 0;
    line-height: 1.7;
}

.legal-notice {
    background: #fef3c7;
    border: 2px solid #eab308;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.legal-notice p {
    color: #713f12;
    margin: 0;
    font-weight: 600;
}

.warning-block {
    background: #fee2e2;
    border: 3px solid #ef4444;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.warning-block p {
    color: #991b1b;
    margin: 0;
    font-weight: 600;
}

/* Footer */
.page-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-block h4 {
    color: #0891b2;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-block p {
    line-height: 1.7;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin: 0.5rem 0;
}

.footer-menu a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #0891b2;
}

.footer-bar {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .hero-h1 {
        font-size: 2rem;
    }

    .hero-lead {
        font-size: 1.2rem;
    }

    .badge-group {
        flex-direction: column;
        align-items: center;
    }

    .heading-2 {
        font-size: 2rem;
    }

    .page-heading {
        font-size: 2rem;
    }

    .game-frame {
        height: 400px;
    }

    .modal-box {
        padding: 2rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .legal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-h1 {
        font-size: 1.5rem;
    }

    .hero-banner {
        padding: 2rem 1rem;
    }

    .game-frame {
        height: 300px;
    }
}
