* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #e8f5e9; /* Светло-зеленый фон */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #2e7d32;
}

.game-container {
    text-align: center;
}

.ui-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 30px;
    border-radius: 15px 15px 0 0;
    border-bottom: 3px solid #a5d6a7;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.stat {
    font-size: 1.2rem;
    font-weight: bold;
}

.arena {
    position: relative;
    width: 808px;  /* 800 + 4px border * 2 */
    height: 508px; /* 500 + 4px border * 2 */
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border: 4px solid #81c784;
    overflow: hidden; /* Чтобы объекты не выходили за пределы визуально */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.entity {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    transition: none; /* Убираем плавность для мгновенного отклика */
    user-select: none;
}

.player {
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.controls-hint {
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 0 0 15px 15px;
    border-top: 3px solid #a5d6a7;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2e7d32;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block;
    margin-top: -3px; /* Чтобы стыковалось с ареной без зазора */
}

button {
    padding: 8px 16px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background: #388e3c;
}

.hidden {
    display: none;
}
