/**
 * 제주시 랜딩페이지 메인 스타일시트
 * 반응형 디자인 적용
 */

/* ==========================================
   CSS Variables (CSS 변수)
   ========================================== */
:root {
    /* Colors */
    --primary-color: #0066cc;
    --secondary-color: #00a9e0;
    --accent-color: #ff6b35;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   Accessibility
   ========================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm);
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   Layout Components
   ========================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* ==========================================
   Header
   ========================================== */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo img {
    height: 50px;
    width: auto;
}

/* ==========================================
   Navigation Menu
   ========================================== */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-item.active > .nav-link,
.nav-item.current > .nav-link {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.submenu-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-item.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--box-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 100;
}

.nav-item:hover .submenu,
.nav-item.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    border-bottom: 1px solid var(--border-color);
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.submenu-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: calc(var(--spacing-md) + 0.5rem);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-base);
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Utility Menu */
.utility-menu {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.search-toggle {
    padding: var(--spacing-sm);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.search-toggle:hover {
    color: var(--primary-color);
}

/* Search Box */
.search-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    box-shadow: var(--box-shadow);
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
}

.search-box input[type="search"] {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-base);
}

.search-box input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.search-box button:hover {
    background: var(--secondary-color);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    z-index: 3;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-prev {
    left: var(--spacing-lg);
}

.hero-next {
    right: var(--spacing-lg);
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
}

.hero-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* ==========================================
   Quick Links Section
   ========================================== */
.quick-links {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-base);
    text-align: center;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    color: var(--primary-color);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    transition: var(--transition-base);
}

.quick-link-item:hover .quick-link-icon {
    background: var(--primary-color);
    color: white;
}

/* ==========================================
   News & Notice Section
   ========================================== */
.news-section {
    padding: var(--spacing-xxl) 0;
}

.content-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.more-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.more-link:hover {
    color: var(--primary-color);
}

/* Notice List */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.notice-list li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.notice-list li a:hover {
    background: var(--bg-light);
}

.notice-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    color: white;
}

.badge-new {
    background: var(--success-color);
}

.badge-hot {
    background: var(--accent-color);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.news-item:hover {
    background: var(--bg-light);
}

.news-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================
   Services Section
   ========================================== */
.services-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition-base);
}

.service-link:hover {
    transform: translateX(5px);
}

/* ==========================================
   Banner Section
   ========================================== */
.banner-section {
    padding: var(--spacing-xl) 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.banner-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-base);
}

.banner-item:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-lg);
}

.banner-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.footer address a {
    color: var(--secondary-color);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: white;
    padding-left: var(--spacing-xs);
}

.footer-social h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-policies {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-policies a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-policies a:hover {
    color: white;
}

/* ==========================================
   Scroll to Top Button
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ==========================================
   Self-Test Styles
   ========================================== */

.test-section {
    padding: 60px 0;
    background: var(--color-light);
}

.test-intro {
    margin-bottom: 40px;
}

.intro-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-card h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.intro-card ul {
    list-style: none;
    padding: 0;
}

.intro-card ul li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.intro-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.intro-card strong {
    color: var(--color-primary);
}

/* Question Cards */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.question-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.question-card.answered {
    border-left: 4px solid var(--color-success);
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.5;
}

.options-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-label:hover {
    border-color: var(--color-primary);
    background: rgba(52, 152, 219, 0.05);
}

.option-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.option-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--color-primary);
}

.option-label:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(52, 152, 219, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
}

/* Test Result */
.test-result {
    margin-top: 60px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-border);
}

