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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 标题区 */
.header {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* 爬山场景 */
.mountain-scene {
    background: linear-gradient(to bottom, 
        #87CEEB 0%, 
        #87CEEB 30%, 
        #98D8C8 60%, 
        #6BCF7F 100%);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 20px;
    position: relative;
    height: 500px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
}

/* 山顶奖励 */
.mountain-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.reward-icon {
    font-size: 4rem;
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.6));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.reward-icon:hover {
    transform: scale(1.1);
}

.reward-icon:active {
    animation: none;
    transform: scale(1.2) rotate(10deg);
}

.reward-label {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* 进度徽章（山顶）*/
.progress-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid #667eea;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
}

/* 爬山路径 */
.mountain-path {
    position: relative;
    height: 100%;
}

/* 进度线 */
.progress-line {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to top, #FFD700, transparent);
    height: 0%;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 奔奔角色 */
.character {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    transition: bottom 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    cursor: pointer;
}

.character-icon {
    font-size: 3rem;
    animation: climb 0.6s ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.character:hover .character-icon {
    transform: scale(1.1);
    animation: wave 0.6s ease-in-out;
}

.character:active .character-icon {
    transform: scale(0.95);
}

.character-name {
    background: #FF6B6B;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 对话气泡 */
.speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    border: 3px solid #667eea;
    border-radius: 20px;
    padding: 12px 20px;
    margin-bottom: 15px;
    min-width: 150px;
    max-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 30;
}

/* 气泡尾巴 */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #667eea;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.98);
    z-index: 1;
}

.speech-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.speech-text {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* 挥手动画 */
@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* 山体装饰 */
.mountain-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.mountain-layer {
    font-size: 4rem;
    opacity: 0.3;
    display: inline-block;
    margin: 0 -10px;
}

/* 山脚数据条 */
.mountain-stats {
    position: absolute;
    bottom: 120px;
    right: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 15;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.3);
    pointer-events: auto;
}

.mountain-stats:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-compact {
    color: #667eea;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-divider {
    display: none;
}

/* 起点 */
.start-point {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    z-index: 3;
}

/* 鼓励语 */
.encouragement {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF6B6B;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 30;
    white-space: nowrap;
}

.encouragement.show {
    animation: encouragementPop 3s ease-out forwards;
}

/* 氛围特效容器 */
.effects-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

/* 云朵特效 */
.cloud {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: cloudFloat 8s ease-in-out infinite;
}

/* 小鸟特效 */
.bird {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: birdFly 6s ease-in-out infinite;
}

/* 星星闪烁特效 */
.sparkle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: sparkleEffect 2s ease-out infinite;
}

/* 数据面板（隐藏，保留代码）*/
.stats-panel {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease-out;
}

.stats-panel-hidden {
    display: none;
}

.stats-panel h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-item-full {
    grid-column: 1 / -1;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-value span#totalKm,
.stat-value span#totalPoints {
    animation: numberChange 0.5s ease-out;
}

.stat-unit {
    font-size: 1rem;
    color: #999;
    margin-left: 5px;
}

/* 进度条 */
.progress-bar-container {
    background: #e0e0e0;
    border-radius: 25px;
    height: 40px;
    position: relative;
    margin-top: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    position: relative;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    width: 100%;
    text-align: center;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

/* 当进度条较宽时，文字变为白色 */
.progress-bar-container[data-progress-high] .progress-text {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 录入区域 */
.input-panel {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1.2s ease-out;
}

.input-panel h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#kmInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.3rem;
    border: 3px solid #667eea;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

#kmInput:focus {
    transform: scale(1.02);
    border-color: #764ba2;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.input-unit {
    font-size: 1.2rem;
    color: #666;
    font-weight: bold;
}

.submit-btn {
    padding: 15px 35px;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.input-tip {
    margin-top: 15px;
    color: #999;
    font-size: 0.95rem;
    text-align: center;
}

/* 功能按钮 */
.actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.reset-btn {
    color: #FF6B6B;
}

.export-btn {
    color: #4CAF50;
}

.import-btn {
    color: #2196F3;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-date {
    font-weight: bold;
    color: #667eea;
}

.history-data {
    color: #666;
}

.empty-history {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1rem;
}

/* 弹窗大尺寸（用于图表）*/
.modal-large {
    max-width: 900px;
    width: 95%;
}

/* 标签页导航 */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #f5f5f5;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    background: white;
    border-bottom-color: #667eea;
}

/* 标签页内容 */
.tab-content {
    display: none;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* 图表筛选器 */
.chart-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #667eea;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 15px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 350px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-container canvas {
    max-height: 100%;
}

/* 图表操作按钮 */
.chart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.chart-action-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chart-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.chart-action-btn:active {
    transform: translateY(0);
}

/* 统计摘要 */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-card-desc {
    font-size: 0.85rem;
    color: #999;
}

/* 全屏图表 */
.fullscreen-chart {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.fullscreen-chart.show {
    display: block;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.fullscreen-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.fullscreen-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.fullscreen-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fullscreen-body {
    padding: 20px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fullscreen-body canvas {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.fullscreen-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.fullscreen-stat-item {
    text-align: center;
    color: white;
}

.fullscreen-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fullscreen-stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 庆祝动画 */
.celebration {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.celebration.show {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.celebration-content {
    text-align: center;
    color: white;
    animation: celebrationBounce 1s ease-out;
}

.celebration-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: rotate 2s ease-in-out infinite;
}

.celebration-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.celebration-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* 烟花效果 */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.firework {
    position: absolute;
    font-size: 2rem;
    animation: fireworkExplode 1.5s ease-out forwards;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .mountain-scene {
        height: 400px;
    }

    .reward-icon {
        font-size: 3rem;
    }

    .character-icon {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .action-btn {
        width: 100%;
    }

    .mountain-stats {
        font-size: 0.85rem;
        padding: 10px 15px;
        gap: 8px;
        bottom: 80px;
        right: 10px;
        left: auto;
    }

    .stat-compact {
        font-size: 0.85rem;
    }

    .speech-bubble {
        max-width: 200px;
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .progress-badge {
        font-size: 1rem;
        padding: 6px 15px;
    }

    .modal-large {
        width: 98%;
        max-height: 90vh;
    }

    .tab-btn {
        font-size: 0.95rem;
        padding: 12px 8px;
    }

    .chart-container {
        height: 280px;
    }

    .chart-filters {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .chart-actions {
        flex-direction: column;
    }

    .chart-action-btn {
        width: 100%;
    }

    .stats-summary {
        grid-template-columns: 1fr;
    }

    .fullscreen-stats {
        flex-direction: column;
        gap: 15px;
    }

    .fullscreen-stat-value {
        font-size: 2rem;
    }
}

/* 动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

@keyframes climb {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes numberChange {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #FF6B6B;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes encouragementPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes cloudFloat {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes birdFly {
    0% {
        opacity: 0;
        transform: translate(-50px, 0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(150px, -80px);
    }
}

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

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fireworkExplode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1);
    }
}

