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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c2d12 100%);
    min-height: 100vh;
    color: #1f2937;
}

.header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crown-icon {
    color: #fbbf24;
}

.logo-section h1 {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
}

.balance-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.3);
}

.coin-icon {
    color: #fbbf24;
}

.balance-section span {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.warning-banner {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    backdrop-filter: blur(10px);
}

.warning-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
}

.warning-text {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
}

.warning-text a {
    color: #fde047;
    text-decoration: underline;
    font-weight: 600;
}

.warning-text a:hover {
    color: #fef08a;
}

.welcome-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.4);
}

.hero-content {
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    color: #fef3c7;
}

.welcome-text {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-text h2 {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.welcome-text p {
    font-size: 1.25rem;
    color: #fef3c7;
}

.game-container {
    max-width: 64rem;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border: 4px solid #fbbf24;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.game-card:hover {
    transform: scale(1.05);
    border-color: #f59e0b;
    box-shadow: 0 25px 50px rgba(251, 191, 36, 0.5);
}

.game-icon {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    display: inline-block;
    margin: 0 auto;
}

.game-icon svg {
    color: white;
    display: block;
}

.game-card {
    text-align: center;
}

.game-card h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin: 1rem 0;
}

.game-card p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.play-button {
    padding-top: 1rem;
}

.play-button span {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transition: all 0.3s;
}

.game-card:hover .play-button span {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
}

.rules-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border: 2px solid #fde68a;
}

.rules-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rules-section {
    margin-bottom: 1.5rem;
}

.rules-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.rules-section p {
    color: #374151;
    line-height: 1.7;
}

.rules-section ul,
.rules-section ol {
    margin-left: 1.5rem;
    color: #374151;
}

.rules-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.rules-section ul ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.pro-tips {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.5rem;
}

.pro-tips h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.pro-tips ul {
    margin-left: 1.5rem;
}

.pro-tips li {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.why-play {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.why-play h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.feature {
    padding: 1rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fde68a;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.875rem;
    color: #fef3c7;
}

.disclaimer-box {
    margin-top: 2rem;
    background: rgba(127, 29, 29, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid rgba(185, 28, 28, 0.5);
}

.disclaimer-box h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.disclaimer-box p {
    color: #fef3c7;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #fef3c7;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.policy-content a {
    color: #fde047;
    text-decoration: underline;
}

.policy-content a:hover {
    color: #fef08a;
}

.disclaimer-highlight {
    color: #fde68a !important;
    font-weight: 600;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(59, 130, 246, 0.4);
}

.game-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.game-status {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.3);
}

.game-table {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.dealer-section,
.player-section {
    margin-bottom: 2rem;
}

.player-section {
    margin-bottom: 0;
}

.hand-label {
    color: #fef3c7;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-hand {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: 140px;
}

.card {
    width: 100px;
    height: 140px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem;
}

.card.red {
    color: #dc2626;
}

.card.black {
    color: #1f2937;
}

.card-back {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

.betting-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bet-controls label {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

#bet-amount {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #fbbf24;
    font-size: 1rem;
    font-weight: 600;
    width: 120px;
}

.chip-button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.chip-button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.4);
}

.game-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.control-button {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.control-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.control-button.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.control-button.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.control-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.policy-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.policy-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-content h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.partner-link {
    text-decoration: none;
    transition: transform 0.3s;
}

.partner-link:hover {
    transform: scale(1.1);
}

.partner-badge {
    background: white;
    color: #1f2937;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.partner-badge.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: #fde68a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.copyright,
.footer-note {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .welcome-text h2 {
        font-size: 2rem;
    }

    .game-card h3 {
        font-size: 1.5rem;
    }

    .bet-controls {
        justify-content: center;
    }

    .game-controls {
        flex-direction: column;
    }

    .control-button {
        width: 100%;
    }

    .card-hand {
        justify-content: center;
    }
}
