@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Base variables - will be overridden by ThemeService */
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --accent-color: #007bff;
    --accent-glow: rgba(0, 123, 255, 0.3);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 123, 255, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --accent-secondary: #0056b3;
    --gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Ensure full viewport coverage */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Laboratory Theme */
body.theme-laboratory {
    font-family: 'Inter', sans-serif;
}



/* Watercolor Theme */
body.theme-watercolor {
    font-family: 'Georgia', serif;
}



/* Architectural Theme */
body.theme-architectural {
    font-family: 'Courier New', monospace;
}

/* Retro-Futuristic Theme */
body.theme-retro {
    font-family: 'Courier New', monospace;
}

/* Classic Theme */
body.theme-classic {
    font-family: 'Courier New', monospace;
}

/* Classic Theme Specific Styles - Simple & Retro */
body.theme-classic header h1 {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
    text-shadow: none;
    animation: none;
    letter-spacing: normal;
    text-transform: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

body.theme-classic header p {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666666;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

body.theme-classic .btn {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 0;
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    box-shadow: 2px 2px 0 #000000;
    transition: none;
}

body.theme-classic .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000000;
}

body.theme-classic .btn:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 #000000;
}

body.theme-classic .btn-primary {
    background: #000000;
    color: #ffffff;
}

body.theme-classic .btn-primary:hover {
    background: #000000;
    color: #ffffff;
}

body.theme-classic label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
}

body.theme-classic select {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 0;
}

body.theme-classic input[type="range"] {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
}

body.theme-classic input[type="range"]::-webkit-slider-thumb {
    background: #000000;
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: none;
}

body.theme-classic .info-item {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
}

body.theme-classic .info-item::before {
    display: none;
}

body.theme-classic .label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
    font-size: 10px;
}

body.theme-classic .info-item span:last-child {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    text-shadow: none;
}

body.theme-classic #gameCanvas {
    border: 3px solid #000000;
    background: #ffffff;
    box-shadow: 3px 3px 0 #000000;
}

body.theme-classic .game-container {
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
    background: #ffffff;
}

body.theme-classic .patterns h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
}

body.theme-classic .patterns h3::after {
    display: none;
}

body.theme-classic .pattern-btn {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 0;
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    box-shadow: 2px 2px 0 #000000;
}

body.theme-classic .pattern-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000000;
    background: #ffffff;
    color: #000000;
}

body.theme-classic .instructions h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
}

body.theme-classic .instructions h3::after {
    display: none;
}

body.theme-classic .instructions {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
}

body.theme-classic .instructions li {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #000000;
    letter-spacing: normal;
}

body.theme-classic .instructions li:before {
    content: ">";
    color: #000000;
    font-weight: bold;
    animation: none;
}

body.theme-classic .instructions li:hover {
    color: #000000;
    transform: none;
    text-shadow: none;
}

body.theme-classic footer {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
}

body.theme-classic footer p {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #000000;
    text-shadow: none;
    font-weight: normal;
    letter-spacing: normal;
}

body.theme-classic .controls {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
}

body.theme-classic .controls::before {
    display: none;
}

body.theme-classic .patterns {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
}

body.theme-classic ::-webkit-scrollbar-track {
    background: #ffffff;
}

body.theme-classic ::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
    box-shadow: none;
}

body.theme-classic ::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* Cyber Theme */
body.theme-cyber {
    font-family: 'Rajdhani', sans-serif;
}

/* Bioluminescent Theme */
body.theme-bioluminescent {
    font-family: 'Rajdhani', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    transition: all 0.5s ease;
    margin: 0;
    padding: 0;
}



/* Removed body::before pseudo-elements that were causing background positioning issues */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    transition: all 0.5s ease;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all 0.5s ease;
    max-width: 100%;
    overflow-x: auto;
}

body.theme-classic .theme-switcher {
    backdrop-filter: none;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 80px;
    flex-shrink: 0;
}

.theme-option:hover {
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--accent-color);
    background: var(--glass-bg);
    box-shadow: var(--shadow-glow);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classic-preview {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
}

.classic-preview::before {
    content: '🎯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.classic-preview::after {
    content: '⚪';
    position: absolute;
    top: 25%;
    left: 25%;
    font-size: 10px;
    color: #3b82f6;
    text-shadow: 0 0 3px #3b82f6;
}

.cyber-preview {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border: 2px solid #00d4ff;
}

.cyber-preview::before {
    content: '🤖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    filter: drop-shadow(0 0 8px #00ff88);
    animation: cyberGlow 2s ease-in-out infinite;
}

.cyber-preview::after {
    content: '⚡';
    position: absolute;
    top: 20%;
    left: 20%;
    font-size: 12px;
    color: #00d4ff;
    text-shadow: 0 0 5px #00d4ff;
    animation: cyberGlow 2s ease-in-out infinite 0.5s;
}

.bioluminescent-preview {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    border: 2px solid #00ffff;
}

