/*
 * Скин «Тот же hype, только громче» (вариант C из макета стилей hype, 02.10.2026).
 *
 * Слой ПОВЕРХ styles.css и comms-web.css: сами они не тронуты. Всё здесь под
 * html[data-skin="loud"], поэтому скин включается и выключается одним атрибутом.
 *
 * ОТКАТ на прежний фиолетовый:
 *   • быстро — в index.html у <html> поменять data-skin="loud" на data-skin="classic";
 *   • посмотреть старый вид, ничего не выкладывая — открыть хаб с ?skin=classic.
 * Неоновый скин (вариант A) удалён; вернуть его — тег neon в git.
 *
 * Что меняется: фиолетовый и объёмные «губы» остаются, добавляются широкий шрифт
 * Unbounded, градиентный логотип с огоньком, малиновая вспышка на «Хите недели»,
 * огненно-оранжевая главная кнопка. Иконки игр прежние (assets/icons).
 */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Палитра: к прежней добавлены только акценты варианта ---------- */

html[data-skin="loud"] {
  --f-display:  'Unbounded', 'Arial Black', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg:         #F3EEFF;
  --word-a:     #5B16E0;   /* градиент слова hype */
  --word-b:     #C026D3;
  --logo-lip:   #2A0A73;
  --hero-lip:   #1E0858;
  --tab-on:     #5B16E0;
}
html[data-skin="loud"][data-theme="dark"] {
  --bg:         #0C0813;   /* как в styles.css: правило выше сильнее тёмной темы, возвращаем её фон */
  --word-a:     #A78BFA;
  --word-b:     #F0ABFC;
  --logo-lip:   #1A0650;
  --hero-lip:   #05010F;
}

/* ---------- Шрифт заголовков: Unbounded вместо Baloo 2 ----------
   Unbounded широкий, поэтому кегли ниже чуть меньше прежних. */

html[data-skin="loud"] :is(
  .title, .row-head h3, .featured h2, .play, .streak-text b, .tile .name,
  .section-card .tx b, .stub h3, .prof .av, .prof b, .stat b, .level-badge,
  .level-top b, .quest-count, .ach b, .ach-summary-top b, .leader-rank,
  .leader-av, .leader-pts, .friend-av, .coach-title, .coach-next
) {
  font-family: var(--f-display);
  letter-spacing: -.02em;
}
html[data-skin="loud"] .title { font-size: 19px; }
html[data-skin="loud"] .row-head h3 { font-size: 15px; font-weight: 700; }
html[data-skin="loud"] .tile .name { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
html[data-skin="loud"] :is(.streak-text b, .section-card .tx b, .level-top b) { font-size: 15px; }
html[data-skin="loud"] :is(.ach b) { font-size: 13px; }
html[data-skin="loud"] :is(.stub h3, .prof b) { font-size: 18px; }
html[data-skin="loud"] .stat b { font-size: 18px; }

/* ---------- Логотип: огонёк на фиолетовой плашке + слово hype градиентом ---------- */

html[data-skin="loud"] .mark { gap: 9px; }
html[data-skin="loud"] .mark-logo {
  content: url('logo-flame.svg');
  width: 38px;
  height: 38px;
  border-radius: 12px;
  filter: none;
  box-shadow: 0 3px 0 var(--logo-lip);
}
html[data-skin="loud"] .mark b {
  font: 900 26px/1.1 var(--f-display);
  letter-spacing: -.05em;
  background: linear-gradient(90deg, var(--word-a), var(--word-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Хит недели: малиновая вспышка на фиолетовом, оранжевые плашка и кнопка ---------- */

html[data-skin="loud"] .featured {
  background: radial-gradient(circle at 85% 20%, #C026D3 0, transparent 45%),
              linear-gradient(150deg, #6D28D9, #2A0A73);
  box-shadow: 0 6px 0 var(--hero-lip), 0 16px 30px rgba(91, 22, 224, .3);
}
html[data-skin="loud"] .featured:active { box-shadow: 0 2px 0 var(--hero-lip), 0 10px 20px rgba(91, 22, 224, .26); }
html[data-skin="loud"] .featured .gloss { display: none; }   /* блик рисует вспышка в фоне */
html[data-skin="loud"] .featured h2 { font-weight: 900; font-size: 23px; line-height: 1.05; letter-spacing: -.03em; }
/* Как в макете: текст, плашка и кнопка идут сверху, а не прижаты к низу карточки 16:10
   (на широком экране под ними оставалась пустая полоса и всё «сползало»). Высота — по содержимому,
   иконка справа сверху, звёздочка и «Поделиться» под ней. */
html[data-skin="loud"] .featured { aspect-ratio: auto; min-height: 196px; padding: 22px 20px 20px; }
html[data-skin="loud"] .featured .spark { display: none; }
html[data-skin="loud"] .featured .meta { position: relative; left: auto; right: auto; bottom: auto; max-width: calc(100% - 118px); }
html[data-skin="loud"] .featured h2 { max-width: none; }
/* Плашка и название — сверху, а «Играть» — внизу, на одной линии со звёздочкой и «Поделиться» */
html[data-skin="loud"] .featured { display: flex; flex-direction: column; padding-bottom: 18px; }
html[data-skin="loud"] .featured .meta { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
html[data-skin="loud"] .featured .play { margin-top: auto; }
html[data-skin="loud"] .featured .glyph {
  top: 24px;
  right: 18px;
  transform: rotate(7deg);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .25));
}
html[data-skin="loud"] .hit {
  background: linear-gradient(90deg, #FFB020, #FF6A1A);
  color: #2A0A00;
  font: 700 10px/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 10px;
}
html[data-skin="loud"] .play,
html[data-skin="loud"][data-theme="dark"] .play {
  background: linear-gradient(#FFC34A, #FF8A1A);
  color: #2A0A00;
  border-color: transparent;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 17px;
  text-shadow: none;
  box-shadow: 0 4px 0 #C2560A;
}
html[data-skin="loud"] .play:active { box-shadow: 0 1px 0 #C2560A; }

/* ---------- Плитки игр: скругление как у самих иконок (rx 34 из 160), фон под ними не нужен ----------
   иначе по углам проступал фиолетовый фон плитки */

html[data-skin="loud"] .tile .art:not(.is-placeholder) { background: transparent; border-radius: 21.5%; }

/* ---------- Нижнее меню: активная вкладка с «губой» ---------- */

html[data-skin="loud"] .tab[aria-selected="true"],
html[data-skin="loud"] #comms-root .c-tab.on {
  background: var(--tab-on);
  box-shadow: 0 3px 0 var(--logo-lip);
}

/* ---------- Каркас загрузки ---------- */

html[data-skin="loud"] .boot-skeleton .bs-hit { background: #2A0A73; }
