@import url('https://fonts.googleapis.com/css2?family=Kelly+Slab&display=swap');
#level-nine-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(33, 30, 30);
    display: none;
    opacity: 0;
    z-index: 9999;
    overflow: hidden;
}
#level-nine-container canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}
#level-nine-container .level-box {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #211e1ecb;
    border: 8px solid #e9e2da;
    padding: 0px 35px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    transition: all 0.3s ease;
    color: #e9e2da;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.11);
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 0.9;
}
#level-nine-container .level-text {
    font-size: 2em;
    margin: 0;
    line-height: 1;
    text-shadow: none;
    font-weight: 800;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #e9e2da;
}
#level-nine-container .clock-image {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 60vh;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    opacity: 1;
}
#level-nine-container .clock-image path,
#level-nine-container .clock-image circle,
#level-nine-container .clock-image rect {
    fill: rgb(33, 30, 30);
}
#level-nine-container .password-container {
    display: flex;
    gap: 20px;
    align-items: center;
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    padding: 10px 40px;
    background: rgba(33, 30, 30, 0.9);
    border-radius: 12px;
    cursor: cell;
}
#level-nine-container .time-group {
    position: relative;
    display: flex;
    gap: 5px;
}
#level-nine-container .time-input {
    width: 20px;
    height: 30px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e9e2da;
    color: #e9e2da;
    font-family: "Monaco", monospace;
    font-size: 24px;
    text-align: center;
    outline: none;
    cursor: cell;
    z-index: 10;
    margin: 0 5px;
}
#level-nine-container .time-separator {
    color: #e9e2da;
    font-size: 24px;
    margin: 0 5px;
}
#level-nine-container .time-separator.hint-mode {
    font-family: "Monaco", monospace;
    font-size: 24px;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(233, 226, 218, 0.3);
}
#level-nine-container .time-hint {
    position: absolute;
    right: -25px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#level-nine-container .hint-text {
    color: #e9e2da;
    font-family: "Monaco", monospace;
    font-size: 24px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(233, 226, 218, 0.3);
}
#level-nine-container .error-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
#loading-screen.level-nine-loading {
    font-size: 1rem !important;
    align-items: center;
    justify-content: center;
}
.level-nine-clock-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}
.level-nine-clock {
    --clock-size: 1200px;
    --hour-width: 40px;
    --minute-width: 24px;
    width: var(--clock-size);
    height: var(--clock-size);
    position: relative;
    margin-left: 0;
}
.level-nine-hand {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.level-nine-hour-hand {
    top: calc(4 * var(--clock-size) / 16);
    left: calc(50% - var(--hour-width) / 2);
    width: var(--hour-width);
    height: calc(var(--clock-size) / 3);
    background: #fff;
    transform-origin: calc(var(--hour-width) / 2) calc(var(--clock-size) / 2 - 4 * var(--clock-size) / 16);
    border-radius: 20px 20px 0 0;
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
}
.level-nine-minute-hand {
    top: var(--minute-width);
    left: calc(50% - var(--minute-width) / 2);
    width: var(--minute-width);
    height: calc((9/16) * var(--clock-size));
    background: #fff;
    transform-origin: calc(var(--minute-width) / 2) calc(var(--clock-size) / 2 - var(--minute-width));
    border-radius: 12px 12px 0 0;
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
}
.level-nine-center-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.level-nine-text-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    width: auto;
    text-align: center;
    z-index: 1000;
}
.level-nine-hidden-text {
    font-family: 'Kelly Slab', cursive;
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    color: #fff;
    opacity: 0;
    letter-spacing: 0.15em;
    display: inline-block;
    padding: 10px;
    transition: opacity 0.1s ease-out;
}
.level-nine-hidden-text.level-nine-loading-blink {
    transition: opacity 0.04s linear;
}
@keyframes passwordError {
    0%, 100% { transform: translateX(-50%); }
    20%, 60% { transform: translateX(-50%) rotate(-0.5deg); }
    40%, 80% { transform: translateX(-50%) rotate(0.5deg); }
}
#level-nine-container .password-container.error-shake {
    animation: passwordError 0.5s ease-in-out;
}
#level-nine-container .audio-btn,
.audio-popup-backdrop.theme-9 .audio-popup {
    --ac-color: #e9e2da;
    --ac-bg: rgba(33, 30, 30, 0.9);
    --ac-border-w: 8px;
    --ac-border-style: solid;
    --ac-glow: 0 0 15px rgba(255, 255, 255, 0.15);
    --ac-font: 'Monaco', 'Courier New', monospace;
    --ac-symbols: '▓ ░ ▒ ░';
}