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

body {
    font-family: 'Times New Roman', Times, serif;
    background: #c0c0c0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.05) 10px, rgba(255,255,255,.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,.05) 10px, rgba(0,0,0,.05) 20px);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
}

.room {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: #ffffff;
    border: 3px ridge #808080;
    box-shadow: 5px 5px 0px #000000;
}

.title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #000080;
    text-decoration: underline;
    letter-spacing: 2px;
    font-weight: bold;
}

.lock-container {
    background: #e0e0e0;
    border: 4px groove #808080;
    padding: 30px;
    margin-bottom: 20px;
}

.lock-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: #000000;
    border: 3px inset #808080;
}

.digit {
    width: 60px;
    height: 80px;
    background: #001100;
    border: 2px solid #003300;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 0 10px #00ff00;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.dial-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.dial-number {
    color: #000080;
    font-size: 12px;
    font-weight: bold;
}

.dial-btn {
    width: 50px;
    height: 30px;
    background: #c0c0c0;
    border: 2px outset #ffffff;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
}

.dial-btn:hover {
    background: #d0d0d0;
}

.dial-btn:active {
    border-style: inset;
    background: #a0a0a0;
}

.unlock-btn {
    width: 200px;
    height: 50px;
    background: #008080;
    border: 3px outset #ffffff;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}

.unlock-btn:hover {
    background: #009999;
}

.unlock-btn:active {
    border-style: inset;
    background: #006666;
}

.message {
    margin-top: 15px;
    font-size: 16px;
    min-height: 25px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.message.success {
    color: #008000;
    animation: blink 1s ease-in-out;
}

.message.error {
    color: #ff0000;
    animation: shake 0.5s ease-in-out;
}

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

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

.hint-panel {
    background: #ffffe0;
    border: 2px solid #000000;
    padding: 15px;
    margin-top: 15px;
}

.hint {
    font-size: 16px;
    margin-bottom: 8px;
    color: #000080;
    font-family: 'Arial', sans-serif;
}

.hint-small {
    font-size: 13px;
    color: #808080;
    font-style: italic;
}

/* Locked effect */
.lock-container.locked {
    animation: lockShake 0.4s ease-in-out;
}

@keyframes lockShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}