/* ================= Ô Ăn Quan — MonBlock (base copied from Nối Từ) ================= */
:root {
  --bg: #0d1117;
  --panel: #151c26;
  --panel-2: #1b2431;
  --line: #2b3646;
  --txt: #e8eef6;
  --muted: #93a3b8;
  --accent: #ffcf5a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
.wrap { max-width: 640px; margin: 0 auto; padding: 8px 14px 28px; }
.screen { animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
h2 { font-size: 17px; margin: 18px 0 10px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
body.touch .no-touch { display: none; }

/* ---------- trang chủ ---------- */
.me-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.me-tile { position: relative; display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 12px; border: 3px solid var(--frame, #2b3a55); background: var(--cell-img, none), var(--cell, #fff); }
.me-num { font-size: 24px; font-weight: 800; line-height: 1; color: var(--user, #335fff); }
.me-tile .me-avemo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; line-height: 1; }
.me-tile.has-av .me-num { display: none; }
.me-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.me-info b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-info span { color: var(--muted); font-size: 13px; font-weight: 600; }
.xpbar { height: 6px; border-radius: 9px; background: var(--panel-2); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: #4f86ff; border-radius: 9px; }
.me-chips { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 14px; font-weight: 700; white-space: nowrap; }

.big { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 0 0 10px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); font-size: 17px; font-weight: 800; text-align: left; }
.big small { color: var(--muted); font-size: 13px; font-weight: 600; }
.big-daily.done small { color: #00a862; }
.homegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.small { padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 14px; font-weight: 700; }

/* ---------- chọn độ khó ---------- */
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 6px; }
.variant { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: left; }
.variant.on { border-color: #335fff; box-shadow: inset 0 0 0 1px #335fff; }
.variant > i { font-size: 30px; font-style: normal; line-height: 1; }
.variant span { display: flex; flex-direction: column; gap: 3px; }
.variant b { font-size: 16px; }
.variant small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.variant em { color: #b87400; font-size: 12px; font-style: normal; font-weight: 800; }

/* ---------- cửa hàng ---------- */
.shop-top { display: flex; justify-content: flex-end; gap: 16px; margin: 4px 0; font-size: 17px; font-weight: 800; }
.gem-chip b { color: #7fd8ff; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--panel); text-align: center; }
.item.locked { opacity: .55; }
.item b { font-size: 14px; }
.item .rar { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.item .act { padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.gem { color: #7fd8ff; }
.buyprev { display: flex; justify-content: center; margin: 4px 0 8px; }

/* ---------- xếp hạng ---------- */
.tabs { display: flex; gap: 6px; margin: 6px 0 10px; }
.tabs button { flex: 1; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 800; font-size: 14px; }
.rank .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rank .no { width: 28px; color: var(--muted); font-weight: 800; text-align: center; }
.rank .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rank .nm small { color: var(--muted); font-weight: 600; }
.rank .sc { font-weight: 900; color: #b87400; }

.help { line-height: 1.6; }
.help ul { padding-left: 20px; }

/* ---------- hộp thoại ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 12, .72); }
.dialog { width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.dialog h3 { margin: 0 0 8px; font-size: 20px; }
.dialog p { line-height: 1.5; }
.dialog .score { margin: 4px 0; font-size: 40px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.dialog .rw { padding-left: 18px; line-height: 1.8; font-weight: 700; }
.dlg-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.dlg-btns button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: #222c3a; font-weight: 700; }
.updatebar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.updatebar button { padding: 8px 12px; border: 0; border-radius: 10px; font-weight: 800; }

/* ================= chọn mức, sảnh online ================= */
.big-sprint { --bar: #ffb020; }
.big-room { --bar: #8a5cff; }
.big-sprint.done small { color: #00a862; }
.today { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; padding: 10px 14px; border: 1px dashed #c9d2e0; border-radius: 14px; background: #fff; font-size: 14px; }
.today b { font-size: 17px; color: #335fff; }
.today small { color: var(--muted); }
h2 { font-size: 16px; margin: 16px 0 8px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seg button { flex: 1; min-width: 80px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 800; font-size: 14px; }
.joinrow { display: flex; gap: 8px; margin: 4px 0 8px; }
.joinrow input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #c9d2e0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.joinrow button { padding: 0 18px; border: 0; border-radius: 12px; background: #335fff; color: #fff; font-weight: 800; }
.roomcode { margin: 6px 0; font-size: 44px; font-weight: 900; letter-spacing: 8px; text-align: center; color: #335fff; }


/* ================= Ô Ăn Quan: icons (js/icons.js) ================= */
.oqic { display: inline-flex; vertical-align: -0.22em; width: 1.25em; height: 1.25em; margin-right: .1em; }
.oqic .oqi, .oqi { width: 100%; height: 100%; display: block; }
.homegrid .oqic { width: 1.4em; height: 1.4em; }
.variant > i .oqic { width: 30px; height: 30px; margin: 0; }
.big { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.big > .oqic { grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; }
.big > small { grid-column: 2; }
.big-resume { --bar: #ffb020; }
#btnSound .oqi { width: 22px; height: 22px; display: block; }
.me-tile { border: 0; background: radial-gradient(circle at 40% 35%, #d39a55, #9a5f2c); box-shadow: inset 0 0 0 3px #4a2a14; }
.me-num svg { width: 46px; height: 46px; display: block; }

/* ================= Ô Ăn Quan: màn chơi (sân + bàn gỗ dựng đứng + hai thẻ người chơi) ================= */
#scPlay { position: fixed; left: 0; right: 0; z-index: 5; max-width: 560px; margin: 0 auto; padding: 0; animation: none;
  top: calc(var(--mb-top, 52px) + env(safe-area-inset-top)); bottom: 0; }
#scPlay.hidden { display: none !important; }
.table { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #c56a45 center / cover no-repeat; overflow: hidden; }
.table.bg-dinh { background-image: url(../img/bg-dinh.webp); }
.table.bg-truong { background-image: url(../img/bg-truong.webp); }
body.oq-play { background: #b65e3c; }

.pcard { position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 12px 11px 8px; border-radius: 18px;
  background: linear-gradient(#fffaf0, #fbefd6); border: 3px solid #c08a52; box-shadow: 0 3px 0 #8a5a2b, 0 6px 14px rgba(60, 25, 5, .3); color: #3b2410; transition: box-shadow .2s, transform .2s; }
.pcard.on { border-color: #00a862; box-shadow: 0 3px 0 #007a47, 0 0 0 4px rgba(0, 168, 98, .25), 0 6px 14px rgba(60, 25, 5, .3); }
.pcard.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.05); } }
.pcard .av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #fff3d6; border: 2px solid #c08a52; font-size: 24px; }
.pcard .av img, .pcard .av svg { width: 100%; height: 100%; }
.pcard .pn { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pcard .pn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pcard .pn small { color: #8a6a48; font-size: 12px; font-weight: 700; }
.pcard .pts { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 8px; border-radius: 999px; background: #fff; border: 2px solid #e2c9a0; }
.pcard .pts b { min-width: 1.6em; text-align: right; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; color: #4a2a14; }
.pcard .qs svg { height: 22px; display: block; }
.pcard .qs:empty { display: none; }
.tbar { position: absolute; left: 16px; right: 16px; bottom: 4px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.tbar > i { display: block; height: 100%; width: 100%; background: #00a862; transform-origin: 0 50%; transform: scaleX(0); }
.tbar > i.mid { background: #ffb020; }
.tbar > i.low { background: #e5374f; }

.boardwrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.board { position: relative; width: 240px; height: 448px; }
.board .bd-base-wrap, .board .bd-base-wrap > svg, .board .bd-pcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .bd-pcs { pointer-events: none; overflow: visible; }
.bd-pcs g.took { animation: took .5s ease 2; }
.bd-pcs g.refill { animation: took .4s ease 1; }
@keyframes took { 50% { opacity: .35; } }
.hits { position: absolute; inset: 0; }
.hit { position: absolute; padding: 0; border: 0; border-radius: 16px; background: transparent; -webkit-tap-highlight-color: transparent; }
.hit.can { box-shadow: inset 0 0 0 3px rgba(255, 226, 110, .55); animation: canGlow 1.6s ease-in-out infinite; }
@keyframes canGlow { 50% { box-shadow: inset 0 0 0 3px rgba(255, 226, 110, .95), 0 0 12px rgba(255, 220, 90, .55); } }
.hit.sel { animation: none; box-shadow: inset 0 0 0 4px #ffd23f, 0 0 0 3px #4a2a14, 0 0 18px rgba(255, 210, 63, .9); }
.hit.opsel { box-shadow: inset 0 0 0 4px #ff7a59, 0 0 16px rgba(255, 110, 70, .8); }
.dirchip { position: absolute; z-index: 3; width: 17%; aspect-ratio: 1; min-width: 40px; padding: 0; border: 0; background: none; transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 0 rgba(74, 42, 20, .55)); animation: chipIn .18s ease; }
.dirchip svg { width: 100%; height: 100%; display: block; }
.dirchip.hintme { animation: hintBlink .4s ease-in-out infinite alternate; }
@keyframes chipIn { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }
@keyframes hintBlink { to { filter: drop-shadow(0 0 10px #fff36a) drop-shadow(0 3px 0 rgba(74, 42, 20, .55)); transform: translate(-50%, -50%) scale(1.15); } }
.hand { position: absolute; left: 0; top: 0; z-index: 4; width: 44px; height: 44px; pointer-events: none; transition: transform .13s ease-out; }
.hand::before { content: ''; position: absolute; inset: 0; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 35% 30%, #ffe2c2, #f0b98a 65%, #d18b5a); border: 3px solid #4a2a14; box-shadow: 0 6px 10px rgba(40, 15, 0, .35); }
.hand b { position: absolute; inset: 0; display: grid; place-items: center; color: #4a2a14; font-size: 18px; font-weight: 900; }
.hand.empty { opacity: .65; }
.flyer { position: fixed; left: 0; top: 0; z-index: 60; width: 80px; height: 60px; pointer-events: none; }
.flyer svg { width: 100%; height: 100%; }

.table .nstat { flex: none; min-height: 22px; margin: 0 auto; max-width: 100%; padding: 3px 12px; border-radius: 999px; background: rgba(255, 250, 236, .92); color: #3b2410; text-align: center; font-size: 14px; font-weight: 800; }
.table .nstat:empty { visibility: hidden; }
.nstat.bad { color: #c42840; }
.nstat.good { color: #00804a; }
.nstat.think::after { content: ' …'; animation: dots 1s steps(3) infinite; }
@keyframes dots { 50% { opacity: .2; } }
.ctl { flex: none; display: flex; gap: 8px; }
.ctl button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 6px; border: 2px solid #c08a52; border-radius: 14px; background: #fffaf0; color: #3b2410; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 #8a5a2b; }
.ctl button:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a5a2b; }
.ctl button:disabled { opacity: .45; }
.ctl u { text-decoration: none; color: #335fff; }
.dialog .score small { color: #9aa0a6; font-size: 28px; }

/* ================= cửa hàng: ô xem thử dùng đúng hàm vẽ của bàn (js/art.js) ================= */
.pv { width: 100%; display: grid; place-items: center; pointer-events: none; }
.pv-pebble svg, .pv-quan svg { width: 100%; max-width: 150px; height: auto; }
.pv-board { height: 150px; border-radius: 12px; background: #c56a45 center / cover no-repeat; }
.pv-board.bg-dinh { background-image: url(../img/bg-dinh.webp); }
.pv-board.bg-truong { background-image: url(../img/bg-truong.webp); }
.pv-board .mini-board { position: relative; height: 138px; aspect-ratio: 300 / 560; }
.pv-board .mini-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-board .bdg { display: none; }
.buyprev .pv-board { height: 260px; max-width: 280px; }
.buyprev .pv-board .mini-board { height: 244px; }
.buyprev .pv-pebble svg, .buyprev .pv-quan svg { max-width: 240px; }

/* ---------- thẻ món cửa hàng: giá dính đáy, hai hàng cố định (🪙 / 💎) để mọi thẻ thẳng hàng ---------- */
.item { position: relative; }
.item .pay { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.item .pr { font-size: 13px; font-weight: 800; color: #191b1d; }
.item .pr.on { color: #00a862; }
.item .pr.g { color: #1a8fd8; }
.item .pr.gh { color: var(--muted); font-weight: 600; font-size: 11px; }
.item.poor .pay { opacity: .5; }
.item .lock { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 1px 6px; border-radius: 8px; background: #191b1d; color: #fff; font-size: 11px; font-weight: 800; }
.item.active { border-color: #335fff; }
.item .evtag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e4f3ff; border: 1px solid #9fd0ff; color: #1d5f99; }

/* ===== Trang chủ tranh vẽ (design system 17/11/2026 — bố cục chuẩn: ‹ trên trái, loa + sách trên phải, logo + CHƠI, 4 ô đáy) ===== */
#scHome { position: fixed; inset: 0; z-index: 5; overflow: hidden; padding: 0; max-width: none; background: #f3e4c4; animation: none; container-type: size; }
#scHome .hm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
body:has(#scHome:not(.hidden)) .mb-nav { display: none !important; }
#scHome button { -webkit-appearance: none; appearance: none; font-family: inherit; }
.hm-back, .hm-gear { position: absolute; top: max(10px, env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.hm-back { left: max(10px, env(safe-area-inset-left)); background: #fff; border: 3px solid #e3e5e8; color: #191b1d; font: 700 28px/1 system-ui; padding-bottom: 4px; }
.hm-gear { right: max(10px, env(safe-area-inset-right)); border-radius: 12px; background: linear-gradient(#5ab4ff, #2a6fd8); border: 3px solid #e8f7ff; color: #fff; }
.hm-gear svg { width: 26px; height: 26px; display: block; }
.hm-mute { display: none; position: absolute; left: 7px; right: 7px; top: 50%; height: 3px; background: #ff4d4d; border-radius: 2px; transform: rotate(-45deg); }
.hm-gear.off .hm-mute { display: block; }
.hm-book { top: calc(max(10px, env(safe-area-inset-top)) + 54px); border-radius: 50%; }
.hm-top { position: absolute; left: calc(max(10px, env(safe-area-inset-left)) + 52px); top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; }
.hm-av { position: relative; flex: none; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 3px solid #d8a13a; background: #fff3d6; display: grid; place-items: center; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); cursor: pointer; }
.hm-av .me-avemo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; line-height: 1; border-radius: 50%; overflow: hidden; color: var(--px, #e5484d); font-weight: 900; }
.hm-lv { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 1px 8px; border-radius: 8px; background: #7a4a1c; border: 2px solid #d8a13a; color: #fff; font: 900 12px/1.2 system-ui, sans-serif; white-space: nowrap; }
.hm-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hm-xp, .hm-pts { display: none; }
.hm-bar { display: flex; align-items: center; gap: 4px; min-width: 84px; height: 32px; padding: 0 10px 0 4px; border-radius: 16px; background: rgba(20, 60, 90, .78); border: 2px solid rgba(255, 255, 255, .55); }
.hm-bar img { width: 24px; height: auto; flex: none; }
.hm-bar b { flex: 1; color: #fff !important; font: 900 14px/1 system-ui, sans-serif; text-align: center; }
.hm-stack { position: absolute; left: 0; right: 0; top: calc(max(10px, env(safe-area-inset-top)) + 64px); bottom: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqh; padding: 0 5cqw; }
.hm-logo { flex: 0 1 auto; min-height: 0; max-height: 16cqh; max-width: 84cqw; width: auto; height: auto; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .3)); pointer-events: none; }
.hm-hero { flex: 0 1 auto; min-height: 0; max-height: 28cqh; max-width: 72cqw; width: auto; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); pointer-events: none; }
.hm-play { flex: none; width: min(70cqw, 330px); padding: 1.2cqh 3cqw 1.4cqh; border-radius: 999px; text-align: center; color: #fff; background: linear-gradient(#8aea5a, #2fae2a 60%, #238a22); border: 4px solid #fff5cf; box-shadow: 0 5px 0 #1b6b1a, 0 9px 12px rgba(0, 0, 0, .35); }
.hm-play b { display: block; font: 900 clamp(26px, 5.2cqh, 44px)/1.05 "Arial Rounded MT Bold", system-ui, sans-serif; -webkit-text-stroke: .12em #1d6a1d; paint-order: stroke fill; letter-spacing: 2px; }
.hm-play small { display: block; font: 900 clamp(12px, 1.8cqh, 15px)/1.2 system-ui, sans-serif; -webkit-text-stroke: .2em #1d6a1d; paint-order: stroke fill; }
.hm-play:active, .hm-ic:active { transform: scale(.96); }
.hm-row { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2cqw; }
.hm-ic { position: relative; width: min(21cqw, 96px); padding: 0; background: none; border: 0; box-shadow: none; color: #fff; }
.hm-ic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.hm-ic span { display: block; margin-top: -2px; text-align: center; font: 900 clamp(12px, 1.7cqh, 14px)/1.1 system-ui, sans-serif; -webkit-text-stroke: .22em #4a2a14; paint-order: stroke fill; white-space: nowrap; }
.hm-dot { position: absolute; top: 2px; right: 2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #e5374f; border: 2px solid #fff; color: #fff; font: 900 12px/18px system-ui; font-style: normal; }
.hm-dot.hidden { display: none; }
#scHome .hm-seo { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
#scBook a.bk-link { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--skin-card-line, #e3e5e8); border-radius: 12px; background: var(--skin-card, #f7f8f9); color: var(--skin-ink, #191b1d); font-size: 15px; font-weight: 700; text-decoration: none; }
#scBook .bk-list, #scModes { display: flex; flex-direction: column; gap: 8px; }
#scModes .big { margin: 0; }
#scHelp .help ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.big-hist { margin-top: 12px; }
/* Ô Ăn Quan: guest avatar = the quan stone in use, account avatar once logged in; quest dot without a number; quest sheet */
.hm-av .me-num { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 40% 35%, #d39a55, #9a5f2c); }
.hm-av .me-num svg { width: 40px; height: 40px; }
.hm-av.has-av .me-num { display: none; }
.hm-dot-s { min-width: 16px; width: 16px; height: 16px; padding: 0; top: 4px; right: 8px; }
#scQuest { display: flex; flex-direction: column; gap: 10px; }
#scQuest .today { margin: 0; }
#scQuest .big { margin: 0; }
#scQuest .note { margin: 0; }
#scQuest .today { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--skin-card-line, #e3e5e8); border-radius: 12px; background: var(--skin-card, #f7f8f9); font-size: 14px; line-height: 1.4; }
#scQuest .today b { font-size: 16px; color: #191b1d; }
#scQuest .today small { color: #606368; font-size: 14px; }

/* Sheet skin "wood": small sheets take the colours of the painted home (owner 30/11/2026). */
body.mb-light { --skin-frame: #6b3d17; --skin-head: linear-gradient(#93592a, #6b3d17); --skin-head-ink: #fff3d6; --skin-line: #d8a13a;
  --skin-paper: #f4e6c6; --skin-card: #fffaf0; --skin-card-line: #d6b886; --skin-ink: #3a1d0c; --skin-muted: #765536; --skin-hover: #fff3dc; }
