* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; user-select: none; }
body { background-color: #121214; color: white; display: flex; align-items: center; justify-content: center; height: 100vh; overflow: hidden; margin: 0; }
.standalone-game { padding-top: var(--site-nav-height, 60px); }
.site-game-controls { position: fixed; z-index: 1000; top: 8px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.site-game-controls div { display: flex; gap: 2px; border: 1px solid #64736b; border-radius: 5px; padding: 2px; background: #0d1310; }
.site-game-controls a, .site-game-controls button { color: white; background: rgba(0,0,0,.72); border: 1px solid #4CAF50; border-radius: 6px; padding: 8px 12px; text-decoration: none; cursor: pointer; }
.site-game-controls button { font: inherit; border: 0; border-radius: 3px; background: transparent; }
.site-game-controls button[aria-pressed=true] { background: #d7e9df; color: #15251e; }

/* ОБЕРТКА ДЛЯ ПРАВИЛЬНОГО МАСШТАБА */
#app-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center center;
}

/* Игровое поле */
#game-container {
    position: relative; 
    width: 1336px; 
    height: 768px;
    background-color: #2c3e50; 
    background-image: url('img/background.webp');
    background-size: cover; 
    background-position: center; 
    overflow: hidden;
    border-radius: 10px; 
    border: 2px solid #4CAF50; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#ui-top {
    position: absolute; top: 10px; left: 10px; right: 10px;
    display: flex; justify-content: space-between; align-items: flex-start; z-index: 100;
}

/* Счёт и Пауза */
.score-board {
    background: rgba(0, 0, 0, 0.7); padding: 10px 20px; border-radius: 10px; font-size: 16px; font-weight: bold;
    display: flex; align-items: center; gap: 15px;
}
#btn-pause {
    background: #f39c12; color: white; border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 16px; transition: 0.2s;
}
#btn-pause:hover { background: #e67e22; }

/* Правая колонка кнопок и валюты */
.right-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

/* Кнопки аудио в правом углу */
.audio-controls { display: flex; gap: 5px; background: rgba(0, 0, 0, 0.7); padding: 5px; border-radius: 10px; }
.audio-btn { background: transparent; color: #aaa; border: 1px solid #555; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.audio-btn.active { background: #4CAF50; color: white; border-color: #4CAF50; }

/* Счетчик солнц (валюта) БЕЗ РАМКИ */
.sun-counter {
    padding: 4px 10px;
    font-weight: bold;
    font-size: 20px; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9); 
    color: white;
}

/* Меню Оверлей */
.menu-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 300; transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}
.menu-overlay.hidden { opacity: 0; pointer-events: none; backdrop-filter: blur(0px); }
.game-title { font-size: 56px; margin-bottom: 20px; text-shadow: 3px 3px 6px #000; color: #4CAF50; }
.menu-title { font-size: 40px; margin-bottom: 20px; text-shadow: 2px 2px 4px #000; }

/* Версия игры в левом нижнем углу */
.game-version {
    position: absolute;
    left: 15px;
    bottom: 15px;
    color: white;
    font-size: 14px;
    opacity: 0.6;
    pointer-events: none;
}

/* Кнопки меню */
.menu-btn { padding: 12px 30px; margin-bottom: 10px; font-size: 18px; border-radius: 10px; border: none; background: #4CAF50; color: white; cursor: pointer; width: 350px; font-weight: bold; transition: 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.menu-btn:hover { background: #45a049; transform: scale(1.05); }
.back-btn { background: #555; margin-top: 20px; }
.back-btn:hover { background: #777; }

/* Настройки (Ползунки) */
.setting-row { display: flex; align-items: center; justify-content: space-between; width: 450px; margin: 10px 0; background: rgba(0,0,0,0.6); padding: 10px 20px; border-radius: 10px; }
#menu-settings .setting-row { display: grid; grid-template-columns: minmax(110px, auto) minmax(140px, 220px) 52px; gap: 14px; width: 520px; max-width: calc(100% - 24px); }
.setting-label { font-size: 18px; font-weight: bold; color: white; }
.setting-row input[type=range] { width: 100%; cursor: pointer; }
.volume-percent { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-weight: bold; color: #fff; }
.sfx-test-row { display: flex; gap: 15px; margin-top: 10px; margin-bottom: 20px; }
.test-btn { padding: 8px 15px; border-radius: 5px; border: none; background: #d35400; color: white; cursor: pointer; font-weight: bold; }
.test-btn:hover { background: #e67e22; }

/* Текстовые блоки */
.lore-text { width: 700px; background: rgba(0,0,0,0.7); padding: 25px; border-radius: 10px; font-size: 18px; line-height: 1.6; text-align: justify; text-shadow: 1px 1px 2px #000; white-space: pre-line; }

/* Список кнопок соцсетей со скроллом */
.socials-list {
    display: flex; flex-direction: column; gap: 10px; 
    max-height: 270px; 
    overflow-y: auto; padding: 5px 20px; width: 100%; align-items: center;
}
.socials-list::-webkit-scrollbar { width: 8px; }
.socials-list::-webkit-scrollbar-thumb { background: #4CAF50; border-radius: 4px; }
.social-btn { margin: 0; width: 300px; text-decoration: none; display: inline-block; text-align: center; }

/* Зона стола */
#table-zone { position: absolute; left: 25%; bottom: 105px; width: 55%; height: 80px; z-index: 10; pointer-events: none; /* background-color: rgba(0, 255, 0, 0.4); */ }

/* Объекты игры */
.bird { position: absolute; background-size: contain; background-repeat: no-repeat; background-position: bottom center; transform-origin: bottom center; z-index: 20; cursor: crosshair; pointer-events: auto; }
.pigeon-warning { filter: drop-shadow(0 0 10px red); }
.food-item { position: absolute; background-size: contain; background-repeat: no-repeat; background-position: center; z-index: 11; transition: top 0.5s ease-in; }

/* Нижняя панель */
#ui-bottom { margin-top: 15px; display: flex; gap: 15px; align-items: center; width: 1336px; padding: 0 10px; }
.food-btn { flex: 1; padding: 15px; font-size: 16px; font-weight: bold; border: none; border-radius: 10px; cursor: pointer; color: white; transition: 0.1s; }
.food-btn:active { transform: scale(0.95); }
#btn-seeds { background-color: #d35400; }
#btn-meat { background-color: #c0392b; }
#btn-seeds:disabled, #btn-meat:disabled { background-color: #7f8c8d; cursor: not-allowed; }
#food-status { font-size: 16px; font-weight: bold; text-align: center; min-width: 80px; }
.exit-menu-btn { background: #25332b; border: 1px solid #688574; }
body.cabinet-game { padding: 0; }
.cabinet-game #app-wrapper { position: absolute; left: 0; top: 0; transform-origin: top left; }
.cabinet-game #game-container { border-radius: 0; border: 0; box-shadow: none; }
.cabinet-game #ui-bottom { margin-top: 0; padding: 10px; background: #17211b; }
