/* =============================================================================
   index.css — trang gốc chọn màn (public/manhinh/index.html).
   Bảng màu/font ăn theo theme mặc định "hanabi" của display.css (nền đen,
   nhấn đỏ, Oswald cho tiêu đề) để không lạc phong cách với 4 màn hình thật —
   nhưng KHÔNG import display.css (trang này không phải màn hình signage, chỉ
   là bảng chọn, không cần toàn bộ máy phân trang/hiệu ứng của nó). KHÔNG kéo
   Tailwind/CSS framework nào vào — đúng yêu cầu spec mục 3.
   File CSS RIÊNG (không phải <style> nội tuyến) vì CSP của site này không có
   'unsafe-inline' cho style-src — xem firebase.json site kinglong-manhinh.
   ============================================================================= */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Oswald-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Oswald-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0a0a;
  --text: #f5f0e6;
  --text-muted: #b9b2a3;
  --accent: #c0392b;
  --accent-hover: #d94a3a;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", "Noto Sans", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4vh 4vw;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(22px, 4vw, 40px);
  margin: 0 0 6px;
  text-align: center;
}
.subtitle {
  color: var(--text-muted);
  font-size: clamp(13px, 1.6vw, 18px);
  margin: 0 0 5vh;
  text-align: center;
}

.screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: clamp(14px, 2vw, 28px);
  width: 100%;
  max-width: 900px;
}

.screen-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  height: clamp(140px, 22vw, 220px);
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 18px;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}
.screen-btn:active { transform: scale(0.98); }
.screen-btn:hover, .screen-btn:focus-visible {
  background: rgba(192, 57, 43, 0.18);
  border-color: var(--accent);
}
.screen-btn:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
}

.screen-num {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  color: var(--accent-hover);
}
.screen-name {
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
  word-break: break-word;
}

footer {
  margin-top: 5vh;
  color: var(--text-muted);
  font-size: clamp(11px, 1.2vw, 14px);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Điện thoại dọc — 1 cột, nút vẫn rất to (spec: "thực tế nên rất to"). */
@media (max-width: 520px) {
  .screens { grid-template-columns: 1fr; }
  .screen-btn { height: clamp(96px, 24vw, 140px); }
}
