.auth-locked .game-app,.auth-locked .desktop-notes,.auth-locked .desktop-title{display:none}
.auth-locked .world-backdrop{inset:0;filter:none;background:linear-gradient(#17382c12,#102b253d),url('assets/dl_bg_003.webp') center/cover}
.auth-locked #account-dialog .dialog-close{display:none}
.login-gate{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#eee7cd;text-shadow:0 2px 8px #163429}
.login-gate>span{display:grid;place-items:center;width:57px;height:64px;border:3px double #e2c8a3;background:#883f34;font:40px var(--serif)}
.login-gate h1{font:34px var(--serif);letter-spacing:5px;margin:23px 0 12px}.login-gate p{font:17px var(--serif);letter-spacing:9px}.login-gate small{font-size:12px;color:#d6dfc5;margin-top:25px}
body:has(#account-dialog[open]) .login-gate{visibility:hidden}

/* The original mountain painting and two APK heroes frame the account form. */
#account-dialog{width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;background:rgba(243,237,215,.9);border:1px solid #d6c9a7;border-radius:6px;backdrop-filter:blur(7px);overscroll-behavior:contain;scroll-padding:18px;box-shadow:0 20px 65px #17382c45}
#account-dialog::backdrop{background:#18372b26;backdrop-filter:none}
.login-scene{height:140px;position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(0deg,#f3edd7,transparent 65%),url('assets/dl_bg_003.webp') center 43%/100% auto}
.login-hero{position:absolute;bottom:1px;width:auto;height:131px;object-fit:contain;filter:drop-shadow(0 4px 3px #29453526);user-select:none;pointer-events:none}
.login-hero-left{left:25px;transform:rotate(-5deg)}
.login-hero-right{right:24px;height:127px;transform:rotate(5deg)}
.login-brand{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;padding-top:17px;font-family:var(--serif);color:#233e31;text-shadow:0 1px 0 #fff5dc,0 0 12px #f6edcd}
.login-brand>span{font-size:25px;letter-spacing:3px;line-height:1.15}
.login-brand>strong{font-size:45px;letter-spacing:7px;line-height:1.2;font-weight:700;padding-left:7px}
.login-brand>small{font-size:11px;letter-spacing:4px;padding-left:4px;margin-top:4px;color:#536348}
#account-dialog form{padding:0 28px}
#account-dialog .dialog-close{z-index:2}
#account-dialog h2{font-size:22px;line-height:1.3;margin:0 0 5px;letter-spacing:3px}
#account-dialog #auth-desc{font-size:11px;line-height:1.7;color:#57664d;margin:0}
#account-dialog .auth-tabs{margin:12px 0 10px}
#account-dialog .auth-tabs button{padding:9px;min-height:38px;color:#617154}
#account-dialog .auth-tabs .active{color:#254b35;border-color:#456c50}
#account-dialog label{margin:10px 0;color:#3f563e}
#account-dialog input{margin-top:5px;min-height:44px;padding:10px 12px;font-size:16px;background:#fffbeecc;border-color:#a2ad8d}
#account-dialog input::placeholder{font-size:11px;color:#738067}
#account-dialog :is(input,button):focus-visible{outline:2px solid #456c50;outline-offset:3px}
#account-dialog .form-error{margin:7px 0 9px}
#account-dialog .form-error:empty{display:none}
#account-dialog .primary-button{margin-top:3px;min-height:44px;padding:8px;font-size:20px}
#account-dialog .form-note{margin:9px 0 0!important;font-size:10px;line-height:1.8;color:#5d6c51}
.login-attribution{margin-top:15px;padding:13px 24px 14px;border-top:1px solid #93a38152;background:#d8e1c54d;color:#485c43;font-size:11px;line-height:1.75}
.login-attribution dl{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;margin:0}
.login-attribution dl>div{min-width:0}
.login-attribution .copyright-wide{grid-column:1/-1;display:flex;justify-content:center;gap:8px}
.login-attribution dt{color:#667458;flex-shrink:0}
.login-attribution dd{margin:0;overflow-wrap:anywhere}
.login-attribution .copyright-number{display:flex;justify-content:center;gap:6px;margin-top:2px;font-size:10px}
.login-attribution .healthy-gaming{display:grid;grid-template-columns:1fr 1fr;gap:2px 4px;margin:10px 0 0;padding-top:9px;border-top:1px solid #93a3813d;font-size:10px;line-height:1.8;text-align:center;color:#59694f}
.login-attribution .healthy-gaming span{display:block}
@media(max-width:380px){
  #account-dialog form{padding:0 18px}
  .login-scene{height:126px}
  .login-hero{height:112px}.login-hero-left{left:10px}.login-hero-right{right:10px;height:110px}
  .login-brand{padding-top:14px}.login-brand>span{font-size:22px}.login-brand>strong{font-size:40px}
  .login-attribution{padding:12px 12px 13px;font-size:10px}
  .login-attribution .copyright-wide{gap:6px}
  .login-attribution .copyright-number{flex-direction:column;align-items:center;gap:0}
}
@media(max-height:690px){.login-scene{height:112px}.login-hero{height:105px}.login-hero-right{height:102px}.login-brand{padding-top:10px}.login-brand>span{font-size:22px}.login-brand>strong{font-size:36px}.login-brand>small{margin-top:1px}}
@media(max-width:350px){.login-attribution .healthy-gaming{grid-template-columns:1fr;gap:1px}}
.recharge-entry{display:flex;align-items:center;width:100%;gap:10px;text-align:left;border:1px solid #8d9e74;background:linear-gradient(115deg,#dce5c8,#f0e2bb);padding:9px 12px;margin:0 0 13px;box-shadow:inset 0 0 0 3px #f9efd540}
.recharge-entry>img{width:61px;height:57px}.recharge-entry>span{flex:1}.recharge-entry strong{display:block;font:21px var(--serif);color:#304d36}.recharge-entry small{display:block;font-size:10px;color:#65754f;margin-top:6px}.recharge-entry em{font-size:10px;font-style:normal;color:#816334;border:1px solid #ba9e6a;padding:3px 5px}.recharge-entry>b{font:22px var(--serif);color:#677a52}
.page-recharge{padding:14px 14px 0;background:linear-gradient(#e6e7cf50,#ebdfbf50)}
.recharge-wallet{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-top:1px solid #8e9f74;border-bottom:1px solid #8e9f74;background:linear-gradient(110deg,#d5dec0bb,#f2ead2a6);position:relative}
.recharge-wallet p{font:14px var(--serif);color:#53674a;margin:0 0 5px}.recharge-wallet strong{display:block;font:32px Georgia,serif;line-height:1.15;color:#314e38}.recharge-wallet strong small{font:12px var(--sans);margin-left:8px;color:#647153}.recharge-wallet>div>span{display:block;font-size:10px;color:#5b6c4d;line-height:1.8;margin-top:7px;overflow-wrap:anywhere}.recharge-wallet>img{width:105px;height:102px;margin-left:12px;filter:drop-shadow(0 7px 5px #4c613332)}
.recharge-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#75623b;margin:12px 0 16px}.recharge-status>span{border:1px solid #a98a55;padding:1px 5px;white-space:nowrap;background:#e7d9b4}
.recharge-section-title{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:9px}.recharge-section-title h2{font:19px var(--serif);margin:0;letter-spacing:2px}.recharge-section-title>span{font-size:10px;color:#798164}
.recharge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.recharge-pack{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;border:1px solid #a1aa83;border-radius:3px;padding:9px 5px 0;background:#f5edd7b8;color:#354b34;box-shadow:inset 0 0 0 3px #fff7df88;overflow:hidden;transition:border-color .15s,background .15s}
.recharge-pack.selected{border:2px solid #567847;padding:8px 4px 0;background:#e9eed5;box-shadow:inset 0 0 0 2px #b6c39955}
.recharge-pack>img{width:87px;height:61px;filter:drop-shadow(0 4px 3px #566a3726)}.recharge-pack>strong{font:24px Georgia,serif;line-height:1.2;margin-top:2px}.recharge-pack>strong small{font:11px var(--sans);margin-left:5px}.first-purchase{font-size:10px;color:#8b5d2c;margin:6px 0 9px}.recharge-pack>b{display:block;align-self:stretch;border-top:1px solid #a8af8780;padding:7px 0;background:#dce1c370;color:#435936;font:17px Georgia,serif;letter-spacing:.4px}.recharge-check{position:absolute;right:5px;top:4px;color:#fff;background:#567847;width:17px;height:17px;line-height:17px;border-radius:50%;font-size:11px;opacity:0}.selected>.recharge-check{opacity:1}
.recharge-help{padding:16px 1px 12px}.recharge-help h2{font:15px var(--serif);margin:0 0 8px}.recharge-help p{font-size:10px;color:#6c7759;margin:5px 0;line-height:1.8}
.recharge-summary{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 -14px;padding:10px 14px;background:#ece5cdef;border-top:1px solid #a3a77d;box-shadow:0 -4px 13px #5662421a;backdrop-filter:blur(8px)}.recharge-summary>div{min-width:0}.recharge-summary small,.recharge-summary span{display:block;font-size:10px;color:#657351}.recharge-summary strong{display:block;font:25px Georgia,serif;color:#795326;line-height:1.2;margin:3px 0}.recharge-summary>.gold-button{min-height:43px;font:16px var(--serif);padding:9px 16px;white-space:nowrap}
.recharge-confirm{text-align:center}.recharge-confirm .checkout-brand{font:12px var(--serif);letter-spacing:3px;color:#7a825f;margin:0 0 7px}.recharge-confirm h2{margin:5px 0 10px}.checkout-jade{width:100px;height:77px}.checkout-total{display:block;font:36px Georgia,serif;line-height:1.3;color:#805b28;margin:3px 0 16px}.recharge-confirm dl{border-top:1px solid #a3ad83;border-bottom:1px solid #a3ad83;padding:10px 0;margin:0;text-align:left;font-size:12px;line-height:1.8}.recharge-confirm dl>div{display:flex;justify-content:space-between;gap:14px;padding:3px 0}.recharge-confirm dt{color:#697958;flex-shrink:0}.recharge-confirm dd{margin:0;text-align:right;overflow-wrap:anywhere}.recharge-confirm .checkout-receive{margin-top:6px;padding-top:7px;border-top:1px dashed #afb58d;color:#47653a;font-weight:bold}.recharge-confirm .checkout-notice{font-size:11px;color:#7b693f;margin:13px 0}.recharge-confirm .wide-button{display:block;margin-top:10px;min-height:41px;width:100%}.recharge-confirm button:disabled{opacity:.65}
@media(max-width:360px){.page-recharge{padding-left:10px;padding-right:10px}.recharge-summary{margin-left:-10px;margin-right:-10px;padding:9px 10px}.recharge-wallet{padding:12px}.recharge-wallet>img{width:83px;height:85px}.recharge-grid{gap:8px}.recharge-pack>img{height:55px}.recharge-summary>.gold-button{font-size:14px;padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){.recharge-pack{transition:none}}

#account-btn{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pay-dialog{padding:0!important;width:min(92vw,520px);max-height:86dvh;overflow:auto;border:3px solid #d4ae24;border-radius:14px;background:#f7f8fa;color:#27313d;box-shadow:0 18px 60px #0008;font-family:system-ui,"Microsoft YaHei",sans-serif}#pay-dialog::backdrop{background:#000a}#pay-dialog .pay-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;background:#171b24;text-align:left}#pay-dialog .pay-header p{color:#d5d9e2;font-size:13px;margin:0 0 6px;line-height:1.4}#pay-dialog .pay-header h2{color:#ffd72e;font:700 22px system-ui;margin:0}#pay-close{width:34px;height:34px;padding:0;border:0;background:transparent;color:#a5abb6;font-size:31px;line-height:31px}#pay-dialog .pay-body{padding:24px 22px 12px}#pay-dialog dl{margin:0}.pay-field{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:50px;margin-bottom:12px;border:1px solid #d9dde3;border-radius:10px;background:#fff;overflow:hidden}.pay-field dt,.pay-field dd{display:flex;align-items:center;padding:12px 14px;box-sizing:border-box;font-size:16px;margin:0;overflow-wrap:anywhere;min-width:0}.pay-field dt{justify-content:center;border-right:1px solid #d9dde3;background:#f7f8fa;color:#3f4855}.pay-field dd{color:#5a6470}.pay-field .pay-amount{color:#d95b35;font-weight:700}#pay-dialog .pay-tip{color:#6f7782;font-size:13px;line-height:1.7;margin:15px 4px 0}#pay-error{color:#b23d33;font-size:13px;line-height:1.7}#pay-error:empty{display:none}.pay-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:12px;padding:0 22px calc(22px + env(safe-area-inset-bottom))}.pay-actions button{min-height:50px;border:0;border-radius:10px;font-size:18px;font-weight:700}#pay-cancel{background:#e8ebef;color:#59636f}#pay-submit{background:#169f94;color:white;box-shadow:0 5px 12px #29c1b547}#pay-submit:disabled{opacity:.58}@media(max-width:430px){#pay-dialog{width:96vw}.pay-field{grid-template-columns:90px minmax(0,1fr)}#pay-dialog .pay-header{padding:14px 16px}#pay-dialog .pay-body{padding:18px 14px 10px}.pay-field dt,.pay-field dd{padding:10px;font-size:14px}.pay-actions{padding:0 14px calc(16px + env(safe-area-inset-bottom))}}
