body {
    margin: 0;
    background-color: #1a1a2e; /* 預設背景色 */
    font-family: 'Microsoft JhengHei', sans-serif;
    overflow: hidden;
}

/* --- 背景樣式 --- */
#background-media-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#background-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 前景內容樣式 --- */
#confirmation-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    height: 100vh;
    color: white;
    transition: opacity 1s ease-in-out;
}

#danmaku-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

#confirmation-container h1 {
    font-size: 5vw;
    color: #ffd700;
    margin-top: 4vh;
    margin-bottom: 2vh;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
#confirmation-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 2vw;
    padding: 2vw;
    width: 90%;
    height: 80vh;
    overflow-y: auto; /* 恢復為自動滑塊 */
}
.user-card { display: flex; flex-direction: column; align-items: center; background-color: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 1vw; width: 10vw; box-sizing: border-box; animation: pop-in 0.5s ease; }
.user-card img { width: 8vw; height: 8vw; border-radius: 50%; border: 3px solid #fff; }
.user-card span { margin-top: 10px; font-size: 1.2vw; font-weight: bold; color: #fff; text-align: center; }
@keyframes pop-in { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.danmaku-item { position: absolute; display: flex; align-items: center; background-color: rgba(0, 0, 0, 0.5); color: #ffffff; padding: 0.8vw 1.6vw; border-radius: 50px; white-space: nowrap; font-size: 3vw; will-change: transform; animation: scroll-right-to-left 15s linear; }
.danmaku-item img { width: 4.5vw; height: 4.5vw; border-radius: 50%; margin-right: 1.5vw; border: 2px solid #e94560; }
@keyframes scroll-right-to-left { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
