:root {
    --bg-dark: #0f1923;
    --bg-darker: #0a1118;
    --accent-red: #ff4655;
    --accent-red-glow: rgba(255, 70, 85, 0.4);
    --text-main: #ece8e1;
    --text-muted: #8b978f;
    --border-color: rgba(236, 232, 225, 0.1);
    --card-bg: rgba(15, 25, 35, 0.7);
    
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 70, 85, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 70, 85, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    perspective: 1000px;
    transform: rotateX(60deg) translateY(-100px) scale(2);
    transform-origin: top;
    opacity: 0.4;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 30px; }
}

.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 50px;
}

.pre-title {
    font-family: var(--font-heading);
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(236, 232, 225, 0.3);
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    5% { clip: rect(69px, 9999px, 4px, 0); }
    10% { clip: rect(28px, 9999px, 49px, 0); }
    15% { clip: rect(15px, 9999px, 99px, 0); }
    20% { clip: rect(44px, 9999px, 34px, 0); }
    25% { clip: rect(78px, 9999px, 60px, 0); }
    30% { clip: rect(93px, 9999px, 14px, 0); }
    35% { clip: rect(51px, 9999px, 87px, 0); }
    40% { clip: rect(12px, 9999px, 48px, 0); }
    45% { clip: rect(88px, 9999px, 73px, 0); }
    50% { clip: rect(33px, 9999px, 2px, 0); }
    55% { clip: rect(6px, 9999px, 92px, 0); }
    60% { clip: rect(70px, 9999px, 21px, 0); }
    65% { clip: rect(40px, 9999px, 63px, 0); }
    70% { clip: rect(96px, 9999px, 38px, 0); }
    75% { clip: rect(22px, 9999px, 81px, 0); }
    80% { clip: rect(59px, 9999px, 11px, 0); }
    85% { clip: rect(81px, 9999px, 54px, 0); }
    90% { clip: rect(3px, 9999px, 96px, 0); }
    95% { clip: rect(47px, 9999px, 29px, 0); }
    100% { clip: rect(84px, 9999px, 7px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    5% { clip: rect(18px, 9999px, 5px, 0); }
    10% { clip: rect(83px, 9999px, 42px, 0); }
    15% { clip: rect(31px, 9999px, 88px, 0); }
    20% { clip: rect(9px, 9999px, 64px, 0); }
    25% { clip: rect(55px, 9999px, 22px, 0); }
    30% { clip: rect(97px, 9999px, 75px, 0); }
    35% { clip: rect(42px, 9999px, 16px, 0); }
    40% { clip: rect(76px, 9999px, 93px, 0); }
    45% { clip: rect(24px, 9999px, 37px, 0); }
    50% { clip: rect(89px, 9999px, 8px, 0); }
    55% { clip: rect(11px, 9999px, 51px, 0); }
    60% { clip: rect(63px, 9999px, 98px, 0); }
    65% { clip: rect(37px, 9999px, 29px, 0); }
    70% { clip: rect(82px, 9999px, 67px, 0); }
    75% { clip: rect(5px, 9999px, 45px, 0); }
    80% { clip: rect(49px, 9999px, 84px, 0); }
    85% { clip: rect(94px, 9999px, 12px, 0); }
    90% { clip: rect(27px, 9999px, 58px, 0); }
    95% { clip: rect(71px, 9999px, 95px, 0); }
    100% { clip: rect(14px, 9999px, 32px, 0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-main);
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Rules Container */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 100px;
}

/* Rule Cards */
.rule-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.rule-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.rule-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px var(--accent-red-glow);
}

.rule-card::before {
    content: attr(data-index);
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Lists */
.rule-list {
    list-style: none;
}

.rule-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
}

.bullet-list li {
    padding-left: 20px;
}
.bullet-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.numbered-list {
    list-style-type: decimal;
    padding-left: 20px;
}
.numbered-list li {
    padding-left: 10px;
}

.sub-list {
    list-style-type: circle;
    padding-left: 25px;
    margin-top: 8px;
    color: var(--text-muted);
}
.sub-list li {
    margin-bottom: 6px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tags span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-red);
}

.danger-tags span {
    border-color: rgba(255, 70, 85, 0.3);
}

/* Utility Classes */
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 25px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.danger-text { color: #ff7682; }

/* Boxes */
.highlight-box {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 70, 85, 0.2), transparent);
    border-left: 4px solid var(--accent-red);
    padding: 10px 20px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 15px;
    color: #ffd54f;
    border-radius: 0 4px 4px 0;
}

/* Grid Layouts inside cards */
.grid-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.info-block {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Settings List */
.settings-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.settings-list li {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 4px;
}

.setting-val.on { color: #4caf50; font-weight: bold; }
.setting-val.off { color: var(--accent-red); font-weight: bold; }

/* Veto Grid */
.veto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.veto-list {
    list-style: none;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.veto-list li {
    position: relative;
    padding: 8px 0 8px 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.veto-list li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.team-a { color: #00ffff; font-weight: 600; }
.team-b { color: #ff4655; font-weight: 600; }
.result { 
    color: #ffd54f; 
    font-weight: 600; 
    margin-top: 10px;
    background: rgba(255, 213, 79, 0.1);
    padding-left: 15px !important;
}
.result::before { background: #ffd54f !important; }

/* Sub Sections */
.sub-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Penalties */
.penalty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.penalty-tier {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.3s ease;
}

.penalty-tier:hover {
    transform: translateY(-5px);
}

.tier-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tier-desc {
    font-weight: 600;
    font-size: 1.1rem;
}

.penalty-tier.critical {
    border-color: var(--accent-red);
    background: linear-gradient(180deg, rgba(255, 70, 85, 0.1), transparent);
}
.penalty-tier.critical .tier-name { color: var(--accent-red); }

/* Final Notes */
.final-notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.note {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
}

.radiant-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 3.5rem; }
    .grid-content { grid-template-columns: 1fr; }
    .veto-grid { grid-template-columns: 1fr; }
    .penalty-grid { grid-template-columns: 1fr; }
    .final-notes-grid { grid-template-columns: 1fr; }
}
