* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
}


.content-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    padding-bottom: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.dialogue-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.dialogue-box p {
    margin-bottom: 15px;
    font-size: 1.2em;
    line-height: 1.6;
}

.dialogue-box p:last-child {
    margin-bottom: 0;
}

.character-dialogue {
    font-weight: bold;
    color: #fff;
}

.effect-text {
    color: #ffeb3b;
    font-style: italic;
}

.button-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Game Start 페이지 */
.input-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    max-width: 600px;
    width: 100%;
}

.input-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
}

.input-section input {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.lumi-selection {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    max-width: 600px;
    width: 100%;
}

.lumi-selection p {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

.lumi-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lumi-btn {
    padding: 15px;
    font-size: 1em;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lumi-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.lumi-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
}

/* 게임 UI */
.game-ui {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.status-bar {
    display: flex;
    gap: 20px;
    color: white;
    font-size: 1em;
    font-weight: bold;
}

.status-bar span {
    white-space: nowrap;
}

/* 퀴즈 컨테이너 */
.quiz-container {
    max-width: 900px;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.question-box {
    margin-bottom: 30px;
}

.question-box h2 {
    color: white;
    font-size: 1.5em;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 20px;
    font-size: 1.1em;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 60px;
}

.option-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.option-btn:active {
    transform: translateY(0);
}

.option-btn.correct {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #fff;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    border-color: #fff;
}

.option-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback.correct {
    background: rgba(56, 239, 125, 0.3);
    color: #38ef7d;
}

.feedback.incorrect {
    background: rgba(235, 51, 73, 0.3);
    color: #f45c43;
}

.result-container {
    max-width: 800px;
    width: 100%;
}

/* 구름다리 특수 효과 */
.bridge-page .options-container {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 이유 선택 섹션 */
#reasonSection {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 235, 59, 0.1);
    border: 2px solid #ffeb3b;
    border-radius: 10px;
}

.reason-label {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffeb3b;
    text-align: center;
}

.reason-options {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.reason-btn {
    background: rgba(255, 235, 59, 0.2);
    border: 2px solid #ffeb3b;
    color: white;
    padding: 20px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 60px;
}

.reason-btn:hover {
    background: rgba(255, 235, 59, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
}

.reason-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Ending 페이지 */
.ending-container {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
}

.ending-note {
    font-style: italic;
    color: #ffeb3b;
    margin-top: 20px;
}

.credits {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.credits h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.credits p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* 비디오 컨테이너 */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .content-container {
        padding: 10px;
    }
    
    .dialogue-box {
        padding: 20px;
    }
    
    .dialogue-box p {
        font-size: 1em;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .lumi-buttons {
        grid-template-columns: 1fr;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 10px;
        font-size: 0.9em;
    }
    
    .game-ui {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .question-box h2 {
        font-size: 1.2em;
    }
    
    .option-btn {
        padding: 15px;
        font-size: 1em;
    }
}
