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

body {
    overflow-y: auto;
    background: #000000;
    color: #FF0F6F; /* Vaporwave Roze */
    font-family: Consolas, monospace;
    min-height: 100vh;
    -webkit-user-select: none; user-select: none;
}

code, pre, input { user-select: text !important; }

/* Spore Canvas Background */
#spore-canvas {
    position: fixed;
    top: 0; left: 0; z-index: -1;
    width: 100%; height: 100%;
}

/* De centrale theater console */
#mushroom-theater-core {
    max-width: 850px;
    width: 95vw; /* Dwingt elasticiteit af op telefoons */
    margin: 40px auto;
    padding: 100px 20px 40px; /* 100px top ademruimte voor de tussenlaag-animatie! */
    background: rgba(12, 2, 20, 0.94); /* Diep, mystiek paars/zwart */
    border: 1px solid #4CFF00; /* Fel gifgroen */
    box-shadow: 0 0 25px rgba(76, 255, 0, 0.15);
}

header {
    text-align: center;
    border-bottom: 1px solid #4CFF00;
    padding-bottom: 20px;
    margin-bottom: 35px;
    width: 100%;
}

/* De glitchende en vervormende Mushroom Alice titel */
.mushroom-title {
    font-size: 24px;
    color: #4CFF00;
    letter-spacing: 1px;
    text-shadow: 2px 2px #FF0F6F, -2px -2px #00FFCC;
    position: relative;
    animation: mushroomGlitch 2s infinite steps(2);
}

.subtitle { color: #FFFFFF; font-size: 12px; margin-top: 5px; }

.mushroom-block { 
    margin-bottom: 35px;
    width: 100%;
    display: flex; 
    flex-direction: column;
    align-items: center; 
}
.mushroom-block h2 { font-size: 14px; color: #FAFF0A; margin-bottom: 15px; text-align: center; }

/* 🎭 INTERACTIEVE SLOTS PUZZEL STYLING */
#mushroom-puzzle-box {
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #FF0F6F;
    padding: 25px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(255, 15, 111, 0.1);
    width: 100%;
}

#mushroom-puzzle-box h3 { font-size: 14px; color: #FF0F6F; margin-bottom: 5px; }
.puzzle-instruction { font-size: 12px; color: #ccff00; margin-bottom: 20px; line-height: 1.5; text-align: left; }

#clown-slots-row {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 20px;
}

.slot-btn {
    width: 60px; height: 60px; background: #000; border: 2px solid #4CFF00;
    color: #4CFF00; font-size: 24px; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 0 8px rgba(76, 255, 0, 0.2);
    font-family: inherit;
}

.slot-btn.frozen {
    border-color: #FAFF0A !important; color: #FAFF0A !important;
    box-shadow: 0 0 15px #FAFF0A !important;
    animation: none !important;
}

#reset-slots-btn {
    background: transparent; border: 1px solid #00FFCC; color: #00FFCC;
    font-family: Consolas, monospace; font-size: 11px; font-weight: bold;
    padding: 6px 15px; cursor: pointer; transition: all 0.3s; margin-bottom: 15px;
}
#reset-slots-btn:hover { background: #00FFCC; color: #000; box-shadow: 0 0 10px #00FFCC; }

#mushroom-status { font-size: 12px; font-weight: bold; color: #00FFCC; text-align: center; }

/* 🎬 CORE GEGECENTREERDE VIDEO ZONE */
.theater-video-wrapper-zone {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
}

.media-container {
    position: relative; 
    width: 100%; 
    margin: 0 auto;
    border: 1px solid #333;
}
.media-container video { width: 100%; height: auto; display: block; pointer-events: none; }
.media-container::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0); z-index: 10;
}

