@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap');

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

body {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #8b0000 0%, #4b0000 50%, #2b0000 100%);
    color: #ffd700;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(220, 20, 60, 0.05) 0%, transparent 35%);
    pointer-events: none;
    z-index: 1;
}

.poker-palace {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Header Styles */
.palace-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(75, 0, 0, 0.95));
    backdrop-filter: blur(15px);
    border-bottom: 3px solid #ffd700;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.royal-return {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffd700;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.1);
}

.royal-return:hover {
    color: #ffef94;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.return-ankh {
    font-size: 1.5rem;
    font-weight: bold;
    animation: ankhFloat 2s ease-in-out infinite;
}

@keyframes ankhFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

.poker-crown {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.crown-jewel, .royal-scepter {
    font-size: 2.5rem;
    color: #ffd700;
    animation: royalGlow 3s ease-in-out infinite alternate;
}

.royal-scepter {
    animation-delay: 1.5s;
}

@keyframes royalGlow {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); transform: scale(1); }
    100% { text-shadow: 0 0 30px rgba(255, 215, 0, 1); transform: scale(1.1); }
}

.poker-crown h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow:
        3px 3px 0px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.8);
    letter-spacing: 2px;
}

.royal-status {
    display: flex;
    gap: 2rem;
}

.status-emblem {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(220, 20, 60, 0.1));
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    font-size: 1.2rem;
    font-weight: 600;
}

.emblem-icon {
    font-size: 1.5rem;
    animation: emblemPulse 2s ease-in-out infinite;
}

@keyframes emblemPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Main Poker Hall */
.poker-hall {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.royal-table {
    background: linear-gradient(135deg, #660000 0%, #330000 50%, #1a0000 100%);
    border-radius: 25px;
    padding: 3rem;
    border: 5px solid #ffd700;
    box-shadow:
        0 0 50px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.royal-table::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    animation: tableRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes tableRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-ornaments {
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    pointer-events: none;
    color: #ffd700;
    font-size: 1.5rem;
    opacity: 0.7;
}

.ornament-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: ornamentFloat 4s ease-in-out infinite;
}

.ornament-sides {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.side-pillar {
    font-size: 2.5rem;
    animation: pillarGlow 3s ease-in-out infinite alternate;
}

.side-pillar:last-child {
    animation-delay: 1.5s;
}

.ornament-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: ornamentFloat 4s ease-in-out infinite reverse;
}

@keyframes ornamentFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pillarGlow {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

/* Game Frame */
.game-frame {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #000 0%, #4b0000 50%, #000 100%);
    border: 4px solid #ffd700;
    border-radius: 20px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow:
        inset 0 0 30px rgba(255, 215, 0, 0.2),
        0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.poker-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Poker Wisdom */
.poker-wisdom {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.wisdom-panel {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(220, 20, 60, 0.1));
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #ffd700;
}

.wisdom-panel h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.wisdom-panel p {
    font-size: 1.2rem;
    color: #ffef94;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.poker-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.royal-feature {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: #ffd700;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #ffd700;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.royal-feature:hover {
    background: linear-gradient(135deg, #ff1744, #d50000);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

/* Footer */
.palace-footer {
    background: linear-gradient(135deg, #8b0000, #4b0000);
    color: #ffd700;
    padding: 2rem;
    text-align: center;
    border-top: 3px solid #ffd700;
    margin-top: 3rem;
}

.footer-hieroglyphs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    animation: hieroglyphDance 6s ease-in-out infinite;
}

@keyframes hieroglyphDance {
    0%, 100% { transform: translateY(0); }
    33% { transform: translateY(-5px); }
    66% { transform: translateY(5px); }
}

.footer-blessing {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ffef94;
}

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

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-links a:hover {
    color: #ffef94;
    background: rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Floating Cards */
.floating-cards {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-card {
    position: absolute;
    color: rgba(255, 215, 0, 0.3);
    font-size: 2rem;
    animation: cardFloat 15s linear infinite;
}

.float-card:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.float-card:nth-child(2) {
    left: 30%;
    animation-delay: 4s;
    color: rgba(220, 20, 60, 0.3);
}

.float-card:nth-child(3) {
    left: 60%;
    animation-delay: 8s;
    color: rgba(220, 20, 60, 0.3);
}

.float-card:nth-child(4) {
    left: 80%;
    animation-delay: 12s;
}

@keyframes cardFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .poker-hall {
        padding: 2rem 1rem;
    }

    .royal-table {
        padding: 2rem;
    }

    .game-frame {
        height: 500px;
    }
}

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

    .royal-status {
        gap: 1rem;
    }

    .poker-crown h1 {
        font-size: 2rem;
    }

    .royal-table {
        padding: 1.5rem 1rem;
    }

    .game-frame {
        height: 400px;
        margin: 1rem 0;
    }

    .poker-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .royal-feature {
        width: 200px;
        text-align: center;
    }

    .wisdom-panel h3 {
        font-size: 1.5rem;
    }

    .wisdom-panel p {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.age-disclaimer {
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem auto;
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    max-width: 600px;
}

@media (max-width: 480px) {
    .game-frame {
        height: 350px;
    }

    .royal-table {
        padding: 1rem;
    }

    .table-ornaments {
        font-size: 1.2rem;
    }
}
