/* ---------- Trang cá nhân ---------- */
body:not(.signed) #ca-nhan>.wrap:not(.gd-wrap),body:not(.signed) .gd-out{display:none!important}body.signed .gd-guest{display:none}
.me-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.me-id{display:flex;align-items:center;gap:18px;min-width:0}
.me-av{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#D4A24C,#8C6324);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:300;flex-shrink:0;box-shadow:0 0 0 6px rgba(184,134,47,.15)}
.me-id h2{font-size:clamp(30px,4.4vw,48px);margin-top:4px}
.me-sub{color:var(--ink-soft);font-size:14px;margin-top:4px}
.me-clan{font-style:normal;margin-left:8px;background:#B8862F;color:#fff;padding:2px 8px;border-radius:999px;letter-spacing:.04em}
.me-wallet{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px 12px 18px}
.me-wallet small{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.me-wallet b{font-size:24px;font-weight:300;font-variant-numeric:tabular-nums}
.me-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;background:var(--card);margin-bottom:26px}
.me-stats div{padding:14px 18px;border-right:1px solid var(--line)}.me-stats div:last-child{border-right:0}
.me-stats b{display:block;font-size:26px;font-weight:300;font-variant-numeric:tabular-nums}
.me-stats span{font-size:12.5px;color:var(--ink-soft)}
@media (max-width:640px){.me-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.me-stats div:nth-child(2){border-right:0}.me-stats div:nth-child(-n+2){border-bottom:1px solid var(--line)}.me-wallet{width:100%;justify-content:space-between}}
.me-tree{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
@media (max-width:900px){.me-tree{grid-template-columns:1fr}}
.tree-box{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0}
.tree-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink-soft)}
.tree-bar .btn{padding:7px 12px;font-size:12.5px}
.tree-bar .btn[hidden]{display:none}
.tree-stage{overflow:auto;padding:22px 18px;max-height:560px;background:radial-gradient(ellipse at 50% 0,#FBF3E2,transparent 70%)}
.tree-stage svg{display:block;min-width:100%;overflow:visible}
.tree-empty{padding:0 18px 18px;color:var(--ink-soft);font-size:13.5px}
.tree-empty[hidden]{display:none}
#treeSvg .tg{font-size:11px;font-weight:600;letter-spacing:.06em;fill:#9A8C78;text-transform:uppercase}
#treeSvg .tl{fill:none;stroke:#C9B48E;stroke-width:1.5}
#treeSvg .ts{stroke:#B8862F;stroke-width:1.5}
#treeSvg .tsd{fill:#B8862F}
#treeSvg .tn{cursor:pointer;outline:none}
#treeSvg .tn rect{fill:#FFFDF8;stroke:rgba(43,36,28,.2);stroke-width:1;transition:stroke .2s,fill .2s}
#treeSvg .tn.dead rect{fill:#F4E9D3;stroke:#C9A86A}
#treeSvg .tn.self rect{stroke:#2B241C;stroke-width:1.8}
#treeSvg .tn.on rect,#treeSvg .tn:focus-visible rect{stroke:#B8862F;stroke-width:2.4;fill:#FFF6E2}
#treeSvg .tn:hover rect{stroke:#B8862F}
#treeSvg .ic{fill:#B8862F}#treeSvg .tn:not(.dead) .ic{fill:#4F7A6A}
#treeSvg .n{font-size:13.5px;font-weight:500;fill:#2B241C}
#treeSvg .y{font-size:11.5px;fill:#7A6E5E}
#treeSvg .star{font-size:12px;fill:#9A3B2B}
.tree-side{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:10px}
.tree-side h3{font-size:24px;font-weight:300}
.me-y{color:var(--ink-soft);font-size:14px}
.me-dl{margin:6px 0 0;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.me-dl div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.me-dl dt{color:var(--ink-soft)}.me-dl dd{margin:0;text-align:right;font-weight:500}
.me-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.me-act .btn{padding:8px 13px;font-size:13px}
.me-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;padding-top:10px;border-top:1px dashed var(--line)}
.me-quick button{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:6px 11px;font-size:12.5px;cursor:pointer}
.me-quick button:hover{border-color:#B8862F;color:#8C6324}
.me-quick .del{color:#9A3B2B;margin-left:auto}
.me-form{display:flex;flex-direction:column;gap:10px}
.me-form label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);min-width:0}
.me-form input,.me-form select{font-size:14px;text-transform:none;letter-spacing:0;font-weight:400;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:9px 10px;min-width:0}
.me-form input:focus,.me-form select:focus{outline:none;border-color:#B8862F;box-shadow:0 0 0 3px rgba(184,134,47,.2)}
.me-form .row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.me-form .chk{flex-direction:row;align-items:center;gap:8px;align-self:end;padding-bottom:10px}
.me-form .chk input{width:18px;height:18px;accent-color:#B8862F}
.me-form .err{color:#9A3B2B;font-size:13px;min-height:1em}
.me-form .btn{justify-content:center}
.me-info{max-width:460px}
.me-lock{background:var(--card);border:1px dashed rgba(184,134,47,.5);border-radius:10px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:620px}
.me-lock b{font-size:20px;font-weight:400}.me-lock p{color:var(--ink-soft)}
.me-vhead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px}
.me-vhead h3{font-size:28px;font-weight:300}.me-vhead span{font-size:13px;color:var(--ink-soft)}
.me-vwrap{background:linear-gradient(180deg,#E3ECF0,#F8EFDD 60%,#F4E9D3);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.me-vsvg{display:block;width:100%;height:auto}
.me-vsvg .vg{fill:#B7C99A}.me-vsvg .vp{fill:#E8DCC0}
.me-vsvg .vh.l{fill:#F3EBDD;stroke:#8C7A5E;stroke-width:.8}.me-vsvg .vh.r{fill:#E2D6C1;stroke:#8C7A5E;stroke-width:.8}.me-vsvg .vh.roof{fill:#9C4A33;stroke:#6E3424;stroke-width:.8}
.me-vsvg .vt.l{fill:#EFE3CC;stroke:#7A5A3E;stroke-width:.9}.me-vsvg .vt.r{fill:#DCCBAE;stroke:#7A5A3E;stroke-width:.9}.me-vsvg .vt.roof{fill:#6E4A2E;stroke:#4A3020;stroke-width:.9}
.me-vsvg .vhg{cursor:pointer;outline:none}.me-vsvg .vhg:hover .roof,.me-vsvg .vhg:focus-visible .roof{fill:#B8862F}
.me-vsvg .vlab{font-size:12px;font-weight:600;fill:#2B241C;text-anchor:middle;paint-order:stroke;stroke:#FBF6EC;stroke-width:3px}
.me-vsvg .vlab2{font-size:10.5px;fill:#6E6253;text-anchor:middle;paint-order:stroke;stroke:#FBF6EC;stroke-width:3px}
.me-vsvg .vtl{font-size:13px}
.me-vsvg .vtr{stroke:#6B5642;stroke-width:2}.me-vsvg .vtc{fill:#7FA067}
.me-vsvg .vcloud{fill:#fff;opacity:.8;animation:vcl 40s linear infinite alternate}.me-vsvg .vcloud.c2{animation-duration:55s}
@keyframes vcl{to{transform:translateX(60px)}}
.me-houses{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.me-hc{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:6px}
.me-hc svg{width:52px;color:#B8862F}
.me-hc h4{margin:0;font-size:17px;font-weight:500}.me-hc p{font-size:13px;color:var(--ink-soft)}.me-hc .me-hg{color:#8C6324}
/* cửa hàng trong nhà 3D */
.home-shopbtn{position:absolute;right:16px;top:58px;z-index:3;border:1px solid #B8862F;background:#B8862F;color:#fff;font-weight:500;font-size:13px;padding:8px 14px;border-radius:6px;cursor:pointer}
.hshop{position:absolute;right:0;top:0;bottom:0;width:min(340px,100%);z-index:5;background:rgba(251,246,236,.97);backdrop-filter:blur(10px);border-left:1px solid var(--line);display:flex;flex-direction:column;gap:10px;padding:16px;overflow:hidden;animation:hsIn .35s var(--ease,ease)}
.hshop[hidden]{display:none}
@keyframes hsIn{from{transform:translateX(30px);opacity:0}}
.hs-head{display:flex;justify-content:space-between;align-items:center}.hs-head b{font-size:20px;font-weight:400}
.hs-x{background:none;border:0;font-size:26px;line-height:1;cursor:pointer;color:var(--ink-soft)}
.hs-to{font-size:13px;color:var(--ink-soft)}
.hs-bal{display:flex;align-items:center;gap:10px;font-size:13px}.hs-bal b{font-size:18px;font-weight:400;margin-right:auto}.hs-bal .btn{padding:6px 10px;font-size:12px}
#hsCats{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}#hsCats .chip{flex-shrink:0;font-size:12px;padding:5px 10px}
.hs-list{list-style:none;margin:0;padding:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;min-height:0}
.hs-list li{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--card)}
.hs-ic{width:40px;height:40px;border-radius:6px;background:var(--paper-2);display:grid;place-items:center}.hs-ic svg{width:26px;height:26px}
.hs-t{display:flex;flex-direction:column;min-width:0}.hs-t b{font-weight:500;font-size:13.5px}.hs-t small{font-size:11.5px;color:var(--ink-soft)}
.hs-list .btn{padding:7px 10px;font-size:12px;white-space:nowrap}
.home-stage.shop-open .home-in{right:356px}.home-stage.shop-open .home-shopbtn{display:none}
@media (max-width:640px){.home-stage.shop-open .home-in{display:none}.home-shopbtn{top:auto;bottom:56px;right:10px}.home-stage.inside .home-shopbtn{bottom:58px}}
/* nạp nén */
.topup{position:fixed;inset:0;z-index:85;display:grid;place-items:center;padding:16px}.topup[hidden]{display:none}
.tp-bg{position:absolute;inset:0;background:rgba(43,36,28,.42)}
.tp-card{position:relative;width:min(440px,100%);background:#FFFDF8;border:1px solid var(--line);border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:10px;box-shadow:0 30px 80px rgba(60,40,15,.3);animation:ppIn .25s ease-out}
.tp-card h3{font-size:28px;font-weight:300}.tp-card p{color:var(--ink-soft);font-size:14px}.tp-card small{color:var(--ink-soft);font-size:12px}
.tp-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0}
.tp-packs button{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:14px 8px;cursor:pointer;display:flex;flex-direction:column;gap:4px;align-items:center}
.tp-packs button:hover{border-color:#B8862F;background:#FFF6E2}.tp-packs b{font-size:16px;font-weight:500}.tp-packs span{font-size:12.5px;color:var(--ink-soft)}
a.nav-user{text-decoration:none}

.cv-stage{position:relative;height:clamp(420px,56vw,600px);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.cv-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.cv-time{position:absolute;right:12px;top:12px;z-index:3}
@media (max-width:640px){.cv-stage{height:420px}.cv-time span{display:none}}
/* Bảng gọn trên làng 3D */
.pp-tog{position:absolute;right:10px;top:10px;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:rgba(251,246,236,.9);display:grid;place-items:center;cursor:pointer;color:var(--ink);z-index:2}
.pp-tog svg{width:16px;height:16px;transition:transform .25s}
.park-panel:not(.min) .pp-tog svg{transform:rotate(180deg)}
@media (max-width:900px){.park-panel{position:relative;left:auto;top:auto}}
.park-panel.min{gap:10px;padding:12px 12px 12px 14px}
.park-panel.min>.eyebrow{padding-right:40px}
.park-panel.min h1{display:none}
.park-panel.min:not(:focus-within) .chips,.park-panel.min:not(:focus-within) .results{display:none}
.park-panel:focus{outline:none}
.pc-x{position:absolute;right:8px;top:6px;border:0;background:none;font-size:22px;line-height:1;color:var(--ink-soft);cursor:pointer;padding:4px 8px}
.park-card.hide{display:none!important}
.park-hint.gone{opacity:0;transition:opacity .6s}
@media (min-width:901px){
  .park-panel{position:absolute;width:min(340px,calc(100% - 2*var(--gut)))}
  .park-panel h1{font-size:clamp(28px,3vw,36px)}
  .park-panel.min{width:300px}
  .park-card{width:280px;padding:14px 16px;gap:6px}
  .park-card h3{font-size:21px;padding-right:20px}
  .park-card .btn{padding:8px 14px;font-size:13px}
  .zlabel{padding:4px 10px 5px;border-bottom-width:2px}
  .zlabel b{font-size:14px}
  .zlabel small{display:none}
  .zlabel:hover small{display:block}
  .compass{width:50px;height:50px}
  .minimap{width:112px;height:112px}
  .park-nav{left:calc(var(--gut) + 360px);transition:left .3s}
  .park:has(.park-panel.min:not(:focus-within)) .park-nav{left:var(--gut)}
}
/* Đồng hồ giờ thực có biểu tượng */
.seg.seg-time,.home-time{background:none;border:0;padding:0;backdrop-filter:none;box-shadow:none}
.rt-clock{display:inline-flex!important;align-items:center;gap:8px;padding:6px 12px 6px 8px!important;border-radius:999px!important;border:1px solid rgba(43,36,28,.12)!important;font-weight:500;font-size:13px;box-shadow:0 6px 18px rgba(20,20,40,.14);backdrop-filter:blur(10px);transition:background .6s,color .6s}
.rt-clock em{font-style:normal;display:inline!important}
.rt-t{font-weight:600;font-size:14px;letter-spacing:.02em}
.rt-p{font-size:12px;opacity:.8;padding-left:8px;border-left:1px solid currentColor;border-left-color:color-mix(in srgb,currentColor 30%,transparent)}
.rt-ic{width:22px;height:22px;flex:none;padding:3px;border-radius:50%;box-sizing:content-box}
.rt-clock[data-ph="0"]{background:linear-gradient(135deg,rgba(255,250,236,.95),rgba(252,230,182,.95))!important;color:#4A3A22}
.rt-clock[data-ph="0"] .rt-ic{color:#E0A030;background:rgba(255,214,120,.35)}
.rt-clock[data-ph="1"]{background:linear-gradient(135deg,rgba(255,226,196,.95),rgba(236,160,124,.95))!important;color:#4A2616}
.rt-clock[data-ph="1"] .rt-ic{color:#D9622E;background:rgba(255,190,140,.45)}
.rt-clock[data-ph="2"]{background:linear-gradient(135deg,rgba(30,36,66,.92),rgba(62,64,108,.92))!important;color:#F3E9D2;border-color:rgba(255,255,255,.14)!important}
.rt-clock[data-ph="2"] .rt-ic{color:#F6DFA0;background:rgba(246,223,160,.12)}
.rt-rays{transform-origin:12px 12px;animation:rtSpin 18s linear infinite}
.rt-clock[data-ph="1"] .rt-rays{transform-origin:12px 16px;animation:rtPulse 3.5s ease-in-out infinite}
.rt-star{animation:rtTw 2.4s ease-in-out infinite;transform-origin:center;transform-box:fill-box}.rt-star.s2{animation-delay:1.2s}
@keyframes rtSpin{to{transform:rotate(360deg)}}@keyframes rtPulse{50%{opacity:.45;transform:scale(.88)}}@keyframes rtTw{50%{opacity:.25;transform:scale(.6)}}
@media (prefers-reduced-motion:reduce){.rt-rays,.rt-star{animation:none}}
/* La bàn lên góc trên, cạnh Toàn cảnh / Đi dạo */
.pt-row{display:flex;align-items:center;gap:8px}
.pt-compass{display:flex;align-items:center;gap:6px}
.pt-compass .compass{width:50px;height:50px}
.pt-compass .compass-rose{width:46px;height:46px;font-size:9px}
.pt-compass .compass-rose .cn{transform:translateY(-16px)}.pt-compass .compass-rose .cs{transform:translateY(16px)}
.pt-compass .compass-rose .ce{transform:translateX(16px)}.pt-compass .compass-rose .cw{transform:translateX(-16px)}
.pt-compass .compass-rose i{height:18px;margin:-9px -2.5px;width:5px}
.pt-compass .compass-dir{padding:5px 9px}
.has-mi{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.mi{flex:none;display:block}
.mi-on .park-panel:not(.min) .pp-tog svg{transform:none}
.msheet-links a{align-items:center}
.ms-ic{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:#9A6E22;background:linear-gradient(145deg,rgba(255,248,232,.95),rgba(242,226,196,.7));border:1px solid rgba(184,134,47,.22);box-shadow:0 4px 12px rgba(120,90,40,.08)}
.msheet-links a.on .ms-ic{background:#B8862F;color:#fff;border-color:#B8862F}
