/* Chùa Tâm An trong game — sinh từ chua-lab/index.html rồi bọc dưới #temple-root (class chung như .btn/.card không đè giao diện quán).
   Cùng token với css/style.css của game. Chỉnh tay phần cuối file (sau dòng "--- riêng bản game"). */
#temple-root{--ink:#2a1c1c;--ink-2:#5a4a3a;--muted:#7a6a5a;--paper:#fff8ea;--paper-2:#fdefd2;--line:#e6d5b0;
--bar:#271f30;--bar-2:#3b2e48;--bar-text:#f4eefc;--bar-muted:#c9b6e4;
--green:#43a047;--orange:#ff8f1f;--red:#e53935;--blue:#1e88e5;--yellow:#ffcf33;--gold:#ffe14d;
--temple:#3e1813;--temple-2:#5b261c;--lac:#9e2a20;--lac-d:#6e1813;--gilt:#d9a441;--gilt-l:#ffd977;
--font:'Be Vietnam Pro',system-ui,sans-serif;--display:'Baloo 2','Be Vietnam Pro',system-ui,sans-serif;
--safe-b:env(safe-area-inset-bottom,0px)}
/* cách ly khỏi CSS game: game cũng định nghĩa .modal/.btn/.card/.toast/.row/.bar… → mọi phần tử trong chùa về mặc định trình duyệt rồi mới áp style chùa bên dưới (đặc hiệu #id thắng .class của game) */
#temple-root *{all:revert}
#temple-root img[width="20"]{width:20px;height:20px}
#temple-root img[width="24"]{width:24px;height:24px}
#temple-root img[width="32"]{width:32px;height:32px}
#temple-root img[width="36"]{width:36px;height:36px}
#temple-root img[width="48"]{width:48px;height:48px}
#temple-root img,#temple-root canvas{image-rendering:pixelated}
#temple-root *{box-sizing:border-box}
#temple-root{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;margin:0;background:#140a08;color:var(--bar-text);font:14px/1.35 var(--font);overflow:hidden;padding-top:env(safe-area-inset-top,0px)}
#temple-root[hidden]{display:none!important}
#temple-root button{font-family:var(--font);cursor:pointer;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#temple-root button:focus-visible,#temple-root select:focus-visible,#temple-root input:focus-visible{outline:3px solid #56b8ff;outline-offset:2px}
#temple-root .px{image-rendering:pixelated;display:inline-block;vertical-align:middle}
#temple-root [hidden]{display:none!important}
#temple-root .app{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;position:relative}
#temple-root .stage{flex:1;min-height:0;width:min(100vw,560px);display:flex;flex-direction:column;background:#1a0b08}
#temple-root .hud{flex:none;display:flex;align-items:center;gap:6px;padding:6px 8px;background:var(--bar);border-bottom:2px solid #000;box-shadow:inset 0 -2px 0 var(--bar-2)}
#temple-root .res{display:flex;align-items:center;gap:4px;background:#1b1522;border:1.5px solid #4a3a5c;border-radius:8px;padding:2px 8px 2px 4px;min-width:0}
#temple-root .res b{font:800 15px/1.2 var(--display);white-space:nowrap}
#temple-root .res small{font:700 11px var(--font);color:var(--bar-muted);white-space:nowrap}
#temple-root .res.merit b{color:var(--gilt-l)}
#temple-root .online{margin-left:auto;display:flex;align-items:center;gap:5px;font:700 12px var(--font);color:var(--bar-muted);white-space:nowrap}
#temple-root .online b{font:800 15px var(--display);color:#bff5c0}
#temple-root .dot{width:8px;height:8px;background:#4cd964;box-shadow:0 0 0 2px #1d5a24}
#temple-root .iconbtn{border:1.5px solid #4a3a5c;background:var(--bar-2);border-radius:8px;width:34px;height:30px;display:grid;place-items:center;padding:0}
#temple-root .iconbtn[aria-pressed=false]{opacity:.55}
#temple-root .scene-wrap{flex:1;min-height:0;position:relative;overflow:hidden;background:#1a0b08}
#temple-root .scene-scroll{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden}
#temple-root .scene-scroll.pan{display:flex;align-items:center;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;scrollbar-width:none}
#temple-root .scene-scroll.pan::-webkit-scrollbar{display:none}
#temple-root .scene-scroll.tall{place-items:start center;overflow-y:auto;overscroll-behavior:contain}
#temple-root #tp-scene{display:block;image-rendering:pixelated;touch-action:manipulation;cursor:pointer}
#temple-root .feed{position:absolute;left:8px;right:8px;top:6px;display:flex;flex-direction:column;gap:3px;pointer-events:none;align-items:flex-start}
#temple-root .feed div{background:#1b0d0bcc;border:1.5px solid #6e3a24;border-radius:6px;padding:1px 7px;font:700 11.5px/1.35 var(--font);color:#ffe9c6;max-width:78%;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:tp-feedIn .18s steps(3)}
#temple-root .feed div.gold{border-color:var(--gilt);color:var(--gilt-l);background:#3a1a08ee}
#temple-root .feed div.out{opacity:0;transition:opacity .4s}
@keyframes tp-feedIn{from{transform:translateY(-6px);opacity:0}}
#temple-root .loctimer{position:absolute;right:8px;bottom:8px;background:#1b0d0bdd;border:1.5px solid #6e3a24;border-radius:6px;padding:2px 8px;font:700 11px var(--font);color:#ffd9a0;pointer-events:none}
#temple-root .banner{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;
  font:800 30px/1 var(--display);color:var(--gilt-l);text-shadow:0 3px 0 #5a1a00,0 0 16px #ffb02088;white-space:nowrap;animation:tp-pop .4s steps(4)}
