/* WTMF Shared Styles - Using Theme Colors */

:root {    /* Refined color palette - more professional */
    --wtmf-primary: #F5C347;                           /* Refined gold */
    --wtmf-teal: #00A693;                              /* Refined teal */
    --wtmf-teal-light: #5EEAD4;                        /* Light teal */
    --wtmf-purple: #7B4EE8;                            /* Refined purple */
    --wtmf-gold: #F5C347;                              /* Gold for highlights */
    --wtmf-dark: #0F0F15;                              /* Deeper dark */
    --wtmf-dark-alt: #151515;                          /* Slightly lighter dark */
    --wtmf-light: #E8E8F0;                             /* Softer light */
    --wtmf-text: #E8E8F0;                              /* Text color */
    --wtmf-bg-dark: rgba(15, 15, 21, 0.95);            /* Refined dark background */
    --wtmf-bg-main: rgba(25, 25, 35, 1);               /* Main background */    /* WTMF specific colors - more subtle */
    --wtmf-color1: rgba(15, 15, 21, 0.9);              /* Dark base */
    --wtmf-color2: rgba(123, 78, 232, 0.15);           /* Purple with low opacity */
    --wtmf-color3: rgba(0, 166, 147, 0.12);            /* Teal with low opacity */    --wtmf-glow: rgba(245, 195, 71, 0.6);              /* Subtle gold glow */
    --wtmf-shadow: rgba(245, 195, 71, 0.25);           /* Subtle gold shadow */
    --wtmf-accent: var(--wtmf-primary);                 /* Gold accent */
    
    /* Keep existing spacing and typography scales */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

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

body {
    font-family: var(--font-outfit, 'Outfit', sans-serif);
    background: transparent;
    color: var(--wtmf-text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

/* Simple subtle background overlay - no blur for performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 195, 71, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(123, 78, 232, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(45, 212, 191, 0.04) 0%, transparent 60%);
    opacity: 0.7;
    z-index: -1;
    animation: subtleGlow 25s ease-in-out infinite alternate;
}

/* Target the Three.js canvas specifically - removed filters to eliminate artifacts */
canvas {
    position: fixed !important;
    top: -10px !important;
    left: -10px !important;
    width: calc(100vw + 20px) !important;
    height: calc(100vh + 20px) !important;
    z-index: -2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    overflow: hidden !important;
}

/* Exclude chart canvases from background styling */
.chart-container canvas {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: auto !important;
    border-radius: 8px;
}

/* Remove blur overlay - not needed with direct canvas targeting */
.blur-overlay {
    display: none;
}

/* Remove blur from UI elements to keep them crisp */
.game-info-card, .help-tabs-container, .requirement-section,
.feature-card, .audio-demo-note, .step-item,
.action-btn, .share-btn, .social-link {
    background: rgba(var(--bg-rgb, 20, 20, 25), 0.9);
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Keep text sharp and clear */
h1, h2, h3, h4, h5, h6, p, span, a, li, 
.hero-title, .hero-subtitle, .section-title,
.feature-title, .feature-description,
.step-content, .tab-btn {
    filter: none !important;
    text-shadow: none;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(0.5px)) {
    .game-info-card, .help-tabs-container, .requirement-section,
    .feature-card, .audio-demo-note, .step-item,
    .action-btn, .share-btn, .social-link {
        background: rgba(20, 20, 25, 0.95);
        border: none;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    }
}

/* Removed heavy blur layers for better performance */

/* Removed heavy blur layers for better performance */

/* Simple animation for subtle background movement */
@keyframes subtleGlow {
    0% { 
        opacity: 0.5; 
    }
    50% { 
        opacity: 0.8; 
    }
    100% { 
        opacity: 0.6; 
    }
}

/* Removed heavy performance optimizations */

/* Smooth scrolling improvements */
html {
    scroll-behavior: smooth;
}

.content-section {
    scroll-margin-top: var(--space-xl);
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Hero Section - Full Page */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes heroGlow {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(30px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, 
        var(--wtmf-primary) 0%, 
        var(--wtmf-teal) 50%, 
        var(--wtmf-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--wtmf-glow);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--wtmf-light);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.hero-experiment-note {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--wtmf-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    max-width: fit-content;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--wtmf-light);
    opacity: 0.7;
    animation: scrollPulse 2s ease-in-out infinite;
    margin-top: 2rem;
    cursor: pointer;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--wtmf-gold);
}

.hero-scroll-indicator span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.content-wrapper {
    max-width: 1200px; /* Reduced from 1400px for better desktop reading */
    margin: 0 auto;
    padding: 2rem 1rem; /* Added top padding and horizontal padding */
}

/* Content sections with better width constraints */
.content-section {
    background: rgba(15, 15, 21, 0.8);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    width: 100%; /* Ensure full width usage */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.content-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--wtmf-gold);
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 20px rgba(245, 195, 71, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--wtmf-primary), var(--wtmf-teal));
    border-radius: 2px;
}

/* Iteration Tabs */
.iteration-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.iteration-tab {
    padding: 1rem 2rem;
    background: var(--wtmf-color1);
    border: 2px solid var(--wtmf-teal);
    border-radius: 8px;
    color: var(--wtmf-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iteration-tab.active {
    background: var(--wtmf-purple);
    border-color: var(--wtmf-glow);
    color: var(--wtmf-text);
    box-shadow: 0 0 20px var(--wtmf-glow);
}

.iteration-tab:hover {
    border-color: var(--wtmf-glow);
    box-shadow: 0 0 15px var(--wtmf-glow);
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.data-card {
    background: var(--wtmf-color1);
    border: 2px solid var(--wtmf-teal);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.data-card:hover {
    border-color: var(--wtmf-glow);
    box-shadow: 0 0 20px var(--wtmf-glow);
    transform: translateY(-5px);
}

.data-card-title {
    font-family: 'Orbitron', monospace;
    color: var(--wtmf-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin: 1rem 0;
}

/* Flowchart */
.flowchart-container {
    background: rgba(0, 184, 169, 0.1);
    border: 2px solid var(--wtmf-teal);
    border-radius: 12px;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
    padding-bottom: 1rem; /* Reduce bottom padding to hug content */
    margin: 2rem 0;
    margin-bottom: 20px;
    min-height: unset;
    height: fit-content; /* Wrap tightly around content */
    position: relative;
    overflow: visible;
    display: block; /* Restore full width behavior */
    width: 100%;
    max-width: 900px; /* Constrain width on large screens */
    box-sizing: border-box;
}

/* Remove extra space below content in flowchart-container */
.flowchart-container:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
}

/* Ensure inner content doesn't add extra space */
.flowchart-container > * {
    margin-bottom: 0;
}

.flowchart-container > *:last-child {
    margin-bottom: 0 !important;
}

.flowchart-placeholder {
    color: var(--wtmf-light);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem; /* Slightly smaller font */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 450px; /* Ensure minimum height */
    padding: 2rem 1rem; /* Add internal padding */
    position: relative;
}

.flowchart-placeholder h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.flowchart-placeholder p {
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 600px; /* Limit text width for readability */
}

.flowchart-placeholder i {
    margin-bottom: 1.5rem;
    display: block;
}

/* Stress curve rating (1-10) */
.stress-curve {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto 1rem auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
    position: relative;
}
.stress-curve-bar {
    flex: 1 1 0;
    margin: 0 2px;
    background: linear-gradient(180deg, var(--wtmf-glow), var(--wtmf-teal));
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
    position: relative;
    min-width: 10px;
}
.stress-curve-bar.selected {
    box-shadow: 0 0 10px var(--wtmf-glow);
    border: 2px solid var(--wtmf-primary);
}
.stress-curve-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--wtmf-light);
    font-family: 'Share Tech Mono', monospace;
}
.stress-curve-labels span {
    flex: 1 1 0;
    text-align: center;
}

/* Mobile responsive flowchart */
@media (max-width: 768px) {
    .flowchart-container {
        min-height: 500px;
        padding: 0.5rem;
        margin: 1rem 0;
    }
    
    .flowchart-placeholder {
        min-height: 450px;
        padding: 1rem 0.5rem;
    }
    
    .flowchart-placeholder h3 {
        font-size: 1.1rem;
    }
    
    .flowchart-placeholder p {
        font-size: 0.8rem;
    }
    
    /* Adjust data grid for mobile */
    .data-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .data-card {
        padding: 1rem;
    }
    
    /* Mobile iteration tabs */
    .iteration-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .iteration-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Interactive Flowchart */
.flowchart-node {
    background: var(--wtmf-color1);
    border: 2px solid var(--wtmf-primary);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem;
    display: inline-block;
    min-width: 150px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flowchart-node:hover {
    border-color: var(--wtmf-glow);
    box-shadow: 0 0 15px var(--wtmf-glow);
    transform: scale(1.05);
}

.flowchart-node.entry { border-color: var(--wtmf-teal); }
.flowchart-node.decision { border-color: var(--wtmf-purple); border-radius: 50%; }
.flowchart-node.outcome { border-color: var(--wtmf-primary); }

.flowchart-arrow {
    position: absolute;
    height: 2px;
    background: var(--wtmf-primary);
    box-shadow: 0 0 5px var(--wtmf-glow);
}

.flowchart-arrow::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--wtmf-primary);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--wtmf-color2);
    border: 2px solid var(--wtmf-purple);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--wtmf-glow);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--wtmf-primary);
    text-shadow: 0 0 10px var(--wtmf-primary);
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    color: var(--wtmf-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Navigation - Essential for results page */
.nav-section {
    text-align: center;
    margin: 3rem 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, 
        rgba(123, 78, 232, 0.1) 0%, 
        rgba(0, 166, 147, 0.08) 100%);
    color: var(--wtmf-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(245, 195, 71, 0.3);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: var(--text-base);
    transition: all var(--transition-base);
    text-transform: none;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(245, 195, 71, 0.1);
    margin: 0 var(--space-sm);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(245, 195, 71, 0.1), 
        transparent);
    transition: left var(--transition-slow);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, 
        rgba(123, 78, 232, 0.2) 0%, 
        rgba(0, 166, 147, 0.15) 100%);
    border-color: rgba(245, 195, 71, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(245, 195, 71, 0.2);
    color: var(--wtmf-light);
}

/* Content sections - Essential base styling */
.content-section {
    background: rgba(15, 15, 21, 0.8);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    width: 100%; /* Ensure full width usage */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wtmf-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--wtmf-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
.header-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.page-title, .game-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--wtmf-primary);
    text-shadow: 0 0 20px var(--wtmf-glow);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: neonFlicker 4s infinite alternate;
}

@keyframes neonFlicker {
    0%, 100% {
        text-shadow: 0 0 20px var(--wtmf-glow);
    }
    50% {
        text-shadow: 0 0 40px var(--wtmf-glow), 0 0 60px var(--wtmf-primary);
    }
    75% {
        text-shadow: 0 0 15px var(--wtmf-glow);
    }
}

.subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: var(--wtmf-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Action Buttons - Refined and Professional */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
    margin: var(--space-2xl) 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, 
        rgba(123, 78, 232, 0.1) 0%, 
        rgba(20, 184, 166, 0.08) 100%);
    color: var(--wtmf-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: var(--text-base);
    transition: all var(--transition-base);
    text-transform: none;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(45, 212, 191, 0.1);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(45, 212, 191, 0.1), 
        transparent);
    transition: left var(--transition-slow);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: linear-gradient(135deg, 
        rgba(123, 78, 232, 0.2) 0%, 
        rgba(20, 184, 166, 0.15) 100%);
    border-color: rgba(45, 212, 191, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(45, 212, 191, 0.2);
    color: var(--wtmf-light);
}

.action-btn.secondary {
    background: rgba(15, 15, 21, 0.8);
    border-color: rgba(123, 78, 232, 0.4);
    color: var(--wtmf-teal);
}

.action-btn.secondary:hover {
    background: rgba(123, 78, 232, 0.1);
    border-color: rgba(0, 166, 147, 0.6);
    color: var(--wtmf-primary);
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(15, 15, 21, 0.6) !important;
    border-color: rgba(123, 78, 232, 0.2) !important;
    color: rgba(231, 231, 240, 0.5) !important;
    box-shadow: none !important;
}

.action-btn.disabled:hover {
    transform: none !important;
    background: rgba(15, 15, 21, 0.6) !important;
    border-color: rgba(123, 78, 232, 0.2) !important;
    color: rgba(231, 231, 240, 0.5) !important;
    box-shadow: none !important;
}

/* Game Info and other specific sections */
.game-info-card {
    background: rgba(0, 77, 68, 0.15);
    border: 1px dashed var(--wtmf-teal);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 184, 169, 0.4);
    backdrop-filter: blur(15px);
}

