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

:root {
    --primary-pink: #ff6b9d;
    --secondary-pink: #ff8fab;
    --purple: #c44569;
    --dark-purple: #8e44ad;
    --light-purple: #e8b4f0;
    --bg-dark: #1a0b2e;
    --bg-gradient: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #4a2c6f 100%);
    --text-light: #ffffff;
    --text-glow: #ffd1dc;
    --shadow-pink: rgba(255, 107, 157, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.2rem 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(255, 107, 157, 0.3);
    border-bottom: 2px solid rgba(255, 107, 157, 0.4);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-pink);
    text-shadow: 0 0 25px var(--shadow-pink);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.08);
    text-shadow: 0 0 35px var(--shadow-pink);
}

.logo i {
    animation: rotateCrown 4s ease-in-out infinite;
}

@keyframes rotateCrown {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    font-size: 1.05rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(196, 69, 105, 0.25));
    color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-pink);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-pink);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.rules-section {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

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

.header-section {
    text-align: center;
    margin-bottom: 4rem;
}

.header-icon {
    font-size: 5rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.section-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--primary-pink), var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-glow);
    opacity: 0.9;
}

.rules-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 5rem;
}

.rule-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 25px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transition: left 0.6s ease;
}

.rule-card:hover::before {
    left: 100%;
}

.rule-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-pink);
    box-shadow: 0 15px 40px var(--shadow-pink);
}

.rule-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px var(--shadow-pink);
    position: relative;
    z-index: 1;
}

.rule-number::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}

.rule-card:hover .rule-number::before {
    opacity: 0.7;
}

.rule-card:hover .rule-number {
    transform: scale(1.1) rotate(360deg);
    transition: transform 0.8s ease;
}

.rule-content {
    flex: 1;
}

.rule-icon {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.4s ease;
}

.rule-card:hover .rule-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px var(--shadow-pink));
}

.rule-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-glow);
}

.rule-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.05rem;
}

.consequences-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.consequences-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
}

.consequences-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-pink), var(--light-purple));
    -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.4s ease;
}

.consequences-card:hover::after {
    opacity: 1;
}

.consequences-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-pink);
}

.consequences-icon {
    font-size: 4rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.consequences-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-glow);
}

.consequences-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.05rem;
}

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

.tos-card {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2), rgba(88, 101, 242, 0.2));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(114, 137, 218, 0.5);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s ease;
}

.tos-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(114, 137, 218, 0.4);
}

.tos-card > i {
    font-size: 4rem;
    color: #7289da;
    margin-bottom: 1.5rem;
    display: block;
}

.tos-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7289da;
}

.tos-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tos-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(114, 137, 218, 0.4);
}

.tos-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(114, 137, 218, 0.6);
}

.final-message {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.1));
    border: 2px solid var(--primary-pink);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
}

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

.final-icon {
    font-size: 5rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.final-message h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-glow);
    position: relative;
    z-index: 1;
}

.final-message p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.join-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px var(--shadow-pink);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

.join-button:hover::before {
    width: 400px;
    height: 400px;
}

.join-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-pink);
}

.join-button span {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        width: 80%;
        margin: 0 auto;
    }

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

    .rule-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rule-number {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .consequences-section {
        grid-template-columns: 1fr;
    }
}