/* Раздел /game — единый стиль с start/program/speakers */
/* Токены (effect-start): #1a1814, #0d0d0d, #050505, #e8e4dc, #c9b896, #d4af37, #8a8578, #2a2824, #3d3a34, #1f1d1a, #1a1a1a */

@media (prefers-reduced-motion: reduce) {
  .effect-game *,
  .effect-game-page *,
  .effect-program--welcome * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.effect-game,
.effect-game-page {
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.effect-game body,
.effect-game-page body {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
}

/* Welcome (welcomeAfterCheckin) — та же палитра, что у /start и программы */
.effect-program--welcome {
  min-height: 100dvh;
  box-sizing: border-box;
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 32px;
}

.effect-program--welcome .effect-program__back {
  color: var(--color-text-muted);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.effect-program--welcome .effect-program__back:hover {
  color: var(--color-accent);
}

.effect-program--welcome .effect-program__nav-title {
  color: var(--color-text);
}

.effect-program--welcome.effect-game-page {
  padding-top: 84px;
}

.effect-program--welcome .effect-program__header--welcome {
  margin-bottom: 20px;
}

.effect-program--welcome .effect-program__header--welcome .effect-program__intro {
  margin-bottom: 16px;
}

.effect-program--welcome .effect-program__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: min(400px, 100%);
  margin: 0 auto 8px;
}

.effect-program--welcome .effect-program__block--info {
  background: var(--color-block);
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.effect-program--welcome .effect-program__block--info .effect-program__block-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
}

.effect-program--welcome .effect-program__info-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  min-height: 28px;
}

.effect-program--welcome .effect-program__info-user i {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.85;
  font-size: 1.15em;
}

.effect-program--welcome .effect-program__info-params {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.effect-program--welcome .effect-program__info-score {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.effect-program--welcome .effect-program__info-score div {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.effect-program--welcome .effect-program__info-score span {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: lowercase;
}

/* Мобильная: 2 колонки 80 | 20, слева иконка + имя/фамилия, справа баллы */
@media (max-width: 575px) {
  .effect-program--welcome .effect-program__list {
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }

  .effect-program--welcome .effect-program__block--info .effect-program__block-body {
    padding: 16px 18px;
    gap: 0;
  }

  /* Первый блок (игрок): 80% | 20% */
  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-user {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-left {
    flex: 0 0 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-left i {
    flex-shrink: 0;
    color: var(--color-accent);
    opacity: 0.9;
    font-size: 1.25em;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-name-line {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-score--hero {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 48px;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-score-value {
    font-size: clamp(24px, 9vw, 32px);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-params {
    display: none;
  }

  /* Блок команды — без изменений */
  .effect-program--welcome .effect-program__block--info:not(:first-child) .effect-program__block-body {
    gap: 12px;
  }

  .effect-program--welcome .effect-program__block--info:not(:first-child) .effect-program__info-user {
    font-size: 15px;
    gap: 10px;
  }

  .effect-program--welcome .effect-program__block--info .effect-program__info-params {
    gap: 16px 20px;
  }

  .effect-program--welcome .effect-program__block--info .effect-program__info-score div {
    font-size: 20px;
  }

  .effect-program--welcome .effect-program__block--info .effect-program__info-score span {
    font-size: 12px;
  }
}

/* Планшет/десктоп (576px+): блок инфо — горизонтальная раскладка */
@media (min-width: 576px) {
  .effect-program--welcome .effect-program__block--info {
    border-radius: 14px;
  }

  .effect-program--welcome .effect-program__block--info .effect-program__block-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-user {
    flex: 1;
    min-width: 0;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-left {
    flex: 1;
    min-width: 0;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-score--hero {
    display: none;
  }

  .effect-program--welcome .effect-program__block--info:first-child .effect-program__info-params {
    display: flex;
  }

  .effect-program--welcome .effect-program__info-user {
    font-size: 18px;
  }

  .effect-program--welcome .effect-program__info-name-line {
    font-size: inherit !important;
  }

  .effect-program--welcome .effect-program__info-params {
    gap: 28px 32px;
  }

  .effect-program--welcome .effect-program__info-score div {
    font-size: 26px;
  }

  .effect-program--welcome .effect-program__info-score span {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .effect-program--welcome .effect-program__block--info .effect-program__block-body {
    padding: 24px 28px;
  }

  .effect-program--welcome .effect-program__info-score div {
    font-size: 28px;
  }
}

.effect-program__welcome-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-accent);
  margin: 20px 0 20px;
  max-width: 18ch;
}

.effect-program__welcome-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.effect-program__welcome-text {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 400px;
}

.effect-program__welcome-text--muted {
  color: var(--color-text-muted);
  font-size: 15px;
}

.effect-program__welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  max-width: min(400px, 100%);
}

.effect-program__welcome-form {
  width: 100%;
  margin: 0;
}

.effect-program--welcome .effect-program__btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
  padding: 12px 20px;
  background: transparent !important;
  color: var(--color-accent) !important;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.effect-program--welcome .effect-program__btn--outline:hover {
  background: rgba(139, 105, 20, 0.08) !important;
  border-color: var(--color-accent-hover, #a67c52);
  color: var(--color-accent-hover, #a67c52) !important;
}

.effect-program--welcome .effect-program__btn--outline:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .effect-program--welcome .effect-program__welcome-title {
    margin-bottom: 16px;
  }
  .effect-program--welcome .effect-program__welcome-img {
    margin-bottom: 12px;
  }
}

@media (min-width: 576px) {
  .effect-program--welcome .effect-program__welcome-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
  }

  .effect-program--welcome .effect-program__welcome-form {
    flex: 1 1 220px;
    max-width: 300px;
    width: auto;
  }

  .effect-program--welcome .effect-program__btn--outline {
    flex: 0 1 auto;
    min-width: 160px;
    align-self: center;
  }
}

.effect-program--welcome .effect-program__welcome-form .effect-program__btn {
  width: 100%;
  height: 56px;
  min-height: 48px;
  background: var(--color-btn-bg) !important;
  color: var(--color-btn-text) !important;
  border: 1px solid var(--color-btn-border);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
}

.effect-program--welcome .effect-program__welcome-form .effect-program__btn:hover {
  background: #35322c !important;
  border-color: #4a463e;
  color: var(--color-btn-text) !important;
}

.effect-program--welcome .effect-program__support {
  width: 100%;
  max-width: min(400px, 100%);
}

.effect-program--welcome .effect-program__support-bot {
  background: var(--color-block-alt) !important;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border-strong);
}

.effect-program--welcome .effect-program__support-bot:hover {
  color: var(--color-accent) !important;
}

.effect-program--welcome .effect-program__support-bot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.effect-program--welcome .effect-program__support-label {
  color: var(--color-text-muted);
}

/* Техподдержка: тёмная капсула на игровых экранах — кроме adaptive-дашборда (светлая тема) */
.effect-game-page:not(.effect-program--welcome):not(.effect-game-page--adaptive) .effect-program__support-bot {
  background: #1f1d1a !important;
  border: none;
}

.effect-game-page:not(.effect-program--welcome):not(.effect-game-page--adaptive) .effect-program__support-bot:hover {
  color: #d4af37;
}

.effect-game-page:not(.effect-program--welcome):not(.effect-game-page--adaptive) .effect-program__support-bot:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

.effect-game-page--adaptive:not(.effect-program--welcome) .effect-program__support-bot {
  background: var(--color-block-alt, #f5f0e1) !important;
  color: var(--color-text-muted, #5c574f) !important;
  border: 1px solid var(--color-border-strong, #d4c9a8);
}

.effect-game-page--adaptive:not(.effect-program--welcome) .effect-program__support-bot:hover {
  color: var(--color-accent, #8b6914) !important;
}

.effect-game-page--adaptive:not(.effect-program--welcome) .effect-program__support-bot:focus-visible {
  outline: 2px solid var(--color-accent, #8b6914);
  outline-offset: 2px;
}

.effect-game-page--adaptive:not(.effect-program--welcome) .effect-program__support-label {
  color: var(--color-text-muted, #5c574f);
}

/* Navbar — тёмный фон #0d0d0d, белые иконки */
.svoi__navbar {
  background: #0d0d0d !important;
  border-bottom: 1px solid #2a2824;
  transition: background 0.2s, border-color 0.2s;
}

/* Первый блок контента под fixed-top svoi__navbar (согласовано с .effect-program--with-navbar / сайдбаром top: 84px) */
.svoi-navbar-body-offset {
  padding-top: 84px;
  box-sizing: border-box;
}

.svoi__navbar .navbar-btn-left,
.svoi__navbar .navbar-btn-right {
  color: #e8e4dc !important;
  transition: color 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.svoi__navbar .navbar-btn-left:hover,
.svoi__navbar .navbar-btn-right:hover {
  color: #d4af37 !important;
}

.svoi__navbar .navbar-btn-left:focus-visible,
.svoi__navbar .navbar-btn-right:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Кнопка карты скрыта; блок сохраняет ширину — бургер и лого не смещаются */
.svoi__navbar .navbar-map-trigger {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.svoi__navbar .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* Список заданий / карточка задания: бургер всегда белый на тёмном навбаре */
body:has(.effect-game-page--adaptive) .svoi__navbar .navbar-toggler-icon,
body:has(.effect-task-page--adaptive) .svoi__navbar .navbar-toggler-icon,
body:has(.effect-task-page) .svoi__navbar .navbar-toggler-icon {
  filter: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.5em 1.5em;
}

.svoi__navbar .navbar-pin-icon {
  filter: brightness(0) invert(1);
}

.svoi__navbar .navbar-brand {
  color: #e8e4dc !important;
  text-decoration: none;
}

.svoi__navbar-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.svoi__navbar-brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 0.9;
  font-family: var(--font-heading);
  color: currentColor;
}

.svoi__navbar-brand-word {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.svoi__navbar-brand-eight {
  font-family: 'Bounded', 'Unbounded', sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.svoi__navbar-brand-subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Offcanvas — стиль effect-program блоков (#1a1a1a, border #2a2824, radius 12–14px) */
.offcanvas {
  background: #0d0d0d !important;
  color: #e8e4dc;
  border-right: 1px solid #2a2824;
}

/* Десктоп: навменю слева — ширина и отступы */
@media (min-width: 992px) {
  /* /game и /task: бургер скрыт (сайдбар развёрнут), логотип остаётся по центру */
  body:has(.effect-game-page--adaptive) .svoi__navbar .navbar-btn-left,
  body:has(.effect-task-page--adaptive) .svoi__navbar .navbar-btn-left,
  body:has(.effect-task-page) .svoi__navbar .navbar-btn-left {
    display: none !important;
  }
  body:has(.effect-game-page--adaptive) .svoi__navbar .container-fluid > div:first-child,
  body:has(.effect-task-page--adaptive) .svoi__navbar .container-fluid > div:first-child,
  body:has(.effect-task-page) .svoi__navbar .container-fluid > div:first-child {
    flex: 0 0 44px;
    min-width: 44px;
  }

  .svoi__navbar .offcanvas-start.effect-program__offcanvas {
    width: 380px;
    max-width: 90vw;
  }
  .svoi__navbar .offcanvas-start .game-menu {
    padding: 0 8px;
    gap: 28px;
  }
  .svoi__navbar .offcanvas-start .game-menu__section-title {
    font-size: 1rem;
  }
  .svoi__navbar .offcanvas-start .game-menu__link {
    font-size: 17px;
    min-height: 52px;
    padding: 14px 18px;
  }
}

.offcanvas-header {
  border-bottom: 1px solid #2a2824;
}

.offcanvas-title {
  color: #e8e4dc;
  font-weight: 600;
}

.offcanvas .btn-close {
  filter: invert(1);
  opacity: 0.8;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}

.offcanvas .btn-close:hover {
  opacity: 1;
}

.offcanvas .btn-close:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* /game и /task (adaptive): offcanvas, карта и меню — светлая палитра проекта */
body:has(.effect-game-page--adaptive) .offcanvas,
body:has(.effect-task-page--adaptive) .offcanvas {
  background: var(--color-bg, #f9eacd) !important;
  color: var(--color-text, #1a1a1a);
  border-right-color: var(--color-border, #e5dcc8);
}

body:has(.effect-game-page--adaptive) .offcanvas.offcanvas-end,
body:has(.effect-task-page--adaptive) .offcanvas.offcanvas-end {
  border-left: 1px solid var(--color-border, #e5dcc8);
  border-right: none;
}

body:has(.effect-game-page--adaptive) .offcanvas-header,
body:has(.effect-task-page--adaptive) .offcanvas-header {
  border-bottom-color: var(--color-border, #e5dcc8);
}

body:has(.effect-game-page--adaptive) .offcanvas-title,
body:has(.effect-task-page--adaptive) .offcanvas-title {
  color: var(--color-text, #1a1a1a);
}

body:has(.effect-game-page--adaptive) .offcanvas .btn-close,
body:has(.effect-task-page--adaptive) .offcanvas .btn-close {
  filter: none;
  opacity: 0.55;
}

body:has(.effect-game-page--adaptive) .offcanvas .btn-close:hover,
body:has(.effect-task-page--adaptive) .offcanvas .btn-close:hover {
  opacity: 0.85;
}

body:has(.effect-game-page--adaptive) .offcanvas .btn-close:focus-visible,
body:has(.effect-task-page--adaptive) .offcanvas .btn-close:focus-visible {
  outline: 2px solid var(--color-accent, #8b6914);
  outline-offset: 2px;
}

body:has(.effect-game-page--adaptive) .game-drawer__header,
body:has(.effect-task-page--adaptive) .game-drawer__header {
  border-bottom-color: var(--color-border, #e5dcc8);
}

body:has(.effect-game-page--adaptive) .game-drawer:not(.game-drawer--map) .game-drawer__header,
body:has(.effect-task-page--adaptive) .game-drawer:not(.game-drawer--map) .game-drawer__header {
  background: var(--color-block, #fffef8);
}

body:has(.effect-game-page--adaptive) .game-drawer__title,
body:has(.effect-task-page--adaptive) .game-drawer__title {
  color: var(--color-text, #1a1a1a);
}

body:has(.effect-game-page--adaptive) .game-drawer__subtitle,
body:has(.effect-task-page--adaptive) .game-drawer__subtitle {
  color: var(--color-text-muted, #5c574f);
}

body:has(.effect-game-page--adaptive) .game-menu__section-title,
body:has(.effect-task-page--adaptive) .game-menu__section-title {
  color: var(--color-text-muted, #5c574f);
}

body:has(.effect-game-page--adaptive) .game-menu__link,
body:has(.effect-task-page--adaptive) .game-menu__link {
  background: var(--color-block, #fffef8);
  border: 1px solid var(--color-border, #e5dcc8);
  color: var(--color-text, #1a1a1a);
}

body:has(.effect-game-page--adaptive) .game-menu__link:hover,
body:has(.effect-task-page--adaptive) .game-menu__link:hover {
  background: var(--color-block-alt, #f5f0e1);
  border-color: var(--color-border-strong, #d4c9a8);
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__link-icon,
body:has(.effect-task-page--adaptive) .game-menu__link-icon {
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__link:hover .game-menu__link-icon,
body:has(.effect-task-page--adaptive) .game-menu__link:hover .game-menu__link-icon {
  color: var(--color-accent-hover, #a67c52);
}

body:has(.effect-game-page--adaptive) .game-menu__link:focus-visible,
body:has(.effect-task-page--adaptive) .game-menu__link:focus-visible {
  outline: 2px solid var(--color-accent, #8b6914);
  outline-offset: 2px;
}

body:has(.effect-game-page--adaptive) .game-menu__link--accent,
body:has(.effect-task-page--adaptive) .game-menu__link--accent {
  background: rgba(139, 105, 20, 0.12);
  border-color: rgba(139, 105, 20, 0.35);
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__link--accent:hover,
body:has(.effect-task-page--adaptive) .game-menu__link--accent:hover {
  background: rgba(139, 105, 20, 0.18);
  border-color: var(--color-accent, #8b6914);
  color: var(--color-accent-hover, #a67c52);
}

body:has(.effect-game-page--adaptive) .game-menu__progress-card,
body:has(.effect-task-page--adaptive) .game-menu__progress-card {
  background: linear-gradient(145deg, #fffef8 0%, #f5f0e1 100%);
  border: 1px solid var(--color-border, #e5dcc8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body:has(.effect-game-page--adaptive) .game-menu__progress-card::before,
body:has(.effect-task-page--adaptive) .game-menu__progress-card::before {
  background: linear-gradient(
    90deg,
    var(--color-accent, #8b6914) 0%,
    #c9a227 50%,
    var(--color-accent, #8b6914) 100%
  );
}

body:has(.effect-game-page--adaptive) .game-menu__progress-avatar,
body:has(.effect-task-page--adaptive) .game-menu__progress-avatar {
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__progress-name,
body:has(.effect-task-page--adaptive) .game-menu__progress-name {
  color: var(--color-text, #1a1a1a);
}

body:has(.effect-game-page--adaptive) .game-menu__progress-value,
body:has(.effect-task-page--adaptive) .game-menu__progress-value {
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__progress-label,
body:has(.effect-task-page--adaptive) .game-menu__progress-label {
  color: var(--color-text-muted, #5c574f);
}

body:has(.effect-game-page--adaptive) .game-menu__progress-sub,
body:has(.effect-task-page--adaptive) .game-menu__progress-sub {
  color: var(--color-text-soft, #6b6560);
}

body:has(.effect-game-page--adaptive) .game-menu__progress-stat,
body:has(.effect-task-page--adaptive) .game-menu__progress-stat {
  background: rgba(139, 105, 20, 0.08);
  border: 1px solid var(--color-border-strong, #d4c9a8);
}

body:has(.effect-game-page--adaptive) .game-menu__timing-item,
body:has(.effect-task-page--adaptive) .game-menu__timing-item {
  color: var(--color-text, #1a1a1a);
  border-bottom-color: var(--color-border, #e5dcc8);
}

body:has(.effect-game-page--adaptive) .game-menu__timing-time,
body:has(.effect-task-page--adaptive) .game-menu__timing-time {
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__timing-loc,
body:has(.effect-task-page--adaptive) .game-menu__timing-loc {
  color: var(--color-text-muted, #5c574f);
}

body:has(.effect-game-page--adaptive) .game-menu__timing-item--link,
body:has(.effect-task-page--adaptive) .game-menu__timing-item--link {
  color: var(--color-text, #1a1a1a);
}

body:has(.effect-game-page--adaptive) .game-menu__timing-item--link:hover,
body:has(.effect-task-page--adaptive) .game-menu__timing-item--link:hover {
  background: rgba(139, 105, 20, 0.08);
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__timing-item--link:focus-visible,
body:has(.effect-task-page--adaptive) .game-menu__timing-item--link:focus-visible {
  outline: 2px solid var(--color-accent, #8b6914);
  outline-offset: 2px;
}

body:has(.effect-game-page--adaptive) .game-menu__empty-hint,
body:has(.effect-task-page--adaptive) .game-menu__empty-hint,
body:has(.effect-game-page--adaptive) .game-menu__guest-hint,
body:has(.effect-task-page--adaptive) .game-menu__guest-hint {
  color: var(--color-text-muted, #5c574f);
}

body:has(.effect-game-page--adaptive) .game-menu__support,
body:has(.effect-task-page--adaptive) .game-menu__support {
  border-top-color: var(--color-border, #e5dcc8);
}

body:has(.effect-game-page--adaptive) .game-menu__support-link,
body:has(.effect-task-page--adaptive) .game-menu__support-link {
  color: var(--color-text-muted, #5c574f);
}

body:has(.effect-game-page--adaptive) .game-menu__support-link:hover,
body:has(.effect-task-page--adaptive) .game-menu__support-link:hover {
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .game-menu__support-link:focus-visible,
body:has(.effect-task-page--adaptive) .game-menu__support-link:focus-visible {
  outline: 2px solid var(--color-accent, #8b6914);
  outline-offset: 2px;
}

body:has(.effect-game-page--adaptive) .game-drawer--map .game-drawer__header,
body:has(.effect-task-page--adaptive) .game-drawer--map .game-drawer__header {
  background: var(--color-block, #fffef8);
  border-bottom-color: var(--color-border, #e5dcc8);
}

body:has(.effect-game-page--adaptive) .game-drawer--map .game-drawer__title,
body:has(.effect-task-page--adaptive) .game-drawer--map .game-drawer__title {
  color: var(--color-text, #1a1a1a);
}

body:has(.effect-game-page--adaptive) .game-drawer--map .game-drawer__subtitle,
body:has(.effect-task-page--adaptive) .game-drawer--map .game-drawer__subtitle {
  color: var(--color-text-muted, #5c574f);
}

body:has(.effect-game-page--adaptive) .game-drawer--map .game-drawer__close,
body:has(.effect-task-page--adaptive) .game-drawer--map .game-drawer__close {
  filter: none;
  opacity: 0.55;
}

body:has(.effect-game-page--adaptive) .map-panel__body,
body:has(.effect-task-page--adaptive) .map-panel__body {
  background: var(--color-bg, #f9eacd);
}

body:has(.effect-game-page--adaptive) .map-panel__map-wrap,
body:has(.effect-task-page--adaptive) .map-panel__map-wrap {
  background: var(--color-block-alt, #f5f0e1);
}

body:has(.effect-game-page--adaptive) .map-panel__section,
body:has(.effect-task-page--adaptive) .map-panel__section {
  background: var(--color-block, #fffef8);
  border: 1px solid var(--color-border, #e5dcc8);
}

body:has(.effect-game-page--adaptive) .map-panel__section-title,
body:has(.effect-task-page--adaptive) .map-panel__section-title {
  color: var(--color-accent, #8b6914);
}

body:has(.effect-game-page--adaptive) .map-panel__list,
body:has(.effect-task-page--adaptive) .map-panel__list {
  color: var(--color-text, #1a1a1a);
}

body:has(.effect-game-page--adaptive) .map-panel__list li,
body:has(.effect-task-page--adaptive) .map-panel__list li {
  color: var(--color-text-soft, #6b6560);
}

body:has(.effect-game-page--adaptive) .map-panel__list--numbered .map-panel__num,
body:has(.effect-task-page--adaptive) .map-panel__list--numbered .map-panel__num {
  background: var(--color-block-alt, #f5f0e1);
  color: var(--color-accent, #8b6914);
  border: 1px solid var(--color-border-strong, #d4c9a8);
}

body:has(.effect-game-page--adaptive) .offcanvas-body a.text-white,
body:has(.effect-task-page--adaptive) .offcanvas-body a.text-white {
  color: var(--color-text, #1a1a1a) !important;
}

body:has(.effect-game-page--adaptive) .offcanvas-body a.text-white:hover,
body:has(.effect-task-page--adaptive) .offcanvas-body a.text-white:hover {
  color: var(--color-accent, #8b6914) !important;
}

body:has(.effect-game-page--adaptive) .offcanvas-body a:focus-visible,
body:has(.effect-task-page--adaptive) .offcanvas-body a:focus-visible {
  outline: 2px solid var(--color-accent, #8b6914);
  outline-offset: 2px;
}

.cv-sheet .info__block {
  background: #1a1a1a !important;
  border-radius: 14px;
  border: 1px solid #2a2824;
  color: #e8e4dc;
  padding: 18px 20px;
}

.cv-sheet .info__block .info__params .info__score div {
  color: #d4af37;
}

.timing__block .timing__item {
  background: #1a1a1a;
  border: 1px solid #2a2824;
  border-radius: 12px;
  margin-bottom: 12px;
}

.timing__block .timing__header .timing__time,
.timing__block .timing__header .timing__name {
  color: #d4af37;
}

/* Map panel (карта площадки) — правый offcanvas */
.map-panel.offcanvas-end {
  border-left: 1px solid #2a2824;
}

.map-panel__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.map-panel__map-wrap {
  flex-shrink: 0;
  background: #1a1a1a;
  padding: 0;
}

.map-panel__img {
  width: 100%;
  display: block;
  vertical-align: top;
}

.map-panel__legend {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-panel__section {
  background: #1a1a1a;
  border: 1px solid #2a2824;
  border-radius: 12px;
  padding: 16px 18px;
}

.map-panel__section-title {
  font-size: 14px;
  font-weight: 600;
  color: #d4af37;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.map-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #e8e4dc;
  font-size: 15px;
  line-height: 1.5;
}

.map-panel__list li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 4px 0;
  color: #c9b896;
}

.map-panel__list--numbered .map-panel__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  margin-right: 10px;
  background: #2a2824;
  color: #d4af37;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.map-panel__list--numbered li {
  padding: 6px 0;
}

.offcanvas-body a.text-white {
  color: #e8e4dc !important;
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.offcanvas-body a.text-white:hover {
  color: #d4af37 !important;
}

.offcanvas-body a:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Левое меню игрового навбара — game-menu */
.game-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 4px;
}

.game-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #2a2824;
  border-radius: 12px;
  color: #e8e4dc;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.game-menu__link:hover {
  background: #2a2824;
  border-color: #3d3a34;
  color: #d4af37;
}

.game-menu__link:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

button.game-menu__link {
  cursor: pointer;
  font: inherit;
  width: 100%;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.game-menu__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  font-size: 18px;
  color: #c9b896;
  flex-shrink: 0;
}

.game-menu__link:hover .game-menu__link-icon {
  color: #d4af37;
}

.game-menu__link--outline {
  background: transparent;
  border-style: dashed;
}

.game-menu__section {
  flex-shrink: 0;
}

/* Стартовое левое меню: линия шапки без лишнего зазора; отступ 20px — от линии до «Разделы» */
.game-drawer--start .game-drawer__header {
  padding-bottom: 12px;
}

.game-drawer--start .game-drawer__body {
  padding-top: 0;
}

/* Гости: «Программа фестиваля» и «Регистрация» подряд (как в десктоп-меню), зазор как у game-menu__nav */
.game-menu__guest-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.game-menu__guest-cta .game-drawer__register-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.game-drawer--start #drawer-nav-start {
  margin-top: 20px;
  margin-bottom: 12px;
}

.game-menu__section-title {
  font-size: 13px;
  font-weight: 600;
  color: #8a8578;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.game-menu__section-heading-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.game-menu__section-heading-link:hover {
  color: #d4af37;
}

.game-menu__section-heading-link:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
  border-radius: 4px;
}

.game-menu__info {
  margin: 0;
}

/* Карточка прогресса — крупнее, красивее, оценка результатов игры */
.game-menu__progress-card {
  background: linear-gradient(145deg, #1f1d1a 0%, #1a1814 50%, #151310 100%);
  border: 1px solid #3d3a34;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.game-menu__progress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37 0%, #c9a227 50%, #d4af37 100%);
  opacity: 0.9;
}

.game-menu__progress-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.game-menu__progress-avatar {
  font-size: 32px;
  color: #c9b896;
  flex-shrink: 0;
}

.game-menu__progress-name {
  font-size: 18px;
  font-weight: 600;
  color: #e8e4dc;
  letter-spacing: 0.01em;
}

.game-menu__progress-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.game-menu__progress-stat {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.game-menu__progress-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #d4af37;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.game-menu__progress-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #8a8578;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.game-menu__progress-sub {
  font-size: 13px;
  color: #6b665c;
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}

.game-menu__timing-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.game-menu__timing-item {
  font-size: 14px;
  color: #e8e4dc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #2a2824;
}

.game-menu__timing-item:last-child {
  border-bottom: none;
}

.game-menu__timing-item--active {
  border-left: 3px solid #d4af37;
  padding-left: 8px;
  margin-left: -8px;
}

.game-menu__timing-time {
  font-weight: 700;
  color: #d4af37;
  min-width: 44px;
  flex-shrink: 0;
  padding-top: 1px;
}

.game-menu__timing-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.game-menu__timing-loc {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;
  color: #8a8578;
}

.game-menu__support {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #2a2824;
}

.game-menu__support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  color: #c9b896;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.game-menu__support-link:hover {
  color: #d4af37;
}

.game-menu__support-link:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

.game-menu__support-link i {
  font-size: 18px;
}

.offcanvas-header--game {
  padding: 16px 20px;
}

/* Левый drawer: шапка и навигация */
.game-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #2a2824;
}

.game-drawer__header-text {
  min-width: 0;
}

.game-drawer__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.game-drawer__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #8a8578;
  line-height: 1.35;
}

.game-drawer__close {
  flex-shrink: 0;
  margin-top: 2px;
}

.game-drawer__body {
  padding-top: 10px;
}

.game-menu--stacked {
  gap: 28px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.game-menu__link {
  justify-content: flex-start;
}

.game-menu__link-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.game-menu__link--accent {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f2e5c0;
}

.game-menu__link--accent:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: #d4af37;
  color: #fff;
}

.game-menu__timing-item--link {
  text-decoration: none;
  color: #e8e4dc;
  padding: 10px 12px;
  margin: 0 -8px;
  border-radius: 12px;
  border-bottom: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.game-menu__timing-item--link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
}

.game-menu__timing-item--link:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

.game-menu__timing-title {
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
}

.game-menu__empty-hint,
.game-menu__guest-hint {
  font-size: 13px;
  line-height: 1.45;
  color: #8a8578;
  margin: 0 0 14px;
}

.game-menu__nav--compact {
  gap: 8px;
  margin-top: 4px;
}

.game-menu__nav--compact .game-menu__link {
  min-height: 46px;
  padding: 10px 14px;
  font-size: 15px;
}

.game-menu__section--favorites .game-menu__timing-compact {
  max-height: min(220px, 38vh);
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
  scrollbar-width: thin;
}

/* Dashboard (playerSvoiDashboard) — effect-program стиль */
.effect-program.effect-game-page .effect-program__content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 80px;
  min-height: 100dvh;
}

.effect-program__nav--dashboard {
  margin-bottom: 24px;
}

/* Как .effect-program__title на /start/timing — тёмный акцентный шрифт раздела */
.effect-program__nav--dashboard .effect-program__nav-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-text, #1a1a1a);
  margin: 0;
}

.effect-program__list--tasks {
  flex: 1;
  width: 100%;
  margin-bottom: 24px;
}

/* Accordion — effect-program блоки */
.accordion--svoi .accordion-item {
  background: transparent;
  border: none;
  margin-bottom: 20px;
}

.accordion--svoi .accordion-button {
  background: #1a1a1a !important;
  color: #e8e4dc !important;
  border: 1px solid #2a2824;
  border-radius: 14px !important;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 44px;
  padding: 12px 20px;
}

.accordion--svoi .accordion-button:not(.collapsed) {
  background: #2a2824 !important;
  color: #d4af37 !important;
  border-color: #3d3a34;
}

.accordion--svoi .accordion-button::after {
  filter: invert(1);
}

.accordion--svoi .accordion-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  outline: none;
}

.accordion--svoi .accordion-collapse {
  border: none;
}

.accordion--svoi .accordion-body {
  padding: 16px 0 0;
}

/* Те же оттенки на мобильном: аккордеон заданий игрока */
.effect-game-page--adaptive .accordion--svoi .accordion-button {
  background: var(--color-block-alt, #f5f0e1) !important;
  color: var(--color-text, #1a1a1a) !important;
  border: 1px solid var(--color-border, #e5dcc8);
}

.effect-game-page--adaptive .accordion--svoi .accordion-button:not(.collapsed) {
  background: rgba(139, 105, 20, 0.12) !important;
  color: var(--color-accent, #8b6914) !important;
  border-color: var(--color-border-strong, #d4c9a8);
}

.effect-game-page--adaptive .accordion--svoi .accordion-button::after {
  filter: brightness(0.35);
}

.effect-game-page--adaptive .accordion--svoi .accordion-button:not(.collapsed)::after {
  filter: brightness(0.25) sepia(1) hue-rotate(-15deg) saturate(2);
}

.effect-game-page--adaptive .accordion--svoi .accordion-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.2);
}

/* Карточки заданий — effect-program блоки */
.task-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 520px) {
  .task-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.task__card,
.effect-program__block--task {
  position: relative;
  background: #1a1a1a !important;
  border: 1px solid #2a2824;
  border-radius: 14px;
  color: #e8e4dc;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.task__card:not(.task__card--disabled):hover,
.task__card:not(.task__card--disabled):focus-within {
  border-color: #3d3a34;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Ссылка на всю карточку — растягивается на весь контент */
.task__card-stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.task__card-cta {
  position: relative;
  z-index: 2;
}

.task__card--disabled .task__card-stretch {
  pointer-events: none;
}

a.btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.task__card-cover {
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0d0d;
}

.task__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.task__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  min-height: 0;
}

.task__card-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.task__card-title {
  font-size: 16px;
  font-weight: 600;
  color: #e8e4dc;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.task__card-anons {
  font-size: 14px;
  color: #8a8578;
  line-height: 1.45;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task__card-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 8px;
}

.task__card-action {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.task__card-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 44px;
  color: #63e6be;
  font-size: 14px;
  font-weight: 600;
}

.task__card-done i {
  font-size: 16px;
}

.task__card-done-text {
  color: #63e6be;
}

.task__card--disabled {
  opacity: 0.7;
}

.task__card--disabled .task__card-title {
  color: #a8a299;
}

.task__card--disabled .task__card-anons {
  color: #6a655c;
}

.task__card--offline-unavailable {
  opacity: 0.7;
}

.task__card--offline-unavailable .task__card-stretch {
  pointer-events: none;
}

.task__card-offline-msg {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 44px;
  color: #8a8578;
  font-size: 14px;
  font-weight: 500;
}

/* Обратная совместимость — старые классы карточек */
.card-group .card,
.effect-program__block--task .card-body {
  overflow-wrap: break-word;
  word-break: normal;
}

.effect-program__block--task .card-title,
.effect-game-page .task__card .card-title {
  color: #e8e4dc;
}

.effect-program__block--task .card-text,
.effect-game-page .task__card .card-text {
  color: #8a8578;
}

.btn--proceed,
.task__card-cta {
  background: transparent !important;
  border: 2px solid #d4af37 !important;
  color: #d4af37 !important;
  border-radius: 12px;
  min-width: 48px;
  min-height: 48px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--proceed:hover,
.task__card-cta:hover {
  background: rgba(212, 175, 55, 0.2) !important;
}

.btn--proceed:focus-visible,
.task__card-cta:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Карточки заданий игрока (/game) — светлая палитра как у программы Старт */
.effect-game-page--adaptive .task__card,
.effect-game-page--adaptive .effect-program__block--task {
  background: var(--color-block, #fffef8) !important;
  border: 1px solid var(--color-border, #e5dcc8);
  color: var(--color-text, #1a1a1a);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.effect-game-page--adaptive .task__card:not(.task__card--disabled):hover,
.effect-game-page--adaptive .task__card:not(.task__card--disabled):focus-within {
  border-color: var(--color-border-strong, #d4c9a8);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.effect-game-page--adaptive .task__card-cover {
  background: var(--color-block-alt, #f5f0e1);
  border-bottom: 1px solid var(--color-border, #e5dcc8);
  border-radius: 14px 14px 0 0;
}

.effect-game-page--adaptive .task__card-body {
  gap: 14px;
}

.effect-game-page--adaptive .task__card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
}

.effect-game-page--adaptive .task__card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.2;
}

.effect-game-page--adaptive .task__card-chip i {
  font-size: 10px;
  opacity: 0.9;
}

.effect-game-page--adaptive .task__card-chip--online {
  background: #e8f2ee;
  color: #1a4d3a;
  border-color: #a8cfc0;
}

.effect-game-page--adaptive .task__card-chip--offline {
  background: #f3ede4;
  color: #5c4a32;
  border-color: #d4c9a8;
}

.effect-game-page--adaptive .task__card-title {
  font-family: var(--font-heading, inherit);
  color: var(--color-text, #1a1a1a);
  font-weight: 700;
}

.effect-game-page--adaptive .task__card-anons {
  color: var(--color-text-soft, #6b6560);
  -webkit-line-clamp: 3;
  line-clamp: 3;
  margin-bottom: 12px;
}

.effect-game-page--adaptive .task__card-badge {
  color: var(--color-accent, #8b6914);
  background: rgba(139, 105, 20, 0.1);
  border: 1px solid rgba(139, 105, 20, 0.18);
}

.effect-game-page--adaptive .task__card--disabled .task__card-title {
  color: var(--color-text-muted, #5c574f);
}

.effect-game-page--adaptive .task__card--disabled .task__card-anons {
  color: #9a948a;
}

.effect-game-page--adaptive .task__card-done,
.effect-game-page--adaptive .task__card-done-text {
  color: #15803d;
}

.effect-game-page--adaptive .task__card-done i {
  color: #15803d;
}

.effect-game-page--adaptive .task__card-offline-msg {
  color: var(--color-text-muted, #5c574f);
  font-size: 13px;
  text-align: right;
  max-width: 160px;
  line-height: 1.35;
}

.effect-game-page--adaptive .task__card--offline-unavailable {
  opacity: 1;
  border-style: dashed;
  border-color: var(--color-border-strong, #d4c9a8);
  background: var(--color-block-alt, #f5f0e1) !important;
}

.effect-game-page--adaptive .task__card-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.effect-game-page--adaptive .task__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-btn-bg, #2d2a26) !important;
  border: 2px solid transparent !important;
  color: var(--color-btn-text, #fffef8) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.effect-game-page--adaptive .task__card-cta-text {
  line-height: 1.2;
}

.effect-game-page--adaptive .task__card-cta-icon {
  flex-shrink: 0;
}

.effect-game-page--adaptive .task__card-cta:hover {
  background: var(--color-btn-border, #3d3a34) !important;
  color: var(--color-btn-text, #fffef8) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.effect-game-page--adaptive .task__card-cta:focus-visible {
  outline: 2px solid var(--color-accent, #8b6914);
  outline-offset: 3px;
}

.effect-game-page--adaptive .effect-program__block--task .card-title,
.effect-game-page--adaptive .effect-game-page .task__card .card-title {
  color: var(--color-text, #1a1a1a);
}

.effect-game-page--adaptive .effect-program__block--task .card-text,
.effect-game-page--adaptive .effect-game-page .task__card .card-text {
  color: var(--color-text-soft, #6b6560);
}

@media (max-width: 380px) {
  .effect-game-page--adaptive .task__card-cta-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .effect-game-page--adaptive .task__card-cta {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .effect-game-page--adaptive .task__card:not(.task__card--disabled):hover,
  .effect-game-page--adaptive .task__card:not(.task__card--disabled):focus-within,
  .effect-game-page--adaptive .effect-program__block--task:hover {
    transform: none !important;
  }

  .effect-game-page--adaptive .task__card-cta:hover {
    transform: none;
  }
}

.effect-game-page .nolink,
.effect-game-page .btn--support {
  color: #c9b896 !important;
}

.effect-game-page .nolink:hover {
  color: #d4af37 !important;
}

/* Tablet: dashboard max-width (только мобильные шаблоны, не --adaptive) */
@media (min-width: 768px) {
  .effect-program.effect-game-page:not(.effect-game-page--adaptive) .effect-program__content {
    max-width: 520px;
  }
  .effect-program--welcome,
  .effect-game-page:not(.effect-game-page--adaptive) {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Отмена max-width из effect-start — game dashboard на всю ширину */
  .effect-program.effect-game-page.effect-game-page--adaptive {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 84px 0 0 !important;
  }
}

/* Desktop (992px+): адаптивная сетка — sidebar + задания, два столбца офлайн|онлайн */
@media (min-width: 992px) {
  .effect-game-page--adaptive,
  .effect-task-page--adaptive {
    display: grid !important;
    grid-template-columns: 320px 1fr;
    grid-template-rows: 1fr;
    align-items: start;
    gap: 0;
    padding: 84px 0 0 !important;
    min-height: 100dvh;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Сетка: сайдбар fixed (колонка 1), контент в колонке 2 */
  .effect-game-page--adaptive .effect-program__content,
  .effect-task-page--adaptive .effect-task-page__content {
    grid-column: 2;
  }

  .effect-game-page--adaptive .game-sidebar--desktop,
  .effect-task-page--adaptive .game-sidebar--desktop {
    position: fixed;
    left: 0;
    top: 84px;
    width: 320px;
    height: calc(100dvh - 84px);
    flex-direction: column;
    gap: 0;
    padding: 28px 24px 40px;
    border-right: 1px solid #2a2824;
    background: #0d0d0d;
    overflow-y: auto;
    z-index: 100;
    -webkit-overflow-scrolling: touch;
  }

  .game-sidebar__progress {
    margin-bottom: 24px;
  }

  .effect-game-page--adaptive .game-sidebar__progress .game-menu__progress-card,
  .effect-task-page--adaptive .game-sidebar__progress .game-menu__progress-card {
    background: linear-gradient(135deg, #1a1814 0%, #1f1d1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .effect-game-page--adaptive .game-sidebar__progress .game-menu__progress-value,
  .effect-task-page--adaptive .game-sidebar__progress .game-menu__progress-value {
    color: #d4af37;
  }

  .game-sidebar__title {
    font-size: 12px;
    font-weight: 600;
    color: #8a8578;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 12px;
  }

  .game-sidebar__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
  }

  .game-sidebar__title-link:hover {
    color: #d4af37;
  }

  .game-sidebar__title-link:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
    border-radius: 4px;
  }

  .game-sidebar__favorites-list {
    margin-bottom: 16px;
  }

  .game-sidebar__link {
    display: inline-block;
    color: #d4af37;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
  }

  .game-sidebar__link:hover {
    color: #e8e4dc;
  }

  .game-sidebar__support {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #2a2824;
  }

  .effect-game-page--adaptive .effect-program__content,
  .effect-game-page--adaptive .effect-program__content.taskPage {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    padding: 28px 40px 48px 44px;
    margin: 0;
    align-items: stretch !important;
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  /* Страница задания: контент с сайдбаром (консистентность с dashboard) */
  .effect-task-page--adaptive .effect-task-page__content {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .effect-task-page--adaptive .effect-task-page__inner {
    padding: 10px 40px 48px 44px;
    max-width: none;
    min-height: calc(100dvh - 84px);
    display: flex;
    flex-direction: column;
  }

  .effect-game-page--adaptive .effect-program__nav {
    max-width: none;
    width: 100%;
    margin-bottom: 32px;
  }

  .effect-game-page--adaptive .effect-program__nav--dashboard {
    justify-content: flex-start;
  }

  .effect-game-page--adaptive .effect-program__nav--dashboard .effect-program__nav-spacer {
    display: none;
  }

  .effect-game-page--adaptive .effect-program__nav--dashboard .effect-program__nav-title {
    font-size: 26px;
  }

  .effect-game-page--adaptive .effect-program__list--tasks {
    flex: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-bottom: 32px;
  }

  .effect-game-page--adaptive .effect-program__support {
    margin-top: auto;
    padding-top: 24px;
    flex-shrink: 0;
  }

  /* Accordion на desktop: в столбец друг под другом, сворачиваемые */
  .effect-game-page--adaptive .accordion--game-desktop {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-item {
    margin-bottom: 0;
    background: var(--color-block, #fffef8);
    border: 1px solid var(--color-border, #e5dcc8);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-collapse {
    /* Оставляем стандартное поведение Bootstrap collapse */
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-body {
    padding: 20px 24px 24px;
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-button {
    cursor: pointer;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    min-height: 52px;
    padding: 16px 24px;
    text-align: left;
    letter-spacing: 0.02em;
    background: var(--color-block-alt, #f5f0e1) !important;
    color: var(--color-text, #1a1a1a) !important;
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-button:not(.collapsed) {
    background: rgba(139, 105, 20, 0.12) !important;
    color: var(--color-accent, #8b6914) !important;
    border-bottom-color: var(--color-border, #e5dcc8);
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-button::after {
    display: block;
    filter: brightness(0.35);
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-button:not(.collapsed)::after {
    filter: brightness(0.25) sepia(1) hue-rotate(-15deg) saturate(2);
  }

  /* Сетка карточек заданий — 3 в ряд, выравнивание по центру */
  .effect-game-page--adaptive .task-cards {
    grid-template-columns: repeat(3, minmax(200px, 320px));
    gap: 20px;
    justify-content: center;
  }

  .effect-game-page--adaptive .task__card,
  .effect-game-page--adaptive .effect-program__block--task {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  }

  .effect-game-page--adaptive .task__card:not(.task__card--disabled):hover,
  .effect-game-page--adaptive .effect-program__block--task:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }

  .effect-game-page--adaptive .task__card-cover {
    aspect-ratio: 4 / 3;
    border-radius: 16px 16px 0 0;
  }

  .effect-game-page--adaptive .task__card-body {
    padding: 20px 22px;
    gap: 14px;
  }

  .effect-game-page--adaptive .task__card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }

  .effect-game-page--adaptive .task__card-anons {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.5;
    color: var(--color-text-soft, #6b6560);
  }

  .effect-game-page--adaptive .btn--proceed,
  .effect-game-page--adaptive .task__card-cta {
    transition: background 0.25s ease, transform 0.2s ease;
  }

  .effect-game-page--adaptive .btn--proceed:hover,
  .effect-game-page--adaptive .task__card-cta:hover {
    transform: translateY(-2px);
  }

  .effect-game-page--adaptive .task__card-cta:focus-visible,
  .effect-game-page--adaptive .btn--proceed:focus-visible {
    outline: 2px solid var(--color-accent, #8b6914);
    outline-offset: 3px;
  }

  .effect-program--welcome {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 48px 40px 56px;
  }

  .effect-program__welcome-title {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 32px;
  }

  .effect-program__welcome-img {
    max-width: 400px;
  }

  .effect-program__welcome-text {
    font-size: 17px;
    line-height: 1.6;
    max-width: 520px;
    color: var(--color-text);
  }

  .effect-program__welcome-text--muted {
    font-size: 16px;
  }

  .game-menu__progress-card {
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease;
  }

  .game-menu__progress-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
  }

  .game-menu__progress-name {
    font-size: 19px;
  }

  .game-menu__progress-value {
    font-size: 30px;
  }

  .game-menu__link {
    border-radius: 14px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  }

  .game-menu__link:hover {
    transform: translateX(4px);
  }

  .game-menu__link:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
  }

  .accordion--svoi .accordion-button {
    border-radius: 16px;
    transition: background 0.25s ease, transform 0.2s ease;
  }

  .accordion--svoi .accordion-button:hover {
    transform: translateY(-1px);
  }
}

/* Large desktop (1200px+): карточки 3 в ряд, центрирование */
@media (min-width: 1200px) {
  .effect-game-page--adaptive .task-cards {
    grid-template-columns: repeat(3, minmax(200px, 320px));
    gap: 22px;
    justify-content: center;
  }

  .effect-game-page--adaptive .effect-program__content,
  .effect-game-page--adaptive .effect-program__content.taskPage {
    padding: 36px 56px 64px 64px;
  }

  .effect-task-page--adaptive .effect-task-page__inner {
    padding: 10px 56px 64px 64px;
  }

  .effect-game-page--adaptive .accordion--game-desktop {
    gap: 20px;
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-body {
    padding: 24px 28px 28px;
  }
}

/* Extra large desktop (1400px+): 3 колонки, центрирование */
@media (min-width: 1400px) {
  .effect-game-page--adaptive .task-cards {
    grid-template-columns: repeat(3, minmax(200px, 320px));
    gap: 24px;
    justify-content: center;
  }

  .effect-game-page--adaptive .effect-program__content,
  .effect-game-page--adaptive .effect-program__content.taskPage {
    padding: 40px 72px 72px 80px;
  }

  .effect-task-page--adaptive .effect-task-page__inner {
    padding: 10px 72px 72px 80px;
  }

  .effect-game-page--adaptive .accordion--game-desktop {
    gap: 24px;
  }

  .effect-game-page--adaptive .accordion--game-desktop .accordion-body {
    padding: 28px 32px 32px;
  }

  .effect-game-page--adaptive .effect-program__nav--dashboard .effect-program__nav-title {
    font-size: 28px;
  }
}

/* /game и /task (svoi): боковая колонка — светлая палитра как на Старт */
@media (min-width: 992px) {
  .effect-task-page--start-bg.effect-task-page--adaptive .game-sidebar--desktop,
  .effect-game-page--adaptive .game-sidebar--desktop {
    background: var(--color-block-alt, #f5f0e1);
    border-right: 1px solid var(--color-border, #e5dcc8);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-sidebar__progress .game-menu__progress-card,
  .effect-game-page--adaptive .game-sidebar__progress .game-menu__progress-card {
    background: linear-gradient(145deg, #fffef8 0%, #f5f0e1 100%);
    border: 1px solid var(--color-border, #e5dcc8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__progress-name,
  .effect-game-page--adaptive .game-menu__progress-name {
    color: var(--color-text, #1a1a1a);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__progress-avatar,
  .effect-game-page--adaptive .game-menu__progress-avatar {
    color: var(--color-accent, #8b6914);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__progress-value,
  .effect-game-page--adaptive .game-menu__progress-value {
    color: var(--color-accent, #8b6914);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__progress-label,
  .effect-game-page--adaptive .game-menu__progress-label {
    color: var(--color-text-muted, #5c574f);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__progress-sub,
  .effect-game-page--adaptive .game-menu__progress-sub {
    color: var(--color-text-soft, #6b6560);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__progress-stat,
  .effect-game-page--adaptive .game-menu__progress-stat {
    background: rgba(139, 105, 20, 0.08);
    border: 1px solid var(--color-border-strong, #d4c9a8);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-sidebar__title,
  .effect-game-page--adaptive .game-sidebar__title {
    color: var(--color-text-muted, #5c574f);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-sidebar__title-link:hover,
  .effect-game-page--adaptive .game-sidebar__title-link:hover {
    color: var(--color-accent, #8b6914);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__timing-item,
  .effect-game-page--adaptive .game-menu__timing-item {
    color: var(--color-text, #1a1a1a);
    border-bottom-color: var(--color-border, #e5dcc8);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__timing-time,
  .effect-game-page--adaptive .game-menu__timing-time {
    color: var(--color-accent, #8b6914);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-menu__timing-loc,
  .effect-game-page--adaptive .game-menu__timing-loc {
    color: var(--color-text-muted, #5c574f);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-sidebar__link,
  .effect-game-page--adaptive .game-sidebar__link {
    color: var(--color-accent, #8b6914);
  }

  .effect-task-page--start-bg.effect-task-page--adaptive .game-sidebar__link:hover,
  .effect-game-page--adaptive .game-sidebar__link:hover {
    color: var(--color-accent-hover, #a67c52);
  }
}
