@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --bg-main: #f0f7f7;
    --bg-card: #ffffff;
    --primary-teal: #0d9488;
    --primary-dark: #134e4a;
    --accent-coral: #f97316;
    --accent-pink: #ec4899;
    --text-dark: #1e293b;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --shadow-soft: 0 4px 20px rgba(13, 148, 136, 0.1);
    --shadow-hover: 0 10px 40px rgba(13, 148, 136, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.8;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    line-height: 1.3;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-coral);
}

/* Header */
.header {
    background: var(--bg-card);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.brand-icon {
    width: 44px;
    height: 44px;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-mid);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-teal);
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-coral);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-teal);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    gap: 10px;
}

.mobile-nav.show {
    display: flex;
}

.mobile-nav a {
    color: var(--text-dark);
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    background: var(--bg-main);
}

.mobile-nav a:hover {
    background: var(--primary-teal);
    color: white;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 30px 80px;
    background: linear-gradient(135deg, #e0f2f1 0%, #f0fdfa 50%, #fef7ec 100%);
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.hero-text h1 span {
    color: var(--accent-coral);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-mid);
    margin-bottom: 35px;
    line-height: 1.9;
}

.notice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.pill {
    background: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-teal);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 45px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.hero-visual {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-hover);
}

.hero-visual iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 16px;
}

/* Features */
.features-section {
    padding: 100px 30px;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.features-header p {
    color: var(--text-mid);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-main);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: white;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-mid);
    font-size: 0.9rem;
}

/* Game Area */
.game-area {
    padding: 80px 30px;
    background: linear-gradient(180deg, var(--bg-main) 0%, #e0f2f1 100%);
}

.game-container {
    max-width: 1100px;
    margin: 0 auto;
}

.game-area h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 40px;
}

.game-frame {
    background: white;
    border-radius: 24px;
    padding: 15px;
    box-shadow: var(--shadow-hover);
}

.game-frame iframe {
    width: 100%;
    height: 620px;
    border: none;
    border-radius: 16px;
}

/* Play Page */
.play-banner {
    padding: 140px 30px 50px;
    background: linear-gradient(135deg, #e0f2f1 0%, #f0fdfa 100%);
    text-align: center;
}

.play-banner h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.play-banner p {
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
}

.play-content {
    padding: 50px 30px 100px;
    background: var(--bg-main);
}

.tips-box {
    max-width: 800px;
    margin: 40px auto 0;
    background: white;
    padding: 30px;
    border-radius: 16px;
    border-left: 5px solid var(--accent-coral);
    box-shadow: var(--shadow-soft);
}

.tips-box h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.tips-box p {
    color: var(--text-mid);
}

/* Content Pages */
.content-wrapper {
    padding: 140px 30px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h1 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 50px;
}

.content-wrapper h2 {
    font-size: 1.6rem;
    margin: 40px 0 18px;
    padding-top: 15px;
}

.content-wrapper p {
    color: var(--text-mid);
    margin-bottom: 18px;
}

.content-wrapper ul {
    margin: 15px 0 20px 25px;
    color: var(--text-mid);
}

.content-wrapper li {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 70px 30px 35px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--accent-coral);
}

.gambling-help {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.gambling-help p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gambling-help a {
    color: var(--accent-coral);
    margin: 0 15px;
    font-size: 0.9rem;
}

.copyright-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Age Modal */
.age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 78, 74, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.age-overlay.hidden {
    display: none;
}

.age-box {
    background: white;
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.age-box h2 {
    font-size: 1.9rem;
    margin-bottom: 20px;
}

.age-box p {
    color: var(--text-mid);
    margin-bottom: 35px;
}

.age-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.age-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.age-btn.confirm {
    background: var(--primary-teal);
    color: white;
}

.age-btn.confirm:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.age-btn.deny {
    background: var(--bg-main);
    color: var(--text-mid);
}

.age-btn.deny:hover {
    background: #fecaca;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .notice-pills {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-visual iframe {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .game-frame iframe {
        height: 450px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .age-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.4rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .pill {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .hero-visual iframe {
        height: 350px;
    }
    
    .game-frame iframe {
        height: 380px;
    }
}
