/* ==================== 教育游戏化系统（PRD v2.1） ==================== */

/* 玩家状态条 */
.game-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: var(--space-lg);
}
.game-avatar {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    overflow: hidden;
}
/* 导航栏乐高头像 */
.game-avatar .lego-avatar-head {
    position: relative;
    width: 42px; height: 34px;
}
.lego-avatar-stud {
    position: absolute;
    width: 9px; height: 6px;
    background: #fdd835;
    border-radius: 5px 5px 2px 2px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-face {
    position: absolute;
    width: 38px; height: 28px;
    background: #fdd835;
    border-radius: 7px;
    top: 6px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-eyes {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 7px;
}
.lego-avatar-eyes i {
    display: block;
    width: 4px; height: 4px;
    background: #333;
    border-radius: 50%;
}
.lego-avatar-mouth {
    position: absolute;
    bottom: 5px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 4px;
    border-bottom: 1.5px solid #333;
    border-radius: 0 0 5px 5px;
}
/* 头像头发 */
.lego-avatar-hair {
    position: absolute;
    z-index: 2;
}
.lego-avatar-hair.hair_01 { /* 帽子 */
    width: 36px; height: 10px;
    background: #e53935;
    border-radius: 16px 16px 2px 2px;
    top: 1px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_02 { /* 金发 */
    width: 36px; height: 12px;
    background: #ffb300;
    border-radius: 16px 16px 3px 3px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_03 { /* 卷发 */
    width: 38px; height: 14px;
    background: #5d4037;
    border-radius: 50%;
    top: -1px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_04 { /* 长发 */
    width: 36px; height: 22px;
    background: #d32f2f;
    border-radius: 16px 16px 2px 2px;
    top: -2px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_05 { /* 刺头 */
    width: 34px; height: 16px;
    background: #37474f;
    border-radius: 7px 7px 2px 2px;
    top: -2px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_06 { /* 双马尾 */
    width: 34px; height: 10px;
    background: #212121;
    border-radius: 16px 16px 2px 2px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}
/* 新发型-头像 */
.lego-avatar-hair.hair_07 { /* 海盗头巾 */
    width: 36px; height: 10px;
    background: #111;
    border-radius: 16px 16px 2px 2px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_08 { /* 骑士头盔 */
    width: 36px; height: 20px;
    background: linear-gradient(180deg, #b0bec5, #78909c);
    border-radius: 10px 10px 2px 2px;
    top: -4px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_09 { /* 巫师帽 */
    width: 18px; height: 20px;
    background: #1a237e;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: -6px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_10 { /* 维京头盔 */
    width: 36px; height: 14px;
    background: #6d4c41;
    border-radius: 10px 10px 2px 2px;
    top: -2px; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_11 { /* 探险帽 */
    width: 40px; height: 10px;
    background: #8d6e63;
    border-radius: 50%;
    top: 0; left: 50%;
    transform: translateX(-50%);
}
.lego-avatar-hair.hair_12 { /* 忍者面罩 */
    width: 36px; height: 18px;
    background: #212121;
    border-radius: 8px 8px 0 0;
    top: -2px; left: 50%;
    transform: translateX(-50%);
}
/* 头像表情变体 */
.lego-avatar-head.face_02 .lego-avatar-mouth { bottom: 3px; width: 12px; height: 4px; border-bottom-width: 2px; }
.lego-avatar-head.face_03 .lego-avatar-eyes i { width: 8px; height: 3px; background: #111; border-radius: 1px; }
.lego-avatar-head.face_03 .lego-avatar-mouth { width: 8px; border-radius: 0; }
.lego-avatar-head.face_04 .lego-avatar-eyes i { border: 1px solid #333; background: transparent; border-radius: 2px; }
/* 新表情-头像 */
.lego-avatar-head.face_05 .lego-avatar-eyes i:last-child { width: 5px; height: 1px; background: transparent; border-top: 1.5px solid #333; border-radius: 0; margin-top: 1px; }
.lego-avatar-head.face_06 .lego-avatar-eyes i { width: 5px; height: 5px; border: 1px solid #333; background: #fff; }
.lego-avatar-head.face_06 .lego-avatar-mouth { width: 5px; height: 5px; background: #333; border-radius: 50%; border-bottom: none; bottom: 2px; }
.lego-avatar-head.face_07 .lego-avatar-mouth { width: 8px; border-bottom: none; border-top: 1.5px solid #333; border-radius: 5px 5px 0 0; }
.lego-avatar-head.face_08 .lego-avatar-eyes i { width: 5px; height: 5px; }
.lego-avatar-head.face_08 .lego-avatar-mouth { width: 6px; }
.game-header-info { flex: 1; }
.game-grade { font-size: 1.3rem; font-weight: 700; }
.game-lead { font-size: 0.95rem; margin-top: 4px; opacity: 0.95; }
.game-lead.lead-positive { color: #ffe082; font-weight: 600; }
.game-currencies { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.currency { background: rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; }

/* 学期进度条 */
.semester-bar {
    position: relative;
    height: 28px;
    background: var(--bg-secondary, #eef0f4);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}
.semester-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #42d392, #647eff);
    border-radius: 14px;
    transition: width 0.6s ease;
}
.semester-bar-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 600; color: var(--text-primary, #333);
}
.exam-status { font-size: 0.85rem; color: var(--warning, #e6a23c); margin-left: 8px; }

/* 单元格 */
.unit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.unit-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600;
    cursor: default;
}
.unit-done { background: #42d392; color: #fff; }
.unit-active { background: #e8f0fe; color: #4a90d9; border: 2px solid #4a90d9; }
.unit-locked { background: var(--bg-secondary, #eef0f4); color: #bbb; }
.unit-makeup { background: #fdf0e5; color: #e6a23c; }
.unit-check { font-size: 1rem; }

/* 学期单元格：逐级放宽列数 */
@media (min-width: 480px) {
    .unit-grid { grid-template-columns: repeat(7, 1fr); }
}
@media (min-width: 768px) {
    .unit-grid { grid-template-columns: repeat(10, 1fr); gap: 8px; }
}
@media (min-width: 1280px) {
    .unit-grid { grid-template-columns: repeat(14, 1fr); }
}
@media (min-width: 1600px) {
    .unit-grid { grid-template-columns: repeat(18, 1fr); }
}

/* BOSS 卡片 */
.boss-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
@media (min-width: 480px) {
    .boss-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .boss-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
    .boss-row { grid-template-columns: repeat(4, 1fr); }
}

/* ---- 每日毒蛇（任务页每日 BOSS）；鳄鱼/巨蜥/龙王在闯关考试地图 ---- */
.boss-card-beast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 50%, #fecaca 100%);
    border: 2px solid #e74c3c;
    border-radius: var(--radius-lg, 12px);
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}
.boss-card-beast .boss-beast-sprite {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
}
.boss-card-beast .boss-beast-body {
    flex: 1;
    min-width: 0;
}
.boss-card-beast .boss-beast-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #7f1d1d;
}
.boss-card-beast .boss-hp-bar {
    max-width: 340px;
    margin-bottom: 4px;
}
.boss-card-beast .boss-beast-meta {
    font-size: 0.78rem;
    color: #991b1b;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.boss-card-beast .boss-beast-actions {
    flex-shrink: 0;
}
.boss-card-beast .boss-beast-actions .btn-primary {
    width: auto;
    padding: 8px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.boss-card-beast.boss-killed {
    opacity: 0.8;
    background: linear-gradient(135deg, #f0faf4, #d4edda);
    border-color: #42d392;
}
@media (max-width: 767px) {
    .boss-card-beast {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        gap: var(--space-sm);
    }
    .boss-card-beast .boss-beast-sprite { font-size: 2.5rem; }
    .boss-card-beast .boss-hp-bar { max-width: 100%; }
    .boss-card-beast .boss-beast-meta { justify-content: center; }
    .boss-card-beast .boss-beast-actions .btn-primary { width: 100%; }
}
.boss-cycle { font-size: 0.75rem; color: var(--text-light, #999); }
.boss-sprite { font-size: 2.5rem; margin: 8px 0; }
.boss-name { font-weight: 700; margin-bottom: 8px; }
.boss-hp-bar {
    height: 14px;
    background: #f0d5d5;
    border-radius: 7px;
    overflow: hidden;
}
.boss-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.4s ease;
}
.boss-hp-text { font-size: 0.8rem; margin: 6px 0; color: var(--text-light, #888); }
.boss-countdown { font-size: 0.75rem; color: var(--text-light, #aaa); margin-bottom: 6px; }

/* 今日攻击卡内：仅日/假期 BOSS 的紧凑待领奖入口 */
.today-boss-rewards { margin-top: 10px; display: grid; gap: 8px; }
.today-boss-reward {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    border: 1px solid #e7bd67; border-radius: 12px;
    background: linear-gradient(135deg, #fff9df, #fff0dc);
}
.today-boss-reward-art { width: 46px; height: 42px; flex: none; }
.today-boss-reward-art .aa-boss-svg { width: 46px; height: 42px; }
.today-boss-reward-text { flex: 1; min-width: 0; }
.today-boss-reward-text b, .today-boss-reward-text small { display: block; }
.today-boss-reward-text b { color: #80520a; font-size: 0.88rem; }
.today-boss-reward-text small { color: #9a742c; font-size: 0.75rem; }
.today-boss-reward .btn-small { width: auto; min-height: 40px; white-space: nowrap; }
button.is-loading { cursor: wait; opacity: .65; }

/* 背包装备来源与获取路径 */
.inv-source { margin-top: 4px; color: var(--text-light, #777); font-size: 0.72rem; line-height: 1.4; }
.inventory-empty { grid-column: 1 / -1; white-space: normal; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.inventory-empty-path { font-size: 0.82rem; line-height: 1.5; }
.inventory-empty .btn-small { width: auto; min-height: 38px; }
.loot-dismiss-hint { margin-top: 14px; color: var(--text-light, #999); font-size: 0.75rem; }

@media (max-width: 480px) {
    .today-boss-reward { flex-wrap: wrap; }
    .today-boss-reward .btn-small { width: 100%; }
}

/* ---- 本周挑战（今日任务页顶部：素养周任务列表 + 全完成特权卡奖励） ---- */
.weekly-card { border: 2px solid #f0c36d; background: linear-gradient(135deg, #fffaf0, #fff3dd); }
.weekly-card .card-title { color: #92600a; }
.weekly-row { display: flex; align-items: center; gap: var(--space-md); padding: 8px 0; border-top: 1px dashed #ecd9b0; flex-wrap: wrap; }
.weekly-row:first-child { border-top: none; padding-top: 0; }
.weekly-row-head { font-weight: 700; color: #7c5308; flex-shrink: 0; }
.weekly-text { color: var(--text-light, #888); }
.weekly-lit-list { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.weekly-lit-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); background: rgba(255, 255, 255, 0.7); border-radius: 8px; padding: 4px 10px; }
.weekly-lit-item.status-completed .weekly-lit-name,
.weekly-lit-item.status-exempted .weekly-lit-name { color: var(--text-light, #999); text-decoration: line-through; }
.weekly-lit-reward { font-size: 0.72rem; color: #b8860b; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.weekly-boss { display: flex; align-items: center; gap: var(--space-sm); flex: 1; justify-content: flex-end; flex-wrap: wrap; }

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

/* 今日任务 */
.game-task-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-sm);
    border-bottom: 1px solid var(--border-color, #f0f0f0);
}
.game-task-cat { font-size: 0.8rem; color: var(--text-light, #888); white-space: nowrap; }
.game-task-name { flex: 1; font-weight: 500; min-width: 0; }
.game-task-xp { font-size: 0.8rem; color: #4a90d9; font-weight: 600; white-space: nowrap; }
.game-task-coins { font-size: 0.8rem; color: #b8860b; font-weight: 600; white-space: nowrap; }
.game-task-coins.doubled { color: #e6a23c; }
.game-task-coins .double-tag {
    font-style: normal; font-size: 0.65rem; font-weight: 700;
    background: #e6a23c; color: #fff; border-radius: 4px;
    padding: 1px 4px; margin-left: 3px; vertical-align: 1px;
}
/* 完成按钮收窄，给任务名称留更多空间（覆盖 .btn-primary 的 width:100%） */
.game-task-item .btn-small {
    width: auto;
    padding: 2px 10px;
    min-height: 26px;
    white-space: nowrap;
    flex-shrink: 0;
}
.challenge-tag {
    background: #fdf0e5; color: #e67e22;
    font-size: 0.7rem; padding: 2px 6px; border-radius: 4px;
}
.task-badge { font-size: 0.8rem; padding: 4px 10px; border-radius: 12px; }
.task-badge.pending-review { background: #fdf0e5; color: #e6a23c; }
.task-badge.done { background: #f0faf4; color: #42d392; }
.task-badge.exempted { background: #ede9fe; color: #7c3aed; }   /* 免作业卡豁免 */
.empty-hint { text-align: center; color: var(--text-light, #aaa); padding: var(--space-lg); white-space: nowrap; }

/* 建档 */
.game-onboard-card { text-align: center; padding: var(--space-xl); }
.onboard-levels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: var(--space-md);
}
.onboard-level-btn {
    padding: 10px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.onboard-level-btn:hover { border-color: #667eea; color: #667eea; transform: translateY(-2px); }

/* 庆祝动画（3 秒内反馈） */
.celebrate-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}
.celebrate-overlay.show { opacity: 1; }
.celebrate-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 48px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
}
.celebrate-overlay.show .celebrate-box { transform: scale(1); }
.celebrate-emoji { font-size: 4rem; animation: celebrateBounce 0.6s; }
@keyframes celebrateBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.celebrate-title { font-size: 1.2rem; font-weight: 700; margin: 12px 0; }
.celebrate-item { font-size: 1rem; margin: 6px 0; color: #555; }
.celebrate-item.gold { color: #e6a23c; font-weight: 600; }
.loot-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.loot-card {
    padding: 10px 16px;
    border-radius: 10px;
    background: #f5f5f5;
    font-weight: 600;
}
.loot-card.rarity-blue { background: #e8f0fe; color: #4a90d9; }
.loot-card.rarity-purple { background: #f3e8fd; color: #9b59b6; }
.loot-card.rarity-orange { background: #fdeee0; color: #e67e22; }

/* 页内标签 */
.game-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-lg);
}
.game-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.game-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* ---- 今日任务页：BOSS 在任务列表上方 ---- */
.boss-row-daily {
    margin-bottom: var(--space-lg);
}

/* 每月 BOSS 样式（保留兼容旧卡片） */

/* 领先/落后标记 */
.lead-negative {
    color: var(--danger);
    font-weight: 600;
}

/* 单元进度百分比 */
.unit-pct {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-left: 4px;
}

/* BOSS 问答挑战弹窗 */
.boss-challenge-btn {
    width: auto !important;
    margin-top: 6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}
.boss-quiz-modal {
    background: var(--card-bg, #fff);
    border-radius: var(--radius-lg, 12px);
    max-width: 560px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.boss-quiz-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 20px var(--space-lg);
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
    text-align: center;
}
.boss-quiz-header h3 { margin: 4px 0; color: #fff; }
.boss-quiz-sprite { font-size: 2.5rem; display: block; }
.boss-quiz-hp { font-size: 0.85rem; opacity: 0.9; margin-top: 4px; }
.boss-quiz-body { padding: var(--space-md); max-height: 50vh; overflow-y: auto; }
.boss-quiz-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.boss-quiz-hint { font-size: 0.8rem; color: var(--text-light, #999); }
.boss-quiz-actions { display: flex; gap: 8px; }
.quiz-question-block {
    background: var(--surface, #fafafa);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}
.quiz-q-title { font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.quiz-options { display: flex; flex-direction: column; gap: 4px; }
.quiz-opt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.quiz-opt-label:hover { background: #ede9fe; }
.quiz-opt-label input[type="radio"] { accent-color: #667eea; }

/* 答题结果 */
.boss-quiz-result { padding: var(--space-lg); text-align: center; }
.quiz-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin: 12px 0;
}
.quiz-hp-bar {
    height: 14px;
    background: #f0d5d5;
    border-radius: 7px;
    overflow: hidden;
    margin: 8px auto;
    max-width: 300px;
}
.quiz-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.5s ease;
}
.quiz-hp-text { font-size: 0.8rem; color: var(--text-light, #888); margin-bottom: 12px; }
.quiz-details { text-align: left; margin: 12px 0; max-height: 30vh; overflow-y: auto; }
.quiz-result-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
    font-size: 0.85rem;
}
.quiz-result-item.correct { background: #f0faf4; padding: 6px 8px; border-radius: 6px; }
.quiz-result-item.wrong { background: #fef2f2; padding: 6px 8px; border-radius: 6px; }
.quiz-result-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.quiz-result-answer { color: #e74c3c; font-size: 0.8rem; margin-top: 2px; }

/* 知识棋盘卡片 */
.kp-board-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-md);
}

/* 编辑按钮 */
.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all 0.2s;
}
.btn-edit:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

/* 房间编辑器调色板 */
.palette-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.5rem;
}
.palette-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ==================== 响应式游戏页 ==================== */

/* 手机端（< 480px）：紧凑布局 */
@media (max-width: 480px) {
    .game-header {
        flex-wrap: wrap;
        padding: var(--space-sm);
        gap: var(--space-sm);
    }
    .game-avatar {
        width: 48px;
        height: 48px;
    }
    .game-grade {
        font-size: 1rem;
    }
    .game-lead {
        font-size: 0.8rem;
    }
    .game-currencies {
        width: 100%;
        gap: 4px;
    }
    .currency {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    /* 页内标签：横向滚动 */
    .game-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .game-tabs::-webkit-scrollbar { display: none; }
    .game-tab {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* 任务项允许换行 */
    .game-task-item {
        flex-wrap: wrap;
    }
    .game-task-item .btn-small {
        width: 100%;
        justify-content: center;
    }

    /* 建档按钮缩小 */
    .onboard-levels {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .onboard-level-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* 手机横屏 / 大屏手机（≥480px）：页内标签恢复正常 */
@media (min-width: 480px) {
    .game-tab {
        flex: 1;
    }
}

/* 平板（≥768px）: BOSS 卡片更宽松 */
@media (min-width: 768px) {
    .boss-card-dragon {
        padding: 24px 32px;
    }
    .boss-card-beast {
        padding: 16px 22px;
    }
}



/* 免写作业卡横幅（今日任务列表顶部） */
.exempt-card-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #FFF8E1;
    border: 1px solid #FFE0A3;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
/* 双倍金币卡生效横幅 */
.double-coins-banner {
    background: #fdf0e5;
    border-color: #f5c98a;
    color: #b8600b;
    font-weight: 600;
}
