/* Шрифт Inter лежит у себя, а не на серверах Google: запрос к ним передаёт
   IP-адрес посетителя за границу (ст. 12 Федерального закона № 152-ФЗ).
   Разрешение на Google в CSP (server/index.js) снято, поэтому ссылка на
   их сервер здесь молча перестала бы работать. Лицензия — css/fonts/README.txt. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-cyrlat.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Атрибут hidden обязан скрывать.
   Браузер задаёт ему display: none своей таблицей, но любое авторское
   правило вида display: flex её перебивает — и элемент с hidden остаётся на
   экране. Поймано на ссылках соцсетей в подвале: их скрыли атрибутом, а они
   продолжали висеть и вести в никуда. */
[hidden] { display: none !important; }

/* ══ Доступность ══

   Проверено измерением на живых страницах, а не по чек-листу.

   Видимый фокус. В разметке в разных местах стоит outline: none — обычно у
   полей ввода и у редактируемого текста, — и замены ему не было нигде.
   Человек, идущий по странице клавишей Tab, просто не понимал, где он
   находится. :focus-visible показывает кольцо только при работе с
   клавиатуры: щелчок мышью его не вызывает, поэтому вид продукта не
   меняется.

   Кольцо фиолетовое, как и всё остальное, и не забивается тенями: рисуем
   его через outline с отступом, а не через рамку, — рамка сдвинула бы
   вёрстку. */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}
/* На тёмном фоне фиолетовое кольцо теряется — там оно белое. */
.lms-header :focus-visible,
.p-left :focus-visible,
.gm-sidebar :focus-visible,
[class*="-sidebar"] :focus-visible {
  outline-color: #fff;
}

/* Пропустить меню и перейти к содержимому. Видна только с клавиатуры: на
   странице курса до первого урока иначе идёт полтора десятка нажатий. */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--purple-deep); color: #fff;
  padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-size: .95rem; font-weight: 700; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* Только для чтения с экрана: подпись есть, глазами не видно. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Меньше движения.

   В продукте много анимации: плавает маскот, пульсируют лампы, едут
   карточки. Для части людей — включая детей с вестибулярной
   чувствительностью — это не украшение, а причина головокружения и тошноты.
   Система умеет об этом сообщать, и мы обязаны слушать.

   Анимации не выключаем совсем, а сводим к мгновенному переходу: состояние
   меняется, движения нет. Так ничего не ломается — то, что анимация должна
   была показать, показано сразу. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


:root {
  /* «Старт» — палитра щенка-волчонка: насыщенный, но не кислотный фиолетовый */
  --purple: #8D66DB;
  /* Тот же фиолетовый, но пригодный нести белый текст. Основной #8D66DB
     даёт с белым 4.15:1 — ниже нормы 4.5, и это не зависит от размера
     обычного текста: он не пройдёт нигде. Заливки, плашки и кнопки, на
     которых написано белым, берут этот. Там, где фиолетовый сам является
     текстом на белом фоне, он тоже годится: 5.32:1. */
  --purple-strong: #7C51D0;
  --purple-light: #B39FE6;
  --purple-dark: #6B4FAE;
  --purple-deep: #4A3079;
  --purple-bg: #F1EEFA;
  --purple-border: #D8D7E5;
  --purple-muted: #6A6983;   /* тот же серый, та же причина */
  --text: #3A2F55;
  --text-gray: #6B6584;
  /* Приглушённый серый был #8D8CAE — на белом это контраст 3.23 при норме
     4.5 для обычного текста. Им набраны подписи и пояснения, то есть ровно
     то, что и так мельче основного. Затемнён до 5.30 на белом и 4.63 на
     лаванде: проходит на обоих фонах, которые есть в продукте. */
  --text-light: #6A6983;
  --border: #E3E0EF;
  --bg: #FFFFFF;
  --bg-light: #F7F5FC;
  --radius: 20px;
  --shadow: 0 2px 6px rgba(74,48,121,.08), 0 1px 3px rgba(74,48,121,.06);
  --shadow-md: 0 6px 16px rgba(74,48,121,.10), 0 2px 6px rgba(74,48,121,.07);
  --shadow-lg: 0 14px 28px rgba(74,48,121,.14), 0 4px 10px rgba(74,48,121,.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
p  { color: var(--text-gray); }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
  font-size: .9rem; cursor: pointer; border: none; transition: all .2s;
  font-family: inherit;
}
.btn-primary {
  /* Светлый конец градиента был --purple: белая надпись на нём — 4.15:1. */
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-strong));
  color: #fff;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(180,117,248,.5); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text-gray);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-ghost { background: transparent; color: var(--purple); padding: 0; }
.btn-ghost:hover { text-decoration: underline; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
/* .btn-vk убран вместе с кнопкой: входа через VK на сервере нет и разметки
   ни на одной странице не осталось. #0077FF был единственным синим в
   проекте, а синего в палитре не существует (CLAUDE.md). */

/* ── BADGES ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.badge-easy   { background: #F5F3FF; color: var(--purple-dark); }
.badge-medium { background: var(--purple-bg); color: var(--purple-deep); }
.badge-hard   { background: var(--purple-deep); color: #fff; }
.badge-expert { background: #3B1A6B; color: #fff; }
.badge-progress { background: #EDE9FE; color: var(--purple); }
.badge-viewed  { background: var(--purple-strong); color: #fff; }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; gap: 40px; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.nav-logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: var(--text-gray); transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-light); }
.nav-actions { margin-left: auto; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — hidden by default on all screen sizes */
.nav-mobile { display: none; }

/* ── STATS GRID ─────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow);
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--purple); line-height: 1; margin-bottom: 4px; }
.stat-value.dark { color: var(--text); }
.stat-label { font-size: .85rem; color: var(--text-gray); }

/* ── PAGE HEADER ────────────────────────────────────── */
.page-header { padding: 40px 0 0; }
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.page-header p { color: var(--text-gray); font-size: .95rem; margin-bottom: 32px; }

/* ── TASKS ───────────────────────────────────────────── */
.tasks-list { display: flex; flex-direction: column; gap: 12px; }
.task-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); transition: box-shadow .2s;
}
.task-item:hover { box-shadow: var(--shadow-md); }
.task-item.locked { opacity: .6; }
.task-check {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border);
}
.task-check.done { background: var(--purple); border-color: var(--purple); }
.task-check.active { border-color: var(--purple); background: transparent; }
.task-check.done svg { color: #fff; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.task-desc { font-size: .875rem; color: var(--text-gray); margin-bottom: 10px; }
.task-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.task-meta-item { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--text-gray); }
.task-meta-item svg { color: var(--text-light); }
.task-action { flex-shrink: 0; }
.locked-label { font-size: .875rem; color: var(--text-light); font-weight: 500; }

