/* Vườn nhà mình – toàn bộ CSS của trò (tiền tố vuon-). Nạp sau style.css.
   Khung cảnh: trời xanh, đồi cỏ, vườn rau sau nhà có hàng rào (tre / gỗ trắng / hoa giấy). Ô đất giữ tỉ lệ bằng padding-top (không dùng aspect-ratio, cqw) cho iPhone cũ. */
body[data-scene="vuon"] {
  background-color: #dff2c9;
  background-image:
    radial-gradient(circle at 88% 6%, #fff6b0 0 34px, rgba(255, 240, 150, .5) 35px 60px, transparent 61px),
    radial-gradient(ellipse 60% 18% at 20% 26%, #fff 0 40%, transparent 41%),
    linear-gradient(180deg, #a9dcff 0, #cdeeff 160px, #d6f0c0 260px, #cfe9b4 100%);
  background-attachment: scroll;
}
body[data-scene="vuon"] #app { max-width: 860px; }
.art-vuon { background: #cfe9b4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23bfe6ff'/%3E%3Ccircle cx='80' cy='14' r='9' fill='%23ffe36e'/%3E%3Cpath d='M0 46q24-14 48-4t48-6V96H0z' fill='%2397cf6a'/%3E%3Cpath d='M0 58h96v38H0z' fill='%23855a33'/%3E%3Cpath d='M0 66q48-6 96 0M0 78q48 6 96 0M0 90q48-5 96 0' stroke='%236a4426' stroke-width='3' fill='none'/%3E%3Cpath d='M18 64V50' stroke='%233f8f3a' stroke-width='3'/%3E%3Cellipse cx='12' cy='52' rx='7' ry='4' fill='%234caf50' transform='rotate(-30 12 52)'/%3E%3Cellipse cx='24' cy='50' rx='7' ry='4' fill='%2366bb6a' transform='rotate(30 24 50)'/%3E%3Ccircle cx='48' cy='58' r='8' fill='%23e63b2e'/%3E%3Ccircle cx='45' cy='55' r='2' fill='%23ff9b8f'/%3E%3Cpath d='M45 50l3 2 3-2' stroke='%232f7a32' stroke-width='2' fill='none'/%3E%3Cellipse cx='76' cy='62' rx='13' ry='10' fill='%23f39a2e'/%3E%3Cpath d='M76 52v20M69 54q-3 8 0 16M83 54q3 8 0 16' stroke='%23d9741a' stroke-width='1.5' fill='none'/%3E%3Cpath d='M76 52q0-5 3-6' stroke='%236b4f2a' stroke-width='3' fill='none'/%3E%3Cpath d='M2 42V28M10 42V26M90 42V28' stroke='%23c9a24a' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M0 33h96' stroke='%23b08d3a' stroke-width='2.5'/%3E%3C/svg%3E") center/cover no-repeat; }

.vuon { display: grid; gap: 10px; color: #23401f; min-width: 0; }
.vuon h1 { font: 700 1.7rem/1.15 "Mali", var(--f-hand); color: #2b5a1f; margin: 0; }
.vuon h2 { font: 700 1.25rem/1.3 "Mali", var(--f-hand); color: #2b5a1f; margin: 0 0 6px; }
.vuon h3 { font: 600 1rem/1.3 var(--f-body); color: #3a6b2a; margin: 12px 0 6px; }
.vuon-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vuon-back, .vuon-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 2px solid #3a6b2a; background: #FBF3E0; color: #2b5a1f; font: 700 1.3rem/1 var(--f-body); text-decoration: none; cursor: pointer; }
.vuon-title { flex: 1; min-width: 0; }
.vuon-who { margin: 0; font-size: .86rem; color: #3f6233; overflow-wrap: anywhere; }
.vuon-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vuon-lv, .vuon-xu { display: inline-flex; align-items: center; gap: 6px; background: #FBF3E0; border: 2px solid #3a6b2a; border-radius: 999px; padding: 4px 10px; min-height: 36px; font-size: .9rem; }
.vuon-lv b { white-space: nowrap; color: #2b5a1f; }
.vuon-xpbar { width: 70px; height: 10px; border-radius: 6px; background: #dbe9cf; overflow: hidden; border: 1px solid #9cbf86; }
.vuon-xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #7ccf4a, #3fa33a); }
.vuon-xpt { color: #4c6b40; font-size: .76rem; white-space: nowrap; }
.vuon-xu b { color: #8a5a00; font-size: 1rem; }
.vuon-coin { width: 20px; height: 20px; flex: none; }
.vuon-net { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: #fff3c4; color: #6b4b00; border: 1.5px solid #e0b63a; }
.vuon-net.off { background: #ffe1dc; color: #8a2016; border-color: #e07a6a; }

.vuon-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; background: #FBF3E0; border: 2px solid #3a6b2a; border-radius: 14px; padding: 4px; }
.vuon-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; min-width: 0; padding: 2px 1px; border: 0; border-radius: 10px; background: none; color: #2b5a1f; font: 600 .7rem/1.1 var(--f-body); cursor: pointer; text-align: center; }
.vuon-tabs button span { overflow-wrap: anywhere; }
.vuon-tabi { width: 26px; height: 26px; display: block; flex: none; }
.vuon-tabs button[aria-selected="true"] { background: #3a7d2c; color: #fff; }
.vuon-tabs button[aria-selected="true"] .vuon-tabi { background: #FBF3E0; border-radius: 8px; }
.vuon-badge { position: absolute; top: 2px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #e5383b; color: #fff; font: 700 .7rem/18px var(--f-body); font-style: normal; }
.vuon-pane { display: grid; gap: 10px; min-width: 0; }

/* ---------- Vườn ---------- */
.vuon-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .vuon-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vuon-tool { display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 0; padding: 4px 10px; text-align: left; border-radius: 12px; border: 2px solid #3a6b2a; background: #FBF3E0; color: #2b5a1f; font: 600 .86rem/1.2 var(--f-body); cursor: pointer; }
.vuon-tool:disabled { opacity: .5; cursor: default; }
.vuon-tool span { font-size: 1.1rem; }
.vuon-yard { position: relative; border-radius: 16px; padding: 22px 12px 14px; background: #9fd36f radial-gradient(rgba(60, 120, 40, .18) 1px, transparent 1.6px) 0 0/9px 9px; box-shadow: inset 0 0 0 3px rgba(70, 120, 40, .25), 0 4px 0 rgba(40, 80, 30, .25); }
.vuon-yard::before, .vuon-yard::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background-repeat: repeat-x; background-size: auto 100%; pointer-events: none; }
.vuon-yard::before { top: 0; border-radius: 16px 16px 0 0; }
.vuon-yard::after { bottom: 0; border-radius: 0 0 16px 16px; }
.rao-tre::before, .rao-tre::after, .vuon-raoic.rao-tre { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 9h24M0 17h24' stroke='%23a07c2c' stroke-width='2.4'/%3E%3Crect x='3' y='1' width='6' height='23' rx='3' fill='%23d8c06a' stroke='%23a5892f'/%3E%3Cpath d='M3 8h6M3 16h6' stroke='%23a5892f' stroke-width='1.4'/%3E%3Crect x='14' y='3' width='6' height='21' rx='3' fill='%23cdb55c' stroke='%23a5892f'/%3E%3Cpath d='M14 11h6M14 19h6' stroke='%23a5892f' stroke-width='1.4'/%3E%3C/svg%3E"); }
.rao-go::before, .rao-go::after, .vuon-raoic.rao-go { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 10h24M0 18h24' stroke='%23c9c2b4' stroke-width='2.6'/%3E%3Cpath d='M4 24V5l3-4 3 4v19zM15 24V5l3-4 3 4v19z' fill='%23fffdf7' stroke='%23b3aa98' stroke-width='1'/%3E%3C/svg%3E"); }
.rao-gach::before, .rao-gach::after, .vuon-raoic.rao-gach { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' fill='%239E3B2A'/%3E%3Crect x='1' y='1' width='10' height='6' rx='1' fill='%23C8553D'/%3E%3Crect x='13' y='1' width='10' height='6' rx='1' fill='%23C8553D'/%3E%3Crect x='-5' y='9' width='10' height='6' rx='1' fill='%23C8553D'/%3E%3Crect x='7' y='9' width='10' height='6' rx='1' fill='%23C8553D'/%3E%3Crect x='19' y='9' width='10' height='6' rx='1' fill='%23C8553D'/%3E%3Crect x='1' y='17' width='10' height='6' rx='1' fill='%23C8553D'/%3E%3Crect x='13' y='17' width='10' height='6' rx='1' fill='%23C8553D'/%3E%3C/svg%3E"); }
.rao-hoa::before, .rao-hoa::after, .vuon-raoic.rao-hoa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 24V10q6-9 12-2 6-8 12 2v14z' fill='%23378a3a'/%3E%3Ccircle cx='5' cy='10' r='2.6' fill='%23ff5fa2'/%3E%3Ccircle cx='13' cy='7' r='2.4' fill='%23ff86bd'/%3E%3Ccircle cx='19' cy='12' r='2.6' fill='%23f0458f'/%3E%3Ccircle cx='9' cy='15' r='2' fill='%23ff86bd'/%3E%3C/svg%3E"); }
.vuon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .vuon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 820px) { .vuon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.vuon-plot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .16); cursor: pointer; overflow: hidden; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.vuon-plot::before { content: ""; display: block; padding-top: 96%; }
.vuon-plot > * { position: absolute; }
.vuon-plot:focus-visible { outline: 3px solid #1f5fd1; outline-offset: 2px; }
.vuon-plot:active { transform: translateY(1px); }
.vuon-svg { left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.vuon-plot.is-chin { background: rgba(255, 246, 170, .55); box-shadow: 0 0 0 2px #f2c94c inset; }
.vuon-plot.is-heo { background: rgba(160, 130, 80, .25); }
.vuon-plus { left: 50%; top: 40%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .75); color: #3a6b2a; font: 700 1.5rem/34px var(--f-body); text-align: center; }
.vuon-ev { right: 4px; top: 4px; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 0 rgba(0, 0, 0, .15); animation: vuon-bob 1.2s ease-in-out infinite; }
.vuon-evi { width: 22px; height: 22px; display: block; }
.vuon-hand { background: #fff3d6; }
.vuon-tag { left: 4px; top: 4px; max-width: calc(100% - 8px); padding: 1px 6px; border-radius: 8px; background: rgba(255, 255, 255, .88); color: #3a5a2a; font: 600 .7rem/1.4 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vuon-plot.has-ev .vuon-tag { max-width: calc(100% - 44px); }
.vuon-tag.chin { background: #f9c74f; color: #5a3a00; }
.vuon-tag.heo { background: #c9b48a; color: #4a3a1a; }
.vuon-pbar { left: 10%; right: 10%; bottom: 5px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .25); overflow: hidden; }
.vuon-pbar i { display: block; height: 100%; background: #9be15d; transition: width 1s linear; }
.vuon-st { right: 4px; bottom: 4px; padding: 0 5px; border-radius: 6px; background: rgba(120, 60, 20, .8); color: #fff; font: 700 .7rem/1.5 var(--f-body); }
.vuon-buy { background: rgba(255, 255, 255, .35); border: 2px dashed #5a8f3a; color: #2b5a1f; }
.vuon-buy span { left: 0; right: 0; top: 50%; transform: translateY(-50%); font: 700 .85rem/1.25 var(--f-body); text-align: center; }
.vuon-buy small { font-weight: 500; font-size: .72rem; }
.vuon-corner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.vuon-deco-bn .vuon-bn { width: 52px; height: 66px; display: block; }
.vuon-deco-dog .vuon-dog { width: 84px; height: 64px; display: block; }
.vuon-pen { display: flex; flex-wrap: wrap; gap: 2px; align-items: flex-end; flex: 1 1 160px; min-height: 60px; padding: 6px 8px; border-radius: 12px; border: 2px solid #b08d4f; background: #f3e2b5 repeating-linear-gradient(90deg, transparent 0 22px, rgba(150, 110, 50, .25) 22px 24px); cursor: pointer; }
.vuon-pen:disabled { cursor: default; }
.vuon-petbox { position: relative; display: block; width: 50px; height: 42px; }
.vuon-pet { width: 50px; height: 42px; display: block; }
.vuon-eggs { position: absolute; left: 0; bottom: -2px; display: flex; }
.vuon-egg { width: 14px; height: 16px; display: block; }
.vuon-hint { margin: 0; font-size: .85rem; color: #3f6233; }
.vuon-rules, .vuon-card { background: #FBF3E0; border: 2px solid #3a6b2a; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.vuon-rules summary { font: 700 1.1rem/1.4 "Mali", var(--f-hand); color: #2b5a1f; cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.vuon-rules li, .vuon-rules p, .vuon-card p { font-size: .92rem; }
.vuon-rules ul { padding-left: 1.2em; margin: 6px 0; }
.vuon-note { color: var(--muted); font-size: .84rem !important; }
.vuon-sub { margin: 0; font-size: .86rem; color: #4c6b40; }
.vuon-empty { text-align: center; padding: 28px 12px; background: #FBF3E0; border: 2px dashed #3a6b2a; border-radius: 14px; }

/* ---------- Danh sách: kho, cửa hàng, hạt, hàng xóm ---------- */
.vuon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vuon-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 0; border-bottom: 1px dashed #b9d4a5; flex-wrap: wrap; }
.vuon-list li:last-child { border-bottom: 0; }
.vuon-ico { width: 44px; height: 40px; flex: none; display: block; }
.vuon-shopic { width: 56px; height: 48px; flex: none; display: grid; place-items: center; }
.vuon-shopic svg { max-width: 56px; max-height: 48px; width: 100%; height: 100%; }
.vuon-raoic { display: block; width: 52px; height: 30px; background-size: auto 100%; background-repeat: repeat-x; border-radius: 6px; }
.vuon-sn { flex: 1 1 140px; min-width: 0; display: grid; }
.vuon-sn b { font-size: .98rem; color: #23401f; }
.vuon-sn small { font-size: .8rem; color: #4c6b40; overflow-wrap: anywhere; }
.vuon-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.vuon-btns .btn, .vuon-list .btn { min-height: 44px; }
.vuon-own { font: 600 .84rem var(--f-body); color: #3a7d2c; padding: 0 6px; }
.vuon-mini li.is-lock { opacity: .55; }
.vuon-card .btn.ink, .vuon-sheet .btn.ink, .vuon-lvcard .btn.ink, .vuon-order .btn.ink, .vuon-sub-pane .btn.ink { background: #3a7d2c; border-color: #23401f; color: #fff; }
.vuon-order .btn, .vuon-sub-pane .btn { border-color: #3a6b2a; color: #23401f; }
.vuon-card .btn, .vuon-sheet .btn { border-color: #3a6b2a; color: #23401f; box-shadow: 2px 3px 0 rgba(40, 80, 30, .2); }
.vuon-card .btn.ink, .vuon-sheet .btn.ink { color: #fff; }
.vuon-card .btn:disabled { opacity: .5; cursor: default; }
.vuon-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.vuon-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vuon-seg button { min-height: 44px; padding: .4em 1em; border-radius: 999px; border: 1.5px solid #3a7d2c; background: #fff; color: #2b5a1f; font: 600 .88rem var(--f-body); cursor: pointer; }
.vuon-seg button[aria-checked="true"] { background: #3a7d2c; color: #fff; }
.vuon-seg button:disabled { opacity: .45; cursor: default; }
.vuon-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vuon-code b { font: 700 1.6rem/1.2 "Courier New", monospace; letter-spacing: .12em; color: #2b5a1f; }
.vuon-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vuon-form input { flex: 1 1 160px; min-width: 0; min-height: 44px; font: 600 1rem var(--f-body); padding: 0 12px; border-radius: 10px; border: 2px solid #3a6b2a; background: #fff; text-transform: none; }
.vuon-nb .btn { flex: none; }
.vuon-rank { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f9c74f; color: #5a3a00; display: grid; place-items: center; font: 700 .85rem var(--f-body); }
.vuon-pill { display: inline-block; border-radius: 999px; padding: 0 6px; font-weight: 600; }
.vuon-pill.chin { background: #fde68a; color: #6b4b00; }
.vuon-pill.ev { background: #cfe8ff; color: #1d4f8a; }
.vuon-visitbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: #2b5a1f; }
.vuon-visitbar .btn { min-height: 44px; border-color: #3a6b2a; color: #23401f; }
.vuon-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vuon-log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 8px; border-radius: 10px; background: #f2f8ea; font-size: .92rem; }
.vuon-log li.new { background: #fff3c4; }
.vuon-log li.k-hai { border-left: 4px solid #e5383b; }
.vuon-log li.k-cho { border-left: 4px solid #8b5a2b; }
.vuon-log li.k-nuoc, .vuon-log li.k-sau, .vuon-log li.k-co { border-left: 4px solid #3fa33a; }
.vuon-lt { color: #6b7d60; font-size: .78rem; white-space: nowrap; }
.vuon-log .linkbtn { min-height: 32px; padding: 0; margin-left: auto; color: #2b5a1f; }

/* ---------- Bảng chọn, thẻ lên cấp, chữ bay ---------- */
.vuon-over { position: fixed; inset: 0; z-index: 60; background: rgba(20, 40, 15, .45); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.vuon-sheet { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; background: #FBF3E0; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25); }
@media (min-width: 600px) { .vuon-over { align-items: center; padding: 16px; } .vuon-sheet { border-radius: 18px; } }
.vuon-sheet h2 { font: 700 1.25rem/1.3 "Mali", var(--f-hand); color: #2b5a1f; margin: 0 40px 4px 0; }
.vuon-x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e7f2dc; color: #2b5a1f; font: 700 1.5rem/1 var(--f-body); cursor: pointer; }
.vuon-seeds { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.vuon-seeds button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 10px; border-radius: 12px; border: 2px solid #b9d4a5; background: #fff; color: #23401f; font: inherit; text-align: left; cursor: pointer; }
.vuon-seeds button.cur { border-color: #3a7d2c; background: #eef8e4; }
.vuon-seeds button:disabled { opacity: .5; cursor: default; }
.vuon-price { flex: none; font: 700 .9rem var(--f-body); color: #8a5a00; }
.vuon-info { display: flex; gap: 12px; align-items: flex-start; }
.vuon-info .vuon-ico { width: 64px; height: 58px; }
.vuon-info p { margin: 4px 0; font-size: .92rem; }
.vuon-lvcard { max-width: 380px; margin: auto; text-align: center; align-self: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.vuon-over:not(.vuon-sheetwrap) { align-items: center; padding: 16px; }
.vuon-lvcard h2 { font-size: 1.6rem; }
.vuon-lvcard .vuon-acts { justify-content: center; }
.vuon-eyebrow { margin: 0; font: 700 .9rem var(--f-body); color: #c27c0e; text-transform: uppercase; letter-spacing: .06em; }
.vuon-float { position: fixed; z-index: 70; transform: translate(-50%, 0); font: 800 1.1rem/1 var(--f-body); color: #fff; text-shadow: 0 2px 0 #3a6b2a, 0 0 6px rgba(0, 0, 0, .35); pointer-events: none; animation: vuon-up 1.2s ease-out forwards; white-space: nowrap; }
.vuon-float.ev { color: #e6f6ff; text-shadow: 0 2px 0 #1565c0, 0 0 6px rgba(0, 0, 0, .3); }
@keyframes vuon-up { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -46px); } }
@keyframes vuon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .vuon-ev, .vuon-float, .vu-sway, .vu-pop, .vuon-pop, .vuon-chip.hot, .vuon-order.ready { animation: none !important; }
  .vuon-pbar i { transition: none; }
}
@media (max-width: 360px) {
  .vuon h1 { font-size: 1.45rem; }
  .vuon-grid { gap: 6px; }
  .vuon-yard { padding: 20px 8px 12px; }
  .vuon-tag { font-size: .64rem; padding: 0 4px; }
  .vuon-evi { width: 18px; height: 18px; }
  .vuon-xpt { display: none; }
}
.vuon-code .btn { min-height: 44px; }
.vuon-acts .btn { min-height: 44px; }
.vuon-tool[hidden] { display: none; }

/* ================= Bản 17: phần mới ================= */
/* Bảng màu chung với vuon-art.js: xanh lá non #5DBB63, xanh lúa #2E8B57, nâu phù sa #9A6B47, vàng rơm #F2C14E, đỏ gạch #C8553D, kem giấy dó #FBF3E0, xanh trời #8FD3F4 */
.vu-sway { transform-origin: 50px 79px; animation: vu-sway 3.6s ease-in-out infinite; }
.vuon-plot:nth-child(2n) .vu-sway { animation-delay: -1.3s; }
.vuon-plot:nth-child(3n) .vu-sway { animation-delay: -2.2s; }
@keyframes vu-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.vu-pop { animation: vu-pop .45s ease-out; }
@keyframes vu-pop { 0% { transform: scale(1); } 35% { transform: scale(1.08) translateY(-3px); } 100% { transform: scale(1); } }
.vuon-pop { animation: vu-big .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes vu-big { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.vuon-warn { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff3c4; border: 1.5px solid #e0b63a; color: #6b4b00; font-size: .86rem; }
.vuon-warn.son { background: #dcefff; border-color: #3D9BE9; color: #1d4f8a; }
.vuon-next { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 0; }
.vuon-next:empty { display: none; }
.vuon-next-h { font: 700 .8rem var(--f-body); color: #3f6233; }
.vuon-chip { min-height: 44px; padding: 4px 10px; border-radius: 999px; border: 1.5px solid #2E8B57; background: #FBF3E0; color: #23401f; font: 600 .82rem/1.2 var(--f-body); cursor: pointer; text-align: left; }
.vuon-chip.hot { background: #F2C14E; border-color: #D49A2A; color: #4A3222; animation: vu-glow 2.4s ease-in-out infinite; }
@keyframes vu-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 193, 78, .0); } 50% { box-shadow: 0 0 0 4px rgba(242, 193, 78, .35); } }
.vuon-modebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-radius: 12px; background: #dcefff; border: 1.5px solid #3D9BE9; font-size: .88rem; }
.vuon-modebar span { display: inline-flex; align-items: center; gap: 6px; }
.vuon-modebar .btn { min-height: 44px; }
.vuon-yard.is-mode .vuon-plot.is-target { box-shadow: 0 0 0 3px #3D9BE9 inset; }
.vuon-mki { width: 22px; height: 22px; display: block; }
.vuon-mk { left: 4px; bottom: 4px; padding: 1px; border-radius: 8px; background: rgba(255, 255, 255, .85); }
.vuon-qstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 2px solid #3a6b2a; background: #FBF3E0; color: #23401f; font: 600 .86rem var(--f-body); cursor: pointer; text-align: left; }
.vuon-qbar { display: inline-block; vertical-align: middle; width: 70px; height: 8px; border-radius: 4px; background: #e3dccb; overflow: hidden; }
.vuon-qbar i { display: block; height: 100%; background: #5DBB63; }
.vuon-segtab { margin: 0; }
.vuon-segtab button { flex: 1 1 0; min-width: 0; padding: .4em .5em; }
.vuon-segtab button[aria-selected="true"] { background: #3a7d2c; color: #fff; }
.vuon-seg button[aria-pressed="true"] { background: #3a7d2c; color: #fff; }
.vuon-dot { display: inline-block; min-width: 18px; padding: 0 4px; border-radius: 9px; background: #e5383b; color: #fff; font: 700 .7rem/18px var(--f-body); font-style: normal; }
.vuon-sub-pane { display: grid; gap: 10px; min-width: 0; }
.vuon-tabs .vuon-badge { top: 1px; right: 2px; }
.vuon-corner .vuon-deco { width: 58px; height: 58px; display: block; }
.vuon-deco-pet .vuon-pet { width: 44px; height: 37px; display: block; }
/* chuồng */
.vuon-pen-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #c9bfa5; }
.vuon-pen-ani { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 100%; padding: 6px; border-radius: 12px; background: #f3e2b5 repeating-linear-gradient(90deg, transparent 0 22px, rgba(150, 110, 50, .22) 22px 24px); }
.vuon-pen-ani .vuon-petbox { width: 58px; height: 46px; }
.vuon-pen-ani .vuon-pet { width: 58px; height: 46px; }
.vuon-pen-row .btn { min-height: 44px; }
/* bếp */
.vuon-machead { display: flex; align-items: center; gap: 10px; }
.vuon-machead .vuon-ico { width: 56px; height: 56px; }
.vuon-jobs li { flex-wrap: nowrap; }
.vuon-pbar2 { flex: 0 0 70px; height: 8px; border-radius: 4px; background: #e3dccb; overflow: hidden; }
.vuon-pbar2 i { display: block; height: 100%; background: #F28C28; }
.vuon-need { display: inline-block; padding: 0 5px; margin: 1px 0; border-radius: 6px; background: #f6e0d8; color: #8a2016; }
.vuon-need.ok { background: #dff2c9; color: #2b5a1f; }
.vuon-recipes li.is-lock { opacity: .6; }
/* đơn hàng */
.vuon-order { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: #FBF3E0; border: 2px solid #c9bfa5; min-width: 0; }
.vuon-order.hard { border-color: #C8553D; }
.vuon-order.ready { border-color: #2E8B57; background: #eef8e4; animation: vu-glow 2.4s ease-in-out infinite; }
.vuon-order.wait { opacity: .75; border-style: dashed; align-items: center; }
.vuon-npcw .vuon-npc { width: 60px; height: 60px; display: block; flex: none; }
.vuon-npc.ghost { opacity: .35; filter: grayscale(1); }
.vuon-ord-b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vuon-ord-b > b { font-size: .98rem; color: #23401f; }
.vuon-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.vuon-needs li { display: flex; align-items: center; gap: 4px; font-size: .84rem; color: #8a2016; }
.vuon-needs li.ok { color: #2b5a1f; }
.vuon-ico.sm { width: 28px; height: 28px; }
.vuon-reward { margin: 0; font-size: .86rem; color: #6b4b00; }
.vuon-order .vuon-acts { margin-top: 2px; }
/* kho */
.vuon-cap { display: block; height: 10px; border-radius: 5px; background: #e3dccb; overflow: hidden; margin: 4px 0 8px; }
.vuon-cap i { display: block; height: 100%; background: #5DBB63; }
.vuon-cap i.full { background: #C8553D; }
.vuon-pr.up { color: #2E8B57; font-weight: 700; }
.vuon-pr.down { color: #9E3B2A; }
.vuon-gift { border-color: #EE6A9B; }
/* thăm vườn: trò canh chó, quà, lời nhắn */
.vuon-sneak { max-width: 380px; margin: auto; text-align: center; align-self: center; }
.vuon-snk-scene { display: flex; justify-content: center; }
.vuon-snk-scene svg { width: 120px; height: 94px; }
.vuon-track { position: relative; display: block; height: 26px; margin: 10px 4px; border-radius: 13px; background: #f6e0d8; overflow: hidden; }
.vuon-track .z { position: absolute; top: 0; bottom: 0; background: #5DBB63; border-radius: 13px; }
.vuon-track .k { position: absolute; top: -2px; bottom: -2px; width: 6px; margin-left: -3px; border-radius: 3px; background: #4A3222; }
.vuon-hai { min-width: 140px; min-height: 52px !important; font-size: 1.15rem; }
.vuon-sneak .vuon-acts { justify-content: center; }
.vuon-stickers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vuon-stickers button { min-height: 44px; padding: 6px 12px; border-radius: 16px 16px 16px 4px; border: 1.5px solid #8FD3F4; background: #eef8ff; color: #1d4f8a; font: 600 .86rem/1.25 var(--f-body); cursor: pointer; text-align: left; }
.vuon-stickers button[aria-pressed="true"] { background: #3D9BE9; color: #fff; }
.vuon-visitacts .btn { min-height: 44px; border-color: #3a6b2a; color: #23401f; }
.vuon-pill.son { background: #dcefff; color: #1d4f8a; }
.vuon-splat { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; place-items: center; animation: vu-fade 1.6s ease-out forwards; }
.vuon-splati { width: 70vw; max-width: 420px; height: auto; }
@keyframes vu-fade { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: .9; transform: scale(1); } 70% { opacity: .8; } 100% { opacity: 0; } }
/* sổ */
.vuon-quests li.done { background: #fff3c4; border-radius: 10px; padding: 6px; }
.vuon-quests li.claimed { opacity: .65; }
.vuon-medal { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #efe6cf; font-size: 1.2rem; color: #9a8a6a; }
.vuon-medal.b1, .vuon-medal.b2, .vuon-medal.b3 { background: #fff3c4; }
.vuon-week li.me { background: #eef8e4; border-radius: 10px; }
.vuon-unl { margin: 4px 0; padding-left: 1.2em; text-align: left; font-size: .9rem; }
.vuon-bigico { display: flex; justify-content: center; }
.vuon-bigico .vuon-ico { width: 110px; height: 110px; }
.vuon-lvcard.vang { background: #fff8d6; border-color: #D49A2A; }
.vuon-seeds button.mua { border-color: #EE6A9B; background: #fff0f6; }
.vuon-deco-dog .vuon-dog.vu-pop { animation: vu-pop .45s ease-out 3; }
@media (max-width: 360px) {
  .vuon-tabi { width: 22px; height: 22px; }
  .vuon-npcw .vuon-npc { width: 46px; height: 46px; }
  .vuon-chip { font-size: .76rem; padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .vu-sway, .vu-pop, .vuon-pop, .vuon-chip.hot, .vuon-order.ready, .vuon-splat { animation: none !important; }
}
.vuon-sub .btn, .vuon-sheet .vuon-sub .btn { min-height: 44px; }
@media (max-width: 360px) { .vuon-tabs { gap: 1px; padding: 2px; } .vuon-tabs button { padding: 2px 0; } }
@media (max-width: 400px) { .vuon-next .vuon-chip:nth-of-type(n+4) { display: none; } .vuon-next-h { display: none; } }
.vuon-tabs .vuon-badge { right: auto; left: calc(50% + 6px); }
.vuon-ev.vuon-hand { background: #F2C14E; }

/* ---- bản 17: nhãn mục tối thiểu 12 px (màn hẹp dùng nhãn ngắn), hướng dẫn lần đầu, mẹo ---- */
.vuon-tabs button { font-size: 12px; line-height: 1.15; }
.vuon-tabs .l-short { display: none; }
@media (max-width: 400px) { .vuon-tabs .l-full { display: none; } .vuon-tabs .l-short { display: inline; } }
#vuon-help { font-size: 1.25rem; }
.vuon-spot { position: fixed; z-index: 74; pointer-events: none; border-radius: 16px; box-shadow: 0 0 0 4px #F2C14E, 0 0 0 9999px rgba(20, 40, 15, .28); animation: vu-ring 1.6s ease-in-out infinite; }
@keyframes vu-ring { 0%, 100% { box-shadow: 0 0 0 4px #F2C14E, 0 0 0 9999px rgba(20, 40, 15, .28); } 50% { box-shadow: 0 0 0 8px rgba(242, 193, 78, .7), 0 0 0 9999px rgba(20, 40, 15, .28); } }
.vuon-coach { position: fixed; z-index: 76; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-width: 460px; margin: 0 auto; background: #FBF3E0; border: 2px solid #2E8B57; border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); color: #23401f; }
.vuon-coach.top { top: 8px; bottom: auto; }
.vuon-coach[hidden], .vuon-spot[hidden] { display: none; }
.vuon-coach-in { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; }
.vuon-coach-npc .vuon-npc { width: 56px; height: 56px; display: block; flex: none; }
.vuon-coach-b { flex: 1; min-width: 0; }
.vuon-coach-h { margin: 0; font-size: .92rem; outline: none; }
.vuon-coach-h small { color: #6b7d60; font-weight: 600; }
.vuon-coach-t { margin: 2px 0 0; font-size: .92rem; line-height: 1.35; }
.vuon-coach .vuon-acts { margin-top: 6px; }
.vuon-coach .btn { min-height: 44px; border-color: #3a6b2a; color: #23401f; }
.vuon-coach .btn.ink { background: #3a7d2c; border-color: #23401f; color: #fff; }
.vuon-tip { border-color: #D49A2A; }
.vuon-info .vuon-npc { width: 64px; height: 64px; flex: none; }
@media (prefers-reduced-motion: reduce) { .vuon-spot { animation: none !important; transition: none !important; } }
