/* SpookySSC CTF - Halloween Theme CSS */

@import url('buttons.css');

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a1a0a 100%);
    color: #ff6b35;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.logo h1 {
    font-size: 3.5rem;
    color: #ff6b35;
    text-shadow: 0 0 20px #ff6b35, 0 0 40px #ff6b35, 0 0 60px #ff6b35;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Clickable main title with dripping font effect */
.main-title-clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Creepster', cursive, 'Arial Black', sans-serif;
    text-shadow: 
        0 0 20px #ff6b35, 
        0 0 40px #ff6b35, 
        0 0 60px #ff6b35,
        2px 2px 0px #8B0000,
        4px 4px 0px #8B0000,
        6px 6px 0px #8B0000,
        8px 8px 0px #8B0000,
        10px 10px 0px #8B0000;
    animation: glow 2s ease-in-out infinite alternate, drip 3s ease-in-out infinite;
}

/* Main title header for challenge pages */
.main-title-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.main-title-header .main-title-clickable {
    font-size: 2.5rem;
    margin: 0;
    color: #ff6b35;
}

.main-title-clickable:hover {
    transform: scale(1.05);
    color: #ffd700;
    text-shadow: 
        0 0 30px #ffd700, 
        0 0 60px #ffd700, 
        0 0 90px #ffd700,
        2px 2px 0px #8B0000,
        4px 4px 0px #8B0000,
        6px 6px 0px #8B0000,
        8px 8px 0px #8B0000,
        10px 10px 0px #8B0000;
}

/* Dripping font animation */
@keyframes drip {
    0%, 100% { 
        text-shadow: 
            0 0 20px #ff6b35, 
            0 0 40px #ff6b35, 
            0 0 60px #ff6b35,
            2px 2px 0px #8B0000,
            4px 4px 0px #8B0000,
            6px 6px 0px #8B0000,
            8px 8px 0px #8B0000,
            10px 10px 0px #8B0000;
    }
    50% { 
        text-shadow: 
            0 0 20px #ff6b35, 
            0 0 40px #ff6b35, 
            0 0 60px #ff6b35,
            2px 2px 0px #8B0000,
            4px 4px 0px #8B0000,
            6px 6px 0px #8B0000,
            8px 8px 0px #8B0000,
            10px 10px 0px #8B0000,
            12px 12px 0px #8B0000,
            14px 14px 0px #8B0000;
    }
}

