/* ================= Gộp Trái Cây — giao diện riêng (mẫu của chủ dự án 14/11/2026): nền bạc hà, thẻ kem viền cam, nút xanh lá bóng ================= */
html body.mb-light { background: var(--page-bg, linear-gradient(180deg, #d8f3e4 0%, #bfe9d4 55%, #a9ddc4 100%)) center top / cover fixed no-repeat; color: #3b2a14; }
html body.mb-light .wrap { max-width: 560px; }
.note { color: #5a6b5f; }
html body.mb-light .note { color: #4d6354; }
html body.mb-light .note a { color: #c2570c; font-weight: 700; }

/* trang chủ */
html body.mb-light .me-card { background: #fffaf0; border: 3px solid #f0b868; box-shadow: 0 4px 0 rgba(150, 90, 20, .25); }
html body.mb-light .me-card, html body.mb-light .me-card b, html body.mb-light .me-card span { color: #3b2a14; }
html body.mb-light .me-tile { border-color: #f0b868; background: #fff3d6; }
html body.mb-light .me-tile .mbi { width: 46px; height: 46px; }
html body.mb-light .me-chips span { background: #fff; border: 2px solid #f6d9a6; border-radius: 999px; padding: 2px 10px; }
html body.mb-light .me-chips span span { padding: 0; background: none; border: 0; }
html body.mb-light .xpbar { background: #ecdcc0; }
html body.mb-light .xpbar i { background: linear-gradient(90deg, #8bd94f, #3fae2a); }
.hero { position: relative; text-align: center; margin: 0 0 6px; }
.hero .logo { display: block; width: min(58%, 230px); height: auto; margin: 0 auto; filter: drop-shadow(0 5px 6px rgba(90, 50, 10, .3)); }
.hero .crate { display: block; width: min(52%, 210px); height: auto; margin: -6px auto 0; filter: drop-shadow(0 6px 6px rgba(90, 50, 10, .3)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
html body.mb-light .big { display: flex !important; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 0; box-shadow: 0 5px 0 rgba(90, 50, 10, .28); color: #fff; }
html body.mb-light .big::before { display: none; }
html body.mb-light .big small { color: rgba(255, 255, 255, .95); }
html body.mb-light .big-play { padding: 12px 18px 10px; font-size: 38px; letter-spacing: 3px; font-weight: 900; border-radius: 999px; text-shadow: 0 3px 0 #1d6b18;
  background: linear-gradient(180deg, #9be864, #3fae2a); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), 0 6px 0 #1f7d1a; border: 4px solid #ffe08a; }
html body.mb-light .big-play small { font-size: 15px; letter-spacing: 0; font-weight: 800; text-shadow: 0 2px 0 #1d6b18; }
html body.mb-light .big-resume { background: linear-gradient(180deg, #ffd25c, #f0a21a); }
html body.mb-light .big-resume.hidden { display: none !important; }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pills .big { margin: 0; padding: 10px 8px; font-size: 16px; border-radius: 18px; border: 3px solid #fff3d0 !important; }
.pills .big .mbi { width: 42px; height: 42px; display: block; margin: 0 auto 1px; }
html body.mb-light .big-daily { background: linear-gradient(180deg, #ffb35c, #f08a1f); }
html body.mb-light .big-sprint { background: linear-gradient(180deg, #5ec2ff, #2f8ee0); }
.big-daily.done small { color: #fff !important; opacity: .85; }
.homegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 8px; }
html body.mb-light .small { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 98px; padding: 8px 2px; border: 3px solid #7a4a1c; border-radius: 14px; background: linear-gradient(180deg, #d99a52, #a96a2a); color: #fff; font-size: 12.5px; font-weight: 800; text-shadow: 0 2px 0 rgba(60, 30, 5, .55); box-shadow: 0 3px 0 rgba(60, 30, 5, .3); }
html body.mb-light .small .mbi { width: 44px; height: 44px; }
.hero ~ .note { text-align: center; }

/* chọn màn */
html body.mb-light .mapcard { background: #fffaf0; color: #3b2a14; border: 3px solid #f0b868; border-radius: 16px; box-shadow: 0 3px 0 rgba(150, 90, 20, .2); }
.mhead { background: linear-gradient(90deg, var(--z1, #5fbf6a), var(--z2, #8fd86f)); text-shadow: 0 2px 3px rgba(20, 60, 20, .55); min-height: 64px; }
.mhead .zimg { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
html body.mb-light .lv { color: #3b2a14; background: #fff; border: 2px solid #f0d6a2; }
html body.mb-light .lv.done { background: #e7f6d2; border-color: #8fd05a; }
html body.mb-light .lv.clean { background: #fff0b8; border-color: #e5a923; color: #6a4300; }
html body.mb-light .lv.cur { border-color: #f08a1f; box-shadow: 0 0 0 3px rgba(240, 138, 31, .3); }
.lvgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px; }

/* màn chơi (cầm dọc: số liệu trên, giỏ giữa, nút dưới; cầm ngang: số liệu trái, giỏ giữa, nút phải) */
#scPlay { margin: 0 -14px; }
.gq { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 8px; user-select: none; -webkit-user-select: none; }
.gq-top { display: flex; align-items: stretch; justify-content: center; gap: 6px; width: 100%; max-width: 520px; }
.gq-box { flex: 1; min-width: 0; padding: 4px 6px 5px; text-align: center; background: #fffaf0; border: 3px solid #f0b868; border-radius: 12px; box-shadow: 0 3px 0 rgba(150, 90, 20, .22); }
.gq-box small { display: block; font-size: 12px; font-weight: 800; color: #8a6a3a; text-transform: uppercase; letter-spacing: .2px; }
.gq-box b { display: block; font-size: 20px; font-weight: 900; color: #3b2a14; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-box.goal b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 17px; }
.gq-box.goal img { width: 24px; height: 24px; object-fit: contain; }
.gq-box.hide, .gq-box.hidden { display: none !important; }
.gq-next { flex: none; width: 72px; padding: 2px 2px 3px; text-align: center; background: #e8f6ff; border: 3px solid #8fcdf0; border-radius: 14px; box-shadow: 0 3px 0 rgba(40, 100, 150, .25); }
.gq-next small { display: block; font-size: 10px; font-weight: 800; color: #3b78a0; text-transform: uppercase; }
.gq-next .nx { display: grid; place-items: center; height: 40px; }
.gq-next img { max-width: 36px; max-height: 36px; object-fit: contain; }
.gq-stage { position: relative; margin: 0 auto; touch-action: none; }
.gq-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.gq-stage .nstat { position: absolute; left: 0; right: 0; top: 4%; margin: 0; text-align: center; color: #fff; text-shadow: 0 2px 0 #7a4a1c, 0 0 6px rgba(90, 50, 10, .7); font-size: 16px; font-weight: 900; pointer-events: none; }
.gq-acts { display: flex; justify-content: center; align-items: flex-start; gap: 14px; width: 100%; padding: 2px 0 6px; }
.act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; padding: 0; border: 0; background: none; color: #3b2a14; }
.act .orb { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 0 rgba(60, 30, 10, .3); color: #fff; font-size: 20px; }
.act .orb .mbi { width: 48px !important; height: 48px !important; }
.o-bua { background: radial-gradient(circle at 35% 30%, #7fe1ff, #2f9fd8); }
.o-doi { background: radial-gradient(circle at 35% 30%, #9ef07a, #3fae2a); }
.o-bom { background: radial-gradient(circle at 35% 30%, #ff9db8, #e0407a); }
.o-pause { background: radial-gradient(circle at 35% 30%, #ffc66b, #f08a1f); font-size: 16px; font-weight: 900; }
.act.on .orb { box-shadow: 0 0 0 4px #ffe08a, 0 0 16px rgba(255, 200, 60, .9); }
.act b { position: absolute; right: 0; top: -4px; min-width: 22px; padding: 1px 5px; border-radius: 12px; background: #ff4d5a; border: 2px solid #fff; color: #fff; font-size: 12px; font-weight: 900; text-align: center; }
.act em { font-style: normal; font-size: 12px; font-weight: 800; color: #4d3a1e; }
.act:active .orb { transform: translateY(3px); box-shadow: 0 1px 0 rgba(60, 30, 10, .3); }
@media (orientation: landscape) and (max-height: 620px) {
  .gq { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr); grid-template-rows: auto; align-items: center; gap: 8px; padding: 0 10px; }
  .gq-top { grid-column: 1; grid-row: 1; flex-direction: column; max-width: none; }
  .gq-stage { grid-column: 2; grid-row: 1; }
  .gq-acts { grid-column: 3; grid-row: 1; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
  .gq-next { width: auto; }
}

/* cửa hàng, xếp hạng, hộp thoại */
.shop-top { color: #3b2a14; }
html body.mb-light .tabs button { background: #fffaf0; border: 2px solid #f0d6a2; color: #3b2a14; }
html body.mb-light .tabs button.on { background: #ffd978; border-color: #e5a923; }
html body.mb-light .shop .item { background: #fffaf0; border-color: #f0d6a2; color: #3b2a14; }
html body.mb-light .shop .item b { color: #3b2a14; }
html body.mb-light .shop .item.active { border-color: #3fae2a; }
.pv { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; height: 92px; border-radius: 12px; background: linear-gradient(180deg, #e6f7ee, #c5e9d6); pointer-events: none; overflow: hidden; }
.pv img { max-width: 86%; max-height: 80px; object-fit: contain; }
.pv.bgv { padding: 0; } .pv.bgv img { width: 100%; max-width: none; max-height: none; height: 100%; object-fit: cover; }
.pv.fxv { flex-direction: column; gap: 2px; } .pv.fxv img { max-height: 54px; }
.pv.fxv i { font-style: normal; font-size: 16px; font-weight: 900; color: #ffb020; letter-spacing: 2px; }
.pv.fx-tim i { color: #ff5d8a; } .pv.fx-bot i, .pv.fx-cauvong i { color: #4aa3ff; } .pv.fx-phaohoa i { color: #ff7a2e; }
.boostpv { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 900; color: #6b3f16; }
.boostpv .mbi { width: 50px; height: 50px; }
html body.mb-light .rank .row { color: #3b2a14; border-color: #ecdcc0; }
html body.mb-light .rank .row.me { background: #fff0b8; }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.dcard { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 14px; background: #fffaf0; border: 2px solid #f0d6a2; color: #3b2a14; text-align: center; }
.dcard .dpic { display: grid; place-items: center; width: 100%; height: 72px; border-radius: 10px; background: linear-gradient(180deg, #e6f7ee, #c5e9d6); }
.dcard img { max-width: 86%; max-height: 62px; object-fit: contain; }
.dcard.unk img { filter: brightness(0) opacity(.5); }
.dcard b { font-size: 13px; } .dcard small { font-size: 11px; color: #6b7d70; }
.help { background: #fffaf0; color: #3b2a14; padding: 4px 16px 12px; border-radius: 16px; border: 3px solid #f0b868; }
.help h2 { color: #c2570c; }
html body.mb-light .dialog { color: #3b2a14; background: #fffdf5; border: 3px solid #f0b868; }
.dialog.win .wm { width: 96px; height: 96px; object-fit: contain; }
.wfruit { display: grid; place-items: center; height: 92px; margin: -4px auto 0; } .wfruit img { max-height: 90px; animation: cheer 1.4s ease-in-out infinite; }
.wfruit.sad img { filter: grayscale(.6); animation: none; }
.stage .modal, .gq-stage .modal { position: absolute; padding: 8px; }
@media (max-height: 480px) { .wfruit { height: 52px; margin: 0; } .wfruit img { max-height: 50px; } .dialog.win h3 { margin: 0 0 2px; } .dialog.win .wstars { margin: 0; } .dialog.win .wbtns { margin-top: 8px; } }

/* Icons wrap in .mbic (1.25em) — size the wrapper, not the svg */
.pills .big .mbic { display: block; width: 44px !important; height: 44px !important; margin: 0 auto 2px; }
html body.mb-light .small .mbic { width: 46px !important; height: 46px !important; }
.act .orb .mbic { width: 46px !important; height: 46px !important; margin: 0; }
.wc .mbic { width: 30px !important; height: 30px !important; }
.dialog.win .more .mbic { width: 38px !important; height: 38px !important; }
.dialog.win .links .mbic { width: 32px !important; height: 32px !important; }
.wshare .mbic { width: 34px !important; height: 34px !important; }
.wstars .mbic { width: 56px !important; height: 56px !important; }
.mhead .mbic, .dialog h3 .mbic { width: 1.6em; height: 1.6em; }

/* Frozen fruit (zones 11+): ice counter box and the one-time tip */
.gq-box.ice { background: #eef9ff; border-color: #7cc4ec; box-shadow: 0 3px 0 rgba(30, 90, 140, .22); }
.gq-box.ice small { color: #2f6f9e; }
.gq-box.ice b { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 17px; }
.gq-box.ice .icesv { width: 20px; height: 20px; flex: none; }
.icetip { display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.icetip .icesv { width: 40px; height: 40px; flex: none; }
/* Five boxes when a level has ice: tighter numbers so the score is not cut off on phones */
.gq-top.has-ice { gap: 4px; }
.gq-top.has-ice .gq-box { padding: 4px 3px 5px; }
.gq-top.has-ice .gq-box b { font-size: 16px; }
.gq-top.has-ice .gq-box.goal img { width: 20px; height: 20px; }
