/* SunMoonOcean Learn — shared activity styles */

.learn-page { max-width: 860px; margin: 0 auto; padding: 32px 16px 70px; }
.learn-top { text-align: center; margin-bottom: 18px; }
.learn-top h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.member-hello { font-size: 0.85rem; color: #7c5ca6; font-weight: 700; margin-top: 4px; }
.stars-bar {
  display: inline-block; margin-top: 10px; background: var(--sun-soft);
  color: #8a5b00; font-weight: 800; padding: 8px 18px; border-radius: 999px;
}

.activity-zone {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 22px 34px; position: relative; text-align: center;
}

.mode-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.mode-tab {
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  padding: 10px 20px; border-radius: 999px; border: 2px solid var(--moon-gray);
  background: var(--white); cursor: pointer;
}
.mode-tab[aria-selected="true"] { background: var(--ocean-ink); border-color: var(--ocean-ink); color: var(--white); }

.prompt-line { font-size: 1.15rem; font-weight: 800; margin-bottom: 20px; }
.speak-btn {
  border: 0; background: var(--sun-gold); border-radius: 50%; width: 46px; height: 46px;
  font-size: 1.3rem; cursor: pointer; vertical-align: middle; margin-right: 8px;
}
.speak-btn:active { transform: scale(0.92); }

.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 560px; margin: 0 auto; }
.choice-grid.small { grid-template-columns: repeat(6, 1fr); max-width: 620px; }
@media (max-width: 560px) {
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid.small { grid-template-columns: repeat(3, 1fr); }
}
.big-choice {
  font-family: var(--font-display); font-weight: 600; font-size: 2rem;
  padding: 20px 0; border-radius: 16px; border: 3px solid var(--moon-mist);
  background: var(--sea-paper); cursor: pointer; color: var(--ocean-ink);
  transition: transform 0.12s ease;
}
.big-choice:hover { transform: scale(1.05); }
.big-choice:disabled { opacity: 0.35; cursor: default; }
.big-choice.right { background: #d7f5e3; border-color: #1a7f4e; }
.big-choice.wrong { background: #ffe3e0; border-color: #c0392b; animation: shake 0.3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .big-choice.wrong { animation: none; } }

.builder-picture { font-size: 5rem; margin-bottom: 14px; }
.builder-slots { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.slot {
  width: 64px; height: 72px; border-bottom: 5px solid var(--sun-gold);
  background: var(--sea-paper); border-radius: 10px 10px 0 0;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; color: var(--ocean-ink);
}

.sight-word {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(3.4rem, 12vw, 5.5rem);
  color: var(--ocean-ink); margin: 18px 0 26px; letter-spacing: 0.02em;
}
.sight-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tip { margin-top: 20px; font-size: 0.88rem; color: #7c5ca6; font-weight: 700; }

.celebrate {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 7rem; pointer-events: none; animation: pop 0.9s ease;
}
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 40% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .celebrate { animation: none; } }

/* Counting objects (math) */
.count-stage { font-size: 3rem; line-height: 1.5; letter-spacing: 8px; margin-bottom: 22px; min-height: 120px; }
.equation { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; margin: 6px 0 18px; }
.compare-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.compare-card {
  flex: 1; min-width: 220px; max-width: 300px; background: var(--sea-paper);
  border: 3px solid var(--moon-mist); border-radius: 16px; padding: 22px 14px;
  font-size: 2.4rem; line-height: 1.5; letter-spacing: 6px; cursor: pointer;
}
.compare-card:hover { border-color: var(--sun-gold); }
.compare-card.right { background: #d7f5e3; border-color: #1a7f4e; }
.compare-card.wrong { background: #ffe3e0; border-color: #c0392b; }

/* Gate overlay */
.gate-overlay {
  position: fixed; inset: 0; background: rgba(12, 43, 78, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 200;
}
.gate-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 440px; text-align: center; padding: 36px 30px;
}
.gate-card h2 { font-family: var(--font-display); font-weight: 600; margin-bottom: 12px; }
.gate-card p { color: #5b3a82; margin-bottom: 20px; }
.gate-small { font-size: 0.88rem; margin-top: 16px; }

/* Drawing studio */
.studio { display: grid; grid-template-columns: 200px 1fr; gap: 18px; text-align: left; }
@media (max-width: 720px) { .studio { grid-template-columns: 1fr; } }
.studio-tools { display: flex; flex-direction: column; gap: 16px; }
.tool-group h3 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #7c5ca6; margin-bottom: 8px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatch { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: var(--ocean-ink); transform: scale(1.12); }
.sizes { display: flex; gap: 8px; }
.size-btn { flex: 1; border-radius: 10px; border: 2px solid var(--moon-gray); background: var(--white); cursor: pointer; padding: 8px 0; font-weight: 800; }
.size-btn[aria-pressed="true"] { background: var(--ocean-ink); color: var(--white); border-color: var(--ocean-ink); }
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.page-btn { border: 2px solid var(--moon-gray); background: var(--white); border-radius: 10px; font-size: 1.5rem; padding: 8px 0; cursor: pointer; }
.page-btn[aria-pressed="true"] { border-color: var(--sun-gold); background: var(--sun-soft); }
.canvas-stack { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--moon-mist); background: #fff; }
.canvas-stack canvas { display: block; width: 100%; height: auto; touch-action: none; }
#lines { position: absolute; inset: 0; pointer-events: none; }
.studio-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