.bioluminescent-preview::before {
    content: '🌊';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    filter: drop-shadow(0 0 10px #00ffff);
    animation: bioluminescentPulse 2s ease-in-out infinite;
}

.bioluminescent-preview::after {
    content: '✨';
    position: absolute;
    top: 20%;
    left: 20%;
    font-size: 12px;
    color: #00ff88;
    text-shadow: 0 0 6px #00ff88;
    animation: bioluminescentPulse 2s ease-in-out infinite 0.7s;
}

.retro-preview {
    background: linear-gradient(135deg, #000000 0%, #001100 100%);
    border: 2px solid #00ff00;
}

.retro-preview::before {
    content: '📺';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    filter: drop-shadow(0 0 8px #00ff00);
    animation: retroGlitch 3s ease-in-out infinite;
}

.retro-preview::after {
    content: '█';
    position: absolute;
    top: 30%;
    left: 30%;
    font-size: 8px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    animation: retroPhosphor 1s ease-in-out infinite;
}

.architectural-preview {
    background: linear-gradient(135deg, #1a3a5f 0%, #0f2a4a 100%);
    border: 2px solid #ffffff;
}

.architectural-preview::before {
    content: '📐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    animation: architecturalGlow 3s ease-in-out infinite;
}

.architectural-preview::after {
    content: '▢';
    position: absolute;
    top: 25%;
    left: 25%;
    font-size: 6px;
    color: #87ceeb;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.8);
    animation: architecturalDraw 2s ease-in-out infinite;
}

.laboratory-preview {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #4a90e2;
}

.laboratory-preview::before {
    content: '🔬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.8));
    animation: bioluminescentPulse 2s ease-in-out infinite;
}

.laboratory-preview::after {
    content: '🦠';
    position: absolute;
    top: 25%;
    left: 25%;
    font-size: 8px;
    color: #50c878;
    text-shadow: 0 0 5px rgba(80, 200, 120, 0.8);
    animation: bioluminescentPulse 3s ease-in-out infinite;
}



.watercolor-preview {
    background: var(--watercolor-paper-color);
    border: 2px solid var(--watercolor-accent-color);
    position: relative;
    overflow: hidden;
}

.watercolor-preview::before {
    content: '🎨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.8));
    animation: watercolorFlow 2s ease-in-out infinite;
}

.watercolor-preview::after {
    content: '💧';
    position: absolute;
    top: 25%;
    left: 25%;
    font-size: 8px;
    color: var(--watercolor-accent-secondary);
    text-shadow: 0 0 5px rgba(78, 205, 196, 0.8);
    animation: watercolorFlow 1.5s ease-in-out infinite;
}



.theme-option span {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

body.theme-classic .theme-option span {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-switcher {
        gap: 10px;
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .theme-option {
        padding: 8px;
        gap: 6px;
        min-width: 70px;
    }
    
    .theme-preview {
        width: 50px;
        height: 35px;
        border-radius: 6px;
    }
    
    .theme-option span {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    header p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .patterns {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .pattern-btn {
        padding: 8px 12px;
        font-size: 11px;
        margin: 3px;
    }
}

@media (max-width: 480px) {
    .theme-switcher {
        gap: 8px;
        padding: 8px;
    }
    
    .theme-option {
        padding: 6px;
        gap: 4px;
        min-width: 60px;
    }
    
    .theme-preview {
        width: 45px;
        height: 30px;
        border-radius: 5px;
    }
    
    .theme-option span {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
    
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    header p {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .patterns {
        padding: 15px;
    }
    
    .pattern-btn {
        padding: 6px 10px;
        font-size: 10px;
        margin: 2px;
    }
    
    /* Mobile game description text */
    .game-description-text {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 15px;
        margin: 15px 0 0 0;
    }
    
    /* Smaller icons for mobile */
    .theme-preview::before {
        font-size: 12px !important;
    }
    
    .theme-preview::after {
        font-size: 6px !important;
    }
    
    /* Mobile developer footer */
    .developer-footer {
        padding: 6px 0;
        font-size: 10px;
    }
    
    .developer-info {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .developer-name {
        order: 1;
        width: 100%;
        margin-bottom: 2px;
    }
    
    .developer-website {
        order: 2;
    }
    
    .developer-phone {
        order: 3;
    }
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.theme-cyber .particles {
    opacity: 1;
}

body.theme-bioluminescent .particles {
    opacity: 1;
}

body.theme-cyber .particle {
    background: var(--accent-color);
    animation: float 6s infinite linear;
    opacity: 0.3;
    transition: all 0.3s ease;
}

body.theme-bioluminescent .particle {
    background: var(--accent-color);
    animation: bioluminescentFloat 8s infinite linear;
    opacity: 0.4;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 6s infinite linear;
    opacity: 0.3;
    transition: all 0.3s ease;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes bioluminescentFloat {
    0% { 
        transform: translateY(100vh) translateX(0) rotate(0deg); 
        opacity: 0; 
        filter: hue-rotate(0deg);
    }
    10% { 
        opacity: 0.4; 
        filter: hue-rotate(0deg);
    }
    50% { 
        opacity: 0.6; 
        filter: hue-rotate(180deg);
    }
    90% { 
        opacity: 0.4; 
        filter: hue-rotate(360deg);
    }
    100% { 
        transform: translateY(-100px) translateX(50px) rotate(360deg); 
        opacity: 0; 
        filter: hue-rotate(360deg);
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    transition: all 0.5s ease;
}

header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: pulse 2s infinite;
    transition: all 0.5s ease;
}

body.theme-classic header::before {
    display: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes bioluminescentPulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 10px #00ffff);
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1);
        filter: drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 30px #00ffff);
    }
}

@keyframes cyberGlow {
    0%, 100% { 
        opacity: 0.8; 
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 8px #00ff88);
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1);
        filter: drop-shadow(0 0 15px #00ff88) drop-shadow(0 0 25px #00ff88);
    }
}

@keyframes cyberPulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
        text-shadow: 0 0 10px #ff006e;
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
        text-shadow: 0 0 20px #ff006e, 0 0 30px #ff006e;
    }
}

@keyframes retroScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes retroGlitch {
    0%, 90%, 100% {
        transform: translate(0);
        filter: brightness(1);
    }
    10% {
        transform: translate(-0.5px, 0.5px);
        filter: brightness(1.2);
    }
    20% {
        transform: translate(0.5px, -0.5px);
        filter: brightness(0.8);
    }
    30% {
        transform: translate(-0.5px, 0.5px);
        filter: brightness(1.1);
    }
    40% {
        transform: translate(0.5px, -0.5px);
        filter: brightness(0.9);
    }
    50% {
        transform: translate(-1px, 1px);
        filter: brightness(1.3);
    }
    60% {
        transform: translate(1px, -1px);
        filter: brightness(0.7);
    }
    70% {
        transform: translate(-0.5px, 0.5px);
        filter: brightness(1.1);
    }
    80% {
        transform: translate(0.5px, -0.5px);
        filter: brightness(0.9);
    }
}

@keyframes retroPhosphor {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

@keyframes architecturalDraw {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.02);
    }
}

@keyframes architecturalSketch {
    0% { 
        stroke-dasharray: 0 100;
        opacity: 0;
    }
    50% { 
        stroke-dasharray: 50 50;
        opacity: 0.7;
    }
    100% { 
        stroke-dasharray: 100 0;
        opacity: 1;
    }
}

@keyframes architecturalGlow {
    0%, 100% { 
        opacity: 1; 
        filter: brightness(1.2);
        text-shadow: 0 0 20px rgba(10, 26, 46, 0.9), 0 0 30px rgba(10, 26, 46, 0.7);
    }
    50% { 
        opacity: 1; 
        filter: brightness(1.5);
        text-shadow: 0 0 25px rgba(10, 26, 46, 1), 0 0 40px rgba(10, 26, 46, 0.8);
    }
}

@keyframes retroBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bioluminescentBorderPulse {
    0% { 
        background-position: 0% 50%; 
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 50%; 
        opacity: 1;
    }
    100% { 
        background-position: 0% 50%; 
        opacity: 0.8;
    }
}

header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: none;
    letter-spacing: normal;
    transition: all 0.5s ease;
}

body.theme-cyber header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff006e, #00d4ff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 110, 0.8);
    letter-spacing: 3px;
    animation: cyberGlitch 4s ease-in-out infinite;
    position: relative;
}

body.theme-cyber header h1::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 #ff006e;
    top: 0;
    color: transparent;
    background: linear-gradient(45deg, #ff006e, #00d4ff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cyberGlitch 4s ease-in-out infinite reverse;
}

body.theme-cyber header h1::after {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 2px 0 #00d4ff;
    top: 0;
    color: transparent;
    background: linear-gradient(45deg, #ff006e, #00d4ff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cyberGlitch 4s ease-in-out infinite 0.5s;
}

body.theme-bioluminescent header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--accent-glow);
    letter-spacing: 3px;
    animation: glow 3s ease-in-out infinite alternate;
}

body.theme-retro header h1 {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    letter-spacing: 2px;
    position: relative;
}

/* Removed ::before and ::after pseudo-elements for retro theme to fix double text issue */

@keyframes glow {
    from { filter: drop-shadow(0 0 20px var(--accent-glow)); }
    to { filter: drop-shadow(0 0 30px var(--accent-color)); }
}

@keyframes cyberGlitch {
    0%, 90%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    10% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    20% {
        transform: translate(2px, -2px);
        opacity: 0.9;
    }
    30% {
        transform: translate(-1px, 1px);
        opacity: 0.7;
    }
    40% {
        transform: translate(1px, -1px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-3px, 3px);
        opacity: 0.6;
    }
    60% {
        transform: translate(3px, -3px);
        opacity: 0.7;
    }
    70% {
        transform: translate(-1px, 1px);
        opacity: 0.8;
    }
    80% {
        transform: translate(1px, -1px);
        opacity: 0.9;
    }
}

header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    transition: all 0.5s ease;
}

body.theme-cyber header p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.theme-bioluminescent header p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.theme-retro header p {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #00aa00;
    text-shadow: 0 0 5px #00aa00;
    letter-spacing: 1px;
    text-transform: none;
}

body.theme-architectural header h1 {
    font-family: 'Courier New', monospace;
    font-size: 2.8rem;
    font-weight: bold;
    color: #1a3a5f;
    text-shadow: none;
    letter-spacing: 3px;
    animation: none;
    position: relative;
}

body.theme-architectural header h1::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #1a3a5f;
    border-radius: 5px;
    opacity: 0.5;
    animation: none;
}

body.theme-architectural header h1::after {
    display: none;
}

body.theme-architectural header p {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: none;
    animation: none;
}

body.theme-laboratory header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 0 10px rgba(44, 62, 80, 0.3);
    letter-spacing: 2px;
    animation: none;
}

body.theme-laboratory header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #34495e;
    text-shadow: none;
    letter-spacing: 1px;
    text-transform: none;
    animation: none;
}

body.theme-3d header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: var(--text-glow);
    letter-spacing: 3px;
    animation: none;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

body.theme-3d header h1#gameTitle {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    overflow: visible !important;
}

