/* ================= Gộp Trái Cây — MonBlock (base copied from Đuổi Hình Bắt Chữ) ================= */
: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ủ ---------- */
.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; }

.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; }

/* ---------- 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; }

.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; }
.big-daily { --bar: #335fff; }
.big-daily.done small { color: #00a862; }
.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 .own { font-size: 12px; font-weight: 800; color: #6b3f16; }


/* ---------- chọn màn ---------- */
.mapcard { margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e3e5e8; scroll-margin-top: 70px; }
.mapcard.locked { opacity: .6; }
.mhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(90deg, #1f5f7c, #2f7f9c); color: #fff; }
.mhead .mini { display: flex; gap: 4px; flex: none; }
.mhead .mini .board { --tw: 15px; display: flex; gap: 3px; margin: 0; padding: 0; }
.mhead .mini .tube .glass { border-width: 2px; padding: 1px; box-shadow: 0 0 0 1px rgba(8, 22, 36, .5); }
.mhead .mini .tube .glass::after { display: none; }
.mhead span.mt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mhead b { font-size: 17px; }
.mhead small { font-size: 13px; font-weight: 700; opacity: .92; }
.mhead .mc { font-weight: 900; font-size: 15px; white-space: nowrap; }
.lvgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; }
.lv { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px; justify-content: center; padding: 6px 2px; border: 2px solid #cfe3ee; border-radius: 14px; background: #f1f8fc; font-weight: 900; color: #245a75; }
.lv b { font-size: 17px; }
.lv small { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #c9ced6; }
.lv small i { font-style: normal; color: #e0a020; }
.lv.done { background: #e0f0f8; border-color: #6fb0d2; }
.lv.clean { background: #fff3c9; border-color: #e0a83a; color: #7a4f08; }
.lv.cur { border-color: #335fff; box-shadow: 0 0 0 3px rgba(51, 95, 255, .22); }
.lv:disabled { opacity: .45; background: #f0f1f2; border-color: #e3e5e8; color: #9aa0a6; }

/* ---------- cửa hàng ---------- */
.shop .item { position: relative; }
.pv { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 96px; pointer-events: none; }
.pv .board { --tw: 26px; display: flex; gap: 7px; margin: 0; padding: 0; }
.pv .board .tube { width: var(--tw); }
.pv .board .tube .glass { border-width: 2px; padding: 2px; box-shadow: 0 0 0 1px rgba(8, 22, 36, .6), 0 4px 5px rgba(0, 0, 0, .25); }
.pv .board .tube .glass::after { width: 12%; }
.pv-bg .field { display: flex; justify-content: center; width: 124px; max-width: none; margin: 0; padding: 12px 8px 8px; border-radius: 12px; }
.pv-bg .board { --tw: 20px; }
.buyprev .pv .board { --tw: 40px; gap: 12px; }
.buyprev .pv-bg .field { width: 220px; padding: 18px 10px 12px; }
.buyprev .pv-bg .board { --tw: 32px; }
.boostpv { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 900; color: #6b3f16; }
.boostpv .mbi { width: 46px; height: 46px; }

/* ---------- hộp kết quả ---------- */
.dialog.win { text-align: center; }
.dialog.win .wm { display: block; width: 104px; height: 104px; margin: -4px auto 0; animation: cheer 1.4s ease-in-out infinite; }
@keyframes cheer { 50% { transform: translateY(-6px) rotate(3deg); } }
.dialog.win h3 { margin: 4px 0 2px; font-size: 26px; font-weight: 900; color: #2f8f1f; }
.dialog.win .ans { margin: 0 0 8px; font-size: 22px; font-weight: 900; color: #3b1f06; }
.wstars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.wstars .mbi { width: 56px; height: 56px; opacity: .25; filter: grayscale(1); }
.wstars .mbi.on { opacity: 1; filter: none; animation: starIn .5s ease backwards; }
.wstars .mbi.on:nth-child(2) { animation-delay: .15s; } .wstars .mbi.on:nth-child(3) { animation-delay: .3s; }
@keyframes starIn { from { transform: scale(0) rotate(-40deg); } }
.wchips { display: flex; justify-content: center; gap: 8px; margin: 2px 0 6px; flex-wrap: wrap; }
.wc { display: flex; align-items: center; gap: 4px; padding: 5px 11px 5px 7px; border-radius: 999px; background: #fff; border: 2px solid #e2bb72; font-size: 17px; color: #3b1f06; }
.wc i { font-style: normal; font-size: 20px; line-height: 1; }
.wc i .mb-coin { width: 22px; height: 22px; vertical-align: -4px; }
.wc .mbi { width: 30px; height: 30px; }
.wc b { font-weight: 900; }
.wc small { font-size: 12px; font-weight: 800; color: #8a5a22; }
.wtags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.wtags span { padding: 3px 10px; border-radius: 999px; background: #e9f7d9; color: #2f6f1a; font-size: 12px; font-weight: 800; }
.dialog .evtag, .item .evtag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: linear-gradient(90deg, #8fd0ff, #c9b8ff); color: #1d2a4a; }
.dialog.win .more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 999px;
  background: linear-gradient(#7ed957, #2f9e2a); color: #fff; font-size: 20px; font-weight: 900; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 5px 0 #1d6b18; text-shadow: 0 2px 0 #1d6b18; }
.dialog.win .more:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 2px 0 #1d6b18; }
.dialog.win .more .mbi { width: 38px; height: 38px; flex: none; }
.dialog.win .links { display: flex; justify-content: center; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.dialog.win .links button { display: flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; font-size: 16px; font-weight: 900; color: #6b4418; }
.dialog.win .links .mbi { width: 32px; height: 32px; }
.wbtns { display: flex; gap: 8px; margin-top: 14px; }
.dialog.win .wbtns .more { flex: 1; margin-top: 0; }
.wshare { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 76px; padding: 6px 4px; border: 0; border-radius: 18px;
  background: linear-gradient(#5aa8ff, #2f6fe0); color: #fff; font-size: 13px; font-weight: 900; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 5px 0 #1a4aa8; }
.wshare:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 2px 0 #1a4aa8; }
.wshare .mbi { width: 34px; height: 34px; }
.wshare .mbi * { stroke: #fff; }
.modal:has(.dialog.win) { place-items: safe center; overflow-y: auto; }
.dialog.win { background: #fffdf5; }
.dialog.win .wsub { margin: 0 0 6px; font-size: 14px; color: #6b4418; font-weight: 700; }
.dialog .buyprev { display: flex; justify-content: center; margin: 6px 0 10px; }
.dialog .buyprev .boostpv { width: 100px; height: 100px; }
.dialog .stuck-tip { margin: 6px 0; color: #6b4418; font-weight: 700; }
@media (max-width: 380px) { .ctl button { font-size: 11px; } }

/* ================= Trang chủ kiểu tranh minh hoạ (cùng khuôn Làng Quê / Cá Lớn, 15/11/2026) =================
   Cả màn hình là một bức tranh vườn trái cây: thanh người chơi trên cùng, logo + thùng trái cây giữa, nút CHƠI xanh, hai nút chế độ, bốn ô gỗ ở đáy.
   Cỡ tính theo khung tranh (cqw / cqh). */
#scHome { position: fixed; inset: 0; z-index: 5; overflow: hidden; background: #8fd0ff; animation: none; container-type: size; }
#scHome .hm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body:has(#scHome:not(.hidden)) .mb-nav { display: none !important; }
#scHome button { -webkit-appearance: none; appearance: none; font-family: inherit; }
#scHome button:focus, #scHome button:focus-visible { outline: none; }

.hm-top { position: absolute; left: max(10px, env(safe-area-inset-left)); top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; }
.hm-av { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #d8a13a; background: #fff3d6; display: grid; place-items: center; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.hm-av .me-num { font-size: 22px; line-height: 1; }
.hm-av .me-num .mbi { width: 70%; height: 70%; }
.hm-av .me-avemo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; line-height: 1; border-radius: 50%; overflow: hidden; }
.hm-av.has-av .me-num { display: none; }
.hm-lv { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 1px 8px; border-radius: 9px; background: #7a4a1c; border: 2px solid #d8a13a; color: #fff; font: 900 11px/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-stars { display: none; }
.hm-bar { display: flex; align-items: center; gap: 4px; min-width: 96px; height: 30px; padding: 0 3px; border-radius: 15px; background: rgba(60, 40, 20, .8); border: 2px solid rgba(255, 255, 255, .6); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); cursor: pointer; }
.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-plus { flex: none; width: 21px; height: 21px; border-radius: 7px; background: linear-gradient(#ffd36a, #f09a1c); border: 2px solid #8a5a14; color: #5e3612; font: 900 16px/17px system-ui; text-align: center; }
.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 { right: max(10px, env(safe-area-inset-right)); background: #fff; border: 3px solid #e3e5e8; color: #191b1d; font: 700 28px/1 system-ui; padding-bottom: 4px; }
.hm-gear { top: calc(max(10px, env(safe-area-inset-top)) + 52px); right: max(10px, env(safe-area-inset-right)); border-radius: 13px; 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; }
body:has(#scHome:not(.hidden)) #btnSound { display: none; }

/* Giữa tranh: logo, thùng trái cây, tiếp tục, CHƠI, hai chế độ */
.hm-stack { position: absolute; left: 0; right: 0; top: 11cqh; bottom: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqh; padding: 0 5cqw; }
.hm-logo { flex: 0 1 auto; min-height: 0; max-height: 20cqh; max-width: 84cqw; width: auto; height: auto; filter: drop-shadow(0 5px 6px rgba(0, 40, 0, .35)); pointer-events: none; }
.hm-crate { flex: 0 1 auto; min-height: 0; max-height: 23cqh; max-width: 70cqw; width: auto; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 40, 0, .3)); pointer-events: none; }
.hm-play { flex: none; width: min(70cqw, 330px); padding: 1.2cqh 3cqw 1.4cqh; border-radius: 28px; 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, 2cqh, 16px)/1.2 system-ui, sans-serif; -webkit-text-stroke: .2em #1d6a1d; paint-order: stroke fill; }
.hm-play:active { transform: scale(.96); }
.hm-resume { flex: none; width: min(70cqw, 330px); padding: .9cqh 3cqw; border-radius: 20px; text-align: center; color: #5e3612; font: 900 16px/1.2 system-ui, sans-serif; background: linear-gradient(#ffe27a, #ffb82e); border: 3px solid #fff5cf; box-shadow: 0 4px 0 #a8661a; }
.hm-resume small { display: block; font-size: 12px; font-weight: 800; }
.hm-resume.hidden { display: none; }
.hm-pills { flex: none; display: flex; gap: 3cqw; width: min(86cqw, 400px); }
.hm-pill { flex: 1; min-width: 0; padding: .9cqh 1cqw; border-radius: 18px; text-align: center; color: #fff; font: 900 clamp(12px, 1.9cqh, 15px)/1.15 system-ui, sans-serif; border: 3px solid #fff5cf; box-shadow: 0 4px 0 rgba(0, 0, 0, .28), 0 6px 8px rgba(0, 0, 0, .25); }
.hm-pill small { display: block; margin-top: 1px; font-size: 11px; font-weight: 800; opacity: .95; }
.hm-pill .mbi { width: 20px; height: 20px; vertical-align: -4px; }
.p-day { background: linear-gradient(#ffb25a, #f0781c); }
.p-end { background: linear-gradient(#6cc4ff, #2a7ee0); }
.p-day.done small { color: #fff5b0; }
.hm-pill:active { transform: scale(.96); }

/* Bốn ô gỗ */
.hm-row { position: absolute; left: 50%; bottom: 84px; 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(10px, 1.7cqh, 13px)/1.1 system-ui, sans-serif; -webkit-text-stroke: .22em #4a2a14; paint-order: stroke fill; white-space: nowrap; }
.hm-ic:active { transform: scale(.94); }

.hm-stats { position: absolute; left: 0; right: 0; bottom: 62px; margin: 0; text-align: center; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hm-note { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; padding: 0 4cqw; text-align: center; font-size: 10px; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hm-note a, .hm-guest a { color: #ffe27a; }
.hm-guest { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; padding: 0 6cqw; text-align: center; font-size: 12px; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hm-guest.hidden { display: none; }
/* Bottom notes: dark pill so they read on the grass, stacked without overlap */
.hm-note, .hm-guest { left: 4cqw; right: 4cqw; padding: 3px 8px; border-radius: 10px; background: rgba(20, 50, 15, .6); color: #fff; }
.hm-note { bottom: 6px; }
.hm-guest { bottom: 50px; }
.hm-note a, .hm-guest a { color: #ffe27a !important; }
.hm-stats { bottom: 100px; }
.hm-row { bottom: 112px; }
.hm-stack { bottom: 190px; }
.hm-foot { position: absolute; left: 4cqw; right: 4cqw; bottom: 6px; display: flex; flex-direction: column; gap: 4px; }
.hm-foot .hm-note, .hm-foot .hm-guest { position: static; width: auto; max-width: none; }
.hm-stats { bottom: 104px; }
.hm-row { bottom: 124px; }
.hm-stack { bottom: 202px; }
.hm-foot .hm-note, .hm-foot .hm-guest { color: #fff !important; }
.hm-stats { bottom: 150px; }
.hm-row { bottom: 142px; }
.hm-stack { bottom: 240px; }
.hm-logo { max-height: 18cqh; }
.hm-crate { max-height: 20cqh; }
.hm-row { bottom: 134px; }

/* Hàng dưới không đè nhau: dòng số liệu bỏ (đè lên chữ ô gỗ), link hướng dẫn gọn lại (khung chung làm ô link cao 34px) */
#scHome .hm-stats { display: none !important; }
#scHome .hm-foot .note a { display: inline !important; padding: 0 !important; margin: 0 2px !important; min-height: 0 !important; line-height: inherit !important; }

/* Book icon under the sound button: guide + data-page links in a dialog (design system 17/11/2026).
   The guide-link line stays in the page for search engines but is visually hidden. */
.hm-book { top: calc(max(10px, env(safe-area-inset-top)) + 104px); border-radius: 50%; }
#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; }

/* Book sheet list + painted-home guest rule (design system 17/11/2026) */
#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 { display: flex; flex-direction: column; gap: 8px; }
#scHome #guestNote { display: none !important; }
#scHome .hm-av { cursor: pointer; }

/* 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; }
