#nova-solo-topic-root {
  position: fixed;
  inset: 0;
  z-index: 2147483642;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  font-family: ComfortaaOkul, Comfortaa, "Segoe UI", sans-serif;
  color: #f8fafc;
  pointer-events: none;
}
#nova-solo-topic-root.is-open {
  display: flex;
  pointer-events: auto;
}
#nova-solo-topic-root.is-arming {
  pointer-events: auto !important;
}
#nova-solo-topic-root.is-arming * {
  pointer-events: none !important;
}
.nst-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(251, 191, 36, 0.22), transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 100%, rgba(56, 189, 248, 0.2), transparent 46%),
    linear-gradient(160deg, #07111f 0%, #12263d 48%, #071018 100%);
}
.nst-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 720px);
  max-height: min(88vh, 88dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1.6vh, 18px) clamp(12px, 1.8vw, 20px) 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(8, 14, 28, 0.9));
  border: 2px solid rgba(253, 224, 71, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nst-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.nst-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: clamp(10px, 1.5vh, 12px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #422006;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
}
.nst-sub {
  margin: 6px 2px 10px;
  font-size: clamp(13px, 2.2vh, 16px);
  font-weight: 800;
  color: #fde68a;
}
.nst-lessons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.6vh, 16px);
}
.nst-lesson {
  --nst-c: #38bdf8;
  width: 100%;
  min-height: clamp(92px, 22vh, 168px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 2.5px solid color-mix(in srgb, var(--nst-c) 72%, white);
  border-radius: 26px;
  padding: clamp(10px, 1.8vh, 16px) clamp(12px, 1.6vw, 18px) clamp(10px, 1.8vh, 16px) clamp(14px, 2vw, 22px);
  background:
    radial-gradient(circle at 88% 28%, color-mix(in srgb, var(--nst-c) 38%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--nst-c) 34%, #0b1220), rgba(8, 14, 28, 0.55));
  color: inherit;
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.nst-lesson:hover,
.nst-lesson:focus-visible {
  transform: translateY(-3px) scale(1.015);
  border-color: color-mix(in srgb, var(--nst-c) 92%, white);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.34),
    0 0 0 3px color-mix(in srgb, var(--nst-c) 28%, transparent);
  outline: none;
}
.nst-lesson.is-selected {
  cursor: default;
  opacity: 1;
  min-height: 0;
  padding: 8px 12px 8px 16px;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.nst-lesson.is-selected:hover,
.nst-lesson.is-selected:focus-visible {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.nst-lesson-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.nst-lesson strong {
  display: block;
  font-size: clamp(22px, 4.8vh, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.nst-lesson.is-selected strong {
  font-size: clamp(20px, 4vh, 30px);
}
.nst-art {
  flex: 0 0 auto;
  width: clamp(84px, 16vh, 124px);
  height: clamp(84px, 16vh, 124px);
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--nst-c) 28%, #0b1220);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}
.nst-art.is-missing {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--nst-c) 55%, #0b1220);
}
.nst-art.is-missing::after {
  content: attr(data-letter);
  font-size: clamp(28px, 7vh, 44px);
  font-weight: 800;
  color: #fff;
}
.nst-art-svg,
.nst-art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
}
.nst-lesson.is-selected .nst-art {
  width: clamp(46px, 8vh, 64px);
  height: clamp(46px, 8vh, 64px);
}
.nst-lesson-wrap {
  margin-bottom: 10px;
}
.nst-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.nst-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1vh, 10px);
  padding-bottom: 6px;
}
.nst-topics-empty {
  grid-column: 1 / -1;
  margin: 8px 2px 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(253, 224, 71, 0.35);
  color: #fde68a;
  font-weight: 800;
  text-align: center;
}
.nst-topic {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: clamp(44px, 7.4vh, 62px);
  text-align: left;
  border: 2px solid rgba(253, 224, 71, 0.28);
  border-radius: 16px;
  padding: clamp(8px, 1.3vh, 12px) 14px;
  background: rgba(8, 14, 28, 0.55);
  color: #f8fafc;
  cursor: pointer;
}
.nst-topic:hover,
.nst-topic:focus-visible {
  border-color: rgba(253, 224, 71, 0.7);
  outline: none;
}
.nst-topic-num {
  flex: 0 0 clamp(28px, 5.2vh, 36px);
  height: clamp(28px, 5.2vh, 36px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: clamp(12px, 2.2vh, 16px);
  font-weight: 800;
  color: #422006;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
}
.nst-topic strong {
  font-size: clamp(16px, 3.5vh, 24px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
}
.nst-topic.is-locked,
.nst-group.is-locked {
  opacity: 0.72;
  filter: grayscale(0.35);
}
.nst-topic-lock {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
}
.nst-lock-toast {
  position: relative;
  z-index: 3;
  display: none;
  margin: 0 auto;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
  color: #422006;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.nst-lock-toast.is-on {
  display: block;
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}
.nst-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: clamp(110px, 22vh, 140px);
  padding: 12px 10px 10px;
  border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--nst-c) 70%, white);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nst-c) 38%, transparent), rgba(8, 12, 24, 0.55));
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.nst-group:hover,
.nst-group:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
.nst-group-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.nst-group-letters {
  font-size: clamp(15px, 2.4vh, 20px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.nst-group-go {
  margin-top: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
}
.nst-lesson,
.nst-topic,
.nst-group,
.nst-back {
  touch-action: manipulation;
  pointer-events: auto;
}
.nst-back {
  margin-top: 10px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-weight: 800;
  cursor: pointer;
  font-size: clamp(14px, 2.2vh, 16px);
}
@media (max-width: 640px) {
  .nst-topics {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .nst-lessons {
    grid-template-columns: 1fr;
  }
  .nst-groups {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .nst-card {
    width: min(92vw, 640px);
    max-height: min(92dvh, 92vh);
    padding: 8px 12px 8px;
  }
  .nst-groups {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .nst-lesson {
    min-height: clamp(56px, 22vh, 88px);
    border-radius: 22px;
  }
  .nst-lesson strong {
    font-size: clamp(18px, 6.4vh, 30px);
  }
  .nst-art {
    width: clamp(58px, 22vh, 88px);
    height: clamp(58px, 22vh, 88px);
  }
  .nst-topic {
    min-height: clamp(36px, 10vh, 48px);
  }
  .nst-topic strong {
    font-size: clamp(14px, 4.6vh, 20px);
  }
}
