/* ============================================
   ULTRA-REAL WEED SMOKING SIMULATOR
   Premium Photoreal Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-green: #2d5a27;
    --light-green: #4a9c3d;
    --dark-green: #1a3318;
    --gold: #d4af37;
    --purple: #6b3fa0;
    --smoke-white: rgba(255, 255, 255, 0.15);
    --panel-bg: rgba(15, 15, 20, 0.85);
    --panel-border: rgba(255, 255, 255, 0.1);
    --glow-green: 0 0 20px rgba(74, 156, 61, 0.5);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.5);
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --room-ambient: #1a1412;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: var(--text-primary);
}

/* Main Game Container */
.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--room-ambient);
    transition: filter 0.5s ease, transform 0.1s ease;
}

/* SVG Room Layer */
#room-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Canvas Layers */
#effects-canvas,
#smoke-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#effects-canvas {
    z-index: 2;
    mix-blend-mode: screen;
}

#smoke-canvas {
    z-index: 3;
    mix-blend-mode: screen;
}

/* Trippy Overlay */
#trippy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

#chromatic-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(90deg, 
        rgba(255, 0, 0, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 255, 0.1) 100%);
    mix-blend-mode: screen;
    transition: opacity 0.5s ease;
}

#kaleidoscope-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: conic-gradient(from 0deg at 50% 50%,
        rgba(255, 0, 128, 0.05),
        rgba(0, 255, 128, 0.05),
        rgba(128, 0, 255, 0.05),
        rgba(255, 128, 0, 0.05),
        rgba(255, 0, 128, 0.05));
    mix-blend-mode: overlay;
    animation: kaleidoscopeRotate 20s linear infinite paused;
}

#fractal-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: repeating-radial-gradient(
        circle at 50% 50%,
        transparent 0px,
        rgba(138, 43, 226, 0.03) 10px,
        transparent 20px,
        rgba(50, 205, 50, 0.03) 30px,
        transparent 40px
    );
    mix-blend-mode: screen;
    animation: fractalPulse 8s ease-in-out infinite paused;
}

#vignette-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        transparent 40%, 
        rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    animation: vignetteBreathe 4s ease-in-out infinite paused;
}

/* Trippy Animations */
@keyframes kaleidoscopeRotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes fractalPulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.5); opacity: 0.3; }
}

@keyframes vignetteBreathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Floating Thoughts Container */
#thoughts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.floating-thought {
    position: absolute;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8),
                 0 0 40px rgba(138, 43, 226, 0.4);
    white-space: nowrap;
    animation: thoughtFloat 8s ease-in-out forwards;
    opacity: 0;
}

@keyframes thoughtFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(-2deg);
        filter: blur(4px);
    }
    15% {
        opacity: 1;
        filter: blur(0);
    }
    85% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) rotate(2deg);
        filter: blur(4px);
    }
}

/* Bud Display */
#bud-display {
    position: absolute;
    bottom: 120px;
    right: 150px;
    width: 200px;
    height: 200px;
    z-index: 6;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

#bud-display.visible {
    opacity: 1;
    transform: scale(1);
}

#bud-display.smoking {
    animation: budGlow 0.5s ease-in-out infinite alternate;
}

#bud-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(74, 156, 61, 0.5));
}

#bud-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 150, 50, 0.4) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#bud-display.smoking #bud-glow {
    opacity: 1;
    animation: burnGlow 0.3s ease-in-out infinite alternate;
}

@keyframes budGlow {
    from { filter: drop-shadow(0 0 30px rgba(255, 100, 50, 0.5)); }
    to { filter: drop-shadow(0 0 50px rgba(255, 150, 50, 0.8)); }
}

@keyframes burnGlow {
    from { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    to { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* UI Overlay */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#ui-overlay > * {
    pointer-events: auto;
}

/* Header */
#header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#game-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(74, 156, 61, 0.6),
                 0 2px 4px rgba(0, 0, 0, 0.5);
}

#effect-meter {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#meter-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--light-green) 0%, 
        var(--gold) 50%, 
        var(--purple) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(74, 156, 61, 0.5);
}

/* Panels */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Strain Panel */
#strain-panel {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    max-height: 70vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#panel-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#panel-header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
}

#strain-search {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

#strain-search:focus {
    border-color: var(--light-green);
    box-shadow: 0 0 15px rgba(74, 156, 61, 0.3);
}

#strain-search::placeholder {
    color: var(--text-secondary);
}

/* Filter Buttons */
#strain-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary-green);
    border-color: var(--light-green);
    color: white;
    box-shadow: var(--glow-green);
}

