:root{color-scheme:light;--shop-width:560px;--brown:#654e38;--muted:#97796a;--cream:#fff3c4;--ground:#b98576}

.my-orders{position:absolute;right:3.5%;top:calc(9% + 48px);padding:5px 14px;border:0;background:url('/assets/game/dialog_comm_bt_0004.png') center/100% 100% no-repeat;min-height:34px;color:#745b2a;font-weight:800;font-size:13px}
.game-download{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 16px;background:url('/assets/game/dialog_comm_bt_0003.png') center/100% 100% no-repeat;color:#355e83;font-size:13px;font-weight:800;text-decoration:none}
.shop-download{position:absolute;right:3.5%;top:calc(9% + 88px)}
.auth-download{margin-top:20px;min-width:150px;min-height:44px;font-size:17px}
#orders-dialog{max-width:480px;overflow:hidden}
.orders-content{padding:12px 16px;max-height:calc(80vh - 120px);overflow:auto;overscroll-behavior:contain}
.orders-scope{margin:0 0 4px;text-align:center;font-weight:700}
.orders-list{display:grid;gap:10px}
.orders-more{display:block;margin:14px auto 0}
.orders-more:disabled{opacity:.6}
.first-bonus,.first-total,.purchase-reason{margin:4px 0;text-align:center;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.first-bonus{color:#b86020;font-weight:700}.first-total{color:#90642f}.purchase-reason{color:#a34d39}
.order-card{padding:12px;background:#fff3d2;border:1px solid #e5c58a;border-radius:7px;overflow-wrap:anywhere}
.order-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.order-state{flex:none;color:#9c702a;font-size:12px}
.order-card p{margin:5px 0 0;font-size:12px}
.order-card .order-amount{color:#c47730;font-size:18px;font-weight:800}
.order-id{user-select:text}
.orders-actions{display:flex;justify-content:center;padding:8px 16px 16px}
.orders-actions button{min-width:150px}
.orders-actions button:disabled{opacity:.6}

*{box-sizing:border-box}html{min-height:100%;background:#291b1c}body{margin:0;font:15px/1.4 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--brown)}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #71c7ff;outline-offset:3px}[hidden]{display:none!important}

.shop{max-width:var(--shop-width);min-height:100dvh;margin:auto;background:var(--ground);padding-bottom:calc(100px + env(safe-area-inset-bottom))}.shop-hero{position:relative;aspect-ratio:1080/850;isolation:isolate;overflow:hidden;background:#372016}.shop-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;z-index:-1}.shop-hero:after{content:"";position:absolute;inset:auto 0 0;height:28px;background:linear-gradient(transparent,var(--ground));z-index:-1}h1{position:absolute;top:7.4%;left:5%;margin:0;color:white;font-size:clamp(25px,6.8vw,38px);font-weight:900;font-style:italic;letter-spacing:2px;text-shadow:0 2px 2px #0868b8,0 0 8px #1383fc,0 0 17px #2788ff}h1:after{content:"✦";position:absolute;right:-24px;bottom:-9px;color:#a5ebff;font-size:20px;text-shadow:0 0 9px #2ab3ff}.wallet{position:absolute;right:3.5%;top:9%;display:flex;align-items:center;gap:4px;max-width:45%;border:1px solid #aa967690;background:#251c1cc7;color:#fff8db;border-radius:22px;padding:3px 9px 3px 4px;min-height:31px}.wallet img{width:27px;height:27px;object-fit:contain}.wallet span{font-size:11px;white-space:nowrap}.wallet strong{font-size:14px;min-width:18px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.speech{position:absolute;left:5%;top:28%;margin:0;padding:9px 12px;max-width:43%;border:1px solid #b4b4a9;border-radius:17px;background:#fffefb;color:#53636b;font-size:clamp(11px,3vw,16px);font-weight:700;box-shadow:0 2px 2px #0002}.speech:after{content:"";position:absolute;right:10px;bottom:-10px;width:15px;height:14px;background:#fffefb;clip-path:polygon(0 0,100% 0,100% 100%)}.role-picker{position:absolute;left:24%;right:24%;bottom:8%;display:flex;align-items:center;justify-content:center;gap:9px;background:#6f29886b;border:0;border-radius:3px;padding:6px 2px;color:white;font-size:clamp(12px,3.2vw,18px);font-weight:800;text-shadow:0 1px 2px #3b1d59}.role-picker span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.goods{padding:3px 3.6% 12px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 9px}.product-card{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:184px;padding:12px 7px 9px;border:0;background:transparent;isolation:isolate}.product-card:before{content:"";position:absolute;inset:0;border-style:solid;border-width:26px 0 22px;border-image-source:url('/assets/game/shangcheng_sp_0012.png');border-image-slice:74 0 55 fill;border-image-repeat:stretch;z-index:-1;filter:drop-shadow(0 2px 1px #81592e40)}.product-name{display:-webkit-box;min-height:34px;max-height:34px;margin:0 0 5px;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;color:#d6843c;font-size:clamp(11px,3.15vw,16px);line-height:17px;font-weight:800;word-break:break-all}.item-art{position:relative;width:76%;max-width:106px;aspect-ratio:1;background-size:100% 100%;background-repeat:no-repeat}.item-art>img{width:90%;height:90%;margin:5%;object-fit:contain;filter:drop-shadow(0 2px 2px #18053460)}.item-count{position:absolute;right:5%;bottom:2%;color:white;font-size:clamp(14px,3.8vw,20px);font-weight:800;line-height:1.1;text-shadow:-1px -1px #6a5260,1px -1px #6a5260,-1px 1px #6a5260,1px 1px #6a5260}.product-description{width:100%;margin:6px 0 5px;font-weight:600;text-align:center;font-size:clamp(10px,2.7vw,14px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price-button,.gold-button{border:1px solid #c7a14a;background:linear-gradient(#fff5b5 4%,#fff4b9 43%,#ffe56f 65%,#ffd765);color:#745b2a;box-shadow:inset 0 0 0 2px #fff4c4,0 2px 1px #98733760;border-radius:6px;font-weight:800;min-height:31px;position:relative}.price-button{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;width:80%;padding:2px 4px;margin-top:auto;white-space:nowrap;font-size:clamp(12px,3.15vw,17px)}.price-button:before,.price-button:after{content:"✦";font-size:8px;color:#dab35c;position:absolute;top:50%;transform:translateY(-50%)}.price-button:before{left:4px}.price-button:after{right:4px}.price-button img{width:20px;height:23px;object-fit:contain}.price-button:disabled{background:linear-gradient(#e5e8e8,#c7cdd0);border-color:#abb1b3;box-shadow:inset 0 0 0 2px #f1f2ef;color:#838c91}.price-button:disabled:before,.price-button:disabled:after{color:#bcc1c3}.preview-notice,.pending-notice{font-size:11px;color:#ffefc8;text-align:center;padding:7px 3px;margin:0 0 8px;background:#70493c45;border-radius:3px}.pending-notice{display:flex;align-items:center;justify-content:space-between;gap:8px}.pending-notice button,.reload{border:1px solid #ebd7a7;background:#fff0bf;border-radius:4px;padding:5px 9px;color:var(--brown)}.page-status{margin:25px auto;max-width:90%;color:#fff4db;text-align:center;font-weight:600}.page-status:empty{display:none}.page-note{text-align:center;font-size:11px;color:#ffefdd;margin:16px 0 8px;min-height:16px}.reload{display:block;margin:12px auto}.empty-icon{display:block;width:62px;height:62px;object-fit:contain;margin:28px auto 12px;opacity:.65}

.bottom-bar{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,var(--shop-width));height:calc(86px + env(safe-area-inset-bottom));padding:16px 12px calc(3px + env(safe-area-inset-bottom));background:linear-gradient(to bottom,#b98576,#bd8d7c);display:flex;justify-content:flex-end;align-items:stretch}.bottom-bar:before{content:"";position:absolute;top:6px;left:12px;right:12px;height:6px;border-style:solid;border-width:0 23px;border-image:url('/assets/game/dialog_comm_sp_0036.png') 0 60 fill / 0 23px stretch;filter:brightness(0) invert(1);opacity:.65;pointer-events:none}.category-tabs{display:flex;justify-content:flex-end;align-items:stretch;gap:6px;width:100%;min-width:0;padding-left:64px}.category-tab{position:relative;isolation:isolate;flex:0 1 23%;max-width:96px;min-width:64px;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;padding:0 2px;color:#fff9e9;font-size:clamp(13px,3.3vw,16px);line-height:18px;font-weight:900;text-shadow:-1px -1px #745339,1px -1px #745339,-1px 1px #745339,1px 1px #745339,0 2px 1px #745339}.category-tab:before{content:"";position:absolute;inset:-5px 0 -3px;z-index:-1;pointer-events:none}.category-tab[aria-selected=true]:before{background:url('/assets/game/shangcheng_sp_0003.png') center/100% 100% no-repeat;opacity:.6}.category-tab[aria-selected=true]{color:#fffde9}.category-tab img{width:52px;height:47px;object-fit:contain;filter:none}.category-tab[data-category=vouchers] img{width:56px}

dialog{width:calc(100% - 34px);max-width:390px;padding:0;border:2px solid #accedc;border-radius:7px;background:#faf7ee;color:#586b78;box-shadow:0 5px 20px #0006}dialog::backdrop{background:#071827ad}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;background:linear-gradient(90deg,#76b5d6,#9ed5e6);border-bottom:1px solid #d2eff3;color:white}.dialog-head h2{font-size:19px;margin:0;font-weight:800;text-shadow:0 1px #6e9fbb}.dialog-close{color:white;border:0;background:none;font-size:29px;font-weight:600;line-height:25px}.dialog-content{padding:17px}.dialog-content label{display:block;margin:0 0 12px;font-size:14px;font-weight:600}.dialog-content input,.dialog-content select{display:block;width:100%;margin-top:5px;padding:9px 10px;min-height:40px;background:white;border:1px solid #c4d0d5;border-radius:4px;color:#566b78}.form-note{font-size:13px;margin:0 0 16px}.form-status{font-size:13px;color:#a06c46;min-height:18px;margin:9px 0;white-space:pre-wrap}.gold-button{padding:7px 18px;min-height:38px}.dialog-content>.gold-button{width:100%}.secondary-button{border:1px solid #b8c5cb;box-shadow:inset 0 0 0 2px white;border-radius:6px;background:#f1f4f5;color:#6c7f8b;font-weight:600;min-height:38px;padding:7px 18px}.notice-text{margin:7px 0 23px;text-align:center;font-size:15px;white-space:pre-line;overflow-wrap:anywhere}.notice-actions{display:flex;justify-content:center;gap:20px}.notice-actions button{min-width:95px}.role-list button{display:block;width:100%;text-align:left;padding:12px;border:1px solid #b6cfdd;background:#eaf3f7;color:#506d80;border-radius:4px;font-weight:600}.role-list small{display:block;font-size:12px;font-weight:400;margin-top:4px}.role-list .selected{border-color:#bfa25a;background:#fff2c6}#logout{display:block;margin:16px auto 0;font-size:13px}

@media(min-width:500px){.product-grid{gap:14px 12px}.product-card{min-height:240px;padding:15px 12px 13px}.product-name{font-size:16px;min-height:40px;max-height:40px;line-height:20px}.product-description{font-size:14px;margin:8px 0}.price-button{min-height:34px}.wallet{padding:5px 12px}.wallet span{font-size:14px}.wallet strong{font-size:18px}.wallet img{width:34px;height:34px}.shop{box-shadow:0 0 45px #0008}}

@media(max-width:340px){.goods{padding-left:8px;padding-right:8px}.product-grid{gap:7px 5px}.product-card{padding:11px 5px 8px;min-height:174px}.price-button img{width:16px;height:19px}.price-button:before,.price-button:after{display:none}.speech{padding:7px 8px}.offer-card{grid-template-columns:47px 1fr 80px;padding:12px 9px;gap:7px}.offer-card>img{width:45px;height:52px}.offer-card h2{font-size:18px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.auth-page{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;max-width:600px;min-height:100dvh;margin:auto;padding:clamp(65px,13dvh,130px) 24px 64px;background:#162c56 url('/assets/game/init_background.png') center top/cover no-repeat;color:#303e4b}

.auth-page:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 60%,#03102560)}


.auth-brand{width:100%;text-align:center;margin:0 0 clamp(22px,4dvh,42px);color:white}

.game-wordmark{display:block;width:100%;max-width:450px;height:auto;margin:0 auto;object-fit:contain}

.auth-brand-caption{margin:8px 0 0;padding-left:10px;color:#effbff;font-size:30px;font-weight:800;letter-spacing:10px;text-shadow:0 2px 2px #285a9a,0 0 9px #168aff}

.account-panel{position:relative;flex:none;width:100%;max-width:436px;min-height:300px;padding:22px 26px 27px;background:url('/assets/game/auth_panel.png') center/100% 100% no-repeat}

.account-panel.is-register{min-height:425px;background-image:url('/assets/game/auth_register_panel.png')}

.auth-tabs{display:flex;justify-content:center;gap:38px;margin:0 0 20px}

.auth-tabs button{padding:3px 3px 8px;color:#6687b5;border:0;border-bottom:1px solid transparent;background:none;font-size:17px}

.auth-tabs button[aria-selected=true]{color:#375f9e;border-bottom-color:#7ea8e2}

.auth-tabs button:disabled{cursor:wait}

.account-panel .dialog-content{padding:0}

.account-panel .auth-form label{position:relative;display:block;margin:0 0 14px;font-weight:400}

.account-panel .auth-form input{display:block;width:100%;min-height:46px;margin:0;padding:10px 28px 9px 0;background:transparent;border:0;border-bottom:1px solid #91afc759;border-radius:0;box-shadow:none;font-size:17px;color:#303e4b}

.account-panel .auth-form input::placeholder{color:#7da7de;opacity:1}

.password-toggle{position:absolute;right:0;top:10px;width:24px;height:24px;background:url('/assets/game/auth_password_gone.png') center/contain no-repeat;border:0}

.password-toggle[aria-pressed=true]{background-image:url('/assets/game/auth_password_visible.png')}

.account-panel .form-status{min-height:18px;color:#9b573f;font-size:12px;margin:3px 0 10px;overflow-wrap:anywhere}

.auth-submit{display:block;width:calc(100% + 12px);margin:0 -6px;min-height:46px;aspect-ratio:828/114;border:0;background:url('/assets/game/auth_button.png') center/100% 100% no-repeat;color:white;font-size:20px;font-weight:400;letter-spacing:3px;text-shadow:0 1px 2px #5a82c1}

.auth-submit:disabled{opacity:.6;cursor:wait}

.auth-caption{text-align:center;font-size:10px;color:#6b87a8;line-height:1.7;margin:15px 0 0}

@media(min-width:600px){.auth-page{box-shadow:0 0 45px #0008}}

@media(max-width:350px){.auth-page{padding-left:16px;padding-right:16px;padding-top:65px}.account-panel{padding:18px 24px 23px;min-height:286px}.account-panel.is-register{min-height:400px}.auth-brand{margin-bottom:20px}.account-panel .auth-form input{font-size:16px;min-height:43px}.auth-tabs{margin-bottom:10px}.auth-submit{font-size:19px;min-height:41px}}



.voucher-pricing{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 6px;width:100%;margin:6px 0;font-size:clamp(10px,2.7vw,13px);line-height:18px}.discount-label{color:#c56b2b;font-weight:800}.original-price{color:#a08b70;font-size:.9em}.offer-status{font-size:10px;line-height:16px;margin-top:3px;color:#a08b70}.voucher-card .price-button{min-height:28px}



/* Shared game prompt skin; textures are copied from the original commAtlas. */

dialog{width:calc(100% - 40px);max-width:440px;max-height:calc(100dvh - 32px);border:2px solid #aebbc3;border-radius:12px;background:linear-gradient(#faf8f2 82%,#e6f2ff);color:#5c5e6b;box-shadow:0 3px 3px #0005;overflow:visible}

dialog::backdrop{background:#080c1cb3}

.dialog-head{position:relative;min-height:40px;padding:3px 7px 3px 36px;border:0;border-bottom:1px solid #c9e4ee;border-radius:10px 10px 0 0;background:linear-gradient(100deg,#71b2d6,#83c5df)}

.dialog-head:before{content:"";position:absolute;pointer-events:none;left:-20px;top:-8px;width:190px;height:64px;background:url('/assets/game/dialog_comm_sp_0078.png') left center/100% 100% no-repeat;opacity:.42}

.dialog-head h2{position:relative;font-size:21px;line-height:30px;font-style:italic;font-weight:900;color:#f7fdff;text-shadow:0 2px 1px #4c7996,-1px 0 #7da7bf,1px 0 #7da7bf;letter-spacing:1px}

.dialog-close{position:relative;flex:none;width:36px;height:36px;padding:3px;border:0;background:none;line-height:1}

.dialog-close img{display:block;width:100%;height:100%;object-fit:contain}

#notice-dialog .dialog-content{padding:0 14px 0}

.notice-text{display:flex;align-items:center;justify-content:center;min-height:166px;margin:0;padding:26px 14px;max-height:55dvh;overflow:auto;font-size:17px;line-height:1.7;font-weight:700;text-align:center;white-space:pre-line;overflow-wrap:anywhere}

.notice-actions{position:relative;min-height:106px;display:flex;justify-content:center;align-items:center;gap:20px;padding:30px 18px 16px}

.notice-actions:before{content:"";position:absolute;top:0;left:0;right:0;height:8px;border-style:solid;border-width:0 30px;border-image:url('/assets/game/dialog_comm_sp_0036.png') 0 60 fill / 0 30px stretch;opacity:.4}

dialog .gold-button,dialog .secondary-button{position:relative;min-height:48px;padding:6px 22px;border:0;border-radius:0;box-shadow:none;background: url('/assets/game/dialog_comm_bt_0004.png') center/100% 100% no-repeat;color:#846631;font-size:18px;font-weight:800;text-shadow:0 1px #fffae2;isolation:isolate}

dialog .secondary-button{background-image:url('/assets/game/dialog_comm_bt_0003.png');color:#4d758d;text-shadow:0 1px #e1f7ff}

dialog .gold-button:before,dialog .secondary-button:before{content:"";position:absolute;inset:4px 6px;background:#fff;opacity:.26;border-radius:24px;z-index:-1}

.notice-actions button{width:176px;max-width:calc(50% - 10px);min-width:0;flex:0 1 176px;white-space:nowrap}

.notice-actions button:only-child,.notice-actions button[hidden]+button{max-width:70%}

#role-dialog .dialog-content{max-height:calc(100dvh - 96px);overflow:auto}

@media(max-width:400px){.dialog-head h2{font-size:19px}.dialog-head{padding-left:30px}.notice-text{min-height:140px;font-size:15px;padding:22px 10px}.notice-actions{min-height:92px;gap:14px;padding:25px 8px 14px}dialog .gold-button,dialog .secondary-button{font-size:16px;min-height:42px;padding:5px 12px}.notice-actions button{max-width:calc(50% - 7px)}}


/* Game shell exposes only closeMall; layout and artwork stay in H5. */
.game-controls{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,var(--shop-width));height:0;pointer-events:none}.game-return{position:absolute;left:16px;bottom:calc(8px + env(safe-area-inset-bottom));width:56px;height:56px;padding:0;border:0;background:none;pointer-events:auto}.game-return img{display:block;width:100%;height:100%;object-fit:contain}

/* Compact voucher cards: title, artwork, reward details, then price. */
.voucher-card{min-height:170px;padding:20px 6px 22px;justify-content:center;align-items:center;text-align:center;gap:3px}
.voucher-card .product-name{font-size:clamp(12px,3.1vw,16px);line-height:18px;min-height:18px;max-height:36px;margin:0 0 2px}
.voucher-card .item-art{width:72%;max-width:92px;margin:0 auto 2px;flex-shrink:0}
.voucher-card .item-count{font-size:clamp(12px,3.1vw,16px)}
.voucher-card .first-bonus,.voucher-card .first-total,.voucher-card .purchase-reason{width:100%;font-size:clamp(9px,2.35vw,11px);line-height:15px;margin:0;font-weight:500;text-align:center}
.voucher-card .price-button{font-size:clamp(11px,2.8vw,14px);min-height:26px;margin:0 auto;flex-shrink:0}
