/* Главная страница. Цвета — токены темы (--mc-*, --c-*), поэтому светлая тема и стили сайта работают сами. */
html body.home-page .container.home { max-width: 1120px; padding-top: 28px; }

/* ---------- Верхний «бенто»: герой + сообщество ---------- */
.hbento { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.hhero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: center;
  padding: 38px 32px 32px; overflow: hidden; min-height: 330px;
  background:
    radial-gradient(ellipse 70% 90% at 88% 40%, rgba(245,197,24,.16), transparent 70%),
    linear-gradient(135deg, var(--mc-panel), var(--mc-bg));
}
.hhero::after { /* пиксельная сетка-текстура */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90%); mask-image: linear-gradient(90deg, transparent, #000 90%);
}
.hhero-text { position: relative; z-index: 1; }
.hero-kicker { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin: 0 0 14px; }
html body.home-page h1.hero-title { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.01em; }
.hero-accent { color: #f5c518; text-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.hero-sub { max-width: 520px; margin: 0 0 24px; font-family: var(--pl-body, 'Onest', sans-serif); font-size: 16px; line-height: 1.65; opacity: .86; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hstats { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; background: var(--mc-dark); box-shadow: 0 0 0 2px var(--mc-line); min-width: 120px; }
.hstat b { font-size: 24px; font-weight: 400; color: #f5c518; text-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.hstat span { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 12px; opacity: .75; }
.hstat:empty { display: none; }

/* карточка «№1 рейтинга» в герое */
.hking {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px 18px;
  text-decoration: none; background: linear-gradient(180deg, rgba(245,197,24,.18), rgba(245,197,24,.04));
  box-shadow: inset 0 0 0 2px rgba(245,197,24,.55), 0 0 0 2px var(--mc-line); transition: transform .2s var(--pl-ease, ease);
}
.hking:hover { transform: translateY(-4px) rotate(-.6deg); }
.hking-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 4px 12px; white-space: nowrap; font-size: 14px; color: #1b1b1b; background: #f5c518; box-shadow: 0 0 0 2px var(--mc-line); }
.hking-nick { font-size: 22px; font-weight: 400; color: #f5c518; word-break: break-all; text-align: center; text-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.hking-score { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 13px; opacity: .8; }
.avatar-head.xl { width: 144px; height: 144px; flex: none; image-rendering: pixelated; }
.avatar-head.xl img { image-rendering: pixelated; }

/* сообщество */
.hcomm { padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.hcomm h2 { margin: 0; font-size: 22px; }
.hcomm .muted { margin: 0 0 12px; font-size: 13px; }
.hcomm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.hcomm-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 14px; text-decoration: none; color: var(--mc-text);
  background: var(--mc-btn); box-shadow: var(--mc-bevel); transition: transform .15s, background .15s;
}
.hcomm-tile:hover { background: var(--mc-btn-hover); transform: translateY(-3px); }
.hcomm-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; background: var(--mc-dark); box-shadow: 0 0 0 2px var(--mc-line); color: #f5c518; }
.hcomm-tile b { font-size: 16px; font-weight: 400; }
.hcomm-tile small { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 11px; opacity: .65; line-height: 1.3; }

/* ---------- Блоки ---------- */
.home-block { margin-top: 56px; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-head h2 { margin: 0; }
.home-more { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 14px; color: var(--mc-text); opacity: .75; text-decoration: none; }
.home-more:hover { opacity: 1; }

.modes-grid, .top3, .how-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

/* режимы — крупные карточки с «сценой» под китом */
.mode-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px 20px; text-align: center; text-decoration: none; overflow: hidden; transition: transform .18s var(--pl-ease, ease), background .15s; }
.mode-card:hover { transform: translateY(-4px); background: var(--mc-panel-hi); }
.mode-art { display: grid; place-items: center; width: 100%; height: 130px; margin-bottom: 6px; background: radial-gradient(circle at 50% 60%, rgba(245,197,24,.2), transparent 65%), var(--mc-dark); box-shadow: inset 0 0 0 2px var(--mc-line); }
.mode-art img { image-rendering: pixelated; width: 96px; height: 96px; transition: transform .25s var(--pl-ease, ease); filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.mode-card:hover .mode-art img { transform: scale(1.14) rotate(-4deg); }
.mode-card h3 { margin: 0; font-size: 24px; }
.mode-desc { margin: 0; font-family: var(--pl-body, 'Onest', sans-serif); font-size: 13px; line-height: 1.5; opacity: .7; min-height: 40px; }
.mode-go { margin-top: 4px; padding: 6px 14px; font-family: var(--pl-body, 'Onest', sans-serif); font-size: 13px; background: var(--mc-btn); box-shadow: var(--mc-bevel); }
.mode-card:hover .mode-go { background: var(--mc-btn-hover); color: #f5c518; }

/* топ-3 — пьедестал: 2-е | 1-е | 3-е */
.top3 { align-items: end; }
.top-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 16px 22px; text-decoration: none; transition: transform .18s var(--pl-ease, ease); }
.top-card:hover { transform: translateY(-4px); }
.top-card.place-1 { --pc: #f5c518; order: 2; padding-top: 44px; padding-bottom: 32px; box-shadow: inset 0 0 0 2px rgba(245,197,24,.5); background: linear-gradient(180deg, rgba(245,197,24,.12), transparent 60%), var(--mc-panel); }
.top-card.place-2 { --pc: #c9cdd6; order: 1; }
.top-card.place-3 { --pc: #cd7f4a; order: 3; }
.top-place { position: absolute; top: 10px; left: 14px; font-size: 22px; color: var(--pc); text-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.top-nick { font-size: 20px; font-weight: 400; color: var(--pc); word-break: break-all; text-align: center; }
.top-score { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 14px; opacity: .8; }

/* шаги */
.how-grid { position: relative; }
.how-step { position: relative; padding: 22px 20px 20px; }
.how-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; background: var(--mc-btn); box-shadow: var(--mc-bevel); font-size: 22px; color: #f5c518; text-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.how-step:not(:last-child)::after { content: "▸"; position: absolute; top: 28px; right: -14px; z-index: 2; font-size: 20px; color: #f5c518; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.how-step h3 { margin: 0 0 8px; font-size: 19px; }
.how-step p { margin: 0; }

.home-cta { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(245,197,24,.14), transparent 70%), var(--mc-panel); }
.home-cta h2 { margin: 0 0 6px; }
.home-cta p { margin: 0; }

@media (max-width: 960px) {
  .hbento { grid-template-columns: 1fr; }
  .hcomm-grid { margin-top: 0; }
}
@media (max-width: 760px) {
  .hhero { grid-template-columns: 1fr; padding: 28px 20px 24px; min-height: 0; }
  .hking { max-width: 260px; margin: 12px auto 0; }
  .modes-grid, .top3, .how-grid { grid-template-columns: 1fr; }
  .top-card.place-1, .top-card.place-2, .top-card.place-3 { order: initial; }
  .top-card.place-1 { padding-top: 30px; padding-bottom: 22px; }
  .how-step:not(:last-child)::after { content: "▾"; top: auto; bottom: -18px; right: 50%; transform: translateX(50%); }
  .home-cta { padding: 24px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hhero-text > * { animation: homeRise .6s var(--pl-ease, ease) both; }
  .hhero-text > *:nth-child(2) { animation-delay: .06s; } .hhero-text > *:nth-child(3) { animation-delay: .12s; } .hhero-text > *:nth-child(4) { animation-delay: .18s; } .hhero-text > *:nth-child(5) { animation-delay: .24s; }
  .hking { animation: homeFloat 4s ease-in-out infinite; }
  @keyframes homeRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes homeFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}

/* ---------- v2: герой на всю ширину, если «Сообщество» скрыто (нет ссылок в .env) ---------- */
.hbento.no-comm { grid-template-columns: 1fr; }
.hbento.no-comm .hhero { grid-template-columns: minmax(0, 1fr) 280px; min-height: 340px; }

/* ---------- Слайдер режимов ---------- */
.hslider { position: relative; }
.hslider-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; }
.hslider-viewport:active { cursor: grabbing; }
.hslider-track { display: flex; gap: 16px; will-change: transform; transition: transform .7s cubic-bezier(.22,.8,.2,1); }
.hslide {
  --g1: #a07a00; --g2: #f5c518; --glow: #ffe27a;
  position: relative; flex: 0 0 min(88%, 880px); display: flex; align-items: center; gap: 22px; min-height: 190px; padding: 24px 36px;
  color: var(--mc-text); text-decoration: none; user-select: none; overflow: hidden; isolation: isolate;
  /* спокойный баннер в стиле сайта: тёмная панель, цвет режима — только лёгкий отблеск, рамка и планка слева */
  background:
    radial-gradient(ellipse 60% 120% at 92% 40%, color-mix(in srgb, var(--g2) 16%, transparent), transparent 70%),
    linear-gradient(135deg, var(--mc-panel), var(--mc-bg));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g2) 26%, transparent), 0 0 0 2px var(--mc-line);
  opacity: .45; transform: scale(.96); transition: opacity .6s, transform .7s cubic-bezier(.22,.8,.2,1), filter .6s; filter: saturate(.7);
}
.hslide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--g2); box-shadow: 2px 0 0 rgba(0,0,0,.45); }
.hslide::after { /* пиксельная сетка, как у героя */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90%); mask-image: linear-gradient(90deg, transparent, #000 90%);
}
.hslide.active { opacity: 1; transform: none; filter: none; }
.hslide.mode-gold  { --g1: #8a6500; --g2: #e8b400; --glow: #fff0a0; }
.hslide.mode-cyan  { --g1: #05505e; --g2: #14b6c9; --glow: #7ff3ff; }
.hslide.mode-ember { --g1: #8e1208; --g2: #ff5a2a; --glow: #ffb36b; }
.hslide.mode-violet { --g1: #3b1e7a; --g2: #8b5cf6; --glow: #c4b5fd; }
.hslide-icon { width: 104px; height: 104px; flex: none; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); transition: transform .4s var(--pl-ease, ease); }
.hslide.active:hover .hslide-icon { transform: scale(1.1) rotate(-5deg); }
.hslide-name { flex: 1 1 auto; min-width: min-content; font-size: clamp(34px, 5.4vw, 60px); line-height: 1; text-shadow: 4px 4px 0 rgba(0,0,0,.45); word-break: normal; overflow-wrap: normal; hyphens: none; }
.hslide-stats { display: flex; gap: 30px; flex: none; }
.hslide-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hslide-stat b { font-size: clamp(28px, 4vw, 44px); font-weight: 400; line-height: 1; color: var(--g2); text-shadow: 3px 3px 0 rgba(0,0,0,.45); white-space: nowrap; }
.hslide-stat small { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 12px; opacity: .7; }
.hslide img:not(.hslide-icon) { width: 100%; height: 100%; object-fit: cover; }

.hslider-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 56px; margin-top: -28px; font-size: 30px; line-height: 1; color: var(--mc-text); background: var(--mc-btn); box-shadow: var(--mc-bevel); border: 0; cursor: pointer; font-family: inherit; }
.hslider-nav:hover { background: var(--mc-btn-hover); color: #f5c518; }
.hslider-nav.prev { left: 6px; } .hslider-nav.next { right: 6px; }
.hslider-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.hslider-btn { font-size: 18px; padding: 12px 30px; }
.hslider-dots { display: flex; gap: 8px; }
.hslider-dots button { width: 14px; height: 14px; padding: 0; border: 0; cursor: pointer; background: var(--mc-btn); box-shadow: 0 0 0 2px var(--mc-line); transition: background .2s, transform .2s; }
.hslider-dots button.on { background: #f5c518; transform: scale(1.15); }
.hslider.single .hslider-nav, .hslider.single + .hslider-foot .hslider-dots { display: none; }
@media (prefers-reduced-motion: reduce) { .hslider-track, .hslide { transition: none; } }

/* ---------- Стафф сети: одна строка со слайдер-прокруткой ---------- */
.staff-slider { position: relative; }
.staff-viewport { overflow-x: auto; overflow-y: hidden; padding: 6px 4px 12px; cursor: grab; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.staff-viewport::-webkit-scrollbar { display: none; }
.staff-viewport.dragging { cursor: grabbing; user-select: none; }
.staff-viewport.dragging .staff-card { pointer-events: none; }
.staff-grid { display: flex; gap: 16px; width: max-content; min-width: 100%; }
.staff-card { flex: 0 0 340px; display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; text-align: left; text-decoration: none; user-select: none; }
html body .staff-card .avatar-head.lg { width: 88px; height: 88px; flex: none; }
.staff-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; flex: 1; }
.staff-slider .hslider-nav { top: 50%; margin-top: -28px; }
.staff-slider .hslider-nav[hidden] { display: none; }
.staff-nick { font-size: 19px; font-weight: 400; white-space: nowrap; line-height: 1.15; max-width: 100%; }
.staff-badges { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.staff-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-family: var(--pl-body, 'Onest', sans-serif); font-size: 11px; font-weight: 600; color: var(--bc, #aaa); background: var(--mc-dark); box-shadow: inset 0 0 0 1px var(--bc, #aaa), 0 0 0 1px var(--mc-line); }
.staff-badge .chev { display: inline-flex; gap: 2px; }
.staff-badge .chev i { width: 3px; height: 9px; background: var(--bc, #aaa); transform: skewX(-18deg); }

@media (max-width: 960px) { .hbento.no-comm .hhero { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hslide { flex-basis: 92%; flex-wrap: wrap; padding: 20px; min-height: 0; gap: 14px; }
  .hslide-icon { width: 72px; height: 72px; }
  .hslide-stats { width: 100%; justify-content: space-between; }
  .hslide-stat { align-items: flex-start; }
  .hslider-nav { display: none; }
  .hslider-foot { justify-content: center; }
  .staff-card { flex-basis: 290px; gap: 12px; }
  .staff-nick { font-size: 16px; }
  html body .staff-card .avatar-head.lg { width: 72px; height: 72px; }
  .staff-slider .hslider-nav { display: none; }
}
.hslide:has(> img:only-child) { padding: 0; }
html body .hslide, html body .hslide:hover, html body .hslide .hslide-name, html body .hslide .hslide-stat b, html body .hslide .hslide-stat small { color: #fff; }

/* ---------- Баннеры режимов с рендерами (стиль баннеров магазина: лучи + крупный персонаж) ---------- */
html body .hslide:has(.hslide-art) {
  --sh: 280px; --ray-a: var(--g1); --ray-b: color-mix(in srgb, var(--g1) 68%, #000);
  min-height: var(--sh); height: var(--sh); padding: 0 40px 0 0; gap: 8px;
  background:
    linear-gradient(90deg, transparent 34%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse 45% 85% at var(--ox) var(--oy), color-mix(in srgb, var(--glow) 38%, transparent), transparent 70%),
    repeating-conic-gradient(from 0deg at var(--ox) var(--oy), var(--ray-a) 0 6deg, var(--ray-b) 6deg 12deg);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.65), inset 0 0 0 5px color-mix(in srgb, var(--g2) 55%, transparent), 0 0 0 2px var(--mc-line);
}
html body .hslide:has(.hslide-art)::before { display: none; }
html body .hslide:has(.hslide-art)::after { background-size: 16px 16px; opacity: .6; -webkit-mask-image: none; mask-image: none; z-index: 0; background-image: linear-gradient(rgba(0,0,0,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.10) 1px, transparent 1px); }
/* Центр лучей = точка, где стоят ноги персонажа.
   --fx: где у рендера центр ног (доля ширины картинки), --ar: ширина/высота картинки, --ih: высота картинки на экране.
   Колонка с рендером — 330px, картинка по центру колонки (165px). */
.hslide { --fx: .5; --ar: 1; --ih: 336px; --ox: calc(165px + (var(--fx) - .5) * var(--ar) * var(--ih)); --oy: calc(100% - 5px); }
.hslide.mode-gold  { --g1: #8a5a00; }
.hslide.mode-cyan  { --g1: #05606e; }
.hslide.mode-ember { --g1: #a3180a; }
.hslide.mode-violet { --g1: #4c2a9a; }
.hslide-art { position: relative; flex: 0 0 330px; width: 330px; height: var(--sh, 280px); margin: 0; z-index: 1; }
.hslide-art img { position: absolute; left: 50%; bottom: -16px; width: auto; height: 292px; max-width: none; transform: translateX(-50%); filter: drop-shadow(5px 7px 0 rgba(0,0,0,.4)); transition: transform .5s var(--pl-ease, ease); }
.hslide.active:hover .hslide-art img { transform: translateX(-50%) scale(1.05) rotate(-1.5deg); }
html body .hslide:has(.hslide-art) .hslide-name { position: relative; z-index: 1; font-family: 'Minecraft', monospace !important; font-size: clamp(36px, 5vw, 64px); letter-spacing: .02em; white-space: nowrap; text-shadow: 5px 5px 0 #000, 0 0 0 #000; }
html body .hslide:has(.hslide-art) .hslide-stats { position: relative; z-index: 1; gap: 22px; }
html body .hslide:has(.hslide-art) .hslide-stat b { font-family: 'Minecraft', monospace !important; font-size: clamp(28px, 3.6vw, 46px); color: #fff; text-shadow: 4px 4px 0 #000; }
html body .hslide:has(.hslide-art) .hslide-stat small { opacity: .9; text-shadow: 1px 1px 0 #000; }
@media (max-width: 760px) {
  html body .hslide:has(.hslide-art) { --sh: 200px; height: auto; min-height: 0; padding: 0 0 18px; flex-wrap: wrap; background:
    linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55) 100%),
    repeating-conic-gradient(from 0deg at var(--ox) var(--oy), var(--ray-a) 0 6deg, var(--ray-b) 6deg 12deg); }
  .hslide-art { flex-basis: 100%; width: 100%; }
  .hslide-art img { height: 212px; }
  html body .hslide:has(.hslide-art) .hslide-name { padding: 0 20px; font-size: 40px; }
  html body .hslide:has(.hslide-art) .hslide-stats { padding: 0 20px; }
}

/* ---------- Персонаж вылезает за верхнюю границу баннера (целиком, без обрезки) ---------- */
#hslider .hslider-viewport { padding-top: 100px; margin-top: -24px; } /* запас сверху: рендер не должен обрезаться */
html body .hslide:has(.hslide-art) { overflow: visible; }
html body .hslide:has(.hslide-art) .hslide-art img { height: 336px; bottom: 0; }
@media (max-width: 760px) {
  #hslider .hslider-viewport { padding-top: 72px; margin-top: -20px; }
  html body .hslide:has(.hslide-art) .hslide-art img { height: 256px; bottom: 0; }
  .hslide { --ih: 256px; --ox: calc(50% + (var(--fx) - .5) * var(--ar) * var(--ih)); --oy: calc(var(--sh) - 4px); }
}
.hslide.mode-cyan .hslide-art { margin-right: 36px; } /* меч Sword смотрит на надпись — оставляем ему место */

/* fix: общее правило ".hslide img:not(.hslide-icon){width:100%;height:100%;object-fit:cover}" обрезало рендеры — отменяем для них */
html body .hslide:has(.hslide-art) .hslide-art img { width: auto; max-width: none; object-fit: contain; object-position: center bottom; transform-origin: calc(50% + (var(--fx) - .5) * 100%) 100%; }
@media (max-width: 760px) { html body .hslide:has(.hslide-art) .hslide-art img { width: auto; } }

/* ===== Команда проекта: переключатель «проекта → OP → SWORD → NPOT» ===== */
.team-head { flex-wrap: wrap; row-gap: 10px; }
.team-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.team-switch { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; background: var(--mc-dark, #1a1a1a); box-shadow: inset 0 0 0 2px #f5c518, 0 0 0 1px var(--mc-line, #333); }
.team-word { min-width: 4.2ch; text-align: center; color: #f5c518; transition: opacity .16s ease, transform .16s ease; }
.team-word.out { opacity: 0; transform: translateY(-6px); }
.team-arrow { appearance: none; border: 0; background: transparent; color: #f5c518; font: inherit; font-size: 1.1em; line-height: 1; padding: 4px 8px; cursor: pointer; transition: transform .15s ease, color .15s ease; }
.team-arrow:hover { color: #fff; transform: scale(1.25); }
.team-arrow:active { transform: scale(.9); }
.team-arrow:focus-visible, .team-tabs button:focus-visible { outline: 2px solid #f5c518; outline-offset: 2px; }
.team-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.team-tabs button { appearance: none; border: 0; cursor: pointer; padding: 6px 12px; font: 600 12px var(--pl-body, 'Onest', sans-serif); color: #bbb; background: var(--mc-dark, #1a1a1a); box-shadow: inset 0 0 0 1px var(--mc-line, #333); transition: color .15s, box-shadow .15s, transform .15s; }
.team-tabs button:hover { color: #fff; transform: translateY(-1px); }
.team-tabs button.on { color: #111; background: #f5c518; box-shadow: none; }
.staff-grid { transition: opacity .16s ease, transform .16s ease; }
.staff-grid.out { opacity: 0; transform: translateX(-12px); }
.staff-card { transition: transform .18s ease, box-shadow .18s ease; }
.staff-card:hover { transform: translateY(-3px); }
.team-empty { padding: 18px 4px; }

/* ===== Новости ===== */
.news-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-4px); }
.news-card h3 { margin: 0; font-size: 18px; }
.news-date { font-size: 12px; color: #f5c518; }
.news-body { font-size: 14px; color: #bbb; max-height: 6.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }

/* ===== О тир-листе ===== */
.tier-lead { margin: -6px 0 16px; max-width: 760px; }
.tier-info { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); }
.tier-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; transition: transform .18s ease; }
.tier-card:hover { transform: translateY(-4px); }
.tier-name { font-size: 17px; }
.tier-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.tier-row em { font-style: normal; font-weight: 700; color: var(--tc, #f5c518); }
.tier-row i { font-style: normal; color: #bbb; font-size: 13px; }
.tier-card small { color: #999; font-size: 12px; }
.tier-card.t1 { --tc: #f5c518; } .tier-card.t2 { --tc: #4de0e0; } .tier-card.t3 { --tc: #5cd6a0; } .tier-card.t4 { --tc: #b388ff; } .tier-card.t5 { --tc: #aaa; }
.tier-card { border-top: 3px solid var(--tc, #f5c518); }
.tier-notes { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.tier-notes .card { padding: 16px; }
.tier-notes p { margin: 6px 0 0; font-size: 14px; color: #bbb; }

/* ===== Инструкция (4 шага) ===== */
.how-grid.four { grid-template-columns: repeat(4, 1fr); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; transition: color .15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #f5c518; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: #f5c518; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: #bbb; font-size: 14.5px; animation: faqIn .22s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== Плавное появление блоков ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .tier-card, .news-card, .how-step { transition-delay: 0s; }
}

/* ===== Адаптация под телефоны и планшеты ===== */
@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-info { grid-template-columns: repeat(3, 1fr); }
  .how-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 761px) and (max-width: 960px) { .how-grid.four .how-step::after { display: none; } }
@media (max-width: 760px) {
  .news-grid, .tier-notes, .how-grid.four { grid-template-columns: 1fr; }
  .tier-info { grid-template-columns: repeat(2, 1fr); }
  .team-title { font-size: 22px; }
  .team-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .team-tabs::-webkit-scrollbar { display: none; }
  .team-tabs button { flex: 0 0 auto; padding: 8px 14px; }
  .team-arrow { padding: 8px 12px; }
  .faq-item summary { padding: 14px 44px 14px 14px; }
  .faq-item p { padding: 0 14px 14px; }
}
@media (max-width: 420px) { .tier-info { grid-template-columns: 1fr; } }

/* ===== v2: переключатель команды без рамки — просто жёлтый текст ===== */
html body .team-switch { padding: 0; gap: 4px; background: none; box-shadow: none; }
.team-word { min-width: 0; color: #f5c518; }
.team-arrow { font-size: .8em; padding: 4px 6px; opacity: .55; }
.team-arrow:hover { opacity: 1; color: #f5c518; transform: scale(1.2); }

/* ===== v2: «Инструкция по началу игры» — таймлайн из 4 шагов ===== */
.how-grid.four { gap: 18px; align-items: stretch; }
.how-grid.four::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; background: repeating-linear-gradient(90deg, rgba(245,197,24,.55) 0 8px, transparent 8px 16px); z-index: 0; }
html body .how-grid.four .how-step { position: relative; z-index: 1; overflow: hidden; padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 6px; transition: transform .2s ease, box-shadow .2s ease; }
html body .how-grid.four .how-step::after { content: attr(data-n); position: absolute; right: 10px; bottom: -22px; left: auto; top: auto; transform: none; font-size: 110px; line-height: 1; color: rgba(245,197,24,.06); text-shadow: none; pointer-events: none; }
.how-grid.four .how-step:hover { transform: translateY(-5px); }
html body .how-grid.four .how-num { width: 44px; height: 44px; margin-bottom: 10px; font-size: 22px; background: #f5c518; color: #111; box-shadow: 0 0 0 4px rgba(245,197,24,.16), 0 6px 18px rgba(245,197,24,.25); text-shadow: none; transition: transform .2s ease, box-shadow .2s ease; }
.how-grid.four .how-step:hover .how-num { transform: scale(1.1) rotate(-4deg); box-shadow: 0 0 0 6px rgba(245,197,24,.2), 0 8px 22px rgba(245,197,24,.35); }
html body .how-grid.four .how-step h3 { font-size: 17px; line-height: 1.25; margin: 0 0 4px; }
html body .how-grid.four .how-step p { font-size: 14px; line-height: 1.5; color: #b5b5b5; }
html body .how-grid.four .how-step code { color: #f5c518; background: rgba(245,197,24,.1); padding: 1px 6px; }

/* ===== v2: FAQ — две колонки, компактные плашки ===== */
html body .faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: none; align-items: start; }
html body .faq-item { padding: 0; border-left: 3px solid transparent; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
html body .faq-item:hover { transform: translateY(-2px); }
html body .faq-item[open] { border-left-color: #f5c518; background: linear-gradient(90deg, rgba(245,197,24,.07), transparent 60%), var(--mc-panel, #161616); }
html body .faq-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.35; }
html body .faq-item summary::before { content: "?"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; font-size: 15px; font-weight: 700; color: #f5c518; background: rgba(245,197,24,.12); border-radius: 50%; transition: background .2s, color .2s; }
html body .faq-item[open] summary::before { background: #f5c518; color: #111; }
html body .faq-item summary::after { position: static; transform: none; margin-left: auto; flex: none; font-size: 20px; line-height: 1; }
html body .faq-item[open] summary::after { transform: rotate(45deg); }
html body .faq-item p { padding: 0 18px 18px 60px; font-size: 14px; line-height: 1.6; }
html body .faq-item p code { color: #f5c518; background: rgba(245,197,24,.1); padding: 1px 6px; }

@media (max-width: 960px) {
  .how-grid.four::before { display: none; }
}
@media (max-width: 760px) {
  html body .faq-list { grid-template-columns: 1fr; }
  html body .faq-col { display: contents; }
  html body .faq-item summary { padding: 14px; gap: 12px; }
  html body .faq-item p { padding: 0 14px 16px 54px; }
  html body .how-grid.four .how-step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px; }
  html body .how-grid.four .how-num { margin: 0; }
  html body .how-grid.four .how-step h3 { flex: 1; margin: 0; }
  html body .how-grid.four .how-step p { flex-basis: 100%; }
}

/* ===== «О тир-листе» (главная): карточки тиров и пояснения ===== */
#about-tiers .ti-lead { max-width: 720px; line-height: 1.6; }
#about-tiers .ti-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
#about-tiers .ti-card {
  --tc: #f5c518; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 18px 16px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#about-tiers .ti-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--tc), transparent); }
#about-tiers .ti-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tc) 55%, transparent); box-shadow: 0 14px 34px -14px var(--tc); }
#about-tiers .ti-card.t1 { --tc: #f5c518; } #about-tiers .ti-card.t2 { --tc: #4de0e0; } #about-tiers .ti-card.t3 { --tc: #5cd6a0; }
#about-tiers .ti-card.t4 { --tc: #b388ff; } #about-tiers .ti-card.t5 { --tc: #aab0b8; }
#about-tiers .ti-head { display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 4px; }
#about-tiers .ti-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #8d8d8d; }
#about-tiers .ti-num { font-family: Rubik, system-ui, sans-serif; font-size: 44px; font-weight: 700; color: var(--tc); text-shadow: 0 0 22px color-mix(in srgb, var(--tc) 55%, transparent); }
#about-tiers .ti-rows { display: flex; flex-direction: column; gap: 10px; }
#about-tiers .ti-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'chip pts' 'bar bar'; align-items: center; row-gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.28); }
#about-tiers .ti-chip { grid-area: chip; justify-self: start; padding: 3px 0; width: 44px; text-align: center; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #111; background: var(--tc); }
#about-tiers .ti-row:nth-child(2) .ti-chip { background: color-mix(in srgb, var(--tc) 28%, #1a1a1a); color: var(--tc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 55%, transparent); }
#about-tiers .ti-bar { grid-area: bar; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
#about-tiers .ti-bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, transparent), var(--tc)); }
#about-tiers .ti-pts { grid-area: pts; justify-self: end; font-size: 12px; color: #9a9a9a; white-space: nowrap; }
#about-tiers .ti-pts b { font-size: 17px; color: #fff; margin-right: 2px; }
#about-tiers .ti-foot { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: color-mix(in srgb, var(--tc) 70%, #bbb); padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.12); }

#about-tiers .ti-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
#about-tiers .ti-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); transition: transform .2s ease, border-color .2s ease; }
#about-tiers .ti-note:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); }
#about-tiers .ti-note b { display: block; font-size: 15px; color: #fff; }
#about-tiers .ti-note p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #aeaeae; }
#about-tiers .ti-badge { flex: none; min-width: 52px; padding: 9px 8px; text-align: center; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .03em; color: var(--nc); background: color-mix(in srgb, var(--nc) 14%, #151515); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nc) 45%, transparent); }
#about-tiers .ti-note.n1 { --nc: #f5c518; } #about-tiers .ti-note.n2 { --nc: #5cd6a0; } #about-tiers .ti-note.n3 { --nc: #b388ff; }

@media (max-width: 1100px) { #about-tiers .ti-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } #about-tiers .ti-notes { grid-template-columns: 1fr; } }
@media (max-width: 680px) { #about-tiers .ti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #about-tiers .ti-num { font-size: 36px; } }
@media (max-width: 420px) { #about-tiers .ti-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #about-tiers .ti-card, #about-tiers .ti-note { transition: none; } }

/* ===== FAQ: две независимые колонки (раскрытый пункт не оставляет дыр в соседней), без квадратной рамки фокуса ===== */
html body .faq-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; align-items: stretch; }
html body .faq-item summary { outline: none; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
html body .faq-item summary:focus { outline: none; }
html body .faq-item summary:focus-visible { outline: 2px solid rgba(245,197,24,.55); outline-offset: -3px; }
@media (max-width: 760px) {
  html body .faq-list { gap: 12px; }
}
