body {
    font-family: 'Courier New', monospace;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
}

.device-shell {
    background-color: #ff6b6b;
    border-radius: 40px 40px 60px 60px;
    padding: 30px;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.2), 5px 5px 20px rgba(0,0,0,0.3);
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen-container {
    background-color: #9ea786; /* Couleur écran LCD classique */
    width: 100%;
    height: 200px;
    border-radius: 10px;
    border: 4px solid #4a4a4a;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    color: #111;
}

#name-bar {
    background-color: rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
    padding: 2px 0;
    font-size: 14px;
    border-bottom: 2px solid rgba(0,0,0,0.2);
}

.game-area {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
}

/* LA CRÉATURE */
#pet {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #111;
    border-radius: 40% 40% 20% 20%;
    transition: left 1s linear, bottom 0.2s; /* L'animation de déplacement autonome */
}

/* L'animation de respiration / vie */
@keyframes idleBounce {
    0%, 100% { bottom: 10px; }
    50% { bottom: 15px; }
}
.pet-normal {
    animation: idleBounce 1s infinite;
}

.pet-fat {
    width: 55px;
    height: 45px;
    border-radius: 50% 50% 20% 20%;
    animation: idleBounce 1.5s infinite;
}

.pet-sick {
    background-color: #445544;
    height: 35px;
    border-radius: 40% 40% 10% 10%;
    animation: none;
    bottom: 5px !important;
}

.pet-sleep {
    height: 30px;
    width: 45px;
    border-radius: 50% 50% 10% 10%;
    animation: none;
    bottom: 5px !important;
}

/* Visage */
.eyes {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}
.eye {
    width: 6px;
    height: 6px;
    background-color: #9ea786;
    border-radius: 50%;
}
.pet-sleep .eye {
    height: 2px;
    margin-top: 4px;
}
.mouth {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 4px;
    background-color: #9ea786;
    border-radius: 0 0 10px 10px;
}
.pet-sick .mouth {
    border-radius: 10px 10px 0 0;
    height: 2px;
}

/* Zzz animation */
.zzz {
    display: none;
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 12px;
    font-weight: bold;
    color: #111;
}
.pet-sleep .zzz {
    display: block;
    animation: floatZzz 2s infinite;
}
@keyframes floatZzz {
    0% { transform: translateY(0) scale(0.8); opacity: 1; }
    100% { transform: translateY(-15px) scale(1.2); opacity: 0; }
}

/* Cacas */
.poop {
    position: absolute;
    bottom: 5px;
    width: 15px;
    height: 12px;
    background-color: #111;
    border-radius: 50% 50% 10% 10%;
}
.poop::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 4px;
    width: 7px;
    height: 5px;
    background-color: #111;
    border-radius: 50%;
}

.physical-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.physical-buttons button {
    background-color: #fff;
    border: 3px solid #ddd;
    border-radius: 50px;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}
.physical-buttons button:active {
    box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
    transform: translateY(2px);
}

.logs {
    margin-top: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    width: 320px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
ul { list-style: none; padding: 0; margin: 0; font-size: 12px;}
li { margin-bottom: 5px; border-bottom: 1px dashed #ccc; padding-bottom: 3px;}