body.theme-watercolor header h1 {
    font-family: 'Georgia', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: var(--text-glow);
    letter-spacing: 1px;
    animation: watercolorFlow 4s ease-in-out infinite;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

body.theme-watercolor header p {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-shadow: none;
    letter-spacing: 1px;
    text-transform: none;
    animation: none;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

body.theme-watercolor header p.game-description-text {
    margin-top: 50px !important;
    margin-bottom: 30px !important;
}

body.theme-3d header p {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-shadow: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: none;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

.controls {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

body.theme-classic .controls {
    backdrop-filter: none;
}

.controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: scan 3s infinite;
    transition: all 0.5s ease;
}

body.theme-classic .controls::before {
    display: none;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    transition: all 0.5s ease;
}

.btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

body.theme-cyber .btn {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 0;
    position: relative;
    background: transparent;
    border: 2px solid #ff006e;
    color: #ff006e;
    text-shadow: 0 0 10px #ff006e;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    transition: all 0.3s ease;
}

body.theme-cyber .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff006e, #00d4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

body.theme-cyber .btn:hover {
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.6);
    transform: translateY(-3px);
}

body.theme-cyber .btn:hover::before {
    opacity: 1;
}

body.theme-bioluminescent .btn {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.theme-retro .btn {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 0;
    border: 2px solid #00ff00;
    background: #000000;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    transition: all 0.2s ease;
}

body.theme-retro .btn:hover {
    background: #00ff00;
    color: #000000;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

body.theme-retro .btn-primary {
    background: #00ff00;
    color: #000000;
    text-shadow: none;
}

body.theme-retro .btn-primary:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
}

body.theme-architectural .btn {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 0;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-architectural .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.3), transparent);
    transition: left 0.5s ease;
}

body.theme-architectural .btn:hover::before {
    left: 100%;
}

body.theme-architectural .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

body.theme-architectural .btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

body.theme-architectural .btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0099cc);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--accent-glow);
    border-color: var(--accent-color);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-bg), #2a2a3e);
    color: var(--text-primary);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

body.theme-classic .btn-secondary {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: var(--text-primary);
}

