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

:root {
    --cyan: #00f0ff;
    --magenta: #ff0066;
    --orange: #ff6b00;
    --green: #00ff88;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(10, 10, 20, 0.85);
    --text-primary: #e0e0e0;
    --text-secondary: #888;
}

body {
    font-family: "Rajdhani", sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
}

#codeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.15;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: var(--cyan);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--magenta);
}

h1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

/* Rules List */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rule-card {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 20, 0.9),
        rgba(20, 15, 25, 0.9)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(5px);
}

.rule-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cyan);
}

.rule-card:nth-child(2)::before {
    background: var(--magenta);
}
.rule-card:nth-child(3)::before {
    background: var(--orange);
}

.rule-title {
    font-family: "Orbitron", sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-icon {
    color: var(--cyan);
}

.rule-card:nth-child(2) .rule-icon {
    color: var(--magenta);
}
.rule-card:nth-child(3) .rule-icon {
    color: var(--orange);
}

.rule-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.highlight {
    color: var(--magenta);
    font-weight: 600;
}

/* Warning Box */
.warning-box {
    margin-top: 3rem;
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.3);
    padding: 1.5rem;
    text-align: center;
}

.warning-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    color: var(--magenta);
}

/* Footer */
.page-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-btn {
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--cyan),
        rgba(0, 240, 255, 0.7)
    );
    color: var(--dark-bg);
}

.cta-btn:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: translateY(-3px);
}
