/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --yellow: #fbbf24;
    --yellow-dark: #d97706;
    --yellow-glow: rgba(251, 191, 36, 0.4);
    --orange: #f97316;
    --discord: #5865f2;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.06);

    /* Gradients */
    --gradient-yellow: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #d97706 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #fcd34d 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: relative;
    z-index: 100;
    padding: 1.5rem 0;
}

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

.nav-left,
.nav-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.nav-btn,
.discord-btn,
.shop-btn {
    text-decoration: none;
}

.nav-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.discord-btn {
    background: var(--discord);
    border: 2px solid var(--discord);
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.discord-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.shop-btn {
    background: var(--yellow);
    border: 2px solid var(--yellow);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.813rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-btn:hover {
    transform: translateY(-2px);
    background: var(--yellow-dark);
}

/* ===== RULES SECTION ===== */
.rules-section {
    position: relative;
    z-index: 10;
    padding: 4rem 0 6rem;
    min-height: calc(100vh - 200px);
}

.rules-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.rules-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.rules-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== RULES GRID ===== */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.rule-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.rule-card:hover {
    background: var(--glass-hover);
    border-color: var(--yellow);
    transform: translateY(-5px);
}

.rule-card:hover::before {
    transform: scaleX(1);
}

.rule-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(251, 191, 36, 0.1);
    line-height: 1;
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.rule-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.rule-description {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
}

/* ===== RULES FOOTER ===== */
.rules-footer {
    max-width: 900px;
    margin: 0 auto;
}

.rules-notice {
    background: var(--glass-bg);
    border: 2px solid var(--yellow);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.rules-notice h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.rules-notice p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.938rem;
}

.rules-cta {
    text-align: center;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.938rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn svg {
    position: relative;
    z-index: 1;
}

.cta-primary {
    background: var(--discord);
    color: white;
    border: 2px solid var(--discord);
}

.cta-primary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 2rem;
    backdrop-filter: blur(10px);
}

.footer-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-disclaimer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-center {
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }

    .rules-title {
        font-size: 2.5rem;
    }

    .rules-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-left,
    .nav-right {
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .nav-btn svg {
        display: none;
    }

    .rules-title {
        font-size: 2rem;
    }

    .rules-subtitle {
        font-size: 1rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .rule-card {
        padding: 1.5rem;
    }

    .rule-number {
        font-size: 2.5rem;
    }

    .rule-icon {
        font-size: 2rem;
    }

    .rule-title {
        font-size: 1.125rem;
    }

    .rules-notice {
        padding: 1.5rem;
    }

    .rules-notice h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .rules-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .rule-card {
        padding: 1.25rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}