/* Strain Grid */
#strain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

#strain-grid::-webkit-scrollbar {
    width: 6px;
}

#strain-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#strain-grid::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.strain-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.strain-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        var(--strain-color, rgba(74, 156, 61, 0.2)) 0%, 
        transparent 70%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.strain-item:hover {
    transform: translateY(-2px);
    border-color: var(--light-green);
    box-shadow: 0 4px 20px rgba(74, 156, 61, 0.3);
}

.strain-item:hover::before {
    opacity: 1;
}

.strain-item.selected {
    border-color: var(--gold);
    box-shadow: var(--glow-gold);
}

.strain-item svg {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

.strain-item .strain-name {
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}

/* Strain Info Panel */
#strain-info {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    padding: 20px;
}

#selected-strain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--panel-border);
}

#selected-strain-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

#selected-strain-type {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--primary-green);
    color: white;
}

#selected-strain-type.indica { background: #6b3fa0; }
#selected-strain-type.sativa { background: #e67e22; }
#selected-strain-type.hybrid { background: #27ae60; }
#selected-strain-type.exotic { background: #c0392b; }

/* Strain Stats */
#strain-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    width: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    width: 0%;
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

#thc-bar { background: linear-gradient(90deg, #27ae60, #f1c40f); }
#cbd-bar { background: linear-gradient(90deg, #3498db, #9b59b6); }
#trippy-bar { background: linear-gradient(90deg, #e74c3c, #9b59b6, #3498db); }

#strain-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Control Panel */
#control-panel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Glow Buttons */
.glow-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: 2px solid var(--light-green);
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glow-green),
                0 4px 15px rgba(0, 0, 0, 0.3);
}

.glow-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(74, 156, 61, 0.7),
                0 6px 20px rgba(0, 0, 0, 0.4);
}

.glow-btn:active:not(:disabled) {
    transform: translateY(0);
}

.glow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.glow-btn.secondary {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3),
                0 4px 15px rgba(0, 0, 0, 0.3);
}

.glow-btn.secondary:hover:not(:disabled) {
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.5),
                0 6px 20px rgba(0, 0, 0, 0.4);
}

.glow-btn.smoking {
    animation: smokingPulse 0.5s ease-in-out infinite;
}

@keyframes smokingPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 100, 50, 0.5),
                    0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 150, 50, 0.8),
                    0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

.btn-icon {
    font-size: 1.3rem;
}

/* Lighter */
#lighter {
    width: 60px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#lighter:hover {
    transform: scale(1.1);
}

#lighter-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

/* Audio Controls */
#audio-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--panel-bg);
    border-radius: 25px;
    border: 1px solid var(--panel-border);
}

.icon-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Exit to Main Menu Button */
#exit-to-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    z-index: 100;
}

#exit-to-menu-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
}

#volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--light-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 156, 61, 0.5);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0f0a 0%, #1a2f1a 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

#loading-content {
    text-align: center;
}

#loading-bud {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: radial-gradient(circle, #4a9c3d 0%, #2d5a27 50%, #1a3318 100%);
    border-radius: 50% 45% 50% 45%;
    animation: loadingBudPulse 2s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(74, 156, 61, 0.5);
}

@keyframes loadingBudPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 50px rgba(74, 156, 61, 0.5);
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 0 80px rgba(74, 156, 61, 0.8);
    }
}

#loading-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text-primary);
}

#loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 15px;
}

#loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green), var(--gold));
    border-radius: 3px;
    transition: width 0.3s ease;
}

#loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* High Effect State Modifiers */
.high-level-1 #vignette-layer { animation-play-state: running; }
.high-level-2 #kaleidoscope-layer { animation-play-state: running; opacity: 0.1; }
.high-level-3 #fractal-layer { animation-play-state: running; opacity: 0.2; }
.high-level-4 #chromatic-layer { opacity: 0.3; }
.high-level-5 #game-container { animation: screenWobble 4s ease-in-out infinite; }

@keyframes screenWobble {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.01) rotate(0.2deg); }
    75% { transform: scale(0.99) rotate(-0.2deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    #strain-panel {
        width: 280px;
    }
    
    #strain-info {
        width: 250px;
    }
}

@media (max-width: 900px) {
    #strain-panel,
    #strain-info {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 40vh;
        transform: none;
        border-radius: 20px 20px 0 0;
    }
    
    #strain-info {
        display: none;
    }
    
    #control-panel {
        bottom: 45vh;
    }
}

/* Custom Scrollbar Global */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-green);
}

/* ============================================
   NEW UI ELEMENTS
   ============================================ */

