/* 点の数の目分量だけの見た目 */
.ready p { margin: 18px 0 0; }
.ready .warn { font-weight: 700; }
.ready .last { color: var(--sub); }
.ready .btn { width: 100%; margin-top: 22px; }

.play { display: flex; flex-direction: column; gap: 8px; }
.frame {
  position: relative;
  width: 100%;
  height: clamp(170px, calc(100dvh - 430px), 300px);
  border: 2px solid var(--ink);
  background: #fbfaf6;
}
.frame canvas { display: block; width: 100%; height: 100%; }
.frame .msg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--sub); pointer-events: none;
}
.frame .msg[hidden] { display: none; }
.frame .cross { font-size: 32px; font-weight: 400; color: var(--ink); }

.answer {
  display: flex; align-items: baseline; justify-content: space-between;
  min-height: 52px; padding: 0 4px;
  border-bottom: 2px solid var(--ink);
}
.answer .q { color: var(--sub); font-weight: 700; }
.answer .val { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.4; }
.answer .val small { font-size: 18px; font-weight: 700; margin-left: 4px; }

.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key {
  min-height: 50px;
  font: inherit; font-size: 24px; font-weight: 700;
  color: var(--ink); background: var(--paper-2);
  border: 0; border-radius: 4px;
  cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
.key:active { background: var(--line); }
.key.sub { font-size: 17px; }
.key.ok { background: var(--ink); color: var(--paper); font-size: 18px; }
.key:disabled { opacity: .35; cursor: default; }
