* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.compliance-banner {
    background-color: var(--warning-color);
    color: #fff;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-disclaimer {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.hero-disclaimer p {
    font-size: 16px;
    line-height: 1.7;
}

.games-section,
.compliance-section,
.responsible-gaming-section {
    padding: 64px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

.section-text {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.games-grid,
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.game-card,
.compliance-card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px var(--shadow);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.game-disclaimer {
    color: var(--danger-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}

.compliance-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.compliance-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-play {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-play:hover {
    background-color: #059669;
}

.responsible-gaming-section {
    background-color: var(--surface);
    text-align: center;
}

.site-footer {
    background-color: var(--text-primary);
    color: #fff;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-section p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links,
.footer-disclaimers {
    list-style: none;
}

.footer-links li,
.footer-disclaimers li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-disclaimers li {
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.age-verification {
    padding: 32px;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
}

.verification-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.disclaimer-text {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.disclaimer-list {
    margin-left: 24px;
    margin-bottom: 32px;
}

.disclaimer-list li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.verification-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.legal-content {
    padding: 48px 0;
}

.legal-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-section p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-list {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-notice {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.legal-notice.warning {
    background-color: #fef3c7;
    border-left-color: var(--warning-color);
}

.legal-notice h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-notice p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.resource-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.resource-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.resource-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.resource-card a:hover {
    text-decoration: underline;
}

.help-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 24px;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}

.game-header {
    text-align: center;
    margin-bottom: 32px;
}

.game-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.game-warning {
    background-color: #fef3c7;
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.game-warning p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.game-area {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: 32px;
}

.balance-display {
    text-align: center;
    margin-bottom: 32px;
}

.balance-display h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
}

.balance-note {
    font-size: 14px;
    color: var(--danger-color);
    font-weight: 600;
    margin-top: 8px;
}

.game-canvas {
    background-color: #1e293b;
    border-radius: 8px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.game-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.message-display {
    text-align: center;
    min-height: 60px;
    margin-bottom: 16px;
}

.message {
    font-size: 18px;
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
}

.message.win {
    background-color: #d1fae5;
    color: #065f46;
}

.message.lose {
    background-color: #fee2e2;
    color: #991b1b;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .main-nav {
        display: none;
    }

    .games-grid,
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .verification-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
