/* Drums tab: landing card + the full-screen setup / play overlay. Phone-first, landscape and portrait. */
.dr-land h2 { margin: 0 0 6px; font-family: "Cinzel", Georgia, serif; color: var(--accent); }
.dr-land p { margin: 6px 0; }
.dr-bullets { margin: 8px 0; padding-left: 20px; color: var(--dim); font-size: .95rem; }
.dr-land-btns { flex-wrap: wrap; margin-top: 10px; }
.dr-priv { margin-top: 12px; }
body.dr-open { overflow: hidden; }
.dr-overlay { position: fixed; inset: 0; z-index: 60; background: var(--deep); display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.dr-stage { flex: 1 1 0; min-height: 0; min-width: 0; display: grid; place-items: center; position: relative; padding: 6px; }
.dr-frame { position: relative; background: #000; border-radius: 12px; overflow: hidden; border: 2px solid var(--night-3); touch-action: none; }
.dr-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.dr-frame.mirror video { transform: scaleX(-1); }
.dr-frame canvas#dr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.dr-frame canvas#dr-lesson { position: absolute; left: 0; right: 0; top: 0; width: 100%; pointer-events: none; }
.dr-frame.kitview video { inset: auto; top: 6px; right: 6px; width: 24%; height: auto; aspect-ratio: 4/3; z-index: 2; border-radius: 8px; border: 2px solid var(--night-3); }
.dr-msg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(95, 224, 138, .92); color: #0e2a18; font-weight: 800; padding: 6px 16px; border-radius: 99px; z-index: 3; }
.dr-kick { position: absolute; right: 12px; bottom: 12px; width: 92px; height: 92px; border-radius: 50%; font: inherit; font-weight: 800; font-size: 1.1rem; line-height: 1.1; color: var(--ink); background: var(--night-3); border: 3px solid var(--accent); display: grid; place-items: center; align-content: center; cursor: pointer; z-index: 4; touch-action: none; }
.dr-kick small { font-size: .65rem; font-weight: 600; color: var(--dim); }
.dr-kick.hit { background: var(--accent); color: var(--on-accent); }
.dr-panel { flex: 0 0 auto; max-height: 52%; overflow-y: auto; padding: 8px 12px 10px; background: linear-gradient(var(--night-2), #20173d); border-top: 1px solid var(--night-3); display: grid; gap: 8px; align-content: start; }
.dr-top { display: flex; align-items: center; gap: 10px; }
.dr-prog { flex: 1; height: 12px; border-radius: 99px; background: var(--deep); border: 1px solid var(--night-3); overflow: hidden; }
.dr-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7fdcff, var(--accent)); border-radius: 99px; transition: width .3s; }
#dr-step-n { color: var(--dim); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.dr-panel h2 { margin: 0; font-family: "Cinzel", Georgia, serif; font-size: 1.25rem; color: var(--accent); letter-spacing: .03em; }
.dr-row { display: flex; gap: 10px; align-items: center; }
.dr-pic { flex: 0 0 76px; } .dr-pic svg { width: 76px; height: auto; display: block; }
.dr-text { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.dr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .95rem; }
.dr-checks li { display: flex; gap: 8px; } .dr-checks li b { width: 18px; color: var(--dim); }
.dr-checks li.ok { color: var(--good); } .dr-checks li.ok b { color: var(--good); } .dr-checks li.no { color: var(--warn); }
.dr-dots { display: flex; gap: 10px; } .dr-dots:empty { display: none; }
.dr-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--night-3); background: var(--deep); } .dr-dots i.on { background: var(--accent); border-color: #f3d27f; }
.dr-actions, .dr-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dr-ctl { font-weight: 700; } .dr-ctl b { min-width: 2ch; text-align: center; font-size: 1.1rem; }
.dr-ctl select { width: auto; flex: 1; min-width: 0; min-height: 38px; padding: 4px 8px; }
.dr-sens { display: flex; align-items: center; gap: 8px; width: 100%; font-size: .9rem; color: var(--dim); } .dr-sens input { flex: 1; }
.dr-beat { width: 14px; height: 14px; border-radius: 50%; background: var(--night-3); } .dr-beat.on { background: var(--accent); }
.dr-lesson-out { margin: 0; color: var(--dim); font-size: .92rem; min-height: 1em; } .dr-lesson-out:empty { display: none; }
.dr-panel .btn.small { min-height: 40px; }
@media (orientation: landscape) and (max-height: 560px) {
  .dr-overlay { flex-direction: row; }
  .dr-panel { flex: 0 0 min(330px, 40%); max-height: none; border-top: 0; border-left: 1px solid var(--night-3); padding: 8px 10px; gap: 6px; }
  .dr-panel h2 { font-size: 1.05rem; } .dr-text { font-size: 1rem; } .dr-pic, .dr-pic svg { flex-basis: 56px; width: 56px; }
  .dr-kick { width: 74px; height: 74px; font-size: .95rem; right: 8px; bottom: 8px; }
  .dr-panel .btn.small { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
}
