@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');

/* 장면 뷰어(scene.html) 전용 — 분기 비주얼노벨의 내용물 스타일.
   페이지 골격(body/#app/#controls/.stage/.scene-video)은 page.css에 있다. */

/* 씬 스크러버(체크포인트 이동) — 이 페이지에만 있는 컨트롤 */
input[type=range] {
    width: 100%;
    cursor: pointer;
}

/* Layer Management */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layer.background {
    z-index: 0;
}

.layer.content {
    z-index: 10;
}

.layer.ui {
    z-index: 20;
}

img.fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dialogue Box - Structure & Positioning */
.dialogue-box {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    pointer-events: none;
    white-space: pre-wrap;
    z-index: 100;
}

.dialogue-box.full-area {
    top: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Vertical Positioning Modifiers */
.dialogue-box:not(.full-area).pos-bottom {
    bottom: 15%;
    top: auto;
}

.dialogue-box:not(.full-area).pos-top {
    top: 15%;
    bottom: auto;
}

.dialogue-box:not(.full-area).pos-center {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

/* Full-area alignment overrides */
.dialogue-box.full-area.pos-top {
    justify-content: flex-start;
    padding-top: 15%;
}

.dialogue-box.full-area.pos-center {
    justify-content: center;
}

.dialogue-box.full-area.pos-bottom {
    justify-content: flex-end;
    padding-bottom: 15%;
}

/* Choice UI - structure only, visual styling per story */
.choice-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 100;
    pointer-events: auto;
}

.subtitle-overlay {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'KoddiUDOnGothic', 'Noto Sans JP', sans-serif;
    color: rgba(255, 255, 255, 1);
    font-size: clamp(12px, 3.75cqw, 24px);
    line-height: 1.5;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 1), -1px -1px 0 rgba(0, 0, 0, 1),
                 1px -1px 0 rgba(0, 0, 0, 1), -1px 1px 0 rgba(0, 0, 0, 1);
    white-space: pre-line;
    padding: 0 40px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 50;
}

.choice-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
}

/* 동영상 플레이어(챕터 탭·재생 바·자막 박스)는 별도 페이지 ani.html로 분리됐다 —
   video_player.css 참고. */