html,body{margin:0;height:100%;background:#fff;overflow:hidden}
canvas{display:block;width:100vw;height:100vh;touch-action:none}
.seo{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* leaderboard */
#lbBtn { position: fixed; top: 16px; right: 16px; z-index: 5; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 22px;
    border: 1px solid #d8d8e6; background: #fff; color: #26267a; font: 600 14px system-ui, sans-serif; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; }
  #lbBtn:hover { border-color: #26267a; }
  #lbBtn svg { width: 20px; height: 20px; }
  #lbPanel { position: fixed; z-index: 6; background: #fff; color: #26267a; font: 14px system-ui, sans-serif;
    border: 1px solid #d8d8e6; border-radius: 18px; box-shadow: 0 8px 30px rgba(38,38,122,.12); padding: 18px; display: none; }
  #lbPanel.open { display: block; }
  #lbPanel { top: 68px; right: 16px; width: 280px; }
  #lbPanel h2 { margin: 0 0 2px; font-size: 18px; letter-spacing: -.02em; }
  #lbPanel .sub { color: #8a8aa8; font-size: 12px; margin-bottom: 12px; }
  #lbPanel ol { list-style: none; margin: 0; padding: 0; }
  #lbPanel li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 4px; border-top: 1px solid #eeeef5; }
  #lbPanel li:first-child { border-top: 0; }
  #lbPanel li .r { color: #8a8aa8; font-weight: 600; }
  #lbPanel li:nth-child(1) .r::before { content: "\1F947"; } #lbPanel li:nth-child(2) .r::before { content: "\1F948"; } #lbPanel li:nth-child(3) .r::before { content: "\1F949"; }
  #lbPanel li:nth-child(-n+3) .r span { display: none; }
  #lbPanel li .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #lbPanel li .c { font-variant-numeric: tabular-nums; font-weight: 650; }
  #lbPanel li.me { background: #f1f1fa; border-radius: 10px; }
  #lbMe { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d8d8e6; font-size: 13px; display: flex; justify-content: space-between; }
  #lbJoin { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
  #lbJoin input { min-width: 0; border: 1px solid #d8d8e6; border-radius: 10px; padding: 9px 10px; font: inherit; color: #26267a; }
  #lbJoin input:focus { outline: 2px solid #b9b9e6; border-color: #26267a; }
  #lbGo { border: 0; background: #26267a; color: #fff; border-radius: 10px; padding: 10px; font: 600 13px system-ui; cursor: pointer; }
  #lbMode { border: 0; background: none; padding: 0; color: #26267a; font: 12px system-ui; text-decoration: underline; cursor: pointer; align-self: flex-start; }
  #lbErr { color: #b3261e; font-size: 12px; min-height: 0; }
  #lbOut { display: none; margin-top: 10px; border: 0; background: none; padding: 0; color: #26267a; font: 12px system-ui; text-decoration: underline; cursor: pointer; }
  #lbClose { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: #8a8aa8; font-size: 20px; cursor: pointer; }
