/**
 * 곱셈구구 — 따뜻한 귤·노랑
 */
:root {
  --bg: #fff7ed;
  --bg-glow-1: #fed7aa;
  --bg-glow-2: #fde68a;
  --hero-grad: linear-gradient(135deg, #fdba74 0%, #fef3c7 50%, #bbf7d0 100%);
  --surface-soft: #fffbeb;
  --accent: #f59e0b;
  --accent-deep: #c2410c;
  --accent-light: #fcd34d;
  --accent-glow: rgba(245, 158, 11, 0.35);
  --ink: #431407;
  --heading: #9a3412;
  --muted: #9a6b4a;
  --line: #fed7aa;
  --rule-line: #ffedd5;
}

.gg-array { flex-direction: column; align-items: flex-start; gap: 8px; }
.gg-row {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: #fff;
  border: 2px dashed #fdba74;
  border-radius: 12px;
}
.gg-item { font-size: 22px; line-height: 1; }
.gg-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}
.gg-th {
  background: #c2410c;
  color: #fff;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 10px;
}
.gg-td {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #fed7aa;
  border-radius: 10px;
  font-weight: 900;
}
.gg-td.is-ask {
  background: #fef3c7;
  border-color: #f59e0b;
  border-style: dashed;
  color: #c2410c;
  font-size: 1.1rem;
}
.gg-hint { margin: 8px 0 0; font-weight: 800; color: #c2410c; }

.level-tabs, .age-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.age-tab {
  border: 3px solid #fff;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  color: var(--muted);
}
.age-tab.active { background: var(--accent); color: #fff; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.unit-card {
  border: 3px solid #fff; background: #fff; border-radius: 18px; padding: 14px;
  text-align: left; cursor: pointer; font-family: inherit; width: 100%;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.unit-card.active { border-color: var(--accent); background: var(--surface-soft); }
.unit-card h3 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 1.1rem; color: var(--heading); }
.unit-count { font-size: 12px; font-weight: 800; color: var(--accent-deep); }
