@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500&display=swap');

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #6c63ff;
    --accent: #ff6b6b;
    --strong-tag: #8569aa;
    --background: linear-gradient(45deg, #1a1a2e 0%, #16213e 100%);
    --card-bg: #ffffff0d;
    --text-primary: #ffffff;
    --text-secondary: #ffffffcc;
    --border-color: #ffffff1a;
    --shadow-color: #00000033;
    --font-main: 'Inter', sans-serif;
    --font-headings: 'Poppins', sans-serif;
    --glass-blur: blur(12px);
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --radius-lg: 16px;
}

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 9;
}

/* ⬆️ ToTop BTN - RULES PAGE 📘 */
.back-to-top-rules {
    background-color: var(--primary);
    box-shadow: var(--shadow);
    border: 2px solid var(--accent);
}

.footer-wrapper {
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: inline;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

body {
    font-family: var(--font-main);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.rules-container-wrapper {
    margin: .5rem 1rem 4.5rem;
}

.main-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    animation: fadeInUp 1s ease-out;
}

strong {
    color: var(--strong-tag);
    font-weight: 600;
}

h1,
h2,
h3 {
    font-family: var(--font-headings);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 3rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
}

h3::before {
    content: "•";
    color: var(--primary-dark);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    line-height: 1;
}

.title-content-paragraph {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-top: .5rem;
    line-height: 1.7;
}

.content-paragraph {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}


/*// Sections  */
.rules-section-wrapper {
    padding: 1.5rem;
    margin: 2.5rem 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.rules-section-wrapper:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.1);
}

.rules-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
    padding: 1.5rem 0 0;
}

.rules-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease forwards;
}

.rules-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-dark);
}

.rules-item .content-paragraph {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/*// Responsive design */
@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem;
    }

    .rules-section-wrapper {
        padding: 1.2rem;
        margin: 2rem 0;
    }

    .rules-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-top: 2rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .rules-container-wrapper {
        margin: 0.5rem 0.5rem 4rem;
    }

    .main-container {
        margin: 0.5rem auto;
        padding: .5rem;
    }

    .rules-section-wrapper {
        padding: .7rem;
        margin: .7rem 0;
    }

    .rules-item {
        padding: .7rem;
    }

    .content-paragraph {
        font-size: 1rem;
    }
}

@media (max-width: 350px) {
    .rules-container-wrapper {
        margin: 0.5rem 0.5rem 6rem;
    }

    .rules-item {
        padding: .5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

.rules-item .content-paragraph {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.content-list {
    padding-left: 1.5rem;
    list-style-type: disc;
}