/* Hop & Bop — scoped .hb-* classes only */

.hb-howto {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 auto 16px;
  max-width: 720px;
}
.hb-howto h3 { margin: 0 0 10px; font-size: 15px; color: var(--accent); }
.hb-howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hb-howto-col { font-size: 13px; color: var(--muted); }
.hb-howto-h { color: var(--text); font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.hb-howto-row { margin-bottom: 4px; line-height: 1.5; }
.hb-key {
  display: inline-block; min-width: 20px; text-align: center;
  padding: 1px 6px; margin-right: 2px; background: var(--panel2);
  border: 1px solid var(--line); border-radius: 4px; font-family: ui-monospace, monospace;
  font-size: 12px; color: var(--text);
}
.hb-howto-note { margin-top: 10px; font-size: 12px; color: var(--muted); font-style: italic; }
@media (max-width: 620px) {
  .hb-howto-grid { grid-template-columns: 1fr; }
}

.hb-area { max-width: 1000px; }

.hb-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hb-bar-left, .hb-bar-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hb-stat { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hb-stat strong { color: var(--text); }
.hb-level-name { font-weight: 600; color: var(--accent); }

.hb-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 12px auto 0;
  background: #05070a;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.hb-canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  background: #05070a;
  touch-action: none;
}

.hb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 14, 0.82);
  backdrop-filter: blur(1px);
}
.hb-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
  min-width: 260px;
}
.hb-card h3 { margin: 0 0 10px; color: var(--accent); font-size: 20px; }
.hb-card .hb-substats { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.hb-card .hb-next { color: var(--muted); font-size: 13px; margin-top: 12px; font-style: italic; }
.hb-card .actions { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.hb-controls-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; gap: 8px; flex-wrap: wrap;
}
.hb-controls-row .left, .hb-controls-row .right { display: flex; gap: 8px; flex-wrap: wrap; }

.hb-mobile-warn {
  display: none;
  text-align: center; padding: 16px; color: var(--muted); font-size: 14px;
  border: 1px dashed var(--line); border-radius: 8px; margin-top: 12px;
}
@media (max-width: 560px), (pointer: coarse) {
  .hb-mobile-warn { display: block; }
}
