/* Giao diện chung Bot Farm: đăng nhập và chọn game. Trang game nạp thêm theme-game.css để cùng màu. */
:root {
  --ink: #123c37;
  --ink-2: #1c4c44;
  --on-ink: #fff7e7;
  --on-ink-mute: #c9d4c2;
  --bg: #f4f2ec;
  --card: #ffffff;
  --line: #e0dccf;
  --text: #22312c;
  --mute: #5f6b63;
  --accent: #94691f;
  --accent-hi: #a87a2a;
  --red: #a53524;
  --ok: #1e6549;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 16px; border-radius: 8px;
  border: 1px solid #c9c4b4; background: #fff; color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #f7f5ee; }
.btn--main { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--main:hover { background: var(--accent-hi); }
.btn--ink { background: transparent; border-color: rgba(255, 247, 231, .4); color: var(--on-ink); min-height: 34px; padding: 4px 12px; font-size: 14px; }
.btn--ink:hover { background: var(--ink-2); }

/* Đăng nhập */
.auth { min-height: 100vh; background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth__card { width: min(400px, 100%); background: var(--card); border-radius: 14px; padding: 28px 26px 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.auth__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.auth__brand img { width: 44px; height: 44px; }
.auth__brand h1 { margin: 0; font-size: 26px; font-weight: 800; color: var(--ink); }
.auth__sub { color: var(--mute); margin: 0 0 20px; }
.auth h2 { font-size: 18px; margin: 0 0 12px; }
.field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.field input { display: block; width: 100%; min-height: 42px; margin-top: 4px; padding: 8px 11px; border: 1px solid #c9c4b4; border-radius: 8px; font: inherit; font-weight: 400; color: inherit; background: #fff; }
.auth .btn--main { width: 100%; min-height: 44px; margin-top: 4px; }
.auth__switch { text-align: center; color: var(--mute); margin: 12px 0 0; font-size: 14px; }
.auth__switch a { color: var(--accent); font-weight: 600; }
.auth__err { color: var(--red); text-align: center; min-height: 1.5em; margin: 10px 0 0; font-size: 14px; }
.support { display: flex; flex-wrap: wrap; gap: 8px; }
.support a { flex: 1 1 150px; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid #b9d2f7; background: #eef5ff; color: #0b4fb3; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.support a:hover { background: #dfecff; }
.support b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #0068ff; color: #fff; font-size: 12px; }
.auth .support { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Chọn game */
.top { background: var(--ink); color: var(--on-ink); }
.top__in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.top__brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-right: auto; }
.top__brand img { width: 34px; height: 34px; }
.top__who { color: var(--on-ink-mute); font-size: 14px; }
.top__xu { font-weight: 700; font-variant-numeric: tabular-nums; }
.games { max-width: 1040px; margin: 0 auto; padding: 28px 16px 44px; }
.games h1 { margin: 0; font-size: 26px; font-weight: 800; }
.games__sub { color: var(--mute); margin: 2px 0 20px; }
.notice { background: #f7e3df; color: #8f2c1d; border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; font-weight: 500; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.game-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
a.game-card { transition: border-color .12s, box-shadow .12s; }
a.game-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(18, 60, 55, .12); }
.game-card__head { display: flex; align-items: center; gap: 14px; }
.game-ico { width: 68px; height: 68px; border-radius: 15px; object-fit: cover; flex: none; }
.game-name { display: block; font-size: 19px; font-weight: 700; }
.game-slot { display: inline-block; margin-top: 3px; padding: 1px 9px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: #dff1e8; color: var(--ok); }
.game-slot.none { background: #fbf3df; color: #7c520c; }
.game-slot.off { background: #ecebe4; color: #57605a; }
.game-sub { color: var(--mute); font-size: 14px; flex: 1; }
.game-go { font-weight: 600; color: var(--accent); }
.game-card.closed { background: #faf9f4; }
div.game-card { cursor: pointer; }
.game-card.closed .game-ico { filter: grayscale(1); opacity: .65; }
.games__help { margin-top: 26px; }
.games__help h2 { font-size: 15px; margin: 0 0 8px; }
.games__help .support { max-width: 520px; }

@media (max-width: 560px) {
  .top__who { flex: 1 1 100%; order: 3; }
  .game-grid { grid-template-columns: 1fr; }
}
