* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #b537f2 0%, #f24582 100%);
    --secondary-gradient: linear-gradient(135deg, #8b2fc9 0%, #d63370 100%);
    --dark-bg: #1a0b2e;
    --card-bg: #2a1a4e;
    --text-light: #ffffff;
    --text-gray: #c7b8ea;
    --accent: #f24582;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    padding: 0;
}

/* Header Styles */
header {
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(181, 55, 242, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--text-light);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.age-popup.hidden {
    display: none;
}

.age-popup-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    border: 2px solid rgba(181, 55, 242, 0.5);
    box-shadow: 0 0 40px rgba(181, 55, 242, 0.3);
}

.logo-popup {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.age-popup-content h2 {
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-popup-content p {
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-yes, .btn-no {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-yes {
    background: var(--primary-gradient);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(181, 55, 242, 0.4);
}

.btn-no {
    background: transparent;
    color: var(--text-gray);
    border: 2px solid var(--text-gray);
}

.btn-no:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero .tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 4rem 0;
}

.intro h2, .notices h2, .game-section h2, .features h2, .responsible-gaming h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Notice Cards */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.notice-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(181, 55, 242, 0.2);
    transition: all 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 55, 242, 0.6);
    box-shadow: 0 10px 30px rgba(181, 55, 242, 0.2);
}

.notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notice-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.notice-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Game Section */
.game-section {
    background: rgba(42, 26, 78, 0.5);
}

.game-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(181, 55, 242, 0.3);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid transparent;
    border-image: var(--primary-gradient) 1;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(181, 55, 242, 0.2);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Responsible Gaming */
.responsible-gaming {
    background: var(--card-bg);
}

.responsible-gaming p {
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Footer */
footer {
    background: rgba(10, 5, 20, 0.95);
    padding: 3rem 0 1rem;
    border-top: 2px solid rgba(181, 55, 242, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(181, 55, 242, 0.2);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Play Page Specific */
.play-header {
    background: var(--primary-gradient);
    padding: 3rem 0;
    text-align: center;
}

.play-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(181, 55, 242, 0.2);
}

.info-box h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.info-box p {
    color: var(--text-gray);
}

.game-section-play {
    background: var(--dark-bg);
    padding: 2rem 0;
}

.game-container-play {
    max-width: 100%;
    margin: 0 auto;
    background: #000;
}

.game-frame-play {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.play-tips {
    background: rgba(42, 26, 78, 0.5);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(181, 55, 242, 0.2);
}

.tip-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tip-card p {
    color: var(--text-gray);
}

/* Legal Pages */
.legal-header {
    background: var(--primary-gradient);
    padding: 3rem 0;
    text-align: center;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-header .updated {
    opacity: 0.9;
}

.legal-content {
    padding: 3rem 0;
}

.terms-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid transparent;
    border-image: var(--primary-gradient) 1;
}

.terms-section h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.terms-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.terms-section li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.highlight-section {
    border: 2px solid rgba(242, 69, 130, 0.5);
    box-shadow: 0 0 20px rgba(242, 69, 130, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        background: rgba(26, 11, 46, 0.98);
        flex-direction: column;
        width: 250px;
        padding: 2rem;
        border-radius: 0 0 0 15px;
        border-left: 2px solid rgba(181, 55, 242, 0.5);
        border-bottom: 2px solid rgba(181, 55, 242, 0.5);
        transition: right 0.3s ease;
        gap: 1.5rem;
    }

    nav.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .notice-grid, .feature-grid, .tips-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 400px;
    }

    .game-frame-play {
        height: 500px;
    }

    .age-popup-content {
        padding: 2rem;
        margin: 1rem;
    }

    .age-buttons {
        flex-direction: column;
    }
}
