/* エンディング用の演出スタイル */
.終了背景 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* 最背面 */
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#終了幕 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    z-index: 9999;
}

.終了箱 {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--金);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    backdrop-filter: blur(15px);
    z-index: 100;
    /* 手前に配置 */
}

.スタッフロール容器 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 50;
    /* 背景(1)より上で、リザルト箱(100)より下 */
}

.スタッフロール内容 {
    position: absolute;
    width: 100%;
    top: 100%;
    text-align: center;
}

.スタッフ行 {
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.スタッフ行.役職 {
    font-size: 1.2rem;
    color: var(--金);
    opacity: 0.8;
}

.スタッフ行.氏名 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-300%);
    }
}

/* 特典ダイアログのアニメーション */
@keyframes popIn {
    0% {
        transform: translate(-50%, -40%);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}