body.theme-cyber .btn-secondary {
    background: transparent;
    color: #00d4ff;
    border-color: #00d4ff;
    text-shadow: 0 0 10px #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

body.theme-cyber .btn-secondary::before {
    background: linear-gradient(45deg, #00d4ff, #ffd700);
}

body.theme-cyber .btn-secondary:hover {
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

body.theme-bioluminescent .btn-secondary {
    background: linear-gradient(135deg, var(--secondary-bg), #2a2a3e);
    color: var(--text-primary);
}

body.theme-retro .btn-secondary {
    background: #000000;
    color: #00ff00;
    border-color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

body.theme-retro .btn-secondary:hover {
    background: #00ff00;
    color: #000000;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

body.theme-architectural .btn-secondary {
    background: transparent;
    color: #87ceeb;
    border-color: #87ceeb;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.8);
}

body.theme-architectural .btn-secondary:hover {
    background: rgba(135, 206, 235, 0.1);
    color: #87ceeb;
    text-shadow: 0 0 10px rgba(135, 206, 235, 1);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.4);
}

body.theme-laboratory .btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-glow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.theme-laboratory .btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

body.theme-laboratory .btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

body.theme-laboratory .btn-secondary:hover {
    background: var(--accent-glow);
    color: var(--text-primary);
    text-shadow: none;
    box-shadow: 0 0 20px var(--accent-glow);
}



/* Watercolor Theme Button Styles */
body.theme-watercolor .btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    border: 2px solid var(--accent-color);
    color: white;
    font-family: 'Georgia', serif;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-watercolor .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

body.theme-watercolor .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
    border-color: var(--accent-secondary);
}

body.theme-watercolor .btn:hover::before {
    left: 100%;
}

body.theme-watercolor .btn-primary {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-color: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

body.theme-watercolor .btn-primary:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    border-color: #2ecc71;
    color: white;
}

body.theme-watercolor .btn-secondary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: #f39c12;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

body.theme-watercolor .btn-secondary:hover {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    border-color: #e67e22;
    color: white;
}



.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    transition: all 0.3s ease;
}

body.theme-cyber label {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d4ff;
    text-shadow: 0 0 10px #00d4ff;
    font-weight: 700;
}

body.theme-bioluminescent label {
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.theme-retro label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 12px;
}

body.theme-architectural label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #87ceeb;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.8);
    text-transform: none;
    letter-spacing: 1px;
    font-size: 12px;
}

body.theme-laboratory label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 1px;
    font-size: 14px;
}



body.theme-watercolor label {
    font-family: 'Georgia', serif;
    font-weight: 600;
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 14px;
}



input[type="range"] {
    width: 120px;
    height: 8px;
    border-radius: 4px;
    background: var(--secondary-bg);
    outline: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #0099cc);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    border: 2px solid white;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-track {
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    border-radius: 4px;
    height: 8px;
    transition: all 0.3s ease;
}

select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

body.theme-cyber select {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-color: #ff006e;
    background: rgba(26, 26, 46, 0.9);
    color: #ffffff;
    text-shadow: 0 0 5px #ff006e;
}

body.theme-cyber select:hover, 
body.theme-cyber select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    text-shadow: 0 0 10px #00d4ff;
}

body.theme-cyber input[type="range"] {
    background: rgba(26, 26, 46, 0.9);
    border-color: #ff006e;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

body.theme-cyber input[type="range"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #ff006e, #00d4ff);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.8);
    border: 2px solid #ffffff;
}

body.theme-cyber input[type="range"]::-webkit-slider-track {
    background: linear-gradient(90deg, #ff006e, #00d4ff, #ffd700);
}

body.theme-bioluminescent select {
    font-family: 'Rajdhani', sans-serif;
}

select:hover, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Game Description Text */
.game-description-text {
    margin: 20px 0 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    font-family: 'Georgia', serif;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Theme-specific description text styles */
body.theme-cyber .game-description-text {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

body.theme-bioluminescent .game-description-text {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

body.theme-retro .game-description-text {
    color: #00ff00;
    text-shadow: 0 0 3px #00ff00;
}

body.theme-architectural .game-description-text {
    font-family: 'Courier New', monospace;
    font-style: normal;
    color: var(--text-primary);
}

body.theme-laboratory .game-description-text {
    font-family: 'Georgia', serif;
    color: #34495e;
}

body.theme-watercolor .game-description-text {
    font-family: 'Georgia', serif;
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: 50px !important;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    transition: all 0.5s ease;
}

.info-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    min-width: 150px;
    text-align: center;
    transition: all 0.5s ease;
}

body.theme-classic .info-item {
    backdrop-filter: none;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    transition: all 0.5s ease;
}

.label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 10px;
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
    transition: all 0.3s ease;
}

body.theme-cyber .label {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d4ff;
    text-shadow: 0 0 8px #00d4ff;
    font-weight: 700;
    font-size: 10px;
}

body.theme-cyber .info-item {
    background: rgba(26, 26, 46, 0.95);
    border-color: #ff006e;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4);
}

body.theme-cyber .info-item::before {
    background: linear-gradient(90deg, #ff006e, #00d4ff, #ffd700);
    height: 3px;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
}

body.theme-bioluminescent .label {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item span:last-child {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: none;
    transition: all 0.3s ease;
}

body.theme-cyber .info-item span:last-child {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ff006e;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
    letter-spacing: 2px;
}

body.theme-bioluminescent .info-item span:last-child {
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Game Over Screen */
.game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.game-over-screen.show {
    opacity: 1;
    pointer-events: auto;
}

.game-over-screen.show {
    opacity: 1;
}

.game-over-content {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 50px var(--accent-glow);
    max-width: 500px;
    width: 90%;
}

.game-over-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin: 0 0 20px 0;
    text-shadow: 0 0 20px var(--accent-glow);
    letter-spacing: 3px;
    animation: gameOverPulse 2s ease-in-out infinite;
}

.game-over-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
    line-height: 1.6;
    font-style: italic;
}

.game-over-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.final-generation, .total-time {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.final-generation span, .total-time span {
    color: var(--accent-color);
    font-weight: 700;
}

@keyframes gameOverPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px var(--accent-glow);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 30px var(--accent-color);
    }
}

@keyframes bioluminescentGameOverPulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1);
        filter: drop-shadow(0 0 10px #00ffff);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 30px #00ffff);
    }
}

/* Theme-specific game over styles */
body.theme-cyber .game-over-title {
    animation: cyberGlitch 2s ease-in-out infinite;
}

body.theme-retro .game-over-title {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    animation: retroPhosphor 1s ease-in-out infinite;
}

body.theme-bioluminescent .game-over-title {
    animation: bioluminescentGameOverPulse 2s ease-in-out infinite;
    text-align: center;
    width: 100%;
    transform-origin: center;
}

body.theme-laboratory .game-over-content {
    background: rgba(10, 20, 30, 0.95);
    border-color: var(--accent-color);
}

body.theme-watercolor .game-over-content {
    background: rgba(248, 244, 230, 0.95);
    border-color: var(--accent-color);
}

.game-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    transition: all 0.5s ease;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--accent-color), var(--success-color), var(--warning-color), var(--accent-color));
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
    background-size: 400% 400%;
    transition: all 0.5s ease;
}

