/* VB5・VB6。盤の上端の 1 段分を目標に空け、最上段のミノも全部見せる。
   canvas の外寸は fitMobileBoard が測るので、描画領域の内側だけに帯の高さを取る。 */
body:not(.vs-problem) [data-problem-only],
body.vs-problem :is(.vs-meter-col, .vs-totals, .vs-side-pend, .vs-side-totals, .vs-side-log, .vs-side-time,
  .info-time, .num-row:has([data-vs-misses]) > :not([data-problem-only]),
  .is-hold .vs-col-tag.is-gap:not([data-problem-only]), .is-hold .is-ren, .is-hold .is-ren ~ *,
  [data-vs-round-status]) { display: none !important; }
body.vs-problem #board {
  box-sizing: border-box; width: calc(var(--board-h) * 10 / var(--board-rows, 18));
  padding-top: calc(var(--board-h) * .05); object-fit: contain;
}
.vs-problem-layer {
  position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: calc(var(--board-h) * 10 / var(--board-rows, 18)); height: var(--board-h);
  container-type: inline-size; line-height: 1.3;
}
[data-skin="plain"] .vs-problem-layer { grid-area: board; }
.vs-problem-bar {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
  width: 95%; height: 5%; margin: auto; padding-inline: 3%; border-radius: var(--radius-pill);
  background: var(--stroke); color: var(--versus-dark-label-ink); font-size: clamp(9px, 4.8cqi, 15px);
  font-weight: 900; white-space: nowrap;
}
.vs-problem-bar time { color: var(--gold); font: 400 1.5em/1 'Share Tech Mono', ui-monospace, monospace; }
.vs-problem-bar time.is-low { color: var(--mino-z); }
.vs-problem-retry {
  position: absolute; inset: 5% 2.5% 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2.5cqi; background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--ink); font-weight: 900;
}
.vs-problem-retry strong { font-size: clamp(16px, 7cqi, 24px); }
.vs-problem-retry .vs-count-ring { width: 32cqi; height: 32cqi; background: var(--surface); }
.vs-problem-retry .vs-count-ring b { color: var(--accent); font-size: 21cqi; }
.vs-problem-detail { max-width: 100%; color: var(--ink); font-size: clamp(10px, 4cqi, 14px); font-variant-numeric: tabular-nums; }
.vs-problem-detail :is(th, td) { max-width: 9em; padding: 0 .35em; overflow-wrap: anywhere; text-align: center; }
.vs-problem-detail thead td { color: var(--sub); font-size: .85em; white-space: nowrap; }
body.vs-problem .vs-card-rows .vs-row-line { justify-content: flex-start; }
.vs-problem-layer[hidden], .vs-problem-retry[hidden], .vs-problem-detail[hidden] { display: none; }
@media (max-height: 680px) and (max-width: 560px) {
  [data-skin="console"] .vs-room [data-vs-problem-levels] { gap: 3px; }
  [data-skin="console"] body.vs-problem .screen > .vs-result { gap: 2px; overflow-y: auto; justify-content: safe center; }
}
body.vs-problem .vs-result button { min-height: 34px; }
[data-skin="plain"] body.vs-problem .vs-result button { min-height: max(34px, calc(34px / var(--scale))); }
