/* ===================== PHÁP VIỆN MINH ĐĂNG QUANG — TOUR 360 =====================
   Phong cách: sơn mài nâu đỏ · y vàng hoại sắc (ochre) · thếp vàng · giấy dó
   - Màn chào: bánh xe Pháp luân xoay, khói hương
   - Tên cảnh: biển hoành phi
   - Lộ trình chiêm bái: cột trái
   - Menu Pháp luân 8 nan: giữa đáy màn hình
   - Bảng nội dung: cuộn kinh (giấy dó + trục gỗ)
   ============================================================================= */
:root {
  --lac: #3b130c; --lac2: #5c1c12; --lac3: #7a2a19;
  --ochre: #c98a2e; --saffron: #de9637; --saffron2: #b76a19;
  --gold: #e8c27a; --gold2: #b8862f; --gold3: #f6e2b0;
  --cream: #f8efdc; --paper: #fbf4e6; --paper2: #f3e6cc;
  --ink: #2b1810; --jade: #4f9a7d; --red: #c84b3c;
  --glass: rgba(43, 18, 10, .62); --glass2: rgba(43, 18, 10, .84);
  --line: rgba(232, 194, 122, .28);
  --txt: #f8efdc; --mut: rgba(248, 239, 220, .7);
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Lora, Georgia, serif;
  --disp: "Cormorant Garamond", Lora, Georgia, serif;
  --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  --shadow: 0 14px 44px rgba(0, 0, 0, .4);
  --t-mut: #6b5446; --t-mut2: #977f6e; --t-line: rgba(59, 19, 12, .1);
  --fret: repeating-linear-gradient(90deg, var(--gold2) 0 6px, transparent 6px 9px, var(--gold2) 9px 11px, transparent 11px 14px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1d0b06; color: var(--txt); font: 15px/1.5 var(--sans); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { opacity: 0; pointer-events: none !important; }
.m-only { display: none !important; }
img.noimg { display: none !important; }
#pano { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: 0; }
#pano.grabbing { cursor: grabbing; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 58%, rgba(29, 8, 4, .5) 100%); transition: background 1s; }
body.zen-on #vignette { background: radial-gradient(ellipse at center, rgba(20, 6, 3, .08) 25%, rgba(10, 3, 2, .8) 100%); }

/* ---------- chung ---------- */
.ui { transition: opacity .6s, transform .6s; }
body:not(.ready) .ui { opacity: 0; pointer-events: none; }
body.ready.ui-off .ui:not(#tools):not(#plaque) { opacity: 0; pointer-events: none; }
body.zen-on .ui, body.zen-on #hotspots { opacity: 0 !important; pointer-events: none !important; }
.ibtn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative;
  background: radial-gradient(circle at 50% 35%, rgba(92, 28, 18, .9), rgba(43, 18, 10, .9)); border: 1.5px solid rgba(232, 194, 122, .55); color: var(--gold3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 230, 180, .15); transition: transform .15s, background .2s, color .2s; }
.ibtn:hover { border-color: var(--gold); color: #fff; }
.ibtn:active { transform: scale(.93); }
.ibtn.on { background: radial-gradient(circle at 50% 35%, #f6dc9c, #c99a45); color: var(--lac); border-color: #f6e2b0; }
.ibtn b { font-size: 12.5px; letter-spacing: .5px; }
.ibtn-gold { width: auto; padding: 0 16px; border-radius: 21px; background: linear-gradient(135deg, #f0cf86, #c9902f); color: var(--lac); border: 1.5px solid #f6e2b0; font-weight: 700; font-size: 13.5px; }
.ibtn-gold:hover { color: var(--lac); filter: brightness(1.06); }
.mono, .tk-code, .cp-n, .ledger em, .ev-d b, .cd b, .tc-l b, .fact b { font-variant-numeric: lining-nums tabular-nums; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 600; transition: transform .15s, filter .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--saffron2)); color: #fff; box-shadow: 0 6px 20px rgba(183, 106, 25, .35); border: 1px solid rgba(255, 220, 160, .4); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-gold { background: var(--gold); color: var(--lac); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13.5px; }
.btn-block { width: 100%; }
.mini { display: inline-flex; vertical-align: middle; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; background: rgba(59, 19, 12, .07); margin-left: 4px; }
.mini .i { width: 14px; height: 14px; }

/* ---------- Màn chào ---------- */
#loader { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(43, 14, 8, .35), rgba(20, 6, 3, .82) 80%); transition: opacity 1.2s, visibility 1.2s; }
#loader.out { opacity: 0; visibility: hidden; }
.ld-wheel { position: absolute; left: 50%; top: 50%; width: min(118vmin, 980px); height: min(118vmin, 980px); margin: calc(min(118vmin, 980px) / -2) 0 0 calc(min(118vmin, 980px) / -2);
  stroke: rgba(232, 194, 122, .2); fill: none; animation: spin 120s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ld-smoke { position: absolute; left: 50%; bottom: -10%; width: 260px; height: 70%; margin-left: -130px; pointer-events: none; opacity: .5; }
.ld-smoke i { position: absolute; bottom: 0; left: 50%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(248, 239, 220, .16), transparent 70%); filter: blur(8px); animation: smoke 9s ease-in infinite; }
.ld-smoke i:nth-child(2) { animation-delay: 3s; margin-left: -20px; }
.ld-smoke i:nth-child(3) { animation-delay: 6s; margin-left: -100px; }
@keyframes smoke { 0% { transform: translateY(0) scale(.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(30px, -110vh) scale(3); opacity: 0; } }
.ld-inner { position: relative; isolation: isolate; text-align: center; max-width: 480px; width: 100%; animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.ld-inner::before { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(29, 8, 4, .9) 0, rgba(29, 8, 4, .78) 34%, rgba(29, 8, 4, .4) 55%, transparent 70%); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.ld-namo { font: italic 600 15px var(--disp); letter-spacing: 1.5px; color: var(--gold); opacity: .85; margin-bottom: 16px; }
.ld-logo { width: 84px; height: 84px; filter: drop-shadow(0 6px 22px rgba(232, 194, 122, .35)); }
.ld-kind { font-weight: 600; letter-spacing: 8px; font-size: 12.5px; color: var(--gold); margin-top: 12px; text-transform: uppercase; }
.ld-name { font: 700 clamp(44px, 9vw, 66px)/1 var(--disp); margin: 4px 0 0; color: #fff4dc; text-shadow: 0 4px 30px rgba(232, 194, 122, .35); }
.ld-han { font: 500 17px var(--serif); letter-spacing: 12px; color: var(--gold); margin-top: 10px; opacity: .8; }
.ld-orn { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); margin: 14px 0 6px; }
.ld-orn span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ld-orn span:last-child { transform: scaleX(-1); }
.ld-tag { font: italic 600 21px var(--disp); color: var(--cream); margin: 4px 0 2px; }
.ld-lineage { font-size: 12.5px; color: var(--mut); letter-spacing: .5px; margin: 0 0 22px; }
.ld-start { position: relative; width: 104px; height: 104px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(circle at 50% 38%, #eaa548, #a8560f 75%); box-shadow: 0 0 0 7px rgba(232, 194, 122, .12), 0 10px 40px rgba(222, 150, 55, .45); transition: transform .3s, filter .3s; }
.ld-start:not(:disabled) { animation: breathe 3.2s ease-in-out infinite; }
.ld-start:not(:disabled):hover { transform: scale(1.06); filter: brightness(1.08); }
.ld-start:disabled { filter: saturate(.4) brightness(.7); cursor: default; }
@keyframes breathe { 50% { box-shadow: 0 0 0 16px rgba(232, 194, 122, .06), 0 10px 50px rgba(222, 150, 55, .6); } }
.ld-lotus { width: 46px; height: 46px; stroke-width: 1.5; }
.ld-ring { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); transform: rotate(-90deg); }
.ld-ring circle { fill: none; stroke: rgba(232, 194, 122, .18); stroke-width: 3; }
.ld-ring .prog { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .4s; }
.ld-cta { font: 700 20px var(--disp); letter-spacing: 1px; margin-top: 16px; color: var(--gold3); }
.ld-hint { font-size: 12.5px; color: var(--mut); margin: 6px 0 8px; }
.ld-lang { display: flex; justify-content: center; gap: 6px; }
.ld-lang button { font-size: 13px; padding: 6px 12px; border-radius: 10px; color: var(--mut); }
.ld-lang button.on { background: rgba(232, 194, 122, .14); color: var(--txt); }

/* công tắc thuyết minh ở màn chào */
.ld-vs { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 320px; margin: -6px auto 24px; padding: 10px 12px 10px 14px; border-radius: 14px; color: var(--txt); text-align: left; background: rgba(59, 19, 12, .45); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; }
.ld-vs:hover { background: rgba(92, 28, 18, .55); }
.ld-vs:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ld-vs > .i { width: 22px; height: 22px; color: var(--mut); transition: color .2s; }
.ld-vs.on > .i { color: var(--gold); }
.ld-vs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.ld-vs-t b { font-size: 14px; font-weight: 600; }
.ld-vs-t small { font-size: 11.5px; color: var(--mut); }
.ld-vs-sw { display: flex; align-items: center; gap: 8px; flex: none; }
.ld-vs-sw em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--mut); min-width: 28px; text-align: right; }
.ld-vs-sw i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: rgba(248, 239, 220, .2); transition: background .2s; }
.ld-vs-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.ld-vs.on .ld-vs-sw i { background: var(--gold); }
.ld-vs.on .ld-vs-sw i::after { transform: translateX(16px); }
.ld-vs.on .ld-vs-sw em { color: var(--gold); }
/* màn hình thấp (laptop 640–760px, iPhone SE): thu gọn màn chào để công tắc thuyết minh không đẩy nút chọn ngôn ngữ chồng lên chân trang */
@media (max-height: 820px) {
  .ld-namo { margin-bottom: 8px; }
  .ld-logo { width: 60px; height: 60px; }
  .ld-kind { margin-top: 8px; }
  .ld-name { font-size: clamp(40px, 8vw, 54px); }
  .ld-han { margin-top: 6px; }
  .ld-orn { margin: 8px 0 4px; }
  .ld-lineage { margin-bottom: 14px; }
  .ld-vs { padding: 8px 12px; margin-bottom: 18px; }
  .ld-vs-t small { display: none; }
  .ld-start { width: 88px; height: 88px; }
  .ld-lotus { width: 40px; height: 40px; }
  .ld-cta { margin-top: 12px; font-size: 18px; }
}
@media (max-height: 660px) { .ld-namo, .ld-han { display: none; } }
/* điện thoại xoay ngang: chỉ giữ tên, công tắc thuyết minh, nút vào và ngôn ngữ */
@media (max-height: 500px) {
  .ld-namo, .ld-logo, .ld-kind, .ld-han, .ld-orn, .ld-tag, .ld-lineage, .ld-hint { display: none; }
  .ld-name { font-size: 36px; margin-bottom: 12px; }
  .ld-vs { margin-bottom: 14px; }
  .ld-start { width: 72px; height: 72px; }
  .ld-lotus { width: 32px; height: 32px; }
  .ld-cta { margin: 8px 0 6px; font-size: 16px; }
}
.ld-maker { position: absolute; bottom: calc(16px + var(--sb)); left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--mut); text-decoration: none; }
.ld-maker b { color: var(--gold); }

/* ---------- Thương hiệu ---------- */
#brand { position: fixed; top: calc(12px + var(--st)); left: 14px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 40px; text-align: left;
  background: linear-gradient(180deg, rgba(59, 19, 12, .82), rgba(43, 18, 10, .72)); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 22px rgba(0, 0, 0, .3); max-width: calc(100vw - 200px); }
#brand img { width: 44px; height: 44px; flex: none; }
.br-txt { min-width: 0; display: flex; flex-direction: column; }
.br-txt small { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; line-height: 1.2; }
.br-txt b { font: 700 19px/1.1 var(--disp); color: #fff4dc; white-space: nowrap; }
.br-txt em { font-style: normal; display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--mut); white-space: nowrap; overflow: hidden; }
.lunar-chip { padding: 0 7px; border-radius: 7px; background: rgba(232, 194, 122, .18); color: var(--gold); font-weight: 600; font-size: 11px; }
.open-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); margin-right: 5px; box-shadow: 0 0 0 3px rgba(79, 154, 125, .25); }
.open-status.closed::before { background: var(--red); box-shadow: 0 0 0 3px rgba(200, 75, 60, .25); }
#lotusBtn { position: fixed; top: calc(76px + var(--st)); left: 22px; z-index: 18; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border-radius: 15px; font-size: 12.5px; font-weight: 700;
  background: rgba(43, 18, 10, .7); border: 1px solid rgba(247, 184, 200, .35); color: #f8c3d0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#lotusBtn .i { width: 17px; height: 17px; }
#lotusBtn.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- Biển hoành phi ---------- */
#plaque { position: fixed; top: calc(12px + var(--st)); left: 50%; transform: translateX(-50%); z-index: 19; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.pq-board { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 9px 30px 10px; min-width: 240px; justify-content: center;
  background: linear-gradient(180deg, #6e2416, #3d120b); border: 2px solid var(--gold2); border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(43, 18, 10, .7), 0 0 0 5px rgba(232, 194, 122, .5), 0 10px 28px rgba(0, 0, 0, .45), inset 0 0 18px rgba(0, 0, 0, .4); }
.pq-board::before, .pq-board::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 2px solid var(--gold); border-radius: 50% 0 50% 0; transform: rotate(45deg); background: var(--lac2); }
.pq-board::before { left: -10px; } .pq-board::after { right: -10px; }
.pq-no { font: 600 11px var(--sans); letter-spacing: 1px; color: var(--lac); background: var(--gold); border-radius: 10px; padding: 1px 7px; }
.pq-board b { font: 700 25px/1.15 var(--disp); color: var(--gold3); letter-spacing: .5px; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); white-space: nowrap; }
#plaque small { display: inline-block; margin-top: 9px; font-size: 12.5px; color: var(--cream); padding: 2px 12px; border-radius: 10px; background: rgba(43, 18, 10, .55); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
#plaque.flip .pq-board { animation: flip .8s cubic-bezier(.2, .8, .2, 1); }
@keyframes flip { 0% { transform: rotateX(80deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Công cụ ---------- */
#tools { position: fixed; top: calc(14px + var(--st)); right: 14px; z-index: 20; display: flex; gap: 7px; align-items: center; }

/* ---------- Lộ trình chiêm bái ---------- */
#path { position: fixed; left: 14px; top: 50%; transform: translateY(-46%); z-index: 17; width: 64px; padding: 12px 0 10px; border-radius: 34px;
  background: linear-gradient(180deg, rgba(59, 19, 12, .72), rgba(43, 18, 10, .62)); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: width .35s cubic-bezier(.2, .8, .2, 1), opacity .6s; overflow: hidden; }
#path:hover, #path.open { width: 268px; }
.path-h { display: flex; align-items: center; gap: 8px; padding: 0 0 8px 21px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.path-h .i { width: 20px; height: 20px; flex: none; }
.path-h span { opacity: 0; transition: opacity .25s; }
#path:hover .path-h span, #path.open .path-h span { opacity: 1; }
.path-list { position: relative; display: flex; flex-direction: column; gap: 4px; max-height: min(60vh, 560px); overflow-y: auto; scrollbar-width: none; }
.path-list::-webkit-scrollbar { display: none; }
.path-list::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--gold2), rgba(184, 134, 47, .2)); }
.pnode { position: relative; display: flex; align-items: center; gap: 12px; padding: 3px 10px 3px 9px; text-align: left; white-space: nowrap; }
.pn-thumb { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; padding: 2px; background: rgba(232, 194, 122, .35); transition: background .3s, transform .3s; }
.pn-thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; filter: saturate(.75) brightness(.85); transition: filter .3s; }
.pn-num { position: absolute; left: 4px; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--lac); border: 1px solid var(--gold); color: var(--gold3); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pn-txt { display: flex; flex-direction: column; min-width: 0; opacity: 0; transition: opacity .25s; }
#path:hover .pn-txt, #path.open .pn-txt { opacity: 1; }
.pn-txt b { font: 700 16px/1.1 var(--disp); color: var(--cream); }
.pn-txt small { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pnode:hover .pn-thumb { transform: scale(1.06); }
.pnode:hover .pn-thumb img, .pnode.on .pn-thumb img { filter: none; }
.pnode.on .pn-thumb { background: conic-gradient(from 0deg, #f6e2b0, #de9637, #f6e2b0, #de9637, #f6e2b0); }
.pnode.on .pn-num { background: var(--saffron); color: #fff; border-color: #fff4dc; }
.pnode.on .pn-txt b { color: var(--gold3); }
.pnode.seen:not(.on) .pn-num::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); }

/* ---------- Thanh Pháp luân ---------- */
#wheelbar { position: fixed; left: 50%; bottom: calc(30px + var(--sb)); transform: translateX(-50%); z-index: 21; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 13px; border-radius: 22px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(180deg, rgba(92, 28, 18, .88), rgba(43, 18, 10, .88)); border: 1px solid rgba(232, 194, 122, .45); color: var(--cream); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .15s, border-color .2s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill .i { color: var(--gold); }
.pill:hover { border-color: var(--gold); }
.pill:active { transform: scale(.96); }
.pill-hl { background: linear-gradient(180deg, #e8a548, #a8560f); border-color: #f6d59a; color: #fff; }
.pill-hl .i { color: #fff; }
#wheelBtn { position: relative; width: 82px; height: 82px; margin: 0 4px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #7a2a19, #2b1208 80%); border: 2px solid var(--gold); color: var(--gold3);
  box-shadow: 0 0 0 5px rgba(43, 18, 10, .55), 0 0 0 6px rgba(232, 194, 122, .35), 0 10px 30px rgba(0, 0, 0, .5); transition: transform .2s; }
#wheelBtn:hover { transform: scale(1.05); }
#wheelBtn .wb-wheel { width: 48px; height: 48px; stroke: var(--gold); fill: none; animation: spin 30s linear infinite; }
#wheelBtn span { position: absolute; bottom: -22px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); white-space: nowrap; }
#wheelBtn::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(232, 194, 122, .5); animation: ripple 3s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- Menu Pháp luân ---------- */
#wheelmenu { position: fixed; inset: 0; z-index: 46; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.wm-back { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(43, 18, 10, .55), rgba(20, 6, 3, .82)); opacity: 0; transition: opacity .4s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.wm-disc { --R: 150px; position: relative; width: 400px; height: 400px; transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform .55s cubic-bezier(.2, .9, .25, 1.1), opacity .35s; }
#wheelmenu.open { pointer-events: auto; }
#wheelmenu.open .wm-back { opacity: 1; }
#wheelmenu.open .wm-disc { transform: none; opacity: 1; }
.wm-rim { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-rim circle { fill: none; }
.wm-rim .r1 { stroke: rgba(232, 194, 122, .65); stroke-width: 2; fill: rgba(43, 18, 10, .35); }
.wm-rim .r2 { stroke: rgba(232, 194, 122, .25); stroke-width: 1; stroke-dasharray: 2 6; }
.wm-rim .r3 { stroke: var(--gold); stroke-width: 2; }
.wm-rim .spokes path { stroke: rgba(232, 194, 122, .35); stroke-width: 2; }
.wm-items { position: absolute; inset: 0; }
.wm-item { position: absolute; left: 50%; top: 50%; width: 92px; margin: -36px 0 0 -46px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--R))) rotate(calc(-1 * var(--a))); opacity: 0; transition: opacity .3s calc(var(--i) * 35ms + 120ms); }
#wheelmenu.open .wm-item { opacity: 1; }
.wm-item .wm-ic { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #fff4dc, #e9c784 75%); color: var(--lac); border: 2px solid #fff4dc; box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 4px rgba(232, 194, 122, .25); transition: transform .2s; }
.wm-item .wm-ic .i { width: 26px; height: 26px; }
.wm-item b { font-size: 12px; font-weight: 700; color: var(--cream); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); text-align: center; line-height: 1.2; }
.wm-item:hover .wm-ic { transform: scale(1.1); }
.wm-item.hl .wm-ic { background: radial-gradient(circle at 50% 35%, #f3b45e, #b0611a 80%); color: #fff; }
.wm-hub { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 50% 35%, #7a2a19, #2b1208 85%); border: 2px solid var(--gold); color: var(--gold3); }
.wm-hub small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.wm-cap { position: relative; margin-top: 10px; font: italic 600 18px var(--disp); color: var(--gold3); opacity: 0; transition: opacity .5s .2s; text-align: center; padding: 0 20px; }
#wheelmenu.open .wm-cap { opacity: .9; }

/* ---------- chú thích tham quan tự động ---------- */
#caption { position: fixed; left: 50%; bottom: calc(146px + var(--sb)); transform: translate(-50%, 10px); z-index: 19; padding: 12px 26px 10px; border-radius: 4px; max-width: min(640px, calc(100vw - 32px));
  background: linear-gradient(180deg, #6e2416, #3d120b); border: 1.5px solid var(--gold2); box-shadow: 0 0 0 3px rgba(43, 18, 10, .6), var(--shadow);
  font: 600 22px/1.3 var(--disp); color: var(--gold3); text-align: center; opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; }
#caption.show { opacity: 1; transform: translate(-50%, 0); }
#caption .cap-bar { display: block; height: 2px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
#caption .cap-bar i { display: block; height: 100%; background: var(--gold); width: 0; }

/* ---------- Sơ đồ (giấy cổ) ---------- */
#minimap { position: fixed; right: 70px; bottom: calc(18px + var(--sb)); z-index: 17; width: 270px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #fbf3e0, #ecdab5 90%); border: 1.5px solid var(--gold2); box-shadow: 0 0 0 3px rgba(43, 18, 10, .55), var(--shadow); color: var(--ink); }
#minimap.closed { opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 12px; font: 700 16px var(--disp); color: var(--lac2); }
.mm-x .i { width: 16px; height: 16px; }
.mm-body svg { display: block; width: 100%; height: auto; }
.mm-pt { cursor: pointer; }
.mm-pt circle.c { fill: #fff8e8; stroke: var(--lac2); stroke-width: 2; transition: r .2s; }
.mm-pt.on circle.c { fill: var(--saffron); stroke: var(--lac); }
.mm-pt text { font: 600 10.5px var(--sans); fill: var(--lac); paint-order: stroke; stroke: #f7ebcf; stroke-width: 3px; }
.mm-pt:hover circle.c { r: 8; }

#viewctl { position: fixed; right: 14px; bottom: calc(18px + var(--sb)); z-index: 17; display: flex; flex-direction: column; gap: 8px; }
#maker { position: fixed; left: 18px; bottom: calc(20px + var(--sb)); font-size: 11.5px; text-shadow: 0 1px 6px rgba(0,0,0,.7); color: rgba(248, 239, 220, .6); text-decoration: none; z-index: 16; display: none; }
#maker b { color: var(--gold); }

/* ---------- Hotspots ---------- */
#hotspots { position: fixed; inset: 0; pointer-events: none; z-index: 10; transition: opacity .6s; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; cursor: pointer; }
.hs-in { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.hs-lbl { margin-top: 9px; padding: 4px 12px; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--gold3);
  background: linear-gradient(180deg, rgba(92, 28, 18, .92), rgba(43, 18, 10, .92)); border: 1px solid rgba(232, 194, 122, .55); opacity: 0; transform: translateY(-4px); transition: .25s; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.hs:hover .hs-lbl, .hs.lbl-on .hs-lbl { opacity: 1; transform: none; }
.hs-dot { position: relative; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 32%, #fff4dc, #e3b866 78%); color: var(--lac); border: 1.5px solid #fff4dc; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); transition: transform .25s; }
.hs-dot::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(246, 226, 176, .75); animation: pulse 2.6s infinite; }
.hs:hover .hs-dot { transform: scale(1.14); }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.55); opacity: 0; } }
/* bước sen: điều hướng */
.hs-nav .hs-dot { width: 60px; height: 60px; background: radial-gradient(circle at 50% 40%, rgba(222, 150, 55, .45), rgba(43, 18, 10, .55) 70%); color: #fff4dc; border: 2px solid rgba(246, 226, 176, .95); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.hs-nav .hs-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(246, 226, 176, .6); animation: spin 14s linear infinite; }
.hs-nav .hs-dot .i { width: 28px; height: 28px; stroke-width: 2.4; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.hs-nav .hs-lbl { opacity: 1; transform: none; display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 20px; font-size: 13px; }
.hs-nav .hs-lbl img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.hs-nav:hover .hs-dot { background: radial-gradient(circle at 50% 40%, #eaa548, #a8560f); }
/* hào quang: tượng */
.hs-statue .hs-dot { width: 46px; height: 46px; background: radial-gradient(circle at 50% 35%, #fff1c9, #d9a446 80%); }
.hs-statue .hs-dot::before { inset: -8px; border: 2px dotted rgba(246, 226, 176, .95); animation: spin 10s linear infinite; }
.hs-statue .hs-dot::after { content: ""; position: absolute; inset: -15px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 210, 130, .35), transparent 70%); animation: glowp 3s ease-in-out infinite; }
@keyframes glowp { 50% { opacity: .4; } }
.hs-statue .hs-dot .i { width: 24px; height: 24px; }
.hs-offer .hs-dot, .hs-donate .hs-dot { background: radial-gradient(circle at 50% 35%, #f3b45e, #a8560f 85%); color: #fff; border-color: #f6d59a; }
.hs-offer .hs-dot::before, .hs-donate .hs-dot::before { border-color: rgba(243, 180, 94, .85); }
.hs-offer .hs-lbl, .hs-donate .hs-lbl, .hs-register .hs-lbl { opacity: 1; transform: none; }
.hs-register .hs-dot, .hs-events .hs-dot { background: radial-gradient(circle at 50% 35%, #7a2a19, #3b130c 85%); color: var(--gold3); border-color: var(--gold); }
.hs-meditate .hs-dot, .hs-library .hs-dot { background: radial-gradient(circle at 50% 35%, #6fb79a, #2f6b58 85%); color: #fff; border-color: #cfe9de; }
.hs-meditate .hs-dot::before, .hs-library .hs-dot::before { border-color: rgba(111, 183, 154, .8); }
.hs-lotus .hs-dot { width: 28px; height: 28px; background: transparent; box-shadow: none; border: 0; color: #ffc2d1; opacity: .5; transition: opacity .3s, transform .3s; }
.hs-lotus .hs-dot::before { display: none; }
.hs-lotus .hs-dot .i { width: 28px; height: 28px; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(255, 190, 210, .95)); animation: wob 3.2s ease-in-out infinite; }
.hs-lotus:hover .hs-dot { opacity: 1; transform: scale(1.4); }
.hs-lotus.found { display: none !important; }
@keyframes wob { 50% { transform: rotate(10deg) scale(1.08); } }
.hs.edit-pin .hs-dot { background: #ff3d7f; color: #fff; width: 14px; height: 14px; }

/* ---------- Cuộn kinh (sheet) ---------- */
#sheet { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 6, 3, .4); opacity: 0; transition: opacity .35s; }
.sheet-card { position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(460px, calc(100vw - 28px)); display: flex; flex-direction: column; color: var(--ink);
  background: radial-gradient(ellipse at 20% 0%, #fffaf0, var(--paper) 40%, #f3e5c8 100%); border-radius: 6px; box-shadow: var(--shadow), 0 0 0 1px rgba(184, 134, 47, .5);
  transform: translateX(calc(100% + 30px)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sheet-card::before { content: ""; position: absolute; inset: 22px 10px; border: 1px solid rgba(184, 134, 47, .35); border-radius: 3px; pointer-events: none; }
#sheet.open { pointer-events: auto; }
#sheet.open .sheet-backdrop { opacity: 1; }
#sheet.open .sheet-card { transform: none; }
.sheet-rod { position: relative; z-index: 4; height: 16px; margin: 0 -10px; border-radius: 8px; background: linear-gradient(180deg, #8a4a24, #4a210f 55%, #6b3417); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); flex: none; }
.sheet-rod::before, .sheet-rod::after { content: ""; position: absolute; top: -3px; width: 16px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, #f6dc9c, #b8862f); }
.sheet-rod::before { left: -6px; } .sheet-rod::after { right: -6px; }
.sheet-rod.top { margin-top: -8px; } .sheet-rod.bot { margin-bottom: -8px; }
.sheet-grab { display: none; }
.sheet-x { position: absolute; top: 22px; right: 18px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(59, 19, 12, .08); border: 1px solid rgba(184, 134, 47, .45); }
.sheet-x:hover { background: rgba(59, 19, 12, .14); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; z-index: 1; }
.sh-pad { padding: 22px 26px 26px; }
.sh-h { font: 700 30px/1.1 var(--disp); margin: 4px 46px 6px 0; color: var(--lac2); }
.sh-h::after { content: ""; display: block; width: 120px; height: 9px; margin-top: 8px; background: var(--fret); opacity: .6; }
.sh-h .han { display: inline-block; white-space: nowrap; font: 500 14px var(--sans); color: var(--gold2); letter-spacing: 1px; margin-left: 4px; }
.sh-p { color: var(--t-mut); margin: 0 0 14px; font-size: 14.5px; }
.sh-p b { color: var(--ink); }
.sh-sec { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lac3); margin: 24px 0 10px; }
.sh-sec::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold2); flex: none; }
.sh-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(184, 134, 47, .5), transparent); }
.sh-hero { position: relative; height: 210px; background: #8a6a50 center/cover; }
.sh-hero-sm { height: 150px; }
.sh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, var(--paper)); }
.sh-foot { position: sticky; bottom: 0; padding: 12px 18px calc(14px + var(--sb)); background: linear-gradient(rgba(251, 244, 230, 0), var(--paper) 35%); z-index: 2; }
.sheet-body .btn-ghost, .pop-card .btn-ghost { background: rgba(59, 19, 12, .06); border-color: rgba(184, 134, 47, .4); color: var(--ink); }
.sheet-body .btn-ghost:hover, .pop-card .btn-ghost:hover { background: rgba(59, 19, 12, .11); }
.note { font-size: 12.5px; color: var(--t-mut2); background: rgba(59, 19, 12, .045); border-left: 3px solid rgba(184, 134, 47, .6); border-radius: 4px; padding: 10px 12px; margin-top: 14px; }
.demo-flag { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; font-weight: 600; color: #8a2a19; background: rgba(200, 75, 60, .09); border: 1px dashed rgba(200, 75, 60, .55); border-radius: 8px; padding: 9px 12px; margin: 0 0 14px; }
.demo-flag .i { width: 17px; height: 17px; margin-top: 1px; }
.ai-tag { position: relative; display: block; }
.ai-tag::after { content: attr(data-t); position: absolute; right: 6px; bottom: 6px; font-size: 10px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .5); padding: 1px 6px; border-radius: 6px; }

/* tabs & chips */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab, .chip { flex: none; padding: 8px 14px; border-radius: 20px; font-size: 13.5px; font-weight: 600; background: rgba(59, 19, 12, .06); color: #4d3a33; border: 1px solid transparent; transition: .2s; text-align: left; }
.tab.on, .chip.on { background: var(--lac2); color: var(--gold3); border-color: var(--gold2); }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }
.chip .i { width: 15px; height: 15px; vertical-align: -3px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--t-mut); margin-top: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lac2); flex: none; }

/* form */
.field { margin-top: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--t-mut); margin-bottom: 6px; }
.field input, .field textarea, .row-name input { width: 100%; height: 46px; border-radius: 10px; border: 1.5px solid rgba(184, 134, 47, .35); padding: 0 14px; font: inherit; color: var(--ink); background: #fffdf8; outline: 0; transition: border-color .2s; }
.field input:disabled { background: rgba(59, 19, 12, .04); color: var(--t-mut2); }
.field textarea { height: 84px; padding: 10px 14px; resize: none; }
.field input:focus, .field textarea:focus, .row-name input:focus { border-color: var(--saffron); }
.field input.err, .row-name input.err { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-name { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.row-name input:nth-child(2) { width: 96px; flex: none; }
.row-name .mini { width: 34px; height: 34px; flex: none; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1.5px solid rgba(184, 134, 47, .35); padding: 0 12px; font: 13px var(--sans); color: var(--ink); background: #fffdf8; }
.field .linkbox input { height: 46px; font-size: 15px; }

/* dâng hương */
.offer-count { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; background: rgba(222, 150, 55, .12); color: var(--saffron2); font-size: 13.5px; }
.offer-count b { font-size: 15px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mode { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: rgba(59, 19, 12, .05); border: 1.5px solid transparent; font-size: 13.5px; font-weight: 600; color: #4d3a33; transition: .2s; }
.mode .i { width: 30px; height: 30px; stroke-width: 1.5; color: var(--saffron2); }
.mode.on { background: rgba(222, 150, 55, .12); border-color: var(--saffron); color: var(--ink); }
.wall { display: grid; gap: 10px; }
.wish { padding: 12px 14px; border-radius: 10px; background: #fffdf8; box-shadow: 0 2px 10px rgba(59, 19, 12, .06); border-left: 3px solid var(--gold2); }
.wish.mine { background: #fff4df; border-left-color: var(--saffron); }
.w-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; flex-wrap: wrap; }
.w-h .i { width: 17px; height: 17px; color: var(--saffron2); }
.wish p { margin: 6px 0 0; font: italic 500 15px/1.5 var(--serif); color: #4d3a33; }
.wtag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: rgba(92, 28, 18, .08); color: var(--lac2); }
.you { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: var(--gold); color: var(--lac); }

/* công đức */
.camp { border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, var(--lac2), var(--lac)); color: var(--cream); padding-bottom: 14px; border: 1px solid var(--gold2); }
.camp img { width: 100%; height: 120px; object-fit: cover; display: block; }
.cp-b { padding: 12px 16px 4px; }
.cp-b small { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); }
.cp-b b { display: block; font: 700 21px/1.2 var(--disp); margin: 2px 0 4px; color: var(--gold3); }
.cp-b span { font-size: 13px; color: var(--mut); }
.cp-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); margin: 12px 16px 8px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--saffron)); }
.cp-n { display: flex; align-items: baseline; gap: 6px; padding: 0 16px; font-size: 13px; color: var(--mut); }
.cp-n b { font-size: 17px; color: var(--gold); }
.cp-n em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--cream); }
.cp-m { display: flex; align-items: center; gap: 5px; padding: 6px 16px 0; font-size: 12.5px; color: var(--mut); }
.cp-m .i { width: 15px; height: 15px; }
.qrcard { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 16px; border-radius: 12px; background: #fffdf8; box-shadow: 0 4px 20px rgba(59, 19, 12, .1); border: 1.5px solid rgba(184, 134, 47, .55); }
.qr-l { text-align: center; flex: none; }
.qr-l small { display: block; font-size: 11px; color: var(--t-mut2); margin-top: 6px; font-weight: 600; }
.qr-box { position: relative; width: 132px; height: 132px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid rgba(59, 19, 12, .1); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box.demo svg { opacity: .3; }
.qr-box span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: 4px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.qr-r { flex: 1; min-width: 0; }
.qr-r .kv b { font-size: 14px; margin-bottom: 4px; word-break: break-word; }
.qr-r .kv .memo { font-size: 12px; }
.ledger { display: grid; gap: 2px; }
.lg { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--t-line); }
.lg.mine { background: #fff4df; border-radius: 8px; padding: 9px 10px; border: 0; }
.lg-i { width: 32px; height: 32px; border-radius: 50%; background: rgba(222, 150, 55, .12); color: var(--saffron2); display: flex; align-items: center; justify-content: center; flex: none; }
.lg-i .i { width: 18px; height: 18px; }
.lg div { flex: 1; min-width: 0; }
.lg b { display: block; font-size: 14px; }
.lg small { color: var(--t-mut2); font-size: 12px; }
.lg em { font-style: normal; font-weight: 700; color: var(--lac2); font-size: 14px; }

/* lịch */
.today-card { display: flex; gap: 14px; align-items: stretch; padding: 14px; border-radius: 10px; background: linear-gradient(160deg, var(--lac2), var(--lac)); color: var(--cream); margin-top: 6px; border: 1px solid var(--gold2); }
.tc-l { width: 92px; flex: none; text-align: center; border-right: 1px dashed rgba(248, 239, 220, .25); padding-right: 12px; }
.tc-l small { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); }
.tc-l b { display: block; font: 700 52px/1 var(--disp); color: var(--gold3); margin: 2px 0 0; }
.tc-l span { font-size: 12.5px; color: var(--mut); }
.tc-r { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.tc-r > b { font-size: 15px; }
.tc-r > span { font-size: 12.5px; color: var(--mut); }
.tc-next { margin-top: 8px; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(232, 194, 122, .15); display: flex; align-items: center; gap: 6px; }
.tc-next .i { width: 16px; height: 16px; color: var(--gold); }
.tc-next b { color: var(--gold); }
.cal { margin-top: 14px; padding: 12px; border-radius: 10px; background: #fffdf8; box-shadow: 0 2px 12px rgba(59, 19, 12, .07); border: 1px solid rgba(184, 134, 47, .35); }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h b { font: 700 19px var(--disp); color: var(--lac2); }
.cal-h button { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(59, 19, 12, .05); }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cw { text-align: center; font-size: 11px; font-weight: 700; color: var(--t-mut2); padding: 2px 0 4px; }
.cd { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 44px; border-radius: 8px; position: relative; }
.cd b { font-size: 14px; font-weight: 600; line-height: 1.1; }
.cd small { font-size: 10px; color: var(--t-mut2); line-height: 1.1; }
.cd.sun b { color: var(--red); }
.cd.moon { background: rgba(232, 194, 122, .25); }
.cd.moon small { color: var(--saffron2); font-weight: 700; }
.cd.fest { background: var(--lac2); }
.cd.fest b, .cd.fest small { color: var(--cream); }
.cd.today { box-shadow: inset 0 0 0 2px var(--saffron); }
.cal-k { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--t-mut); margin-top: 8px; }
.cal-k i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.k-moon { background: rgba(232, 194, 122, .5); } .k-fest { background: var(--lac2); } .k-today { box-shadow: inset 0 0 0 2px var(--saffron); }
.ev { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--t-line); }
.ev-d { width: 54px; flex: none; height: 64px; border-radius: 8px; background: rgba(59, 19, 12, .06); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(184, 134, 47, .3); }
.ev.major .ev-d { background: var(--lac2); color: var(--cream); border-color: var(--gold2); }
.ev-d b { font: 700 24px/1 var(--disp); }
.ev-d small { font-size: 11px; font-weight: 600; opacity: .8; }
.ev-d em { font-style: normal; font-size: 10.5px; opacity: .7; }
.ev-ic .i { width: 24px; height: 24px; color: var(--lac2); }
.ev-b { flex: 1; min-width: 0; }
.ev-b > b { display: block; font-size: 15px; line-height: 1.35; }
.ev-b > small { color: var(--t-mut2); font-size: 12.5px; }
.ev-b .cnt { color: var(--saffron2); font-weight: 700; }
.ev-b .ai-tag { margin-top: 8px; }
.ev-b img { width: 100%; aspect-ratio: 2.2; object-fit: cover; border-radius: 8px; display: block; }
.ev-b p { margin: 6px 0 0; font-size: 13.5px; color: var(--t-mut); }
.ev-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ev-a:empty { display: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--t-line); }
.hours td:first-child { font-weight: 700; color: var(--lac2); width: 64px; }

/* phiếu */
.ticket { position: relative; border-radius: 10px; background: linear-gradient(150deg, var(--lac2), var(--lac)); color: var(--cream); padding: 22px; overflow: hidden; margin-top: 10px; border: 1px solid var(--gold2); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 64%; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); }
.ticket::before { left: -13px; } .ticket::after { right: -13px; }
.ticket .tk-code { font: 700 32px var(--disp); letter-spacing: 2px; color: var(--gold3); }
.ticket .tk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 14px 0 18px; font-size: 13.5px; }
.ticket .tk-row small { display: block; color: var(--mut); font-size: 11.5px; }
.ticket .tk-cut { border-top: 2px dashed rgba(248, 239, 220, .25); margin: 0 -22px 16px; }
.ticket .tk-qr { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--mut); }
.ticket .tk-qr svg, .qrbox svg { width: 96px; height: 96px; background: #fff; border-radius: 8px; padding: 6px; flex: none; }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; margin: 10px auto 6px; background: rgba(79, 154, 125, .14); color: var(--jade); display: flex; align-items: center; justify-content: center; }
.ok-ico .i { width: 32px; height: 32px; stroke-width: 2.2; }
.card-prev { display: block; width: 100%; max-width: 300px; aspect-ratio: 2 / 3; margin: 6px auto 0; border-radius: 8px; box-shadow: 0 10px 30px rgba(59, 19, 12, .25); background: var(--paper2); object-fit: cover; }
.hunt { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 10px; }
.hunt span { flex: 1 0 calc(20% - 6px); height: 44px; border-radius: 10px; background: rgba(59, 19, 12, .06); display: flex; align-items: center; justify-content: center; color: rgba(59, 19, 12, .2); }
.hunt span.got { background: rgba(239, 138, 162, .16); color: #d1607e; }
.hunt .i { width: 24px; height: 24px; }

/* giới thiệu */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { padding: 12px; border-radius: 10px; background: #fffdf8; border: 1px solid rgba(184, 134, 47, .35); }
.fact b { display: block; font: 700 28px/1 var(--disp); color: var(--lac2); }
.fact b small { font: 600 13px var(--sans); color: var(--gold2); margin-left: 3px; }
.fact span { display: block; font-size: 12px; color: var(--t-mut); margin-top: 4px; line-height: 1.35; }
.records { display: grid; gap: 8px; }
.rec { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(232, 194, 122, .22), rgba(232, 194, 122, .05)); font-size: 13.5px; line-height: 1.4; }
.rec .i { width: 22px; height: 22px; color: var(--gold2); margin-top: 1px; }
.tl { position: relative; padding-left: 4px; }
.tl-i { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.tl-i::before { content: ""; position: absolute; left: 26px; top: 30px; bottom: 0; width: 2px; background: rgba(184, 134, 47, .45); }
.tl-i:last-child::before { display: none; }
.tl-y { flex: none; width: 54px; height: 30px; border-radius: 15px; background: var(--lac2); color: var(--gold3); font: 700 14px/30px var(--sans); text-align: center; border: 1px solid var(--gold2); }
.tl-i > div { flex: 1; min-width: 0; }
.tl-i > div > b { font-size: 14.5px; }
.tl-i p { margin: 2px 0 0; font-size: 13.5px; color: var(--t-mut); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act { border-radius: 10px; overflow: hidden; background: #fffdf8; box-shadow: 0 2px 10px rgba(59, 19, 12, .07); }
.act img { width: 100%; aspect-ratio: 1.5; object-fit: cover; display: block; background: var(--paper2); }
.act div { padding: 8px 10px 10px; }
.act b { display: block; font-size: 13.5px; }
.act small { display: block; font-size: 12px; color: var(--t-mut2); line-height: 1.4; margin-top: 2px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rules div { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; background: rgba(59, 19, 12, .04); font-size: 12.5px; color: #4d3a33; line-height: 1.35; }
.rules .i { width: 22px; height: 22px; color: var(--lac2); }
.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amen div { text-align: center; font-size: 11.5px; color: var(--t-mut); padding: 10px 4px; border-radius: 10px; background: rgba(59, 19, 12, .04); }
.amen .i { display: block; margin: 0 auto 5px; width: 22px; height: 22px; color: var(--lac2); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal button { aspect-ratio: 1.3; border-radius: 8px; overflow: hidden; background: var(--paper2); }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gal button:hover img { transform: scale(1.08); }
.map-embed { width: 100%; height: 180px; border: 0; border-radius: 10px; background: var(--paper2); }
.contact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.contact-row a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px; border-radius: 10px; background: rgba(59, 19, 12, .05); text-decoration: none; font-size: 12px; font-weight: 600; }
.contact-row a .i { width: 22px; height: 22px; color: var(--lac2); }

/* tính năng */
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--t-line); }
.feat .f-ico { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(92, 28, 18, .08); color: var(--lac2); border: 1px solid rgba(184, 134, 47, .35); }
.feat .f-t { flex: 1; min-width: 0; }
.feat .f-t b { display: block; font-size: 14.5px; }
.feat .f-t small { color: var(--t-mut); font-size: 13px; line-height: 1.4; display: block; }
.feat .btn { flex: none; align-self: center; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kinds div { padding: 12px; border-radius: 10px; background: rgba(232, 194, 122, .16); }
.kinds b { display: block; font-size: 13.5px; color: var(--lac2); }
.kinds small { font-size: 12px; color: var(--t-mut); line-height: 1.4; display: block; margin-top: 2px; }
.maker-cta { margin-top: 18px; padding: 18px; border-radius: 10px; background: linear-gradient(150deg, var(--lac2), var(--lac)); color: var(--cream); border: 1px solid var(--gold2); }
.maker-cta b { font: 700 22px var(--disp); display: block; margin-bottom: 6px; color: var(--gold3); }

/* chia sẻ */
.qrbox { display: flex; justify-content: center; margin: 8px 0 14px; }
.qrbox svg { width: 180px; height: 180px; padding: 10px; box-shadow: 0 4px 20px rgba(59, 19, 12, .12); border-radius: 12px; }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.share-row a, .share-row button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 10px; background: rgba(59, 19, 12, .05); font-size: 12px; font-weight: 600; text-decoration: none; }
.share-row .i { width: 22px; height: 22px; color: var(--lac2); }
.embed { width: 100%; height: 76px; border-radius: 10px; border: 1.5px solid rgba(184, 134, 47, .35); padding: 10px; font: 12px ui-monospace, Menlo, monospace; color: #4d3a33; resize: none; background: #fffdf8; }

/* ---------- Pop (thẻ thông tin) ---------- */
#pop { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; padding: 20px; pointer-events: none; }
#pop.open { pointer-events: auto; background: rgba(20, 6, 3, .3); }
.pop-card { position: relative; width: min(400px, 100%); border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 20% 0%, #fffaf0, var(--paper) 50%, #f3e5c8); color: var(--ink);
  box-shadow: var(--shadow), 0 0 0 1.5px var(--gold2), 0 0 0 5px rgba(43, 18, 10, .5); opacity: 0; transform: translateY(20px) scale(.96); transition: .35s cubic-bezier(.2, .8, .2, 1); max-height: calc(100vh - 40px); overflow-y: auto; }
#pop.open .pop-card { opacity: 1; transform: none; }
.pop-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 250, 240, .9); border: 1px solid rgba(184, 134, 47, .5); }
.pop-img { width: 100%; aspect-ratio: 1.6; object-fit: cover; display: block; background: var(--paper2); border-bottom: 3px solid var(--gold2); }
.pop-ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(92, 28, 18, .08); color: var(--lac2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; border: 1px solid rgba(184, 134, 47, .4); }
.pop-ico .i { width: 26px; height: 26px; }
.pop-pad { padding: 18px 20px 22px; }
.pop-pad h3 { font: 700 25px/1.15 var(--disp); margin: 0 30px 8px 0; color: var(--lac2); }
.pop-pad p { margin: 0 0 14px; color: var(--t-mut); font-size: 14.5px; }
.pop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pop-actions .btn { flex: 1; }
.kv { font-size: 13.5px; } .kv small { display: block; color: var(--t-mut2); font-size: 11.5px; } .kv b { display: block; font-size: 16px; margin-bottom: 6px; }

/* ---------- Nghi thức dâng hương ---------- */
#ritual { position: fixed; inset: 0; z-index: 55; display: none; background: radial-gradient(ellipse at 50% 55%, rgba(40, 12, 6, .55), rgba(10, 3, 2, .94)); }
#ritual.open { display: block; animation: fadein .8s both; }
@keyframes fadein { from { opacity: 0; } }
#ritual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rt-text { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); width: min(560px, calc(100vw - 40px)); text-align: center; font: italic 600 24px/1.4 var(--disp); color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); opacity: 0; animation: fadein 1.2s .6s both; }
.rt-text small { display: block; font: 600 12.5px var(--sans); letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.rt-text.rise { transition: transform 6s ease-in, opacity 6s ease-in; transform: translate(-50%, -40vh); opacity: 0 !important; }
.rt-done { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); width: min(400px, calc(100vw - 32px)); text-align: center; padding: 26px 22px 22px; border-radius: 10px; background: rgba(43, 18, 10, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1.5px solid var(--gold2); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .8s, transform .8s; }
.rt-done.show { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.rt-done h3 { font: 700 28px var(--disp); margin: 8px 0 6px; color: var(--gold3); }
.rt-done p { color: var(--mut); margin: 0 0 16px; font-size: 14.5px; }
.rt-done p b { color: var(--cream); }
.rt-ico { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: rgba(239, 138, 162, .15); color: #f6b8c6; display: flex; align-items: center; justify-content: center; }
.rt-ico .i { width: 32px; height: 32px; }
.rt-act { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-act .btn { flex: 1; }
.rt-x { position: absolute; top: calc(16px + var(--st)); right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; }

/* ---------- Thiền ---------- */
#zen { position: fixed; inset: 0; z-index: 52; display: none; pointer-events: none; }
#zen.open { display: block; }
.zen-pick, .zen-run, .zen-end { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
#zen.pick .zen-pick, #zen.end .zen-end { display: flex; pointer-events: auto; background: rgba(20, 6, 3, .45); }
#zen.run .zen-run { display: flex; flex-direction: column; gap: 22px; pointer-events: none; }
.zen-card { width: min(400px, 100%); text-align: center; padding: 26px 22px 20px; border-radius: 10px; background: rgba(43, 18, 10, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1.5px solid var(--gold2); box-shadow: var(--shadow); animation: rise .6s both; }
.zen-card h3 { font: 700 28px var(--disp); margin: 8px 0 6px; color: var(--gold3); }
.zen-card p { color: var(--mut); margin: 0 0 18px; font-size: 14.5px; }
.zen-ico { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: rgba(232, 194, 122, .16); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.zen-ico .i { width: 32px; height: 32px; }
.zen-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.zen-opts button { padding: 14px 6px; border-radius: 50%; aspect-ratio: 1; max-width: 96px; margin: 0 auto; width: 100%; background: rgba(255, 255, 255, .06); border: 1.5px solid var(--line); font-size: 12.5px; color: var(--mut); transition: background .2s; }
.zen-opts button:hover { background: rgba(232, 194, 122, .2); color: var(--cream); }
.zen-opts b { display: block; font: 700 30px/1 var(--disp); color: var(--gold); }
.zen-br { width: 200px; height: 200px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(36, 12, 8, .62), rgba(36, 12, 8, .38) 62%, rgba(232, 194, 122, .18) 70%); border: 2px solid rgba(232, 194, 122, .85); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transform: scale(.7); transition: transform 4s ease-in-out; box-shadow: 0 0 60px rgba(232, 194, 122, .2); }
.zen-br[data-ph="0"] { transform: scale(1.08); }
.zen-br[data-ph="1"] { transform: scale(1.1); transition-duration: 1s; }
.zen-br[data-ph="2"] { transform: scale(.7); transition-duration: 5s; }
.zen-cue { font: italic 600 26px var(--disp); color: var(--cream); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.zen-time { font: 600 15px var(--sans); color: var(--cream); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); padding: 4px 12px; border-radius: 10px; background: rgba(36, 12, 8, .5); letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.zen-stop { pointer-events: auto; padding: 10px 22px; border-radius: 20px; background: rgba(43, 18, 10, .6); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.zen-x { pointer-events: auto; }

/* ---------- lightbox, toast, tip ---------- */
#lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(14, 4, 3, .95); display: none; align-items: center; justify-content: center; flex-direction: column; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 4px; box-shadow: var(--shadow), 0 0 0 2px var(--gold2); }
#lightbox p { margin: 14px 0 0; color: var(--gold3); font: italic 600 19px var(--disp); }
#lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; }
.lb-x { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
#toast { position: fixed; left: 50%; top: calc(96px + var(--st)); z-index: 70; transform: translate(-50%, -20px); padding: 10px 18px; border-radius: 6px; background: radial-gradient(ellipse at 30% 0%, #fffaf0, #f3e5c8); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--gold2); opacity: 0; transition: .35s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#tip { position: fixed; z-index: 80; padding: 6px 10px; border-radius: 6px; background: rgba(43, 18, 10, .94); border: 1px solid var(--line); font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; }
#tip.show { opacity: 1; }
#confetti { position: fixed; inset: 0; z-index: 75; pointer-events: none; width: 100%; height: 100%; }
#editbox { position: fixed; left: 14px; top: calc(120px + var(--st)); z-index: 30; display: none; padding: 10px 12px; border-radius: 12px; background: rgba(255, 61, 127, .92); color: #fff; font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre; }
body.edit #editbox { display: block; }
body.edit #pano { cursor: crosshair; }

/* ---------- Màn hình hẹp (máy tính bảng) ---------- */
@media (max-width: 1180px) and (min-width: 761px) {
  #plaque { top: calc(74px + var(--st)); }
  .pq-board b { font-size: 22px; }
  #btnFull, #btnZoomIn, #btnZoomOut { display: none; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
  .hide-m { display: none !important; }
  .m-only { display: inline-flex !important; }
  #brand { top: calc(8px + var(--st)); left: 8px; padding: 4px 12px 4px 4px; max-width: calc(100vw - 150px); }
  #brand img { width: 36px; height: 36px; }
  .br-txt small { font-size: 9px; letter-spacing: 2px; }
  .br-txt b { font-size: 16px; }
  .br-txt em { font-size: 10.5px; }
  #tools { top: calc(10px + var(--st)); right: 8px; gap: 6px; }
  #tools .ibtn { width: 38px; height: 38px; }
  .ibtn-gold { padding: 0; width: 38px; }
  #lotusBtn { top: calc(60px + var(--st)); left: 10px; height: 28px; }
  #plaque { top: calc(96px + var(--st)); max-width: calc(100vw - 110px); }
  .pq-board { padding: 6px 18px 7px; min-width: 0; gap: 8px; }
  .pq-board b { font-size: 18px; white-space: normal; }
  .pq-board::before, .pq-board::after { width: 10px; height: 10px; margin-top: -5px; }
  .pq-board::before { left: -7px; } .pq-board::after { right: -7px; }
  #plaque small { display: none; }
  #path { left: 0; right: 0; top: auto; bottom: calc(112px + var(--sb)); transform: none; width: auto !important; border-radius: 0; padding: 6px 8px; background: linear-gradient(180deg, transparent, rgba(29, 8, 4, .55)); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .path-h { display: none; }
  .path-list { flex-direction: row; overflow-x: auto; max-height: none; gap: 2px; padding: 0 4px; }
  .path-list::before { left: 24px; right: 24px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .pnode { flex-direction: column; gap: 3px; padding: 2px 4px; width: 66px; flex: none; }
  .pn-thumb { width: 46px; height: 46px; }
  .pn-txt { opacity: 1; align-items: center; }
  .pn-txt b { font-size: 12.5px; white-space: normal; text-align: center; line-height: 1.1; }
  .pn-txt small { display: none; }
  #wheelbar { bottom: calc(12px + var(--sb)); gap: 6px; }
  .pill { height: 42px; padding: 0 13px 0 11px; font-size: 13px; }
  #wheelBtn { width: 70px; height: 70px; }
  #wheelBtn .wb-wheel { width: 40px; height: 40px; }
  #wheelBtn span { display: none; }
  .wm-disc { --R: 124px; width: 340px; height: 340px; }
  .wm-item { width: 80px; margin: -32px 0 0 -40px; }
  .wm-item .wm-ic { width: 52px; height: 52px; }
  .wm-item b { font-size: 11.5px; }
  .wm-hub { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  #viewctl { right: 8px; bottom: auto; top: calc(150px + var(--st)); }
  #viewctl .ibtn { width: 38px; height: 38px; }
  #minimap { right: 8px; left: 8px; width: auto; max-width: 320px; margin: 0 auto; bottom: calc(196px + var(--sb)); }
  #caption { bottom: calc(196px + var(--sb)); font-size: 17px; padding: 9px 16px 8px; }
  #maker { display: none; }
  .sheet-card { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 90vh; height: 90dvh; border-radius: 14px 14px 0 0; transform: translateY(105%); }
  .sheet-card::before { inset: 22px 6px 6px; }
  .sheet-rod.bot { display: none; }
  .sheet-rod.top { margin: -8px -4px 0; }
  .sh-pad { padding: 18px 18px 24px; }
  .sh-h { font-size: 27px; }
  .hs-nav .hs-dot { width: 52px; height: 52px; }
  .hs-lbl { font-size: 11.5px; }
  #pop { align-items: flex-end; padding: 10px 10px calc(10px + var(--sb)); }
  .qrcard { flex-direction: column; align-items: center; }
  .qr-r { width: 100%; }
  .zen-br { width: 160px; height: 160px; }
  .rt-text { font-size: 20px; }
  #toast { top: calc(140px + var(--st)); }
}
@media (max-width: 400px) { .lunar-chip { display: none; } .pill span { display: none; } .pill { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 380px) { .modes .mode span { font-size: 12px; } .rules { grid-template-columns: 1fr; } }
@media (min-width: 761px) { #maker { display: block; } }
@media (max-height: 700px) and (min-width: 761px) { .path-list { max-height: 50vh; } .pn-thumb { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01s !important; } }
