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

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

body {
    font-family: 'Philosopher', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 50%, #16213e 100%);
    color: #d4af37;
    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(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.06) 0%, transparent 35%);
    pointer-events: none;
    z-index: 1;
}

.games-realm {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

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

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

.temple-return {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #d4af37;
    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(212, 175, 55, 0.1);
}

.temple-return:hover {
    color: #ffd700;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

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

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

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

.crown-symbol {
    font-size: 2.5rem;
    color: #d4af37;
    animation: crownGlow 3s ease-in-out infinite alternate;
}

@keyframes crownGlow {
    0% { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); transform: scale(1); }
    100% { text-shadow: 0 0 30px rgba(212, 175, 55, 1); transform: scale(1.1); }
}

.games-crown h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #d4af37;
    text-shadow:
        3px 3px 0px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.8);
    letter-spacing: 2px;
}

.chamber-stats {
    display: flex;
    gap: 2rem;
}

.stat-relic {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(138, 43, 226, 0.1));
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    font-size: 1.2rem;
    font-weight: 600;
}

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

@keyframes relicFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(5deg); }
}

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

.games-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    border-radius: 25px;
    padding: 3rem;
    border: 5px solid #d4af37;
    box-shadow:
        0 0 50px rgba(212, 175, 55, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.games-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    animation: hallRotate 25s linear infinite;
    pointer-events: none;
}

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

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

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

.deco-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;
}

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

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

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

/* Introduction Section */
.games-introduction {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 4rem;
}

.intro-scroll {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(138, 43, 226, 0.1));
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid #d4af37;
    position: relative;
}

.intro-scroll::before {
    content: '🎮';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 0 1rem;
    font-size: 2.5rem;
    color: #d4af37;
}

.intro-scroll h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.intro-scroll p {
    font-size: 1.3rem;
    color: #c9b037;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Games Categories */
.games-categories {
    position: relative;
    z-index: 2;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.category-icon {
    font-size: 3rem;
    animation: categoryPulse 3s ease-in-out infinite;
}

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

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Game Chambers */
.game-chamber {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}

.game-chamber::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: chamberRotate 15s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-chamber:hover::before {
    opacity: 1;
}

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

.game-chamber:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
}

.chamber-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: chamberGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes chamberGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.6; }
}

.game-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid #d4af37;
    transition: all 0.3s ease;
}

.slots-icon {
    background: radial-gradient(circle, #d4af37, #b8860b);
}

.mega-slots-icon {
    background: radial-gradient(circle, #ffd700, #daa520);
}

.pharaoh-slots-icon {
    background: radial-gradient(circle, #ff8c00, #ff6347);
}

.blackjack-icon {
    background: radial-gradient(circle, #8b0000, #4b0000);
}

.poker-icon {
    background: radial-gradient(circle, #8b0000, #dc143c);
}

.baccarat-icon {
    background: radial-gradient(circle, #8a2be2, #9370db);
}

.craps-icon {
    background: radial-gradient(circle, #228b22, #32cd32);
}

.sic-bo-icon {
    background: radial-gradient(circle, #ff69b4, #ff1493);
}

.dice-throne-icon {
    background: radial-gradient(circle, #daa520, #ffd700);
}

.roulette-icon {
    background: radial-gradient(circle, #dc143c, #8b0000);
}

.wheel-icon {
    background: radial-gradient(circle, #ff6347, #ff4500);
}

.dream-icon {
    background: radial-gradient(circle, #4169e1, #191970);
}

.game-chamber:hover .game-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.game-chamber h4 {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.game-chamber p {
    position: relative;
    z-index: 2;
    color: #c9b037;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.game-features {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.2));
    color: #dda0dd;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(138, 43, 226, 0.5);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5), rgba(75, 0, 130, 0.3));
    transform: translateY(-2px);
}

.play-btn {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.play-btn:hover {
    background: linear-gradient(45deg, #ffd700, #ffef94);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    border-color: #d4af37;
}

/* Games Features Section */
.games-features {
    position: relative;
    z-index: 2;
    margin-top: 4rem;
}

.features-scroll {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.1));
    border: 3px solid #8a2be2;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.features-scroll h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #8a2be2;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(138, 43, 226, 0.05));
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(138, 43, 226, 0.1));
    transform: translateY(-5px);
    border-color: #8a2be2;
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #8a2be2;
    animation: featureFloat 3s ease-in-out infinite;
}

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

.feature-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #c9b037;
    line-height: 1.6;
}

/* Footer */
.games-footer {
    background: linear-gradient(135deg, #0f1419, #1a1a2e);
    color: #d4af37;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 3px solid #d4af37;
    margin-top: 3rem;
}

.footer-mystical {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-symbols {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    animation: symbolsDance 6s ease-in-out infinite;
}

@keyframes symbolsDance {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(5px); }
}

.footer-blessing {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #c9b037;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

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

.footer-navigation a {
    color: #d4af37;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
}

.footer-navigation a:hover {
    color: #ffd700;
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.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;
}

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

.float-game {
    position: absolute;
    color: rgba(212, 175, 55, 0.4);
    font-size: 2rem;
    animation: gameFloat 18s linear infinite;
}

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

.float-game:nth-child(2) {
    left: 35%;
    animation-delay: 4s;
    color: rgba(138, 43, 226, 0.4);
}

.float-game:nth-child(3) {
    left: 65%;
    animation-delay: 8s;
    color: rgba(255, 215, 0, 0.4);
}

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

@keyframes gameFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

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

    .games-container {
        padding: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

    .chamber-stats {
        gap: 1rem;
    }

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

    .games-container {
        padding: 1.5rem 1rem;
    }

    .intro-scroll h2 {
        font-size: 2rem;
    }

    .category-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

@media (max-width: 480px) {
    .games-container {
        padding: 1rem;
    }

    .game-chamber {
        padding: 1.5rem;
    }

    .intro-scroll {
        padding: 2rem 1rem;
    }

    .features-scroll {
        padding: 2rem 1rem;
    }
}
