:root {
    /* ===== 默认琥珀主题 (Amber) ===== */
    /* 背景色系 */
    --bg-color: #fefce8; /* 温暖的浅黄背景 */
    --panel-bg: #ffffff;
    --grid-bg: #d4a574; /* 棋盘底色 - 木质感 */
    --grid-border: #b8956e;
    --cell-bg: #f5e6d3; /* 格子底色 */
    
    /* 主色系 */
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --primary-light: #fffbeb;
    --primary-shadow: rgba(245, 158, 11, 0.3);
    
    /* 辅助色 */
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --accent-green: #10b981;
    
    /* 文字色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    
    /* 高亮色 - 用于有效单词和交叉点 */
    --highlight-valid: #3b82f6;
    --highlight-valid-bg: #eff6ff;
    --highlight-cross: #f97316;
    --highlight-buff: #10b981;
    
    /* 尺寸 */
    --cell-size: 44px;
    --gap-size: 6px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* ===== 玫瑰主题 (Rose) ===== */
[data-theme="rose"] {
    /* 背景色系 */
    --bg-color: #fdf2f8; /* 浅粉背景 */
    --grid-bg: #f9a8d4; /* 棋盘底色 - 粉色 */
    --grid-border: #ec4899;
    --cell-bg: #fce7f3;
    
    /* 主色系 */
    --primary-color: #ec4899;
    --primary-hover: #db2777;
    --primary-light: #fdf2f8;
    --primary-shadow: rgba(236, 72, 153, 0.3);
    
    /* 辅助色 */
    --accent-color: #a855f7;
    
    /* 高亮色 */
    --highlight-valid: #a855f7;
    --highlight-valid-bg: #faf5ff;
    --highlight-cross: #f472b6;
    --highlight-buff: #14b8a6;
}

/* ===== 天空主题 (Sky) ===== */
[data-theme="sky"] {
    /* 背景色系 */
    --bg-color: #f0f9ff; /* 浅蓝背景 */
    --grid-bg: #7dd3fc; /* 棋盘底色 - 天蓝 */
    --grid-border: #0ea5e9;
    --cell-bg: #e0f2fe;
    
    /* 主色系 */
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: #f0f9ff;
    --primary-shadow: rgba(14, 165, 233, 0.3);
    
    /* 辅助色 */
    --accent-color: #06b6d4;
    
    /* 高亮色 */
    --highlight-valid: #06b6d4;
    --highlight-valid-bg: #ecfeff;
    --highlight-cross: #38bdf8;
    --highlight-buff: #22c55e;
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none; /* 去除默认轮廓 */
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* 现代无衬线字体 */
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--panel-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Header */
.game-header {
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px); /* 毛玻璃效果 */
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-secondary {
    background: #f1f5f9; /* 极浅灰 */
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-secondary:active {
    transform: scale(0.96);
}

.stats-panel {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.stat-box {
    background: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.2s;
}

.money-box {
    color: var(--primary-color);
    min-width: 80px;
    font-size: 18px;
    gap: 6px;
}
.money-box .icon {
    font-size: 20px;
}

.score-box {
    flex-grow: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 16px;
}

.score-box .label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.score-box .value {
    font-size: 16px;
    color: var(--text-primary);
}

.score-box .value span {
    font-variant-numeric: tabular-nums; /* 数字等宽，防止跳动 */
}

/* Trinket Panel */
.trinket-panel {
    display: flex;
    gap: 6px;
    background: var(--primary-light);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0,0,0,0.05);
    align-items: center;
}

.trinket-slot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 14px;
    transition: all 0.2s;
}

.trinket-slot:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Shop Section */
.shop-section {
    padding: 16px 20px;
    background-color: #ffffff;
    /* 去除边框，使用间距区分 */
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Shop Tabs */
.shop-tabs {
    display: flex;
    gap: 12px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn-small {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-small.hidden {
    display: none;
}

.btn-small:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-md);
}

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

.shop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    background: var(--primary-light); /* 使用主题浅色 */
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    min-height: 80px;
}

.shop-slot {
    width: var(--cell-size);
    height: var(--cell-size);
    flex: 0 0 calc(20% - 8px); /* 5 columns roughly */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Grid Section */
.grid-section {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--bg-color); /* 使用主题背景色 */
    overflow-y: auto;
}

.grid-container {
    display: grid;
    gap: var(--gap-size);
    /* 材质感拼词盘 - 使用主题色 */
    background-color: var(--grid-bg);
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0.15)), 
        linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0.15));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 8px 20px -4px rgba(0, 0, 0, 0.15),
        0 0 0 4px var(--grid-border); /* 使用主题边框色 */
    
    border: 1px solid var(--grid-border);
}