/* Current Strain Display */
#current-strain-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

#strain-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.strain-type {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.strain-type.indica { background: #6b3fa0; color: white; }
.strain-type.sativa { background: #e67e22; color: white; }
.strain-type.hybrid { background: #27ae60; color: white; }
.strain-type.exotic { background: #c0392b; color: white; }

/* High Meter */
#high-meter {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

#high-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

#high-bar {
    width: 20px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#high-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(to top, #4ade80, #4ade80);
    border-radius: 10px;
    transition: height 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

#high-percent {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Menu Toggle Button */
#menu-toggle {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s ease;
}

#menu-toggle:hover {
    background: rgba(74, 156, 61, 0.3);
    border-color: var(--light-green);
    transform: scale(1.1);
}

/* Strain Menu (Slide-out Panel) */
#strain-menu {
    position: absolute;
    left: -420px;
    top: 100px;
    width: 400px;
    max-height: calc(100vh - 140px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: left 0.4s ease;
    overflow: hidden;
    z-index: 100;
}

#strain-menu.open {
    left: 20px;
}

#strain-menu .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

#strain-menu .panel-header h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: #ff6666;
}

#strain-menu .strain-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

#strain-filters {
    flex-shrink: 0;
}

/* Strain List */
#strain-list {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 55vh;
    min-height: 200px;
    padding-right: 8px;
    scroll-behavior: smooth;
}

#strain-list::-webkit-scrollbar {
    width: 8px;
}

#strain-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#strain-list::-webkit-scrollbar-thumb {
    background: var(--light-green);
    border-radius: 4px;
}

#strain-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.strain-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-height: 70px;
}

.strain-item:hover {
    background: rgba(74, 156, 61, 0.15);
    border-color: var(--light-green);
    transform: translateX(5px);
}

.strain-item.selected {
    background: rgba(74, 156, 61, 0.3);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.strain-item-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.strain-item-bud {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, transparent 70%);
    border-radius: 8px;
    overflow: visible;
}

.strain-bud-svg {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: transform 0.2s ease;
}

.strain-item:hover .strain-bud-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(74, 156, 61, 0.5));
}

.strain-item.selected .strain-bud-svg {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.strain-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strain-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.strain-item-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 8px;
    width: fit-content;
}

.strain-item-type.indica { background: rgba(107, 63, 160, 0.3); color: #a78bfa; }
.strain-item-type.sativa { background: rgba(230, 126, 34, 0.3); color: #fbbf24; }
.strain-item-type.hybrid { background: rgba(39, 174, 96, 0.3); color: #4ade80; }
.strain-item-type.exotic { background: rgba(192, 57, 43, 0.3); color: #f87171; }

.strain-item-stats {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.strain-item-stats .thc {
    color: #4ade80;
}

/* Strain Info Preview */
#strain-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--panel-border);
}

#strain-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.strain-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.strain-type-badge.indica { background: #6b3fa0; }
.strain-type-badge.sativa { background: #e67e22; }
.strain-type-badge.hybrid { background: #27ae60; }
.strain-type-badge.exotic { background: #c0392b; }

.strain-stats-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.strain-stats-preview .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.strain-stats-preview .label {
    width: 45px;
    color: var(--text-secondary);
}

.strain-stats-preview .bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strain-stats-preview .fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.strain-stats-preview .value {
    width: 35px;
    text-align: right;
    color: var(--text-primary);
}

.strain-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.strain-effects-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.effect-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
}

/* Humor Text */
#humor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.8),
                 0 0 60px rgba(138, 43, 226, 0.4);
    text-align: center;
    max-width: 80%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 20;
}

#humor-text.visible {
    opacity: 1;
}

/* Instructions */
#instructions {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: opacity 0.5s ease;
}

#instructions.hidden {
    opacity: 0;
    pointer-events: none;
}

#instructions p {
    margin: 5px 0;
}

#instructions kbd {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Control Buttons Container */
#control-buttons {
    display: flex;
    gap: 15px;
}

/* Active/Ready States */
.glow-btn.active {
    animation: smokingPulse 0.3s ease-in-out infinite;
    background: linear-gradient(135deg, #c0392b 0%, #8e2b1f 100%);
    border-color: #e74c3c;
}

.glow-btn.ready {
    animation: readyPulse 1s ease-in-out infinite;
}

@keyframes readyPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 156, 61, 0.5); }
    50% { box-shadow: 0 0 40px rgba(74, 156, 61, 0.8); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification.warning {
    border-color: #f39c12;
    color: #f39c12;
}

.notification.info {
    border-color: var(--light-green);
    color: var(--light-green);
}

/* Loading Spinner */
#loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(74, 156, 61, 0.2);
    border-top-color: var(--light-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Lighter Flame */
#lighter-flame {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* ============================================
   MAIN MENU STYLES
   ============================================ */
#main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0f0a 0%, #0d1a0d 50%, #1a2f1a 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#main-menu.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#menu-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

#menu-logo {
    font-size: 120px;
    margin-bottom: 10px;
    animation: menuLogoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(74, 156, 61, 0.6));
}

