/* ================= Bi-a Lỗ — MonBlock ================= */
:root {
  --bg: #1d0f07;
  --panel: #fff;
  --line: #e3e5e8;
  --txt: #191b1d;
  --muted: #606368;
  --wood: #4a2512;
  --wood-d: #2a140a;
  --brass: #d8a13a;
  --ok: #00a862;
  --blue: #335fff;
  --red: #e5484d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; color: var(--txt);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 8px 16px 32px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.big { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 56px; margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; font-weight: 800; text-align: left; }
.big small { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ===== Trang chủ tranh vẽ (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: #2a160b; 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 var(--brass); background: #fff3d6; display: grid; place-items: center; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.hm-av .me-avemo { position: absolute; inset: 0; display: grid; place-items: center; font: 900 24px/1 system-ui; border-radius: 50%; overflow: hidden; color: #1d1d1d; }
.hm-lv { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 1px 8px; border-radius: 8px; background: #7a4a1c; border: 2px solid var(--brass); 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 { 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(42, 20, 10, .8); border: 2px solid rgba(255, 220, 160, .6); }
.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: 52cqh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; padding: 0 5cqw; }
.hm-logo { flex: 0 1 auto; min-height: 0; max-height: 18cqh; max-width: 88cqw; width: auto; height: auto; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .45)); 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, .5)); }
.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; }
/* Cầm ngang thấp: tranh ngang (bàn bên trái), cột phải logo → CHƠI → 4 ô */
@container (orientation: landscape) {
  .hm-stack { left: 48cqw; right: 2cqw; top: calc(max(10px, env(safe-area-inset-top)) + 58px); bottom: calc(max(10px, env(safe-area-inset-bottom)) + min(11cqw, 24cqh) + 22px); gap: 3cqh; padding: 0; }
  .hm-logo { max-height: 30cqh; max-width: 46cqw; }
  .hm-play { width: min(36cqw, 330px); 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 { left: 74cqw; bottom: max(10px, env(safe-area-inset-bottom)); gap: 1.4cqw; }
  .hm-ic { width: min(10cqw, 24cqh, 96px); }
  .hm-ic span { font-size: clamp(12px, 3.2cqh, 14px); }
}
#scBook a.bk-link { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--skin-card, #f7f8f9); color: var(--txt); font-size: 15px; font-weight: 700; text-decoration: none; }
#scBook .bk-list, #scModes, #scLevel .levels { display: flex; flex-direction: column; gap: 8px; }
#scHelp .help ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.lv { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.lv img { width: 36px; height: 36px; flex: none; }
.lv b { display: block; font-size: 16px; }
.lv small { color: var(--muted); font-size: 13px; }
.lv em { margin-left: auto; font-style: normal; font-weight: 800; color: #9a6a00; white-space: nowrap; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stats b { display: block; font-size: 20px; }
.stats small { color: var(--muted); font-size: 13px; }
.rank .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 6px; }
.rank .row.me { border-color: var(--blue); }

/* ===== Kiểu chơi (8 / 9 / 10 bi) + sảnh online ===== */
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; font-size: 15px; }
.seg button img { width: 22px; height: 22px; vertical-align: -6px; margin-right: 4px; }
.rule-note { margin: 4px 2px 4px; }
#scOnline h2 { margin: 16px 0 8px; font-size: 15px; }
#scOnline .big { margin-bottom: 10px; }
.big-room { --bar: #8a5cff; }
.joinrow { display: flex; gap: 8px; margin: 4px 0 8px; }
.joinrow input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid #c9ccd1; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.joinrow button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; }
.roomcode { margin: 6px 0; font-size: 44px; font-weight: 900; letter-spacing: 8px; text-align: center; color: var(--blue); }
.pcard .pclock { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: #00a862; transform-origin: left; transform: scaleX(0); }
.pcard .pclock.low { background: #e5374f; }
#pc1 .pclock { transform-origin: right; }

/* ===== Màn chơi: luôn toàn màn hình. Cầm dọc = bàn dựng đứng, lực + xoáy ở đáy; cầm ngang = lực trái, xoáy phải ===== */
#scPlay { position: fixed; inset: 0; z-index: 6; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); gap: 6px; background: #1d0f07; touch-action: none; }
/* Pre-blurred image (img/play-bg*.webp), not CSS filter: a full-screen filtered layer was composited over the table on some Samsung phones */
.pl-bg { position: absolute; inset: 0; z-index: -1; background: #1d0f07 url(../img/play-bg.webp) center / cover; }
.pl-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pl-back, .pl-pause { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 12px; border: 2px solid #b98a4a; background: linear-gradient(#6b3a1c, #3c1d0c); color: #fff3d6; box-shadow: 0 3px 6px rgba(0, 0, 0, .4); }
.pl-back { font: 700 28px/1 system-ui; padding-bottom: 4px; }
.pl-pause svg { width: 22px; height: 22px; }
.pcard { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 12px; background: rgba(30, 14, 6, .78); border: 2px solid rgba(185, 138, 74, .55); color: #fff; transition: border-color .2s, box-shadow .2s; }
.pcard.on { border-color: #7dff5a; box-shadow: 0 0 0 2px rgba(125, 255, 90, .25), 0 0 14px rgba(125, 255, 90, .35); }
#pc1 { flex-direction: row-reverse; text-align: right; padding: 4px 4px 4px 8px; }
.pav { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff3d6; border: 2px solid var(--brass); display: grid; place-items: center; overflow: hidden; font: 900 18px/1 system-ui; color: #1d1d1d; }
.pav img, .pav svg { width: 100%; height: 100%; display: block; }
.pinfo { min-width: 0; flex: 1; }
.pinfo b { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pballs { display: flex; gap: 2px; margin-top: 3px; min-height: 16px; font-size: 12px; color: #e7d3b0; white-space: nowrap; overflow: hidden; }
#pc1 .pballs { justify-content: flex-end; }
.pballs img { width: 16px; height: 16px; flex: none; }
.vs { flex: none; font: 900 18px/1 "Arial Rounded MT Bold", system-ui; color: #f6d277; -webkit-text-stroke: 1px #6b3a0c; }
.pl-msg { position: absolute; left: 50%; top: 22%; z-index: 3; transform: translateX(-50%); max-width: 86vw; padding: 8px 14px; border-radius: 12px; background: rgba(20, 10, 4, .82); color: #fff; font-weight: 800; font-size: 15px; text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.pl-msg.show { opacity: 1; }
.pl-table { position: relative; z-index: 1; min-height: 0; min-width: 0; }
.pl-table canvas { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
.pl-ctl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: linear-gradient(#5a2e15, #2f160a); border: 2px solid #8a5a2c; box-shadow: inset 0 1px 0 rgba(255, 220, 160, .25), 0 4px 10px rgba(0, 0, 0, .45); }
.view-btn { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 60px; padding: 0; border: 0; background: none; color: #fff3d6; }
.view-btn svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.view-btn small { font-size: 12px; font-weight: 800; white-space: nowrap; }
.power { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 4px; touch-action: none; cursor: grab; }
.pw-lab { flex: none; color: #fff3d6; font-weight: 800; font-size: 15px; white-space: nowrap; }
.pw-track { position: relative; flex: 1; height: 26px; border-radius: 13px; background: #1a0c05; border: 2px solid #8a5a2c; overflow: hidden; }
.pw-track::before { content: ''; position: absolute; inset: 3px; border-radius: 10px; background: linear-gradient(90deg, #36c24a, #b9e03a 35%, #ffd23a 60%, #ff8a2a 80%, #e23a2a); opacity: .28; }
.pw-fill { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 0; border-radius: 10px; background: linear-gradient(90deg, #36c24a, #b9e03a 35%, #ffd23a 60%, #ff8a2a 80%, #e23a2a); background-size: var(--tw, 300px) 100%; }
.pw-knob { position: absolute; top: 1px; bottom: 1px; left: 0; width: 12px; margin-left: -6px; border-radius: 6px; background: linear-gradient(90deg, #fff, #d9d2c2); border: 1px solid #7a6a50; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transform: translateX(3px); }
.power.dis { opacity: .45; }
.spin { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 72px; padding: 0; border: 0; background: none; color: #fff3d6; }
.spin small { font-size: 12px; font-weight: 800; }
.spin-ball, .spin-pick { position: relative; display: block; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f1ebdc 45%, #c9bea6 100%); border: 3px solid #8a5a2c; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.spin-ball { width: 50px; height: 50px; }
.spin-ball::before, .spin-ball::after, .spin-pick::before, .spin-pick::after { content: ''; position: absolute; background: rgba(120, 90, 60, .35); }
.spin-ball::before, .spin-pick::before { left: 50%; top: 8%; bottom: 8%; width: 1px; }
.spin-ball::after, .spin-pick::after { top: 50%; left: 8%; right: 8%; height: 1px; }
.spin-ball i, .spin-pick i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #e2262b; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.spin-pick { width: 200px; height: 200px; margin: 6px auto 12px; touch-action: none; cursor: crosshair; }
.spin-pick i { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
#scSpin .big { align-items: center; }

/* Cầm ngang: lực thành cột dọc bên trái, xoáy bên phải bàn */
@media (orientation: landscape) {
  #scPlay { grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; column-gap: 10px; row-gap: 4px; }
  .pl-bg { background-image: url(../img/play-bg-wide.webp); }
  .pl-top { grid-column: 1 / -1; max-width: 760px; width: 100%; justify-self: center; }
  .pl-top .pl-back { margin-right: auto; }
  .pl-ctl { display: contents; }
  .power { grid-column: 1; grid-row: 2; flex-direction: column; justify-content: center; width: 64px; min-height: 0; padding: 8px 0; border-radius: 14px; background: linear-gradient(#5a2e15, #2f160a); border: 2px solid #8a5a2c; align-self: center; height: min(100%, 320px); }
  .pw-lab { font-size: 12px; white-space: normal; text-align: center; line-height: 1.15; }
  .pw-track { flex: 1; width: 26px; height: auto; }
  .pw-track::before, .pw-fill { background: linear-gradient(180deg, #36c24a, #b9e03a 35%, #ffd23a 60%, #ff8a2a 80%, #e23a2a); }
  .pw-fill { left: 3px; right: 3px; top: 3px; bottom: auto; width: auto; height: 0; background-size: 100% var(--th, 240px); }
  .pw-knob { left: 1px; right: 1px; top: 0; bottom: auto; width: auto; height: 12px; margin: -6px 0 0; transform: translateY(3px); }
  .spin { grid-column: 3; grid-row: 2; align-self: center; width: 84px; padding: 8px 4px; border-radius: 14px; background: linear-gradient(#5a2e15, #2f160a); border: 2px solid #8a5a2c; }
  .spin-ball { width: 60px; height: 60px; }
  .view-btn { grid-column: 3; grid-row: 2; align-self: start; justify-self: center; width: 84px; padding: 6px 4px; border-radius: 14px; background: linear-gradient(#5a2e15, #2f160a); border: 2px solid #8a5a2c; }
  .pl-table { grid-column: 2; grid-row: 2; }
  .pl-msg { top: 16%; }
}

/* ===== Hộp thoại ===== */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .5); }
.dialog { width: min(400px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.dialog h3 { margin: 0 0 6px; font-size: 22px; text-align: center; }
.dialog .score { margin: 4px 0 8px; text-align: center; font-size: 15px; color: var(--muted); }
.dialog .rw { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dialog .rw li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #f2f4f5; font-weight: 700; }
.mbtns { display: flex; gap: 8px; margin-top: 14px; }
.mbtns button { flex: 1; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; }
.mbtns button.pri { border-color: #335fff; background: #335fff; color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--ds-z-toast, 90); width: max-content; max-width: calc(100vw - 32px); text-align: center; padding: 12px 18px; border-radius: 12px; background: #191b1d; color: #fff; font-weight: 700; }

/* Tranh nền sân bi-a sau mọi màn con (design system: tranh nền sau mọi màn) */
body.mb-light { --mb-scene: url(/bida/img/home-bg.webp); --mb-scene-on: ''; }

/* ===== Cửa hàng: mặt bàn + gậy (thẻ món: xem thử · tên · độ hiếm · khối giá 2 hàng dính đáy) ===== */
.shop-head { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.shop-head .coin-chip, .shop-head .gem-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 800; }
#shopTabs { display: flex; gap: 8px; margin-bottom: 12px; }
#shopTabs button { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 800; }
#shopTabs button.on { border-color: #335fff; background: #eef2ff; color: #335fff; box-shadow: inset 0 0 0 1px #335fff; }
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .sh-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.sh-item { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; border: 2px solid var(--line); border-radius: 16px; background: #fff; text-align: left; font: inherit; color: inherit; }
.sh-item.on { border-color: #00a862; }
.sh-item.locked .pv, .sh-item.poor .pay { opacity: .55; }
.sh-item .pv { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: #1d4d33; }
.sh-item .nm { font-size: 15px; line-height: 1.25; }
.sh-item .rr { font-size: 12px; font-weight: 800; }
.sh-item .tag { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(25, 27, 29, .78); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.sh-item .evtag { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(255, 176, 32, .18); color: #b87400; font-size: 12px; font-style: normal; font-weight: 800; }
.sh-item .pay { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 4px; }
.sh-item .pay span { min-height: 20px; font-size: 14px; font-weight: 800; color: #b87400; }
.sh-item .pay .p2 { color: #0a8fd0; }
.sh-item .pay .ok { color: #00a862; }
.sh-item .pay .gap { visibility: hidden; }
.sh-item .pay .note { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.buy-pv { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; }
.buy-rar { display: inline-block; margin: 8px 0 0; padding: 2px 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; }
.daily-box { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid #ffb020; border-radius: 12px; background: #fff; }
.daily-box b { font-size: 15px; }
.daily-box span { color: var(--muted); font-size: 13px; }
.daily-box em { font-size: 13px; font-style: normal; font-weight: 800; color: #b87400; }
.daily-box em.ok { color: #00a862; }

body.mb-light .mb-skin .daily-box em:not(.ok) { color: #8a5600; }

/* 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; }
