/* Pyrelith - Mystical Social Casino Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #6b46c1;
    --color-secondary: #9333ea;
    --color-accent: #c084fc;
    --color-dark: #1a0b2e;
    --color-darker: #0f0520;
    --color-text: #e9d5ff;
    --color-text-secondary: #c4b5fd;
    --color-border: #4c1d95;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-dark) 100%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 5, 32, 0.98);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--color-accent);
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(107, 70, 193, 0.5);
}

.age-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.age-modal-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-yes, .btn-no {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.btn-yes {
    background: var(--color-secondary);
    color: white;
}

.btn-yes:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.5);
}

.btn-no {
    background: #4b5563;
    color: white;
}

.btn-no:hover {
    background: #374151;
}

/* Header */
.main-header {
    background: rgba(26, 11, 46, 0.9);
    border-bottom: 2px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--color-accent);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.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(8px, -8px);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
    background: rgba(192, 132, 252, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.3), rgba(147, 51, 234, 0.2));
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.intro-section {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

/* Notices Grid */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.notice-card {
    background: rgba(107, 70, 193, 0.1);
    border: 2px solid var(--color-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
    border-color: var(--color-accent);
}

.notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Game Section */
.game-section {
    margin-bottom: 4rem;
    text-align: center;
}

.game-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-container {
    max-width: 900px;
    margin: 2rem auto;
    border: 3px solid var(--color-accent);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.3);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.game-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-info p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* Features Grid */
.features-section {
    margin-bottom: 4rem;
}

.features-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(147, 51, 234, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Community Section */
.community-section,
.responsible-section {
    background: rgba(107, 70, 193, 0.1);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid var(--color-border);
}

.community-section h2,
.responsible-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.responsible-section ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.responsible-section li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-main {
    padding: 2rem 0;
}

.play-header {
    text-align: center;
    margin-bottom: 3rem;
}

.play-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-container-full {
    max-width: 100%;
    margin: 2rem auto;
    border: 3px solid var(--color-accent);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.3);
}

.game-frame-full {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.play-info {
    margin: 4rem 0;
}

.play-info h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(107, 70, 193, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--color-border);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.play-reminders {
    margin: 3rem 0;
}

.play-reminders h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.reminder-box {
    background: rgba(147, 51, 234, 0.2);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--color-accent);
    max-width: 800px;
    margin: 0 auto;
}

.reminder-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Legal Pages */
.legal-main {
    padding: 3rem 0;
}

.legal-main h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.updated {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.main-footer {
    background: rgba(15, 5, 32, 0.9);
    border-top: 2px solid var(--color-border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        background: rgba(26, 11, 46, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-left: 2px solid var(--color-border);
        transition: right 0.3s ease;
        height: calc(100vh - 70px);
        min-width: 250px;
    }

    .main-nav.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .intro-section h2,
    .game-section h2,
    .features-section h2 {
        font-size: 1.8rem;
    }

    .game-frame {
        height: 400px;
    }

    .game-frame-full {
        height: 500px;
    }

    .notices-grid,
    .features-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .age-modal-content {
        padding: 2rem;
        margin: 1rem;
    }

    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .game-frame,
    .game-frame-full {
        height: 350px;
    }
}
