*{box-sizing:border-box}body{margin:0;background:#10142b;color:#f7f5ff;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif}.page{max-width:1100px;margin:auto;padding:16px}header{display:flex;align-items:center;justify-content:space-between;gap:16px}h1{font-size:clamp(20px,4vw,30px);margin:2px 0 12px}small{color:#b9b6df}.wallet,.tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wallet span{background:#242a4b;padding:8px 12px;border-radius:12px}.wallet b{color:#ffda73}button,.button{border:0;border-radius:12px;background:#ffcf67;color:#302044;padding:10px 15px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}button:disabled{opacity:.45;cursor:not-allowed}.game-wrap{position:relative;width:min(100%,780px);height:min(70vh,720px);min-height:360px;margin:auto;background:#070b1d;border:1px solid #454275;border-radius:18px;overflow:hidden}iframe{width:100%;height:100%;border:0}.loading{position:absolute;inset:0;display:grid;place-items:center;background:#121830;color:#ddd}.tools{justify-content:center;margin-top:12px}.tools button{background:#343864;color:white}.tools small{display:block}.hint{text-align:center;color:#cbc7e4;font-size:14px}.overlay{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#080b1dd9}.overlay[hidden]{display:none}.dialog{width:min(100%,430px);border:1px solid #8d7bc7;border-radius:22px;padding:26px;background:#242448;box-shadow:0 20px 60px #0009}.dialog h2{margin:0 0 12px}.dialog p{line-height:1.6;color:#e3def7}.dialog .error{color:#ffb6ae;min-height:1.5em}.dialog input{width:100%;padding:10px;border-radius:8px;border:1px solid #aaa;font:inherit}.actions{display:flex;flex-wrap:wrap;gap:8px}.secondary{background:#555478;color:white}@media(max-width:600px){.page{padding:10px}header{align-items:flex-start;flex-direction:column;gap:2px}.wallet{font-size:13px}.wallet span{padding:6px}.game-wrap{height:60vh;min-height:320px}.tools button{font-size:13px;padding:8px}.hint{margin:8px}}

[hidden]{display:none!important}
