/* 기본 설정 (아이패드 터치 최적화) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background: linear-gradient(135deg, #D2691E 0%, #CD853F 25%, #DEB887 50%, #F4A460 75%, #D2691E 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* 가을 배경 효과 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* 화면 전환 */
.screen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 헤더 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    position: relative;
}

.landing-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 25px;
    padding: 30px 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* 랜딩페이지 섹션 */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-card {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.welcome-card h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 20px;
    font-weight: bold;
}

.welcome-card p {
    font-size: 1.2rem;
    color: #654321;
    line-height: 1.8;
    font-weight: 500;
}

.games-section {
    margin-bottom: 40px;
}

.games-section h3 {
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.game-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.game-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.game-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.game-card h4 {
    font-size: 1.4rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.game-card p {
    font-size: 1rem;
    color: #654321;
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-status {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.game-card.coming-soon .game-status {
    background: linear-gradient(135deg, #9E9E9E, #757575);
}

.benefits-section {
    margin-bottom: 40px;
}

.benefits-section h3 {
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.benefit-item {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.benefit-item h4 {
    font-size: 1.2rem;
    color: #8B4513;
    margin-bottom: 10px;
    font-weight: bold;
}

.benefit-item p {
    font-size: 0.95rem;
    color: #654321;
    line-height: 1.5;
}

.footer-info {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.footer-info p {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 키오스크 훈련 섹션 */
.kiosk-training-section {
    margin-bottom: 40px;
}

.kiosk-training-section h3 {
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.kiosk-training-card {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.kiosk-training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.kiosk-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.kiosk-training-card h4 {
    font-size: 1.6rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.kiosk-training-card p {
    font-size: 1.2rem;
    color: #654321;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-kiosk {
    background: linear-gradient(135deg, #6fa8dc, #4a90e2);
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-height: 60px;
    min-width: 200px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
}

.btn-kiosk:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #4a90e2, #357abd);
    text-decoration: none;
    color: white;
}

.btn-kiosk:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* 게임 정보 카드 */
.game-info {
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.info-card h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.feature {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 1rem;
    color: #4a5568;
    text-align: center;
    font-weight: 600;
}

/* 버튼 스타일 */
.btn {
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-height: 60px;
    min-width: 150px;
    touch-action: manipulation;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    /* 아이패드 터치 최적화 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 10;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #CD853F, #DEB887);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #D2691E, #CD853F);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #CD853F, #DEB887);
}

.btn-secondary {
    background: linear-gradient(135deg, #8B4513, #A0522D);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
}

.btn-check {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    padding: 15px 30px;
    font-size: 1.1rem;
    min-height: 50px;
}

.btn-add {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    padding: 15px 25px;
    font-size: 1.1rem;
    min-height: 50px;
}

.btn-back {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    padding: 10px 20px;
    font-size: 1rem;
    min-height: 45px;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: auto;
    padding-bottom: 20px;
}

/* 게임 헤더 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.9);
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.progress-info, .score-info {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a5568;
}

/* 게임 콘텐츠 */
.game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.question-card h2 {
    font-size: 2.2rem;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.4;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.answer-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* 객관식 선택지 스타일 */
.answer-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.answer-option {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid #dee2e6;
    border-radius: 20px;
    padding: 25px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.answer-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
}

.answer-option:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.answer-option.selected {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.answer-option.correct {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    border-color: #28a745;
    animation: correctPulse 0.6s ease-in-out;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.answer-option.wrong {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
    border-color: #dc3545;
    animation: wrongShake 0.6s ease-in-out;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.answer-option.hint-highlight {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #424242;
    border-color: #9e9e9e;
    border-width: 4px;
    font-weight: 600;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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


/* 피드백 */
.feedback {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 25px;
    border-radius: 20px;
    margin: 20px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.feedback.correct {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(69, 160, 73, 0.9));
    color: #ffffff;
    border: 3px solid #4CAF50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: correctPulse 0.6s ease-in-out;
}

.feedback.wrong {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(198, 40, 40, 0.9));
    color: #ffffff;
    border: 3px solid #f44336;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: wrongShake 0.6s ease-in-out;
}


/* 게임 컨트롤 */
.game-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

/* 결과 화면 */
.result-content {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.score-display h2 {
    font-size: 1.8rem;
    color: #4a5568;
    margin-bottom: 20px;
}

.score-number {
    font-size: 4rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 20px;
}

.score-message {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.result-details {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.2rem;
    color: #4a5568;
}

.detail-item span:first-child {
    font-weight: bold;
}

.detail-item span:last-child {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
}

/* 데이터 관리 */
.data-manager {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.add-proverb-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.add-proverb-section h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

#newProverb {
    flex: 1;
    padding: 20px;
    font-size: 1.2rem;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    transition: all 0.3s ease;
}

#newProverb:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.proverb-list-section h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: center;
}

.proverb-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
}

.proverb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.proverb-item:last-child {
    margin-bottom: 0;
}

.proverb-text {
    font-size: 1.1rem;
    color: #4a5568;
    flex: 1;
}

.delete-btn {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

/* 태블릿 최적화 */
@media (min-width: 768px) and (max-width: 1024px) {
    .answer-options {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        max-width: 900px;
    }
    
    .answer-option {
        font-size: 1.6rem;
        padding: 30px 25px;
        min-height: 100px;
    }
    
    .question-card h2 {
        font-size: 2.5rem;
        min-height: 120px;
    }
    
    .btn {
        font-size: 1.5rem;
        padding: 25px 50px;
        min-height: 80px;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .btn {
        font-size: 1.1rem;
        padding: 15px 30px;
        min-width: 120px;
        min-height: 50px;
    }
    
    /* 터치 영역 최적화 */
    .game-card {
        min-height: 120px;
        padding: 20px;
    }
    
    .answer-option {
        min-height: 60px;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .number-btn {
        min-height: 60px;
        min-width: 60px;
        font-size: 1.2rem;
    }
    
    .question-card {
        padding: 30px 20px;
    }
    
    .question-card h2 {
        font-size: 1.5rem;
        min-height: 80px;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .answer-option {
        font-size: 1.2rem;
        padding: 20px 15px;
        min-height: 70px;
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    .result-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .proverb-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 12px 25px;
        min-width: 100px;
        min-height: 45px;
    }
    
    /* 소형 모바일 터치 최적화 */
    .game-card {
        min-height: 100px;
        padding: 15px;
    }
    
    .answer-option {
        min-height: 55px;
        padding: 12px;
        font-size: 1rem;
    }
    
    .number-btn {
        min-height: 55px;
        min-width: 55px;
        font-size: 1.1rem;
    }
    
    .question-card h2 {
        font-size: 1.3rem;
    }
    
    .score-number {
        font-size: 3rem;
    }
}

/* Stroop 게임 스타일 */
.stroop-game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.stroop-mode-select {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.stroop-difficulty-area,
.stroop-mode-buttons {
    margin-bottom: 30px;
}

.stroop-difficulty-area h3,
.stroop-mode-buttons h3 {
    font-size: 1.5rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.difficulty-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-difficulty {
    padding: 15px 25px;
    font-size: 1.2rem;
    border-radius: 15px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.btn-difficulty.easy {
    background: linear-gradient(135deg, #ffd966, #f4a460);
    color: #b45f06;
}

.btn-difficulty.normal {
    background: linear-gradient(135deg, #6fa8dc, #4a90e2);
    color: white;
}

.btn-difficulty.hard {
    background: linear-gradient(135deg, #e06666, #d32f2f);
    color: white;
}

.btn-difficulty.active {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.stroop-mode-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.btn-mode {
    padding: 20px 15px;
    font-size: 1.1rem;
    border-radius: 15px;
    min-height: 60px;
    transition: all 0.3s ease;
}

.btn-mode.kor {
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
}

.btn-mode.eng {
    background: linear-gradient(135deg, #6fa8dc, #4a90e2);
    color: white;
}

.btn-mode.shape {
    background: linear-gradient(135deg, #93c47d, #7cb342);
    color: white;
}

.btn-mode.baby {
    background: linear-gradient(135deg, #ffd966, #f4a460);
    color: #b45f06;
}

.stroop-start-screen {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.stroop-selected-mode h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.stroop-selected-mode p {
    font-size: 1.2rem;
    color: #654321;
    margin-bottom: 30px;
}

.stroop-start-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stroop-game-area {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.stroop-timer-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(210, 105, 30, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(210, 105, 30, 0.3);
}

.timer-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

#stroopTimer {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8B4513;
    min-width: 60px;
    text-align: center;
}

.timer-unit {
    font-size: 1.2rem;
    color: #654321;
    margin-left: 5px;
}

.stroop-question-area {
    position: relative;
    margin-bottom: 30px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stroop-question {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stroop-judge-mark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
}

.stroop-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stroop-choice-btn {
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stroop-choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stroop-choice-btn:active {
    transform: scale(0.95);
}

.stroop-result {
    font-size: 1.4rem;
    margin: 20px 0;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

/* Stroop 게임 색상 매핑 */
.stroop-color-red { background: linear-gradient(135deg, #e06666, #d32f2f); color: white; }
.stroop-color-blue { background: linear-gradient(135deg, #6fa8dc, #4a90e2); color: white; }
.stroop-color-green { background: linear-gradient(135deg, #93c47d, #7cb342); color: white; }
.stroop-color-yellow { background: linear-gradient(135deg, #ffd966, #f4a460); color: #b45f06; }

/* 메모리 게임 스타일 */
.memory-game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.memory-mode-select {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.memory-difficulty-area,
.memory-mode-buttons {
    margin-bottom: 30px;
}

.memory-difficulty-area h3,
.memory-mode-buttons h3 {
    font-size: 1.5rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.memory-difficulty-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.memory-start-screen {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.memory-selected-mode h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.memory-selected-mode p {
    font-size: 1.2rem;
    color: #654321;
    margin-bottom: 30px;
}

.memory-start-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.memory-game-area {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.memory-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(210, 105, 30, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(210, 105, 30, 0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.memory-timer-area,
.memory-score-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.memory-timer-area .timer-icon,
.memory-score-area .score-icon {
    font-size: 1.5rem;
}

#memoryTimer,
#memoryScore {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8B4513;
    min-width: 40px;
    text-align: center;
}

.timer-unit,
.score-unit {
    font-size: 1.2rem;
    color: #654321;
}

.memory-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 175, 80, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

#memoryCurrentPlayer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
}

.player-turn {
    font-size: 1rem;
    color: #666;
}

.memory-game-board {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(210, 105, 30, 0.2);
}

.memory-card {
    width: 70px;
    height: 100px;
    background: linear-gradient(135deg, #DC143C, #B22222);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid rgba(255,255,255,0.3);
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    position: relative;
    overflow: hidden;
    /* 아이패드 터치 최적화 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 10;
}

.memory-card::before {
    content: '';
}

.memory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.memory-card.flipped {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #F5F5DC, #DEB887);
    color: #8B4513;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.memory-card.flipped::before {
    content: '';
}

.memory-card.matched {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: memoryMatch 0.6s ease-in-out;
    border: 3px solid #4CAF50;
    background: linear-gradient(135deg, #90EE90, #98FB98);
    color: #2E8B57;
}

.memory-card.matched::before {
    content: '✓';
    color: #2E8B57;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.memory-card.wrong {
    animation: memoryWrong 0.6s ease-in-out;
    border: 3px solid #e06666;
    background: linear-gradient(135deg, #FFB6C1, #FFA0A0);
    color: #DC143C;
}

.memory-card.wrong::before {
    content: '✗';
    color: #DC143C;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes memoryMatch {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

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

.memory-result {
    font-size: 1.4rem;
    margin: 20px 0;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #8B4513;
}

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

/* 숫자 게임 스타일 */
.number-game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.number-mode-select {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.number-difficulty-area,
.number-mode-buttons {
    margin-bottom: 30px;
}

.number-difficulty-area h3,
.number-mode-buttons h3 {
    font-size: 1.5rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.number-difficulty-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.number-start-screen {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.number-selected-mode h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.number-selected-mode p {
    font-size: 1.2rem;
    color: #654321;
    margin-bottom: 30px;
}

.number-start-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.number-game-area {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.number-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(210, 105, 30, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(210, 105, 30, 0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.number-round-info,
.number-score-area,
.number-difficulty-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#numberRound,
#numberScore {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8B4513;
    min-width: 40px;
    text-align: center;
}

.round-unit,
.score-unit {
    font-size: 1.2rem;
    color: #654321;
}

#numberDifficultyText {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.number-display-area {
    text-align: center;
    margin-bottom: 30px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.number-display {
    font-size: 4rem;
    font-weight: bold;
    color: #8B4513;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid rgba(210, 105, 30, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2em;
}

.number-countdown {
    font-size: 2rem;
    font-weight: bold;
    color: #e06666;
    margin-top: 20px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-input-area {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(210, 105, 30, 0.2);
    margin-bottom: 30px;
}

.number-input-instruction {
    text-align: center;
    margin-bottom: 20px;
}

.number-input-instruction p {
    font-size: 1.2rem;
    color: #8B4513;
    font-weight: bold;
}

.number-input-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.number-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid rgba(255,255,255,0.3);
}

.number-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.number-btn:active {
    transform: scale(0.95);
}

.number-input-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.number-result {
    font-size: 1.4rem;
    margin: 20px 0;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #8B4513;
}

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

/* 숫자 게임 색상 피드백 */
.number-correct {
    color: #4CAF50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
    border-color: #4CAF50 !important;
}

.number-wrong {
    color: #e06666 !important;
    background: rgba(224, 102, 102, 0.1) !important;
    border-color: #e06666 !important;
}

/* 가을 낙엽 찾기 게임 스타일 */
.attention-game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}


/* 빠른 반응 훈련 게임 스타일 */
.speed-game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.speed-mode-select {
    text-align: center;
    margin-bottom: 30px;
}

.speed-difficulty-area {
    margin-bottom: 30px;
}

.speed-difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.speed-mode-buttons {
    margin-bottom: 30px;
}

.speed-start-screen {
    text-align: center;
    padding: 40px 20px;
}

.speed-selected-mode {
    margin-bottom: 30px;
}

.speed-start-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.speed-game-area {
    text-align: center;
}

.speed-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.speed-round-info, .speed-score-area, .speed-reaction-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.speed-round-info span:first-child,
.speed-score-area span:first-child,
.speed-reaction-info span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: #8B4513;
}

.speed-target-area {
    text-align: center;
    margin-bottom: 30px;
}

.speed-target {
    width: 150px;
    height: 150px;
    font-size: 6rem;
    font-weight: bold;
    color: #8B4513;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 4px solid rgba(210, 105, 30, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    touch-action: manipulation;
}

.speed-target:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.speed-target.show {
    opacity: 1;
    transform: scale(1);
}

.speed-target.hide {
    opacity: 0.3;
    transform: scale(0.8);
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #666;
}

.speed-target.mouse {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    animation: mousePulse 0.5s ease-in-out infinite alternate;
}

.speed-target.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    animation: successPulse 0.6s ease-in-out;
}

.speed-target.fail {
    background: linear-gradient(135deg, #e06666, #d32f2f);
    color: white;
    animation: failShake 0.6s ease-in-out;
}

@keyframes mousePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

.speed-result {
    text-align: center;
    margin-bottom: 30px;
}

.speed-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.attention-mode-select {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.attention-difficulty-area,
.attention-mode-buttons {
    margin-bottom: 30px;
}

.attention-difficulty-area h3,
.attention-mode-buttons h3 {
    font-size: 1.5rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.attention-difficulty-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.attention-start-screen {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.attention-selected-mode h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.attention-selected-mode p {
    font-size: 1.2rem;
    color: #654321;
    margin-bottom: 30px;
}

.attention-start-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.attention-game-area {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.attention-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(210, 105, 30, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(210, 105, 30, 0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.attention-round-info,
.attention-score-area,
.attention-target-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#attentionRound,
#attentionScore {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8B4513;
    min-width: 40px;
    text-align: center;
}

#attentionTargetText {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.attention-target-area {
    text-align: center;
    margin-bottom: 30px;
}

.attention-target {
    font-size: 6rem;
    font-weight: bold;
    color: #8B4513;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 25px;
    border: 4px solid rgba(210, 105, 30, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 300px;
}

.attention-leaves-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    justify-items: center;
}

.attention-leaf-btn {
    width: 100px;
    height: 100px;
    font-size: 3.5rem;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 4px solid rgba(255,255,255,0.3);
    user-select: none;
    touch-action: manipulation;
}

.attention-leaf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.attention-leaf-btn:active {
    transform: scale(0.95);
}

.attention-leaf-btn.correct {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    animation: attentionCorrect 0.6s ease-in-out;
}

.attention-leaf-btn.wrong {
    background: linear-gradient(135deg, #e06666, #d32f2f);
    animation: attentionWrong 0.6s ease-in-out;
}

@keyframes attentionCorrect {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

@keyframes attentionWrong {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); }
}

.attention-result {
    font-size: 1.4rem;
    margin: 20px 0;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #8B4513;
}

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

/* 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 80px;
        font-size: 1.5rem;
        padding: 25px 50px;
        border-radius: 20px;
    }
    
    .game-card {
        min-height: 200px;
        padding: 40px 25px;
    }
    
    .game-card h4 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .game-card p {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    .benefit-item {
        min-height: 180px;
        padding: 30px 25px;
    }
    
    .benefit-item h4 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .benefit-item p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .answer-option {
        min-height: 100px;
        font-size: 1.5rem;
        padding: 30px 25px;
        border-radius: 25px;
    }
    
    .question-card h2 {
        font-size: 2.5rem;
        min-height: 120px;
    }
    
    .welcome-card h2 {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .welcome-card p {
        font-size: 1.4rem;
        line-height: 2;
    }
    
    header h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .games-section h3,
    .benefits-section h3 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .footer-info p {
        font-size: 1.3rem;
        padding: 10px 0;
    }
    
    /* 터치 피드백 강화 */
    .btn:active,
    .game-card:active,
    .answer-option:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 더 큰 터치 영역 */
    .game-icon {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .benefit-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    /* Stroop 게임 터치 최적화 */
    .stroop-choice-btn {
        min-height: 80px;
        font-size: 1.5rem;
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .stroop-question {
        font-size: 3rem;
        min-height: 120px;
    }
    
    .btn-difficulty {
        min-height: 70px;
        font-size: 1.4rem;
        padding: 20px 30px;
    }
    
    .btn-mode {
        min-height: 80px;
        font-size: 1.3rem;
        padding: 25px 20px;
    }
    
    .stroop-timer-area {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    #stroopTimer {
        font-size: 2.2rem;
    }
    
    .timer-icon {
        font-size: 2rem;
    }
    
    .stroop-selected-mode h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .stroop-selected-mode p {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }
    
    /* 메모리 게임 터치 최적화 */
    .memory-card {
        width: 90px;
        height: 130px;
        font-size: 1.3rem;
        border-radius: 15px;
    }
    
    .memory-card::before {
        content: '';
    }
    
    .memory-card.flipped {
        font-size: 1.3rem;
    }
    
    .memory-card.matched::before,
    .memory-card.wrong::before {
        font-size: 2.5rem;
    }
    
    .memory-game-info {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    #memoryTimer,
    #memoryScore {
        font-size: 2.2rem;
        min-width: 50px;
    }
    
    .timer-icon {
        font-size: 2rem;
    }
    
    .memory-selected-mode h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .memory-selected-mode p {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }
    
    .memory-difficulty-buttons {
        gap: 20px;
    }
    
    .btn-difficulty {
        min-height: 80px;
        font-size: 1.4rem;
        padding: 25px 30px;
    }
    
    .btn-mode {
        min-height: 80px;
        font-size: 1.3rem;
        padding: 25px 20px;
    }
    
    /* 숫자 게임 터치 최적화 */
    .number-btn {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        border-radius: 20px;
    }
    
    .number-display {
        font-size: 5rem;
        padding: 40px;
        min-height: 140px;
    }
    
    .number-countdown {
        font-size: 2.5rem;
        margin-top: 30px;
    }
    
    .number-selected-mode h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .number-selected-mode p {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }
    
    .number-difficulty-buttons {
        gap: 20px;
    }
    
    .btn-difficulty {
        min-height: 80px;
        font-size: 1.4rem;
        padding: 25px 30px;
    }
    
    .btn-mode {
        min-height: 80px;
        font-size: 1.3rem;
        padding: 25px 20px;
    }
    
    /* 키오스크 훈련 터치 최적화 */
    .btn-kiosk {
        min-height: 80px;
        font-size: 1.5rem;
        padding: 25px 50px;
        border-radius: 20px;
    }
    
    .kiosk-icon {
        font-size: 5rem;
        margin-bottom: 25px;
    }
    
    .kiosk-training-card h4 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .kiosk-training-card p {
        font-size: 1.4rem;
        line-height: 2;
        margin-bottom: 40px;
    }
    
.kiosk-training-section h3 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* 작업치료평가 섹션 스타일 */
.assessment-section {
    margin: 60px 0;
    text-align: center;
}

.assessment-single-card {
    background: linear-gradient(135deg, #FFF8DC, #F5F5DC);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid rgba(210, 105, 30, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.assessment-single-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.assessment-single-card:hover::before {
    left: 100%;
}

.assessment-single-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: rgba(210, 105, 30, 0.4);
}

.assessment-single-card .assessment-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.assessment-single-card h4 {
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.assessment-single-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.assessment-single-card .assessment-status {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* 평가 화면 스타일 */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.assessment-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid rgba(210, 105, 30, 0.2);
}

.assessment-info h3 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 20px;
    font-weight: bold;
}

.assessment-info p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.assessment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #FFF8DC, #F5F5DC);
    border-radius: 15px;
    border: 2px solid rgba(210, 105, 30, 0.1);
}

.detail-label {
    font-size: 1rem;
    color: #8B4513;
    font-weight: bold;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.assessment-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer Organization 스타일 */
.footer-organization {
    margin: 60px 0 40px 0;
    text-align: center;
}

.organization-info {
    background: linear-gradient(135deg, #FFF8DC, #F5F5DC);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid rgba(210, 105, 30, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.organization-info h4 {
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.organization-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-organization {
    display: inline-block;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.btn-organization:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #A0522D, #8B4513);
}
    
    /* 가을 낙엽 찾기 터치 최적화 */
    .attention-target {
        font-size: 8rem;
        min-height: 200px;
        max-width: 400px;
        padding: 50px;
    }
    
    .attention-leaf-btn {
        width: 120px;
        height: 120px;
        font-size: 4.5rem;
        border-radius: 25px;
    }
    
    .attention-leaves-area {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 25px;
    }
    
    
    /* 빠른 반응 훈련 터치 최적화 */
    .speed-target {
        width: 200px;
        height: 200px;
        font-size: 8rem;
        border-radius: 30px;
    }
    
    /* 작업치료평가 터치 최적화 */
    .assessment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 1000px;
    }
    
    .assessment-card {
        padding: 40px;
        border-radius: 25px;
    }
    
    .assessment-icon {
        font-size: 5rem;
        margin-bottom: 25px;
    }
    
    .assessment-card h4 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .assessment-card p {
        font-size: 1.3rem;
        line-height: 1.8;
        margin-bottom: 25px;
    }
    
    .assessment-status {
        padding: 12px 25px;
        font-size: 1rem;
        border-radius: 30px;
    }
    
    .assessment-info {
        padding: 50px;
        border-radius: 25px;
    }
    
    .assessment-info h3 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .assessment-info p {
        font-size: 1.4rem;
        line-height: 2;
        margin-bottom: 35px;
    }
    
    .detail-item {
        padding: 25px;
        border-radius: 20px;
    }
    
    .detail-label {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .detail-value {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    /* Footer Organization 터치 최적화 */
    .organization-info {
        padding: 50px;
        border-radius: 25px;
    }
    
    .organization-info h4 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .organization-info p {
        font-size: 1.3rem;
        line-height: 1.8;
        margin-bottom: 30px;
    }
    
    .btn-organization {
        padding: 20px 40px;
        font-size: 1.3rem;
        border-radius: 30px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
