/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 首页样式 */
.homepage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    background-image: url('background.jpg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.homepage-container {
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.homepage-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z' fill='%23e0f2fe'/%3E%3Cpath d='M0,80 C150,40 300,100 450,70 C600,40 750,100 900,70 C1050,40 1200,100 1200,120 L1200,120 L0,120 Z' fill='%23bae6fd'/%3E%3Cpath d='M0,90 C200,50 400,110 600,80 C800,50 1000,110 1200,80 L1200,120 L0,120 Z' fill='%2393c5fd'/%3E%3Cpath d='M0,100 C150,60 300,120 450,90 C600,60 750,120 900,90 C1050,60 1200,120 1200,120 L1200,120 L0,120 Z' fill='%2360a5fa'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 0;
}

.homepage-container > * {
    position: relative;
    z-index: 1;
}

.homepage-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.homepage-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.homepage-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.btn-primary:hover {
    background-color: #3182ce;
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 2px solid #ccc;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.btn-secondary:hover {
    border-color: #4299e1;
    color: #4299e1;
    background-color: #f0f8ff;
}

.btn-tertiary {
    background-color: #9f7aea;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
}

.btn-tertiary:hover {
    background-color: #805ad5;
    transform: translateY(-2px);
}

/* 关卡选择页面样式 */
.levels-page {
    min-height: 100vh;
    background-color: #f5f5f5;
    background-image: url('background.jpg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
}

.levels-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.levels-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.levels-title {
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.level-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #bfdbfe;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.level-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z' fill='%23e0f2fe'/%3E%3Cpath d='M0,80 C150,40 300,100 450,70 C600,40 750,100 900,70 C1050,40 1200,100 1200,120 L1200,120 L0,120 Z' fill='%23bae6fd'/%3E%3Cpath d='M0,90 C200,50 400,110 600,80 C800,50 1000,110 1200,80 L1200,120 L0,120 Z' fill='%2393c5fd'/%3E%3Cpath d='M0,100 C150,60 300,120 450,90 C600,60 750,120 900,90 C1050,60 1200,120 1200,120 L1200,120 L0,120 Z' fill='%2360a5fa'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.level-card > * {
    position: relative;
    z-index: 1;
}

.level-card:hover {
    border-color: #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
    transform: translateY(-2px);
}

.level-card.locked {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.level-card.locked:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.level-card.coming-soon {
    opacity: 0.7;
    cursor: default !important;
    border: 2px dashed #e2e8f0 !important;
    background-color: #f7fafc;
}

.level-card.coming-soon:hover {
    transform: none;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.lock-icon {
    font-size: 1.5rem;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.level-number {
    font-size: 1.2rem;
    color: #4299e1;
    font-weight: bold;
    margin-bottom: 10px;
}

.level-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}

.level-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.level-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.game-container {
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    text-align: center;
    background-image: url('111.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.game-container > .header-bar,
.game-container > .learning-area,
.game-container > .input-area,
.game-container > .controls {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.game-container > .keyboard-wrapper {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 标题样式 */
h1 {
    color: #4299e1;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* 顶部返回按钮（按钮在左侧） */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.level-title-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.header-bar .btn-back {
    position: absolute;
    left: 0;
}

.btn-back {
    background-color: #718096;
    font-size: 0.95rem;
    padding: 8px 16px;
    white-space: nowrap;
}

.btn-back:hover {
    background-color: #4a5568;
}

/* 学习区域样式 */
.learning-area {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 听力练习：答对后中文 / 英文 / 音标三行展示 */
.listening-answer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.listening-cn-text {
    font-size: 2.2rem;
    font-weight: bold;
    color: #222;
    margin-top: 10px;
    margin-bottom: 4px;
}

.listening-english-text {
    font-size: 1.6rem;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 4px;
}

.listening-ipa-text {
    font-size: 1.2rem;
    color: #4a5568;
}

.character-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.pinyin-display {
    display: none; /* 隐藏独立的拼音显示区域 */
}

.char-with-pinyin {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 2px;
    vertical-align: baseline;
    min-width: 1.8em;
    max-width: 2em;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 0;
    height: auto;
    position: relative;
}

.pinyin-syllable {
    font-size: 0.65rem;
    line-height: 1.2;
    padding: 0;
    margin: 0;
    min-height: 1.2em;
    color: #666;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    overflow: visible;
    display: block;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pinyin-syllable.highlighted {
    background-color: #90EE90; /* 浅绿色 */
    border-radius: 2px;
}

.pinyin-syllable.current {
    background-color: #FFA500; /* 橙色 */
    border-radius: 2px;
}

.character-display-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    min-height: 5rem;
    line-height: 1.4;
    align-items: baseline;
    width: 100%;
}

.word-span {
    display: inline-flex;
    gap: 0;
    transition: background-color 0.2s ease;
}

.word-span.word-completed {
    background-color: #90EE90; /* 浅绿色，表示单词已完成 */
    border-radius: 4px;
    padding: 2px 4px;
}

.word-space {
    display: inline-block;
    width: 0.5em;
}

.character-char {
    padding: 0;
    margin: 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: inline; /* 默认 inline，用于英文单词 */
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    flex-shrink: 0;
}

/* 中文模式下，字符需要 block 显示（在 char-with-pinyin 容器内） */
.char-with-pinyin .character-char {
    display: block;
    width: 100%;
    text-align: center;
    height: 1.2em;
}

.character-char.highlighted {
    background-color: #90EE90; /* 浅绿色 */
}

.character-char.current {
    background-color: #FFA500; /* 橙色 */
}

.character-char.highlighted {
    background-color: #90EE90; /* 浅绿色 */
}

.character-char.current {
    background-color: #FFA500; /* 橙色 */
}

/* 按钮样式 */
.btn {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.btn:hover {
    background-color: #3182ce;
}

.btn.active {
    background-color: #2c5282;
}

/* 输入区域样式 */
.input-area {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#input {
    width: 300px;
    padding: 10px;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto;
}

.feedback {
    margin-top: 10px;
    font-size: 1.1rem;
    min-height: 24px;
    text-align: center;
    width: 100%;
}

.feedback.correct {
    color: #38a169;
}

.feedback.error {
    color: #e53e3e;
}

/* 候选字/词选择区域 */
.candidate-selection {
    margin-top: 15px;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.candidate-prompt {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 500;
}

.candidate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.candidate-item {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    color: #2d3748;
}

.candidate-item:hover {
    background-color: #edf2f7;
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.candidate-item.selected {
    background-color: #4299e1;
    color: white;
    border-color: #3182ce;
}

.candidate-item.correct {
    background-color: #48bb78;
    color: white;
    border-color: #38a169;
}

.candidate-item.wrong {
    background-color: #f56565;
    color: white;
    border-color: #e53e3e;
}

/* 控制区域样式 */
.controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 键盘切换样式 */
.keyboard-toggle {
    margin-bottom: 20px;
}

/* 键盘和统计信息包装器 */
.keyboard-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 100%;
}

/* 虚拟键盘样式 */
.keyboard-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    gap: 4px;
}

.keyboard-key {
    min-width: 45px;
    height: 45px;
    border: 2px solid #999;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    background-color: white;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.keyboard-key:hover {
    background-color: #e8e8e8;
}

.keyboard-key.key-wide {
    min-width: 80px;
}

.keyboard-key.key-extra-wide {
    min-width: 300px;
}

.keyboard-key.home-key {
    background-color: #e8f4f8;
    border-color: #4299e1;
}

.keyboard-key small {
    position: absolute;
    bottom: 2px;
    font-size: 8px;
    color: #666;
}

/* 高亮样式 */
.keyboard-key.highlight {
    background-color: #4299e1;
    color: white;
    border-color: #2c5282;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.4);
}

/* 持续高亮样式（按键按下时） */
.keyboard-key.highlight-active {
    background-color: #4299e1 !important;
    color: white !important;
    border-color: #2c5282 !important;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.6);
}

/* 手部轮廓覆盖层 */
.hands-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    display: none;
}

.left-hand, .right-hand {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
}

.left-hand {
    left: 0;
}

.right-hand {
    right: 0;
}

.finger {
    position: absolute;
    width: 30px;
    height: 40px;
    border: 2px dashed #4299e1;
    border-radius: 50%;
    opacity: 0.3;
    background-color: rgba(66, 153, 225, 0.1);
}

.finger-pinky {
    width: 25px;
    height: 35px;
}

.finger-ring {
    width: 28px;
    height: 38px;
}

.finger-middle {
    width: 30px;
    height: 42px;
}

.finger-index {
    width: 28px;
    height: 40px;
}

.finger-thumb {
    width: 35px;
    height: 30px;
    border-radius: 50% 20% 20% 50%;
}

/* 响应式设计 */
@media (max-width: 750px) {
    .game-container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }

    .header-bar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .header-bar .btn-back {
        font-size: 0.85rem;
        padding: 6px 12px;
        position: absolute;
        left: 0;
    }
    
    #character {
        font-size: 3rem;
    }
    
    #pinyin {
        font-size: 1.2rem;
    }
    
    #input {
        width: 250px;
    }
    
    /* 字符显示响应式 */
    .character-display-text {
        font-size: 1.5rem;
    }
    
    .character-char {
        font-size: 1.5rem;
    }
    
    .char-with-pinyin {
        width: 1.3em;
        margin: 0 2px;
    }
    
    .pinyin-syllable {
        font-size: 0.6rem;
    }
    
    /* 26键键盘手机适配 */
    .keyboard-26 .keyboard-key {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .keyboard-26 .keyboard-key[data-value="backspace"] {
        width: 60px;
    }
    
    /* 首页响应式 */
    .homepage-title {
        font-size: 2rem;
    }
    
    .homepage-intro {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .homepage-buttons {
        max-width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        max-width: 100%;
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* 关卡选择页面响应式 */
    .levels-title {
        font-size: 1.4rem;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .level-card {
        padding: 20px;
    }
    
}

@media (max-width: 375px) {
    .keyboard-key {
        min-width: 25px;
        height: 30px;
        font-size: 10px;
    }
    
    .keyboard-key.key-wide {
        min-width: 50px;
    }
    
    .keyboard-key.key-extra-wide {
        min-width: 150px;
    }
    
    .keyboard {
        padding: 8px;
    }
    
    .finger {
        width: 20px;
        height: 25px;
    }
    
}

/* 统计信息显示区域（键盘右侧） */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    min-width: 150px;
}

.stats-item {
    text-align: center;
}

.stats-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stats-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 听力练习提示样式 */
.listening-hints {
    width: 100%;
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f0f9ff;
    border: 2px solid #93c5fd;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1e40af;
}

.hint-key {
    background-color: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hint-text {
    color: #1e40af;
    font-weight: 500;
}

/* 结果页面样式 */
.result-page {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: white !important;
    z-index: 10000 !important;
    display: none; /* 默认隐藏，通过 JavaScript 控制显示 */
    justify-content: center;
    align-items: center;
}

.result-container {
    max-width: 800px;
    width: 90%;
    padding: 40px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 星星评分 */
.stars-container {
    margin-bottom: 40px;
}

.star {
    font-size: 40px;
    margin: 0 5px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.star.active {
    opacity: 1;
}

/* 仪表盘容器 */
.gauges-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
    }
    
.gauge {
    position: relative;
}

.gauge-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-background {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.gauge-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

#accuracy-progress {
    stroke: #4299e1;
}

#time-progress {
    stroke: #48bb78;
    stroke-dasharray: 0 314;
}

#speed-progress {
    stroke: #4299e1;
    stroke-dasharray: 0 314;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.gauge-label {
    font-size: 14px;
    color: #666;
}

/* 积分显示 */
.points-display {
    font-size: 18px;
    color: #333;
    margin: 40px 0;
}

.points-display span {
    font-size: 32px;
    font-weight: bold;
    color: #4299e1;
}

/* 结果页面按钮 */
.result-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.btn-retry {
    background-color: #e0e0e0;
    color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    flex: 0 0 auto;
}

.btn-retry:hover {
    background-color: #d0d0d0;
}

.btn-next {
    background-color: #4299e1;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    flex: 0 0 auto;
}

.btn-next:hover {
    background-color: #3182ce;
}

.encouragement-text {
    flex: 1;
    text-align: center;
    color: #333;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gauges-container {
        gap: 20px;
    }
    
    .gauge-circle {
        width: 120px;
        height: 120px;
    }
    
    .gauge-number {
        font-size: 24px;
    }
    
    .result-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .encouragement-text {
        order: -1;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
}