.tetris-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.tetris-wrap .stage-wrap {
  width: min(300px, 62vw);
  flex: none;
}

.tetris-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(96px, 22vw);
}

.mini-box {
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mini-box .stat-label {
  display: block;
  text-align: center;
  margin-bottom: 4px;
}

.mini-box canvas {
  display: block;
  width: 100%;
}

.touch-pad {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.touch-pad button {
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.touch-pad button:active {
  background: var(--accent);
  color: #fff;
}

@media (pointer: coarse) {
  .touch-pad {
    display: grid;
  }
}