@keyframes menuLogoPulse {
    0%, 100% {
        transform: scale(1) rotate(-5deg);
        filter: drop-shadow(0 0 30px rgba(74, 156, 61, 0.6));
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 50px rgba(74, 156, 61, 0.9));
    }
}

#menu-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a9c3d 0%, #7ed321 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: none;
    letter-spacing: 2px;
}

#menu-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 50px;
    font-style: italic;
}

#menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 60px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 50px;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgba(74, 156, 61, 0.3) 0%, rgba(45, 90, 39, 0.5) 100%);
    border: 2px solid rgba(74, 156, 61, 0.6);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-btn:hover {
    background: linear-gradient(135deg, rgba(74, 156, 61, 0.5) 0%, rgba(45, 90, 39, 0.7) 100%);
    border-color: var(--light-green);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(74, 156, 61, 0.4);
}

.menu-btn:active {
    transform: translateY(0) scale(0.98);
}

.menu-btn-icon {
    font-size: 1.6rem;
}

#start-game-btn {
    background: linear-gradient(135deg, rgba(74, 156, 61, 0.4) 0%, rgba(126, 211, 33, 0.3) 100%);
    border-color: var(--light-green);
}

#start-game-btn:hover {
    background: linear-gradient(135deg, rgba(74, 156, 61, 0.6) 0%, rgba(126, 211, 33, 0.5) 100%);
    box-shadow: 0 10px 40px rgba(126, 211, 33, 0.5);
}

#exit-game-btn {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.3) 0%, rgba(60, 60, 60, 0.4) 100%);
    border-color: rgba(150, 150, 150, 0.5);
}

#exit-game-btn:hover {
    background: linear-gradient(135deg, rgba(150, 50, 50, 0.4) 0%, rgba(100, 30, 30, 0.5) 100%);
    border-color: rgba(200, 80, 80, 0.6);
    box-shadow: 0 10px 30px rgba(150, 50, 50, 0.3);
}

#menu-credits {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

#menu-credits .credit-name {
    color: var(--light-green);
    font-weight: 600;
    font-size: 1.2rem;
}

#menu-credits .version {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

#menu-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(74, 156, 61, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(126, 211, 33, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
    animation: menuBgPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes menuBgPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* How to Play Panel */
#how-to-play-panel {
    background: rgba(10, 15, 10, 0.95);
    border: 2px solid rgba(74, 156, 61, 0.5);
    border-radius: 20px;
    padding: 30px;
    max-width: 550px;
    max-height: 70vh;
    overflow-y: auto;
    margin: 20px auto;
    text-align: left;
    transition: all 0.3s ease;
}

#how-to-play-panel::-webkit-scrollbar {
    width: 8px;
}

#how-to-play-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#how-to-play-panel::-webkit-scrollbar-thumb {
    background: rgba(74, 156, 61, 0.6);
    border-radius: 4px;
}

#how-to-play-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 156, 61, 0.8);
}

#how-to-play-panel.hidden {
    display: none;
}

#how-to-play-panel h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--light-green);
    margin-bottom: 25px;
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: rgba(74, 156, 61, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(74, 156, 61, 0.2);
}

.instruction-icon {
    font-size: 2rem;
    min-width: 45px;
    text-align: center;
}

.instruction-item h3 {
    color: var(--light-green);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.instruction-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
}

.instruction-item kbd {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-btn.small {
    padding: 12px 30px;
    font-size: 1.1rem;
    margin: 0 auto;
    display: block;
}

#how-to-play-btn {
    background: linear-gradient(135deg, rgba(100, 80, 160, 0.3) 0%, rgba(60, 50, 100, 0.4) 100%);
    border-color: rgba(150, 120, 200, 0.5);
}

#how-to-play-btn:hover {
    background: linear-gradient(135deg, rgba(120, 100, 180, 0.4) 0%, rgba(80, 60, 120, 0.5) 100%);
    border-color: rgba(180, 150, 230, 0.6);
    box-shadow: 0 10px 30px rgba(120, 100, 180, 0.3);
}
