* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --do: #c0392b; --do-dam: #7b1e14; --hong: #fadbd8; --vang: #f1c40f; --nau: #5a2a22; --nen: #2b1a1a; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { background: var(--nen); color: var(--nau); font-family: "Times New Roman", Georgia, serif; font-size: 16px; line-height: 1.5; min-width: 320px; }
button, input, select, textarea { font: inherit; color: inherit; }
.dau-trang, footer { background: var(--do); color: var(--hong); text-align: center; padding: 8px 12px; border-bottom: 4px solid var(--vang); }
.dau-trang { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: center; }
footer { border: 0; border-top: 4px solid var(--vang); font-size: 14px; margin-top: 12px; }
h1 { font-size: 20px; }
h2 { font-size: 18px; color: var(--do-dam); }
h3 { font-size: 16px; color: var(--do-dam); }
.tai-khoan { font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.thanh-phong { display: flex; background: #3a2222; position: sticky; top: 0; z-index: 5; }
.tab { flex: 1; min-height: 44px; background: transparent; color: var(--hong); border: 0; border-bottom: 3px solid transparent; cursor: pointer; padding: 4px; }
.tab[aria-selected="true"] { border-bottom-color: var(--vang); color: var(--vang); font-weight: bold; }
.man, .khung { max-width: 520px; margin: 0 auto; padding: 10px; display: grid; gap: 12px; }
.khung[hidden] { display: none; }
.hop { background: var(--hong); border: 3px solid #e74c3c; border-radius: 8px; padding: 12px; display: grid; gap: 10px; }
.hop[hidden] { display: none; }
.luoi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nut { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; background: var(--do); color: #fff; border: 2px solid var(--vang); border-radius: 6px; text-align: center; text-decoration: none; cursor: pointer; }
.nut:disabled { opacity: .5; cursor: not-allowed; }
.nut.phu { background: #fff; color: var(--do-dam); border-color: var(--do); }
.nut.nho { min-height: 36px; padding: 4px 10px; font-size: 14px; }
.ghi-chu { font-size: 14px; }
.canh-bao { font-size: 14px; background: #fff3cd; border: 1px solid #e0b100; border-radius: 6px; padding: 8px; color: #5c4600; }
.loi { font-size: 14px; color: #a00; }
.thong-bao { position: fixed; left: 8px; right: 8px; bottom: 8px; max-width: 480px; margin: 0 auto; background: #1d1d1d; color: #fff; border-radius: 8px; padding: 10px 12px; font-size: 15px; z-index: 20; display: none; }
.thong-bao.hien { display: block; }
.the { font-style: italic; color: var(--do-dam); }
.san-khau { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 62vh; background: #e8c9a0; border: 3px solid var(--vang); border-radius: 8px; overflow: hidden; touch-action: none; }
.san-khau canvas { width: 100%; height: 100%; display: block; }
.trang-thai-ws { font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.dem-nguoi { font-variant-numeric: tabular-nums; }
.tab-con { display: flex; gap: 6px; }
.tab-con .nut { flex: 1; min-height: 40px; font-size: 15px; padding: 4px 6px; }
.tab-con .nut[aria-selected="true"] { background: var(--do-dam); }
.danh-sach { list-style: none; display: grid; gap: 8px; }
.danh-sach li { background: #fff; border: 1px solid #e6b0aa; border-radius: 6px; padding: 8px; display: grid; gap: 6px; }
.huy-hieu { display: inline-block; background: var(--do); color: #fff; border-radius: 10px; padding: 0 8px; font-size: 14px; }
@media (min-width: 560px) { .man, .khung { max-width: 640px; } .luoi { grid-template-columns: 1fr 1fr 1fr; } }