.theater-mirror-glow {
    box-shadow: 0 0 15px rgba(76, 255, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.theater-mirror-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px #FF0F6F;
}

/* 🖼️ HELP_COMMENT: PUNT 3: DE GECORRIGEERDE COMPACTE GLOW FOTO 
   De max-width staat nu op 340px gezet voor een super strakke, kleinere look! */
.mushroom-art-glow {
    max-width: 340px !important; /* Maakt de foto prachtig compact op laptop schermen! */
    width: 100%;
    margin: 35px auto !important; /* Behoudt de perfecte ademruimte aan top en bodem */
    border: 2px solid #FF0F6F !important;
    box-shadow: 0 0 20px rgba(255, 15, 111, 0.4);
    animation: pulseTheaterGlow 3s infinite alternate;
}

.theater-custom-controls {
    display: flex;
    gap: 15px;
    width: 100%;
    position: relative;
    z-index: 999 !important;
}

.theater-ctrl-btn {
    flex: 1; height: 42px; background: #000; border: 1px solid #FF0F6F; color: #FF0F6F;
    font-family: inherit; font-weight: bold; font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.theater-ctrl-btn:hover { background: rgba(255, 15, 111, 0.1); color: #fff; }

.play-trigger { border-color: #4CFF00 !important; color: #4CFF00 !important; }
.play-trigger:hover { background: #4CFF00 !important; color: #000 !important; box-shadow: 0 0 12px #4CFF00; }

.stop-trigger { border-color: #FAFF0A !important; color: #FAFF0A !important; }
.stop-trigger:hover { background: #FAFF0A !important; color: #000 !important; box-shadow: 0 0 12px #FAFF0A; }

/* TERMINAL TEXT BOX */
.text-terminal-style {
    background: rgba(5, 5, 5, 0.9); border-left: 3px solid #FAFF0A;
    padding: 20px; line-height: 1.7; font-size: 14px; color: #FFFFFF; width: 100%;
}

/* INTERACTIEVE KNOPPEN */
#mushroom-nav-grid {
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; 
    margin-bottom: 35px; 
    width: 100%;
}

.mushroom-btn {
    height: 45px; background: transparent; border: 1px solid #4CFF00;
    color: #4CFF00; font-family: Consolas, monospace; font-weight: bold;
    font-size: 12px; cursor: pointer; transition: all 0.2s ease;
}
.mushroom-btn:hover { background: #4CFF00; color: #000; box-shadow: 0 0 12px #4CFF00; }

footer { text-align: center; border-top: 1px solid #222; padding-top: 20px; width: 100%; }
.back-hub-btn {
    height: 40px; padding: 0 25px; background: #FF1A0A; border: none;
    color: #fff; font-family: Consolas, monospace; font-weight: bold;
    cursor: pointer; box-shadow: 0 0 8px rgba(255, 26, 10, 0.3);
}
.back-hub-btn:hover { background: #FF0F6F; box-shadow: 0 0 15px #FF0F6F; }

/* MUSHROOM ALICE CHROMATIC GLITCH KEYFRAMES */
@keyframes mushroomGlitch {
    0% { transform: skew(1deg) scale(1); text-shadow: 2px 2px #FF0F6F, -2px -2px #00FFCC; }
    25% { transform: skew(-2deg) scale(0.99); text-shadow: -2px 3px #4CFF00, 2px -2px #FAFF0A; }
    50% { transform: skew(0deg) filter: hue-rotate(45deg); }
    75% { transform: skew(2deg) scale(1.01); text-shadow: 3px -1px #FF0F6F, -3px 2px #00FFCC; }
    100% { transform: skew(-1deg); filter: none; }
}

@keyframes pulseTheaterGlow {
    0% { box-shadow: 0 0 15px rgba(255, 15, 111, 0.3); border-color: #FF0F6F; }
    100% { box-shadow: 0 0 25px rgba(76, 255, 0, 0.5); border-color: #4CFF00; }
}

/* DE ABSOLUTE MOBIELE RESPONSIVE OVERRIDE FILTER */
@media (max-width: 768px) {
    #mushroom-theater-core { padding-top: 110px; width: 95vw; }
    #mushroom-nav-grid { grid-template-columns: 1fr; } 
    .theater-custom-controls { flex-direction: column; gap: 10px; }
    .theater-ctrl-btn { width: 100%; }
    .slot-btn { width: 50px; height: 50px; font-size: 20px; }
    .mushroom-art-glow { max-width: 90% !important; } /* Op kleine schermen pakt hij netjes 90% van de schermbreedte */
}