#temple-root .banner small{display:block;font:800 14px var(--font);color:#fff3d6;text-shadow:0 2px 0 #000;margin-top:4px}
@keyframes tp-pop{0%{transform:translate(-50%,-50%) scale(.6);opacity:0}60%{transform:translate(-50%,-50%) scale(1.08)}100%{transform:translate(-50%,-50%) scale(1)}}
#temple-root .dock{flex:none;width:min(100vw,560px);position:relative;background:var(--bar);border-top:2px solid #000;padding-bottom:var(--safe-b);z-index:5}
#temple-root .emotes{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;padding:5px 6px}
#temple-root .emo{border:1.5px solid #4a3a5c;background:var(--bar-2);border-radius:8px;padding:3px 0 2px;display:flex;flex-direction:column;align-items:center;gap:1px;
  font:700 10.5px/1.1 var(--font);color:var(--bar-text);box-shadow:0 2px 0 #1a1322;transition:transform .06s}
#temple-root .emo:active{transform:translateY(2px);box-shadow:none}
#temple-root .emo:disabled{opacity:.45;cursor:not-allowed}
#temple-root .emo .cd{color:#ffb4a0}
#temple-root .emo{position:relative;overflow:hidden}
#temple-root .emo .lb{font-variant-numeric:tabular-nums}
#temple-root .emo .cdbar{position:absolute;left:0;bottom:0;height:3px;width:0;background:#ffd977}
#temple-root .emo.cool{background:#2a2034;border-color:#3a3048;color:#c9b8d8}
#temple-root .emo.cool img{filter:grayscale(.7) brightness(.8)}
#temple-root .tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:0 6px 6px}
#temple-root .tab{position:relative;border:1.5px solid #6e3a24;border-radius:8px;background:linear-gradient(#5b261c,#3e1813);padding:3px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
  font:800 12.5px/1.1 var(--display);color:#ffe9c6;box-shadow:0 3px 0 #2a0e0b}
#temple-root .tab[aria-selected=true]{background:linear-gradient(#ffe066,#ffbf1a);color:var(--ink);border-color:#cf9800;box-shadow:0 3px 0 #b07f00}
#temple-root .tab .badge{position:absolute;top:-6px;right:-3px;background:var(--red);color:#fff;border:1.5px solid #7a1010;border-radius:9px;font:800 11px/1 var(--display);padding:2px 5px 1px}
#temple-root .sheet{position:absolute;left:0;right:0;bottom:100%;max-height:min(54vh,520px);display:flex;flex-direction:column;background:var(--paper);color:var(--ink);
  border:2px solid var(--ink);border-bottom:0;border-radius:12px 12px 0 0;box-shadow:0 -3px 0 #0005;transform:translateY(0);transition:transform .16s steps(4),opacity .16s}