/* ── VIDEOS ──────────────────────────────────────────── */
.videos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.video-thumb {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #E5E7EB, #D1D5DB);
  display: flex; align-items: center; justify-content: center;
}
.video-thumb-icon { color: #9CA3AF; }
.video-badge-viewed {
  position: absolute; top: 10px; left: 10px;
  background: var(--purple); color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.video-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.75); color: #fff;
  padding: 3px 8px; border-radius: 6px; font-size: .8rem; font-weight: 600;
}
.video-body { padding: 16px; }
.video-title { font-weight: 700; font-size: .975rem; margin-bottom: 6px; line-height: 1.4; }
.video-desc { font-size: .8rem; color: var(--text-gray); margin-bottom: 14px; }
.video-footer { display: flex; align-items: center; justify-content: space-between; }
.video-views { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--text-gray); }

/* ── AUTH FORM ───────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); padding: 24px;
}
.auth-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.auth-card > p { font-size: .875rem; color: var(--text-gray); margin-bottom: 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-light); border-radius: 10px; padding: 4px; margin-bottom: 24px; gap: 4px; }
.auth-tab {
  padding: 8px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; background: transparent; color: var(--text-gray);
  transition: all .2s; font-family: inherit; text-align: center;
}
.auth-tab.active { background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .95rem; font-family: inherit; outline: none; transition: border-color .2s;
  background: var(--bg);
}
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.form-input::placeholder { color: var(--text-light); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider span { font-size: .8rem; color: var(--text-light); flex-shrink: 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #1A0533 0%, #2D1065 40%, #4C1D95 70%, #5B21B6 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(167,139,250,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(109,40,217,.4) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(124,58,237,.15) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 100px 24px; max-width: 800px; margin: 0 auto;
}
.hero-label { font-size: .8rem; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.6); text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 8px; }
.hero-sub { display: flex; justify-content: space-between; margin-bottom: 40px; }
.hero-sub span { font-size: .8rem; font-weight: 700; letter-spacing: .15em; color: rgba(255,255,255,.5); text-transform: uppercase; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 48px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; font-family: inherit; transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary { background: #fff; color: var(--purple); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.3); }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── LANDING SECTIONS ───────────────────────────────── */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { max-width: 560px; margin: 0 auto; }

.what-section { background: var(--bg); }
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.what-label {
  display: inline-block; background: var(--purple-bg); color: var(--purple);
  padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; margin-bottom: 20px;
}
.what-text h2 { margin-bottom: 16px; }
.what-text p { margin-bottom: 20px; line-height: 1.8; }
.what-img {
  background: linear-gradient(135deg, var(--purple-bg), var(--purple-border));
  border-radius: 20px; aspect-ratio: 1.2; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--purple-border);
}

.how-section { background: var(--bg-light); }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px; text-align: center;
  box-shadow: var(--shadow); position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step-card h3 { font-size: .9rem; margin-bottom: 8px; }
.step-card p { font-size: .8rem; }
.step-arrow { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--purple-border); z-index: 1; display: none; }

