/**
 * game-ui.css — lop style dung cho 4 trang tro choi dan gian tu viet
 * (o-an-quan, co-vua, co-ca-ngua, co-tuong).
 *
 * LY TON TON TAI: ban clone chi phuc vu _next/.../1p2lvqzwjiqbw.css da duoc
 * Next.js tree-shake, nen nhieu class Tailwind cac trang nay doan ra (vi du
 * `.w-11`) khong he ton tai trong file — chung im lang render sai (logo 192px
 * tran header, menu desktop vo hinh). Gate: `node .v2c/audit_css.mjs`.
 *
 * QUY TAC: muon dung class Tailwind moi -> kiem no co that trong chunk truoc;
 * neu khong co thi viet class `.ldn-*` vao day.
 *
 * Tham chieu ngon ngu thiet ke goc cua site:
 *   radius 3-5px (khong pill) | --paper #f6efdf --sheet #fffaf0 --ink #3e3229
 *   --muted #786753 --vermilion #792836 --gold #a77b3e | border #d9c6a5
 *   dark: #231d1b #2c2320 #eadcc8 #c5af96 #674d37
 *   bong "giay xep lop": 0 7px 0 -4px <paper>, 0 8px 0 -4px <border>
 */

/* ===== 1. Nut bam ===== */
.ldn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 11px 19px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.ldn-btn:hover { transform: translateY(-2px); }
.ldn-btn--primary { background: #792836; color: #fff1d6; box-shadow: 0 2px 0 -1px #4d1620; }
.ldn-btn--primary:hover { background: #8e3243; }
.ldn-btn--ghost { background: #fffaf0; border-color: #d9c6a5; color: #3e3229; }
.ldn-btn--ghost:hover { background: #f6efdf; border-color: #a77b3e; }
.dark .ldn-btn--ghost { background: #2c2320; border-color: #674d37; color: #eadcc8; }
.dark .ldn-btn--ghost:hover { background: #332821; border-color: #a77b3e; }

/* ===== 2. Cum nut chon (che do / toc do / muc do) ===== */
.ldn-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #fffaf0;
  border: 1px solid #d9c6a5;
  border-radius: 5px;
  box-shadow: 0 7px 0 -4px #f6efdf, 0 8px 0 -4px #d9c6a5;
}
.dark .ldn-seg { background: #2c2320; border-color: #674d37; box-shadow: 0 7px 0 -4px #231d1b, 0 8px 0 -4px #674d37; }
.ldn-seg__btn {
  border: 0;
  background: transparent;
  color: #786753;
  border-radius: 3px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.ldn-seg__btn:hover { background: #f1e6d2; color: #3e3229; }
.ldn-seg__btn.is-on { background: #792836; color: #fff1d6; box-shadow: 0 1px 3px rgba(121, 40, 54, 0.4); }
.dark .ldn-seg__btn { color: #c5af96; }
.dark .ldn-seg__btn:hover { background: #3b2f28; color: #eadcc8; }
.dark .ldn-seg__btn.is-on { background: #792836; color: #f7e2b6; }
.ldn-seg--sm .ldn-seg__btn { padding: 7px 11px; font-size: 12px; }

/* ===== 3. Nut bieu tuong tron (am thanh / sang-toi) ===== */
.ldn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d9c6a5;
  border-radius: 9999px;
  background: #fffaf0;
  color: #3e3229;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ldn-icon:hover { background: #ffffff; border-color: #a77b3e; transform: translateY(-1px); }
.dark .ldn-icon { background: #2c2320; border-color: #674d37; color: #eadcc8; }
.dark .ldn-icon:hover { background: #332821; border-color: #a77b3e; }

/* ===== 4. Panel gia (luat choi, bang nuoc, bang diem) ===== */
.ldn-panel {
  background: #fffaf0;
  border: 1px solid #d9c6a5;
  border-radius: 5px;
  padding: 24px 26px;
  text-align: left;
  box-shadow: 0 7px 0 -4px #f6efdf, 0 8px 0 -4px #d9c6a5;
}
.dark .ldn-panel { background: #2c2320; border-color: #674d37; box-shadow: 0 7px 0 -4px #231d1b, 0 8px 0 -4px #674d37; }
.ldn-panel__title {
  font-family: var(--font-playfair), Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  color: #692332;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d9c6a5;
  position: relative;
}
.ldn-panel__title::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 48px; height: 3px; background: #792836; }
.dark .ldn-panel__title { color: #f2cd96; border-color: #674d37; }
.ldn-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  color: #786753;
  font-size: 14px;
  line-height: 1.85;
}
.ldn-list li + li { margin-top: 7px; }
.ldn-list b { color: #3e3229; }
.dark .ldn-list { color: #c5af96; }
.dark .ldn-list b { color: #eadcc8; }

/* ===== 5. Vong avatar mau + khuc thong tin ben phai ===== */
.ldn-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  color: #fff1d6;
  font-weight: 700;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.22), inset 0 2px 3px rgba(255, 255, 255, 0.3);
}
.ldn-avatar--gold { background: #a77b3e; }
.ldn-avatar--red { background: #792836; }
.ldn-name { font-weight: 700; font-size: 14px; color: #3e3229; }
.dark .ldn-name { color: #f3dfbd; }
.ldn-sub { font-size: 12px; color: #926a34; }
.dark .ldn-sub { color: #c5af96; }
.ldn-side { text-align: right; font-variant-numeric: tabular-nums; }
.ldn-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldn-pad { padding-left: 4px; padding-right: 4px; }

/* ===== 6. Luong 4 ghe choi (co-ca-ngua) — 1 col mobile, 2 col table, 4 col desktop ===== */
.ldn-seatgrid { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
@media (min-width: 640px) { .ldn-seatgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .ldn-seatgrid { grid-template-columns: repeat(4, 1fr); } }

/* ===== 7. Header dong nhat 4 trang (copy markup goc cua site) ===== */
.ldn-navlink {
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 600;
  color: #44403c;
  transition: color 0.2s;
  white-space: nowrap;
}
.ldn-navlink:hover { color: #b91c1c; }
.dark .ldn-navlink { color: #d6d3d1; }
.dark .ldn-navlink:hover { color: #fcd34d; }
.ldn-navlink[aria-current="page"] { color: #7f1d1d; font-weight: 700; }
.dark .ldn-navlink[aria-current="page"] { color: #fcd34d; }
.ldn-back { font-size: 14px; font-weight: 600; color: #92400e; white-space: nowrap; }
.dark .ldn-back { color: #fcd34d; }

/* ===== 8. Mobile: nut hanh dong cho rong ===== */
@media (max-width: 640px) {
  .ldn-btn { flex: 1 1 auto; padding: 11px 12px; }
  .ldn-panel { padding: 18px 16px; }
}