#temple-root .sheet.closed{transform:translateY(16px);opacity:0;pointer-events:none;visibility:hidden}
#temple-root .sheet-h{flex:none;display:flex;align-items:center;gap:8px;padding:7px 10px 6px;background:linear-gradient(var(--lac),var(--lac-d));color:#ffe9c6;border-radius:10px 10px 0 0;border-bottom:2px solid #3a0e08}
#temple-root .sheet-h h2{margin:0;font:800 18px/1.1 var(--display);color:var(--gilt-l);text-shadow:0 2px 0 #3a0e08}
#temple-root .sheet-h .sub{font:700 11.5px var(--font);color:#ffd9b0}
#temple-root .sheet-h .x{margin-left:auto;width:30px;height:28px;border-radius:7px;border:1.5px solid #3a0e08;background:#7a1c14;color:#ffe9c6;font:800 16px var(--display);padding:0}
#temple-root .sheet-b{overflow-y:auto;padding:8px 10px 12px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
#temple-root .btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;--edge:#2f8034;--lip:#276b2c;
 border:1.5px solid var(--edge);border-radius:10px;box-shadow:0 3px 0 var(--lip),inset 0 1px 0 rgba(255,255,255,.32);
 padding:5px 12px;font:800 14px/1.15 var(--display);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.28);background:linear-gradient(#5cc261,#3d9a42);
 transition:transform .06s,box-shadow .06s,filter .15s;white-space:nowrap}
