:root{font-family:"Microsoft YaHei",sans-serif;color:#283d4a;background:#e8f6fa}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:0;border-radius:12px;padding:11px 18px;background:#247b91;color:white}button:disabled{opacity:.55;cursor:wait}button.secondary{background:#e1edf0;color:#294751}[hidden]{display:none!important}#app{height:100dvh;max-width:960px;margin:auto;display:flex;flex-direction:column}header{min-height:62px;display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;z-index:2}header strong{font-size:16px}#wallet{margin-left:auto;font-size:13px}#gameFrame{width:100%;flex:1;border:0;background:#e8f6fa}#cover{margin:auto;text-align:center;color:#58717f}#cover img{border-radius:30px}.overlay{position:fixed;inset:0;background:#17343e99;z-index:10;display:grid;place-items:center;padding:20px}.overlay section{background:#fff;border-radius:22px;padding:24px;width:min(460px,100%);max-height:90dvh;overflow:auto;box-shadow:0 20px 70px #17343e44}.dialog-heading{display:flex;align-items:center;justify-content:space-between}h1{font-size:23px;margin:0 0 12px}#closeDialog{background:transparent;color:#365463;padding:0 4px;font-size:28px}.actions{display:flex;gap:10px;margin-top:22px}.actions button{flex:1}.exchange{padding:16px;background:#f0f7f8;border-radius:14px;margin:16px 0}.exchange input{width:100%;padding:10px;border:1px solid #9bbdc6;border-radius:8px;margin:8px 0}.item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #e5edef}.item small{display:block;color:#667d86;margin-top:5px}#status{color:#ad3e37;font-size:14px;min-height:20px}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203f4eef;color:white;padding:12px 22px;border-radius:12px;z-index:20;max-width:90%;text-align:center}@media(max-width:480px){header{gap:7px;padding:8px}header strong{font-size:14px}#wallet{font-size:12px}header button{padding:9px 12px}.overlay section{padding:20px}}

/* 英文标题和余额在窄屏换行，避免挤压商城入口。 */
header{flex-wrap:wrap}header strong{flex:1;min-width:140px}#wallet{white-space:nowrap}#cover p{padding:0 20px}.item>div{min-width:0}.item button{flex-shrink:0}
