* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gaegu', cursive;
    background: #FFFFFF;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 데스크탑에서 모바일 뷰 시뮬레이션 */
@media (min-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f0f0f0;
    }

    .screen {
        max-width: 480px;
        max-height: 100vh;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    }
}

/* 화면 전환 */
.screen {
    display: none;
    width: 100%;
    height: 100vh;
    background: #FFFFFF;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* 컨테이너 */
.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
}

/* 타이틀 */
.title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

/* 제작자 정보 */
.creator-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

/* 버튼 */
.btn-primary {
    font-family: 'Gaegu', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 15px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    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);
}

/* 공유 버튼 */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-share {
    font-family: 'Gaegu', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 40px;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-share-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-share:hover {
    transform: translateY(-2px);
}

.btn-share:active {
    transform: translateY(0);
}

/* 게임 헤더 */
.game-header {
    padding: 20px;
    background: white;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.question-counter {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    font-weight: 700;
}

/* 질문 영역 */
.question-container {
    padding: 30px 20px;
    text-align: center;
    background: white;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
}

/* 선택지 영역 */
.choices-container {
    display: flex;
    flex: 1;
    width: 100%;
}

.choice {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.choice-left {
    background: #E3F2FD;
}

.choice-right {
    background: #FCE4EC;
}

.choice:hover {
    filter: brightness(0.95);
}

.choice.selected {
    transform: scale(1.05);
    z-index: 10;
}

.choice.disabled {
    pointer-events: none;
}

.choice-content {
    text-align: center;
    padding: 20px;
}

.option-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* 결과 표시 */
.result-display {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.result-display.show {
    opacity: 1;
}

.result-display.minority {
    color: #42A5F5;
}

.result-display.majority {
    color: #EF5350;
}

/* 메시지 오버레이 */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1000;
}

.message-text {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.message-text.show {
    opacity: 1;
    transform: scale(1);
}

/* 별 애니메이션 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: starFloat 1.5s ease-out forwards;
}

@keyframes starFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* 시작 화면 */
#startScreen .container {
    justify-content: center;
}

/* 결과 화면 */
#resultScreen .container {
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.score-container {
    text-align: center;
    margin-bottom: 40px;
}

.final-score {
    font-size: 5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.result-message {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* 모바일 최적화 */
@media (max-width: 767px) {
    .title {
        font-size: 2.5rem;
    }

    .question-text {
        font-size: 1.3rem;
    }

    .option-text {
        font-size: 1.5rem;
    }

    .message-text {
        font-size: 2.5rem;
    }

    .final-score {
        font-size: 4rem;
    }
}