/* Disable gradient border for themes where it's inappropriate */
body.theme-classic .game-container::before {
    display: none;
}

body.theme-architectural .game-container::before {
    display: none;
}

body.theme-laboratory .game-container::before {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary), var(--accent-color));
    border-radius: 20px;
    animation: bioluminescentBorderPulse 4s ease-in-out infinite;
    background-size: 400% 400%;
}

body.theme-3d .game-container::before {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary), var(--accent-tertiary), var(--accent-color));
    border-radius: 0;
    animation: cyberGlitch 3s ease-in-out infinite;
    background-size: 400% 400%;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#gameCanvas {
    border: 3px solid var(--border-color);
    border-radius: 12px;
    background: var(--primary-bg);
    cursor: crosshair;
    box-shadow: var(--shadow-card);
    transition: all 0.5s ease;
}

#gameCanvas:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

body.theme-cyber #gameCanvas {
    border: 3px solid var(--accent-color);
    background: var(--primary-bg);
    box-shadow: 0 0 30px var(--accent-glow);
}

body.theme-cyber #gameCanvas:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

body.theme-cyber .game-container::before {
    background: linear-gradient(45deg, #ff006e, #00d4ff, #ffd700, #ff006e);
    border-radius: 0;
    animation: cyberGlitch 4s ease-in-out infinite;
}

body.theme-bioluminescent #gameCanvas {
    border: 3px solid var(--accent-color);
    background: var(--primary-bg);
    box-shadow: 0 0 30px var(--accent-glow);
}

body.theme-bioluminescent #gameCanvas:hover {
    border-color: #00ff88;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
}

body.theme-bioluminescent .game-container::before {
    background: linear-gradient(45deg, #00ffff, #00ff88, #00ffff);
    border-radius: 20px;
    animation: bioluminescentBorderPulse 4s ease-in-out infinite;
    background-size: 400% 400%;
}

body.theme-retro #gameCanvas {
    border: 3px solid var(--accent-color);
    background: var(--primary-bg);
    box-shadow: 0 0 30px var(--accent-glow);
    position: relative;
}

body.theme-retro #gameCanvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--retro-scan-line);
    background-size: 100% 4px;
    animation: retroScan 0.1s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

body.theme-retro #gameCanvas:hover {
    border-color: #ffaa00;
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.6);
}

body.theme-retro .game-container::before {
    background: linear-gradient(45deg, #00ff00, #ffaa00, #00ff00);
    border-radius: 0;
    animation: retroBorderGlow 3s linear infinite;
    background-size: 400% 400%;
}

body.theme-architectural #gameCanvas {
    border: 3px solid var(--accent-color);
    background: var(--primary-bg);
    box-shadow: 0 0 30px var(--accent-glow);
    position: relative;
}

body.theme-architectural #gameCanvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--architectural-grid);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

body.theme-architectural #gameCanvas:hover {
    border-color: #87ceeb;
    box-shadow: 0 0 40px rgba(135, 206, 235, 0.6);
}

body.theme-laboratory #gameCanvas {
    border: 6px solid rgba(74, 144, 226, 0.4);
    background: var(--laboratory-petri-border);
    background-clip: padding-box;
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px rgba(74, 144, 226, 0.1), 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

body.theme-laboratory #gameCanvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--laboratory-agar), var(--laboratory-agar-texture);
    background-size: 200px 200px, 80px 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(74, 144, 226, 0.1);
}

body.theme-laboratory #gameCanvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(74, 144, 226, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(74, 144, 226, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.3;
    border-radius: 50%;
}

body.theme-laboratory #gameCanvas:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 40px var(--accent-glow);
}

body.theme-3d #gameCanvas {
    border: 3px solid var(--accent-color);
    background: var(--primary-bg);
    box-shadow: 0 0 30px var(--accent-glow);
    position: relative;
}

body.theme-3d #gameCanvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--3d-depth-gradient);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    animation: depthShift 6s ease-in-out infinite;
}

body.theme-3d #gameCanvas:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 40px var(--accent-glow);
}

body.theme-watercolor #gameCanvas {
    border: 3px solid var(--accent-color);
    background: var(--watercolor-paper-color);
    box-shadow: 0 0 30px var(--accent-glow);
    position: relative;
}

body.theme-watercolor #gameCanvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        var(--watercolor-paper-texture),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.01) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.01) 75%);
    background-size: 80px 80px, 200px 200px, 150px 150px, 4px 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
    animation: watercolorPaperShimmer 10s ease-in-out infinite;
}

body.theme-watercolor #gameCanvas:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 40px var(--accent-glow);
}



body.theme-architectural .game-container {
    border: 2px solid #ffffff;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    background: rgba(15, 42, 74, 0.1);
}

.patterns {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.5s ease;
}

body.theme-classic .patterns {
    backdrop-filter: none;
}

.patterns h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    transition: all 0.5s ease;
}

body.theme-cyber .patterns h3 {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00d4ff;
    text-shadow: 0 0 15px #00d4ff;
    font-weight: 900;
}

