.mental-rotation-game .mr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px 26px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-lg);
  background: var(--hub-surface);
  box-shadow: var(--hub-shadow-sm);
}

.mental-rotation-game .mr-timer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.mental-rotation-game .mr-timer-label {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0284c7;
  min-width: 56px;
  transition: color 0.15s ease;
}

.mental-rotation-game .mr-timer-label.is-low { color: #b91c1c; }

.mental-rotation-game .mr-timer-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #bae6fd;
  overflow: hidden;
}

.mental-rotation-game .mr-timer-fill {
  height: 100%;
  width: 100%;
  background: #0284c7;
  transition: width 50ms linear, background-color 0.15s ease;
}

.mental-rotation-game .mr-timer-fill.is-low { background: #ef4444; }

.mental-rotation-game .mr-target-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mental-rotation-game .mr-target-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0369a1;
}

.mental-rotation-game .mr-target {
  width: 132px;
  height: 132px;
  padding: 8px;
  border: 2px solid #0284c7;
  border-radius: 12px;
  background: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mental-rotation-game .mr-target svg,
.mental-rotation-game .mr-choice-shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mental-rotation-game .mr-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 540px;
}

.mental-rotation-game .mr-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 8px;
  border: 2px solid var(--hub-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.mental-rotation-game .mr-choice:hover {
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}

.mental-rotation-game .mr-choice:active { transform: translateY(0); }

.mental-rotation-game .mr-choice.is-correct {
  border-color: #16a34a;
  background: #dcfce7;
}

.mental-rotation-game .mr-choice.is-wrong {
  border-color: #dc2626;
  background: #fee2e2;
}

.mental-rotation-game .mr-choice-shape {
  width: 84px;
  height: 84px;
}

.mental-rotation-game .mr-choice-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--hub-muted);
}

.mental-rotation-game .mr-feedback {
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mental-rotation-game .mr-feedback[data-kind="correct"] { color: #047857; }
.mental-rotation-game .mr-feedback[data-kind="wrong"]   { color: #b91c1c; }

.mental-rotation-game .mr-ready-note {
  margin: 0;
  max-width: 56ch;
  text-align: center;
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mental-rotation-game .mr-key-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--hub-muted);
}

.mental-rotation-game .mr-key-hint kbd {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 6px;
  border: 1px solid var(--hub-border);
  border-radius: 4px;
  background: var(--hub-surface-muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--hub-ink);
}

.mental-rotation-game .mr-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 20px;
}

.mental-rotation-game .mr-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  background: var(--hub-surface-muted);
}

.mental-rotation-game .mr-result-stat span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-muted);
}

.mental-rotation-game .mr-result-stat strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--hub-ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .mental-rotation-game .mr-choices,
  .mental-rotation-game .mr-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
