/* ================= Nối Thú — MonBlock ================= */
:root {
  --bg: #0d1117;
  --panel: #151c26;
  --panel-2: #1b2431;
  --line: #2b3646;
  --txt: #e8eef6;
  --muted: #93a3b8;
  --accent: #ffcf5a;
  --cw: 40px;   /* tile width — set by main.js from the screen size */
  --ch: 45px;   /* tile height */
}

* { 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: 760px; margin: 0 auto; padding: 8px 14px 28px; }
.screen { animation: fade .18s ease; }
#scPlay { animation: none; }
@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; }

/* ---------- 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: 16px; background: var(--panel); }
.me-tile { position: relative; width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #ffe4c2; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.me-avemo { font-size: 36px; line-height: 1; }
.me-avemo svg, .me-avemo img { width: 48px; height: 48px; image-rendering: pixelated; }
.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; }
.small:disabled { opacity: .4; cursor: default; }

/* ---------- màn chơi ---------- */
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 2px auto 6px; max-width: 560px; }
.hud small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hud-box b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.hud-box.right { text-align: right; }
.hud-mid { text-align: center; font-size: 14px; font-weight: 700; }
.timebar { position: relative; height: 18px; max-width: 560px; margin: 0 auto 8px; border-radius: 9px; background: #e3e5e8; overflow: hidden; }
.timebar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: #00a862; border-radius: 9px; transform-origin: 0 50%; transition: transform .2s linear, background-color .3s; }
.timebar.warn i { background: #ffb020; }
.timebar.danger i { background: #e5374f; }
.timebar span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 18px; font-weight: 800; color: #191b1d; font-variant-numeric: tabular-nums; }

.board-wrap { position: relative; display: flex; justify-content: center; }
.board { position: relative; flex: none; border-radius: 14px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.pathsvg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.pathsvg polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pathsvg .p-out { stroke: #fff; stroke-width: 9; }
.pathsvg .p-in { stroke: #ff4f7a; stroke-width: 4.5; }
.pathsvg g { animation: pathfade .42s ease-in forwards; }
@keyframes pathfade { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }

/* A board cell: absolutely placed by main.js (left / top), slides when gravity moves it. */
.cell { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); padding: 1.5px; border: 0; background: none; transition: transform .2s ease; z-index: 1; }
.cell .tile { width: 100%; height: 100%; }
.cell.sel { z-index: 3; }
.cell.sel .tile { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 3px #335fff, 0 6px 10px rgba(0, 0, 0, .25); }
.cell.hint .tile { animation: hint .7s ease-in-out infinite alternate; }
@keyframes hint { to { box-shadow: 0 0 0 3px #ffb020, 0 0 14px 4px rgba(255, 176, 32, .7); transform: scale(1.05); } }
.cell.nope .tile { animation: nope .3s; }
@keyframes nope { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cell.pop { pointer-events: none; z-index: 4; }
.cell.pop .tile { animation: pop .26s ease-in forwards; }
@keyframes pop { 40% { transform: scale(1.25); filter: brightness(1.3); } to { transform: scale(0); opacity: 0; } }
.cell.spin .tile { animation: spin .35s ease-out; }
@keyframes spin { from { transform: rotateY(180deg) scale(.6); opacity: .3; } to { transform: none; opacity: 1; } }
.cell.grow .tile { animation: grow .3s ease-out backwards; }
@keyframes grow { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- thẻ (bàn thật + ô xem thử cửa hàng dùng chung) ---------- */
.tile { display: grid; place-items: center; border-radius: 22%; background: var(--tc, #fff); border: 1.5px solid rgba(0, 0, 0, .3);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), 0 2px 3px rgba(0, 0, 0, .35); transition: transform .12s, box-shadow .12s; }
.tile img { width: 82%; height: 82%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* Bộ thẻ (NoithuCatalog.TILES): .ts-<id> on the board / preview — only a touch of style, the pair colour stays */
.ts-space .tile { border-color: #3b2a7a; box-shadow: inset 0 0 0 2px rgba(80, 60, 200, .35), inset 0 -3px 0 rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .2); }
.ts-tet .tile { border-color: #c8102e; box-shadow: inset 0 0 0 2px rgba(255, 200, 60, .7), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .2); }
.ts-ocean .tile { border-color: #3a8fd0; }
.ts-dong .tile { border-color: #7fb6e0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(60, 110, 160, .18), 0 1px 2px rgba(0, 0, 0, .2); }

/* ---------- nền bàn (NoithuCatalog.BOARDS): .bg-<id> for the real board and the shop preview ---------- */
.bg-meadow { background: linear-gradient(180deg, #4f9a73, #2f7a5a); }
.bg-wood   { background: repeating-linear-gradient(100deg, rgba(120, 70, 20, .12) 0 3px, transparent 3px 11px), linear-gradient(180deg, #d9a86a, #b07a42); }
.bg-sky    { background: radial-gradient(60px 26px at 20% 18%, rgba(255, 255, 255, .85), transparent 70%), radial-gradient(80px 30px at 78% 70%, rgba(255, 255, 255, .7), transparent 70%), linear-gradient(180deg, #4f9fe0, #86c4f0); }
.bg-night  { background: radial-gradient(circle at 12% 20%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 12%, #fff 0 1px, transparent 2px),
  radial-gradient(circle at 40% 80%, #fff 0 1px, transparent 2px), radial-gradient(circle at 88% 60%, #ffe9a0 0 1.5px, transparent 2.5px), linear-gradient(180deg, #14183a, #2a2f6a); }
.bg-sakura { background: radial-gradient(circle at 18% 30%, #fff 0 3px, transparent 4px), radial-gradient(circle at 76% 22%, #ffd0e4 0 4px, transparent 5px),
  radial-gradient(circle at 60% 78%, #fff 0 3px, transparent 4px), linear-gradient(180deg, #e98fb8, #c9628f); }
.bg-sunset { background: radial-gradient(circle at 50% 110%, #ffe27a 0 18%, transparent 40%), linear-gradient(180deg, #4b2a7a 0%, #e0587a 55%, #ffb36b 100%); }
.bg-tuyet  { background: radial-gradient(circle at 14% 22%, #fff 0 2px, transparent 3px), radial-gradient(circle at 64% 14%, #fff 0 2.5px, transparent 3.5px),
  radial-gradient(circle at 84% 46%, #fff 0 2px, transparent 3px), radial-gradient(120% 40% at 30% 100%, #ffffff 0 60%, transparent 61%), radial-gradient(110% 45% at 85% 100%, #eef6fc 0 62%, transparent 63%),
  linear-gradient(180deg, #6f9fc8, #a9cde6); }
/* Event lapdong: warm room by the fireplace */
.bg-losuoi { background: radial-gradient(ellipse 70% 40% at 50% 105%, rgba(255, 170, 60, .75), transparent 70%), repeating-linear-gradient(0deg, rgba(90, 30, 10, .22) 0 2px, transparent 2px 18px),
  repeating-linear-gradient(90deg, rgba(90, 30, 10, .14) 0 2px, transparent 2px 36px), linear-gradient(180deg, #8a3a1e, #c4632e); }

.combo { position: absolute; left: 50%; top: 30%; z-index: 8; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: #ff4f7a; color: #fff; font-size: 20px; font-weight: 900;
  pointer-events: none; animation: combo .8s ease-out forwards; }
@keyframes combo { 0% { transform: translateX(-50%) scale(.5); opacity: 0; } 25% { transform: translateX(-50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -30px); opacity: 0; } }
.plus { position: absolute; z-index: 7; font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, .6); pointer-events: none; animation: plus .8s ease-out forwards; }
@keyframes plus { to { transform: translateY(-36px); opacity: 0; } }
.ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; margin: 10px auto 0; }
.ctl .small { min-height: 48px; }
.ctl b { color: var(--muted); }

/* ---------- 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 { font-size: 13px; font-weight: 800; color: var(--muted); }
.gem { color: #7fd8ff; }
.prev { --cw: 34px; --ch: 38px; display: grid; grid-template-columns: repeat(3, var(--cw)); grid-auto-rows: var(--ch); gap: 3px; justify-content: center; align-content: center; width: 100%; max-width: 140px; padding: 10px 4px; border-radius: 10px; }
.prev .tile { width: var(--cw); height: var(--ch); }
.buyprev { display: flex; justify-content: center; margin: 4px 0 8px; }
.buyprev .prev { --cw: 46px; --ch: 52px; max-width: 220px; grid-template-columns: repeat(4, var(--cw)); }

/* ---------- 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; color: #b87400; }
.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; }
.dlg-btns button.pri { border-color: #335fff; background: #335fff; color: #fff; }
.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; color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.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; background: var(--accent); color: #1c1608; font-weight: 800; }

/* Limited event item tag (sdk/events.js) */
.evtag { display: inline-block; margin: 2px 0; padding: 1px 8px; border-radius: 999px; background: linear-gradient(90deg, #4fa8ff, #7a6bff); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }

/* ===== 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; }
#scQuests { display: flex; flex-direction: column; gap: 10px; }
#scQuests .big { margin: 0; }
#scQuests .note { margin: 0; font-size: 14px; }
.qd-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 1px solid #e3e5e8; border-radius: 12px; background: #f7f8f9; }
.qd-card b { font-size: 16px; }
.qd-card small { color: #606368; font-size: 14px; line-height: 1.4; }
.qd-done { margin: 4px 0 0; color: #00a862; font-size: 14px; font-weight: 800; }
/* Khung ngang thấp (điện thoại cầm ngang 844×390): logo + hình chính to hơn, gọn giữa thanh trên và 4 ô (như Người Que) */
@container (orientation: landscape) {
  .hm-stack { top: calc(max(10px, env(safe-area-inset-top)) + 58px); bottom: calc(max(10px, env(safe-area-inset-bottom)) + min(11cqw, 22cqh) + 22px); gap: 1.2cqh; }
  .hm-logo { max-height: 19cqh; max-width: 46cqw; }
  .hm-hero { max-height: 25cqh; max-width: 40cqw; }
  .hm-play { width: min(46cqw, 340px); padding: 0.8cqh 3cqw 1cqh; }
  .hm-play small { white-space: nowrap; font-size: clamp(12px, 3.2cqh, 15px); }
  .hm-play b { font-size: clamp(24px, 7cqh, 40px); }
  .hm-row { bottom: max(10px, env(safe-area-inset-bottom)); gap: 1.6cqw; }
  .hm-ic { width: min(11cqw, 22cqh, 96px); }
  .hm-ic span { font-size: clamp(12px, 3.2cqh, 14px); }
}
/* Chấm báo Nhiệm vụ: một kiểu chấm trống cho mọi game (như Cờ Vây) */
#questDot { min-width: 16px; width: 16px; height: 16px; padding: 0; top: 6px; right: 10px; }
/* Home painting behind every screen (owner 19/11/2026, shared rule in sdk/game-light.css) */
body.mb-light { --mb-scene: url(/noithu/img/home-bg.webp); --mb-scene-on: ''; --muted: #4c4f54; }
.small:disabled { opacity: .6; }
.item.locked { opacity: .6; }

/* 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; }