.result-header h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.total-score {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

.total-score span {
    font-size: 48px;
    color: var(--color-primary);
    font-weight: 700;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.chart-container {
    position: relative;
    height: 400px;
}

.result-interpretation {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-message {
    margin-bottom: 24px;
}

.result-box {
    padding: 24px;
    border-radius: 12px;
    border-left: 6px solid;
}

.result-box h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.result-box p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.result-normal {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.result-normal h3 {
    color: #4caf50;
}

.result-mild {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
}

.result-mild h3 {
    color: #ff9800;
}

.result-moderate {
    background: rgba(255, 87, 34, 0.1);
    border-color: #ff5722;
}

.result-moderate h3 {
    color: #ff5722;
}

.result-severe {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
}

.result-severe h3 {
    color: #f44336;
}

.result-details h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.result-details ul {
    list-style: none;
    padding: 0;
}

.result-details ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
}

.result-details ul li:last-child {
    border-bottom: none;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.result-note {
    background: rgba(255, 193, 7, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.result-note p {
    margin: 8px 0;
}

.result-note strong {
    color: #f57c00;
}

/* Button Styles */
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ==========================================
   Reaction & Stroop Test Styles
   ========================================== */

/* Game Tabs */
.game-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 16px 32px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text);
}

.tab-btn:hover {
    border-color: var(--color-primary);
    background: rgba(52, 152, 219, 0.05);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Game Container */
.game-container {
    display: none;
}

.game-container.active {
    display: block;
}

.game-intro {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.game-intro h2 {
    color: var(--color-primary);
    font-size: 28px;
    margin-bottom: 16px;
}

.game-intro > p {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.game-rules {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto 32px;
    text-align: left;
}

.game-rules li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.game-rules li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
    font-size: 18px;
}

/* Reaction Test Styles */
.reaction-area {
    margin-top: 40px;
}

.reaction-box {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.reaction-box .reaction-message {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.reaction-box.waiting {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: pulse 1s ease-in-out infinite;
}

.reaction-box.go {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    animation: glow 0.5s ease-out;
}

.reaction-box.success {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.reaction-box.too-early {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes glow {
    0% { box-shadow: 0 0 0 rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 40px rgba(46, 204, 113, 0.8); }
}

.reaction-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--color-light);
    border-radius: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Stroop Test Styles */
.difficulty-selector {
    margin: 24px 0;
}

.difficulty-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.difficulty-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    border-color: var(--color-primary);
    background: rgba(52, 152, 219, 0.05);
}

.difficulty-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.stroop-area {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stroop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.stroop-progress {
    flex: 1;
    min-width: 200px;
}

.stroop-progress > span {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
    width: 0;
}

.stroop-timer {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.stroop-score {
    font-size: 16px;
    font-weight: 600;
}

.stroop-score span {
    color: var(--color-primary);
    font-size: 18px;
}

.stroop-question {
    text-align: center;
    margin-bottom: 40px;
}

.stroop-word {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.stroop-word.correct-answer {
    animation: correctBounce 0.5s ease;
}

.stroop-word.wrong-answer {
    animation: wrongShake 0.5s ease;
}

@keyframes correctBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.stroop-instruction {
    font-size: 18px;
    color: var(--color-text-light);
}

.stroop-instruction strong {
    color: var(--color-primary);
    font-weight: 700;
}

.stroop-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.color-choice {
    padding: 24px;
    font-size: 20px;
    font-weight: 700;
    background: white;
    border: 3px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-choice:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: var(--color-primary);
}

.color-choice:active {
    transform: translateY(-2px);
}

/* Game Result Styles */
.game-result {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.game-result h3 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.result-score {
    margin-bottom: 32px;
}

.score-main {
    font-size: 20px;
    margin-bottom: 16px;
}

.score-main span {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-top: 8px;
}

.score-best,
.score-detail,
.score-time {
    font-size: 18px;
    color: var(--color-text-light);
    margin: 8px 0;
}

.score-detail {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.score-detail strong {
    color: var(--color-primary);
    font-size: 24px;
}

.result-grade {
    margin: 32px 0;
    padding: 24px;
    background: var(--color-light);
    border-radius: 12px;
}

.grade-badge {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 48px;
    font-weight: 900;
    border-radius: 50%;
    margin-bottom: 16px;
    color: white;
}

.grade-s {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.grade-a {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.grade-b {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.grade-c {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
}

.grade-d {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.result-grade p {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.6;
}

.result-history {
    margin: 32px 0;
    padding: 24px;
    background: var(--color-light);
    border-radius: 12px;
}

.result-history h4 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.history-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.history-round {
    font-weight: 600;
    color: var(--color-text);
}

.history-time {
    font-weight: 700;
    color: var(--color-primary);
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Responsive for Reaction/Stroop Games */
@media (max-width: 768px) {
    .game-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .reaction-box {
        height: 300px;
    }
    
    .reaction-box .reaction-message {
        font-size: 24px;
    }
    
    .stroop-word {
        font-size: 48px;
    }
    
    .stroop-choices {
        grid-template-columns: 1fr;
    }
    
    .stroop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .score-detail {
        flex-direction: column;
        gap: 12px;
    }
    
    .history-items {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

/* ==========================================
   Memory Card Game Styles
   ========================================== */

.memory-game-section {
    padding: 60px 0;
    background: var(--color-light);
}

/* Game Control */
.game-control {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.game-control h3 {
    text-align: center;
    color: var(--color-primary);
    font-size: 24px;
    margin-bottom: 24px;
}

.difficulty-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difficulty-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: all 0.3s ease;
}

/* 쉬움 - 녹색 */
.difficulty-btn[data-difficulty="easy"] {
    border-color: #27ae60;
}

.difficulty-btn[data-difficulty="easy"]::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.difficulty-btn[data-difficulty="easy"]:hover {
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f4e6 100%);
    border-color: #27ae60;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.25);
}

.difficulty-btn[data-difficulty="easy"].active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #27ae60;
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.difficulty-btn[data-difficulty="easy"].active .difficulty-name,
.difficulty-btn[data-difficulty="easy"].active .difficulty-desc {
    color: white;
}

/* 보통 - 주황색 */
.difficulty-btn[data-difficulty="medium"] {
    border-color: #e67e22;
}

.difficulty-btn[data-difficulty="medium"]::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.difficulty-btn[data-difficulty="medium"]:hover {
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
    border-color: #e67e22;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.25);
}

.difficulty-btn[data-difficulty="medium"].active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: #e67e22;
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
}

.difficulty-btn[data-difficulty="medium"].active .difficulty-name,
.difficulty-btn[data-difficulty="medium"].active .difficulty-desc {
    color: white;
}

/* 어려움 - 빨간색 */
.difficulty-btn[data-difficulty="hard"] {
    border-color: #e74c3c;
}

.difficulty-btn[data-difficulty="hard"]::before {
    background: linear-gradient(90deg, #ec7063, #e74c3c);
}

.difficulty-btn[data-difficulty="hard"]:hover {
    background: linear-gradient(135deg, #fadbd8 0%, #f5b7b1 100%);
    border-color: #e74c3c;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.25);
}

.difficulty-btn[data-difficulty="hard"].active {
    background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
    border-color: #e74c3c;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

.difficulty-btn[data-difficulty="hard"].active .difficulty-name,
.difficulty-btn[data-difficulty="hard"].active .difficulty-desc {
    color: white;
}

.difficulty-icon {
    font-size: 56px;
    transition: all 0.3s ease;
}

.difficulty-btn:hover .difficulty-icon {
    transform: scale(1.1);
}

.difficulty-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.difficulty-desc {
    font-size: 14px;
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

/* 반응형 */
@media (max-width: 768px) {
    .difficulty-buttons {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Game Stats */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Memory Game Board */
.memory-game-board {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.memory-game-board.grid-easy {
    grid-template-columns: repeat(4, 1fr);
}

.memory-game-board.grid-medium {
    grid-template-columns: repeat(4, 1fr);
}

.memory-game-board.grid-hard {
    grid-template-columns: repeat(6, 1fr);
}

/* Memory Card */
.memory-card {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.memory-card.matched .card-inner {
    animation: matchedPulse 0.6s ease;
}

@keyframes matchedPulse {
    0%, 100% { transform: rotateY(180deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 48px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 64px;
}

.card-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 3px solid #f5576c;
    transform: rotateY(180deg);
    color: white;
}

/* 뒤집힌 카드 효과 */
.memory-card.flipped .card-back {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #00f2fe;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

/* 매칭된 카드 효과 */
.memory-card.matched .card-back {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-color: #38f9d7;
    box-shadow: 0 8px 20px rgba(67, 233, 123, 0.4);
    animation: matchedGlow 1s ease infinite;
}

@keyframes matchedGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(67, 233, 123, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(67, 233, 123, 0.6);
    }
}

/* Game Result Modal */
.game-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.result-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-content h2 {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.result-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-light);
    border-radius: 8px;
}

.result-icon {
    font-size: 32px;
}

.result-label {
    text-align: left;
    font-size: 16px;
    color: var(--color-text-light);
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.result-value.stars-display {
    font-size: 32px;
    color: #f39c12;
}

/* Game Info Box */
.game-info-box {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.game-info-box h3 {
    color: var(--color-primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.game-instructions {
    list-style: none;
    padding: 0;
}

.game-instructions li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
}

.game-instructions li:last-child {
    border-bottom: none;
}

.game-instructions li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 14px;
}

/* Responsive for Memory Game */
@media (max-width: 768px) {
    .memory-game-board.grid-easy {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .memory-game-board.grid-medium {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .memory-game-board.grid-hard {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .card-front,
    .card-back {
        font-size: 32px;
    }
    
    .card-front {
        font-size: 48px;
    }
    
    .difficulty-buttons {
        grid-template-columns: 1fr;
    }
    
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-item {
        grid-template-columns: 50px 1fr auto;
        gap: 12px;
    }
    
    .result-icon {
        font-size: 24px;
    }
    
    .result-value {
        font-size: 20px;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --header-height: 70px;
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: calc(100vh - var(--header-height));
        background: white;
        box-shadow: var(--box-shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: var(--spacing-lg);
    }
    
    .main-nav.mobile-active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-left: var(--spacing-md);
        display: none;
    }
    
    .nav-item.active .submenu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --font-size-base: 14px;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-prev,
    .hero-next {
        padding: var(--spacing-sm);
        font-size: 1.5rem;
    }
    
    .hero-prev {
        left: var(--spacing-sm);
    }
    
    .hero-next {
        right: var(--spacing-sm);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-policies {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .quick-link-item {
        padding: var(--spacing-md);
    }
    
    .quick-link-icon {
        width: 50px;
        height: 50px;
    }
    
    .quick-link-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .header,
    .hero-controls,
    .mobile-menu-toggle,
    .search-box,
    .scroll-top,
    .footer-social {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
    }
    
    /* Self-Test Responsive */
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .options-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .test-result {
        padding: 24px 16px;
    }
    
    .total-score span {
        font-size: 36px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Language Test Styles
   ========================================== */

.language-test-section {
    padding: 60px 0;
    background: var(--color-light);
}

/* Test Instructions */
.test-instructions {
    max-width: 800px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.instruction-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.instruction-card h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.instruction-card ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px;
    list-style: none;
    padding: 0;
}

.instruction-card li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.instruction-card li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.instruction-card strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* Test Area */
.test-area {
    max-width: 900px;
    margin: 0 auto;
}

.test-progress {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.progress-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 10px;
}

.progress-label {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

.progress-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.timer-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.timer-box.warning {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    animation: pulse 1s infinite;
}

.timer-box.warning .progress-value {
    color: #e74c3c;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Question Card */
.question-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    text-align: center;
}

.question-number {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.keyword-display {
    margin: 32px 0;
}

.keyword-label {
    display: block;
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.keyword {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-primary);
    padding: 24px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    display: inline-block;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
}

.question-text {
    font-size: 18px;
    color: var(--color-text);
    margin-top: 24px;
}

/* Input Card */
.input-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.input-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.input-hint {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 8px;
}

.answer-textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.answer-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.answer-textarea::placeholder {
    color: #bdbdbd;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.input-guide {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 8px;
    flex: 1;
}

.guide-icon {
    font-size: 20px;
}

.input-guide span:last-child {
    font-size: 14px;
    color: #e65100;
    font-weight: 500;
}

/* Test Result */
.test-result-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header .result-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

.result-header h2 {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
}

.result-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}

.score-display {
    text-align: center;
}

.score-label {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.score-value {
    font-size: 72px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.score-max {
    font-size: 20px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* Result Details */
.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
}

.detail-icon {
    font-size: 28px;
}

.detail-label {
    flex: 1;
    font-size: 14px;
    color: var(--color-text-light);
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Result Message */
.result-message {
    padding: 24px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: center;
}

.result-message h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.result-message p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.6;
}

/* Result Answers */
.result-answers {
    margin-bottom: 32px;
}

.result-answers h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.answer-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--color-primary);
}

.answer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.answer-number {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
}

.answer-keyword {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.answer-content {
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
}

.answer-words {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.answer-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.answer-stats span {
    font-size: 13px;
    color: var(--color-text-light);
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Tips Section */
.tips-section {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 48px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tips-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.tip-card {
    padding: 32px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tip-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.2);
}

.tip-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.tip-card h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.tip-card p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .instruction-card,
    .test-result-card,
    .tips-section {
        padding: 32px 24px;
    }
    
    .test-progress {
        flex-direction: column;
    }
    
    .keyword {
        font-size: 40px;
    }
    
    .result-score {
        flex-direction: column;
        gap: 16px;
    }
    
    .score-value {
        font-size: 56px;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .input-footer {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

/* ==========================================
   Spot Difference Game Styles
   ========================================== */

.spot-game-section {
    padding: 60px 0;
    background: var(--color-light);
}

.game-instructions {
    max-width: 900px;
    margin: 0 auto;
}

.instruction-box {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.instruction-box .instruction-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 24px;
}

.instruction-box h2 {
    text-align: center;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.instruction-box ul {
    max-width: 600px;
    margin: 0 auto 40px;
    list-style: none;
    padding: 0;
}

.instruction-box li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.difficulty-select {
    margin: 40px 0;
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.diff-btn[data-difficulty="easy"].active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
    color: white;
}

.diff-btn[data-difficulty="medium"].active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
    color: white;
}

.diff-btn[data-difficulty="hard"].active {
    background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
    color: white;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ecf0f1;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.hotspot:hover {
    background: rgba(52, 152, 219, 0.2);
}

.hotspot.found {
    background: rgba(46, 204, 113, 0.4);
    border: 3px solid #2ecc71;
    cursor: default;
    animation: foundPulse 0.6s ease;
}

.hotspot.hint-pulse {
    animation: hintPulse 0.5s ease 4;
}

@keyframes foundPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes hintPulse {
    0%, 100% { 
        background: rgba(241, 196, 15, 0.3);
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7);
    }
    50% { 
        background: rgba(241, 196, 15, 0.5);
        box-shadow: 0 0 0 15px rgba(241, 196, 15, 0);
    }
}

.found-mark {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(46, 204, 113, 0.4);
    border: 3px solid #2ecc71;
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================
   Rhythm Game Styles
   ========================================== */

.rhythm-game-section {
    padding: 60px 0;
    background: var(--color-light);
}

.rhythm-instructions {
    max-width: 900px;
    margin: 0 auto;
}

.instruction-panel {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.instruction-panel .instruction-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

.instruction-panel h2 {
    text-align: center;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.instruction-panel ul {
    max-width: 600px;
    margin: 0 auto 40px;
    list-style: none;
    padding: 0;
}

.instruction-panel li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    font-size: 16px;
    line-height: 1.6;
}

.grade-perfect { color: #f39c12; font-weight: 700; }
.grade-great { color: #2ecc71; font-weight: 700; }
.grade-good { color: #3498db; font-weight: 700; }
.grade-miss { color: #e74c3c; font-weight: 700; }

.difficulty-selector {
    margin: 40px 0;
}

.difficulty-selector h3 {
    text-align: center;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.difficulty-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.rhythm-diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rhythm-diff-btn[data-difficulty="easy"].active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.rhythm-diff-btn[data-difficulty="medium"].active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
}

.rhythm-diff-btn[data-difficulty="hard"].active {
    background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

.rhythm-diff-btn.active .diff-title,
.rhythm-diff-btn.active .diff-detail {
    color: white;
}

.diff-emoji { font-size: 48px; }
.diff-title { font-size: 20px; font-weight: 700; color: var(--color-text); transition: all 0.3s ease; }
.diff-detail { font-size: 14px; color: var(--color-text-light); transition: all 0.3s ease; }

/* Game Area */
.rhythm-game-area {
    max-width: 800px;
    margin: 0 auto;
}

.rhythm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-value.combo {
    color: #f39c12;
}

/* Rhythm Board */
.rhythm-board {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.note-track {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.1) 100%);
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.target-line {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    z-index: 5;
}

.hit-zone {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border: 4px dashed rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    animation: hitZonePulse 2s ease infinite;
}

@keyframes hitZonePulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.5; }
}

/* Notes */
.note {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 10;
}

.note::before {
    content: '';
    color: white;
}

.note-pulse {
    animation: notePulse 0.6s ease infinite;
}

@keyframes notePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.note-hit {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    animation: noteHit 0.3s ease;
}

@keyframes noteHit {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.5); opacity: 1; }
    100% { transform: translateX(-50%) scale(0); opacity: 0; }
}

/* Hit Button */
.hit-button-container {
    text-align: center;
}

.hit-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 6px solid white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.hit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.hit-button.hit-active {
    transform: scale(0.9);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.button-icon {
    font-size: 48px;
}

.button-text {
    font-size: 20px;
    font-weight: 700;
}

.button-hint {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-light);
}

/* Judgment Display */
.judgment-display {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
    display: none;
}

.judgment-perfect {
    color: #f39c12;
    animation: judgmentPop 0.6s ease;
}

.judgment-great {
    color: #2ecc71;
    animation: judgmentPop 0.6s ease;
}

.judgment-good {
    color: #3498db;
    animation: judgmentPop 0.6s ease;
}

.judgment-miss {
    color: #e74c3c;
    animation: judgmentShake 0.6s ease;
}

@keyframes judgmentPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes judgmentShake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-5deg); }
    75% { transform: translate(-50%, -50%) rotate(5deg); }
}

/* Combo Display */
.combo-display {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 4px 16px rgba(243, 156, 18, 0.5);
    z-index: 999;
    pointer-events: none;
}

.combo-pulse {
    animation: comboPulse 0.3s ease;
}

@keyframes comboPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

/* Result Panel */
.rhythm-result-panel {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.result-score-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}

.final-score-box {
    text-align: center;
}

.score-title {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.score-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.grade-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.grade-box.grade-s { color: #f39c12; border: 4px solid #f39c12; }
.grade-box.grade-a { color: #2ecc71; border: 4px solid #2ecc71; }
.grade-box.grade-b { color: #3498db; border: 4px solid #3498db; }
.grade-box.grade-c { color: #e67e22; border: 4px solid #e67e22; }
.grade-box.grade-d { color: #95a5a6; border: 4px solid #95a5a6; }

.result-statistics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
}

.stat-icon {
    font-size: 28px;
}

.stat-name {
    flex: 1;
    font-size: 16px;
    color: var(--color-text);
    font-weight: 600;
}

.stat-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.detail-box {
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    text-align: center;
}

.detail-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.detail-value {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.result-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Benefits Info */
.benefits-info {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 48px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.benefits-info h2 {
    text-align: center;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 40px;
}

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

.benefit-item {
    padding: 32px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.2);
}

.benefit-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.benefit-item h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.benefit-item p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .difficulty-btns {
        grid-template-columns: 1fr;
    }
    
    .rhythm-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .note-track {
        height: 400px;
    }
    
    .result-score-area {
        flex-direction: column;
    }
    
    .score-number {
        font-size: 56px;
    }
    
    .result-statistics {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .result-controls {
        flex-direction: column;
    }
    
    .result-controls .btn {
        width: 100%;
    }
}

/* ==========================================
   Scene Memory Game Styles
   ========================================== */

.scene-memory-section {
    padding: 60px 0;
    background: var(--color-light);
}

.scene-instructions {
    max-width: 900px;
    margin: 0 auto;
}

/*  ൵ */
.game-progress {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.progress-info {
    text-align: center;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--color-text);
}

.progress-info strong {
    color: var(--color-primary);
    font-size: 24px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

/*  ī */
.scene-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/*  ǥ  */
.scene-display {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.scene-timer {
    text-align: center;
    margin-bottom: 32px;
}

.timer-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    animation: timerPulse 1s ease infinite;
}

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

.timer-number {
    font-size: 56px;
    font-weight: 700;
    color: white;
}

.timer-label {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 600;
}

/* ̹ ̳ */
.scene-image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.scene-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-primary);
    font-weight: 700;
}

.blur-overlay.active {
    opacity: 1;
}

.blur-overlay::before {
    content: ' غ!';
}

/*   */
.scene-quiz {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quiz-question {
    font-size: 28px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
}

.quiz-options {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.option-letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-size: 18px;
    color: var(--color-text);
}

.quiz-option.selected {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe4c4 100%);
}

.quiz-option.correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    animation: correctPulse 0.5s ease;
}

.quiz-option.correct .option-letter {
    background: #28a745;
    color: white;
}

.quiz-option.wrong {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    animation: wrongShake 0.5s ease;
}

.quiz-option.wrong .option-letter {
    background: #dc3545;
    color: white;
}

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

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

/* ǵ */
.quiz-feedback {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-feedback.correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
}

.quiz-feedback.wrong {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
}

.quiz-feedback.hint {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #ffc107;
}

.feedback-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feedback-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
}

.feedback-text strong {
    color: var(--color-primary);
}

/*  Ʈ */
.quiz-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/*  г */
.scene-result-panel {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 32px;
}

.result-header .result-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

.result-header h2 {
    font-size: 36px;
    color: var(--color-primary);
}

.result-message {
    text-align: center;
    padding: 24px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
}

.result-message p {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.6;
}

/* ̵ ư -   */
.scene-diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-diff-btn[data-difficulty="easy"].active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.scene-diff-btn[data-difficulty="medium"].active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
}

.scene-diff-btn[data-difficulty="hard"].active {
    background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

.scene-diff-btn.active .diff-title,
.scene-diff-btn.active .diff-detail {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .scene-stats {
        grid-template-columns: 1fr;
    }
    
    .quiz-card {
        padding: 32px 24px;
    }
    
    .quiz-question {
        font-size: 22px;
    }
    
    .quiz-option {
        padding: 16px 20px;
    }
    
    .option-text {
        font-size: 16px;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-number {
        font-size: 48px;
    }
    
    .scene-result-panel {
        padding: 32px 24px;
    }
    
    .quiz-controls {
        flex-direction: column;
    }
    
    .quiz-controls .btn {
        width: 100%;
    }
}

/* ==========================================
   Sequence Memory Game Styles
   ========================================== */

.sequence-memory-section {
    padding: 60px 0;
    background: var(--color-light);
}

.sequence-instructions {
    max-width: 900px;
    margin: 0 auto;
}

/*    */
.pattern-type-selector {
    margin: 40px 0;
}

.pattern-type-selector h3 {
    text-align: center;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.pattern-type-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pattern-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pattern-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.pattern-type-btn.active .type-title,
.pattern-type-btn.active .type-detail {
    color: white;
}

.type-emoji { font-size: 48px; }
.type-title { font-size: 20px; font-weight: 700; color: var(--color-text); transition: all 0.3s ease; }
.type-detail { font-size: 14px; color: var(--color-text-light); transition: all 0.3s ease; }

/* ̵ ư */
.seq-diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seq-diff-btn[data-difficulty="easy"].active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.seq-diff-btn[data-difficulty="medium"].active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
}

.seq-diff-btn[data-difficulty="hard"].active {
    background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

.seq-diff-btn.active .diff-title,
.seq-diff-btn.active .diff-detail {
    color: white;
}

/*   */
.game-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.level-display, .lives-display, .score-display {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.level-label, .lives-label, .score-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.level-number, .score-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.hearts-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
}

.heart {
    display: inline-block;
    animation: heartBeat 1.5s ease infinite;
}

.heart-lost {
    opacity: 0.3;
    animation: none;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(1); }
}

/*  ǥ  */
.pattern-display-area {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.pattern-timer {
    margin-bottom: 32px;
}

.timer-message {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.timer-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.pattern-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 200px;
    padding: 32px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    transition: all 0.5s ease;
}

.pattern-container.pattern-hidden {
    filter: blur(20px);
    opacity: 0.3;
}

.pattern-item {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: patternAppear 0.5s ease forwards;
    opacity: 0;
    transform: scale(0);
}

@keyframes patternAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pattern-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    font-weight: 700;
}

.pattern-color {
    border: 4px solid white;
}

/* Է  */
.pattern-input-area {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto 32px;
}

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

.input-instruction h3 {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.pattern-length-hint {
    font-size: 16px;
    color: var(--color-text-light);
}

.pattern-length-hint strong {
    color: var(--color-primary);
    font-size: 20px;
}

/*  Է */
.number-input-container {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.pattern-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 24px;
    text-align: center;
    border: 3px solid #ddd;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pattern-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

/*  Է */
.color-input-container {
    max-width: 600px;
    margin: 0 auto;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.color-btn {
    padding: 16px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.color-circle {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.selected-colors {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 80px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.selected-color-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: colorPop 0.3s ease;
}

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

.color-input-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ȥ Է */
.mixed-input-container {
    max-width: 700px;
    margin: 0 auto;
}

.mixed-selection-area {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 100px;
    padding: 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    margin-bottom: 32px;
}

.mixed-selected-item {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: colorPop 0.3s ease;
}

.mixed-number-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 36px;
    font-weight: 700;
}

.mixed-color-item {
    border: 3px solid white;
}

.mixed-palette {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.mixed-palette h4 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.mixed-numbers .number-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.mixed-num-btn {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mixed-num-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.mixed-colors .color-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mixed-color-btn {
    padding: 12px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mixed-color-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.mixed-color-btn .color-circle {
    width: 50px;
    height: 50px;
}

.mixed-input-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ǵ  */
.feedback-area {
    max-width: 700px;
    margin: 0 auto;
}

.feedback-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.feedback-card.feedback-correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.feedback-card.feedback-wrong {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.feedback-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

.feedback-message {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.feedback-details {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 32px;
}

.feedback-details p {
    margin-bottom: 12px;
}

.feedback-details strong {
    color: var(--color-primary);
}

/*  г */
.sequence-result-panel {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.result-score-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.final-score-box, .final-level-box {
    padding: 32px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    text-align: center;
}

.score-title, .level-title {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .pattern-type-btns, .difficulty-btns {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        grid-template-columns: 1fr;
    }
    
    .color-palette {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mixed-numbers .number-buttons {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .mixed-colors .color-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-score-area {
        grid-template-columns: 1fr;
    }
    
    .number-input-container {
        flex-direction: column;
    }
    
    .pattern-input-area {
        padding: 32px 24px;
    }
    
    .feedback-card {
        padding: 32px 24px;
    }
}

/* ==========================================
   Maze Game Styles
   ========================================== */

.maze-game-section {
    padding: 60px 0;
    background: var(--color-light);
}

.maze-instructions {
    max-width: 900px;
    margin: 0 auto;
}

/* ̵ ư */
.maze-diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maze-diff-btn[data-difficulty="easy"].active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.maze-diff-btn[data-difficulty="medium"].active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
}

.maze-diff-btn[data-difficulty="hard"].active {
    background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

.maze-diff-btn.active .diff-title,
.maze-diff-btn.active .diff-detail {
    color: white;
}

/*    */
.game-stats-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.stat-item .stat-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.stat-item .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.timer-stat .stat-value {
    color: #2ecc71;
}

.timer-value.timer-warning {
    color: #e74c3c;
    animation: timerBlink 1s ease infinite;
}

@keyframes timerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ̷  */
.maze-board {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.maze-status {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
}

.status-icon {
    font-size: 24px;
    margin-right: 8px;
}

.status-text {
    vertical-align: middle;
}

/* Canvas ̳ */
.canvas-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

#maze-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    background: #f5f7fa;
}

/* ̷ Ŀ */
.maze-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.start-marker, .end-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: markerFloat 2s ease-in-out infinite;
}

.start-marker {
    color: #2ecc71;
}

.end-marker {
    color: #e74c3c;
}

@keyframes markerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.marker-icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.marker-label {
    font-size: 12px;
    font-weight: 700;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ̷ Ʈ */
.maze-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.maze-controls .btn {
    min-width: 150px;
}

#hint-btn.active {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-color: #f39c12;
    color: white;
}

/*  г */
.maze-result-panel {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.maze-result-panel .result-header {
    text-align: center;
    margin-bottom: 32px;
}

.maze-result-panel .result-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

.maze-result-panel .result-header h2 {
    font-size: 36px;
    color: var(--color-primary);
}

.maze-result-panel .result-score-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.final-score-box, .final-level-box {
    padding: 32px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    text-align: center;
}

.score-title, .level-title {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.maze-result-panel .result-message {
    text-align: center;
    padding: 24px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
}

.maze-result-panel .result-message p {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.6;
}

/* Path  ȿ */
@keyframes pathGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(52, 152, 219, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(52, 152, 219, 0.8));
    }
}

.canvas-container:hover #maze-canvas {
    filter: brightness(1.05);
}

/* ġ ̽ ȭ */
@media (hover: none) and (pointer: coarse) {
    #maze-canvas {
        cursor: default;
    }
    
    .marker-icon {
        font-size: 40px;
    }
    
    .marker-label {
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .game-stats-header {
        grid-template-columns: 1fr;
    }
    
    .maze-board {
        padding: 24px 16px;
    }
    
    .maze-status {
        font-size: 16px;
        padding: 12px;
    }
    
    .status-icon {
        font-size: 20px;
    }
    
    .maze-controls {
        flex-direction: column;
    }
    
    .maze-controls .btn {
        width: 100%;
    }
    
    .maze-result-panel {
        padding: 32px 24px;
    }
    
    .maze-result-panel .result-score-area {
        grid-template-columns: 1fr;
    }
    
    .marker-icon {
        font-size: 24px;
    }
    
    .marker-label {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/*  θ */
@media (max-width: 768px) and (orientation: landscape) {
    .canvas-container {
        max-height: 60vh;
    }
    
    #maze-canvas {
        max-height: 60vh;
        width: auto;
    }
}
