#level-eleven-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../src/background/yiking.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    opacity: 0;
    z-index: 1000;
    overflow: hidden;
    transition: opacity 0.5s ease;
}
.level11-level-box {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    border: 8px solid rgba(75, 62, 20, 0.9);
    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: 1001;
}
.level11-level-text {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 2em;
    color: rgba(75, 62, 20, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    margin: 0;
    line-height: 1;
}
.level11-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 150px;
    margin-bottom: 40px;
    position: relative;
    z-index: 100;
    will-change: transform;
}
.level11-bottom-container {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.level11-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.level11-hexagram-slot {
    width: 105px;
    height: 130px;
    border: 4px solid rgba(139, 101, 8, 0.4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(250, 240, 230, 0.3);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.15);
}
.level11-hexagram-slot:hover {
    border-color: rgba(184, 134, 11, 0.6);
    background: rgba(250, 240, 230, 0.5);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(184, 134, 11, 0.3);
}
.level11-target-slot {
    border: 4px dashed rgba(139, 101, 8, 0.5);
    background: rgba(250, 240, 230, 0.15);
}
.level11-target-slot.level11-drag-over {
    border-color: rgba(184, 134, 11, 0.8);
    background: rgba(250, 240, 230, 0.4);
    transform: scale(1.1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(184, 134, 11, 0.4);
}
.level11-draggable {
    cursor: grab;
}
.level11-draggable:active {
    cursor: grabbing;
}
.level11-hexagram-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.7;
    mix-blend-mode: multiply;
    position: relative;
    z-index: 1;
    filter: 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
        sepia(0.3)
        saturate(1.2)
        brightness(0.9)
        contrast(1.1);
}
.level11-hexagram-slot {
    position: relative;
}
.level11-hexagram-slot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: 
        linear-gradient(135deg, 
            rgba(255, 215, 0, 0.5) 0%, 
            rgba(218, 165, 32, 0.6) 20%,
            rgba(184, 134, 11, 0.7) 40%,
            rgba(139, 101, 8, 0.75) 50%,
            rgba(184, 134, 11, 0.7) 60%,
            rgba(218, 165, 32, 0.6) 80%,
            rgba(255, 215, 0, 0.5) 100%
        ),
        radial-gradient(ellipse at 30% 30%, 
            rgba(255, 215, 0, 0.4) 0%, 
            rgba(218, 165, 32, 0.3) 25%,
            rgba(184, 134, 11, 0.2) 50%,
            transparent 70%
        ),
        radial-gradient(ellipse at 70% 70%, 
            rgba(139, 101, 8, 0.4) 0%, 
            rgba(101, 67, 33, 0.3) 30%,
            rgba(139, 101, 8, 0.2) 50%,
            transparent 70%
        );
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 2;
    mask-image: var(--hexagram-mask, none);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-mode: alpha;
    -webkit-mask-image: var(--hexagram-mask, none);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-mode: alpha;
    opacity: 0;
}
.level11-hexagram-slot[style*="--hexagram-mask"]::before {
    opacity: 1;
}
.level11-validate-btn {
    position: relative;
    margin: 0 auto 20px auto;
    padding: 15px 40px;
    background: rgba(250, 240, 230, 0.4);
    border: 4px solid rgba(139, 101, 8, 0.6);
    color: rgba(139, 101, 8, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: block;
    width: fit-content;
    will-change: transform;
}

.level11-validate-btn:hover {
    background: rgba(250, 240, 230, 0.6);
    border-color: rgba(184, 134, 11, 0.8);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.level11-validate-btn:active {
    transform: scale(0.95);
}

.level11-hint-zone {
    position: relative;
    margin: 35px auto 55px auto;
    min-height: 30px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    color: rgba(139, 101, 8, 0.8);
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    z-index: 200;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.level11-hint-zone.visible {
    opacity: 1;
}
@keyframes level11-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}
.level11-shake {
    animation: level11-shake 0.5s ease-in-out;
}
.level11-password-container {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}
.level11-password-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(139, 101, 8, 0.5);
    color: rgba(139, 101, 8, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 5px 0;
    outline: none;
    transition: border-color 0.3s ease;
}
.level11-password-input:focus {
    border-bottom-color: rgba(184, 134, 11, 0.8);
}
.level11-password-input::placeholder {
    color: rgba(139, 101, 8, 0.4);
}
.level11-password-input.level11-readonly {
    color: rgba(139, 101, 8, 0.6);
    cursor: not-allowed;
    border-bottom-color: rgba(139, 101, 8, 0.3);
}
@media (max-width: 1200px) {
    .level11-hexagram-slot {
        width: 90px;
        height: 112px;
    }
    
    .level11-top-row {
        gap: 18px;
    }
    
    .level11-bottom-row {
        gap: 12px;
    }
}
@media (max-width: 900px) {
    .level11-hexagram-slot {
        width: 75px;
        height: 93px;
    }

    .level11-top-row {
        gap: 12px;
        margin-top: 120px;
    }

    .level11-bottom-row {
        gap: 8px;
    }
}
@media (max-width: 768px) {
    .level11-hexagram-slot {
        width: 65px;
        height: 80px;
    }   
    .level11-top-row {
        gap: 10px;
        margin-top: 100px;
    }
    .level11-bottom-row {
        gap: 7px;
    }
    .level11-validate-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    .level11-hint-zone {
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .level11-hexagram-slot {
        width: 52px;
        height: 65px;
    }

    .level11-top-row {
        gap: 8px;
        margin-top: 90px;
    }

    .level11-bottom-row {
        gap: 5px;
    }

    .level11-hint-zone {
        font-size: 17px;
    }
}
#level-eleven-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../src/background/yiking.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease;
}
#level-eleven-loading.visible {
    opacity: 1;
}
.level11-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 90%;
}
.level11-loading-hex-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 0;
    row-gap: 0;
}
.level11-loading-hexagram {
    width: 72px;
    height: 72px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    position: relative;
}
.level11-loading-hexagram.visible {
    opacity: 1;
    transform: translateY(0);
}
.level11-loading-hexagram {
    position: relative;
}
.level11-loading-hexagram img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    mix-blend-mode: multiply;
    position: relative;
    z-index: 1;
    filter: 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
        sepia(0.3)
        saturate(1.2)
        brightness(0.9)
        contrast(1.1);
}
.level11-loading-hexagram[data-hexagram="14"]::before {
    mask-image: url('../src/img/yk/yk14.webp');
    -webkit-mask-image: url('../src/img/yk/yk14.webp');
}
.level11-loading-hexagram[data-hexagram="9"]::before {
    mask-image: url('../src/img/yk/yk9.webp');
    -webkit-mask-image: url('../src/img/yk/yk9.webp');
}
.level11-loading-hexagram[data-hexagram="22"]::before {
    mask-image: url('../src/img/yk/yk22.webp');
    -webkit-mask-image: url('../src/img/yk/yk22.webp');
}
.level11-loading-hexagram[data-hexagram="5"]::before {
    mask-image: url('../src/img/yk/yk5.webp');
    -webkit-mask-image: url('../src/img/yk/yk5.webp');
}
.level11-loading-hexagram[data-hexagram="1"]::before {
    mask-image: url('../src/img/yk/yk1.webp');
    -webkit-mask-image: url('../src/img/yk/yk1.webp');
}
.level11-loading-hexagram[data-hexagram="21"]::before {
    mask-image: url('../src/img/yk/yk21.webp');
    -webkit-mask-image: url('../src/img/yk/yk21.webp');
}
.level11-loading-hexagram[data-hexagram="11"]::before {
    mask-image: url('../src/img/yk/yk11.webp');
    -webkit-mask-image: url('../src/img/yk/yk11.webp');
}
.level11-loading-hexagram::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 3px
        );
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.3;
    z-index: 3;
}
.level11-loading-hexagram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(255, 215, 0, 0.5) 0%, 
            rgba(218, 165, 32, 0.6) 20%,
            rgba(184, 134, 11, 0.7) 40%,
            rgba(139, 101, 8, 0.75) 50%,
            rgba(184, 134, 11, 0.7) 60%,
            rgba(218, 165, 32, 0.6) 80%,
            rgba(255, 215, 0, 0.5) 100%
        ),
        radial-gradient(ellipse at 30% 30%, 
            rgba(255, 215, 0, 0.4) 0%, 
            rgba(218, 165, 32, 0.3) 25%,
            rgba(184, 134, 11, 0.2) 50%,
            transparent 70%
        ),
        radial-gradient(ellipse at 70% 70%, 
            rgba(139, 101, 8, 0.4) 0%, 
            rgba(101, 67, 33, 0.3) 30%,
            rgba(139, 101, 8, 0.2) 50%,
            transparent 70%
        );
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 2;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-mode: alpha;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-mode: alpha;
}
.level11-loading-space {
    width: 36px;
    flex-shrink: 0;
    height: 72px;
    margin-left: 0;
}
.level11-loading-container > .level11-loading-hexagram {
    margin-left: 10px;
}
#level-eleven-container .audio-btn,
.audio-popup-backdrop.theme-11 .audio-popup {
    --ac-color: rgba(75, 62, 20, 0.95);
    --ac-bg: rgba(240, 228, 200, 0.92);
    --ac-border-w: 8px;
    --ac-border-style: solid;
    --ac-glow: 0 0 15px rgba(0, 0, 0, 0.2);
    --ac-font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --ac-symbols: '☰ ☷ ☲ ☵';
}