/* 태블릿 최적화 CSS */

/* 터치 인터페이스 최적화 */
button, a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

/* 입력 필드는 기본 터치 동작 허용 */
input, select, textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: auto;
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 로딩 애니메이션 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 답안 선택 버튼 호버 효과 */
.answer-choice {
    transition: all 0.2s ease-in-out;
}

.answer-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.answer-choice:active {
    transform: translateY(0);
}

/* 점수 카드 그라데이션 */
.score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 반응형 최적화 */
@media (max-width: 640px) {
    .grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 입력 필드 명시적 허용 및 가시성 */
input, textarea, select {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    color: #F5F5F5 !important;
}

/* Placeholder 가시성 */
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 포커스 스타일 */
input:focus, button:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    ring-offset: 2px;
}