.tamagotchi-shell {
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: 24px 24px 40px 40px;
    padding: 1.5rem 1rem 1rem;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
    max-width: 360px;
    margin: 0 auto;
}

.pet-screen {
    background: var(--screen-bg);
    border: 2px solid var(--bg3);
    border-radius: 12px;
    padding: 1.2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.6), 0 0 20px var(--screen-glow);
}

.pet-name-display {
    position: absolute;
    top: 0.4rem;
    left: 0.6rem;
    font-size: 0.65rem;
    color: var(--green);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.pet-stage-display {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pet-sprite-container {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-emoji {
    font-size: 2.6rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: var(--green);
    line-height: 1;
    display: block;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(78, 204, 163, 0.5);
    transition: transform 0.1s, color 0.3s;
    user-select: none;
}
.pet-emoji.bounce {
    animation: pet-bounce 0.4s ease;
}
.pet-emoji.shake {
    animation: pet-shake 0.4s ease;
}
.pet-emoji.spin {
    animation: pet-spin 0.6s ease;
}

@keyframes pet-bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes pet-shake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-8px); }
    75%     { transform: translateX(8px); }
}
@keyframes pet-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.pet-indicators {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
    min-height: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.indicator {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    color: var(--text-dim);
}
.indicator.alert {
    color: var(--accent);
    animation: blink 0.8s step-start infinite;
}
.indicator.warn { color: var(--accent2); }
.indicator.ok   { color: var(--green); }

@keyframes blink {
    50% { opacity: 0; }
}

.poop-icons {
    display: flex;
    gap: 2px;
    margin-top: 0.3rem;
}
.poop-icon { font-size: 0.8rem; }

.lights-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    display: none;
}
.lights-overlay.dark { display: flex; }
