/* Additive UI only. Original game CSS is preserved in game.css. */
html,body{margin:0}
.wrap{touch-action:pan-y;overscroll-behavior:contain;box-sizing:border-box}
.panel{box-sizing:border-box}
.online-status{font-size:10px;letter-spacing:.08em;line-height:1.5;color:var(--chalk-dim);margin:0;min-height:15px}
#onlineScreen{z-index:40;background:rgba(4,6,8,.9);user-select:text;-webkit-user-select:text}
.online-panel{width:min(780px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.online-heading{display:flex;gap:16px;align-items:center;justify-content:space-between}
#onlineContent{display:grid;gap:16px;min-width:0}
#onlineContent p{font-size:12px;line-height:1.7;margin:0}
#onlineContent .btn{font-size:22px}
#onlineContent button{touch-action:manipulation}
.online-note{color:var(--chalk-dim)}
.online-error{color:var(--wound)}
.online-name{font-family:var(--display);font-size:26px!important;overflow-wrap:anywhere}
.online-actions{display:flex;flex-wrap:wrap;gap:10px}
.board-tabs{display:flex;flex-wrap:wrap;gap:5px;padding-bottom:12px;border-bottom:1.5px dashed var(--dust)}
.board-tabs .tab{font-size:17px;padding:8px 10px}
.board-scroll{overflow:auto;max-height:45dvh;touch-action:pan-y}
.board{border-collapse:collapse;width:100%;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
.board th{position:sticky;top:0;background:#080c0c;text-align:left;color:var(--chalk-dim);font-weight:400;font-size:10px;letter-spacing:.12em}
.board th,.board td{padding:12px 8px;border-bottom:1px dashed var(--dust)}
.board td:last-child,.board th:last-child{text-align:right}
.board td:nth-child(2){overflow-wrap:anywhere}
.board .you{color:var(--c1);background:rgba(127,224,201,.05)}
.own-rank{padding:12px;border:1px solid var(--c1);border-radius:4px;color:var(--c1)}
.save-choice{padding:14px;border:1px dashed var(--dust);display:grid;gap:10px}
.online-banner{border-left:2px solid var(--c1);padding-left:12px}
@media(pointer:coarse){.gbuy{min-height:44px}.tab,.mplay{min-height:44px}.mtog{width:32px;height:32px}.info{width:28px;height:28px}}
@media(max-width:480px){
  .controls{gap:8px;right:calc(10px + env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .controls-left{left:calc(10px + env(safe-area-inset-left,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .round{width:60px;height:60px;font-size:15px}.round.sm{width:44px;height:44px;font-size:14px}
  .hint{bottom:calc(88px + env(safe-area-inset-bottom,0px));font-size:10px}
  .tl{left:10px}.tr{right:10px}.lv b{font-size:32px}.row{grid-template-columns:44px auto;gap:5px;font-size:9px}.bar{width:min(126px,29vw)}
  .stat{gap:6px;font-size:9px}.stat b{font-size:15px}.zone{font-size:16px}.safe{font-size:8px}
  .panel.title{gap:18px}.t-main{gap:15px}.btns{gap:9px}.btn.ghost{font-size:18px;padding:8px 13px 6px}
  .online-panel{padding:20px;max-height:calc(100dvh - 32px)}
  .boss{top:calc(160px + env(safe-area-inset-top,0px))}.boss .bar{width:55vw}
}
@media(max-height:500px) and (orientation:landscape){.panel{align-self:start}.online-panel{max-height:calc(100dvh - 32px)}.tip{bottom:90px}.gauge{display:none}}
@media(prefers-reduced-motion:reduce){#onlineContent *{scroll-behavior:auto}}
