/* Bố cục: khung chung là bức tường vôi vàng của lớp học, bảng đen treo trên tường (trang chủ);
   mỗi trò có khung cảnh riêng: Caro trên vở ô ly, Ô ăn quan trên sân xi măng.
   Cố ý một giao diện sáng, không đổi theo chế độ tối. */
:root {
  --paper: #fbfbf5;
  --rule: rgba(112, 96, 196, .20);
  --rule-strong: rgba(112, 96, 196, .45);
  --margin: #d64056;
  --ink: #1c3ca8;
  --ink-soft: #3a55b8;
  --red: #c3262c;
  --text: #24233a;
  --muted: #5d5b78;
  --label: #ffffff;
  --cement: #6e756f;
  --cement-dark: #565d58;
  --board: #24392f;
  --chalk: #f4f1e6;
  --chalk-dim: #c5ccbf;
  --chalk-yellow: #f2d36b;
  --wood: #8a5a32;
  --line: #d9d6ea;
  --wall: #e8c362;
  --wall-dark: #b98a2e;
  --f-chalk: "Mali", "Patrick Hand", cursive;
  --f-hand: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;
  /* chữ hẹp, rõ, đủ dấu tiếng Việt: cho nhãn nhỏ trong ô chật (bàn Cờ tỷ phú) */
  --f-cond: "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-body: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* Android không tự phóng chữ làm vỡ bố cục */
p, li, label, .small, .gc-sub, .status, .lock-txt { text-wrap: pretty; }
body {
  margin: 0; color: var(--text); font: 16px/1.55 var(--f-body);
  /* Tường vôi vàng: lớp vôi quét không đều, vệt chổi dọc, hạt cát li ti */
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 70% 40% at 15% 8%, rgba(255, 248, 220, .35), transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 55%, rgba(150, 100, 20, .13), transparent 70%),
    radial-gradient(ellipse 50% 35% at 30% 85%, rgba(255, 245, 210, .22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(120, 80, 10, .03) 0 2px, transparent 2px 9px),
    radial-gradient(rgba(110, 70, 0, .10) 1px, transparent 1.4px);
  background-size: auto, auto, auto, auto, 5px 5px;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}
/* Khung cảnh riêng từng trò */
body[data-scene="caro"] {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent var(--margin-x), var(--margin) var(--margin-x), var(--margin) calc(var(--margin-x) + 1.5px), transparent calc(var(--margin-x) + 1.5px)),
    repeating-linear-gradient(180deg, transparent 0 7px, var(--rule) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--rule-strong) 31px 32px),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule-strong) 31px 32px);
  background-size: auto;
}
body[data-scene="oanquan"] {
  background-color: #b9bcb5;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.6px), radial-gradient(rgba(0,0,0,.10) 1px, transparent 1.6px),
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(255,255,255,.15), transparent 70%);
  background-size: 7px 7px, 11px 11px, auto;
}
#app { max-width: 980px; margin: 0 auto; padding-block: 18px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* Lề đỏ của vở: chữ luôn nằm bên phải lề. Máy tính: lề ở 38px, nội dung lùi 64px. Điện thoại: lề sát mép 10px, nội dung lùi 24px. */
body[data-scene="caro"] { --margin-x: 38px; }
@media (min-width: 700px) { body[data-scene="caro"] #app { padding-left: 64px; } }
@media (max-width: 699.98px) { body[data-scene="caro"] { --margin-x: 10px; } body[data-scene="caro"] #app { padding-left: max(24px, env(safe-area-inset-left, 0px)); } }
a { color: var(--ink); }
h1, h2 { font-family: var(--f-hand); font-weight: 400; color: var(--ink); text-wrap: balance; margin: 0; }
.small { font-size: .88rem; color: var(--muted); margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---- Nút như bút / phấn ---- */
.btn {
  font: 500 1rem/1 var(--f-body); color: var(--ink); background: var(--label);
  border: 2px solid var(--ink); border-radius: 10px 12px 9px 11px; padding: .72em 1.1em; cursor: pointer;
  box-shadow: 2px 3px 0 rgba(28, 60, 168, .18); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translate(1px, 2px); box-shadow: 0 0 0 transparent; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.red { border-color: var(--red); color: var(--red); box-shadow: 2px 3px 0 rgba(195, 38, 44, .18); }
.btn.big { width: 100%; font-size: 1.08rem; padding: .85em 1em; }
.btn.small { font-size: .9rem; padding: .5em .85em; }
.icon-btn { background: none; border: 0; font-size: 1.3rem; cursor: pointer; padding: 6px; }
.back { font-family: var(--f-hand); font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-self: start; }

/* ---- Bảng đen đầu trang chủ (tràn hết bề ngang) ---- */
#hero:empty { display: none; }
.bb { color: var(--chalk); background-color: var(--board);
  background-image: radial-gradient(ellipse at 30% 15%, rgba(255,255,255,.07), transparent 60%), radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.4px);
  background-size: auto, 5px 5px; border-bottom: 10px solid var(--wood); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.bb-in { max-width: 980px; margin: 0 auto; padding-block: 16px 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: end; }
.bb-date { grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; font-family: var(--f-chalk); font-size: .95rem; color: var(--chalk-dim); }
.bb-date b { font-weight: 600; color: var(--chalk); }
.bb-brand h1 { margin: 0; font-family: var(--f-chalk); font-weight: 700; font-size: clamp(2rem, 10.5vw, 4.4rem); line-height: 1.05; white-space: nowrap; color: var(--chalk); text-shadow: 0 0 1px rgba(255,255,255,.35); }
.bb-brand p { text-wrap: balance; margin: .45rem 0 0; font-family: var(--f-chalk); font-size: 1.08rem; color: var(--chalk-yellow); }
.drum { width: clamp(84px, 22vw, 140px); height: auto; display: block; color: var(--chalk); }
@media (prefers-reduced-motion: no-preference) { .drum .stick { transform-origin: 70% 85%; animation: drumbeat 1.4s ease-in-out 3; } }
@keyframes drumbeat { 0%, 60%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } }
.bb-hi { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.bb-hi label { font-family: var(--f-chalk); color: var(--chalk-dim); }
.bb-hi input { font: 600 1.08rem var(--f-chalk); color: var(--chalk); background: transparent; border: 0; border-bottom: 2px dashed var(--chalk-dim); padding: 2px 4px; width: 13ch; }
.bb-hi input::placeholder { color: rgba(244,241,230,.45); }
.bb-hi input:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--chalk-yellow); }
.chip { font: 600 .8rem var(--f-body); color: var(--board); background: var(--chalk-yellow); border-radius: 999px; padding: .25em .75em; }
.bb :focus-visible { outline-color: var(--chalk-yellow); }

/* ---- Trang chủ ---- */
.home { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.sec { margin: 0; font-family: var(--f-hand); font-weight: 400; font-size: 1.7rem; color: var(--ink); }
.sec.red { color: var(--red); font-size: 1.45rem; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 14px; }
.gcard { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; text-decoration: none; color: var(--text);
  background: var(--label); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 4px 0 rgba(28, 60, 168, .14); transition: transform .12s, box-shadow .12s; }
.gcard:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 rgba(28, 60, 168, .18); }
.gcard:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 rgba(28, 60, 168, .14); }
.gcard .lc-art { width: 92px; height: 92px; margin: 0; border: 1.5px solid var(--line); }
.gc-body { display: grid; gap: 2px; min-width: 0; }
.gc-title { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.05; color: var(--ink); }
.gc-sub { font-size: .88rem; color: var(--muted); }
.gc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pill { font: 600 .74rem var(--f-body); border-radius: 999px; padding: .2em .65em; border: 1.5px solid currentColor; }
.pill.red { color: var(--red); } .pill.blue { color: var(--ink); }
.gcard.soon { border-style: dashed; box-shadow: none; opacity: .72; }
.gcard.soon .gc-title { color: var(--muted); }
.join { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 520px; padding: 14px 16px; background: var(--label); border: 2px dashed var(--red); border-radius: 16px; }
.join-row { display: flex; gap: 10px; }
.join-row input { flex: 1; min-width: 0; width: 100%; font: 700 1.2rem var(--f-body); letter-spacing: .2em; text-transform: uppercase; padding: .55em .7em; border: 2px solid var(--red); border-radius: 10px; background: var(--label); color: var(--red); }
.foot { font-size: .82rem; color: #4a3a12; }
.lc-art { display: block; height: 92px; border-radius: 10px; margin-bottom: 6px; background-repeat: no-repeat; background-size: cover; background-position: center; }
.lc-caro { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 96 96%22%3E%3Crect width=%2296%22 height=%2296%22 fill=%22%23fcfcf7%22/%3E%3Cg stroke=%22%237060c4%22 stroke-opacity=%22.18%22%3E%3Cpath d=%22M0 6H96%22/%3E%3Cpath d=%22M0 18H96%22/%3E%3Cpath d=%22M0 30H96%22/%3E%3Cpath d=%22M0 42H96%22/%3E%3Cpath d=%22M0 54H96%22/%3E%3Cpath d=%22M0 66H96%22/%3E%3Cpath d=%22M0 78H96%22/%3E%3Cpath d=%22M0 90H96%22/%3E%3C/g%3E%3Cg stroke=%22%237060c4%22 stroke-opacity=%22.5%22%3E%3Cpath d=%22M0 0H96%22/%3E%3Cpath d=%22M0 12H96%22/%3E%3Cpath d=%22M0 24H96%22/%3E%3Cpath d=%22M0 36H96%22/%3E%3Cpath d=%22M0 48H96%22/%3E%3Cpath d=%22M0 60H96%22/%3E%3Cpath d=%22M0 72H96%22/%3E%3Cpath d=%22M0 84H96%22/%3E%3Cpath d=%22M0 96H96%22/%3E%3Cpath d=%22M0 0V96%22/%3E%3Cpath d=%22M12 0V96%22/%3E%3Cpath d=%22M24 0V96%22/%3E%3Cpath d=%22M36 0V96%22/%3E%3Cpath d=%22M48 0V96%22/%3E%3Cpath d=%22M60 0V96%22/%3E%3Cpath d=%22M72 0V96%22/%3E%3Cpath d=%22M84 0V96%22/%3E%3Cpath d=%22M96 0V96%22/%3E%3C/g%3E%3Cg fill=%22none%22 stroke-linecap=%22round%22 stroke-width=%221.9%22%3E%3Cg stroke=%22%231c3ca8%22%3E%3Cpath d=%22M50.4 38.1L57.6 44.8M57.5 38.4L50.0 45.4%22/%3E%3Cpath d=%22M38.0 38.5L45.0 45.5M44.8 38.7L39.2 45.6%22/%3E%3Cpath d=%22M51.2 50.7L57.3 58.1M56.8 51.1L50.300000000000004 56.9%22/%3E%3Cpath d=%22M38.7 50.7L45.699999999999996 56.8M45.5 50.2L38.0 57.699999999999996%22/%3E%3Cpath d=%22M38.0 74.19999999999999L45.699999999999996 81.30000000000001M45.1 74.69999999999999L38.5 81.10000000000001%22/%3E%3Cpath d=%22M62.2 63.0L68.80000000000001 69.10000000000001M69.4 62.4L62.5 69.60000000000001%22/%3E%3Cpath d=%22M14.1 50.5L21.799999999999997 56.9M21.4 50.0L14.799999999999999 57.8%22/%3E%3Cpath d=%22M27.0 63.0L33.199999999999996 69.2M33.4 63.0L26.0 68.80000000000001%22/%3E%3Cpath d=%22M14.6 38.800000000000004L20.799999999999997 45.699999999999996M21.599999999999998 39.300000000000004L15.1 45.1%22/%3E%3Cpath d=%22M51.1 26.400000000000002L58.0 33.199999999999996M57.6 26.6L50.2 33.1%22/%3E%3Cpath d=%22M26.200000000000003 2.4L33.9 8.8M33.3 2.7L27.1 9.8%22/%3E%3Cpath d=%22M62.7 14.9L70.10000000000001 21.7M69.2 14.2L62.0 20.9%22/%3E%3C/g%3E%3Cg stroke=%22%23c3262c%22%3E%3Cellipse cx=%2266%22 cy=%2254%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(-28 66 54)%22/%3E%3Cellipse cx=%2230%22 cy=%2242%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(7 30 42)%22/%3E%3Cellipse cx=%2254%22 cy=%2266%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(-23 54 66)%22/%3E%3Cellipse cx=%2266%22 cy=%2230%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(6 66 30)%22/%3E%3Cellipse cx=%2242%22 cy=%2266%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(20 42 66)%22/%3E%3Cellipse cx=%2278%22 cy=%2278%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(-26 78 78)%22/%3E%3Cellipse cx=%2230%22 cy=%2254%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(6 30 54)%22/%3E%3Cellipse cx=%226%22 cy=%2242%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(-13 6 42)%22/%3E%3Cellipse cx=%2218%22 cy=%2266%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(-6 18 66)%22/%3E%3Cellipse cx=%2230%22 cy=%2230%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(17 30 30)%22/%3E%3Cellipse cx=%2242%22 cy=%226%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(25 42 6)%22/%3E%3Cellipse cx=%2254%22 cy=%2218%22 rx=%223.8%22 ry=%223.4%22 transform=%22rotate(12 54 18)%22/%3E%3C/g%3E%3C/g%3E%3Crect x=%2249%22 y=%2213%22 width=%2210%22 height=%2210%22 fill=%22none%22 stroke=%22%23555%22 stroke-opacity=%22.5%22 stroke-dasharray=%222 1.5%22/%3E%3C/svg%3E") center/cover no-repeat; }  /* thế cờ thật: Rapfi tự đấu luật sân trường, nước 24, mỗi bên 3 thế 3, chưa ai thắng */
.lc-oanquan { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 96 96%22%3E %3Crect width=%2296%22 height=%2296%22 fill=%22%236e756f%22/%3E %3Cg fill=%22%23fff%22 fill-opacity=%22.05%22%3E%3Ccircle cx=%220%22 cy=%220%22 r=%221%22/%3E%3Ccircle cx=%2237%22 cy=%2253%22 r=%221%22/%3E%3Ccircle cx=%2274%22 cy=%2210%22 r=%221%22/%3E%3Ccircle cx=%2215%22 cy=%2263%22 r=%221%22/%3E%3Ccircle cx=%2252%22 cy=%2220%22 r=%221%22/%3E%3Ccircle cx=%2289%22 cy=%2273%22 r=%221%22/%3E%3Ccircle cx=%2230%22 cy=%2230%22 r=%221%22/%3E%3Ccircle cx=%2267%22 cy=%2283%22 r=%221%22/%3E%3Ccircle cx=%228%22 cy=%2240%22 r=%221%22/%3E%3Ccircle cx=%2245%22 cy=%2293%22 r=%221%22/%3E%3Ccircle cx=%2282%22 cy=%2250%22 r=%221%22/%3E%3Ccircle cx=%2223%22 cy=%227%22 r=%221%22/%3E%3Ccircle cx=%2260%22 cy=%2260%22 r=%221%22/%3E%3Ccircle cx=%221%22 cy=%2217%22 r=%221%22/%3E%3Ccircle cx=%2238%22 cy=%2270%22 r=%221%22/%3E%3Ccircle cx=%2275%22 cy=%2227%22 r=%221%22/%3E%3Ccircle cx=%2216%22 cy=%2280%22 r=%221%22/%3E%3Ccircle cx=%2253%22 cy=%2237%22 r=%221%22/%3E%3Ccircle cx=%2290%22 cy=%2290%22 r=%221%22/%3E%3Ccircle cx=%2231%22 cy=%2247%22 r=%221%22/%3E%3Ccircle cx=%2268%22 cy=%224%22 r=%221%22/%3E%3Ccircle cx=%229%22 cy=%2257%22 r=%221%22/%3E%3Ccircle cx=%2246%22 cy=%2214%22 r=%221%22/%3E%3Ccircle cx=%2283%22 cy=%2267%22 r=%221%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%221%22/%3E%3Ccircle cx=%2261%22 cy=%2277%22 r=%221%22/%3E%3Ccircle cx=%222%22 cy=%2234%22 r=%221%22/%3E%3Ccircle cx=%2239%22 cy=%2287%22 r=%221%22/%3E%3Ccircle cx=%2276%22 cy=%2244%22 r=%221%22/%3E%3Ccircle cx=%2217%22 cy=%221%22 r=%221%22/%3E%3Ccircle cx=%2254%22 cy=%2254%22 r=%221%22/%3E%3Ccircle cx=%2291%22 cy=%2211%22 r=%221%22/%3E%3Ccircle cx=%2232%22 cy=%2264%22 r=%221%22/%3E%3Ccircle cx=%2269%22 cy=%2221%22 r=%221%22/%3E%3Ccircle cx=%2210%22 cy=%2274%22 r=%221%22/%3E%3Ccircle cx=%2247%22 cy=%2231%22 r=%221%22/%3E%3Ccircle cx=%2284%22 cy=%2284%22 r=%221%22/%3E%3Ccircle cx=%2225%22 cy=%2241%22 r=%221%22/%3E%3Ccircle cx=%2262%22 cy=%2294%22 r=%221%22/%3E%3Ccircle cx=%223%22 cy=%2251%22 r=%221%22/%3E%3C/g%3E %3Cg fill=%22none%22 stroke=%22%23f7f6ee%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 opacity=%22.92%22%3E %3Cpath d=%22M18 30H78V66H18Z M18 48H78 M30 30V66 M42 30V66 M54 30V66 M66 30V66%22/%3E %3Cpath d=%22M18 30C3 31 3 65 18 66 M78 30C93 31 93 65 78 66%22/%3E%3C/g%3E %3Cellipse cx=%2211%22 cy=%2248%22 rx=%225%22 ry=%224%22 fill=%22%239a958b%22/%3E%3Cellipse cx=%2285%22 cy=%2248%22 rx=%225%22 ry=%224%22 fill=%22%239a958b%22/%3E %3Cg fill=%22%23e6e1d4%22%3E%3Ccircle cx=%2222%22 cy=%2235%22 r=%221.7%22/%3E%3Ccircle cx=%2226%22 cy=%2241%22 r=%221.7%22/%3E%3Ccircle cx=%2223%22 cy=%2243%22 r=%221.7%22/%3E%3Ccircle cx=%2235%22 cy=%2236%22 r=%221.7%22/%3E%3Ccircle cx=%2237%22 cy=%2242%22 r=%221.7%22/%3E%3Ccircle cx=%2247%22 cy=%2235%22 r=%221.7%22/%3E%3Ccircle cx=%2250%22 cy=%2240%22 r=%221.7%22/%3E%3Ccircle cx=%2246%22 cy=%2243%22 r=%221.7%22/%3E%3Ccircle cx=%2258%22 cy=%2236%22 r=%221.7%22/%3E%3Ccircle cx=%2261%22 cy=%2242%22 r=%221.7%22/%3E%3Ccircle cx=%2271%22 cy=%2235%22 r=%221.7%22/%3E%3Ccircle cx=%2273%22 cy=%2241%22 r=%221.7%22/%3E%3Ccircle cx=%2222%22 cy=%2254%22 r=%221.7%22/%3E%3Ccircle cx=%2226%22 cy=%2260%22 r=%221.7%22/%3E%3Ccircle cx=%2234%22 cy=%2255%22 r=%221.7%22/%3E%3Ccircle cx=%2238%22 cy=%2261%22 r=%221.7%22/%3E%3Ccircle cx=%2247%22 cy=%2254%22 r=%221.7%22/%3E%3Ccircle cx=%2251%22 cy=%2260%22 r=%221.7%22/%3E%3Ccircle cx=%2259%22 cy=%2256%22 r=%221.7%22/%3E%3Ccircle cx=%2262%22 cy=%2261%22 r=%221.7%22/%3E%3Ccircle cx=%2270%22 cy=%2255%22 r=%221.7%22/%3E%3Ccircle cx=%2273%22 cy=%2260%22 r=%221.7%22/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat; }
.gcard .typhu-art, .sh-head .typhu-art { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 96 96%22%3E %3Crect width=%2296%22 height=%2296%22 fill=%22%23fff4d6%22/%3E %3Crect x=%228%22 y=%228%22 width=%2280%22 height=%2280%22 rx=%223%22 fill=%22%23fffaf0%22 stroke=%22%23b4232a%22 stroke-width=%223%22/%3E %3Crect x=%2226%22 y=%2226%22 width=%2244%22 height=%2244%22 fill=%22%23fde6a8%22 stroke=%22%231c3ca8%22 stroke-width=%221.2%22/%3E %3Cg%3E%3Crect x=%2226%22 y=%229%22 width=%2210%22 height=%225%22 fill=%22%23d63a3a%22/%3E%3Crect x=%2238%22 y=%229%22 width=%2210%22 height=%225%22 fill=%22%23d63a3a%22/%3E%3Crect x=%2250%22 y=%229%22 width=%2210%22 height=%225%22 fill=%22%23e4b62b%22/%3E%3Crect x=%2260%22 y=%229%22 width=%2210%22 height=%225%22 fill=%22%23e4b62b%22/%3E %3Crect x=%2282%22 y=%2226%22 width=%225%22 height=%2210%22 fill=%22%232e9a52%22/%3E%3Crect x=%2282%22 y=%2238%22 width=%225%22 height=%2210%22 fill=%22%232e9a52%22/%3E%3Crect x=%2282%22 y=%2258%22 width=%225%22 height=%2212%22 fill=%22%232a4aa8%22/%3E %3Crect x=%2226%22 y=%2282%22 width=%2210%22 height=%225%22 fill=%22%237cc4e6%22/%3E%3Crect x=%2240%22 y=%2282%22 width=%2210%22 height=%225%22 fill=%22%237cc4e6%22/%3E%3Crect x=%2260%22 y=%2282%22 width=%2210%22 height=%225%22 fill=%22%238a5a32%22/%3E %3Crect x=%229%22 y=%2228%22 width=%225%22 height=%2210%22 fill=%22%23e8892f%22/%3E%3Crect x=%229%22 y=%2242%22 width=%225%22 height=%2210%22 fill=%22%23e8892f%22/%3E%3Crect x=%229%22 y=%2258%22 width=%225%22 height=%2210%22 fill=%22%23d457a0%22/%3E%3C/g%3E %3Cpath d=%22M14 78h8l-3-3m3 3l-3 3%22 stroke=%22%23c3262c%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22/%3E %3Cg transform=%22rotate(-10 41 46)%22%3E%3Crect x=%2231%22 y=%2236%22 width=%2220%22 height=%2220%22 rx=%224%22 fill=%22%23fff%22 stroke=%22%2323242f%22 stroke-width=%221.5%22/%3E%3Ccircle cx=%2236%22 cy=%2241%22 r=%222%22 fill=%22%23c3262c%22/%3E%3Ccircle cx=%2241%22 cy=%2246%22 r=%222%22 fill=%22%23c3262c%22/%3E%3Ccircle cx=%2246%22 cy=%2251%22 r=%222%22 fill=%22%23c3262c%22/%3E%3C/g%3E %3Cpath d=%22M54 64V54l7-6 7 6v10z%22 fill=%22%23d9483b%22 stroke=%22%237a2a1a%22 stroke-width=%221%22/%3E%3Crect x=%2258.5%22 y=%2257%22 width=%225%22 height=%227%22 fill=%22%23fff4d6%22/%3E %3C/svg%3E") center/cover no-repeat; }
.lc-caNgua { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 96 96%22%3E %3Crect width=%2296%22 height=%2296%22 fill=%22%23f4ecd8%22/%3E %3Crect x=%228%22 y=%228%22 width=%2234%22 height=%2234%22 rx=%224%22 fill=%22%23d9483b%22/%3E%3Crect x=%2254%22 y=%228%22 width=%2234%22 height=%2234%22 rx=%224%22 fill=%22%232f6fd1%22/%3E %3Crect x=%228%22 y=%2254%22 width=%2234%22 height=%2234%22 rx=%224%22 fill=%22%23e4b62b%22/%3E%3Crect x=%2254%22 y=%2254%22 width=%2234%22 height=%2234%22 rx=%224%22 fill=%22%232e9a52%22/%3E %3Cpath d=%22M42 8h12v80H42zM8 42h80v12H8z%22 fill=%22%23fffaf0%22 stroke=%22%238b7f66%22 stroke-width=%22.8%22/%3E %3Ccircle cx=%2248%22 cy=%2248%22 r=%227%22 fill=%22%23fff%22 stroke=%22%238b7f66%22/%3E%3C/svg%3E") center/cover no-repeat; opacity: .75; }

/* ---- Chọn cách chơi: một tấm thẻ, ba tab, nút bắt đầu dính đáy ---- */
.setup { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.sheet { background: var(--label); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 3px 4px 0 rgba(28, 60, 168, .12); }
.sh-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1.5px solid var(--line); }
.sh-head .lc-art { width: 64px; height: 64px; flex: none; margin: 0; border: 1.5px solid var(--line); }
.sh-head h1 { font-size: 2.2rem; line-height: 1; }
.sh-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-bottom: 1.5px solid var(--line); }
.tabs button { font: 600 .95rem var(--f-body); padding: .85em .2em; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pane { padding: 14px 16px 6px; display: grid; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { font: 600 .9rem var(--f-body); padding: .5em .95em; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--label); color: var(--ink); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.small.stat { color: var(--ink); }
.rules { border-top: 1.5px solid var(--line); padding: 10px 16px; max-width: none; }
.rules summary { font-family: var(--f-hand); font-size: 1.35rem; color: var(--ink); cursor: pointer; }
.rules p, .rules li { font-size: .95rem; }
.rules ul { padding-left: 1.2em; }
.opts { display: grid; gap: 8px; border-top: 1px dotted var(--ink-soft); padding-top: 10px; margin-top: 6px; }
.chk { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--ink); }
.cta { position: sticky; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(255,255,255,0), var(--label) 28%); border-radius: 0 0 16px 16px; }

/* ---- Phòng chờ ---- */
.lobby { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.lobby-body { display: grid; gap: 12px; justify-items: start; padding: 16px; }
.lobby-body .code-big { justify-self: stretch; text-align: center; }
.lobby-card .cta { padding-top: 4px; }
.code-big { margin: 0; font: 700 clamp(2.4rem, 12vw, 3.6rem)/1 var(--f-body); letter-spacing: .08em; color: var(--red); background: var(--label); border: 3px double var(--red); border-radius: 14px; padding: 14px 22px; }
.lobby-status { margin: 0; font-family: var(--f-hand); font-size: 1.25rem; color: var(--ink); }
.lobby-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Màn chơi ---- */
.play { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.play > * { min-width: 0; }
.play-bar { display: flex; align-items: center; gap: 10px; }
.play-bar .back { font-size: 1.7rem; padding: 0 10px; margin-left: -10px; justify-content: center; }
.pb-title { flex: 1; min-width: 0; display: grid; }
.pb-title b { font-family: var(--f-hand); font-weight: 400; font-size: 1.6rem; color: var(--ink); line-height: 1; }
.pb-title span { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.players { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.players.flip .pl0 { order: 2; } .players.flip .pl1 { order: 1; }
.pl { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; background: var(--label); border: 2px solid #c9c6dd; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.pl.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 60, 168, .15); }
.pl-name { flex: 1; min-width: 0; font-weight: 500; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding-block: 1px; }
.pl-name em { font-style: normal; color: var(--muted); font-weight: 400; font-size: .85em; }
.pl-score { font: 700 .95rem var(--f-body); color: var(--red); font-variant-numeric: tabular-nums; }
.mk { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1; width: 1.1em; text-align: center; }
.mk0 { color: var(--ink); } .mk1 { color: var(--red); }
.side0, .side1 { font-size: .9rem; color: var(--cement-dark); }
.status { margin: 0; min-height: 1.6em; font-family: var(--f-hand); font-size: 1.3rem; color: var(--ink); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.emotes { display: flex; gap: 6px; flex-wrap: wrap; }
.emo { font: 500 .85rem var(--f-body); border: 1.5px solid var(--ink-soft); background: var(--label); color: var(--ink); border-radius: 999px; padding: .4em .8em; cursor: pointer; }
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff4c9; border: 2px solid #d9b740; border-radius: 12px; padding: 10px 12px; font-size: .95rem; }
.banner[hidden] { display: none; }

/* Caro */
.caro-stage { position: relative; }
.caro-scroll { height: min(68vh, 640px); overflow: auto; border: 2px solid var(--ink); border-radius: 6px; background: #fcfcf7; box-shadow: 3px 4px 0 rgba(28, 60, 168, .12); overscroll-behavior: contain; touch-action: none; }
.caro-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.caro-zoom button { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .92); color: var(--ink); font: 600 1.15rem/1 var(--f-body); cursor: pointer; box-shadow: 0 2px 6px rgba(28, 60, 168, .18); }
.caro-zoom button[data-z="fit"] { font-size: .85rem; }
.caro-zoom button:active { transform: translateY(1px); }
.caro-tip { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); margin: 0; padding: .35em .9em; border-radius: 999px; background: var(--ink); color: #fff; font: 500 .85rem var(--f-body); white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.caro-canvas { display: block; cursor: crosshair; }

/* Ô ăn quan */
.play-oanquan .board-area { background: var(--cement); border-radius: 14px; padding: 14px 8px 12px; box-shadow: inset 0 0 40px rgba(0,0,0,.25);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px), radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.5px);
  background-size: 7px 7px, 11px 11px; }
.oaq-board { position: relative; width: 100%; aspect-ratio: 700 / 260; max-width: 100%; }
.oaq-chalk { position: absolute; inset: 0; width: 100%; height: 100%; }
.oaq-cells { position: absolute; inset: 0; }
.oaq-cell { position: absolute; border-radius: 8px; transition: background .2s; }
.oaq-cell .stones { position: absolute; inset: 0; }
.oaq-cell.playable { cursor: pointer; background: rgba(255,255,255,.06); }
.oaq-cell.playable:hover { background: rgba(255,255,255,.13); }
.oaq-cell.sel { background: rgba(255, 236, 140, .22); }
.oaq-cell.flash { background: rgba(255, 236, 140, .3); }
.oaq-cell.drop { background: rgba(255,255,255,.12); }
.oaq-cell.eat { background: rgba(255, 120, 100, .35); }
.peb { position: absolute; width: 11%; aspect-ratio: 1.2; border-radius: 48% 52% 45% 55%; box-shadow: inset -1px -2px 2px rgba(0,0,0,.25), 0 1px 1px rgba(0,0,0,.3); }
.quan .peb { width: 12%; }
.quanstone { position: absolute; width: 46%; aspect-ratio: 1.25; border-radius: 50% 46% 52% 48%; background: radial-gradient(circle at 35% 30%, #b9b2a3, #6f6a62 70%); box-shadow: inset -3px -4px 6px rgba(0,0,0,.3), 0 2px 3px rgba(0,0,0,.35); }
.cnt { position: absolute; right: 6%; bottom: 3%; font-family: var(--f-hand); font-size: clamp(.8rem, 2.6vw, 1.2rem); color: var(--chalk); text-shadow: 0 1px 1px rgba(0,0,0,.4); pointer-events: none; }
.quan .cnt { right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.oaq-cell[data-q="L"] .cnt { left: 58%; } .oaq-cell[data-q="R"] .cnt { left: 42%; }
.arrows { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; z-index: 2; }
.arrows button { border: 0; border-radius: 6px; background: rgba(255, 236, 140, .88); color: #3a2f05; font-size: clamp(.9rem, 3vw, 1.4rem); cursor: pointer; }
.oaq-hand { min-height: 1.5em; margin-top: 8px; text-align: center; font-family: var(--f-hand); font-size: 1.25rem; color: var(--chalk); }

/* Kết quả */
.result { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(36, 35, 58, .45); padding: 16px; z-index: 50; }
.res-card { width: min(100%, 400px); background: var(--label); border: 3px double var(--ink); border-radius: 18px; padding: 22px 20px; display: grid; gap: 8px; text-align: center; animation: pop .25s ease-out; }
.res-card h2 { font-size: 2.1rem; }
.res-card p { margin: 0; }
.res-stamp { justify-self: center; font-family: var(--f-hand); font-size: 1.8rem; color: var(--red); border: 3px solid var(--red); border-radius: 50%; width: 92px; height: 92px; display: grid; place-items: center; transform: rotate(-12deg); }
.res-stamp.lose { color: var(--ink); border-color: var(--ink); }
.res-actions { display: grid; gap: 8px; margin-top: 8px; }
@keyframes pop { from { transform: scale(.92); opacity: .6; } to { transform: none; opacity: 1; } }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; z-index: 60; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: .95rem; text-align: center; transition: opacity .4s; }
.toast.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 480px) {
  .caro-scroll { height: 62vh; }
  .play-oanquan .board-area { padding: 10px 2px; }
}

/* ---- Khóa giờ học ---- */
.bb-clock { font-weight: 600; padding: .1em .6em; border-radius: 999px; border: 1.5px dashed var(--chalk-dim); }
.bb-clock.recess { color: var(--board); background: var(--chalk-yellow); border-color: var(--chalk-yellow); }
.bb-clock.class { color: #ffd9d4; border-color: #ff9a8a; }
.bb-clock.adult { color: var(--board); background: #bfe8c8; border-color: #bfe8c8; }
.gcard.locked { filter: grayscale(.85); opacity: .6; box-shadow: none; }
.gcard.locked::after { content: "Đang giờ học"; position: absolute; right: 10px; top: 10px; font: 600 .72rem var(--f-body); color: #fff; background: var(--red); border-radius: 999px; padding: .2em .6em; }
.gcard { position: relative; }
.linkbtn { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 500 .85rem var(--f-body); color: #4a3a12; text-decoration: underline; cursor: pointer; }
.linkbtn.chalk { color: var(--chalk-dim); }
.lock { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow-y: auto; padding: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: rgba(20, 30, 24, .72); }
.lock-board { width: min(100%, 460px); min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; text-align: center; padding: 24px 20px 22px; color: var(--chalk); background: var(--board); border: 10px solid var(--wood); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
  background-image: radial-gradient(ellipse at 30% 15%, rgba(255,255,255,.07), transparent 60%); }
.lock-eyebrow { margin: 0; font: 600 1rem var(--f-chalk); color: var(--chalk-yellow); }
.lock-board h2 { margin: 0; font: 700 clamp(2rem, 9vw, 2.8rem)/1.05 var(--f-chalk); color: var(--chalk); }
.lock-txt { margin: 0; font-size: .95rem; color: var(--chalk-dim); max-width: 36ch; overflow-wrap: anywhere; }
.lock-when { overflow-wrap: anywhere; }
.lock-when { margin: 0; font: 600 1.05rem var(--f-chalk); color: var(--chalk); }
.lock-form { display: grid; gap: 6px; width: 100%; text-align: left; }
.lock-form label { font: 500 .85rem var(--f-body); color: var(--chalk-dim); }
.lock-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lock-row input { flex: 1 1 160px; min-width: 0; width: 100%; font: 600 1.05rem var(--f-body); letter-spacing: .12em; padding: .55em .7em; border-radius: 10px; border: 2px solid var(--chalk-dim); background: rgba(255,255,255,.08); color: var(--chalk); }
.lock-row .btn { flex: 1 1 auto; }
.lock-msg { margin: 0; min-height: 1.2em; font-size: .85rem; color: #ffb3a6; }
.lock-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lock .btn { text-decoration: none; }

/* ---- Ván đang dở ---- */
.resume { display: flex; gap: 10px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; background: #fff4c9; border: 2px solid #d9b740; }
.resume p { margin: 0; display: grid; gap: 2px; min-width: 0; }
.resume b { font: 400 1.25rem var(--f-hand); color: #7a4d14; }
.resume span { font-size: .85rem; color: #6b5a2a; }
.resume-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.gcard .pill.saved { color: #7a4d14; border-color: #d9b740; background: #fff4c9; }

/* Nút xoay màn hình (chỉ điện thoại) */
.rot-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink); font: 600 .8rem/1 var(--f-body); cursor: pointer; }
.rot-btn svg { width: 18px; height: 18px; }

/* Điện thoại nằm ngang: bảng điều khiển bên trái, bàn cờ chiếm trọn chiều cao bên phải */
@media (orientation: landscape) and (max-height: 540px) {
  #app { max-width: none; padding-block: 8px 10px; }
  body[data-scene="caro"] #app { padding-left: max(28px, env(safe-area-inset-left, 0px)); }
  .play { grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); grid-template-rows: repeat(5, auto) minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: start; }
  .play > :not(.board-area) { grid-column: 1; }
  .play > .board-area { grid-column: 2; grid-row: 1 / -1; align-self: start; }
  .play-bar { gap: 6px; }
  .pb-title b { font-size: 1.3rem; }
  .players { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pl { padding: 5px 8px; }
  .status { font-size: 1.1rem; }
  .actions .btn { padding-block: 6px; }
  .caro-scroll { height: calc(100dvh - 22px); }
  .play-oanquan .board-area { padding: 8px 6px; }
  .oaq-board { width: min(100%, calc((100dvh - 70px) * 700 / 260)); margin-inline: auto; }
  .oaq-hand { margin-top: 2px; font-size: 1.05rem; }
  .lock { padding-block: 10px; }
}

/* Xem lại ván + trang quản trị */
.replay, .admin { display: grid; gap: 14px; }
.replay-card { display: grid; gap: 10px; }
.replay-pl .mk0 { color: #1c3ca8; font-weight: 700; } .replay-pl .mk1 { color: #c3262c; font-weight: 700; }
.replay-board { display: grid; place-items: center; }
.replay-board svg { width: 100%; max-width: min(560px, 70vh); height: auto; border: 2px solid var(--ink); border-radius: 6px; background: #fcfcf7; }
.replay-ctl { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.replay-ctl .btn { min-width: 44px; min-height: 44px; }
.replay-range { width: 100%; accent-color: var(--ink); }
.res-hay { margin: 8px 0 0; color: #b5372c; font-weight: 600; }
.admin h2 { margin: 0 0 8px; font-family: var(--f-hand); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.admin-kpi { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-kpi span { padding: 8px 12px; border-radius: 12px; background: var(--label); border: 1.5px solid #c9c6dd; }
.admin-kpi b { font-size: 1.3rem; color: var(--ink); }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3e0ef; white-space: nowrap; }
.tbl td:nth-child(4) { white-space: normal; min-width: 140px; }
.tbl th { color: var(--muted); font-weight: 600; }
.hay-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.hay { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--label); border: 1.5px solid #c9c6dd; }
.hay > div:first-child { min-width: 0; flex: 1 1 220px; }
.hay-act { display: flex; gap: 6px; }
.admin-gate { display: grid; gap: 10px; max-width: 460px; }
.admin > .sheet, .replay > .sheet, .admin-gate { padding: 18px 18px 20px; }
.admin .res-actions, .replay .res-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin .res-actions .btn, .replay .res-actions .btn { flex: 0 1 auto; width: auto; }
.admin .lock-row .btn { flex: 0 0 auto; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.replay h1, .admin h1, .admin-gate h1 { margin: 0 0 6px; font-family: var(--f-hand); font-weight: 400; color: var(--ink); }
.bb-lich { margin: 10px 0 0; font-size: .85rem; color: var(--chalk-dim); }
.bb-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--chalk); }
.bb-pick .btn { background: var(--chalk-yellow); color: var(--board); border-color: var(--chalk-yellow); }
.bb-pick .bb-note { flex-basis: 100%; font-size: .78rem; color: var(--chalk-dim); }
.admin .seg { margin: 6px 0 10px; }
.seat-who { justify-self: end; padding: 6px 12px; border-radius: 999px; background: rgba(28, 60, 168, .08); color: var(--ink); font: 600 .85rem/1.2 var(--f-body); white-space: nowrap; }
@media (max-width: 420px) { .pl-name em { display: none; } .pl { padding: 7px 8px; gap: 6px; } }