#temple-root .btn:hover:not(:disabled){filter:brightness(1.07)}
#temple-root .btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--lip)}
#temple-root .btn:disabled{cursor:not-allowed;filter:grayscale(.7) brightness(.85);opacity:.8}
#temple-root .btn-gold{background:linear-gradient(#ffe066,#ffbf1a);color:var(--ink);text-shadow:none;--edge:#cf9800;--lip:#b07f00}
#temple-root .btn-red{background:linear-gradient(#e2584a,#b3261e);--edge:#8a1a12;--lip:#6e1410}
#temple-root .btn-gray{background:linear-gradient(#a8a8b3,#7c7c88);--edge:#62626e;--lip:#50505a}
#temple-root .btn.wide{width:100%}
#temple-root .btn.big{font-size:18px;padding:9px 12px}
#temple-root .note{font:600 12px/1.4 var(--font);color:var(--ink-2)}
#temple-root .note b{color:var(--ink)}
#temple-root .card{background:#fff;border:1.5px solid var(--line);border-radius:10px;box-shadow:0 2px 0 var(--line);padding:7px 8px}
#temple-root .row{display:flex;align-items:center;gap:8px}
#temple-root .chips{display:flex;gap:4px;flex-wrap:wrap}
#temple-root .chip{display:inline-flex;align-items:center;gap:3px;border-radius:6px;padding:1px 7px;font:700 11.5px/1.5 var(--font);background:var(--paper-2);border:1px solid var(--line);color:var(--ink-2)}
#temple-root .chip.gold{background:#fff1bf;border-color:#e6c05a;color:#7a4b00}
#temple-root .chip.red{background:#ffe1dc;border-color:#f0a59a;color:#9a2418}
#temple-root .chip.green{background:#e3f5dc;border-color:#9fd18c;color:#2a6a1c}
#temple-root .chip.blue{background:#e1eeff;border-color:#9fbfe8;color:#1e4f8a}
#temple-root .offer{display:grid;grid-template-columns:44px 1fr auto;gap:8px;align-items:center;padding:6px 8px}
#temple-root .offer .ico{width:44px;height:44px;background:var(--paper-2);border:1.5px solid var(--line);border-radius:8px;display:grid;place-items:center}
#temple-root .offer h3{margin:0;font:800 15px/1.15 var(--display)}
#temple-root .offer .meta{display:flex;gap:4px;flex-wrap:wrap;margin-top:2px}
#temple-root .offer .act{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:96px}
#temple-root .offer.locked{opacity:.62}
#temple-root .cdbar{height:6px;background:#eadfc8;border:1px solid #c8b48a}
#temple-root .cdbar i{display:block;height:100%;background:#d9a441}
#temple-root .why{font:700 11px/1.2 var(--font);color:#9a2418;text-align:center}
#temple-root .cdtxt{font:800 13px var(--display);color:var(--ink-2);text-align:center}
#temple-root .xam{display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 0}
#temple-root #tp-xamCup{width:96px;height:128px}
#temple-root #tp-xamCup.shake{animation:tp-shake .6s steps(6)}
@keyframes tp-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-9deg)}40%{transform:rotate(8deg)}60%{transform:rotate(-7deg)}80%{transform:rotate(6deg)}}
#temple-root .result{border:2px solid var(--ink);border-radius:10px;background:#fffdf5;padding:8px 10px;text-align:center;box-shadow:0 3px 0 var(--ink)}
#temple-root .result .q{font:800 24px/1 var(--display)}
#temple-root .result .poem{font:italic 600 13px/1.45 var(--font);color:var(--ink-2);margin:6px 0}
#temple-root .tone-gold{color:#b07800}
#temple-root .tone-red{color:#b3261e}
#temple-root .tone-blue{color:#1e5aa8}
#temple-root .tone-green{color:#2a7a20}
#temple-root .rates{width:100%;border-collapse:collapse;font:600 12px var(--font)}
#temple-root .rates td{padding:3px 4px;border-bottom:1px solid var(--line)}
#temple-root .rates td:last-child{text-align:right;font-weight:800}
#temple-root details summary{cursor:pointer;font:800 13px var(--display);color:var(--ink-2)}
#temple-root .steps{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
#temple-root .step{border:1.5px solid var(--line);border-radius:8px;background:var(--paper-2);padding:3px 2px;text-align:center;font:700 10.5px/1.2 var(--font);color:var(--muted)}
#temple-root .step b{display:block;font:800 13px var(--display)}
#temple-root .step.done{background:#e3f5dc;border-color:#9fd18c;color:#2a6a1c}
#temple-root .step.cur{background:#fff1bf;border-color:#cf9800;color:#7a4b00;box-shadow:0 2px 0 #cf9800}
#temple-root .bar{height:14px;background:#5a3a1e;border:1.5px solid var(--ink);position:relative}
#temple-root .bar i{display:block;height:100%;background:linear-gradient(#ffe28a 0 2px,#f2b630 2px);transition:width .3s steps(6)}
#temple-root .bar.green i{background:linear-gradient(#a8e08c 0 2px,#5fa84a 2px)}
#temple-root .bar span{position:absolute;inset:0;display:grid;place-items:center;font:800 10.5px var(--font);color:#fff;text-shadow:0 1px 0 #000}
#temple-root .amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
#temple-root .tiers{display:grid;gap:4px}
#temple-root .tier{display:flex;justify-content:space-between;gap:6px;font:600 12px var(--font);padding:3px 6px;border-radius:6px;background:var(--paper-2)}
#temple-root .tier.on{background:#fff1bf;outline:1.5px solid #cf9800}
#temple-root .subtabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
#temple-root .subtab{border:1.5px solid var(--line);border-radius:8px;background:var(--paper-2);padding:4px;font:800 13px var(--display);color:var(--ink-2)}
#temple-root .subtab[aria-selected=true]{background:var(--ink);color:var(--gilt-l);border-color:var(--ink)}
#temple-root .rank{display:grid;grid-template-columns:30px 1fr auto;gap:6px;align-items:center;padding:5px 6px;border-bottom:1px solid var(--line);font:600 13px var(--font)}
#temple-root .rank .no{font:800 15px var(--display);text-align:center;color:var(--muted)}
#temple-root .rank .no.m1{color:#b07800}
#temple-root .rank .no.m2{color:#6c7a8a}
#temple-root .rank .no.m3{color:#a0562a}
#temple-root .rank .sc{font:800 14px var(--display)}
#temple-root .rank .tt{display:block;font:700 10.5px var(--font);color:#9a6a22}
#temple-root .rank.me{background:#fff1bf;border:1.5px solid #cf9800;border-radius:8px}
#temple-root .ranklist{border:1.5px solid var(--line);border-radius:10px;background:#fff;max-height:none}
#temple-root .tiercard{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;background:linear-gradient(#fff8ea,#fdefd2)}
#temple-root .tierhero{width:120px;height:150px;display:grid;place-items:end center;background:radial-gradient(circle at 50% 70%,#ffe9a8 0,#fdefd2 62%);border:1.5px solid var(--line);border-radius:8px;overflow:hidden}
#temple-root .tierhero canvas{width:120px;height:150px}
#temple-root .tiername{font:800 22px/1.1 var(--display);color:#8a4b00}
#temple-root .ladder{display:grid;gap:4px}
#temple-root .rung{display:grid;grid-template-columns:48px 1fr;gap:8px;align-items:center;background:#fff;border:1.5px solid var(--line);border-radius:8px;padding:2px 8px 2px 2px}
#temple-root .rung canvas{width:48px;height:60px}
#temple-root .rung.on{background:#fff1bf;border-color:#cf9800;box-shadow:0 2px 0 #cf9800}
#temple-root .rung.done{opacity:.8}
#temple-root .tp-modal{position:fixed;inset:0;background:#0009;display:grid;place-items:center;z-index:50;padding:16px}
#temple-root .tp-modal .box{width:min(380px,100%);background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 #000;overflow:hidden;animation:tp-pop2 .2s steps(3)}
@keyframes tp-pop2{from{transform:scale(.9);opacity:0}}
#temple-root .tp-modal .box .sheet-h{border-radius:0}
#temple-root .tp-modal .box .in{padding:10px 12px;display:flex;flex-direction:column;gap:8px}
#temple-root .toasts{position:fixed;left:50%;top:64px;transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;z-index:60;pointer-events:none;width:min(92vw,360px)}
#temple-root .toast{display:flex;align-items:center;gap:8px;background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-radius:10px;box-shadow:0 3px 0 #000;padding:6px 10px;
  font:700 13px/1.3 var(--font);animation:tp-pop2 .18s steps(3)}
