:root {
    --metal-dark: #5d4037; /* Warm brown */
    --metal-mid: #8d6e63;
    --metal-light: #d7ccc8;
    --indicator-bg: #3e2723;
    --indicator-color: #ffd54f; /* Neutral yellow for 'closed' state */
    --bg-color: #f5f5f5;
    --text-color: #4e342e;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 600px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #5d4037;
}

header p {
    font-style: italic;
    color: #a1887f;
}

.elevator-shaft {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 3.5rem auto;
    background: #efebe9;
    border: 12px solid #bcaaa4;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.5s ease;
}

.indicator {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 35px;
    background: var(--indicator-bg);
    border: 3px solid #bcaaa4;
    border-radius: 5px;
    color: var(--indicator-color);
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: color 0.3s ease, box-shadow 0.3s ease;
}

.elevator-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #d7ccc8 0%, #bcaaa4 100%);
    border: 1px solid #a1887f;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.door::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 4px;
    height: 60px;
    background: rgba(0,0,0,0.1);
    transform: translateY(-50%);
}

.left-door { left: 0; border-right: none; }
.left-door::after { right: 10px; }

.right-door { right: 0; border-left: none; }
.right-door::after { left: 10px; }

.elevator-container.open .left-door { transform: translateX(-95%); }
.elevator-container.open .right-door { transform: translateX(95%); }

.elevator-interior {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.no-sign {
    font-size: 5rem;
    font-weight: bold;
    transition: all 0.5s ease;
}

/* State-specific classes added via JS */
.broken .no-sign { color: #e53935; text-shadow: 0 0 15px rgba(229, 57, 53, 0.4); }
.working .no-sign { color: #43a047; text-shadow: 0 0 15px rgba(67, 160, 71, 0.4); }

.sticky-note {
    background: #fff9c4;
    color: #5d4037;
    padding: 12px;
    transform: rotate(-3deg);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    border-bottom-right-radius: 15px 3px;
}

.warning-tape {
    background: #ffd54f;
    color: #5d4037;
    font-weight: bold;
    padding: 8px 30px;
    width: 130%;
    transform: rotate(12deg);
    position: absolute;
    bottom: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.call-button {
    position: absolute;
    right: -55px;
    top: 50%;
    width: 35px;
    height: 60px;
    background: #bcaaa4;
    border: 3px solid #8d6e63;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.call-button::before {
    content: '';
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.call-button.active::before {
    background: #ffd54f;
    box-shadow: 0 0 10px #ffd54f;
}

@keyframes flicker-text {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.shake {
    animation: shake-anim 0.3s ease-in-out;
}

@keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 3;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

footer {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #a1887f;
}

