#temple-ui{font-family:"Segoe UI",Arial,sans-serif;color:#46361f;font-size:14px;line-height:1.5}
#temple-ui *{box-sizing:border-box}#temple-ui [hidden]{display:none!important}
#temple-ui button,#temple-ui input{font:inherit}#temple-ui button{cursor:pointer;touch-action:manipulation}#temple-ui button:disabled{opacity:.5;cursor:not-allowed}#temple-ui button:focus-visible,#temple-ui input:focus-visible{outline:3px solid #8061ff;outline-offset:3px}
#game-account{position:fixed;top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));z-index:1000;display:flex;gap:9px;align-items:center}
.temple-running #game-account{top:max(var(--temple-hud-top,84px),calc(env(safe-area-inset-top) + var(--temple-hud-top,84px)));left:max(12px,env(safe-area-inset-left));right:auto;gap:0;padding:3px 5px;background:#163e38e8;border:1px solid #d7bc77;border-radius:10px;box-shadow:0 2px 6px #0004}
.temple-running #game-account .wallet{height:28px;min-width:0;border:0;border-radius:0;background:none;box-shadow:none;color:#fff4ce;font-size:15px!important;font-style:normal;gap:6px;padding:0 9px 0 25px}
.temple-running #game-account .wallet img{left:0;width:25px;height:25px;filter:none}
.temple-running #game-account .wallet-plus{font-size:13px;color:#89ddc7;margin:0}
.temple-running #game-account .revive-wallet{border-left:1px solid #d7bc7745;padding-left:29px}
.temple-running #game-account .revive-symbol{left:8px;font-size:20px;color:#e6c879}
.temple-running #game-account .account-button{width:30px;height:28px;max-width:none;margin-left:2px;border:0;border-left:1px solid #d7bc7745;border-radius:0;padding:0;background:none;box-shadow:none;font-size:0!important;color:#e6c879}
.temple-running #game-account .account-button::before{content:"";display:block;width:8px;height:8px;margin:0 auto 2px;border:1.5px solid currentColor;border-radius:50%}
.temple-running #game-account .account-button::after{content:"";display:block;width:15px;height:7px;margin:auto;border:1.5px solid currentColor;border-bottom:0;border-radius:8px 8px 0 0}
.wallet{position:relative;height:40px;min-width:108px;border:2px solid #846124;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 3px 0 #533e20,inset 0 2px 0 #fff8c9;color:#073e3e;font-size:21px!important;font-weight:900;font-style:italic;padding:0 10px 0 31px;background:linear-gradient(#80f4dc,#19caba)}
.wallet img{position:absolute;left:-12px;width:49px;height:49px;filter:drop-shadow(0 2px 1px #53402255)}.wallet-plus{font-style:normal;color:#22635b;font-size:17px;margin-left:2px}.revive-wallet{min-width:79px;padding-left:32px;background:linear-gradient(#fff0b0,#f1c968);color:#624214}.revive-symbol{font-family:Arial,sans-serif;font-size:26px;font-style:normal;line-height:1;font-weight:bold;color:#08a9a5}.wallet .revive-symbol{position:absolute;left:5px;color:#725122}.account-button{max-width:125px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border:1px solid #aa8950;border-radius:9px;background:#fff3d8;color:#644520;padding:8px 15px;font-weight:bold!important;box-shadow:0 3px 0 #584022}
.temple-mask{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;background:#081811b8;backdrop-filter:blur(7px);padding:22px;touch-action:pan-y}.temple-modal-open #container canvas{pointer-events:none}#auth-modal{z-index:1200}
html.temple-modal-open,body.temple-modal-open{touch-action:pan-y}#temple-ui input{-webkit-user-select:text}
.auth-panel,.shop-panel{position:relative;width:100%;box-shadow:0 25px 90px #0007;border-radius:24px;background:#fffdf6;max-height:calc(100dvh - 44px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.auth-panel{max-width:405px;padding:32px 34px 22px;text-align:center;background:radial-gradient(ellipse at 50% 0%,#f8e3a9 0,transparent 50%),#fffbf0;border:3px solid #bc954b}
.close-button{position:absolute;right:16px;top:14px;width:32px;height:32px;padding:0;appearance:none;border:1px solid #e4dccb;background:#fff9ed;color:#7e6b4c;border-radius:50%}
.close-button::before,.close-button::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.close-button::after{transform:translate(-50%,-50%) rotate(-45deg)}
.close-button:hover{background:#f2e7d2}
#character-note{position:fixed;z-index:1050;left:50%;bottom:18px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);margin:0;padding:10px 16px;border:1px solid #d7bc77;border-radius:10px;background:#163e38f5;color:#fff4ce;text-align:center;box-shadow:0 3px 10px #0004}
.temple-mark{width:79px;height:79px;margin:2px auto 15px;background:#f1dc9f;border-radius:22px;display:grid;place-items:center;box-shadow:0 4px 0 #c8a664;transform:rotate(-6deg)}.temple-mark img{width:65px;height:65px;transform:rotate(6deg)}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#9b7b40}.auth-panel h1,.shop-panel h1{font-size:25px;letter-spacing:-.5px;margin:7px 0;color:#45321d}.auth-intro{font-size:12px;color:#928066;margin:0 0 22px}.auth-tabs{display:flex;border-bottom:1px solid #e9dec9;margin-bottom:18px}.auth-tabs button{width:50%;background:none;border:0;border-bottom:3px solid transparent;padding:10px;color:#a08f74}.auth-tabs .active{border-bottom-color:#09a9a0;color:#087f78;font-weight:bold}
#auth-form label{display:block;text-align:left;font-size:12px;color:#7d694c;margin:13px 0}#auth-form input{display:block;width:100%;margin-top:6px;padding:12px 13px;background:#fff;border:1px solid #dfd5c0;border-radius:10px;color:#473820;user-select:text;touch-action:auto;outline:none}#auth-form input:focus{border-color:#17b4a4;box-shadow:0 0 0 3px #17b4a419}#auth-form input::placeholder{color:#b8ad9a}
.primary-button{border:1px solid #087c78;border-radius:10px;padding:12px 16px;background:linear-gradient(#26c9b5,#11a998);color:#fff;font-weight:bold!important;box-shadow:0 3px 0 #087d75}.auth-panel .primary-button{width:100%}.text-button{background:none;border:0;color:#8e7753;padding:8px;font-size:12px!important}.auth-panel>.text-button{margin-top:13px}.starter-note{font-size:10px;color:#ad9671;margin:5px 0 0}.notice{font-size:12px;min-height:18px;margin:8px 0;color:#926323;line-height:1.4}.notice:empty{min-height:0;margin:0}
.shop-panel{max-width:450px;background:#f8f8fb;padding:0 22px 15px;border:1px solid #fff9;scrollbar-width:thin}.shop-header{position:relative;padding:24px 0 16px}.shop-header h1{font-size:24px}.shop-header p{margin:3px 0 0;color:#a0917e;font-size:12px}.shop-header .close-button{right:0;top:20px}.shop-header .eyebrow{color:#9e8769}
.shop-balances{display:flex;align-items:center;gap:20px;padding:10px 12px;background:#efefF4;border-radius:10px;font-size:12px;color:#858193}.shop-balances span{display:flex;align-items:center;gap:6px}.shop-balances img{width:25px;height:25px}.shop-balances .revive-symbol{font-size:23px}.shop-balances b{color:#414451;font-size:16px}.shop-caption{display:flex;justify-content:space-between;padding:15px 3px 9px;color:#9c96a8;font-size:11px}
.package-list{display:flex;flex-direction:column;gap:11px;max-height:min(47dvh,435px);min-height:120px;overflow:auto;overscroll-behavior:contain;padding:3px 2px 8px;scrollbar-width:thin;scrollbar-color:#d7d1e7 transparent}
.package-row{position:relative;display:flex;align-items:center;gap:13px;min-height:79px;flex-shrink:0;border:1px solid #e9e8ee;border-radius:14px;background:#fff;padding:10px 12px}.package-row.recommended{border:2px solid #8661ff;background:#f6f3ff;padding:9px 11px}.package-icon{width:44px;height:48px;flex-shrink:0;display:grid;place-items:center;background:#e9f9f6;border-radius:12px}.package-icon img{width:38px;height:38px}.recommended .package-icon{background:#e8e1ff}.package-content{flex:1;min-width:0}.package-name{font-size:10px;color:#a6a0b0;margin-bottom:1px}.package-gems{font-size:18px;font-weight:800;letter-spacing:-.3px;color:#343241;line-height:1.3}.package-revives{font-size:11px;color:#8e8998;line-height:1.5}.package-buy{position:relative;min-width:70px;padding:7px 10px;border:0;border-radius:9px;background:#f4e7cf;color:#372617;font-family:Georgia,"Times New Roman",serif!important;font-size:17px!important;white-space:nowrap;transition:background .15s}.package-buy:hover{background:#e9d4b0}.choice-badge{position:absolute;right:11px;bottom:-7px;background:#855dff;border-radius:9px;color:#fff;padding:0 7px;font-size:9px;line-height:14px;font-weight:bold;letter-spacing:.2px}.value-badge{margin-left:5px;font-size:9px;color:#b18845;background:#fff0d4;padding:1px 5px;border-radius:5px}
.exchange-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;background:#f0ede6;border-radius:12px;margin-top:11px}.exchange-bar b{display:block;font-size:11px;color:#6d624e}.exchange-bar small{display:block;font-size:10px;color:#a09077;margin-top:3px}.exchange-bar button{font-size:11px!important;padding:8px 10px;border:1px solid #d2c4a8;border-radius:8px;background:#fffaf0;color:#796344;font-weight:bold}.shop-panel>.notice{padding-top:8px}.shop-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-top:10px;color:#a49bab;font-size:10px}.shop-footer>span:last-child{width:100%;font-size:9px;margin-top:4px;color:#b3acbb}.empty-state{margin:auto;color:#a097aa}
#score-revive-actions{position:fixed;z-index:1050;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(365px,calc(100vw - 24px));padding:13px 15px;background:#fff5deed;border:2px solid #b28b40;box-shadow:0 8px 30px #0006;border-radius:14px;text-align:center;color:#70542c;font-weight:bold;font-size:13px}#score-revive-actions>div>span{font-size:11px;font-weight:normal;margin-left:10px;color:#a18a64}.score-actions{display:flex;gap:8px;margin-top:10px}.score-actions button{flex:1;font-size:12px!important;padding:10px 8px}.score-actions button+button{border:1px solid #cfb481;border-radius:10px;background:#fff3d7;color:#886b3c}#score-revive-actions .notice{font-size:10px;font-weight:normal}
@media(max-width:480px){.temple-mask{padding:14px}.auth-panel,.shop-panel{max-height:calc(100dvh - 28px)}.auth-panel{padding:25px 24px 18px}.shop-panel{padding:0 16px 13px}.shop-header{padding:19px 0 13px}.shop-header h1{font-size:22px}#game-account{right:10px;top:max(10px,env(safe-area-inset-top));gap:7px}.wallet{height:33px;min-width:92px;font-size:18px!important;padding-left:27px;gap:6px}.wallet img{width:41px;height:41px}.revive-wallet{min-width:64px}.account-button{padding:6px 10px;max-width:75px;font-size:12px!important}.package-row{min-height:74px}.package-gems{font-size:17px}.package-list{max-height:44dvh}}
@media(max-height:560px) and (min-width:600px){.shop-panel{max-width:560px}.package-list{max-height:32dvh}.shop-header{padding:12px 0 7px}.shop-header p{display:none}.shop-balances{padding:5px 10px}.shop-caption{padding:6px 3px}.exchange-bar{padding:7px 10px}.auth-panel{padding:18px 30px}.temple-mark{width:48px;height:48px;margin:0 auto 8px}.temple-mark img{width:44px;height:44px}.auth-panel h1{font-size:20px}.auth-intro{margin-bottom:8px}.auth-tabs{margin-bottom:6px}#auth-form label{margin:8px 0}#auth-form input{padding:8px 10px}.auth-panel>.text-button{margin-top:5px}}