.game-info-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wtmf-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 0 10px var(--wtmf-primary);
}

/* Description text */
.description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--wtmf-light);
}

.description a {
    color: var(--wtmf-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.description a:hover {
    color: var(--wtmf-glow);
    text-shadow: 0 0 5px var(--wtmf-glow);
    border-bottom-color: var(--wtmf-glow);
}

/* About sections */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.about-content {
    background: rgba(15, 15, 21, 0.7);
    border: 1px dashed var(--wtmf-teal);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 184, 169, 0.4);
    backdrop-filter: blur(15px);
}

.about-title {
    color: var(--wtmf-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    color: var(--wtmf-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social links */
.social-links, .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link, .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--wtmf-color1);
    color: var(--wtmf-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--wtmf-primary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
}

.social-link:hover, .share-btn:hover {
    background: var(--wtmf-primary);
    color: var(--wtmf-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 196, 65, 0.4);
}

/* QR Code section */
.share-section {
    text-align: center;
    background: rgba(15, 15, 21, 0.7);
    border: 1px dashed var(--wtmf-teal);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 184, 169, 0.4);
    backdrop-filter: blur(15px);
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--wtmf-light);
    border: 3px solid var(--wtmf-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--wtmf-dark);
    text-align: center;
    padding: 1rem;
}

/* Requirements and Controls */
.requirements-grid, .game-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Requirements grid - optimized for better space utilization */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

/* Game info grid - optimized for better layout */
.game-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.requirement-box, .info-item {
    background: rgba(15, 15, 21, 0.6);
    border: 2px solid var(--wtmf-purple);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    backdrop-filter: blur(10px);
}

/* Only apply hover effects to interactive elements */
.requirement-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--wtmf-shadow), 0 0 20px var(--wtmf-glow);
    border-color: var(--wtmf-glow);
    transition: all 0.3s ease;
}

