/* /var/www/hello-bot/public/style.css
   Полный объединённый файл стилей для игры и админки.
*/

/* ---- Основные стили для игры (оставлено и расширено) ---- */
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg,#e0f7fa,#ffffff);
  color: #111;
  padding: 20px;
  text-align: center;
}

#app { max-width: 900px; margin: 0 auto; }

button { padding: 8px 14px; font-size: 14px; margin: 6px; border-radius: 6px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

#players-list { margin-top: 10px; text-align: left; max-height: 200px; overflow:auto; padding: 8px; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; }

canvas { border: 2px solid #333; border-radius: 8px; margin-top: 12px; background: #fff; width:100%; max-width:900px; height:400px; }

.hidden { display: none; }

#task-container { margin-top: 12px; }
#task-container input { padding: 6px 8px; font-size: 20px; height: 52px; width: 140px; max-width: 60%; box-sizing: border-box; }
#status { font-weight: bold; margin-bottom: 8px; }
#task-submit {
  padding: 16px 28px;     /* было ~8px 14px — увеличили в ~2 раза */
  font-size: 20px;        /* крупнее текста кнопки */
  border-radius: 8px;
  min-width: 84px;
  height: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Avatar buttons */
#avatars { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; margin-bottom:8px; }
.avatar-btn { font-size: 22px; padding:6px 10px; margin:4px; border-radius:6px; border:1px solid #ddd; background:#fff; cursor:pointer; width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; }
.avatar-btn.selected { outline: 2px solid #0078ff; box-shadow: 0 2px 8px rgba(0,120,255,0.12); }

/* inline avatar in player list */
.avatar-inline { font-size:20px; vertical-align:middle; margin-right:8px; }

/* end area */
#end { margin-top: 12px; }

/* debug log hidden by default; you can set display:block for debugging */
#debug-log { display:none; text-align:left; background:#111; color:#0f0; padding:8px; border-radius:6px; font-family:monospace; font-size:12px; }

/* ---- Small helpers ---- */
.admin-wrap { max-width: 900px; margin: 16px auto; background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.row { display:flex; gap:8px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
label { width:120px; font-weight:600; text-align:left; }
input[type="text"], input[type="number"], input[type="password"] { padding:6px; border-radius:6px; border:1px solid #ddd; width:240px; }
textarea { width:100%; height:60px; }
.btn { padding:8px 12px; border-radius:6px; border:1px solid #0078ff; background:#0078ff; color:#fff; cursor:pointer; }
.btn.ghost { background:#fff; color:#0078ff; border-color:#0078ff; }

.obstacle { padding:8px; border:1px dashed #eee; margin-bottom:10px; border-radius:6px; }

/* ---- Admin specific small screens fix ---- */
@media (max-width:640px) {
  label { width: 100%; }
  .row { flex-direction: column; align-items: stretch; }
  input[type="text"], input[type="number"] { width: 100%; }
  /* ensure task controls fit on small screens */
  #task-container { padding: 8px; }
  #task-timer-wrap { flex-direction: column; gap:6px; }
  #task-container input { width: 48%; }
  #task-submit, #btn-add-time { padding: 8px 10px; }
}

