@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-purple: #1a0033;
    --royal-purple: #5b21b6;
    --light-purple: #a855f7;
    --silver: #c8b6e2;
    --mystic-silver: #e9d5ff;
    --text-light: #ffffff;
    --text-silver: #f3e8ff;
}

body {
    font-family: 'Lato', sans-serif;
    background: radial-gradient(ellipse at center, #2e1065 0%, #1a0033 70%);
    color: var(--text-silver);
    min-height: 100vh;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(168, 85, 247, 0.15), transparent),
                      radial-gradient(2px 2px at 60px 70px, rgba(168, 85, 247, 0.15), transparent),
                      radial-gradient(1px 1px at 130px 40px, rgba(168, 85, 247, 0.2), transparent),
                      radial-gradient(2px 2px at 90px 10px, rgba(168, 85, 247, 0.15), transparent);
    background-size: 200px 200px;
    animation: sparkle 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes sparkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

header {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95) 0%, rgba(91, 33, 182, 0.9) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.3);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--light-purple);
}

.header-content {
    max-width: 100%;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.7));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.9)); }
}

.site-name {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--mystic-silver);
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--light-purple), var(--mystic-silver));
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    color: var(--text-silver);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, var(--light-purple), var(--mystic-silver));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

nav ul li a:hover::before {
    opacity: 1;
}

nav ul li a:hover {
    color: var(--light-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

main {
    max-width: 100%;
    padding: 3rem 3rem;
    position: relative;
    z-index: 2;
}

.hero-section {
    text-align: center;
    padding: 6rem 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.2) 0%, rgba(26, 0, 51, 0.3) 100%);
    border-radius: 25px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(168, 85, 247, 0.1) 50%, transparent 60%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-section h1 {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    margin-bottom: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--mystic-silver) 0%, var(--light-purple) 50%, var(--mystic-silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 850px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.notice-box {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.15) 0%, rgba(26, 0, 51, 0.2) 100%);
    border: 2px solid var(--light-purple);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 950px;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
}

.notice-box h2 {
    font-family: 'Cinzel', serif;
    color: var(--mystic-silver);
    margin-bottom: 1.8rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.notice-box ul {
    list-style: none;
    padding-left: 0;
}

.notice-box ul li {
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    background: rgba(168, 85, 247, 0.1);
    border-left: 4px solid var(--light-purple);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 400;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.1);
}

.game-container {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.5) 0%, rgba(91, 33, 182, 0.3) 100%);
    border: 2px solid var(--light-purple);
    border-radius: 25px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 1500px;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

.game-container h2 {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: var(--mystic-silver);
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.game-frame {
    width: 100%;
    min-height: 700px;
    border: 2px solid var(--royal-purple);
    border-radius: 15px;
    background: #000;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.content-section {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.4) 0%, rgba(91, 33, 182, 0.2) 100%);
    border-radius: 20px;
    padding: 3.5rem;
    margin: 2.5rem auto;
    max-width: 1100px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.15);
}

.content-section h1 {
    font-family: 'Cinzel', serif;
    color: var(--mystic-silver);
    margin-bottom: 2rem;
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.content-section h2 {
    font-family: 'Cinzel', serif;
    color: var(--mystic-silver);
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.content-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--light-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-silver);
}

.content-section ul, .content-section ol {
    margin-left: 2.2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-silver);
}

footer {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95) 0%, rgba(91, 33, 182, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 3.5rem 3rem;
    margin-top: 5rem;
    border-top: 2px solid var(--light-purple);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--mystic-silver);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--text-silver);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--light-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.age-verification {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 0, 51, 0.97);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-verification.active {
    display: flex;
}

.age-modal {
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.95) 0%, rgba(26, 0, 51, 0.95) 100%);
    border: 3px solid var(--light-purple);
    border-radius: 25px;
    padding: 3.5rem;
    text-align: center;
    max-width: 540px;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.5);
    position: relative;
}

.age-modal::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--light-purple), var(--mystic-silver));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.age-modal h2 {
    font-family: 'Cinzel', serif;
    color: var(--mystic-silver);
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

.age-modal p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.age-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.age-button {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border: 2px solid var(--light-purple);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
}

.age-button.yes {
    background: linear-gradient(135deg, var(--royal-purple) 0%, var(--light-purple) 100%);
    color: var(--text-light);
}

.age-button.yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

.age-button.no {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-silver);
}

.age-button.no:hover {
    background: rgba(168, 85, 247, 0.2);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 0, 51, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav ul.active {
        max-height: 500px;
        border-bottom: 2px solid var(--light-purple);
    }

    nav ul li {
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }

    nav ul li a {
        display: block;
        padding: 1.5rem 3rem;
        border-radius: 0;
    }

    .header-content {
        padding: 0 1.5rem;
    }

    .site-name {
        font-size: 2rem;
    }

    main {
        padding: 2.5rem 1.5rem;
    }

    .hero-section {
        padding: 4rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 2.5rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .age-modal {
        margin: 1.5rem;
        padding: 2.5rem;
    }

    .age-buttons {
        flex-direction: column;
        gap: 1.2rem;
    }
}