#temple-root .toast.bad{background:#ffe1dc}
#temple-root .toast b{font:800 14px var(--display)}
#temple-root .popover{position:absolute;left:6px;right:6px;bottom:100%;margin-bottom:6px;background:var(--paper);border:2px solid var(--ink);border-radius:10px;padding:8px;display:flex;flex-wrap:wrap;gap:6px;box-shadow:0 3px 0 #000;z-index:7}
#temple-root .popover button{border:1.5px solid var(--line);background:#fff;border-radius:8px;padding:5px 9px;font:700 13px var(--font);color:var(--ink)}
@media (min-width:980px),(orientation:landscape) and (max-height:540px) and (min-width:620px){#temple-root .app{flex-direction:row;justify-content:center;align-items:stretch}
#temple-root .stage{width:auto;flex:1;max-width:820px}
#temple-root .dock{width:400px;display:flex;flex-direction:column;border-top:0;border-left:2px solid #000}
#temple-root .tabs{order:1;padding:8px 8px 6px}
#temple-root .sheet{order:2;position:static;flex:1;min-height:0;max-height:none;border-radius:0;border:0;border-top:2px solid #000;box-shadow:none}
#temple-root .sheet.closed{transform:none;opacity:1;pointer-events:auto;visibility:visible}
#temple-root .sheet-h{border-radius:0}
#temple-root .sheet-h .x{display:none}
#temple-root .emotes{order:3;border-top:2px solid #000}
#temple-root .popover{bottom:auto;top:auto}
}
@media (orientation:landscape) and (max-height:540px) and (min-width:620px){#temple-root .dock{width:min(46vw,380px)}
#temple-root .hud{padding:3px 6px}
#temple-root .emo{font-size:0;gap:0}
#temple-root .emo img{width:24px;height:24px}
}
@media (prefers-reduced-motion:reduce){#temple-root *{animation:none!important;transition:none!important}
}

