/* 三列跑酷樣式（lr- 前綴）。顏色一律取自 share.css 變數；遊戲畫面本身由 canvas 繪製。 */
[hidden] { display: none !important; }

/* 遊戲中：鎖住頁面捲動與下拉重新整理，整個畫面都可滑動 */
html.lr-playing, html.lr-playing body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.lr-stage, .lr-stage * { -webkit-tap-highlight-color: transparent; }

.lr-how { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.lr-how li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.lr-how b { flex: 0 0 auto; min-width: 64px; padding: 4px 8px; text-align: center; border-radius: 10px;
  background: var(--jt-bg); border: 1px solid var(--jt-line); }
.lr-best { color: var(--jt-muted); margin: 0 0 12px; font-size: 15px; }
.lr-best strong { color: var(--jt-accent); font-size: 20px; }
.lr-hint { color: var(--jt-muted); font-size: 12px; margin: 10px 0 0; }
.lr-start-btn { width: 100%; min-height: 56px; font-size: 18px; }

.lr-stage { position: relative; margin: 0 auto; border-radius: var(--jt-radius); overflow: hidden;
  border: 1px solid var(--jt-line); touch-action: none; background: #0b1030; }
.lr-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.lr-pause, .lr-dbg-open {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.35); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.lr-pause { right: 12px; bottom: 14px; }
.lr-dbg-open { left: 8px; top: 8px; width: 40px; height: 40px; font-size: 16px; }

.lr-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 16px 24px; background: rgba(8, 10, 26, 0.55); color: #fff; text-align: center;
}
.lr-over .lr-card { background: var(--jt-surface); color: var(--jt-text); border: 1px solid var(--jt-line);
  border-radius: var(--jt-radius); padding: 16px; }
.lr-over h2 { margin: 0 0 4px; font-size: 18px; }
.lr-score { font-size: 52px; font-weight: 800; line-height: 1.1; color: var(--jt-accent); margin: 2px 0; }
.lr-new { display: inline-block; background: var(--jt-accent); color: var(--jt-accent-text); border-radius: 99px;
  padding: 2px 12px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.lr-detail { color: var(--jt-muted); font-size: 14px; margin: 0 0 6px; }
.lr-tip { font-size: 14px; margin: 0 0 12px; }
.lr-over .jt-row > .jt-btn { flex: 1 1 100px; }
.lr-over .jt-btn-primary { width: 100%; min-height: 56px; font-size: 18px; margin-bottom: 8px; }

/* 調試面板 */
.lr-dbg { position: fixed; inset: 0; z-index: 30; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--jt-bg); color: var(--jt-text); padding: 12px 16px 32px; touch-action: pan-y; overscroll-behavior: contain; }
.lr-dbg h2 { margin: 4px 0 8px; font-size: 18px; }
.lr-dbg h3 { margin: 14px 0 4px; font-size: 14px; color: var(--jt-muted); }
.lr-dbg .lr-info { font-size: 13px; color: var(--jt-muted); line-height: 1.7; margin: 0 0 8px; }
.lr-dbg .lr-warn { font-size: 13px; color: #b3261e; margin: 0 0 4px; }
.lr-slider { margin: 8px 0 12px; }
.lr-slider label { display: flex; justify-content: space-between; font-size: 14px; }
.lr-slider output { color: var(--jt-accent); font-weight: 700; }
.lr-slider input[type=range] { width: 100%; min-height: 32px; margin: 2px 0; }
.lr-slider small { display: block; color: var(--jt-muted); font-size: 11px; line-height: 1.4; }
.lr-dbg .jt-row { margin: 10px 0; }