.requirement-title {
    color: var(--wtmf-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.requirement-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(138, 79, 255, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--wtmf-light);
    line-height: 1.4;
}

.requirement-list li:last-child {
    border-bottom: none;
}

.requirement-list li::before {
    content: "▶";
    color: var(--wtmf-purple);
    font-size: 0.8rem;
    text-shadow: 0 0 5px var(--wtmf-purple);
}

/* Info items */
.info-icon {
    font-size: 2rem;
    color: var(--wtmf-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.info-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--wtmf-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--wtmf-text);
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Feature Grid Styles - Matching Presentation */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-grid.nine-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(15, 15, 21, 0.8);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--wtmf-primary) 0%, 
        var(--wtmf-teal) 50%, 
        var(--wtmf-purple) 100%);
    border-radius: 12px;
    padding: 2px;
    z-index: -1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(15, 15, 21, 0.95);
    border-radius: 10px;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 195, 71, 0.2);
}

.feature-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, 
        var(--wtmf-primary) 0%, 
        var(--wtmf-teal) 50%, 
        var(--wtmf-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    font-weight: 900;
}

.feature-title {
    font-family: 'Orbitron', monospace;
    font-size: var(--text-lg);
    color: var(--wtmf-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.feature-description {
    color: var(--wtmf-light);
    font-size: var(--text-sm);
    line-height: 1.4;
}

/* Legacy Audio Features Grid - Keep for Backwards Compatibility */
.audio-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.audio-feature {
    background: rgba(66, 46, 107, 0.3);
    border: 1px solid rgba(174, 158, 77, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(174, 158, 77, 0.1), transparent);
    transition: left 0.6s ease;
}

.audio-feature:hover::before {
    left: 100%;
}

.audio-feature:hover {
    border-color: var(--wtmf-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(174, 158, 77, 0.2);
}

.audio-feature h3 {
    color: var(--wtmf-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.audio-feature p {
    color: var(--wtmf-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Walkthrough Steps Styling */
.walkthrough-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    color: var(--wtmf-gold);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.4;
    margin-top: 0.1rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--wtmf-gold);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.step-content p {
    color: var(--wtmf-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Audio Demo Note */
.audio-demo-note {
    background: linear-gradient(135deg, rgba(15, 87, 79, 0.2), rgba(66, 46, 107, 0.2));
    border: 1px dashed var(--wtmf-gold);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 0 15px rgba(245, 195, 71, 0.3);
}

/* Walkthrough Note - Same styling as audio demo note but optimized for text */
.walkthrough-note {
    background: linear-gradient(135deg, rgba(15, 87, 79, 0.2), rgba(66, 46, 107, 0.2));
    border: 1px dashed var(--wtmf-gold);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 15px rgba(245, 195, 71, 0.3);
}

.walkthrough-note p {
    color: var(--wtmf-light);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Demo Note Icon Styling */
.demo-note-icon {
    color: var(--wtmf-gold);
    font-size: 1.5rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.demo-note-content {
    flex: 1;
}

.demo-note-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--wtmf-light);
}

/* Loading Animation */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Smooth scrolling improvements */
html {
    scroll-behavior: smooth;
}

.content-section {
    scroll-margin-top: var(--space-xl);
}

/* Micro-interactions and polish */
.action-btn span {
    transition: transform 0.3s ease;
}

.action-btn:hover span {
    transform: translateX(2px);
}

/* Loading states for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Focus states for accessibility */
.action-btn:focus,
.social-link:focus,
.share-btn:focus {
    outline: 2px solid var(--wtmf-primary);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wtmf-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--wtmf-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wtmf-primary);
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero-section {
        height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-experiment-note {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-scroll-indicator {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 85vh;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .hero-experiment-note {
        margin-bottom: 1rem;
    }
}

/* Ensure requirements section uses full available width */
.content-section {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile responsiveness for note sections */
@media (max-width: 768px) {
    .walkthrough-note {
        margin: 2rem 1rem;
    }
    
    .audio-demo-note {
        margin: 3rem 1rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .walkthrough-note {
        margin: 2rem 0.5rem;
    }
    
    .audio-demo-note {
        margin: 3rem 0.5rem;
    }
}

/* Mobile responsive styles for About Developer section */
@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        margin: 0;
    }
    
    .about-content, .share-section {
        padding: 1.5rem;
        margin: 0;
        min-width: 0; /* Allow content to shrink below its intrinsic width */
        width: 100%;
        box-sizing: border-box;
    }
    
    .social-links, .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .social-link, .share-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.375rem);
        justify-content: center;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .qr-container {
        margin: 1rem 0;
    }
    
    .about-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-content, .share-section {
        padding: 1rem;
    }
    
    .social-link, .share-btn {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .about-title {
        font-size: 1.3rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
}

/* Mobile responsive styles for Help Tabs and Participation Guidelines */
@media (max-width: 768px) {
    .help-tabs-container {
        margin: 1.5rem 0 !important;
        border-radius: 8px;
    }
    
    .tab-header {
        padding: 1rem 1rem 0 1rem;
    }
    
    .tab-header h3 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .tab-navigation {
        margin-top: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .requirements-tab-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .requirement-section {
        padding: 0.75rem;
    }
    
    .requirement-section h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .requirement-section ul {
        padding-left: 1rem !important;
    }
    
    .requirement-section ul li {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        padding-bottom: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .walkthrough-steps .step-item {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .step-content h4 {
        font-size: 0.9rem !important;
    }
    
    .step-content p {
        font-size: 0.8rem !important;
    }
    
    .audio-demo-note {
        padding: 1rem !important;
        margin: 1.5rem 0.5rem !important;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .demo-note-icon {
        font-size: 1.2rem;
        width: 1.5rem;
        height: 1.5rem;
        margin: 0 auto;
    }
    
    .demo-note-content p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 480px) {
    .help-tabs-container {
        margin: 1rem 0 !important;
    }
    
    .tab-header {
        padding: 0.75rem;
    }
    
    .tab-header h3 {
        font-size: 0.95rem !important;
    }
    
    .tab-content {
        padding: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .requirement-section {
        padding: 0.6rem;
    }
    
    .requirement-section h4 {
        font-size: 0.85rem !important;
    }
    
    .requirement-section ul li {
        font-size: 0.75rem !important;
    }
    
    .audio-demo-note {
        padding: 0.75rem !important;
        margin: 1rem 0.25rem !important;
    }
    
    .demo-note-content p {
        font-size: 0.8rem !important;
    }
    
    .step-content h4 {
        font-size: 0.85rem !important;
    }
    
    .step-content p {
        font-size: 0.75rem !important;
    }
}

/* Additional mobile width optimization for containers */
@media (max-width: 768px) {
    .help-tabs-container {
        max-width: none !important;
        width: calc(100% + 1rem) !important;
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
}

@media (max-width: 480px) {
    .help-tabs-container {
        width: calc(100% + 1rem) !important;
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
}
