/* =========================================================================
   Space Learn — Собранный CSS (Tailwind v3.4.17 Utilities + Космическая тема)
   Слоган: «А ты бы смог? Покори космос знаний»
   Собрано без runtime-скрипта cdn.tailwindcss.com для быстрой загрузки в проде
   ========================================================================= */

/* --- 1. Базовый сброс (Tailwind Preflight) --- */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}
body {
  margin: 0;
  line-height: inherit;
}
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b, strong {
  font-weight: bolder;
}
code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background-color: transparent;
  background-image: none;
}
button, select {
  text-transform: none;
}
button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}
ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}
img, video {
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none;
}

/* --- 2. Переменные и корневая космическая тема Space Learn --- */
:root {
  color-scheme: dark;
  --space-bg-deep: #0b0b2e;
  --space-bg-mid: #1a1050;
  --space-bg-purple: #2b1066;
  --space-star-yellow: #FFD966;
  --space-star-pink: #FF8FD0;
  --space-star-cyan: #7DF9FF;
  --space-star-lavender: #B8A1FF;
  --space-card-bg: rgba(16, 14, 52, 0.84);
  --space-card-subtle: rgba(11, 11, 46, 0.78);
  --space-card-border: rgba(184, 161, 255, 0.26);
  --space-text-main: #f8fafc;
  --space-text-secondary: #e2e8f0;
  --space-text-muted: #cbd5e1;
  --tg-safe-top: env(safe-area-inset-top, 0px);
  --tg-safe-bottom: env(safe-area-inset-bottom, 0px);
  --tg-safe-left: env(safe-area-inset-left, 0px);
  --tg-safe-right: env(safe-area-inset-right, 0px);
  --tg-viewport-height: 100vh;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #0b0b2e;
  color: var(--space-text-main);
  font-family: 'Nunito', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: var(--tg-viewport-height, 100vh);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: linear-gradient(180deg, #0b0b2e 0%, #1a1050 55%, #2b1066 100%);
  padding-top: var(--tg-safe-top, env(safe-area-inset-top, 0px));
  padding-bottom: calc(3rem + var(--tg-safe-bottom, env(safe-area-inset-bottom, 0px)));
  padding-left: var(--tg-safe-left, env(safe-area-inset-left, 0px));
  padding-right: var(--tg-safe-right, env(safe-area-inset-right, 0px));
}

h1,
h2,
h3,
.font-display {
  font-family: 'Nunito', 'Rubik', sans-serif;
  letter-spacing: -0.015em;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.selection\:bg-purple-500 *::selection,
.selection\:bg-purple-500::selection {
  background-color: #a855f7;
}
.selection\:text-white *::selection,
.selection\:text-white::selection {
  color: #ffffff;
}

/* --- 3. Позиционирование, отображение, Flex & Grid --- */
.hidden { display: none !important; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

.fixed { position: fixed; }
.sticky { position: sticky; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-4 { bottom: 1rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }

.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }

/* Вертикальные отступы между дочерними элементами (space-y-*) */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* --- 4. Размеры, отступы (Margin / Padding) и переполнение --- */
.w-2 { width: 0.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-32 { width: 8rem; }
.w-full { width: 100%; }

.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-full { height: 100%; }

.min-w-0 { min-width: 0px; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-h-60 { max-height: 15rem; }
.max-h-96 { max-height: 24rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-12 { padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
.pl-2 { padding-left: 0.5rem; }
.pr-1 { padding-right: 0.25rem; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.break-words { overflow-wrap: break-word; }
.whitespace-pre-line { white-space: pre-line; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* --- 5. Типографика --- */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-\[10px\] { font-size: 10px; line-height: 1.35; }
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tabular-nums { font-variant-numeric: tabular-nums; }

.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- 6. Цвета текста, фона, рамок и градиентов --- */
.text-white { color: #ffffff; }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #e2e8f0 !important; }
.text-slate-400 { color: #cbd5e1 !important; }
.text-slate-500 { color: #94a3b8; }
.text-slate-950 { color: #020617; }
.text-indigo-200 { color: #c7d2fe; }
.text-indigo-300 { color: #a5b4fc; }
.text-purple-300 { color: #d8b4fe; }
.text-sky-300 { color: #7dd3fc; }
.text-cyan-200 { color: #a5f3fc; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-amber-200 { color: #fde68a; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-orange-400 { color: #fb923c; }
.text-rose-200 { color: #fecdd3; }
.text-rose-300 { color: #fda4af; }
.text-rose-400 { color: #fb7185; }

.placeholder-slate-500::placeholder { color: #64748b; }

.bg-white { background-color: #ffffff; }
.bg-black\/25 { background-color: rgba(0, 0, 0, 0.25); }
.bg-black\/75 { background-color: rgba(0, 0, 0, 0.75); }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8); }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-slate-950\/90 { background-color: rgba(2, 6, 23, 0.9); }
.bg-indigo-400 { background-color: #818cf8; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2); }
.bg-indigo-500\/25 { background-color: rgba(99, 102, 241, 0.25); }
.bg-indigo-600\/25 { background-color: rgba(79, 70, 229, 0.25); }
.bg-indigo-600\/30 { background-color: rgba(79, 70, 229, 0.3); }
.bg-indigo-950\/60 { background-color: rgba(30, 27, 75, 0.6); }
.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.bg-sky-500 { background-color: #0ea5e9; }
.bg-sky-500\/15 { background-color: rgba(14, 165, 233, 0.15); }
.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-500\/15 { background-color: rgba(16, 185, 129, 0.15); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-emerald-500\/25 { background-color: rgba(16, 185, 129, 0.25); }
.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-amber-500\/15 { background-color: rgba(245, 158, 11, 0.15); }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.bg-rose-500 { background-color: #f43f5e; }
.bg-rose-500\/15 { background-color: rgba(244, 63, 94, 0.15); }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }
.bg-rose-500\/25 { background-color: rgba(244, 63, 94, 0.25); }

/* Градиенты */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.from-amber-400 {
  --tw-gradient-from: #fbbf24;
  --tw-gradient-to: rgba(251, 191, 36, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-amber-500\/20 {
  --tw-gradient-from: rgba(245, 158, 11, 0.2);
  --tw-gradient-to: rgba(245, 158, 11, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-emerald-400 {
  --tw-gradient-from: #34d399;
  --tw-gradient-to: rgba(52, 211, 153, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-rose-500 {
  --tw-gradient-from: #f43f5e;
  --tw-gradient-to: rgba(244, 63, 94, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-rose-500\/15 {
  --tw-gradient-from: rgba(244, 63, 94, 0.15);
  --tw-gradient-to: rgba(244, 63, 94, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-amber-400 {
  --tw-gradient-to: rgba(251, 191, 36, 0);
  --tw-gradient-stops: var(--tw-gradient-from), #fbbf24, var(--tw-gradient-to);
}
.via-amber-500 {
  --tw-gradient-to: rgba(245, 158, 11, 0);
  --tw-gradient-stops: var(--tw-gradient-from), #f59e0b, var(--tw-gradient-to);
}
.via-purple-500\/10 {
  --tw-gradient-to: rgba(168, 85, 247, 0);
  --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.1), var(--tw-gradient-to);
}
.via-rose-500\/20 {
  --tw-gradient-to: rgba(244, 63, 94, 0);
  --tw-gradient-stops: var(--tw-gradient-from), rgba(244, 63, 94, 0.2), var(--tw-gradient-to);
}
.to-orange-500 { --tw-gradient-to: #f97316; }
.to-rose-500 { --tw-gradient-to: #f43f5e; }
.to-indigo-500\/15 { --tw-gradient-to: rgba(99, 102, 241, 0.15); }
.to-purple-600\/20 { --tw-gradient-to: rgba(147, 51, 234, 0.2); }

/* --- 7. Скругления, рамки, тени и эффекты --- */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-l-2 { border-left-width: 2px; }
.border-l-4 { border-left-width: 4px; }

.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-indigo-400 { border-color: #818cf8; }
.border-indigo-400\/30 { border-color: rgba(129, 140, 248, 0.3); }
.border-indigo-400\/40 { border-color: rgba(129, 140, 248, 0.4); }
.border-indigo-400\/50 { border-color: rgba(129, 140, 248, 0.5); }
.border-indigo-500\/30 { border-color: rgba(99, 102, 241, 0.3); }
.border-purple-400\/20 { border-color: rgba(192, 132, 252, 0.2); }
.border-purple-400\/30 { border-color: rgba(192, 132, 252, 0.3); }
.border-cyan-300\/30 { border-color: rgba(103, 232, 249, 0.3); }
.border-sky-500\/30 { border-color: rgba(14, 165, 233, 0.3); }
.border-emerald-400 { border-color: #34d399; }
.border-emerald-400\/30 { border-color: rgba(52, 211, 153, 0.3); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-emerald-500\/40 { border-color: rgba(16, 185, 129, 0.4); }
.border-amber-400\/30 { border-color: rgba(251, 191, 36, 0.3); }
.border-amber-400\/40 { border-color: rgba(251, 191, 36, 0.4); }
.border-amber-400\/50 { border-color: rgba(251, 191, 36, 0.5); }
.border-amber-500\/25 { border-color: rgba(245, 158, 11, 0.25); }
.border-rose-400 { border-color: #fb7185; }
.border-rose-500\/40 { border-color: rgba(244, 63, 94, 0.4); }
.border-rose-500\/50 { border-color: rgba(244, 63, 94, 0.5); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25); }
.shadow { box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.35); }
.shadow-md { box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.45); }
.shadow-lg { box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.5); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); }
.drop-shadow-sm { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }

.opacity-50 { opacity: 0.5; }
.opacity-90 { opacity: 0.9; }
.grayscale { filter: grayscale(100%); }

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-100 { transition-duration: 100ms; }
.duration-500 { transition-duration: 500ms; }

/* Состояния Hover / Focus / Active / Group */
.hover\:bg-amber-400:hover { background-color: #fbbf24; }
.hover\:bg-emerald-400:hover { background-color: #34d399; }
.hover\:bg-emerald-500\/30:hover { background-color: rgba(16, 185, 129, 0.3); }
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.hover\:bg-rose-500\/30:hover { background-color: rgba(244, 63, 94, 0.3); }
.hover\:bg-sky-400:hover { background-color: #38bdf8; }
.hover\:bg-sky-500\/25:hover { background-color: rgba(14, 165, 233, 0.25); }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:border-indigo-400\/40:hover { border-color: rgba(129, 140, 248, 0.4); }
.hover\:border-indigo-400\/60:hover { border-color: rgba(129, 140, 248, 0.6); }
.hover\:opacity-95:hover { opacity: 0.95; }
.hover\:text-white:hover { color: #ffffff !important; }
.hover\:underline:hover { text-decoration: underline; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-indigo-500:focus { border-color: #6366f1; }

.active\:scale-\[0\.99\]:active { transform: scale(0.99); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* Адаптивные префиксы sm: (>= 640px) */
@media (min-width: 640px) {
  .sm\:w-40 { width: 10rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

/* --- 8. Фирменные космические компоненты Space Learn --- */
#space-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

#devToolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 161, 255, 0.22);
}

main {
  position: relative;
  z-index: 10;
}

.glass-card {
  background: var(--space-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--space-card-border);
  box-shadow:
    0 10px 28px -6px rgba(6, 5, 24, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-subtle {
  background: var(--space-card-subtle);
  border: 1px solid rgba(125, 249, 255, 0.18);
}

.btn-primary-grad {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 48%, #ec4899 100%);
  box-shadow: 0 6px 20px -4px rgba(168, 85, 247, 0.55);
}

.btn-speed-grad {
  background: linear-gradient(135deg, #6d28d9 0%, #db2777 52%, #f59e0b 100%);
  border: 1px solid rgba(255, 217, 102, 0.42);
  box-shadow: 0 10px 26px -6px rgba(219, 39, 119, 0.5);
}

.btn-learn-grad {
  background: linear-gradient(135deg, #3b0764 0%, #4f46e5 48%, #06b6d4 100%);
  border: 1px solid rgba(125, 249, 255, 0.4);
  box-shadow: 0 10px 26px -6px rgba(6, 182, 212, 0.45);
}

.option-btn {
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.18s ease,
              background-color 0.18s ease,
              box-shadow 0.18s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: rgba(125, 249, 255, 0.55);
  box-shadow: 0 0 16px rgba(125, 249, 255, 0.16);
}

.option-btn:active:not(:disabled) {
  transform: scale(0.985);
}

@keyframes pulse-fast {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.03);
  }
}

.timer-urgent {
  animation: pulse-fast 0.8s infinite;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.26s ease-out forwards;
}

@keyframes space-wrong-shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-4px, 2px, 0); }
  40% { transform: translate3d(4px, -2px, 0); }
  60% { transform: translate3d(-3px, -1px, 0); }
  80% { transform: translate3d(3px, 1px, 0); }
}

.space-shake {
  animation: space-wrong-shake 0.45s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .animate-slide-up,
  .timer-urgent,
  .space-shake {
    animation: none !important;
  }
  .option-btn {
    transition: none !important;
  }
}

/* --- 9. Парад планет «Обучения», Космический маршрут, Звёздный атлас и Шеринг-карточка --- */
/* Верхняя «витрина» планеты (~22% высоты экрана) свободна от карточек: там видна планета */
.quiz-planet-showcase {
  min-height: 22vh;
  height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0.15rem;
  pointer-events: none;
}

.quiz-showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: auto;
}

.quiz-showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(10, 8, 40, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 249, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 800;
  color: #e0f2fe;
  max-width: 72%;
}

/* Карточки вопроса и вариантов на #screen-quiz: rgba(10, 8, 40, 0.72) + blur(10px) + 1px полупрозрачная рамка */
#screen-quiz .glass-card {
  background: rgba(10, 8, 40, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 161, 255, 0.32);
  box-shadow:
    0 12px 28px -6px rgba(3, 4, 18, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#screen-quiz .option-btn {
  background: rgba(10, 8, 40, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 161, 255, 0.30);
}

/* Горизонтальная snap-карусель крупных планет в разделе «Обучение» */
.planet-carousel-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.25rem 1rem;
  scrollbar-width: none;
}

.planet-carousel-track::-webkit-scrollbar {
  display: none;
}

.planet-carousel-slide {
  flex: 0 0 82%;
  max-width: 286px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem 1rem 1.1rem;
  border-radius: 1.35rem;
  background: rgba(10, 8, 40, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(125, 249, 255, 0.30);
  box-shadow: 0 14px 32px -8px rgba(4, 6, 24, 0.78);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.planet-carousel-slide:hover:not(:disabled) {
  border-color: rgba(125, 249, 255, 0.65);
  box-shadow: 0 16px 36px -6px rgba(14, 165, 233, 0.35);
}

.planet-carousel-orb {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 0.85rem;
  border: 2px solid rgba(125, 249, 255, 0.42);
  box-shadow:
    0 0 28px rgba(56, 189, 248, 0.32),
    inset -14px -16px 28px rgba(3, 4, 20, 0.78),
    inset 10px 10px 22px rgba(255, 255, 255, 0.28);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  background: radial-gradient(circle at 35% 30%, #1e293b, #090d24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet-carousel-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 86%;
  transform: scale(1.22);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.planet-carousel-orb-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22) 0%, rgba(10, 8, 40, 0.08) 52%, rgba(4, 5, 22, 0.68) 100%);
  z-index: 2;
  pointer-events: none;
}

.planet-carousel-orb-fallback {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet-carousel-slide.is-zooming .planet-carousel-orb {
  transform: scale(1.42);
  box-shadow:
    0 0 54px rgba(125, 249, 255, 0.82),
    inset -10px -12px 24px rgba(3, 4, 20, 0.65);
}

.planet-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.planet-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.35);
  transition: all 0.2s ease;
}

.planet-carousel-dot.active {
  width: 1.35rem;
  background: #7df9ff;
  box-shadow: 0 0 8px rgba(125, 249, 255, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .planet-carousel-orb,
  .planet-carousel-slide {
    transition: none !important;
  }
  .planet-carousel-slide.is-zooming .planet-carousel-orb {
    transform: none !important;
  }
}

.planet-parade-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.planet-parade-row::before {
  content: "";
  position: absolute;
  left: 2.1rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(125, 249, 255, 0.55), rgba(255, 143, 208, 0.45), rgba(255, 217, 102, 0.45));
  z-index: 0;
  pointer-events: none;
}

.planet-node-btn {
  position: relative;
  z-index: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.planet-node-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(125, 249, 255, 0.6);
  box-shadow: 0 12px 28px -6px rgba(14, 165, 233, 0.35);
}

.planet-orb {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 9999px;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    inset -6px -6px 14px rgba(4, 6, 24, 0.65),
    inset 4px 4px 10px rgba(255, 255, 255, 0.35),
    0 0 18px rgba(125, 249, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.planet-orb-ring::after {
  content: "";
  position: absolute;
  width: 4.1rem;
  height: 1.25rem;
  border: 2.5px solid rgba(253, 224, 71, 0.75);
  border-radius: 50%;
  transform: rotate(-22deg);
  pointer-events: none;
}

.atlas-svg-stage {
  width: 100%;
  height: 310px;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 42%, rgba(30, 27, 75, 0.85) 0%, rgba(9, 10, 34, 0.96) 100%);
  border: 1px solid rgba(125, 249, 255, 0.26);
  position: relative;
  overflow: hidden;
}

.atlas-star-lit {
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.atlas-star-lit:hover {
  filter: drop-shadow(0 0 8px #ffd966);
}

.share-canvas-preview {
  width: 100%;
  max-width: 290px;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(125, 249, 255, 0.35);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.78);
  margin: 0 auto;
  display: block;
}

@keyframes planet-bob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}
.planet-svg-float {
  animation: planet-bob 4.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

/* --- Классы, использованные в index.html, но не описанные ранее --- */
.overflow-x-auto { overflow-x: auto; }
.p-1\.5 { padding: 0.375rem; }
.duration-300 { transition-duration: 300ms; }
.border-cyan-300\/40 { border-color: rgba(103, 232, 249, 0.4); }
.border-rose-500\/30 { border-color: rgba(244, 63, 94, 0.3); }
.hover\:bg-indigo-500\/40:hover { background-color: rgba(99, 102, 241, 0.4); }
.to-amber-300 { --tw-gradient-to: #fcd34d; }
.via-orange-400 {
  --tw-gradient-to: rgba(251, 146, 60, 0);
  --tw-gradient-stops: var(--tw-gradient-from), #fb923c, var(--tw-gradient-to);
}