.tagline {
    font-size: 1.3rem;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    margin-bottom: 20px;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #ff6b35, 0 0 40px #ff6b35, 0 0 60px #ff6b35; }
    to { text-shadow: 0 0 30px #ff6b35, 0 0 60px #ff6b35, 0 0 90px #ff6b35; }
}

/* Navigation Styles */
.nav {
    margin-bottom: 40px;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: #ffd700;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ff6b35;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-link:hover {
    background: #ff6b35;
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* User Setup Styles */
.user-setup, .current-user {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.setup-container h2 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.setup-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#usernameInput {
    padding: 12px 20px;
    border: 2px solid #ff6b35;
    border-radius: 25px;
    background: rgba(26, 26, 26, 0.8);
    color: #ffd700;
    font-size: 1rem;
    min-width: 250px;
}

#usernameInput:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.setup-btn, .change-btn {
    padding: 12px 25px;
    background: #ff6b35;
    color: #0a0a0a;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setup-btn:hover, .change-btn:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.setup-note {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-label {
    color: #ccc;
    font-size: 1.1rem;
}

.username {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Main Content */
.main {
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #ffd700;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ff6b35;
    color: #0a0a0a;
    border: 2px solid #ff6b35;
}

.btn-primary:hover {
    background: #ffd700;
    border-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-secondary:hover {
    background: #ffd700;
    color: #0a0a0a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spooky-animation {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Jumpscare ghost effect */
.jumpscare-ghost {
    position: relative;
    z-index: 10;
}

.jumpscare-ghost:hover {
    transform: scale(1.1);
}

.jumpscare-ghost.jumpscare-active {
    animation: jumpscare 0.5s ease-in-out;
    z-index: 1000;
}

@keyframes jumpscare {
    0% { 
        transform: scale(1);
        font-size: 8rem;
    }
    50% { 
        transform: scale(3);
        font-size: 24rem;
        filter: brightness(1.5) contrast(1.2);
    }
    100% { 
        transform: scale(1);
        font-size: 8rem;
    }
}

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

/* Section Styles */
section {
    margin-bottom: 60px;
}

section h2, .section-title {
    font-size: 2.5rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #ffd700;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
}

/* Tiers */
.tiers {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tier {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.tier-header h3 {
    font-size: 1.8rem;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.tier-points {
    background: rgba(255, 107, 53, 0.3);
    border: 1px solid #ff6b35;
    border-radius: 15px;
    padding: 8px 15px;
    color: #ffd700;
    font-weight: bold;
}

.tier-description {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Tier Colors */
.tier.beginner {
    border-color: #4CAF50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
}

.tier.beginner .tier-header h3 {
    color: #4CAF50;
    text-shadow: 0 0 10px #4CAF50;
}

.tier.intermediate {
    border-color: #FF9800;
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.2);
}

.tier.intermediate .tier-header h3 {
    color: #FF9800;
    text-shadow: 0 0 10px #FF9800;
}

.tier.hard {
    border-color: #F44336;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.2);
}

.tier.hard .tier-header h3 {
    color: #F44336;
    text-shadow: 0 0 10px #F44336;
}

.tier.scorecarder {
    border-color: #9C27B0;
    box-shadow: 0 0 30px rgba(156, 39, 176, 0.2);
}

.tier.scorecarder .tier-header h3 {
    color: #9C27B0;
    text-shadow: 0 0 10px #9C27B0;
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.challenge-card {
    background: linear-gradient(145deg, #333, #222);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.challenge-card:hover::before {
    transform: translateX(100%);
}

.challenge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
    border-color: #ffd700;
}

.challenge-card h4 {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.challenge-card p {
    color: #ccc;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.challenge-card .points {
    display: inline-block;
    background: rgba(255, 107, 53, 0.3);
    border: 1px solid #ff6b35;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffd700;
    position: relative;
    z-index: 1;
}

/* Completed challenge styling */
.challenge-card.completed {
    background: linear-gradient(145deg, #2d5a2d, #1a3a1a);
    border-color: #4CAF50;
}

.challenge-card.completed:hover {
    border-color: #8BC34A;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
}

.completed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    animation: completedGlow 2s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes completedGlow {
    0% { 
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    }
    100% { 
        box-shadow: 0 2px 15px rgba(76, 175, 80, 0.8);
    }
}

/* Leaderboard */
.leaderboard {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.leaderboard-prize-hint {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
    border: 3px solid #ff6b35;
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0 30px 0;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    animation: prizeGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 10;
}

.leaderboard-prize-hint p {
    margin: 0;
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    line-height: 1.4;
}

@keyframes prizeGlow {
    from {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
        border-color: #ff6b35;
    }
    to {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
        border-color: #ffd700;
    }
}

.refresh-btn {
    padding: 10px 20px;
    background: #ff6b35;
    color: #0a0a0a;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.leaderboard-content {
    min-height: 200px;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 15px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
    transform: translateX(5px);
}

.leaderboard-entry .rank {
    font-weight: bold;
    color: #ffd700;
    min-width: 30px;
}

.leaderboard-entry .username {
    flex: 1;
    margin: 0 15px;
    color: #ff6b35;
    font-weight: bold;
}

.leaderboard-entry .score {
    color: #ffd700;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.leaderboard-entry .tier-badge {
    background: rgba(255, 107, 53, 0.3);
    border: 1px solid #ff6b35;
    border-radius: 15px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 10px;
    color: #ffd700;
}

/* Rules Section */
.rules {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.rule-category {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
}

.rule-category h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
}

.rule-category p, .rule-category ul {
    color: #ccc;
    line-height: 1.6;
}

.rule-category ul {
    list-style: none;
    padding-left: 0;
}

.rule-category li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.rule-category li::before {
    content: '👻';
    position: absolute;
    left: 0;
}

.rule-category code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 5px;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
}

/* About Section */
.about {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.about-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.feature h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #ff6b35;
    color: #ffd700;
    font-size: 1.1rem;
}

.footer-content p {
    margin-bottom: 10px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b35;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-header {
        flex-direction: column;
        text-align: center;
    }
    
    .leaderboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .setup-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    #usernameInput {
        min-width: auto;
    }
}

/* Challenge Page Styles */
.challenge-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 20px;
    border: 2px solid #ff6b35;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.challenge-container h1 {
    color: #ff6b35;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.challenge-container h2 {
    color: #ffd700;
    margin: 20px 0 15px 0;
    font-size: 1.8rem;
}

.challenge-container h3 {
    color: #ff6b35;
    margin: 15px 0 10px 0;
    font-size: 1.3rem;
}

.challenge-container p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.hint {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.hint h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.hint p {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.challenge-content {
    margin: 20px 0;
}

.challenge-content code {
    background: rgba(255, 107, 53, 0.2);
    color: #ffd700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.challenge-content ul, .challenge-content ol,
.how-to-solve ul, .how-to-solve ol,
.what-youre-learning ul, .what-youre-learning ol,
.pro-tips ul, .pro-tips ol {
    color: #e0e0e0;
    margin: 15px 0;
    padding-left: 30px;
}

.challenge-content li,
.how-to-solve li,
.what-youre-learning li,
.pro-tips li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Simple lists without special styling */
.simple-list {
    color: #e0e0e0;
    margin: 15px 0;
    padding-left: 20px;
}

.simple-list li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Success and Error Messages */
.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.success-message h3 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.success-message p {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.error-message h3 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.error-message p {
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Cookie Challenge Styles */
.cookie-input {
    background: #333;
    border: 2px solid #ff6b35;
    color: #ffd700;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    margin: 5px;
}

.cookie-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.cookie-display {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.cookie-display h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cookie-display p {
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Comments Section Styles */
.comments-section {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comments-section h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.comment {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: #e0e0e0;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.comment:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.comment strong {
    color: #ffd700;
    font-size: 1.1rem;
}

/* Timing Information Styles */
.timing-info {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timing-info h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.timing-info p {
    color: #e0e0e0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timing-info span {
    color: #ff6b35;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Search Results Styles */
.search-results {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-results h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.search-results p {
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Purchase Form Styles */
.purchase-form {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.purchase-form h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.purchase-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.purchase-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.purchase-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Race Controls Styles */
.race-controls {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.race-controls h3 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.race-controls p {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.race-btn {
    background: linear-gradient(45deg, #ff0000, #ff4444);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.race-btn:hover {
    background: linear-gradient(45deg, #ff4444, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Serialize Result Styles */
.serialize-result {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.serialize-result h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.serialize-result p {
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Chain Exploit Styles */
.chain-step {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chain-step h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.chain-step p {
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.exploit-panel {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.exploit-input {
    background: #333;
    border: 2px solid #ff6b35;
    color: #ffd700;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.exploit-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.exploit-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.exploit-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Crypto Bypass Styles */
.crypto-panel {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.crypto-panel h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    text-align: center;
}

.crypto-input {
    background: #333;
    border: 2px solid #ff6b35;
    color: #ffd700;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.crypto-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.crypto-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.crypto-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Memory Corruption Styles */
.buffer-panel {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.buffer-panel h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    text-align: center;
}

.buffer-input {
    background: #333;
    border: 2px solid #ff6b35;
    color: #ffd700;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Courier New', monospace;
}

.buffer-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.buffer-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.buffer-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.memory-layout {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.memory-layout h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    text-align: center;
}

.memory-layout div {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin: 5px 0;
    padding: 5px 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 5px;
}

/* Zero-Day Exploit Styles */
.research-panel {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.research-panel h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    text-align: center;
}

.research-item {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.research-item:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.research-item h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.research-item p {
    color: #e0e0e0;
    margin: 0;
    line-height: 1.5;
}

/* Research Results Styles */
.research-results {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.research-results p {
    color: #e0e0e0;
    margin: 0;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
}

.research-results code {
    background: rgba(255, 107, 53, 0.2);
    color: #ffd700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.research-results h4 {
    color: #ff6b35;
    margin: 15px 0 10px 0;
    font-size: 1.2rem;
}

.research-results strong {
    color: #ffd700;
}

/* Update exploit-panel for zero-day (override chain exploit styles) */
.zero-day .exploit-panel {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.zero-day .exploit-panel h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    text-align: center;
}

.zero-day .exploit-input {
    background: #333;
    border: 2px solid #ff6b35;
    color: #ffd700;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Courier New', monospace;
}

.zero-day .exploit-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.zero-day .exploit-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.zero-day .exploit-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.flag-submission {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.flag-submission h3 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.flag-input {
    background: #333;
    border: 2px solid #ff6b35;
    color: #ffd700;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    width: 100%;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.flag-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.flag-submission label {
    color: #ff6b35;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    display: block;
}

/* Challenge Content Sections */
.how-to-solve {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.how-to-solve h3 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.what-youre-learning {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.what-youre-learning h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.pro-tips {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.pro-tips h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Threat Intelligence specific styles */
.threat-intel-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #ff6b35;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.threat-list {
    color: #e0e0e0;
    margin: 10px 0;
    padding-left: 20px;
}

.threat-steps {
    color: #e0e0e0;
    margin: 10px 0;
    padding-left: 20px;
}

.target-info {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.cred-section h4 {
    color: #ff6b35;
    margin-bottom: 10px;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #00ff00;
}

.code-block code {
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Threat Intelligence tier styling */
.threat-intelligence-tier {
    background: linear-gradient(135deg, #8B0000 0%, #4B0000 50%, #2F0000 100%);
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.threat-intelligence-tier .tier-header h2 {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.threat-intelligence-tier .challenge-card {
    border: 1px solid #ff0000;
    background: rgba(139, 0, 0, 0.1);
}

.threat-intelligence-tier .challenge-card:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    border-color: #ff4444;
}

.threat-intelligence-tier .difficulty {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Threat Intelligence Warning Box */
.threat-intel-warning {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.threat-intel-warning p {
    color: #ff6b35;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

/* Challenge Numbers */
.challenge-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    z-index: 2;
}

/* Locked Challenge Cards */
.challenge-card.locked {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid #666;
}

.challenge-card.locked:hover {
    box-shadow: none;
    border-color: #666;
}

/* Lock Overlay */
.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 3;
}

.lock-icon {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.locked-overlay p {
    color: #ff6b35;
    font-weight: bold;
    text-align: center;
    margin: 0;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

/* Spooky Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ff6b35" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1" fill="%23ffd700" opacity="0.2"><animate attributeName="opacity" values="0.2;0.6;0.2" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1" fill="%23ff6b35" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="2.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}