body {
    background-color: #e8fcdb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #f6fff0 0%, #cceebb 100%);
    position: relative;
}

#big-egg {
    cursor: pointer;
    transition: transform 0.05s ease;
    filter: drop-shadow(0px 8px 12px rgba(44, 150, 24, 0.4)) drop-shadow(0px 0px 4px var(--yoshi-glow, #ff5900));
    z-index: 10;
}

#big-egg:active {
    transform: scale(0.92);
}

aside.game {
    width: 360px;
    background-color: #ffffff;
    box-shadow: -4px 0 15px rgba(44, 150, 24, 0.15);
    display: flex;
    flex-direction: column;
    border-left: 4px solid #4cd137;
    z-index: 20;
}

.stats {
    padding: 20px;
    background-color: #38b000;
    border-bottom: 4px solid #ff5900;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1);
}

.stats p {
    margin: 6px 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.prestige-panel {
    background: rgba(0, 0, 0, 0.15);
    padding: 8px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 0.85em;
    color: #fffb00;
}

.controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.control-btn {
    flex: 1;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75em;
    transition: background 0.2s;
}

.control-btn:hover {
    background: rgba(255,255,255,0.4);
}

.tabs {
    display: flex;
    background: #f0fbd8;
    border-bottom: 2px solid #ccf2be;
}

.tab-link {
    flex: 1;
    border: none;
    background: none;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #556b4e;
    font-size: 0.85em;
}

.tab-link.active {
    background: #ffffff;
    color: #38b000;
    border-bottom: 3px solid #38b000;
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9fff5;
}

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

.upgrade-button, .skin-button {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #ccf2be;
    border-bottom: 4px solid #ccf2be;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.upgrade-button:hover:not(:disabled), .skin-button:hover:not(:disabled) {
    background-color: #f0ffe9;
    border-color: #4cd137;
    transform: translateY(-1px);
}

.upgrade-button:disabled, .skin-button:disabled {
    opacity: 0.5;
    background-color: #f2f2f2;
    border-color: #dddddd;
    cursor: not-allowed;
}

.up-title { font-weight: bold; display: block; color: #1b430d; }
.up-cost { font-size: 0.9em; color: #ff5900; font-weight: bold; }
.up-desc { font-size: 0.85em; color: #556b4e; display: block; margin-top: 4px; }

.badge {
    background: #ffffff;
    border: 2px solid #dddddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.badge.unlocked {
    opacity: 1;
    border-color: #ffb700;
    background: #fffbeb;
}

/* Interactivity Engines: Floating Popups & Random Events */
.floating-number {
    position: absolute;
    color: #ff5900;
    font-weight: 900;
    font-size: 1.6em;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
    pointer-events: none;
    animation: floatUp 0.8s ease-out forwards;
    z-index: 100;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: explode 0.5s ease-out forwards;
    z-index: 99;
}

.golden-egg {
    position: absolute;
    font-size: 50px;
    cursor: pointer;
    animation: bounceSpawn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulseGlow 1.5s infinite alternate;
    z-index: 50;
    filter: drop-shadow(0 0 10px gold);
}

@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(var(--end-x), var(--end-y)) scale(1.1); }
}

@keyframes explode {
    0% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0); }
    100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px gold); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 20px yellow); }
}
