/**
 * Virtual Pet Styles - 电子宠物样式
 * 
 * Mobile-first responsive design for the virtual pet feature
 */

/* ===== PET CONTAINER ===== */
.virtual-pet-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* Only show pet container in child mode */
body:not(.child-mode) .virtual-pet-container {
    display: none;
}

/* ===== FLOATING PET ICON ===== */
.pet-floating {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
    transition: all 0.3s ease;
    animation: pet-float 3s ease-in-out infinite;
}

.pet-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.5);
}

.pet-floating.pet-active {
    animation: pet-bounce 0.5s ease infinite;
}

.floating-pet-emoji {
    font-size: 32px;
    line-height: 1;
}

.floating-pet-emoji.dead {
    filter: grayscale(100%);
}

/* Float animation */
@keyframes pet-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Bounce animation */
@keyframes pet-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== PET PANEL ===== */
.virtual-pet-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.virtual-pet-container.show-panel .virtual-pet-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

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

.pet-title {
    font-size: 16px;
    font-weight: 600;
}

.pet-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

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

/* Pet Content */
.pet-content {
    padding: 16px;
}

/* ===== ADOPTION UI ===== */
.pet-adoption {
    text-align: center;
}

.adoption-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.adoption-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.pet-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pet-adopt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pet-adopt-btn:hover {
    background: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pet-adopt-btn .pet-emoji {
    font-size: 28px;
    margin-bottom: 4px;
}

.pet-adopt-btn .pet-name {
    font-size: 12px;
    color: #333;
}

/* ===== DEAD PET UI ===== */
.pet-dead {
    text-align: center;
    padding: 20px 0;
}

.pet-dead-emoji {
    font-size: 48px;
    margin-bottom: 12px;
    filter: grayscale(100%);
}

.pet-dead-name {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.pet-dead-message {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ===== ALIVE PET UI ===== */
.pet-alive {
    text-align: center;
}

.pet-display {
    margin-bottom: 16px;
}

.pet-main-emoji {
    font-size: 56px;
    display: inline-block;
    transition: transform 0.3s;
}

.pet-main-emoji.pet-bounce {
    animation: pet-bounce 0.5s ease infinite;
}

.pet-name-display {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

/* Pet Stats */
.pet-stats {
    margin-bottom: 16px;
}

.pet-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pet-stat .stat-icon {
    font-size: 16px;
    width: 24px;
}

.stat-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.stat-fill.hunger-fill.full {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.stat-fill.hunger-fill.normal {
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.stat-fill.hunger-fill.hungry {
    background: linear-gradient(90deg, #f44336, #ff5722);
}

.pet-stat .stat-value {
    font-size: 12px;
    color: #666;
    min-width: 30px;
    text-align: right;
}

/* Stat Row */
.pet-stat-row {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.pet-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pet-stat-item .stat-icon {
    font-size: 18px;
}

.pet-stat-item .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Pet Actions */
.pet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pet-action-btn {
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pet-action-btn.feed-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.pet-action-btn.attack-btn {
    background: linear-gradient(135deg, #f44336, #ff5722);
    color: white;
}

.pet-action-btn.defense-btn {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    color: white;
}

.pet-action-btn.revive-btn {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    color: white;
    width: 100%;
}

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

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

/* Pet Message */
.pet-message {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fff3e0;
    border-radius: 8px;
    font-size: 13px;
    color: #e65100;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.pet-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PET ANIMATIONS ===== */
.pet-floating.pet-adopted {
    animation: pet-celebrate 1s ease;
}

.pet-floating.pet-fed {
    animation: pet-happy 0.5s ease;
}

.pet-floating.pet-trained {
    animation: pet-flex 0.5s ease;
}

.pet-floating.pet-revived {
    animation: pet-revive 1s ease;
}

.pet-floating.pet-death {
    animation: pet-fade 0.5s ease forwards;
}

@keyframes pet-celebrate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    75% { transform: scale(1.2) rotate(-10deg); }
}

@keyframes pet-happy {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes pet-flex {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes pet-revive {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes pet-fade {
    0% { opacity: 1; }
    100% { opacity: 0.5; filter: grayscale(100%); }
}

/* ===== PET LEVEL BADGE ===== */
.pet-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #555;
}

.pet-level-badge.level-1 {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #555;
}

.pet-level-badge.level-2 {
    background: linear-gradient(135deg, #81d4fa 0%, #4fc3f7 100%);
    color: #01579b;
}

.pet-level-badge.level-3 {
    background: linear-gradient(135deg, #aed581 0%, #7cb342 100%);
    color: #33691e;
}

.pet-level-badge.level-4 {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    color: #e65100;
}

.pet-level-badge.level-5 {
    background: linear-gradient(135deg, #ce93d8 0%, #ab47bc 100%);
    color: #4a148c;
    box-shadow: 0 0 10px rgba(171, 71, 188, 0.5);
}

/* ===== LEVEL PROGRESS BAR ===== */
.pet-level-progress {
    margin: 12px 0;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
}

.level-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.level-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.level-progress-fill.level-1 {
    background: linear-gradient(90deg, #bdbdbd 0%, #9e9e9e 100%);
}

.level-progress-fill.level-2 {
    background: linear-gradient(90deg, #81d4fa 0%, #4fc3f7 100%);
}

.level-progress-fill.level-3 {
    background: linear-gradient(90deg, #aed581 0%, #7cb342 100%);
}

.level-progress-fill.level-4 {
    background: linear-gradient(90deg, #ffb74d 0%, #ff9800 100%);
}

.level-progress-fill.level-5 {
    background: linear-gradient(90deg, #ce93d8 0%, #ab47bc 100%);
}

/* ===== CELEBRATION OVERLAY ===== */
.pet-celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-celebration {
    font-size: 60px;
    position: relative;
}

.celebration-pet {
    display: inline-block;
}

.celebration-sparkle {
    position: absolute;
    font-size: 24px;
    opacity: 0;
}

/* Level 1: Bounce */
.pet-bounce-anim .celebration-pet {
    animation: celebration-bounce 0.8s ease-out;
}

@keyframes celebration-bounce {
    0% { transform: scale(0) translateY(50px); opacity: 0; }
    50% { transform: scale(1.3) translateY(-20px); opacity: 1; }
    70% { transform: scale(0.9) translateY(0); }
    100% { transform: scale(1) translateY(0); opacity: 0; }
}

/* Level 2: Spin */
.pet-spin-anim .celebration-pet {
    animation: celebration-spin 1s ease-out;
}

.pet-spin-anim .celebration-sparkle {
    animation: sparkle-pop 1s ease-out;
    top: -20px;
    right: -20px;
}

@keyframes celebration-spin {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 0; }
}

@keyframes sparkle-pop {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0.5) translateY(-30px); }
}

/* Level 3: Glow Spin */
.pet-glow-spin-anim .celebration-pet {
    animation: celebration-glow-spin 1.2s ease-out;
}

.pet-glow-spin-anim .sparkle-1 {
    animation: multi-sparkle 1.2s ease-out;
    top: -30px;
    left: 50%;
}

.pet-glow-spin-anim .sparkle-2 {
    animation: multi-sparkle 1.2s ease-out 0.2s;
    bottom: -30px;
    right: 0;
}

.pet-glow-spin-anim .glow-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-ring-anim 1.2s ease-out;
    border: 3px solid #7cb342;
}

@keyframes celebration-glow-spin {
    0% { transform: scale(0) rotate(0deg); opacity: 0; filter: drop-shadow(0 0 0 #7cb342); }
    30% { transform: scale(1.3) rotate(180deg); opacity: 1; filter: drop-shadow(0 0 20px #7cb342); }
    60% { transform: scale(1.1) rotate(360deg); filter: drop-shadow(0 0 10px #7cb342); }
    100% { transform: scale(1) rotate(720deg); opacity: 0; filter: drop-shadow(0 0 0 #7cb342); }
}

@keyframes multi-sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.5) rotate(180deg); }
}

@keyframes glow-ring-anim {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Level 4: Rainbow Flip */
.pet-rainbow-flip-anim .celebration-pet {
    animation: celebration-rainbow-flip 1.5s ease-out;
}

.pet-rainbow-flip-anim .sparkle-1 { animation: rainbow-sparkle 1.5s ease-out; top: -40px; left: 0; }
.pet-rainbow-flip-anim .sparkle-2 { animation: rainbow-sparkle 1.5s ease-out 0.1s; top: 0; right: -40px; }
.pet-rainbow-flip-anim .sparkle-3 { animation: rainbow-sparkle 1.5s ease-out 0.2s; bottom: -40px; left: 50%; }

.pet-rainbow-flip-anim .rainbow-trail {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rainbow-trail-anim 1.5s ease-out;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
    opacity: 0;
}

@keyframes celebration-rainbow-flip {
    0% { transform: scale(0) rotateY(0deg); opacity: 0; }
    25% { transform: scale(1.4) rotateY(180deg); opacity: 1; filter: hue-rotate(0deg); }
    50% { transform: scale(1.2) rotateY(360deg); filter: hue-rotate(180deg); }
    75% { transform: scale(1.1) rotateY(540deg); filter: hue-rotate(360deg); }
    100% { transform: scale(1) rotateY(720deg); opacity: 0; }
}

@keyframes rainbow-sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    30% { opacity: 1; transform: scale(2); }
    60% { opacity: 0.8; transform: scale(1); }
}

@keyframes rainbow-trail-anim {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
    30% { opacity: 0.6; transform: translate(-50%, -50%) scale(1) rotate(120deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2) rotate(360deg); }
}

/* Level 5: Fireworks Dance */
.pet-fireworks-dance-anim .celebration-pet {
    animation: celebration-fireworks-dance 2s ease-out;
}

.pet-fireworks-dance-anim .firework-particle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
}

.pet-fireworks-dance-anim .p1 { animation: firework-burst 2s ease-out; top: -50px; left: 50%; }
.pet-fireworks-dance-anim .p2 { animation: firework-burst 2s ease-out 0.1s; top: -30px; right: -40px; }
.pet-fireworks-dance-anim .p3 { animation: firework-burst 2s ease-out 0.2s; top: 50%; right: -50px; }
.pet-fireworks-dance-anim .p4 { animation: firework-burst 2s ease-out 0.3s; bottom: -40px; right: -30px; }
.pet-fireworks-dance-anim .p5 { animation: firework-burst 2s ease-out 0.4s; bottom: -50px; left: 50%; }
.pet-fireworks-dance-anim .p6 { animation: firework-burst 2s ease-out 0.5s; bottom: -30px; left: -40px; }

.pet-fireworks-dance-anim .rainbow-trail {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rainbow-trail-dance 2s ease-out;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
    opacity: 0;
}

.pet-fireworks-dance-anim .glow-rainbow {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) border-box;
    animation: glow-rainbow-dance 2s ease-out;
}

@keyframes celebration-fireworks-dance {
    0% { transform: scale(0) translateY(100px); opacity: 0; }
    15% { transform: scale(1.5) translateY(-30px); opacity: 1; }
    30% { transform: scale(1.2) translateY(0) rotate(15deg); }
    45% { transform: scale(1.3) translateY(-10px) rotate(-15deg); }
    60% { transform: scale(1.1) translateY(0) rotate(10deg); }
    75% { transform: scale(1.2) translateY(-5px) rotate(-10deg); }
    90% { transform: scale(1) translateY(0) rotate(0deg); }
    100% { transform: scale(0.8) translateY(20px); opacity: 0; }
}

@keyframes firework-burst {
    0% { opacity: 0; transform: scale(0) translateY(0); }
    20% { opacity: 1; transform: scale(1.5) translateY(-20px); }
    40% { opacity: 1; transform: scale(1) translateY(-40px); }
    60% { opacity: 0.8; transform: scale(1.2) translateY(-30px); }
    100% { opacity: 0; transform: scale(0.5) translateY(-60px); }
}

@keyframes rainbow-trail-dance {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
    20% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.8) rotate(90deg); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2) rotate(180deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5) rotate(360deg); }
}

@keyframes glow-rainbow-dance {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* ===== LEVEL UP CELEBRATION ===== */
.pet-level-up-celebration {
    position: relative;
    text-align: center;
    animation: level-up-entrance 0.5s ease-out;
}

.level-up-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%);
    animation: level-up-glow-pulse 2s ease-out;
    border-radius: 50%;
}

.level-up-pet {
    font-size: 80px;
    display: inline-block;
    animation: level-up-pet-bounce 1s ease-out;
    position: relative;
    z-index: 1;
}

.level-up-text {
    margin-top: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: level-up-text-fade 3s ease-out;
}

.level-up-title {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.level-up-level {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #ffd700;
}

.level-up-particles .particle {
    position: absolute;
    font-size: 24px;
    opacity: 0;
}

.level-up-particles .p1 { animation: particle-explode 2s ease-out; top: -80px; left: 50%; }
.level-up-particles .p2 { animation: particle-explode 2s ease-out 0.1s; top: -60px; right: 20%; }
.level-up-particles .p3 { animation: particle-explode 2s ease-out 0.2s; top: 0; right: -30px; }
.level-up-particles .p4 { animation: particle-explode 2s ease-out 0.3s; bottom: -60px; right: 30%; }
.level-up-particles .p5 { animation: particle-explode 2s ease-out 0.4s; bottom: -80px; left: 50%; }
.level-up-particles .p6 { animation: particle-explode 2s ease-out 0.5s; bottom: -60px; left: 20%; }

@keyframes level-up-entrance {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes level-up-glow-pulse {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes level-up-pet-bounce {
    0% { transform: scale(0) rotate(-20deg); }
    30% { transform: scale(1.4) rotate(10deg); }
    50% { transform: scale(1) rotate(-5deg); }
    70% { transform: scale(1.2) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes level-up-text-fade {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes particle-explode {
    0% { opacity: 0; transform: scale(0) translateY(0); }
    30% { opacity: 1; transform: scale(1.5) translateY(-30px); }
    60% { opacity: 0.8; transform: scale(1) translateY(-60px); }
    100% { opacity: 0; transform: scale(0.5) translateY(-100px); }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .virtual-pet-container {
        bottom: 15px;
        right: 15px;
    }

    .pet-floating {
        width: 56px;
        height: 56px;
    }

    .floating-pet-emoji {
        font-size: 28px;
    }

    .virtual-pet-panel {
        width: 260px;
        bottom: 65px;
    }

    .pet-main-emoji {
        font-size: 48px;
    }

    .pet-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .virtual-pet-container {
        bottom: 10px;
        right: 10px;
    }

    .pet-floating {
        width: 50px;
        height: 50px;
    }

    .floating-pet-emoji {
        font-size: 24px;
    }

    .virtual-pet-panel {
        width: calc(100vw - 40px);
        max-width: 280px;
        right: 0;
        bottom: 60px;
    }

    .pet-action-btn {
        font-size: 11px;
        padding: 8px 6px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .virtual-pet-panel {
        background: #1e1e1e;
    }

    .adoption-title,
    .pet-name-display,
    .pet-stat-item .stat-value {
        color: #fff;
    }

    .adoption-desc,
    .pet-stat .stat-value {
        color: #aaa;
    }

    .pet-adopt-btn {
        background: #2d2d2d;
    }

    .pet-adopt-btn:hover {
        background: #3d3d3d;
    }

    .pet-adopt-btn .pet-name {
        color: #fff;
    }

    .stat-bar {
        background: #3d3d3d;
    }

    .pet-stat-row {
        background: #2d2d2d;
    }

    .pet-message {
        background: #3d2d1d;
        color: #ffb74d;
    }
}

/* ===== PET ADOPTION PROMPT ===== */
.pet-adoption-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pet-adoption-prompt.show {
    opacity: 1;
    visibility: visible;
}

.pet-adoption-prompt-content {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f5 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(255, 154, 158, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pet-adoption-prompt.show .pet-adoption-prompt-content {
    transform: scale(1);
}

.pet-adoption-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pet-adoption-prompt-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

.pet-adoption-prompt-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: pet-prompt-bounce 1s ease-in-out infinite;
}

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

.pet-adoption-prompt-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.pet-adoption-prompt-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pet-adoption-prompt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pet-adoption-prompt-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pet-adoption-prompt-btn.primary {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 154, 158, 0.4);
}

.pet-adoption-prompt-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 154, 158, 0.5);
}

.pet-adoption-prompt-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.pet-adoption-prompt-btn.secondary:hover {
    background: #e5e5e5;
}

/* Mobile optimizations for prompt */
@media (max-width: 480px) {
    .pet-adoption-prompt-content {
        padding: 25px 20px;
        max-width: 300px;
    }
    
    .pet-adoption-prompt-icon {
        font-size: 50px;
    }
    
    .pet-adoption-prompt-title {
        font-size: 18px;
    }
    
    .pet-adoption-prompt-message {
        font-size: 13px;
    }
    
    .pet-adoption-prompt-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== POINTS DISPLAY IN PET PANEL ===== */
.pet-points-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    border: 2px solid #ffc107;
}

.pet-points-display .points-icon {
    font-size: 20px;
}

.pet-points-display .points-value {
    font-size: 22px;
    font-weight: 700;
    color: #f57c00;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pet-points-display .points-label {
    font-size: 14px;
    color: #ef6c00;
    font-weight: 500;
}

/* ===== FLOATING PET POINTS BADGE ===== */
.floating-pet-points {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: 2px solid white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
}

/* Mobile optimizations for points display */
@media (max-width: 480px) {
    .pet-points-display {
        padding: 8px 12px;
        gap: 4px;
    }
    
    .pet-points-display .points-icon {
        font-size: 18px;
    }
    
    .pet-points-display .points-value {
        font-size: 18px;
    }
    
    .pet-points-display .points-label {
        font-size: 12px;
    }
    
    .floating-pet-points {
        min-width: 20px;
        height: 18px;
        font-size: 10px;
        padding: 0 4px;
        bottom: -2px;
        right: -2px;
    }
}