body.theme-cyber .patterns h3::after {
    background: linear-gradient(90deg, #ff006e, #00d4ff, #ffd700);
    height: 3px;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
}

body.theme-retro .patterns h3 {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 2px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-weight: bold;
}

body.theme-retro .patterns h3::after {
    background: linear-gradient(90deg, #00ff00, #ffaa00);
    height: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

body.theme-retro .pattern-btn {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 1px;
    background: #000000;
    border-color: #00ff00;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-weight: bold;
    border-radius: 0;
}

body.theme-retro .pattern-btn:hover {
    background: #00ff00;
    color: #000000;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

body.theme-architectural .patterns h3 {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

body.theme-architectural .patterns h3::after {
    background: linear-gradient(90deg, #ffffff, #87ceeb);
    height: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

body.theme-architectural .pattern-btn {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 1px;
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    font-weight: bold;
    border-radius: 0;
}

body.theme-architectural .pattern-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

body.theme-bioluminescent .patterns h3 {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.patterns h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    transition: all 0.5s ease;
}

.pattern-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    transition: all 0.5s ease;
}

.pattern-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

body.theme-cyber .pattern-btn {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    border-color: #ff006e;
    color: #ff006e;
    text-shadow: 0 0 8px #ff006e;
    font-weight: 700;
}

body.theme-cyber .pattern-btn:hover {
    background: linear-gradient(45deg, #ff006e, #00d4ff);
    color: #ffffff;
    text-shadow: 0 0 15px #ffffff;
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.6);
    transform: translateY(-2px);
}

body.theme-bioluminescent .pattern-btn {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pattern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.pattern-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: white;
}

.instructions {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.5s ease;
}

body.theme-classic .instructions {
    backdrop-filter: none;
}

.instructions h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    transition: all 0.5s ease;
}

body.theme-cyber .instructions h3 {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00d4ff;
    text-shadow: 0 0 15px #00d4ff;
    font-weight: 900;
}

body.theme-cyber .instructions h3::after {
    background: linear-gradient(90deg, #ff006e, #00d4ff, #ffd700);
    height: 3px;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
}

body.theme-cyber .instructions {
    background: rgba(26, 26, 46, 0.95);
    border-color: #ff006e;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4);
}

body.theme-bioluminescent .instructions h3 {
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.instructions h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
    transition: all 0.5s ease;
}

.instructions ul {
    list-style: none;
    padding: 0;
    transition: all 0.5s ease;
}

.instructions li {
    padding: 12px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 35px;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.instructions li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.instructions li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 12px;
    animation: none;
    transition: all 0.3s ease;
}

/* Game Rules Section */
.game-rules {
    margin-bottom: 30px;
}

.game-rules h4 {
    color: var(--accent-color);
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 8px var(--accent-glow);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.rule-number {
    background: var(--accent-color);
    color: var(--primary-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

.rule-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.rule-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Controls Help Section */
.controls-help {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    margin-top: 25px;
}

.controls-help h4 {
    color: var(--accent-color);
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 8px var(--accent-glow);
    position: relative;
}

.controls-help h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
    border-radius: 1px;
}

.controls-help ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 12px !important;
}

.controls-help li {
    margin: 0 !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    position: relative !important;
    padding-left: 40px !important;
}

.controls-help li::before {
    content: "▶" !important;
    font-size: 0.8rem !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

.controls-help li:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.controls-help li:hover::before {
    transform: translateY(-50%) scale(1.2) !important;
}

/* Theme-specific rule styles */
body.theme-cyber .rule-item {
    background: rgba(255, 0, 110, 0.1);
    border-color: rgba(255, 0, 110, 0.3);
}

body.theme-cyber .rule-item:hover {
    background: rgba(255, 0, 110, 0.15);
    border-color: #ff006e;
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

body.theme-bioluminescent .rule-item {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

body.theme-bioluminescent .rule-item:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

body.theme-retro .rule-item {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
}

body.theme-retro .rule-item:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: #00ff00;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

body.theme-laboratory .rule-item {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

body.theme-laboratory .rule-item:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

/* Laboratory theme specific controls styling */
body.theme-laboratory .controls-help ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

body.theme-laboratory .controls-help li {
    background: rgba(74, 144, 226, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    padding-left: 40px;
    color: var(--laboratory-text-secondary);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

body.theme-laboratory .controls-help li:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
    color: var(--laboratory-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

body.theme-laboratory .controls-help li::before {
    content: "▶";
    color: #4a90e2;
    font-size: 0.8rem;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

body.theme-laboratory .controls-help li:hover::before {
    color: #50c878;
    transform: translateY(-50%) scale(1.2);
}

body.theme-laboratory .controls-help h4 {
    color: #4a90e2;
    text-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

body.theme-laboratory .controls-help h4::after {
    background: linear-gradient(90deg, #50c878, #4a90e2);
}

/* Architectural theme specific controls styling */
body.theme-architectural .controls-help ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

body.theme-architectural .controls-help li {
    background: rgba(135, 206, 235, 0.05);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    padding-left: 40px;
    color: var(--architectural-text-secondary);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    font-family: 'Courier New', monospace;
}

body.theme-architectural .controls-help li:hover {
    background: rgba(135, 206, 235, 0.1);
    border-color: #87ceeb;
    color: var(--architectural-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.2);
}

body.theme-architectural .controls-help li::before {
    content: "▶";
    color: #87ceeb;
    font-size: 0.8rem;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

body.theme-architectural .controls-help li:hover::before {
    color: #4682b4;
    transform: translateY(-50%) scale(1.2);
}

body.theme-architectural .controls-help h4 {
    color: #87ceeb;
    text-shadow: 0 0 8px rgba(135, 206, 235, 0.5);
    font-family: 'Courier New', monospace;
}

body.theme-architectural .controls-help h4::after {
    background: linear-gradient(90deg, #4682b4, #87ceeb);
}

/* Bioluminescent theme specific controls styling */
body.theme-bioluminescent .controls-help ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

body.theme-bioluminescent .controls-help li {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    padding-left: 40px;
    color: var(--bioluminescent-text-secondary);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

body.theme-bioluminescent .controls-help li:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    color: var(--bioluminescent-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

body.theme-bioluminescent .controls-help li::before {
    content: "▶";
    color: #00ffff;
    font-size: 0.8rem;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

body.theme-bioluminescent .controls-help li:hover::before {
    color: #00ff88;
    transform: translateY(-50%) scale(1.2);
}

body.theme-bioluminescent .controls-help h4 {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

body.theme-bioluminescent .controls-help h4::after {
    background: linear-gradient(90deg, #00ff88, #00ffff);
}

/* Retro theme specific controls styling */
body.theme-retro .controls-help ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

body.theme-retro .controls-help li {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    padding-left: 40px;
    color: var(--retro-text-secondary);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    font-family: 'Courier New', monospace;
}

body.theme-retro .controls-help li:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: var(--retro-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

body.theme-retro .controls-help li::before {
    content: "▶";
    color: #00ff00;
    font-size: 0.8rem;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

body.theme-retro .controls-help li:hover::before {
    color: #ffaa00;
    transform: translateY(-50%) scale(1.2);
}

body.theme-retro .controls-help h4 {
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
    font-family: 'Courier New', monospace;
}

body.theme-retro .controls-help h4::after {
    background: linear-gradient(90deg, #ffaa00, #00ff00);
}

/* Watercolor theme specific controls styling */
body.theme-watercolor .controls-help ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

body.theme-watercolor .controls-help li {
    background: rgba(255, 107, 157, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    padding-left: 40px;
    color: var(--watercolor-text-secondary);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    font-family: 'Georgia', serif;
}

body.theme-watercolor .controls-help li:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: #ff6b9d;
    color: var(--watercolor-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

body.theme-watercolor .controls-help li::before {
    content: "▶";
    color: #ff6b9d;
    font-size: 0.8rem;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

body.theme-watercolor .controls-help li:hover::before {
    color: #ff8fab;
    transform: translateY(-50%) scale(1.2);
}

body.theme-watercolor .controls-help h4 {
    color: #ff6b9d;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.5);
    font-family: 'Georgia', serif;
}

body.theme-watercolor .controls-help h4::after {
    background: linear-gradient(90deg, #ff8fab, #ff6b9d);
}

/* Cyber theme specific controls styling */
body.theme-cyber .controls-help ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 12px !important;
}

body.theme-cyber .controls-help li {
    background: rgba(255, 0, 110, 0.05) !important;
    border: 1px solid rgba(255, 0, 110, 0.2) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    padding-left: 40px !important;
    color: #b0b0b0 !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    position: relative !important;
    font-family: 'Rajdhani', sans-serif !important;
}

body.theme-cyber .controls-help li:hover {
    background: rgba(255, 0, 110, 0.1) !important;
    border-color: #ff006e !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.2) !important;
}

body.theme-cyber .controls-help li::before {
    content: "▶" !important;
    color: #ff006e !important;
    font-size: 0.8rem !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

body.theme-cyber .controls-help li:hover::before {
    color: #00d4ff !important;
    transform: translateY(-50%) scale(1.2) !important;
}

body.theme-cyber .controls-help h4 {
    color: #ff006e !important;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.5) !important;
    font-family: 'Rajdhani', sans-serif !important;
}

body.theme-cyber .controls-help h4::after {
    background: linear-gradient(90deg, #00d4ff, #ff006e) !important;
}

body.theme-watercolor .rule-item {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
}

body.theme-watercolor .rule-item:hover {
    background: rgba(255, 107, 157, 0.15);
    border-color: #ff6b9d;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

/* Mobile responsiveness for rules */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .rule-item {
        padding: 12px;
    }
    
    .rule-number {
        width: 25px;
        height: 25px;
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .rule-content {
        font-size: 0.9rem;
    }
    
    .controls-help ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .controls-help li {
        padding: 10px 12px;
        padding-left: 35px;
        font-size: 0.9rem;
    }
    
    .controls-help li::before {
        left: 12px;
    }
}

body.theme-cyber .instructions li:before {
    content: "⚡";
    color: #ff006e;
    text-shadow: 0 0 10px #ff006e;
    animation: cyberPulse 2s infinite;
}

body.theme-cyber .instructions li {
    color: #b0b0b0;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

body.theme-cyber .instructions li:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #00d4ff;
}

body.theme-retro .instructions h3 {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 2px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-weight: bold;
}

body.theme-retro .instructions h3::after {
    background: linear-gradient(90deg, #00ff00, #ffaa00);
    height: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

body.theme-retro .instructions {
    background: rgba(0, 0, 0, 0.95);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

body.theme-retro .instructions li {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00aa00;
    letter-spacing: 1px;
}

body.theme-retro .instructions li:before {
    content: ">";
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    animation: retroPhosphor 2s ease-in-out infinite;
}

body.theme-retro .instructions li:hover {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    transform: translateX(5px);
}

body.theme-architectural .instructions h3 {
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

body.theme-architectural .instructions h3::after {
    background: linear-gradient(90deg, #ffffff, #87ceeb);
    height: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

body.theme-architectural .instructions {
    background: rgba(15, 42, 74, 0.95);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

body.theme-architectural .instructions li {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #87ceeb;
    letter-spacing: 1px;
}

body.theme-architectural .instructions li:before {
    content: "▢";
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: architecturalGlow 2s ease-in-out infinite;
}

body.theme-architectural .instructions li:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

body.theme-bioluminescent .instructions li:before {
    content: "▶";
    animation: pulse 2s infinite;
}

/* Developer Footer */
.developer-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    z-index: 1000;
    font-size: 11px;
    text-align: center;
}

.developer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.developer-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.developer-website {
    color: var(--accent-color, #ff006e);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.developer-website:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.developer-phone {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.8);
}

/* Theme-specific developer footer styles */
body.theme-cyber .developer-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--accent-color);
}

body.theme-cyber .developer-website {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

body.theme-bioluminescent .developer-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--accent-color);
}

body.theme-bioluminescent .developer-website {
    color: var(--accent-color);
}

body.theme-retro .developer-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #00ff00;
}

body.theme-retro .developer-website {
    color: #00ff00;
    text-shadow: 0 0 3px #00ff00;
}

body.theme-architectural .developer-footer {
    background: rgba(26, 58, 95, 0.9);
    border-top: 1px solid var(--accent-color);
}

body.theme-laboratory .developer-footer {
    background: rgba(10, 20, 30, 0.9);
    border-top: 1px solid var(--accent-color);
}

body.theme-watercolor .developer-footer {
    background: rgba(248, 244, 230, 0.9);
    border-top: 1px solid var(--accent-color);
    color: var(--text-primary);
}

body.theme-watercolor .developer-info {
    color: var(--text-secondary);
}

body.theme-watercolor .developer-name {
    color: var(--text-primary);
}

body.theme-watercolor .developer-phone {
    color: var(--text-secondary);
}

/* Classic theme developer footer styles */
body.theme-classic .developer-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #333;
    color: #fff;
}

body.theme-classic .developer-info {
    color: rgba(255, 255, 255, 0.8);
}

body.theme-classic .developer-name {
    color: #fff;
    font-weight: 700;
}

body.theme-classic .developer-website {
    color: #007acc;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #007acc;
}

body.theme-classic .developer-website:hover {
    color: #fff;
    background: #007acc;
    border-color: #fff;
}

body.theme-classic .developer-phone {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .theme-switcher {
        flex-direction: column;
        align-items: center;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .control-group {
        justify-content: center;
    }
    
    .game-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .pattern-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pattern-btn {
        width: 250px;
    }
    
    .info-item {
        min-width: 200px;
    }
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transition: all 0.3s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer styling */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all 0.5s ease;
}

body.theme-classic footer {
    backdrop-filter: none;
}

footer p {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: normal;
    margin: 0;
    transition: all 0.3s ease;
}

body.theme-cyber footer p {
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
    color: #00d4ff;
    text-shadow: 0 0 8px #00d4ff;
    font-weight: 600;
}

body.theme-cyber footer {
    background: rgba(26, 26, 46, 0.95);
    border-color: #ff006e;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4);
}

body.theme-retro footer {
    background: rgba(0, 0, 0, 0.95);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

body.theme-retro footer p {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #00aa00;
    text-shadow: 0 0 5px #00aa00;
    font-weight: bold;
    font-size: 10px;
}

body.theme-architectural footer {
    background: rgba(15, 42, 74, 0.95);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

body.theme-architectural footer p {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #87ceeb;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.8);
    font-weight: bold;
    font-size: 10px;
}

body.theme-retro .label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 10px;
}

body.theme-retro .info-item {
    background: rgba(0, 0, 0, 0.95);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

body.theme-retro .info-item::before {
    background: linear-gradient(90deg, #00ff00, #ffaa00);
    height: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

body.theme-retro .info-item span:last-child {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    letter-spacing: 2px;
}

body.theme-architectural .label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #87ceeb;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.8);
    text-transform: none;
    letter-spacing: 1px;
    font-size: 10px;
}

body.theme-architectural .info-item {
    background: rgba(15, 42, 74, 0.95);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

body.theme-architectural .info-item::before {
    background: linear-gradient(90deg, #ffffff, #87ceeb);
    height: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

body.theme-architectural .info-item span:last-child {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

body.theme-bioluminescent footer p {
    letter-spacing: 1px;
}

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

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--success-color);
}

body.theme-cyber ::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.9);
}

body.theme-cyber ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff006e, #00d4ff);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
}

body.theme-cyber ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00d4ff, #ffd700);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

body.theme-retro ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.9);
}

body.theme-retro ::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

body.theme-retro ::-webkit-scrollbar-thumb:hover {
    background: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.8);
}

body.theme-architectural ::-webkit-scrollbar-track {
    background: rgba(15, 42, 74, 0.9);
}

body.theme-architectural ::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

body.theme-architectural ::-webkit-scrollbar-thumb:hover {
    background: #87ceeb;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.8);
}

body.theme-architectural select {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 2px solid #ffffff;
    background: rgba(15, 42, 74, 0.9);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    border-radius: 0;
}

body.theme-architectural select:hover, 
body.theme-architectural select:focus {
    border-color: #87ceeb;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.6);
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.8);
}

body.theme-architectural input[type="range"] {
    background: rgba(15, 42, 74, 0.9);
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border-radius: 0;
}

body.theme-architectural input[type="range"]::-webkit-slider-thumb {
    background: #ffffff;
    border: 2px solid #87ceeb;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border-radius: 0;
}

body.theme-architectural input[type="range"]::-webkit-slider-track {
    background: linear-gradient(90deg, #ffffff, #87ceeb);
}

body.theme-retro select {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 2px solid #00ff00;
    background: #000000;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    border-radius: 0;
}

body.theme-retro select:hover, 
body.theme-retro select:focus {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    text-shadow: 0 0 10px #00ff00;
}

body.theme-retro input[type="range"] {
    background: #000000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    border-radius: 0;
}

body.theme-retro input[type="range"]::-webkit-slider-thumb {
    background: #00ff00;
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    border-radius: 0;
}

body.theme-retro input[type="range"]::-webkit-slider-track {
    background: linear-gradient(90deg, #00ff00, #ffaa00);
}

/* Additional hover effects */
.btn:hover, .pattern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Focus states for accessibility */
.btn:focus, .pattern-btn:focus, select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* Laboratory Theme Animations */
@keyframes microbialPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.02);
    }
}

@keyframes agarShimmer {
    0%, 100% { 
        background-position: 0% 0%; 
    }
    50% { 
        background-position: 100% 100%; 
    }
}

body.theme-laboratory #gameCanvas::before {
    animation: agarShimmer 8s ease-in-out infinite;
}

body.theme-laboratory .game-container::before {
    animation: microbialPulse 4s ease-in-out infinite;
}

@keyframes depthShift {
    0%, 100% { 
        background-position: 0% 0%; 
        opacity: 0.3;
    }
    50% { 
        background-position: 100% 100%; 
        opacity: 0.5;
    }
}

@keyframes watercolorFlow {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1);
        filter: hue-rotate(0deg);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.02);
        filter: hue-rotate(10deg);
    }
}

@keyframes watercolorSpread {
    0% { 
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes watercolorPaperShimmer {
    0%, 100% { 
        background-position: 0% 0%, 20% 20%, 80% 80%, 0% 0%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 100%, 80% 80%, 20% 20%, 100% 100%;
        opacity: 0.9;
    }
}

@keyframes ukiyo-ePaperShimmer {
    0%, 100% { 
        opacity: 0.7; 
        transform: translateX(0px);
    }
    25% { 
        opacity: 0.8; 
        transform: translateX(1px);
    }
    50% { 
        opacity: 0.75; 
        transform: translateX(0px);
    }
    75% { 
        opacity: 0.8; 
        transform: translateX(-1px);
    }
}




