html, body { margin: 0; height: 100%; background: #1b2430; color: #f6efe2; font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif; }
#app { position: relative; height: 100%; max-width: 480px; margin: 0 auto; overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 12px 16px; pointer-events: none; font-weight: 700; text-shadow: 0 1px 2px #000; }
#hud p { margin: 0; }
.panel { position: absolute; left: 16px; right: 16px; top: 18%; background: #2a2118ee; border-radius: 16px; padding: 20px 18px; text-align: center; }
.panel h1, .panel h2 { margin: 0 0 8px; font-size: 32px; }
.panel p { margin: 0 0 14px; line-height: 1.5; color: #f0e2cc; }
button { min-height: 44px; margin: 6px; padding: 8px 18px; border: 0; border-radius: 12px; background: #e07a3d; color: #fff; font: 700 16px/1.2 inherit; }
button.ghost { background: transparent; color: #f0e2cc; border: 1px solid #f0e2cc66; }
.hide { display: none; }
#foot { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: #cbbba6; pointer-events: none; }
#foot a { pointer-events: auto; }
#foot a { color: #f0d7a4; }
#lbPanel { top: 10%; max-height: 70%; overflow: auto; }
.lbr { display: flex; padding: 8px 0; border-bottom: 1px solid #ffffff22; text-align: left; }
.lbr b { width: 36px; }
.lbr span { flex: 1; }
#xtoast { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); background: #000c; color: #fff; padding: 8px 14px; border-radius: 10px; }
