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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-title {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    animation: rainbow-text 3s ease-in-out infinite alternate;
}

@keyframes rainbow-text {
    0% { color: #ff6b6b; }
    25% { color: #4ecdc4; }
    50% { color: #45b7d1; }
    75% { color: #f9ca24; }
    100% { color: #f472b6; }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-value {
    color: #f9ca24;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.game-world {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.unicorn-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.unicorn-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.4)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="70" cy="70" r="1" fill="rgba(255,255,255,0.5)"/></svg>') repeat;
    animation: sparkle 10s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.unicorn {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.unicorn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.unicorn-body {
    width: 120px;
    height: 100px;
    position: relative;
    animation: gentle-bounce 4s ease-in-out infinite;
}

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

.unicorn-horn {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 25px solid #ffd700;
    filter: drop-shadow(0 0 10px #ffd700);
    animation: horn-glow 2s ease-in-out infinite alternate;
}

@keyframes horn-glow {
    0% { filter: drop-shadow(0 0 10px #ffd700); }
    100% { filter: drop-shadow(0 0 20px #ffd700) drop-shadow(0 0 30px #fff); }
}

.unicorn-face {
    background: linear-gradient(145deg, #ff6b6b, #f472b6);
    width: 80px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.unicorn-eye {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    top: 20px;
}

.unicorn-eye::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.left-eye { left: 15px; }
.right-eye { right: 15px; }

.unicorn-mouth {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 20px 20px;
}

.unicorn-mane {
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    height: 30px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #f472b6);
    border-radius: 50px 50px 0 0;
    animation: rainbow-flow 3s ease-in-out infinite;
}

@keyframes rainbow-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.status-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-bar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.status-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.status-fill {
    height: 15px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hunger-bar .status-fill {
    background: linear-gradient(90deg, #ff6b6b, #ff9f43);
}

.happiness-bar .status-fill {
    background: linear-gradient(90deg, #f472b6, #4ecdc4);
}

.status-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--fill-width, 75%);
    background: inherit;
    border-radius: inherit;
    transition: width 0.5s ease;
    animation: status-glow 2s ease-in-out infinite alternate;
}

@keyframes status-glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
}

.food-selection {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.food-title {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.food-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.food-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.food-item:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: #f9ca24;
    box-shadow: 0 5px 15px rgba(249, 202, 36, 0.3);
}

.food-item.selected {
    background: rgba(249, 202, 36, 0.3);
    border-color: #f9ca24;
    box-shadow: 0 0 20px rgba(249, 202, 36, 0.5);
}

.food-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.food-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.food-cost {
    color: #f9ca24;
    font-size: 0.8rem;
    font-weight: bold;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: float-up 2s ease-out forwards;
}

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

.message-area {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.message-area.show {
    opacity: 1;
}

.feeding-animation {
    animation: feeding-bounce 0.6s ease-in-out;
}

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

@media (max-width: 768px) {
    .game-world {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .unicorn {
        flex-direction: column;
        text-align: center;
    }
    
    .status-bars {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 15px;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .unicorn-area, .food-selection {
        padding: 20px;
    }
    
    .food-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}