.audience-section { background: var(--bg); }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audience-card {
  border-radius: 16px; padding: 28px; position: relative; overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.audience-card.purple { background: linear-gradient(135deg, #4C1D95, #6D28D9); color: #fff; }
.audience-card.light  { background: var(--purple-bg); color: var(--text); border: 1px solid var(--purple-border); }
.audience-card.dark   { background: linear-gradient(135deg, #1F2937, #374151); color: #fff; }
.audience-card.white  { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.audience-tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.audience-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.audience-card p { font-size: .875rem; opacity: .8; margin-bottom: 20px; }
.audience-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700;
  padding: 8px 16px; border-radius: 8px; background: rgba(255,255,255,.15); color: inherit; transition: background .2s;
}
.audience-card.light .audience-link, .audience-card.white .audience-link { background: var(--purple-bg); color: var(--purple); }
.audience-link:hover { background: rgba(255,255,255,.25); }

.value-section {
  background: linear-gradient(135deg, #1A0533 0%, #2D1065 50%, #4C1D95 100%);
  color: #fff; text-align: center; padding: 100px 24px;
}
.value-section h2 { color: #fff; margin-bottom: 20px; }
.value-section p { color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto 40px; font-size: 1.05rem; line-height: 1.8; }
.value-pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.value-pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 8px 20px; border-radius: 30px; font-size: .875rem; font-weight: 600; }

.problems-section { background: var(--bg); }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.problem-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--purple-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--purple); }
.problem-card h3 { font-size: .975rem; margin-bottom: 8px; }
.problem-card p { font-size: .85rem; }

/* ── ABOUT PAGE ──────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #1A0533 0%, #4C1D95 100%);
  color: #fff; padding: 80px 24px; text-align: center;
}
.about-hero h1 { color: #fff; margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.about-mission { padding: 64px 0; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mission-text h2 { margin-bottom: 16px; }
.mission-text p { margin-bottom: 16px; line-height: 1.8; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.compare-table th { padding: 12px 16px; background: var(--purple-strong); color: #fff; font-weight: 700; font-size: .875rem; }
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child { border-radius: 0 8px 0 0; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .875rem; vertical-align: top; }
.compare-table tr:nth-child(even) td { background: var(--bg-light); }
.compare-table td:first-child { color: var(--text-gray); }
.compare-table td:last-child { color: var(--text); font-weight: 500; }

/* ── TEAM PAGE ───────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow); transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: #fff;
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: .8rem; color: var(--purple); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: .85rem; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: #111827; color: rgba(255,255,255,.6);
  padding: 48px 24px 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand { margin-bottom: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
/* Тёмный подвал сам задаёт себе светлый текст, но <p> перехватывало
   глобальное правило `p { color: var(--text-gray) }` — серый для белых
   страниц. На #111827 он давал 3.23:1, и описание под логотипом читалось
   хуже всего остального в подвале. Возвращаем наследование. */
.footer p { color: inherit; }
.footer-desc { font-size: .875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .875rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.footer-socials { display: flex; gap: 12px; }
.social-link { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: all .2s; }
.social-link:hover { background: var(--purple-strong); color: #fff; }

/* ── ACCOUNT PAGE ───────────────────────────────────── */
.account-hero {
  background: linear-gradient(135deg, #1A0533 0%, #4C1D95 100%);
  padding: 40px 0; color: #fff;
}
.account-profile { display: flex; align-items: center; gap: 24px; }
.account-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.account-name { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.account-meta { font-size: .875rem; color: rgba(255,255,255,.65); }
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.account-stat { background: rgba(255,255,255,.1); border-radius: 12px; padding: 16px 20px; }
.account-stat-val { font-size: 1.5rem; font-weight: 800; color: #fff; }
.account-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.6); }
.account-tabs { border-bottom: 1px solid var(--border); margin-bottom: 32px; display: flex; gap: 0; }
.account-tab {
  padding: 14px 20px; font-size: .9rem; font-weight: 600; color: var(--text-gray);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all .2s;
  background: none; border-left: none; border-right: none; border-top: none;
  font-family: inherit;
}
.account-tab.active { color: var(--purple); border-bottom-color: var(--purple); }
.account-tab:hover { color: var(--text); }

/* ── NOTIFICATION ───────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--text); color: #fff; padding: 14px 20px; border-radius: 10px;
  font-size: .875rem; font-weight: 500; box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0; transition: all .3s;
  max-width: 300px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── PROGRESS BAR ───────────────────────────────────── */
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 12px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-light)); border-radius: 4px; transition: width .4s; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav-mobile {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 99; flex-direction: column; padding: 24px;
    border-top: 1px solid var(--border); overflow-y: auto;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    padding: 14px 0; font-size: 1rem; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border); display: block;
  }
  .nav-mobile .btn { margin-top: 20px; width: 100%; justify-content: center; }

  .hero h1 { font-size: 2.5rem; }
  .hero-sub { display: none; }
  .what-grid, .mission-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .what-img { aspect-ratio: 2; }
  .audience-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .problems-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .account-stats { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .task-item { flex-wrap: wrap; }
  .task-action { width: 100%; }
  .task-action .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* ─── SUBJECT STACKS (общая «стопка»-карточка группировки по предметам) ───
   Используется на profile.html (нейротренажёры/теория), tasks.html, videos.html. */
.subj-stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; margin-top: 4px; }
.subj-stack-card {
  position: relative; border: none; background: none; padding: 0 0 8px 8px;
  font-family: inherit; text-align: left; cursor: pointer; display: block; width: 100%;
}
.subj-stack-layer {
  position: absolute; inset: 0 8px 8px 0; border-radius: 16px;
  background: #fff; border: 1.5px solid #F0F0F0; transition: transform .2s;
}
.subj-stack-layer.l2 { transform: translate(8px, 8px); }
.subj-stack-layer.l1 { transform: translate(4px, 4px); }
.subj-stack-card:hover .subj-stack-layer.l2 { transform: translate(10px, 10px); }
.subj-stack-card:hover .subj-stack-layer.l1 { transform: translate(5px, 5px); }
.subj-stack-front {
  position: relative; background: #FAFAFA; border: 1.5px solid #F0F0F0; border-radius: 16px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; transition: all .2s;
}
.subj-stack-card:hover .subj-stack-front { border-color: #B39FE6; background: #FBF7FF; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(180,117,248,.16); }
.subj-stack-emoji { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 2px; }
.subj-stack-title { font-size: 1rem; font-weight: 900; color: #0A0A0A; letter-spacing: -.01em; line-height: 1.3; }
.subj-stack-count { font-size: .78rem; color: #9CA3AF; font-weight: 700; }
.subj-stack-cta { font-size: .8rem; font-weight: 800; color: #8D66DB; margin-top: 6px; }
.subj-stack-lock-badge {
  font-size: .72rem; font-weight: 700; color: #8D66DB; background: #F3E8FF;
  border-radius: 8px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 4px; width: fit-content;
}
/* Предмет с заблокированным контентом внутри — тонкая пунктирная рамка + бейдж-замок в углу */
.subj-stack-card.has-locked .subj-stack-front { border-style: dashed; border-color: #D8C7F5; }
.subj-back-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700;
  color: #6B7280; background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0; margin-bottom: 20px; transition: color .15s;
}
.subj-back-btn:hover { color: #6B4FAE; }
/* ═══════════════════════════════════════════════════════════
   Переключатель курса и дорожная карта по ступеням
   Палитра состояний строго серый / фиолетовый / белый (см. CLAUDE.md)
   ═══════════════════════════════════════════════════════════ */

.cc-switcher { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.cc-switcher-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #8D8CAE; flex-shrink: 0;
}
.cc-switcher-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 20px;
  border: 1.5px solid #E8E6F0; background: #fff;
  font-family: inherit; font-size: .82rem; font-weight: 700; color: #6B6584;
  cursor: pointer; transition: all .18s;
}
.cc-chip:hover { border-color: #C9BCEA; color: #4A3079; }
.cc-chip.active { background: #4A3079; border-color: #4A3079; color: #fff; }
.cc-chip-icon { display: inline-flex; align-items: center; }
.cc-chip-icon.cc-tone-1 { color: #7448C7; }
.cc-chip-icon.cc-tone-2 { color: #6B4FAE; }
.cc-chip-icon.cc-tone-3 { color: #4A3079; }
.cc-chip-icon.cc-tone-4 { color: #7448C7; }
.cc-chip-icon.cc-tone-5 { color: #5B3E96; }
.cc-chip-icon.cc-tone-6 { color: #3B1A6B; }
.cc-chip.active .cc-chip-icon { color: #fff; }

/* ── Ступень ── */
.rm-step { margin-bottom: 26px; }
.rm-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rm-step-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 800;
  background: #EFEDF6; color: #8D8CAE;
}
.rm-step.is-done .rm-step-num { background: #8D66DB; color: #fff; }
.rm-step.is-current .rm-step-num { background: #4A3079; color: #fff; }
.rm-step-title { font-size: .88rem; font-weight: 800; color: #3A2F55; }
.rm-step.is-locked .rm-step-title { color: #A8A5BC; }
.rm-step-badge {
  font-size: .66rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: #EFEDF6; color: #8D8CAE; margin-left: auto;
}
.rm-step.is-current .rm-step-badge { background: #F1EEFA; color: #4A3079; }

/* ── Материал внутри ступени ── */
.rm-items { display: flex; flex-direction: column; gap: 8px; padding-left: 36px; }
.rm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px;
  background: #fff; border: 1.5px solid #EFEDF6;
  text-decoration: none; color: inherit; transition: all .18s;
}
.rm-item:hover:not(.is-locked) {
  border-color: #C9BCEA; transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(141,102,219,.12);
}
.rm-item.is-locked { background: #FAFAFC; border-color: #F0EFF5; cursor: default; }
.rm-item-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #F1EEFA; color: #6B4FAE;
}
.rm-item.is-locked .rm-item-icon { background: #F0EFF5; color: #B4B1C4; }
.rm-item.is-done .rm-item-icon { background: #8D66DB; color: #fff; }
.rm-item-body { flex: 1; min-width: 0; }
.rm-item-title { font-size: .88rem; font-weight: 700; color: #2A2340; line-height: 1.35; }
.rm-item.is-locked .rm-item-title { color: #A8A5BC; }
.rm-item-meta { font-size: .72rem; color: #8D8CAE; margin-top: 2px; }
.rm-item-action { font-size: .78rem; font-weight: 800; color: #8D66DB; flex-shrink: 0; }
.rm-item.is-locked .rm-item-action { color: #B4B1C4; font-weight: 700; }
.rm-item.is-done .rm-item-action { color: #8D8CAE; }

.rm-empty {
  background: #FAFAFC; border: 1.5px dashed #E8E6F0; border-radius: 16px;
  padding: 32px 20px; text-align: center; color: #8D8CAE; font-size: .9rem;
}

/* ══════════════════════════════════════════════════════════════════
   Карточка занятия — ею рисуются и развивающие игры (games.html), и
   каталог нейротренажёров в кабинете (profile.html).

   Разделы соседние: ребёнок ходит из одного в другой и не должен видеть
   разную вёрстку без причины. Раньше игры были крупными карточками с
   картинкой и кнопкой, а тренажёры — мелкими плитками со значком, хотя
   и то и другое ребёнок выбирает одинаково: по виду, а не по названию.
   ══════════════════════════════════════════════════════════════════ */
/* ─── Плитка игр ───
   Карточка разрезана надвое: слева живая картинка самой игры, справа
   цветная панель с названием и большой кнопкой. Ребёнок 1–4 класса
   выбирает игру по картинке, а не по названию, поэтому превью занимает
   почти половину карточки, а текст крупный. */
/* min(460px, 100%) вместо голых 460px: на телефоне минимум колонки шире
   экрана, и карточка выпирала за край, утаскивая за собой страницу. */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 22px; }
.gm-card {
  display: flex; flex-direction: row; padding: 0; overflow: hidden;
  border-radius: 24px; text-decoration: none; cursor: pointer;
  min-height: 272px; background: #fff;
  box-shadow: 0 6px 24px rgba(60,40,110,.10);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}
.gm-card.gm-tone-1 { --gm-accent: #7C51D0; }
.gm-card.gm-tone-2 { --gm-accent: #4A3079; }
.gm-card.gm-tone-3 { --gm-accent: #6B4FAE; }
.gm-card.gm-tone-4 { --gm-accent: #3B1A6B; }
.gm-card:hover {
  transform: translateY(-7px) scale(1.008);
  box-shadow: 0 18px 40px rgba(141,102,219,.26);
}
.gm-card:active { transform: translateY(-1px) scale(.995); }

/* Правая панель — цвет задаётся карточке через --gm-accent */
.gm-panel {
  flex: 1; min-width: 0; background: var(--gm-accent, #7C51D0);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 28px 26px;
}
.gm-card-title {
  font-size: 1.65rem; font-weight: 900; color: #fff; line-height: 1.2; letter-spacing: -.02em;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.gm-card-desc {
  /* Сплошной белый, не 92%: полупрозрачность съедала контраст до 3.79:1,
     а разница на глаз почти незаметна. */
  font-size: 1rem; color: #fff; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gm-card-time { font-size: .95rem; font-weight: 700; color: rgba(255,255,255,.9); }   /* было .75: 3.07:1 */
.gm-play {
  align-self: flex-start; margin-top: 6px;
  background: #fff; color: #4A3079;
  font-size: 1.05rem; font-weight: 900; letter-spacing: .05em;
  padding: 15px 36px; border-radius: 14px;
  box-shadow: 0 4px 0 rgba(30,14,64,.16);
  transition: transform .15s, box-shadow .15s;
}
.gm-card:hover .gm-card-title { transform: translateX(4px); }
.gm-card:hover .gm-play { transform: translateY(-3px) scale(1.025); box-shadow: 0 7px 0 rgba(30,14,64,.16); }

/* ─── Превью игры (левая половина) ─── */
.gm-prev {
  width: 46%; flex-shrink: 0; position: relative; overflow: hidden; background: #EDE7FB;
  transform: scale(1); transform-origin: center;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), filter .25s ease;
}
.gm-card:hover .gm-prev { transform: scale(1.045); }
.gm-prev-hero { position: absolute; z-index: 2; height: auto; }

/* «Счёт на лету»: облачка с примерами плывут мимо волчонка */
.gm-prev-run { background: linear-gradient(180deg, #F3EFFD 0%, #DED4F6 100%); }
.gm-bubble {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 999px;
  font-weight: 900; color: #4A3079; letter-spacing: -.02em;
  box-shadow: 0 6px 16px rgba(60,40,110,.16);
  animation: gmFloat 3.6s ease-in-out infinite;
}
.gm-bubble.b1 { left: 30%; top: 9%;  width: 58%; height: 21%; font-size: 1.5rem; }
.gm-bubble.b2 { left: 40%; top: 40%; width: 54%; height: 20%; font-size: 1.4rem; animation-delay: -1.2s; }
.gm-bubble.b3 { left: 26%; top: 71%; width: 56%; height: 20%; font-size: 1.45rem; animation-delay: -2.4s; }
@keyframes gmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.gm-prev-run .gm-prev-hero { left: 2%; bottom: 12%; width: 34%; animation: gmFloat 3s ease-in-out infinite; }

/* «Лабиринты»: тот же пол и кирпич, что в самой игре */
.gm-prev-maze { background: #E9E4F8; }
.gm-prev-maze::before {
  content: ''; position: absolute; inset: -20px; z-index: 0;
  /* Путь в CSS считается от папки самого файла стилей (css/), а не от
     страницы: без ../ браузер искал /css/images/ и получал 404. */
  background: url('../images/floor1.webp') repeat; background-size: 150px 150px;
  filter: blur(5px) brightness(2.1) saturate(.45);
}
.gm-mz {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr);
}
.gm-mz i { min-width: 0; min-height: 0; }
.gm-mz i.w { background: url('../images/wall-brick.png') repeat; background-size: 26px 26px; }
.gm-prev-maze .gm-prev-hero { left: 40%; top: 40%; width: 20%; }
.gm-prev-maze .gm-bone { position: absolute; z-index: 2; right: 16%; bottom: 14%; width: 15%; height: auto; }

/* Запасной вариант для механик без своей картинки */
.gm-prev-plain { display: flex; align-items: center; justify-content: center; }
.gm-prev-plain svg { width: 46%; height: auto; color: #8D66DB; opacity: .55; }

/* Мини-сцены нейротренажёров. Слева теперь не условный значок, а фрагмент
   задания: числа, карточки, лампы, буквы или игровое поле. Все детали
   собраны CSS-ом, поэтому остаются чёткими на любом экране. */
.gm-prev-scene {
  display: grid; place-items: center; color: #4A3079;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.95) 0 7%, transparent 8%),
    linear-gradient(145deg, #F6F2FF 0%, #E5DCF8 100%);
}
.gm-scene { position: relative; width: 84%; height: 74%; }
.gm-scene i { font-style: normal; }

/* Два числа: большее чуть выступает вперёд. */
.gm-scene-compare { display: flex; align-items: center; justify-content: space-between; }
.gm-number-card {
  display: grid; place-items: center; width: 40%; aspect-ratio: 1;
  border: 3px solid #D2C5ED; border-radius: 20px; background: #fff;
  font-size: 2rem; font-weight: 900; box-shadow: 0 8px 18px rgba(74,48,121,.12);
}
.gm-number-card.is-picked { color: #fff; background: #8D66DB; border-color: #8D66DB; transform: translateY(-9px); }
.gm-scene-question { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%,-50%); font-weight: 900; }

/* Лампы и слово-условие. */
.gm-scene-lamps { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.gm-lamps { display: flex; align-items: center; gap: 12px; }
.gm-lamps i { position: relative; width: 42px; height: 42px; border-radius: 50% 50% 45% 45%; background: #8D66DB; box-shadow: 0 0 0 7px rgba(141,102,219,.12), 0 8px 18px rgba(74,48,121,.16); }
.gm-lamps i:nth-child(2) { background: #4A3079; transform: translateY(-10px); }
.gm-lamps i:nth-child(3) { background: #E8A33D; }
.gm-lamps i::after { content: ''; position: absolute; width: 19px; height: 7px; left: 12px; bottom: -11px; border-radius: 4px; background: #9A92AD; }
.gm-scene-lamps strong { padding: 8px 14px; border-radius: 10px; background: #fff; box-shadow: 0 5px 13px rgba(74,48,121,.12); font-size: .84rem; letter-spacing: .05em; }

/* Таблица Шульте. */
.gm-scene-number-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.gm-scene-number-grid i { display: grid; place-items: center; min-width: 0; border-radius: 9px; background: #fff; border: 2px solid #D7CCEF; font-weight: 900; box-shadow: 0 3px 8px rgba(74,48,121,.08); }
.gm-scene-number-grid i.is-next { color: #fff; background: #8D66DB; border-color: #8D66DB; }

/* Карточки памяти. */
.gm-scene-memory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.gm-scene-memory i { display: grid; place-items: center; border-radius: 12px; background: #8D66DB; border: 3px solid rgba(255,255,255,.7); box-shadow: 0 5px 11px rgba(74,48,121,.14); color: transparent; font-weight: 900; font-size: 1.35rem; }
.gm-scene-memory i.is-open { color: #4A3079; background: #fff; transform: translateY(-4px); }

/* Запомнить порядок. */
.gm-scene-sequence { display: flex; align-items: center; justify-content: space-between; }
.gm-scene-sequence i { display: grid; place-items: center; width: 21%; aspect-ratio: 1; border-radius: 50%; color: #fff; background: #8D66DB; font-weight: 900; box-shadow: 0 0 0 7px rgba(141,102,219,.13); }
.gm-scene-sequence i:nth-child(2) { transform: translateY(-28px); background: #4A3079; }
.gm-scene-sequence i:nth-child(3) { transform: translateY(18px); }
.gm-scene-sequence i:nth-child(4) { transform: translateY(-11px); background: #6B4FAE; }

/* Сортировка по двум корзинам. */
.gm-scene-sort { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12px; padding-top: 48px; }
.gm-sort-box { display: grid; place-items: center; height: 66%; border: 3px solid #8D66DB; border-top-width: 8px; border-radius: 8px 8px 18px 18px; background: rgba(255,255,255,.72); font-size: 1.4rem; font-weight: 900; }
.gm-sort-token { position: absolute; top: 0; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: #fff; background: #4A3079; font-weight: 900; box-shadow: 0 5px 10px rgba(74,48,121,.18); }
.gm-sort-token.t1 { left: 20%; }
.gm-sort-token.t2 { right: 18%; top: 13px; background: #8D66DB; }

/* Связанные пары. */
.gm-scene-pairs { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.gm-scene-pairs > div { display: flex; flex-direction: column; gap: 9px; }
.gm-scene-pairs i { display: grid; place-items: center; height: 43px; border-radius: 50%; background: #fff; border: 2px solid #BBA8E5; font-weight: 900; }
.gm-pair-lines { display: flex; flex-direction: column; gap: 48px; transform: rotate(-6deg); }
.gm-pair-lines b { display: block; height: 3px; border-radius: 3px; background: #8D66DB; }
.gm-pair-lines b:nth-child(2) { transform: rotate(20deg); }
.gm-pair-lines b:nth-child(3) { transform: rotate(-14deg); }

/* Карточки флагов. */
.gm-scene-flags { display: flex; align-items: center; justify-content: center; gap: 16px; }
.gm-scene-flags span { position: relative; width: 4px; height: 105px; border-radius: 4px; background: #4A3079; }
.gm-scene-flags span:nth-child(2) { transform: translateY(-18px); }
.gm-scene-flags i { position: absolute; left: 4px; top: 7px; width: 48px; height: 34px; border-radius: 2px 8px 8px 2px; background: linear-gradient(#8D66DB 0 33%, #fff 33% 66%, #4A3079 66%); box-shadow: 0 4px 8px rgba(74,48,121,.14); }
.gm-scene-flags span:nth-child(2) i { background: linear-gradient(90deg, #E8A33D 0 35%, #F5F3FF 35%); }
.gm-scene-flags span:nth-child(3) i { background: linear-gradient(#4A3079 0 50%, #CFC1EE 50%); }

/* Счёты. */
.gm-scene-abacus { display: flex; flex-direction: column; justify-content: space-around; padding: 12px 8px; border: 8px solid #4A3079; border-radius: 18px; background: rgba(255,255,255,.54); }
.gm-scene-abacus span { position: relative; display: flex; gap: 6px; align-items: center; height: 4px; background: #9A92AD; }
.gm-scene-abacus i { width: 22px; height: 22px; border-radius: 45%; background: #8D66DB; box-shadow: inset 0 -4px rgba(74,48,121,.16); }
.gm-scene-abacus span:nth-child(2) i { background: #E8A33D; }

/* Два быстро показанных узора. */
.gm-scene-memory-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.gm-scene-memory-compare > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 5px 12px rgba(74,48,121,.12); }
.gm-scene-memory-compare i { aspect-ratio: 1; border-radius: 3px; background: #D7CCEF; }
.gm-scene-memory-compare div:first-child i:nth-child(2n), .gm-scene-memory-compare div:last-child i:nth-child(2n) { background: #8D66DB; }
.gm-scene-memory-compare div:last-child i:nth-child(5) { background: #E8A33D; }
.gm-scene-memory-compare strong { font-size: 1.25rem; }

/* Сигнальные лампы. */
.gm-scene-signals { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.gm-scene-signals span { display: flex; gap: 10px; padding: 12px; border-radius: 17px; background: #4A3079; box-shadow: 0 7px 15px rgba(74,48,121,.18); }
.gm-scene-signals i { width: 31px; height: 31px; border-radius: 50%; background: #776A91; border: 3px solid rgba(255,255,255,.22); }
.gm-scene-signals i.is-on { background: #F5F3FF; box-shadow: 0 0 0 7px rgba(245,243,255,.2), 0 0 24px #fff; }
.gm-scene-signals strong { font-size: .82rem; letter-spacing: .12em; }

/* Переключение правила. */
.gm-scene-switch { display: grid; place-items: center; }
.gm-scene-switch > div { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; }
.gm-scene-switch span { padding: 7px 9px; border-radius: 8px; background: #fff; font-size: .66rem; font-weight: 900; box-shadow: 0 4px 9px rgba(74,48,121,.11); }
.gm-scene-switch span:last-child { color: #fff; background: #4A3079; }
.gm-scene-switch > i { width: 72px; height: 72px; border-radius: 20px 50% 20px 50%; background: #8D66DB; transform: rotate(45deg); box-shadow: 0 8px 18px rgba(74,48,121,.2); }
.gm-scene-switch > b { position: absolute; font-size: 1.5rem; color: #fff; }

/* Светлячки. */
.gm-scene-fireflies i { position: absolute; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: #4A3079; background: #FFF4E0; box-shadow: 0 0 0 9px rgba(232,163,61,.12), 0 0 24px rgba(232,163,61,.7); font-weight: 900; }
.gm-scene-fireflies i:nth-child(1) { left: 8%; top: 13%; }
.gm-scene-fireflies i:nth-child(2) { right: 4%; top: 17%; }
.gm-scene-fireflies i:nth-child(3) { left: 39%; bottom: 3%; }
.gm-scene-fireflies i:nth-child(4) { right: 20%; bottom: 26%; }
.gm-scene-fireflies span { position: absolute; inset: 8%; border: 2px dashed rgba(74,48,121,.2); border-radius: 45%; }

/* Поиск в беспорядке. */
.gm-scene-clutter i { position: absolute; width: 48px; height: 48px; border-radius: 14px; border: 6px solid #8D66DB; transform: rotate(18deg); }
.gm-scene-clutter i:nth-child(1) { left: 5%; top: 8%; border-radius: 50%; }
.gm-scene-clutter i:nth-child(2) { left: 38%; top: 0; transform: rotate(45deg); }
.gm-scene-clutter i:nth-child(3) { right: 4%; top: 18%; border-radius: 50% 10px; }
.gm-scene-clutter i:nth-child(4) { left: 17%; bottom: 0; border-color: #4A3079; }
.gm-scene-clutter i:nth-child(5) { right: 27%; bottom: 3%; border-radius: 50%; }
.gm-scene-clutter i:nth-child(6) { left: 42%; top: 37%; width: 34px; height: 34px; border-color: #E8A33D; z-index: 2; box-shadow: 0 0 0 7px rgba(255,255,255,.8); }
.gm-scene-clutter i:nth-child(7) { right: 6%; bottom: 4%; transform: rotate(70deg); }

/* Картинка, которую надо запомнить. */
.gm-scene-eidetic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.gm-picture { position: relative; width: 80%; height: 76%; overflow: hidden; border: 7px solid #fff; border-radius: 16px; background: linear-gradient(#D9CFF2 0 57%, #8D66DB 57%); box-shadow: 0 7px 16px rgba(74,48,121,.17); }
.gm-picture i { position: absolute; left: 17%; bottom: 24%; width: 45px; height: 45px; background: #fff; transform: rotate(45deg); }
.gm-picture b { position: absolute; left: 10%; bottom: 0; width: 65px; height: 48px; background: #F5F3FF; border-radius: 4px; }
.gm-picture span { position: absolute; right: 12%; top: 15%; width: 34px; height: 34px; border-radius: 50%; background: #FFF4E0; box-shadow: 0 0 0 7px rgba(232,163,61,.15); }
.gm-scene-eidetic strong { font-size: .68rem; letter-spacing: .12em; }

/* Два задания одновременно. */
.gm-scene-halves { display: grid; grid-template-columns: 1fr 4px 1fr; align-items: stretch; gap: 10px; }
.gm-scene-halves span { display: grid; place-items: center; border-radius: 18px; background: #fff; box-shadow: 0 6px 14px rgba(74,48,121,.12); font-size: 1.15rem; font-weight: 900; text-align: center; }
.gm-scene-halves i { background: #8D66DB; border-radius: 4px; }

/* Ханойская башня. */
.gm-scene-hanoi { border-bottom: 7px solid #4A3079; }
.gm-scene-hanoi span { position: absolute; bottom: 0; width: 5px; height: 74%; border-radius: 5px 5px 0 0; background: #776A91; }
.gm-scene-hanoi span:nth-child(1) { left: 18%; }
.gm-scene-hanoi span:nth-child(2) { left: 49%; }
.gm-scene-hanoi span:nth-child(3) { right: 18%; }
.gm-scene-hanoi i { position: absolute; left: 3%; height: 22px; border-radius: 12px; background: #8D66DB; box-shadow: inset 0 -5px rgba(74,48,121,.14); }
.gm-scene-hanoi .d1 { width: 31%; bottom: 4px; }
.gm-scene-hanoi .d2 { left: 7%; width: 23%; bottom: 29px; background: #6B4FAE; }
.gm-scene-hanoi .d3 { left: 11%; width: 15%; bottom: 54px; background: #E8A33D; }

/* Поворот фигурки и поиск нужной руки. */
.gm-scene-rotation { display: grid; place-items: center; }
.gm-scene-rotation img { width: 74%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(74,48,121,.17)); transform: rotate(-7deg); }
.gm-mini-flag { position: absolute; left: 2%; top: 10%; width: 37px; height: 28px; border-left: 4px solid #4A3079; border-radius: 2px; background: #8D66DB; }
.gm-scene-rotation strong { position: absolute; right: 2%; top: 8%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 5px 12px rgba(74,48,121,.13); }

/* Пропавший символ. */
.gm-scene-missing { display: flex; align-items: center; justify-content: space-between; }
.gm-scene-missing i { display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 13px; background: #fff; border: 2px solid #D2C5ED; box-shadow: 0 5px 12px rgba(74,48,121,.1); font-weight: 900; font-size: 1.3rem; }
.gm-scene-missing i.is-missing { border-style: dashed; color: #8D66DB; background: transparent; }

/* Один элемент отличается. */
.gm-scene-difference { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gm-scene-difference i { width: 70%; aspect-ratio: 1; place-self: center; border-radius: 50%; background: #8D66DB; box-shadow: inset 0 -5px rgba(74,48,121,.16); }
.gm-scene-difference i.is-different { border-radius: 20%; background: #E8A33D; transform: rotate(45deg) scale(.82); }

/* Серия примеров. */
.gm-scene-count { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.gm-scene-count > strong { padding: 12px 23px; border-radius: 15px; background: #fff; box-shadow: 0 7px 15px rgba(74,48,121,.13); font-size: 1.65rem; }
.gm-scene-count > div { display: flex; gap: 8px; }
.gm-scene-count i { display: grid; place-items: center; width: 45px; height: 34px; border-radius: 9px; background: #D7CCEF; font-weight: 900; }
.gm-scene-count i.is-picked { color: #fff; background: #8D66DB; transform: translateY(-4px); }

/* Перепутанные буквы. */
.gm-scene-word { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.gm-scene-word > div { display: flex; gap: 6px; transform: rotate(-3deg); }
.gm-scene-word i { display: grid; place-items: center; width: 35px; height: 43px; border-radius: 9px; color: #fff; background: #8D66DB; box-shadow: 0 5px 0 #4A3079; font-weight: 900; }
.gm-scene-word i:nth-child(even) { transform: translateY(9px) rotate(5deg); background: #6B4FAE; }
.gm-scene-word strong { padding: 7px 15px; border-radius: 999px; background: #fff; font-size: .8rem; letter-spacing: .12em; box-shadow: 0 4px 10px rgba(74,48,121,.1); }

/* «Собери десять»: ребёнок сразу видит десятковую рамку и недостающее
   слагаемое, а не условный математический значок. */
.gm-scene-make-ten { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; }
.gm-ten-equation { display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 900; }
.gm-ten-equation span,
.gm-ten-equation strong {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid #D2C5ED; border-radius: 11px; background: #fff;
  box-shadow: 0 4px 10px rgba(74,48,121,.1); font-size: 1.14rem;
}
.gm-ten-equation span.is-missing { border-style: dashed; color: #8D66DB; background: #F5F3FF; }
.gm-ten-equation strong { color: #fff; background: #4A3079; border-color: #4A3079; }
.gm-ten-equation b { color: #6A617D; font-size: 1rem; }
.gm-ten-frame {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px;
  width: min(100%, 202px); padding: 7px; border: 3px solid #4A3079;
  border-radius: 13px; background: rgba(255,255,255,.72);
  box-shadow: 0 7px 15px rgba(74,48,121,.13);
}
.gm-ten-frame i { aspect-ratio: 1; border-radius: 7px; border: 2px solid #D7CCEF; background: #fff; }
.gm-ten-frame i.is-filled { background: #8D66DB; border-color: #8D66DB; box-shadow: inset 0 -4px rgba(74,48,121,.16); }

/* «Рамки площади»: четыре клетки по ширине и настоящая разбивка поля на
   прямоугольники. Цифра внутри — площадь рамки, как в самом задании. */
.gm-scene-area-frame { display: grid; place-items: center; }
.gm-area-board {
  position: relative; width: min(100%, 188px); aspect-ratio: 1;
  border: 4px solid #4A3079; border-radius: 14px; overflow: hidden;
  background-color: #fff;
  background-image:
    linear-gradient(to right, transparent calc(25% - 1px), #D7CCEF calc(25% - 1px) calc(25% + 1px), transparent calc(25% + 1px)),
    linear-gradient(to right, transparent calc(50% - 1px), #D7CCEF calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to right, transparent calc(75% - 1px), #D7CCEF calc(75% - 1px) calc(75% + 1px), transparent calc(75% + 1px)),
    linear-gradient(to bottom, transparent calc(25% - 1px), #D7CCEF calc(25% - 1px) calc(25% + 1px), transparent calc(25% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), #D7CCEF calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(75% - 1px), #D7CCEF calc(75% - 1px) calc(75% + 1px), transparent calc(75% + 1px));
  box-shadow: 0 8px 18px rgba(74,48,121,.14);
}
.gm-area-board span { position: absolute; display: grid; place-items: center; box-sizing: border-box; border: 2px solid #8D66DB; }
.gm-area-board b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #4A3079; background: #F5F3FF; font-size: .76rem; box-shadow: 0 2px 6px rgba(74,48,121,.11); }
.gm-area-board .zone-a { left: 0; top: 0; width: 50%; height: 50%; border-width: 0 3px 3px 0; }
.gm-area-board .zone-b { left: 50%; top: 0; width: 50%; height: 25%; border-width: 0 0 3px 0; }
.gm-area-board .zone-c { left: 50%; top: 25%; width: 50%; height: 50%; border-width: 0 0 3px 3px; }
.gm-area-board .zone-d { left: 0; top: 50%; width: 25%; height: 50%; border-width: 3px 3px 0 0; }
.gm-area-board .zone-e { left: 25%; top: 50%; width: 25%; height: 50%; border-width: 3px 3px 0 0; }
.gm-area-board .zone-f { left: 50%; top: 75%; width: 50%; height: 25%; border-width: 3px 0 0 3px; }

/* «Бумажный сгиб»: клетчатый лист, линия сгиба и пара симметричных
   проколов. Прозрачная половина подсказывает движение без анимации CTA. */
.gm-scene-paper-fold { display: grid; place-items: center; }
.gm-fold-paper {
  position: relative; width: min(100%, 188px); aspect-ratio: 1;
  transform: rotate(-2deg);
}
.gm-fold-sheet {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
  width: 100%; height: 100%; overflow: hidden;
  border: 4px solid #4A3079; border-radius: 14px; background: #fff;
  box-shadow: 0 8px 18px rgba(74,48,121,.14);
}
.gm-fold-sheet i { border-right: 1px solid #D7CCEF; border-bottom: 1px solid #D7CCEF; }
.gm-fold-axis { position: absolute; z-index: 4; left: 50%; top: 1%; bottom: 1%; border-left: 3px dashed #4A3079; transform: translateX(-50%); }
.gm-fold-dot { position: absolute; z-index: 5; width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: #8D66DB; box-shadow: 0 3px 8px rgba(74,48,121,.25); }
.gm-fold-dot.dot-one { left: 27%; top: 29%; }
.gm-fold-dot.dot-two { right: 27%; top: 29%; background: #C8B5EC; }
.gm-folded-side {
  position: absolute; z-index: 3; right: 5%; top: 5%; width: 45%; height: 90%;
  border: 2px solid rgba(141,102,219,.48); border-radius: 0 12px 12px 0;
  background: rgba(141,102,219,.13); transform: perspective(140px) rotateY(-18deg);
  transform-origin: left center;
}

/* Новые механики: мини-сцена показывает действие, а не служебный значок. */
.gm-scene-number-line { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:7px; }
.gm-scene-number-line .gm-line { position:relative; grid-column:1/-1; display:flex; align-items:flex-end; justify-content:space-between; height:70px; border-bottom:6px solid #4A3079; }
.gm-scene-number-line .gm-line i { width:4px; height:18px; border-radius:4px 4px 0 0; background:#8D66DB; }
.gm-scene-number-line .gm-line i.is-target { position:relative; height:44px; background:#E8A33D; }
.gm-scene-number-line .gm-line i.is-target::before { content:""; position:absolute; left:50%; top:-14px; width:20px; height:20px; border:4px solid #fff; border-radius:50%; background:#8D66DB; transform:translateX(-50%); box-shadow:0 2px 7px rgba(74,48,121,.25); }
.gm-scene-number-line span,.gm-scene-number-line strong { font-size:.78rem; color:#4A3079; }

.gm-scene-scales { display:grid; place-items:center; }
.gm-scale-beam { position:relative; display:grid; grid-template-columns:1fr 48px 1fr; width:100%; align-items:start; }
.gm-scale-beam::before { content:""; position:absolute; left:4%; right:4%; top:44px; height:6px; border-radius:9px; background:#4A3079; }
.gm-scale-beam span { position:relative; z-index:1; min-height:58px; padding:13px 4px; border:4px solid #4A3079; border-top:0; border-radius:0 0 32px 32px; background:#fff; text-align:center; font-weight:900; }
.gm-scale-beam i { margin:49px auto 0; border-left:24px solid transparent; border-right:24px solid transparent; border-bottom:64px solid #8D66DB; }

.gm-scene-pattern { display:flex; align-items:center; justify-content:center; gap:9px; }
.gm-scene-pattern i,.gm-scene-pattern b,.gm-scene-pattern strong { display:grid; place-items:center; width:38px; height:38px; border:3px solid #8D66DB; background:#8D66DB; }
.gm-scene-pattern i { border-radius:50%; }
.gm-scene-pattern b { border-radius:8px; }
.gm-scene-pattern strong { border-style:dashed; border-radius:10px; color:#4A3079; background:#fff; }

.gm-scene-silhouette { display:flex; align-items:center; justify-content:center; gap:18px; }
.gm-scene-silhouette > div,.gm-scene-silhouette > span { display:grid; grid-template-columns:repeat(4,1fr); gap:3px; width:112px; aspect-ratio:1; padding:5px; border-radius:12px; background:#fff; }
.gm-scene-silhouette > span { width:72px; }
.gm-scene-silhouette i { border-radius:3px; background:#EEE9F7; }
.gm-scene-silhouette i.is-filled { background:#4A3079; }
.gm-scene-silhouette i.is-piece { background:#8D66DB; }

.gm-scene-analogy { display:grid; grid-template-columns:42px 20px 42px; grid-template-rows:42px 42px; place-content:center; align-items:center; gap:9px; }
.gm-scene-analogy i,.gm-scene-analogy span,.gm-scene-analogy strong { width:36px; height:36px; border:3px solid #8D66DB; border-radius:50%; background:#fff; }
.gm-scene-analogy i.is-changed { background:#8D66DB; }
.gm-scene-analogy span { border-radius:7px; }
.gm-scene-analogy strong { display:grid; place-items:center; border-style:dashed; color:#4A3079; }
.gm-scene-analogy b { color:#4A3079; text-align:center; }

.gm-scene-perspective { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; }
.gm-scene-perspective > div { position:relative; display:grid; grid-template-columns:repeat(3,1fr); align-items:end; width:82%; min-height:90px; padding:14px; border:3px solid #4A3079; border-radius:15px; background:#fff; transform:perspective(220px) rotateX(45deg); }
.gm-scene-perspective i,.gm-scene-perspective b,.gm-scene-perspective span { place-self:center; width:34px; height:34px; background:#8D66DB; }
.gm-scene-perspective i { border-radius:50%; }
.gm-scene-perspective b { border-radius:7px; }
.gm-scene-perspective span { clip-path:polygon(50% 0,100% 100%,0 100%); background:#E8A33D; }
.gm-scene-perspective strong { font-size:.63rem; letter-spacing:.08em; color:#4A3079; }

@media (max-width: 560px) {
  .gm-scene-make-ten { gap: 12px; }
  .gm-ten-equation span,
  .gm-ten-equation strong { width: 34px; height: 34px; }
  .gm-ten-frame { width: min(90%, 220px); }
  .gm-area-board,
  .gm-fold-paper { width: min(88%, 176px); }
}

.gm-empty {
  background: #fff; border: 1.5px solid #E8E6F0; border-radius: 18px;
  padding: 48px 24px; text-align: center;
}
.gm-empty img { width: 104px; height: auto; margin: 0 auto 16px; display: block; }
.gm-empty-title { font-size: 1.25rem; font-weight: 900; color: #17122B; margin-bottom: 8px; }
.gm-empty-text { font-size: .98rem; color: #5B5570; line-height: 1.6; }

@media (max-width: 900px) {
  /* minmax(0, 1fr), а не просто 1fr: у 1fr неявный min-width: auto, и
     колонка не может стать уже своего содержимого. Меню с подписью
     «Нейротренажёры» распирало её до 532px на экране в 375 — страница
     ехала вбок целиком. Так же сделано в кабинете. */
  .gm-wrap { grid-template-columns: minmax(0, 1fr); }
  /* Игры выше меню: ребёнок открыл раздел, чтобы играть, а не листать
     пять пунктов навигации. Тот же порядок, что в кабинете. */
  .gm-sidebar { order: 2; position: static; height: auto; }
  .gm-main { order: 1; margin: 16px; padding: 40px 20px; }
}

/* На телефоне карточка складывается сверху вниз: в строку тексту
   остаётся полторы сотни пикселей на название, описание и кнопку. */
@media (max-width: 560px) {
  .gm-card { flex-direction: column; min-height: 0; }
  .gm-prev { width: 100%; height: 150px; }
  .gm-panel { padding: 22px 20px; }
  .gm-card-title { font-size: 1.4rem; }
}

/* Закрытый подпиской тренажёр сохраняет полноценную игровую мини-сцену,
   но становится серым целиком. Так ребёнок видит, что именно его ждёт,
   и одновременно сразу отличает доступное от закрытого.

   Карточка остаётся блоком, а не ссылкой: сервер не отдаёт содержимое
   закрытого тренажёра, и нажатие не должно имитировать рабочий переход. */
.gm-card.is-locked { cursor: default; box-shadow: 0 4px 16px rgba(60,40,110,.07); }
.gm-card.is-locked .gm-panel { background: #6A6983; }
.gm-card.is-locked .gm-prev { filter: grayscale(1); background: #F0EFF5; }
.gm-card.is-locked:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60,40,110,.12); }
.gm-card.is-locked:hover .gm-play { transform: none; box-shadow: 0 4px 0 rgba(30,14,64,.12); }
.gm-play-locked {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F3F1FA; color: #5A5470; cursor: default;
  box-shadow: 0 4px 0 rgba(30,14,64,.12);
}
