* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-image: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF5733;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-button {
    padding: 8px 15px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: #E64A19;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #FF5733;
}

.game-area {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.clicker-section {
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    box-shadow: none;
}

.pizza-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pizza {
    width: 250px;
    height: 250px;
    cursor: pointer;
    transition: transform 0.1s;
}

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

.pizza:active {
    transform: scale(0.95);
}

.rotating-pizza {
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pizza-pop {
    animation: pop 0.1s ease-out;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.pizza-stats {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.upgrades-section {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-height: 600px;
    overflow-y: auto;
    order: -1;
    border: 2px solid rgba(255, 87, 51, 0.8);
}

.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    color: #fff;
}

.upgrade-item:hover {
    background-color: rgba(50, 50, 50, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.upgrade-purchased {
    animation: purchase-flash 0.5s ease-out;
}

@keyframes purchase-flash {
    0% {
        background-color: #f9f9f9;
    }
    50% {
        background-color: #9FECB8;
    }
    100% {
        background-color: #f9f9f9;
    }
}

.upgrade-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.upgrade-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.upgrade-name {
    font-weight: bold;
    color: #FF5733;
}

.upgrade-description {
    font-size: 0.9em;
    color: #ccc;
}

.upgrade-cost {
    font-weight: bold;
    color: #8B0000;
}

.upgrade-button {
    padding: 5px 10px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.upgrade-button:hover {
    background-color: #E64A19;
    transform: scale(1.05);
}

.upgrade-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.upgrade-level {
    font-size: 0.8em;
    color: #333;
    margin-top: 5px;
}

.leaderboard-section {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 87, 51, 0.8);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    transition: transform 0.2s;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    background-color: #f9f9f9;
}

.leaderboard-position {
    width: 25px;
    height: 25px;
    background-color: #FF5733;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.leaderboard-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.leaderboard-name {
    flex: 1;
}

.leaderboard-score {
    font-weight: bold;
    color: #FF5733;
}

@media (max-width: 768px) {
    .game-area {
        grid-template-columns: 1fr;
    }
    
    .upgrades-section {
        order: 0;
    }
}

.pizza-click-animation {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #FF5733;
    pointer-events: none;
    animation: float-up 1s ease-out forwards;
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.effects-container {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.upgrade-effect {
    position: absolute;
    pointer-events: none;
    animation: scale-fade 1.5s forwards;
}

@keyframes scale-fade {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.fire-effect {
    background: radial-gradient(circle, rgba(255,87,51,1) 0%, rgba(255,200,61,0.8) 70%, rgba(255,255,255,0) 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.sparkle-effect {
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,200,61,0.5) 70%, rgba(255,255,255,0) 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.cosmic-effect {
    background: radial-gradient(circle, rgba(138,43,226,1) 0%, rgba(65,105,225,0.8) 50%, rgba(255,255,255,0) 100%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.rebirth-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5em;
    font-weight: bold;
    color: #FFD700; 
    text-shadow: 2px 2px 4px #000000;
    animation: rebirth-fade 3s ease-out forwards;
    z-index: 1001;
}

@keyframes rebirth-fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.pineapple-pizza-click-animation {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; 
    pointer-events: none;
    animation: float-up 1s ease-out forwards;
}

.pineapple-pizza-pop {
    animation: pop 0.1s ease-out;
}

.rotating-pineapple-pizza {
    animation: rotate 30s linear infinite;
}

.donut-click-animation {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #8B4513; 
    pointer-events: none;
    animation: float-up 1s ease-out forwards;
}

.donut-pop {
    animation: pop 0.1s ease-out;
}

.rotating-donut {
    animation: rotate 30s linear infinite;
}

.player-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; 
}

.player-menu {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 400px; 
    height: auto;
}

.volume-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.volume-slider-container label {
    margin-bottom: 5px;
}

.player-menu h2 {
    margin-bottom: 20px;
    color: #FF5733;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.settings-button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.settings-button:hover {
    background-color: #E64A19;
    transform: scale(1.05);
}

#save-slot-container {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.save-slots, .load-slots {
    display: flex;
    gap: 5px;
}

.save-slot-btn, .load-slot-btn {
    font-size: 0.8em;
    padding: 5px 10px;
}

.active-slot {
    background-color: #8B0000;
}

.load-slot-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.menu-section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.menu-section h3 {
    color: #FF5733;
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.save-management {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-slots, .load-slots {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.save-slot, .load-slot {
    flex: 1;
    font-size: 0.9em;
    padding: 8px 12px;
}

.save-slot:hover, .load-slot:hover {
    background-color: #E64A19;
}

.load-slot:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.save-load-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.save-load-menu {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 500px;
    height: auto;
}

.save-load-menu h2 {
    margin-bottom: 20px;
    color: #FF5733;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.save-slots-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.save-slots, .load-slots {
    width: 48%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
}

.save-slots h3, .load-slots h3 {
    color: #FF5733;
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.slot-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-slot-btn, .load-slot-btn {
    padding: 10px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-slot-btn:hover, .load-slot-btn:hover {
    background-color: #E64A19;
}

.load-slot-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.save-load-actions {
    display: flex;
    justify-content: center;
}

.game-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    animation: fadeInOut 3s forwards;
}

.gold-time {
    background-color: rgba(218, 165, 32, 0.8);
    color: black;
    font-weight: bold;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

.pizza-portal {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 100;
    animation: portal-pulse 2s infinite;
}

@keyframes portal-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.portal-svg {
    animation: portal-rotate 3s linear infinite;
}

@keyframes portal-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portal-disappear {
    animation: fade-out 1s forwards;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.portal-collect-animation {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #9966FF;
    pointer-events: none;
    animation: float-up-glow 2s ease-out forwards;
}

@keyframes float-up-glow {
    0% {
        opacity: 0;
        transform: translateY(0);
        text-shadow: 0 0 10px #9966FF;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
        text-shadow: 0 0 20px #9966FF;
    }
}

.challenge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.challenge-container {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 87, 51, 0.7);
    text-align: center;
    min-width: 300px;
}

.challenge-stats {
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    font-size: 1.2em;
}

.challenge-result {
    margin: 20px 0;
    font-size: 1.2em;
    color: #FFD700;
}

.multiplier-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.upgrades-section .special-upgrade {
    border: 1px solid #FFD700;
    background-color: rgba(50, 30, 0, 0.7);
}

.upgrades-section .challenge-upgrade {
    border: 1px solid #9966FF;
    background-color: rgba(50, 0, 50, 0.7);
}

.pet-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s;
}

.pet-container:hover {
    transform: scale(1.05);
}

.pet-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #FFD700;
}

.pet-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
}

.cat-pet .pet-face {
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(circle at 50% 70%, #000 8px, transparent 9px);
    border-radius: 50% 50% 40% 40%;
}

.dog-pet .pet-face {
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(circle at 50% 60%, #000 5px, transparent 6px),
                     radial-gradient(ellipse at 50% 75%, #000 8px 5px, transparent 9px);
    border-radius: 40% 40% 60% 60%;
}

.bird-pet .pet-face {
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(ellipse at 50% 60%, #FFA500 8px 4px, transparent 9px);
    border-radius: 50% 50% 20% 20%;
}

.hamster-pet .pet-face {
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(circle at 50% 60%, #000 3px, transparent 4px),
                     radial-gradient(ellipse at 30% 70%, #FFC0CB 5px 3px, transparent 6px),
                     radial-gradient(ellipse at 70% 70%, #FFC0CB 5px 3px, transparent 6px);
    border-radius: 50%;
}

.pet-info {
    margin-left: 15px;
    color: white;
}

.pet-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 3px;
}

.pet-level {
    font-size: 0.9em;
    color: #FFD700;
    margin-bottom: 5px;
}

.pet-happiness {
    width: 100px;
    height: 8px;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.happiness-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
}

.pet-bonus {
    font-size: 0.8em;
    color: #FF5733;
}

.pet-message {
    background-color: rgba(255, 215, 0, 0.8);
    color: black;
}

.pet-type-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    margin-bottom: 15px;
}

.pet-type {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pet-type:hover {
    background-color: rgba(50, 50, 50, 0.7);
    transform: translateY(-3px);
}

.pet-type.selected-pet {
    border-color: #FFD700;
    background-color: rgba(80, 80, 80, 0.7);
}

.pet-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
}

.cat-icon {
    background-color: #FFA500;
    position: relative;
}

.cat-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(circle at 50% 70%, #000 8px, transparent 9px);
    border-radius: 50% 50% 40% 40%;
}

.dog-icon {
    background-color: #964B00;
    position: relative;
}

.dog-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(circle at 50% 60%, #000 5px, transparent 6px),
                     radial-gradient(ellipse at 50% 75%, #000 8px 5px, transparent 9px);
    border-radius: 40% 40% 60% 60%;
}

.bird-icon {
    background-color: #4D8FCC;
    position: relative;
}

.bird-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(ellipse at 50% 60%, #FFA500 8px 4px, transparent 9px);
    border-radius: 50% 50% 20% 20%;
}

.hamster-icon {
    background-color: #D2B48C;
    position: relative;
}

.hamster-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(circle at 50% 60%, #000 3px, transparent 4px),
                     radial-gradient(ellipse at 30% 70%, #FFC0CB 5px 3px, transparent 6px),
                     radial-gradient(ellipse at 70% 70%, #FFC0CB 5px 3px, transparent 6px);
    border-radius: 50%;
}

.pet-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#pet-name-input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #444;
    color: white;
    margin-bottom: 10px;
}

#pet-color-input {
    width: 100%;
    height: 40px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.pet-shop-menu {
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.pet-shop-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.pet-shop-item {
    background-color: rgba(50, 50, 50, 0.7);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pet-shop-info {
    flex: 1;
}

.pet-buy-button {
    padding: 8px 15px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pet-buy-button:hover {
    background-color: #E64A19;
    transform: scale(1.05);
}

.owned-pets-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.owned-pet-item {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.owned-pet-item.active-pet {
    border: 2px solid #FFD700;
}

.owned-pet-info {
    flex: 1;
}

.pet-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pet-action-button {
    padding: 5px 10px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s;
}

.pet-action-button:hover {
    background-color: #E64A19;
    transform: scale(1.05);
}

.pet-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.game-pet {
    position: absolute;
    z-index: 100;
    width: 80px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 10px;
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-pet:hover {
    transform: scale(1.05);
}

.game-pet.dragging {
    box-shadow: 0 0 10px #FFD700;
    z-index: 101;
}

.pet-game-info {
    text-align: center;
    color: white;
    font-size: 0.7em;
}

@keyframes critical-pulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes critical-text {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(-5deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(5deg);
    }
}

.critical-animation {
    color: #FFD700 !important;
    font-size: 32px !important;
    text-shadow: 0 0 10px #FF4500;
}

.research-lab {
    width: 700px;
    max-height: 600px;
    overflow-y: auto;
}

.research-projects {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.research-project {
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #666;
}

.research-info {
    flex: 1;
    text-align: left;
}

.research-info h3 {
    color: #FF5733;
    margin-bottom: 5px;
}

.research-button {
    padding: 8px 15px;
}

.research-button:disabled {
    background-color: #777;
    cursor: not-allowed;
}

.research-complete {
    background-color: rgba(100, 255, 100, 0.8);
    color: black;
}

.fox-pet .pet-face {
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(ellipse at 50% 60%, #000 6px 3px, transparent 7px),
                     radial-gradient(ellipse at 30% 20%, #fff 8px 4px, transparent 9px),
                     radial-gradient(ellipse at 70% 20%, #fff 8px 4px, transparent 9px);
    border-radius: 45% 45% 40% 40%;
}

.rabbit-pet .pet-face {
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(ellipse at 50% 60%, #FFC0CB 4px 2px, transparent 5px),
                     radial-gradient(ellipse at 30% 15%, #fff 10px 20px, transparent 11px),
                     radial-gradient(ellipse at 70% 15%, #fff 10px 20px, transparent 11px);
    border-radius: 50% 50% 40% 40%;
}

.dragon-pet .pet-face {
    background-image: radial-gradient(circle at 30% 30%, #FF0000 3px, transparent 4px), 
                     radial-gradient(circle at 70% 30%, #FF0000 3px, transparent 4px),
                     radial-gradient(ellipse at 50% 60%, #000 6px 3px, transparent 7px),
                     radial-gradient(ellipse at 50% 70%, #FF5733 8px 3px, transparent 9px);
    border-radius: 30% 30% 60% 60%;
}

.fox-icon {
    background-color: #FF6600;
    position: relative;
}

.fox-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle at 30% 30%, #fff 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #fff 2px, transparent 3px),
                     radial-gradient(ellipse at 50% 60%, #000 6px 3px, transparent 7px);
    border-radius: 45% 45% 40% 40%;
}

.rabbit-icon {
    background-color: #FFFFFF;
    position: relative;
}

.rabbit-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle at 30% 30%, #000 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #000 2px, transparent 3px),
                     radial-gradient(ellipse at 50% 60%, #FFC0CB 4px 2px, transparent 5px);
    border-radius: 50% 50% 40% 40%;
}

.dragon-icon {
    background-color: #990000;
    position: relative;
}

.dragon-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle at 30% 30%, #FFFF00 2px, transparent 3px), 
                     radial-gradient(circle at 70% 30%, #FFFF00 2px, transparent 3px),
                     radial-gradient(ellipse at 50% 60%, #000 6px 3px, transparent 7px);
    border-radius: 30% 30% 60% 60%;
}