* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #B0E0E6 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.game-header {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-bottom: 3px solid #4A90D9;
}

.game-header h1 {
    text-align: center;
    color: #2C5F8A;
    font-size: 24px;
    margin-bottom: 15px;
}

.stats-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.stat-bar {
    flex: 1;
    height: 16px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease, background-color 0.3s ease;
}

#hunger-bar {
    background: linear-gradient(90deg, #FF6B6B, #FF8E8E);
}

#happiness-bar {
    background: linear-gradient(90deg, #FFD93D, #FFE66D);
}

#cleanliness-bar {
    background: linear-gradient(90deg, #4ECDC4, #6EE7DE);
}

#energy-bar {
    background: linear-gradient(90deg, #A66CFF, #C49CFF);
}

.stat-value {
    width: 40px;
    text-align: right;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.level-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding-top: 5px;
}

.level-info strong {
    color: #4A90D9;
}

.daily-exp {
    margin-top: 10px;
    padding: 0 20px;
}

.daily-exp > span {
    display: block;
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.daily-exp strong {
    color: #4A90D9;
}

.daily-exp-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.daily-exp-progress {
    height: 100%;
    background: linear-gradient(90deg, #4A90D9, #67B279);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.game-main {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.environment {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
}

.water {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(100, 180, 220, 0.6) 0%, rgba(60, 140, 180, 0.8) 100%);
    animation: waterWave 3s ease-in-out infinite;
}

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

.ice-floor {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 80px;
    background: linear-gradient(180deg, #FAFBFC 0%, #E8F4FC 50%, #D0E8F8 100%);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -5px 20px rgba(255, 255, 255, 0.5);
}

.seal-container {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.seal {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 200px;
    height: 200px;
    background-image: url('seal.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.seal:hover {
    transform: scale(1.05);
}

/* 隐藏原来的CSS海豹元素 */
.seal-body,
.seal-flipper,
.seal-tail {
    display: none;
}

.seal.bouncing {
    animation: bounce 0.5s ease;
}

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

.seal.wiggling {
    animation: wiggle 0.5s ease;
}

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

.speech-bubble {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: bubblePop 0.3s ease;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

@keyframes bubblePop {
    0% { transform: translateX(-50%) scale(0); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.effect-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.effect {
    position: absolute;
    font-size: 30px;
    animation: floatUp 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-80px) scale(1.5); }
}

.game-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-top: 3px solid #4A90D9;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #4A90D9;
}

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

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.btn-text {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.game-log {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    min-height: 50px;
    max-height: 80px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.game-log p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.game-log p:not(:last-child) {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 480px) {
    .game-container {
        border-radius: 0;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .action-btn {
        padding: 10px 5px;
    }
    
    .btn-icon {
        font-size: 24px;
    }
    
    .btn-text {
        font-size: 11px;
    }
}