.grid-cell {
    width: var(--cell-size);
    height: var(--cell-size);
    background-color: var(--cell-bg); /* 使用主题格子色 */
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Letter Card - Modern Flat Style */
.letter-card {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0; /* 极细边框 */
    border-bottom-width: 3px; /* 保留一点点立体感，但更精致 */
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    /* 移除通用 transition，防止拖拽迟滞。只针对特定属性做动画 */
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s; 
    font-family: "Varela Round", "Arial Rounded MT Bold", sans-serif; /* 圆润字体 */
    will-change: transform; /* 性能优化 */
}

.letter-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.letter-card:active {
    cursor: grabbing;
    transform: translateY(0);
    border-bottom-width: 1px; /* 按压效果 */
    box-shadow: var(--shadow-sm);
}

/* Letter Card - Modern Flat Style */
.letter-card {
    /* ... 保持不变 */
}

/* ... */

.letter-card.ghost {
    width: 54px;
    height: 54px;
    /* font-size: 28px;  移除这个，让内部 span 控制字体 */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    z-index: 9999;
    border-radius: var(--radius-md);
    transition: none; /* 必须禁止动画，确保绝对跟手 */
}

/* 专门为 ghost 调整内部字体大小 */
.letter-card.ghost .char {
    font-size: 28px; /* 放大字体 */
}

.letter-card.ghost .score {
    font-size: 12px; /* 稍微放大小分 */
    right: 6px;
    bottom: 4px;
}

.letter-card .char {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.letter-card .score {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.price-tag {
    font-size: 11px;
    color: var(--primary-color);
    margin-top: 4px;
    font-weight: 700;
}

/* Valid Word Highlight */
.letter-card.valid-word {
    background-color: var(--highlight-valid-bg);
    border-color: var(--highlight-valid);
    color: var(--highlight-valid);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    z-index: 5;
}
.letter-card.valid-word .char {
    color: var(--highlight-valid);
}
.letter-card.valid-word .score {
    color: var(--highlight-valid);
    opacity: 0.6;
}

/* Buffed Score Highlight (Green) */
.score.buffed {
    color: var(--highlight-buff) !important;
    font-weight: 800;
}

/* Cross Highlight (Orange Glow) */
.letter-card.cross-highlight {
    box-shadow: 0 0 8px 2px var(--highlight-cross);
    border-color: var(--highlight-cross);
    z-index: 6;
}

/* Footer */
.game-footer {
    padding: 16px 20px;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    z-index: 10;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--primary-shadow); /* 使用主题阴影色 */
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--primary-shadow);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px var(--primary-shadow);
}

.btn-primary .icon {
    font-weight: bold;
    font-size: 18px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: rgba(31, 41, 55, 0.4); /* 深色半透明背景 */
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s;
    visibility: visible;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-content {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: none;
    width: 90%;
    max-width: 440px;
    max-height: 85vh; /* 限制高度，防止遮挡全部背景 */
    display: flex;
    flex-direction: column; /* 确保 header/footer 固定，中间滚动 */
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    background: #ffffff;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* 防止被压缩 */
}
.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 20px;
    border: none;
    cursor: pointer;
}
.btn-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

/* Dictionary Specific */
.search-bar {
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.search-input-group {
    display: flex;
    gap: 8px;
}

.search-select {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.search-select:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.search-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
    font-size: 14px;
}
.search-bar input:focus {
    background: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dict-results {
    flex-grow: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    /* 滚动条美化 */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.dict-item {
    padding: 10px 20px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    flex-direction: row; /* 水平排列，更紧凑 */
    align-items: baseline;
    gap: 12px;
    transition: background-color 0.1s;
}

.dict-item:hover {
    background-color: #f8fafc;
}

.dict-word {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit; 
    min-width: 80px; /* 稍微对齐 */
}

.dict-meaning {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    flex-grow: 1;
}

.dict-footer {
    padding: 10px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    text-align: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* Help Modal Styles */
.help-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    color: var(--text-primary);
    line-height: 1.6;
}

.help-section {
    margin-bottom: 24px;
}

.help-section h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-section p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.help-section ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.help-section li {
    margin-bottom: 6px;
}

.help-section.highlight {
    background: #fffbeb; /* 浅琥珀色背景 */
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #fcd34d;
}

.formula-box {
    background: rgba(255,255,255,0.6);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 13px;
}
.formula-box p {
    margin-bottom: 4px;
    color: var(--text-primary);
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

/* 响应式微调 */
@media (min-width: 480px) {
    :root {
        --cell-size: 50px;
    }
}

/* Relic System Styles */
.relic-modal-content {
    background-color: #f8fafc; /* 浅灰背景区分 */
}

.relic-options-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.relic-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.relic-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.relic-card:active {
    transform: scale(0.98);
}

.relic-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 2px solid transparent;
}

/* Rarity Colors */
.relic-card.common .relic-icon-wrapper {
    background: #e2e8f0;
    color: #475569;
}
.relic-card.rare .relic-icon-wrapper {
    background: #dbeafe;
    color: #2563eb;
    border-color: #93c5fd;
}
.relic-card.epic .relic-icon-wrapper {
    background: #fce7f3;
    color: #db2777;
    border-color: #f9a8d4;
}
.relic-card.legendary .relic-icon-wrapper {
    background: #fef3c7;
    color: #d97706;
    border-color: #fcd34d;
}

.relic-info {
    flex-grow: 1;
}

.relic-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.relic-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
}

.relic-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 顶部栏的小图标 */
.trinket-slot img, .trinket-slot .icon-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.trinket-slot.has-relic {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    cursor: help; /* 提示可以查看详情 */
}
.trinket-slot.has-relic:hover {
    border-color: var(--primary-color);
}


/* Tile Multipliers */
.grid-cell.dl { background-color: #bfdbfe; border: 2px solid #60a5fa; } /* Blue */
.grid-cell.tl { background-color: #93c5fd; border: 2px solid #2563eb; } /* Darker Blue */
.grid-cell.dw { background-color: #fca5a5; border: 2px solid #ef4444; } /* Red */
.grid-cell.tw { background-color: #f87171; border: 2px solid #b91c1c; } /* Darker Red */

.grid-cell[data-label]::before {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 0;
}

/* ===== Victory Modal Styles (胜利界面样式) ===== */
.victory-content {
    max-width: 400px;
    text-align: center;
    background: linear-gradient(135deg, var(--panel-bg) 0%, var(--primary-light) 100%);
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.victory-header {
    padding: 30px 20px 20px;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
}

.victory-icon {
    font-size: 64px;
    margin-bottom: 10px;
    animation: bounce 1s ease infinite;
}

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

.victory-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px var(--primary-shadow);
}

.victory-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.victory-body {
    padding: 20px 30px;
}

.victory-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.victory-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.victory-footer {
    padding: 20px;
}

.btn-victory {
    font-size: 18px;
    padding: 16px 32px;
}

/* ===== Round Progress Display (关卡进度显示) ===== */
.round-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.05);
}

.round-indicator .round-label {
    color: var(--text-secondary);
}

.round-indicator .round-current {
    color: var(--primary-color);
    font-weight: 700;
}

.round-indicator .round-max {
    color: var(--text-secondary);
}
