/* Word Wheel — page-specific layout */

/* Lead paragraph: avoid the global .page-lead 52ch cap so copy wraps only when the layout is narrow */
.word-wheel .page-lead {
  max-width: none;
}

.word-wheel .layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

.word-wheel .meta {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.95rem;
}

.word-wheel .pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 8px 8px 0;
}

.word-wheel .info-box {
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px;
  line-height: 1.55;
  margin-top: 14px;
  color: var(--muted);
}

.word-wheel .info-box strong {
  color: var(--text);
}

.word-wheel.student-mode #wordWheelPageLead {
  display: none;
}

.word-wheel .canvas-card {
  position: relative;
  text-align: center;
}

.word-wheel .floating-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.word-wheel svg {
  width: min(90vw, 680px);
  height: auto;
  max-height: 78vh;
}

.word-wheel .helper {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.word-wheel .footer-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.word-wheel.student-mode .layout {
  grid-template-columns: 1fr;
}

.word-wheel.student-mode #leftPanel {
  display: none;
}

.word-wheel.student-mode .canvas-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.word-wheel.student-mode .floating-toggle {
  top: 18px;
  right: 18px;
}

@media (max-width: 900px) {
  .word-wheel .layout {
    grid-template-columns: 1fr;
  }

  .word-wheel svg {
    width: min(92vw, 560px);
  }
}
