﻿/* ========================================
   학습 페이지 전용 스타일 - 게임화
   ======================================== */
        
        /* 스트릭 카드 */
        .streak-card {
            background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
            border-radius: var(--radius-L);
            padding: 24px;
            margin-bottom: 24px;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .streak-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(184, 158, 95, 0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        
        .streak-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .streak-title {
            font-size: 13px;
            opacity: 0.8;
        }
        
        .streak-badge {
            background: rgba(255,255,255,0.15);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .streak-number {
            font-size: 48px;
            font-weight: 800;
            line-height: 1;
            margin-bottom: 4px;
        }
        
        .streak-number span {
            font-size: 18px;
            font-weight: 500;
            opacity: 0.8;
        }
        
        .streak-subtitle {
            font-size: 14px;
            opacity: 0.7;
        }
        
        .streak-days {
            display: flex;
            gap: 8px;
            margin-top: 20px;
        }
        
        .streak-day {
            flex: 1;
            text-align: center;
        }
        
        .streak-day-dot {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 4px;
            font-size: 14px;
        }
        
        .streak-day-dot.done {
            background: var(--accent);
        }
        
        .streak-day-dot.today {
            background: rgba(255,255,255,0.3);
            border: 2px solid var(--accent);
        }
        
        .streak-day-label {
            font-size: 11px;
            opacity: 0.6;
        }
        
        /* 섹션 타이틀 */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-badge {
            background: var(--accent);
            color: white;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: 600;
        }
        
        /* 모듈 카드 - 게임 스타일 */
        .module-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 32px;
        }
        
        .module-card {
            background: var(--white);
            border-radius: var(--radius-M);
            padding: 14px 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 1px solid rgba(20, 20, 20, 0.06);
            position: relative;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
        }
        
        .module-card:hover {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            transform: translateY(-1px);
        }
        
        .module-card:active {
            transform: scale(0.98) translateY(0);
        }
        
        .module-card.locked {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        /* 완료된 모듈 */
        .module-card.completed {
            background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
            border: 1px solid #86efac;
        }
        
        .module-card.completed .module-icon-wrap {
            box-shadow: 0 0 0 2px #86efac;
        }
        
        /* 완료 배지 */
        .module-status {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 13px;
            font-weight: 500;
            padding: 4px 12px;
            border-radius: 20px;
        }
        
        .module-status.completed {
            background: #dcfce7;
            color: #16a34a;
        }
        
        .module-status.pending {
            color: var(--accent);
        }
        
        .module-status.locked {
            color: #9ca3af;
            font-size: 12px;
        }
        
        /* 잠금 상태 모듈 */
        .module-card.locked {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .module-card.locked .module-icon-wrap {
            filter: grayscale(50%);
        }
        
        .module-lock {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            font-size: 14px;
        }
        
        .module-lock {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            background: var(--bg-base);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-sub);
            font-size: 14px;
        }
        
        .module-check {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #10b981;
            font-size: 24px;
        }
        
        .module-card.just-unlocked {
            animation: unlockPulse 2s ease;
            border-color: #4CAF50;
        }
        
        @keyframes unlockPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
            50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
        }
        
        .module-icon-wrap.completed {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        }
        
        /* 뉴스 완료 표시 */
        .news-badge {
            display: inline-block;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 6px;
            vertical-align: middle;
        }
        
        .news-badge.completed {
            background: #10b981;
            color: white;
        }
        
        .module-card.news-completed {
            opacity: 0.85;
            border-left: 3px solid #10b981;
        }
        
        /* 썸네일 뉴스 카드 */
        .news-thumb-card {
            background: var(--white);
            border-radius: var(--radius-M);
            overflow: hidden;
            border: 1px solid rgba(20, 20, 20, 0.06);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }
        
        .news-thumb-card:hover {
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }
        
        .news-thumb-card:active {
            transform: scale(0.98) translateY(0);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        .news-thumb-card.news-completed {
            opacity: 0.85;
            border-left: 3px solid #10b981;
        }
        
        .news-thumb-img {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 57.5%;
            overflow: hidden;
            background: linear-gradient(135deg, #E7EEF6 0%, #F0F4F8 100%);
        }
        
        .news-thumb-img img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            animation: learnThumbPulse 4s ease-in-out infinite;
        }
        
        @keyframes learnThumbPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.015); }
        }
        
        .news-thumb-card:hover .news-thumb-img img {
            animation: none;
            transform: scale(1.05);
        }
        
        .news-thumb-check {
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 16px;
            filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
        }
        
        .news-thumb-body {
            padding: 14px 16px;
        }
        
        .news-thumb-body .module-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.4;
            margin-bottom: 4px;
        }
        
        .news-thumb-body .module-desc {
            font-size: 12px;
            color: var(--text-sub);
        }
        
        .module-icon-wrap {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            flex-shrink: 0;
            position: relative;
        }
        
        .module-icon-wrap.psychology { 
            background: linear-gradient(135deg, #667eea20, #764ba220);
        }
        .module-icon-wrap.diversify { 
            background: linear-gradient(135deg, #f093fb20, #f5576c20);
        }
        .module-icon-wrap.cycle { 
            background: linear-gradient(135deg, #43e97b20, #38f9d720);
        }
        .module-icon-wrap.allocation { 
            background: linear-gradient(135deg, #fa709a20, #fee14020);
        }
        .module-icon-wrap.rebalancing { 
            background: linear-gradient(135deg, #4facfe20, #00f2fe20);
        }
        .module-icon-wrap.compound { 
            background: linear-gradient(135deg, #a18cd120, #fbc2eb20);
        }
        .module-icon-wrap.gift { 
            background: linear-gradient(135deg, #ff9a9e20, #fecfef20);
        }
        .module-icon-wrap.news { 
            background: linear-gradient(135deg, #fa709a20, #fee14020);
        }
        
        .module-level {
            position: absolute;
            bottom: -4px;
            right: -4px;
            background: var(--accent);
            color: white;
            font-size: 10px;
            font-weight: 700;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
        }
        
        .module-info {
            flex: 1;
            min-width: 0;
        }
        
        .module-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text-main);
        }
        
        .module-desc {
            font-size: 13px;
            color: var(--text-sub);
        }
        
        .module-xp {
            font-size: 12px;
            color: var(--accent);
            font-weight: 600;
            margin-top: 6px;
        }
        
        /* 진행 바 */
        .module-progress {
            height: 4px;
            background: var(--line);
            border-radius: 2px;
            margin-top: 10px;
            overflow: hidden;
        }
        
        .module-progress-fill {
            height: 100%;
            background: var(--accent);
            border-radius: 2px;
            transition: width 0.5s ease;
        }
        
        /* ========================================
           섹션 헤더 개선 - 진행률 표시
           ======================================== */
        .section-header-enhanced {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .section-header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .section-progress-info {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-sub);
        }
        
        .section-progress-bar {
            flex: 1;
            height: 6px;
            background: var(--line);
            border-radius: 3px;
            overflow: hidden;
        }
        
        .section-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), #10b981);
            border-radius: 3px;
            transition: width 0.5s ease;
        }
        
        .section-progress-text {
            font-weight: 600;
            color: var(--accent);
            white-space: nowrap;
        }
        
        /* 접기/펼치기 토글 */
        .toggle-section {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px;
            background: var(--bg-sub);
            border-radius: var(--radius-S);
            margin-bottom: 12px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-sub);
            transition: all 0.2s ease;
            border: 1px solid var(--line);
        }
        
        .toggle-section:hover {
            background: var(--line);
        }
        
        .toggle-section i {
            transition: transform 0.3s ease;
        }
        
        .toggle-section.expanded i {
            transform: rotate(180deg);
        }
        
        .collapsible-section {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
        }
        
        .collapsible-section.expanded {
            max-height: 2000px;
        }
        
        /* 이번 주 NEW 표시 */
        .week-label {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 600;
            color: #ef4444;
            background: #fef2f2;
            padding: 3px 8px;
            border-radius: 4px;
            margin-bottom: 8px;
        }
        
        .week-label i {
            font-size: 10px;
        }
        
        /* 읽을 거리 서브섹션 */
        .content-subsection {
            margin-bottom: 16px;
        }
        
        .content-subsection-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            padding: 0 4px;
        }
        
        .content-subsection-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-sub);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .content-count {
            font-size: 12px;
            color: var(--text-sub);
            background: var(--bg-sub);
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        /* 더보기/아카이브 버튼 */
        .view-more-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 14px;
            background: var(--white);
            border: 1px dashed var(--line);
            border-radius: var(--radius-M);
            color: var(--text-sub);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 8px;
        }
        
        .view-more-btn:hover {
            background: var(--bg-sub);
            border-color: var(--accent);
            color: var(--accent);
        }
        
        .view-more-btn i {
            font-size: 16px;
        }
        
        /* 빈 상태 표시 */
        .empty-state {
            text-align: center;
            padding: 24px;
            color: var(--text-sub);
            font-size: 14px;
        }
        
        .empty-state i {
            font-size: 32px;
            margin-bottom: 8px;
            opacity: 0.5;
        }
        
        /* ========================================
           컨텐츠 뷰 (학습 화면) - 플로팅
           ======================================== */
        .content-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: none;
            justify-content: center;
            align-items: stretch;
        }
        
        .content-overlay.active {
            display: flex;
        }
        
        .content-wrapper {
            width: 100%;
            max-width: var(--max-width);
            background: var(--bg-base);
            background-image: url('/assets/images/bg_texture.png');
            background-blend-mode: multiply;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        
        .content-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 10px;
            background: var(--white);
            border-bottom: 1px solid var(--line);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .btn-back {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-base);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-main);
            cursor: pointer;
            border: none;
            font-size: 20px;
        }
        
        .content-title {
            flex: 1;
            font-size: 16px;
            font-weight: 600;
        }
        
        .content-step {
            font-size: 13px;
            color: var(--text-sub);
            background: var(--bg-base);
            padding: 4px 10px;
            border-radius: 12px;
        }
        
        .content-body {
            flex: 1;
            overflow-y: auto;
            padding: 0 8px 20px;
        }
        
        /* 레슨 카드 - 스토리텔링 (패딩 최소화) */
        .lesson-card {
            background: var(--white);
            border-radius: var(--radius-L);
            padding: 12px 8px;
            margin: 16px 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }
        
        .lesson-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }
        
        .lesson-emoji {
            font-size: 28px;
        }
        
        .lesson-title-wrap h2 {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-main);
        }
        
        .lesson-title-wrap .tag {
            display: inline-block;
            background: var(--primary);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            margin-top: 3px;
        }
        
        .key-point {
            background: linear-gradient(135deg, #667eea15, #764ba215);
            border-left: 4px solid var(--primary);
            padding: 8px 10px;
            border-radius: 0 12px 12px 0;
            margin-bottom: 16px;
            font-size: 17px;
            font-weight: 600;
            color: var(--primary);
        }
        
        .story-block {
            background: #FFFBF5;
            border-radius: var(--radius-S);
            padding: 10px 8px;
            margin-bottom: 14px;
            border: 1px solid #F5E6D3;
        }
        
        .story-block p {
            font-size: 17px;
            line-height: 1.8;
            color: var(--text-main);
            margin-bottom: 10px;
        }
        
        .story-block p:last-child {
            margin-bottom: 0;
        }
        
        .story-block ul {
            padding-left: 8px;
            margin: 0;
            list-style: none;
        }
        
        .story-block li {
            font-size: 17px;
            line-height: 1.7;
            margin-bottom: 4px;
        }
        
        .story-block .speech {
            background: white;
            border-radius: 12px;
            padding: 12px 14px 12px 28px;
            margin: 12px 0;
            position: relative;
            font-style: italic;
            color: var(--primary);
            border: 1px solid var(--line);
            font-size: 17px;
        }
        
        .story-block .speech::before {
            content: '"';
            position: absolute;
            top: 6px;
            left: 10px;
            font-size: 20px;
            color: var(--accent);
            font-family: Georgia, serif;
        }
        
        .insight-box {
            background: linear-gradient(135deg, #FFF8E1, #FFECB3);
            border-radius: var(--radius-S);
            padding: 8px 6px;
            margin-bottom: 14px;
            border: 1px solid #FFD54F;
        }
        
        .insight-box h4 {
            font-size: 17px;
            font-weight: 700;
            color: #E65100;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .insight-box ul {
            padding-left: 8px;
            margin: 0;
            list-style: none;
        }
        
        .insight-box li {
            font-size: 17px;
            line-height: 1.7;
            color: #5D4037;
            margin-bottom: 4px;
        }
        
        .tip-box {
            background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
            border-radius: var(--radius-S);
            padding: 8px 8px;
            border: 1px solid #81C784;
        }
        
        .tip-box h4 {
            font-size: 13px;
            font-weight: 700;
            color: #2E7D32;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .tip-box p {
            font-size: 17px;
            line-height: 1.6;
            color: #1B5E20;
        }
        
        .tip-box.danger {
            background: #FFEBEE;
            border-color: #EF5350;
        }
        
        .tip-box.danger h4 {
            color: #C62828;
        }
        
        .tip-box.danger p {
            color: #B71C1C;
        }
        
        .tip-box.success {
            background: #E8F5E9;
            border-color: #66BB6A;
        }
        
        .tip-box.success h4 {
            color: #2E7D32;
        }
        
        .tip-box.success p, .tip-box.success ul {
            color: #1B5E20;
        }
        
        .tip-box ul {
            margin: 8px 0 0 0;
            padding-left: 20px;
        }
        
        .tip-box li {
            font-size: 17px;
            line-height: 1.8;
        }
        
        /* 게임 테이블 (분산투자 모듈) */
        .game-table {
            width: 100%;
            border-collapse: collapse;
            margin: 12px 0;
            font-size: 15px;
        }
        
        .game-table th, .game-table td {
            padding: 8px 4px;
            text-align: center;
            border: 1px solid #E0E0E0;
            white-space: nowrap;
        }
        
        .game-table th {
            background: var(--primary);
            color: white;
            font-weight: 600;
            font-size: 14px;
        }
        
        .game-table td:first-child {
            white-space: nowrap;
        }
        
        .game-table td:last-child {
            white-space: normal;
            text-align: center;
        }
        
        .game-table tr:nth-child(even) {
            background: #F5F5F5;
        }
        
        .game-table .danger {
            color: #EF4444;
            font-weight: 700;
        }
        
        /* 게임 규칙 박스 */
        .game-rules {
            background: #E3F2FD;
            border-radius: var(--radius-S);
            padding: 8px 8px;
            margin: 10px 0;
            border: 1px solid #90CAF9;
        }
        
        .game-rules p {
            margin-bottom: 8px;
            color: #1565C0;
        }
        
        .game-rules ul {
            margin: 0;
            padding-left: 20px;
        }
        
        .game-rules li {
            font-size: 17px;
            line-height: 1.8;
            color: #1976D2;
        }
        
        /* 수학 박스 */
        .math-box {
            background: #FFF3E0;
            border-radius: var(--radius-S);
            padding: 10px 8px;
            margin: 10px 0;
            border: 2px solid #FF9800;
        }
        
        .math-box code {
            display: block;
            font-family: 'Courier New', monospace;
            font-size: 18px;
            font-weight: 700;
            color: #D84315;
            margin: 6px 0;
        }
        
        .math-box p {
            font-size: 17px;
            color: #BF360C;
            font-weight: 500;
        }
        
        /* 하단 액션 버튼 */
        .bottom-action {
            padding: 12px 10px;
            background: var(--white);
            border-top: 1px solid var(--line);
            position: sticky;
            bottom: 0;
            z-index: 1001;
        }
        
        .bottom-action-buttons {
            display: flex;
            gap: 12px;
        }
        
        .btn-primary-large {
            flex: 1;
            padding: 16px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius-M);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }
        
        .btn-primary-large:active {
            transform: scale(0.98);
            opacity: 0.9;
        }
        
        .btn-primary-large.accent {
            background: var(--accent);
        }
        
        .btn-secondary-large {
            flex: 1;
            padding: 16px;
            background: var(--bg-base);
            color: var(--text-main);
            border: 1px solid var(--line);
            border-radius: var(--radius-M);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }
        
        .btn-secondary-large:active {
            transform: scale(0.98);
            background: var(--line);
        }
        
        /* ========================================
           퀴즈 스타일 - 게임화
           ======================================== */
        .quiz-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 20px 0;
        }
        
        .quiz-progress-bar {
            flex: 1;
            height: 8px;
            background: var(--line);
            border-radius: 4px;
            overflow: hidden;
        }
        
        .quiz-progress-fill {
            height: 100%;
            background: var(--accent);
            border-radius: 4px;
            transition: width 0.3s ease;
        }
        
        .quiz-step {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-sub);
            min-width: 40px;
            text-align: right;
        }
        
        .quiz-card {
            background: var(--white);
            border-radius: var(--radius-L);
            padding: 16px 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            color: var(--text-main);
        }
        
        .quiz-question {
            font-size: 17px;
            font-weight: 600;
            line-height: 1.7;
            margin-bottom: 24px;
            white-space: pre-line;
            color: var(--text-main);
        }
        
        .quiz-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .quiz-option {
            padding: 16px 18px;
            background: var(--white);
            border: 2px solid var(--line);
            border-radius: var(--radius-M);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 17px;
            line-height: 1.6;
            color: var(--text-main);
        }
        
        .quiz-option:active {
            transform: scale(0.98);
        }
        
        .quiz-option.correct {
            border-color: #10b981;
            background: linear-gradient(135deg, #10b98110, #10b98105);
        }
        
        .quiz-option.wrong {
            border-color: #ef4444;
            background: linear-gradient(135deg, #ef444410, #ef444405);
        }
        
        /* ========================================
           피드백 모달 - 게임 리워드 스타일
           ======================================== */
        .feedback-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .feedback-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        
        .feedback-modal {
            background: var(--white);
            border-radius: 28px 28px 0 0;
            padding: 32px 24px 40px;
            width: 100%;
            max-width: 500px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        
        .feedback-overlay.show .feedback-modal {
            transform: translateY(0);
        }
        
        .feedback-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            margin: 0 auto 20px;
        }
        
        .feedback-icon.correct {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }
        
        .feedback-icon.wrong {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
        }
        
        .feedback-title {
            text-align: center;
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 16px;
        }
        
        .feedback-content {
            background: var(--bg-base);
            padding: 20px;
            border-radius: var(--radius-M);
            margin-bottom: 16px;
            font-size: 17px;
            line-height: 1.7;
        }
        
        .feedback-tip {
            background: linear-gradient(135deg, #667eea10, #764ba210);
            padding: 16px 20px;
            border-radius: var(--radius-M);
            margin-bottom: 24px;
            font-size: 14px;
            font-weight: 500;
            color: var(--primary);
        }
        
        .feedback-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .feedback-buttons-row {
            display: flex;
            gap: 12px;
        }
        
        .btn-feedback {
            flex: 1;
            padding: 16px;
            border-radius: var(--radius-M);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }
        
        .btn-feedback.primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-feedback.secondary {
            background: var(--bg-base);
            color: var(--text-main);
        }
        
        .btn-feedback.tertiary {
            background: var(--white);
            color: var(--text-sub);
            border: 1px solid var(--line);
        }
        
        .btn-feedback.tertiary:hover {
            background: var(--bg-base);
            color: var(--text-main);
        }
        
        /* ========================================
           결과 화면 - 성취감
           ======================================== */
        .result-container {
            padding: 60px 20px;
            text-align: center;
        }
        
        .result-trophy {
            font-size: 80px;
            margin-bottom: 24px;
            animation: bounce 0.6s ease;
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        
        .result-title {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 8px;
        }
        
        .result-score {
            font-size: 56px;
            font-weight: 800;
            color: var(--accent);
            margin-bottom: 8px;
        }
        
        .result-message {
            font-size: 16px;
            color: var(--text-sub);
            margin-bottom: 40px;
            line-height: 1.7;
            white-space: pre-line;
        }
        
        .result-xp {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, var(--accent), #D4AF37);
            color: white;
            padding: 12px 24px;
            border-radius: 24px;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            animation: xpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        @keyframes xpPop {
            0% { transform: scale(0); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        /* 경험치 획득 화면 효과 */
        .xp-celebration-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10000;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .xp-celebration-content {
            text-align: center;
            animation: xpCelebration 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        .xp-celebration-text {
            font-size: 64px;
            font-weight: 800;
            background: linear-gradient(135deg, #FFD700, #FFA500, #FF6B6B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
            margin-bottom: 16px;
            line-height: 1.2;
        }
        
        .xp-celebration-subtitle {
            font-size: 24px;
            color: var(--accent);
            font-weight: 600;
            opacity: 0;
            animation: xpFadeIn 0.5s ease-out 0.5s forwards;
        }
        
        @keyframes xpCelebration {
            0% {
                transform: scale(0) rotate(-180deg);
                opacity: 0;
            }
            50% {
                transform: scale(1.2) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }
        
        @keyframes xpFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 별 파티클 효과 */
        .xp-star {
            position: absolute;
            font-size: 24px;
            color: #FFD700;
            animation: starFloat 2s ease-out forwards;
            pointer-events: none;
        }
        
        @keyframes starFloat {
            0% {
                opacity: 1;
                transform: translate(0, 0) scale(1) rotate(0deg);
            }
            100% {
                opacity: 0;
                transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
            }
        }
        
        .result-stats {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 24px;
            padding: 16px 32px;
            background: var(--bg-base);
            border-radius: var(--radius-M);
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        
        .stat-label {
            font-size: 12px;
            color: var(--text-sub);
        }
        
        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
        }
        
        .stat-divider {
            width: 1px;
            height: 40px;
            background: var(--line);
        }
        
        .next-module-card {
            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
            border: 2px solid #81C784;
            border-radius: var(--radius-L);
            padding: 20px;
            margin-bottom: 24px;
            animation: slideUp 0.5s ease;
        }
        
        @keyframes slideUp {
            0% { transform: translateY(20px); opacity: 0; }
            100% { transform: translateY(0); opacity: 1; }
        }
        
        .next-module-badge {
            display: inline-block;
            background: #4CAF50;
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .next-module-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 4px;
        }
        
        .next-module-desc {
            font-size: 14px;
            color: var(--text-sub);
        }
        
        .weak-points-card {
            background: var(--white);
            border-radius: var(--radius-M);
            padding: 20px;
            margin-bottom: 24px;
            text-align: left;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        }
        
        .weak-points-card h4 {
            font-size: 14px;
            color: var(--text-sub);
            margin-bottom: 12px;
        }
        
        .weak-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
            background: var(--bg-base);
            border-radius: var(--radius-S);
            margin-bottom: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .weak-item:active {
            background: var(--line);
        }
        
        .weak-item i {
            color: #ef4444;
        }

/* ========================================
   Utility & lesson content classes
   ======================================== */

.section-badge--muted {
    background: var(--text-sub);
}

.text-sub-sm {
    font-size: 13px;
    color: var(--text-sub);
}

.module-card--center {
    justify-content: center;
}

.text-muted-md {
    color: var(--text-sub);
    font-size: 14px;
}

.text-dimmed {
    opacity: 0.7;
}

.btn-full-mb {
    width: 100%;
    margin-bottom: 12px;
}

.lesson-p-center-lg {
    text-align: center;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.lesson-text-success {
    color: #22c55e;
}

.lesson-text-danger {
    color: #ef4444;
}

.lesson-code-danger {
    color: #ef4444;
}

.lesson-code-success {
    color: #22c55e;
    font-weight: 700;
}

.lesson-p-mt-sm {
    margin-top: 8px;
}

.lesson-p-mt-md {
    margin-top: 12px;
}

.lesson-p-center-md {
    font-size: 18px;
    text-align: center;
    font-weight: 700;
}

.lesson-p-center-base {
    text-align: center;
    font-size: 16px;
}

.lesson-p-center-bold {
    text-align: center;
    font-weight: 700;
}

.game-table--fixed {
    table-layout: fixed;
}

.col-w25 { width: 25%; }
.col-w48 { width: 48%; }
.col-w27 { width: 27%; text-align: center; }
.col-w50 { width: 50%; }
.td-center { text-align: center; }

.lesson-code-lg {
    font-size: 16px;
}

.hr-compact {
    margin: 8px 0;
}

.math-box--highlight {
    background: #f0f9ff;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    margin: 16px 0;
}

.math-box__title {
    font-size: 1.2em;
    margin: 0;
}

/* XP Help Modal */
.xp-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.xp-help-dialog {
    background: var(--surface, white);
    max-width: 380px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}

.xp-help-header {
    background: linear-gradient(135deg, #B89E5F 0%, #D4AF37 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-help-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.xp-help-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.xp-help-body {
    padding: 20px;
    background: var(--surface, white);
}

.xp-help-intro p {
    color: var(--text-main, #333);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.xp-help-intro strong {
    color: #D4AF37;
}

.xp-help-rewards {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.xp-help-rewards h4 {
    color: #1a3a5c;
    font-size: 14px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.xp-help-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xp-help-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--surface, white);
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.xp-help-item span {
    font-size: 13px;
    color: var(--text-main, #333);
}

.xp-help-item .xp-value {
    font-weight: 600;
    color: #D4AF37;
}

.xp-help-item .xp-value--minus {
    color: #DC2626;
}

.xp-help-tip {
    background: #FEF9E7;
    border: 1px solid #F9E79F;
    border-radius: 12px;
    padding: 14px;
}

.xp-help-tip p {
    font-size: 12px;
    color: #8B7355;
    line-height: 1.6;
    margin: 0;
}

.xp-help-footer {
    padding: 16px 20px;
    border-top: 1px solid #E5E7EB;
    background: var(--surface, white);
}

.xp-help-footer .btn-confirm {
    width: 100%;
    padding: 14px;
    background: #1a3a5c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