/* --- riêng bản game */
#temple-root .tp-close{border:1.5px solid #6e3a24;background:linear-gradient(#9e2a20,#6e1813);color:#ffe9c6;border-radius:8px;height:30px;padding:0 10px;font:800 13px var(--display);display:flex;align-items:center;gap:4px}
#temple-root .tp-close:active{transform:translateY(2px)}
#temple-root .tp-wait{position:absolute;inset:0;display:grid;place-items:center;background:#140a08cc;color:#ffe9c6;font:800 15px var(--display);z-index:20}
#temple-root .anon{opacity:.9}
#temple-root .tp-help{font:800 17px/1 var(--display);color:#ffe9c6}
#temple-root .tp-modal .box{max-height:calc(100dvh - 32px);display:flex;flex-direction:column}
#temple-root .tp-modal .box .in{overflow-y:auto;overscroll-behavior:contain}
#temple-root .tp-guide h3{margin:8px 0 2px;font:800 15px var(--display);color:#8a4b00}
#temple-root .tp-guide .rates td{vertical-align:top;font-size:11.5px}
#temple-root .tp-guide .rates td:last-child{text-align:left;font-weight:600}

/* --- nút "Chùa" ngoài quán: ngay dưới nút Chủ đề (#shop-hub, client/shop-skins.css), cùng kiểu, lệch xuống 40px */
#temple-hub{position:fixed;z-index:21;left:10px;top:calc(var(--top-h) + 48px + var(--hub-off,0px));display:flex;align-items:center;gap:6px;min-height:34px;padding:4px 8px;border:2px solid var(--ink);border-radius:10px;background:#fff1e0;color:var(--ink);font:700 12px var(--font);cursor:pointer;box-shadow:0 2px 0 var(--ink)}
#temple-hub[hidden]{display:none}
#temple-hub:active{transform:translateY(2px);box-shadow:none}
#temple-hub:focus-visible{outline:3px solid #6748d7;outline-offset:2px}
#temple-hub .hub-ic{width:18px;height:18px;flex:0 0 auto}
body.portrait #temple-hub{top:calc(var(--top-h) + 40px + var(--hub-off,0px));min-height:32px}
body.portrait.prep #temple-hub{top:calc(var(--top-h) + var(--prep-h) + 40px + var(--hub-off,0px))}
@media (min-width:0){body:not(.portrait) #temple-hub{left:var(--rail-end,var(--edge-l,10px))}}
body.shop-visit-on #temple-hub,body.temple-open #temple-hub{display:none}
@media (prefers-reduced-motion:reduce){#temple-hub:active{transform:none}}

/* HUD chùa trên màn hẹp: nút về quán chỉ còn mũi tên, bỏ chữ phụ để không đè nhau */
@media (max-width:520px){
  #temple-root .hud{gap:4px;padding:5px 6px}
  #temple-root .tp-close{padding:0 8px}
  #temple-root .tp-close span,#temple-root .online span:not(.dot),#temple-root .res small{display:none}
  #temple-root .res{padding:2px 6px 2px 3px}
  #temple-root .res b{font-size:14px}
  #temple-root .iconbtn{width:30px}
}

/* màn chuyển cảnh vào chùa: canvas pixel phóng nearest-neighbor, chữ HTML cho rõ dấu tiếng Việt */
#temple-root .tp-intro{position:absolute;inset:0;z-index:60;background:#0d0507;opacity:1;transition:opacity .7s ease}
#temple-root .tp-intro.out{opacity:0;pointer-events:none}
#temple-root .tp-intro canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges}
#temple-root .tp-intro-t{position:absolute;left:0;right:0;top:calc(env(safe-area-inset-top,0px) + 4%);display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;pointer-events:none}
#temple-root .tp-intro-t b{font:800 clamp(28px,6vw,54px)/1 var(--display);letter-spacing:.08em;color:#ffd977;text-shadow:0 3px 0 #5a1a00,0 0 18px #ffb02099,0 0 40px #ff8a2066}
#temple-root .tp-intro-t span{font:600 clamp(13px,2.4vw,18px)/1.2 var(--font);color:#f3e2c8;opacity:.9;text-shadow:0 2px 0 #2a0e0b;min-height:1.2em}
@media (prefers-reduced-motion:reduce){#temple-root .tp-intro{transition:opacity .15s linear!important}}
