/* Playful Classroom (v08) — дашборд выбора темы */

.dashboard-form .panel h4,
.dashboard-form .panel h5 {
  text-align: center;
  margin-top: 0;
}

.dashboard-form .custom-panel h5 {
  margin-bottom: 1rem;
}

/* ─── Онбординг-стикер (один раз после регистрации) ───────── */
.onboarding-note {
  position: relative;
  max-width: 640px;
  margin: 0 auto 1.6rem;
  background: #fff3ad;
  color: #4a3f14;
  border-radius: 4px;
  padding: 1rem 2.4rem 1rem 1.2rem;
  box-shadow: 3px 5px 14px rgba(0, 0, 0, 0.16);
  transform: rotate(-0.6deg);
}
.onboarding-note::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 92px; height: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}
.onboarding-note__title {
  font-family: var(--font-chalk);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.onboarding-note__text {
  font-family: var(--font-ui);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}
.onboarding-note__close {
  position: absolute;
  top: 6px; right: 10px;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(74, 63, 20, 0.55);
  cursor: pointer;
  padding: 2px 4px;
}
.onboarding-note__close:hover { color: rgba(74, 63, 20, 0.9); }
.theme-dark .onboarding-note { background: #3a3528; color: #d4c8a8; }
.theme-dark .onboarding-note::before { background: rgba(255, 255, 255, 0.10); }
.theme-dark .onboarding-note__close { color: rgba(212, 200, 168, 0.6); }
.theme-dark .onboarding-note__close:hover { color: #d4c8a8; }

/* ─── Режим «Практические задания» — стикер ───────────────── */
.practice-launch-form {
  max-width: 720px;
  margin: 0.4rem auto 1.8rem;
}
.practice-launch {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  background: #fff3ad;
  background-image: linear-gradient(180deg, #fff7c2 0%, #ffe98a 100%);
  color: #4a3f14;
  border: 1px solid #e6d9bf;
  border-radius: 4px;
  padding: 1.15rem 1.35rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    3px 6px 16px rgba(0, 0, 0, 0.14);
  transform: rotate(-0.7deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-ui);
}
/* Скотч сверху */
.practice-launch::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 96px;
  height: 22px;
  transform: translateX(-50%) rotate(1.5deg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  z-index: 2;
}
.practice-launch:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    4px 10px 22px rgba(0, 0, 0, 0.16);
}
.practice-launch:focus-visible {
  outline: 3px solid rgba(45, 90, 71, 0.45);
  outline-offset: 3px;
}
.practice-launch__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(74, 63, 20, 0.45);
  background: rgba(255, 255, 255, 0.35);
  color: #4a3f14;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.practice-launch__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.practice-launch__title {
  font-family: var(--font-chalk);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #3d3412;
}
.practice-launch__sub {
  font-size: 0.9rem;
  color: rgba(74, 63, 20, 0.72);
  margin-top: 0.2rem;
  line-height: 1.35;
}
.practice-launch__arrow {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: #4a3f14;
  opacity: 0.75;
}

.theme-dark .practice-launch {
  background: #3a3528;
  background-image: linear-gradient(180deg, #433d2f 0%, #322e24 100%);
  color: #d4c8a8;
  border-color: #4a4436;
}
.theme-dark .practice-launch::before {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.08);
}
.theme-dark .practice-launch__icon {
  border-color: rgba(212, 200, 168, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #d4c8a8;
}
.theme-dark .practice-launch__title,
.theme-dark .practice-launch__arrow { color: #d4c8a8; }
.theme-dark .practice-launch__sub { color: rgba(212, 200, 168, 0.7); }

@media (max-width: 560px) {
  .practice-launch {
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
  }
  .practice-launch__arrow { display: none; }
  .practice-launch__title { font-size: 1.35rem; }
}

/* ── Серия дней ─────────────────────────────────────────────────────────────
   Механика стриков существовала давно, но показывалась только в профиле и
   рейтинге. Здесь она на дашборде — там, где человек бывает каждый день. */
.streak-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(180deg, #fff7ee 0%, #ffeede 100%);
  border: 1px solid #f0d9c2;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.streak-bar__flame {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(232, 93, 76, 0.12);
  color: var(--cta);
  font-size: 1.15rem;
}
.streak-bar__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.streak-bar__count {
  font-size: 1.05rem;
  color: #4a3520;
}
.streak-bar__hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.theme-dark .streak-bar {
  background: #2f2a22;
  border-color: rgba(212, 200, 168, 0.22);
  box-shadow: none;
}
.theme-dark .streak-bar__count { color: #d4c8a8; }
.theme-dark .streak-bar__hint { color: rgba(212, 200, 168, 0.7); }

@media (max-width: 560px) {
  .streak-bar { padding: 0.75rem 0.9rem; }
  .streak-bar__count { font-size: 0.98rem; }
  .streak-bar__hint { font-size: 0.84rem; }
}
