#level-ten-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    z-index: 9999;
    overflow: auto;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(120,170,255,0.22), transparent 60%),
                radial-gradient(1000px 600px at 100% 20%, rgba(255,120,180,0.14), transparent 55%),
                #0b0f14;
}
.level10-level-box {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    border: 8px solid rgba(240,240,240,0.95);
    padding: 0px 35px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    user-select: none;
    z-index: 10000;
}
.level10-level-text {
    font-size: 2em;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1;
    text-shadow: none;
    color: rgba(240,240,240,0.95);
}
.level10-wrap {
    width: min(720px, 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.level10-bubble {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #00B2FF;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    position: relative;
    overflow: visible;
    min-height: 128px;
    margin-left: 30px;
    opacity: 0;
    animation: level10-popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
    transform-style: preserve-3d;
}
.level10-bubble::after {
    content: "";
    position: absolute;
    left: -12px;
    top: 75%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 14px solid #00B2FF;
    z-index: 1;
}
.level10-btnPlay {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.95);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 20px;
}
.level10-vizWrap {
    width: min(520px, 70vw);
    height: 102px;
    display: flex;
    align-items: center;
    flex: 1;
}
#level10-viz {
    width: 100%;
    height: 102px;
    min-width: 200px;
    min-height: 102px;
    display: block;
    visibility: visible;
}
.level10-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.level10-downloadBtn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.95);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.level10-downloadBtn.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}
.level10-bubble-gray {
    display: flex;
    align-items: center;
    background: rgba(240,240,240,0.95);
    border-radius: 22px;
    padding: 16px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    position: relative;
    overflow: visible;
    margin-right: 30px;
    margin-left: auto;
    min-width: 350px;
    max-width: 900px;
    min-height: 80px;
    opacity: 0;
    animation: level10-popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2s forwards;
    transform-origin: center center;
    transform-style: preserve-3d;
}
.level10-bubble-gray::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 75%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 14px solid rgba(240,240,240,0.95);
    z-index: 1;
}
.level10-password-container {
    width: 100%;
    position: relative;
}
.level10-password-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #555;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: transparent;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}
.level10-password-input:focus {
    border-bottom-color: #222;
}
.level10-hint-text {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(240,240,240,0.95);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 10px rgba(240,240,240,0.5);
    z-index: 10000;
    background: rgba(11, 15, 20, 0.8);
    padding: 12px 40px;
    border-radius: 22px;
    pointer-events: none;
    user-select: none;
}
@keyframes level10-popIn {
    0% {
        transform: scale(0) translateX(-50px);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}
@keyframes level10-error-vibrate {
    0% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
    10% {
        transform: translateZ(-20px) translateX(-3px) translateY(2px) scale(0.95);
        opacity: 0.9;
    }
    20% {
        transform: translateZ(-40px) translateX(3px) translateY(-2px) scale(0.9);
        opacity: 0.8;
    }
    30% {
        transform: translateZ(-60px) translateX(-2px) translateY(3px) scale(0.85);
        opacity: 0.7;
    }
    40% {
        transform: translateZ(-80px) translateX(2px) translateY(-3px) scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: translateZ(-100px) translateX(-3px) translateY(2px) scale(0.75);
        opacity: 0.5;
    }
    60% {
        transform: translateZ(-120px) translateX(3px) translateY(-2px) scale(0.7);
        opacity: 0.4;
    }
    70% {
        transform: translateZ(-140px) translateX(-2px) translateY(3px) scale(0.6);
        opacity: 0.3;
    }
    80% {
        transform: translateZ(-160px) translateX(2px) translateY(-3px) scale(0.5);
        opacity: 0.2;
    }
    90% {
        transform: translateZ(-180px) translateX(-1px) translateY(1px) scale(0.3);
        opacity: 0.1;
    }
    100% {
        transform: translateZ(-200px) scale(0);
        opacity: 0;
    }
}
.level10-bubble-gray.explode {
    animation: level10-error-vibrate 0.6s ease-out forwards !important;
    transform-origin: 50% 50% !important;
    transform-style: preserve-3d;
}
.level10-bubble-gray.error-state::after {
    border-left-color: rgba(255, 180, 180, 0.95) !important;
}
.level10-bubble-gray.success-state::after {
    border-left-color: rgba(180, 255, 180, 0.95) !important;
}
.level10-bubble-gray.success-state,
.level10-bubble.success-state {
    animation: none !important;
    animation-name: none !important;
    animation-delay: 0s !important;
    animation-iteration-count: 0 !important;
    animation-play-state: paused !important;
    animation-fill-mode: none !important;
}
#level-ten-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.level9-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #211e1e;
    background-image:
        radial-gradient(ellipse 90% 85% at 50% 50%, transparent 40%, rgba(0,0,0,0.65) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.18) 0px,
            rgba(0,0,0,0.18) 3px,
            transparent     3px,
            transparent     6px
        );
    z-index: 1;
}
.level10-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(120,170,255,0.22), transparent 60%),
                radial-gradient(1000px 600px at 100% 20%, rgba(255,120,180,0.14), transparent 55%),
                #0b0f14;
    z-index: 2;
    opacity: 0;
}
.level10-stage {
    position: relative;
    width: 520px;
    height: 220px;
    display: grid;
    place-items: center;
    z-index: 3;
}
:root {
    --barW: 12px;
    --barGap: 14px;
    --baseHeight: 28px;
    --white: rgba(255,255,255,0.92);
}
.level10-seed {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 0 30px rgba(255,255,255,0.18);
    opacity: 0;
}
.level10-seed.appear {
    opacity: 1;
    transition: opacity 320ms ease;
}
.level10-seed.toBar {
    width: var(--barW);
    height: 150px;
    border-radius: 999px;
    transition: width 520ms cubic-bezier(.2,.9,.2,1),
                height 650ms cubic-bezier(.2,.9,.2,1),
                border-radius 520ms cubic-bezier(.2,.9,.2,1);
}
.level10-bars {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: var(--barGap);
    opacity: 0;
    pointer-events: none;
}

.level10-bars.show {
    opacity: 1;
    transition: opacity 240ms ease;
}
.level10-bar {
    width: var(--barW);
    height: calc(var(--baseHeight) * 2);
    background: var(--white);
    border-radius: 999px;
    transform-origin: center;
    box-shadow: 0 0 24px rgba(255,255,255,0.10);
    transform: scaleY(1);
    opacity: 0;
}
.level10-bar.slideIn {
    opacity: 1;
    animation: slideInBar 900ms cubic-bezier(.18,.9,.2,1) forwards;
}
@keyframes slideInBar {
    from { transform: translateX(0px) scaleY(1); }
    to { transform: translateX(var(--tx)) scaleY(1); }
}
#level-ten-container .audio-btn,
.audio-popup-backdrop.theme-10 .audio-popup {
    --ac-color: rgba(240, 240, 240, 0.95);
    --ac-bg: rgba(11, 15, 20, 0.85);
    --ac-border-w: 8px;
    --ac-border-style: solid;
    --ac-glow:
        0 0 20px rgba(120, 170, 255, 0.35),
        0 0 40px rgba(255, 120, 180, 0.2);
    --ac-font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --ac-symbols: '◇ ◆ ◇ ◆';
}