.lobby-nagia {
    position: absolute;
    z-index: 9;
    left: 36%;
    bottom: 20%;
    width: auto;
    height: 29%;
    aspect-ratio: 1188 / 2048;
    padding: 0;
    overflow: visible;
    color: #efe8d7;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 15px 24px rgba(0, 0, 0, 0.72));
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

body.is-loading .lobby-nagia {
    opacity: 0;
    pointer-events: none;
}

.lobby-scene[data-map-current="boundary"] .lobby-nagia {
    display: none;
}

.lobby-nagia:hover,
.lobby-nagia:focus-visible {
    filter: drop-shadow(0 15px 24px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 18px rgba(167, 106, 205, 0.42));
}

.lobby-nagia img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    scale: -1 1;
    filter: saturate(0.72) contrast(1.05);
    animation: iris-breathe 5.4s ease-in-out infinite;
}

.lobby-nagia-speech {
    position: absolute;
    z-index: 2;
    left: 64%;
    bottom: 88%;
    padding: 13px 17px;
    color: #251d29;
    font-size: clamp(0.72rem, 0.8vw, 0.86rem);
    line-height: 1.6;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: rgba(249, 246, 241, 0.97);
    border: 1px solid rgba(173, 136, 190, 0.68);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), 0 0 18px rgba(167, 106, 205, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px) scale(0.96);
    transform-origin: 55% 100%;
    transition:
        opacity 0.38s ease,
        transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.lobby-nagia-speech::after {
    content: "";
    position: absolute;
    top: calc(100% - 7px);
    left: 52%;
    width: 14px;
    height: 14px;
    background: rgba(249, 246, 241, 0.97);
    border-right: 1px solid rgba(173, 136, 190, 0.68);
    border-bottom: 1px solid rgba(173, 136, 190, 0.68);
    transform: translateX(-50%) rotate(45deg);
}

.lobby-nagia:hover .lobby-nagia-speech,
.lobby-nagia:focus-visible .lobby-nagia-speech {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.cheki-reservation-modal {
    position: fixed;
    z-index: 40;
    inset: var(--header-height) 0 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 5, 7, 0.86);
    backdrop-filter: blur(7px);
}

.cheki-reservation-modal[hidden] {
    display: none;
}

.cheki-reservation-panel {
    position: relative;
    width: min(1050px, 94vw);
    height: min(820px, calc(100dvh - var(--header-height) - 48px));
    overflow: hidden;
    background: linear-gradient(145deg, rgba(8, 25, 29, 0.99), rgba(11, 9, 22, 0.99));
    border: 1px solid rgba(213, 189, 130, 0.7);
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.82), 0 0 48px rgba(132, 76, 166, 0.16);
}

.cheki-reservation-panel::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(213, 189, 130, 0.16);
}

.cheki-reservation-header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    padding: 18px 26px 15px 34px;
    background: rgba(4, 15, 18, 0.96);
    border-bottom: 1px solid rgba(213, 189, 130, 0.28);
}

.cheki-reservation-header p,
.cheki-reservation-header h2 {
    margin: 0;
}

.cheki-reservation-header p {
    color: #d5bd82;
    font-size: 0.66rem;
    letter-spacing: 0.24em;
}

.cheki-reservation-header h2 {
    margin-top: 2px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.12em;
}

.cheki-reservation-header button {
    position: relative;
    z-index: 4;
    width: 48px;
    height: 48px;
    color: #efe8d7;
    font-size: 1.4rem;
    border: 1px solid rgba(213, 189, 130, 0.58);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.cheki-reservation-header button:hover,
.cheki-reservation-header button:focus-visible {
    color: #f5e9ff;
    border-color: #a779ca;
    background: rgba(87, 45, 110, 0.5);
}

.cheki-reservation-message {
    position: absolute;
    z-index: 4;
    top: 92px;
    right: 0;
    left: 0;
    min-height: 46px;
    margin: 0;
    padding: 12px 32px;
    color: rgba(239, 232, 215, 0.76);
    font-size: 0.8rem;
    line-height: 1.7;
    background: rgba(10, 25, 29, 0.96);
    border-bottom: 1px solid rgba(213, 189, 130, 0.14);
}

.cheki-reservation-modal iframe {
    position: absolute;
    inset: 138px 0 0;
    width: 100%;
    height: calc(100% - 138px);
    border: 0;
    background: #07191d;
}

@media (max-width: 900px) {
    .lobby-nagia {
        left: 36%;
        width: auto;
        height: 30%;
        aspect-ratio: 1188 / 2048;
    }

    .lobby-nagia-speech {
        display: none;
    }

    .cheki-reservation-modal {
        padding: 0;
    }

    .cheki-reservation-panel {
        width: 100%;
        height: 100%;
        border: 0;
    }

    .cheki-reservation-header {
        height: 76px;
        padding: 13px 14px 11px 20px;
    }

    .cheki-reservation-header button {
        width: 46px;
        height: 46px;
    }

    .cheki-reservation-message {
        top: 76px;
        min-height: 58px;
        padding: 10px 20px;
        font-size: 0.72rem;
    }

    .cheki-reservation-modal iframe {
        inset: 134px 0 0;
        height: calc(100% - 134px);
    }
}
