:root{--ink:#1f2d3d;--water:#0b3b4f;--accent:#2b7de9;--panel:#ffffffeb;--hud-ink:#fff;--hud-soft:#fffc;--hud-gold:#ffd166;--hud-sky:#8fdcff;--hud-coral:#ff9a8a;--hud-shadow:0 1px 2px #061c2899, 0 0 10px #061c2866;font-family:-apple-system,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}html,body{background:var(--water);height:100%;color:var(--ink);margin:0;overflow:hidden}#stage,#stage canvas{touch-action:none;width:100%;height:100%;display:block;position:fixed;inset:0}#hud{pointer-events:none;width:360px;max-width:calc(100vw - 330px);color:var(--hud-ink);text-shadow:var(--hud-shadow);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#08283857;border-radius:14px;padding:8px 14px;font-size:13px;line-height:1.45;position:fixed;top:12px;left:12px}#hud .hud-bar{pointer-events:auto;font:inherit;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;outline:none;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:0;display:flex}#hud .hud-title{flex-wrap:wrap;align-items:baseline;gap:10px;min-width:0;display:flex}#hud .day{letter-spacing:.02em;min-width:4.6em;font-size:18px;font-weight:400;display:inline-block}#hud .clock{font-variant-numeric:tabular-nums;min-width:5ch;color:var(--hud-soft);font-size:13px;display:inline-block}#hud .dot{background:#ff5d4f;border-radius:50%;align-self:center;width:8px;height:8px;display:inline-block;box-shadow:0 0 0 3px #ff5d4f59}#hud .hud-meta{color:var(--hud-sky);font-size:12.5px;font-weight:400}#hud .hud-chev{white-space:nowrap;color:var(--hud-soft);border:1px solid #ffffffb3;border-radius:999px;flex:none;padding:2px 8px;font-size:12px;font-weight:400}#hud .hud-body{pointer-events:auto;flex-direction:column;gap:10px;margin-top:10px;display:flex}#hud .hud-body[hidden]{display:none}#hud .hud-stats{white-space:nowrap;pointer-events:none;flex-direction:row;align-items:center;gap:8px;display:flex;position:absolute;top:0;left:calc(100% + 8px)}#hud .hud-growth,#hud .hud-points{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--hud-soft);background:#08283857;border-radius:999px;align-items:center;gap:8px;padding:4px 12px;font-size:12px;display:flex}#hud .hud-growth-bar{background:#ffffff47;border-radius:2px;width:72px;height:4px;overflow:hidden}#hud .hud-growth-bar i{background:linear-gradient(90deg, var(--hud-gold), var(--hud-sky));border-radius:2px;height:100%;transition:width .3s;display:block}#hud .hud-growth-v,#hud .hud-points-v{font-variant-numeric:tabular-nums}#hud .hud-points-v{color:var(--hud-gold);font-size:14px}#hud .warn{color:var(--hud-coral);font-size:12px;font-weight:400}#hud .warn:before{content:"● ";color:#ff5d4f}#hud .tiles{grid-template-columns:repeat(3,max-content);gap:8px 22px;margin-top:8px;display:grid}#hud .tile{flex-direction:column;min-width:0;display:flex}#hud .tile-k{color:var(--hud-soft);font-size:11px}#hud .tile-v{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:15px;font-weight:400}#hud .slots{flex-wrap:wrap;align-items:center;gap:6px;display:flex}#hud .slots-k{width:30px;color:var(--hud-soft);flex:none;font-size:11px}#hud .slots .chip{border:1px solid #fff9;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:400;display:inline-block}#hud .slots .chip.has{border-color:var(--hud-sky);color:var(--hud-sky)}#hud .slots .chip.empty{color:var(--hud-soft);border:1px dashed #ffffff80;font-weight:400}#hud .hud-toasts{flex-direction:column;align-items:flex-start;gap:4px;margin-top:8px;display:flex}#hud .toast{max-width:36em;color:var(--hud-ink);overflow-wrap:anywhere;padding:1px 0 1px 14px;font-size:12.5px;font-weight:400;line-height:1.5;animation:.25s ease-out toast-in;position:relative}#hud .toast:before{content:"";background:var(--hud-gold);border-radius:50%;width:6px;height:6px;margin-top:-3px;position:absolute;top:50%;left:0;box-shadow:0 0 0 1px #061c2859,0 0 6px #061c2859}@keyframes toast-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}#setWrap{position:relative}#settings{z-index:5;width:320px;color:var(--hud-ink);text-shadow:var(--hud-shadow);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#08283857;border-radius:14px;padding:14px 16px 16px;position:absolute;top:calc(100% + 8px);right:0}#settings[hidden]{display:none}#settings .account-row{color:var(--hud-soft);justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.login label{color:var(--hud-soft);gap:4px;margin-top:10px;font-size:13px;display:grid}.login input{font:inherit;color:var(--hud-ink);background:#ffffff1f;border:1px solid #ffffff59;border-radius:8px;padding:8px 10px}.login-msg{min-height:1.6em;color:var(--hud-soft);margin:8px 0 0;font-size:12.5px}button.btn:disabled{opacity:.5;cursor:default}#settings .settings-title{margin-bottom:10px;font-size:14px;font-weight:700}#settings .keys-group+.keys-group{margin-top:14px}#settings .keys-group h3{letter-spacing:.04em;color:var(--hud-sky);margin:0 0 6px;font-size:11.5px;font-weight:400}#settings .keys{gap:6px;margin:0;padding:0;font-size:13px;list-style:none;display:grid}#settings .keys li{min-width:0;color:var(--hud-soft);grid-template-columns:92px 1fr;align-items:center;gap:12px;display:grid}#settings .keys kbd{text-align:center;white-space:nowrap;min-width:26px;color:var(--hud-ink);text-shadow:none;background:#ffffff1f;border:1px solid #ffffff73;border-radius:6px;justify-self:start;padding:1px 8px;font-family:inherit;font-size:11.5px;font-weight:600;line-height:1.6}#overlay:empty{display:none}#overlay{background:#05192399;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.panel{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--hud-ink);text-shadow:var(--hud-shadow);background:#08283857;border-radius:14px;width:100%;max-width:560px;max-height:100%;padding:16px 18px;overflow:auto}.panel h2{color:var(--hud-ink);margin:0 0 6px;font-size:15px;font-weight:700}.panel p{margin:6px 0;line-height:1.6}.panel .hint{color:var(--hud-soft);font-size:12px}.card,.away-log{max-width:460px}.log-sub{color:var(--hud-soft);margin:0 0 12px;font-size:12.5px}.log-list{grid-template-columns:max-content 1fr;max-height:50vh;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.log-list li{grid-column:1/-1;grid-template-columns:subgrid;border-top:1px solid #fff3;align-items:baseline;column-gap:12px;padding:8px 0;font-size:13.5px;line-height:1.5;display:grid}.log-list li:first-child{border-top:0}.log-time{color:var(--hud-soft);white-space:nowrap;font-variant-numeric:tabular-nums;border:1px solid #fff9;border-radius:999px;justify-self:start;padding:1px 9px;font-size:12px}.log-count{border:1px solid var(--hud-gold);color:var(--hud-gold);font-variant-numeric:tabular-nums;border-radius:999px;margin-left:6px;padding:0 7px;font-size:11.5px}.log-foot{border-top:1px solid #fff3;justify-content:flex-end;margin-top:12px;padding-top:10px;display:flex}.board{aspect-ratio:1;touch-action:none;background:repeating-conic-gradient(#eef3f8 0% 25%,#fff 0% 50%) 50%/24px 24px;border:1px solid #c9d6e6;border-radius:10px;width:100%;display:block}.tools{flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;display:flex}.swatch{cursor:pointer;border:2px solid #fff;border-radius:50%;width:28px;height:28px;padding:0;box-shadow:0 0 0 1px #c9d6e6}.swatch.on{box-shadow:0 0 0 3px var(--accent)}button.btn{cursor:pointer;color:var(--hud-ink);background:#ffffff1f;border:1px solid #ffffff73;border-radius:8px;padding:7px 14px;font-size:14px}button.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.btn.on{outline:2px solid var(--accent)}.row{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.card .opening{margin-bottom:8px;font-size:15px;font-weight:700}.card img{width:160px;margin:8px auto;display:block}#touch{height:0;position:fixed;inset:auto 0 0}#stick{background:#ffffff2e;border:2px solid #fff6;border-radius:50%;width:120px;height:120px;position:fixed;bottom:24px;left:24px}#knob{background:#fff9;border-radius:50%;width:50px;height:50px;position:absolute;top:35px;left:35px}#viewCtl{z-index:5;align-items:center;gap:8px;display:flex;position:fixed;top:12px;right:12px}.icon-btn{cursor:pointer;color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#061c2873;border:1px solid #ffffff40;border-radius:50%;outline:none;justify-content:center;align-items:center;width:36px;height:36px;padding:0;transition:background .15s,box-shadow .15s,transform .1s;display:flex;box-shadow:0 2px 8px #061c2840}.icon-btn:hover{background:#061c2899}.icon-btn:active{transform:scale(.94)}.icon-btn[aria-expanded=true]{box-shadow:0 0 0 2px var(--accent);background:#061c28b3}.icon-btn svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.icon-btn[hidden],#hud[hidden]+#viewCtl{display:none}#minimap{pointer-events:none;background:#061c2873;border:1px solid #ffffff40;border-radius:10px;width:120px;height:120px;position:fixed;top:60px;right:12px;box-shadow:0 2px 8px #061c2840}#hud[hidden]~#minimap{display:none}#viewCtl:has(#settings:not([hidden]))~#minimap{display:none}#chat{z-index:2;width:min(300px,100vw - 24px);color:var(--hud-ink);text-shadow:var(--hud-shadow);flex-direction:column;gap:6px;font-size:13px;display:flex;position:fixed;bottom:24px;left:12px}@media (pointer:coarse){#chat{bottom:156px}}#chat .chat-log{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);overflow-wrap:anywhere;background:#08283857;border-radius:14px;flex-direction:column;gap:3px;max-height:180px;padding:8px 12px;display:flex;overflow-y:auto}#chat .chat-log:empty{display:none}#chat .chat-line{line-height:1.45}#chat .chat-name{color:var(--hud-sky);margin-right:6px}#chat .chat-ai .chat-name{color:var(--hud-gold)}#chat .chat-mention{cursor:pointer;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#chat .chat-at{color:var(--hud-sky);font-weight:600}#chat .chat-notice{color:var(--hud-soft);font-size:12px}#chat .chat-form{gap:6px;display:flex}#chat .chat-input{min-width:0;font:inherit;color:var(--hud-ink);background:#08283880;border:1px solid #ffffff59;border-radius:999px;outline:none;flex:1;padding:6px 12px}#chat .chat-input::placeholder{color:var(--hud-soft)}#chat .chat-input:focus{border-color:var(--hud-sky)}#chat .chat-input:disabled{opacity:.6}#chat .chat-form button{font:inherit;cursor:pointer;color:#fff;background:#2b7de9d9;border:0;border-radius:999px;padding:6px 14px}#chat .chat-form button:disabled{opacity:.5;cursor:default}#flipBtn{width:64px;height:40px;color:var(--ink);background:#ffffffbf;border:0;border-radius:20px;font-size:14px;position:fixed;bottom:140px;right:36px}#altBtn{width:72px;height:40px;color:var(--ink);background:#ffffffbf;border:0;border-radius:20px;font-size:14px;position:fixed;bottom:124px;right:124px}#altBtn.on{color:#fff;background:#2b7de9d9}#dashBtn{color:#fff;background:#2b7de9d9;border:0;border-radius:50%;width:84px;height:84px;font-size:22px;position:fixed;bottom:40px;right:28px}#atkBtn{color:#fff;background:#d64541d9;border:0;border-radius:50%;width:72px;height:72px;font-size:20px;position:fixed;bottom:40px;right:124px}
