@font-face { font-family: Brush; src: url(/fonts/brush.woff2) format("woff2"); font-display: block; }
/* Soyuz Grotesk — подпись «клуб мафии» под логотипом, как на аватаре клуба */
@font-face { font-family: Soyuz; src: url(/fonts/soyuz.woff2) format("woff2"); font-weight: 700; font-display: block; }

/* «Лица клуба»: чёрный и красный — нейтральный чёрный фон, серые карточки без тёплого (коричневого) оттенка,
   красный клуба — единственный цвет; шрифт Jost — геометричный и дружелюбный.
   Герои страницы — настоящие игроки клуба и видео с игр. */
:root {
  --bg: #0a0a0a;        /* чёрный без оттенка */
  --tile: #161616;      /* карточки */
  --tile-2: #202020;    /* карточки при наведении */
  --text: #f4f4f4;
  --soft: rgba(244, 244, 244, .68);
  --muted: rgba(244, 244, 244, .52);
  --faint: rgba(244, 244, 244, .32);
  --line: rgba(244, 244, 244, .12);
  --red: #c4261e;
  --red-hover: #d0332a;
  --red-soft: #e8584e;  /* красный для иконок и мелких акцентов на тёмном */
  /* Свечение: один источник — красный свет клуба; широкое, мягкое, без неоновых контуров */
  --glow: 0 18px 50px -12px rgba(220, 45, 35, .85), 0 4px 20px -4px rgba(220, 45, 35, .5);
  --glow-hover: 0 22px 60px -10px rgba(232, 60, 48, 1), 0 6px 24px -4px rgba(232, 60, 48, .65);
  --glow-card: 0 30px 90px -22px rgba(220, 45, 35, .95), 0 0 40px -8px rgba(220, 45, 35, .45);
  --r-l: 36px;          /* видео, фото, крупные блоки */
  --r-m: 28px;          /* карточки */

  /* Один шрифт на весь сайт — Jost. Onest остаётся только внутри блоков приложения (.app-ui) */
  --display: Jost, "Helvetica Neue", Arial, sans-serif;
  --sans: Jost, "Helvetica Neue", Arial, sans-serif;

  /* Шкала: дисплей / H2 / H3 / текст / мелкий */
  --fs-display: clamp(64px, 8vw, 140px);
  --fs-h2: clamp(44px, 5vw, 80px);
  --fs-h3: 21px;
  --fs-lead: clamp(18px, 1.45vw, 21px);
  --fs-body: 18px;
  --fs-small: 15px;

  --wrap: 1280px;
  --pad: clamp(18px, 4vw, 56px);
  --gap-section: clamp(100px, 12vw, 180px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
/* Фон — зерно плёнки: едва заметная фактура по всей странице, чтобы чёрный не был «цифровым».
   Цвет фона у html, а body прозрачный: иначе фон body перекрыл бы этот слой */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
body { margin: 0; background: transparent; color: var(--text); font: 400 var(--fs-body)/1.55 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; font-synthesis: none; text-rendering: optimizeLegibility; }
p, dd, li { text-wrap: pretty; }
b, strong { font-weight: 500; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Типографика: крупно и легко */
/* Дисплей и H2: крупно, плотно, средним начертанием */
.hero-title, .h2, .num b, .final-title { font-family: var(--display); font-weight: 500; text-wrap: balance; }
.hero-title { letter-spacing: -.045em; }
.h2 { font-size: var(--fs-h2); line-height: .95; letter-spacing: -.04em; }
/* H3: один стиль для плиток, шагов, званий и вопросов */
.h3, .fr-card h3, .titles-head, .faq-list summary { font: 500 var(--fs-h3)/1.3 var(--display); letter-spacing: -.02em; }
.lead { margin-top: 28px; max-width: 34em; color: var(--soft); font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -.01em; }
.small, .next-label, .titles-season, .title-text span, .head-sub { font-size: var(--fs-small); line-height: 1.45; letter-spacing: 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.head-sub { color: var(--muted); padding-bottom: 10px; }
.state { color: var(--muted); padding: 24px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 32px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; cursor: pointer;
  font: 500 17px/1 var(--sans); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  box-shadow: var(--glow);
  transition: background-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--red-hover); box-shadow: var(--glow-hover); }
.btn:active { transform: translateY(0); }
.btn .i { width: 19px; height: 19px; }
.btn-sm { height: 40px; padding: 0 18px; gap: 8px; font-size: var(--fs-small); }
.btn-sm .i { width: 16px; height: 16px; }

/* Иконки: тонкий линейный набор, цвет — от текста */
.i, .tile-i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Шапка: прозрачная поверх первого экрана */
.top { position: fixed; inset: 0 0 auto; z-index: 20; background: transparent; }
.top.is-solid { background: rgba(10, 10, 10, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top { transition: background-color .3s, box-shadow .3s; }
.top-in { height: 76px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; font: 400 26px/1 Brush, var(--display); color: var(--red); text-decoration: none; white-space: nowrap; }
.brand-sub { margin-top: .2em; font: 700 .4em/1 Soyuz, var(--display); color: var(--text); letter-spacing: .02em; }
.nav { display: flex; gap: 30px; margin: 0 auto; font-size: var(--fs-small); font-weight: 400; }
.nav a { color: var(--soft); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* 1. Первый экран: текст слева, видео справа, вокруг видео — игроки клуба с их рамками и эффектами */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: 100svh; padding-top: 100px; padding-bottom: 48px; }
.hero-title { font-size: var(--fs-display); line-height: .9; }
.hero-lead { margin: 28px 0 36px; max-width: 26em; color: var(--soft); font-size: 21px; line-height: 1.5; }
.hero-text > * { animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; } .hero-text > :nth-child(3) { animation-delay: .2s; } .hero-text > :nth-child(4) { animation-delay: .3s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
/* Главная кнопка: действие + «Бесплатно» полупрозрачно второй строкой, стрелка в круге */
.btn-main { height: auto; gap: 18px; padding: 10px 10px 10px 28px; }
.btn-main-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.btn-main-text small { font: 400 14px/1 var(--sans); opacity: .65; }
.btn-main-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .25s; }
.btn-main-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-main:hover .btn-main-arrow { transform: translateX(3px); }
.hero-scene { position: relative; isolation: isolate; height: min(80svh, 760px); }
/* Зарево за видео: красный свет лампы выходит за края рамки */
.hero-scene::before { content: ""; position: absolute; inset: -6% -6% -10% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 45, 35, .72), rgba(220, 45, 35, .28) 55%, transparent); filter: blur(50px); pointer-events: none; }
.hero-scene video { position: absolute; inset: 0 12% 0 8%; width: 80%; height: 100%; object-fit: cover; border-radius: 40px; }
/* Аватарки: аватар над задним слоем эффекта, рамка и передний слой — над аватаром (как .rating-podium-avatar-ring);
   каждая плывёт по своему вектору (--dx, --dy) и чуть поворачивается; смена — через затухание */
.face { position: absolute; z-index: 1; isolation: isolate; width: var(--s); height: var(--s); left: var(--x); top: var(--y); transform: translate(-50%, -50%); animation: face-float var(--t) ease-in-out var(--d) infinite alternate; transition: opacity .8s ease, width .8s ease, height .8s ease; }
.face.is-out { opacity: 0; }
.face-ring { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--tile); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.face-ring img { width: 100%; height: 100%; object-fit: cover; }
@keyframes face-float { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); } }

/* Лента «Вечера клуба»: прошедшие вечера и будущие игры, листается вбок */
.reel { padding-top: clamp(48px, 6vw, 80px); }
.reel-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.reel-nav { display: flex; gap: 8px; }
.reel-nav button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--tile); color: var(--text); cursor: pointer; transition: background-color .2s; }
.reel-nav button:hover { background: var(--tile-2); }
/* Лента начинается от края колонки, а листается до края экрана */
.reel-track { --reel-pad: max(var(--pad), calc((100vw - var(--wrap)) / 2)); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--reel-pad); padding: 24px var(--reel-pad) 72px; margin: -20px 0 -60px; scrollbar-width: none; overscroll-behavior-x: contain; }
.reel-track::-webkit-scrollbar { display: none; }
.eve { position: relative; flex: 0 0 290px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; min-height: 320px; padding: 22px; border-radius: 30px; background: var(--tile); color: var(--text); text-decoration: none; transition: transform .25s, background-color .25s; }
.eve:hover { transform: translateY(-3px); background: var(--tile-2); }
.eve-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eve-tag { padding: 6px 12px; border-radius: 999px; background: rgba(244, 244, 244, .08); color: var(--soft); font-size: 13px; }
.eve-count { color: var(--soft); font-size: 13px; }
/* Дата одним замком: крупное число, рядом месяц и день недели */
.eve-date { display: flex; align-items: center; gap: 12px; }
.eve-date b { font: 500 72px/.8 var(--display); letter-spacing: -.06em; }
.eve-date > span { display: flex; flex-direction: column; gap: 2px; font: 500 18px/1.15 var(--display); }
.eve-date small { color: var(--soft); font: 400 15px/1.2 var(--sans); }
.eve-games { margin-top: auto; display: grid; gap: 8px; color: var(--soft); font-size: 14px; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots i { width: 22px; height: 8px; border-radius: 999px; }
.eve-best { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 13px; }
.eve-avas { display: flex; }
.eve-avas > * { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -8px; border-radius: 50%; object-fit: cover; background: var(--tile-2); box-shadow: 0 0 0 2px var(--tile); color: var(--soft); font-size: 12px; }
.eve-avas > :first-child { margin-left: 0; }
.eve-meta { display: grid; gap: 8px; color: var(--soft); font-size: 15px; }
.eve-meta > span { display: flex; align-items: center; gap: 8px; }
.eve-meta b { color: var(--text); font-weight: 500; }
.eve-go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px 0 22px; border-radius: 999px; background: var(--text); color: var(--bg); font: 500 16px/1 var(--sans); }
.eve-go i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 10, 10, .08); transition: transform .25s; }
.eve:hover .eve-go i { transform: translateX(3px); }
/* Будущие: ближайшая — красная, следующие — с красной рамкой; наведение только подсвечивает */
.eve--soon { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(232, 88, 78, .55); }
.eve--soon:hover { background: rgba(232, 88, 78, .08); }
.eve--next, .eve--next:hover { background: var(--red); box-shadow: var(--glow-card); }
.eve--next:hover { background: var(--red-hover); }
.eve--soon .eve-tag { background: rgba(232, 88, 78, .16); color: #ff8a80; }
.eve--next .eve-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.eve--next .eve-date small, .eve--next .eve-meta, .eve--next .eve-count { color: rgba(255, 255, 255, .85); }
.eve--next .eve-meta b { color: #fff; }
.eve--soon:not(.eve--next) .eve-go, .eve--soon:not(.eve--next) .eve-go i { background: rgba(244, 244, 244, .1); color: var(--text); }
.reel-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; color: var(--soft); font-size: 13px; }
.reel-legend span { display: inline-flex; align-items: center; gap: 8px; }
.reel-legend i { width: 18px; height: 7px; border-radius: 999px; }

/* 2. «Никогда не играл?»: четыре карточки — сомнение крупно, при появлении его перечёркивает красная линия
   («сомнение отпало»), под ним ответ клуба; без фото и без нажатий */
.newbie { padding-top: var(--gap-section); }
.newbie-head .lead { margin-top: 20px; max-width: 30em; }
.doubts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doubt { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 260px; padding: 32px; border-radius: var(--r-l); background: var(--tile); }
.doubt-q { font: 500 clamp(30px, 3.2vw, 48px)/1.05 var(--display); letter-spacing: -.035em; }
/* Линия — отдельным слоем ПОВЕРХ букв (фон лежит под текстом и буквами закрывается), посередине строчных;
   зачёркнутое сомнение бледнеет */
.doubt-q s { position: relative; display: inline-block; text-decoration: none; color: var(--muted); }
.doubt-q s::after { content: ""; position: absolute; left: -.06em; right: -.06em; top: 55%; height: .1em; border-radius: .05em; background: var(--red); transform-origin: left center; }
.doubt-a { max-width: 30em; color: var(--soft); font-size: 18px; }
/* Перечёркивание рисуется слева направо, по очереди, когда блок появляется на экране */
.js-reveal .doubts.reveal { opacity: 1; transform: none; }
.js-reveal .doubts.reveal .doubt-q s { color: var(--text); transition: color .7s ease .3s; }
.js-reveal .doubts.reveal .doubt-q s::after { transform: scaleX(0); transition: transform .7s cubic-bezier(.6, 0, .2, 1) .3s; }
.js-reveal .doubts.reveal.is-in .doubt-q s { color: var(--muted); }
.js-reveal .doubts.reveal.is-in .doubt-q s::after { transform: none; }
.js-reveal .doubts.reveal.is-in .doubt:nth-child(2) s, .js-reveal .doubts.reveal.is-in .doubt:nth-child(2) s::after { transition-delay: .55s; }
.js-reveal .doubts.reveal.is-in .doubt:nth-child(3) s, .js-reveal .doubts.reveal.is-in .doubt:nth-child(3) s::after { transition-delay: .8s; }
.js-reveal .doubts.reveal.is-in .doubt:nth-child(4) s, .js-reveal .doubts.reveal.is-in .doubt:nth-child(4) s::after { transition-delay: 1.05s; }

/* 3. «Как проходит вечер»: история при прокрутке — шаги слева, справа закреплённое фото сменяется под текущий шаг */
.evening { padding-top: var(--gap-section); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 24px; }
.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.story-steps li { counter-increment: step; min-height: 62svh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s; }
.story-steps li.is-on { opacity: 1; }
.story-steps li::before { content: counter(step); font: 500 clamp(96px, 11vw, 168px)/.85 var(--display); letter-spacing: -.06em; color: var(--red); margin-bottom: 20px; }
.story-steps h3 { font: 500 clamp(28px, 2.6vw, 40px)/1.1 var(--display); letter-spacing: -.03em; }
.story-steps p { margin-top: 14px; max-width: 28em; color: var(--soft); font-size: 19px; }
.story-inline { display: none; }
.story-media { position: sticky; top: 100px; height: calc(100svh - 140px); max-height: 820px; border-radius: var(--r-l); overflow: hidden; background: var(--tile); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.2s ease; }
.story-media img.is-on { opacity: 1; transform: none; }

/* 4. «Здесь находят друзей»: видео выезда клуба слева во всю высоту, справа заголовок и четыре блока 2×2 */
.friends { padding-top: var(--gap-section); display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 12px; }
.fr-video { grid-column: 1; grid-row: 1 / span 3; }
/* Видео растягивается на всю высоту ячейки (у ячейки сетки нет явной высоты, проценты от неё не работают) */
.fr-video { position: relative; min-height: 620px; border-radius: var(--r-l); overflow: hidden; background: var(--tile); }
.fr-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.fr-head { grid-column: 2 / span 2; padding: 24px 8px 24px; }
.fr-head .lead { margin-top: 18px; }
.fr-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-l); background: var(--tile); }
.fr-card p { color: var(--soft); font-size: 16px; }
.fr-card--red { background: var(--red); box-shadow: var(--glow-card); }
.fr-card--red p { color: rgba(255, 255, 255, .85); }

/* Роли: открытые карты как в приложении — узор рубашки, герб, команда; наклон и блик вслед за курсором */
.roles { padding-top: var(--gap-section); }
.role-deck { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; perspective: 1000px; }
.role-deck li { flex: 0 0 calc((100% - 48px) / 4); }
.role-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 3 / 4.4; padding: 22px 18px; border-radius: var(--r-m); text-align: center;
  border: 1px solid rgba(244, 244, 244, .1); background: var(--tile);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s, border-color .6s;
}
.role-card.is-tilting { transition: transform .1s linear, box-shadow .6s, border-color .6s; }
.role-card:hover { border-color: rgba(244, 244, 244, .32); box-shadow: 0 34px 70px -18px rgba(0, 0, 0, .8); }
.role-glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .16), transparent 55%);
}
.role-card:hover .role-glare { opacity: 1; }
.role-art { width: 62%; height: auto; margin: 4px 0 2px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.role-card:hover .role-art { transform: scale(1.06) translateY(-4px); }
/* Цветной свет за иконкой — фоном карточки: drop-shadow на картинке Chrome обрезает её квадратом */
.role-card:has(.role-art[data-role]) {
  background: radial-gradient(46% 30% at 50% 38%, color-mix(in srgb, var(--role-glow) 30%, transparent), transparent 100%), var(--tile);
}
.role-card:has([data-role="civilian"])   { --role-glow: #9fb27a; }
.role-card:has([data-role="sheriff"])    { --role-glow: #e8b545; }
.role-card:has([data-role="doctor"])     { --role-glow: #4fd65e; }
.role-card:has([data-role="prostitute"]) { --role-glow: #ec4f97; }
.role-card:has([data-role="don"])        { --role-glow: #c63a4c; }
.role-card:has([data-role="mafia"])      { --role-glow: #8296b0; }
.role-card:has([data-role="maniac"])     { --role-glow: #9a5ae6; }
.role-name { font: 500 var(--fs-h3)/1.2 var(--display); letter-spacing: -.02em; }
.role-night { color: var(--red-soft); font-size: var(--fs-small); }
.role-goal { display: block; align-self: stretch; min-height: 2.9em; text-wrap: nowrap; color: var(--soft); font-size: var(--fs-small); line-height: 1.45; } /* две строки задаём переносами в разметке */


/* Ссылки на курс, правила и видео под шагами вечера */
.roles-more { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.roles-more a { padding: 12px 20px; border-radius: 999px; background: var(--tile); color: var(--text); text-decoration: none; font-size: 15px; transition: background-color .2s; }
.roles-more a:hover { background: var(--tile-2); }

/* 5. Сезон: рейтинг и звания в две колонки, компактно */
.season { padding-top: var(--gap-section); }
.season .head { margin-bottom: 40px; }
.season-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; align-items: stretch; }
.rating-grid {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 36px 14px 14px; border-radius: var(--r-l); background: #000; font-family: var(--sans);
}
.rating-grid .rating-podium { max-width: 400px; margin: 0 auto; }
/* Лучи в приложении считаются от экрана телефона (луч = 42% от 100vw ≈ 164 px, высота 100dvh ≈ 844 px).
   На сайте контейнер шире панели, чтобы не было видно краёв, а сам луч — телефонного размера */
.rating-grid .rating-podium-rays { width: 1200px; height: 844px; }
.rating-grid .rating-podium-ray { width: 164px; margin-left: -82px; }
.rows-panel { position: relative; z-index: 1; margin-top: 24px; }
.rows-panel .rating-row { margin: 0; cursor: default; }
/* Колонка званий во всю высоту рейтинга; кнопка полного рейтинга — внизу, на всю ширину */
.season-side { display: flex; flex-direction: column; gap: 12px; }
.rating-open { width: 100%; }

/* Экран рейтинга приложения: правила #tab-rating / #rating-list / .rating-season-* из webapp/style.css
   (строки 702, 716, 4020–4051, 13273, 13280–13283), перенесены как есть под .rating-screen */
.app-ui .rating-screen.list, .app-ui .rating-screen .list { display: flex; flex-direction: column; gap: 12px; padding-block: 2px; }
.app-ui .rating-screen .card { border-radius: 20px; }
.app-ui .rating-screen .rating-points { font-weight: 700; letter-spacing: -0.01em; }
.app-ui .rating-season-switcher { position: relative; z-index: 2; display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.app-ui .rating-season-switcher::-webkit-scrollbar { display: none; }
.app-ui .rating-season-switcher[hidden] { display: none; }
.app-ui .rating-season-chip { flex: 0 0 auto; padding: 10px 16px; border: none; border-radius: 999px; background: var(--tb-s1); color: var(--tb-t2); font-size: 13px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; }
.app-ui .rating-season-chip.active { background: var(--text); color: var(--bg); }
.app-ui .empty { padding: 24px 0; color: var(--hint); text-align: center; }

/* Окно «Полный рейтинг»: чёрный фон приложения */
/* Полный рейтинг — окно приложения (.modal из appui/screens.css); лучи — как на телефоне */
#modal-rating .rating-podium-rays { width: 1200px; height: 844px; }
#modal-rating .rating-podium-ray { width: 164px; margin-left: -82px; }
#modal-rating .rating-row { margin: 0; }

.titles { flex: 1; display: flex; flex-direction: column; padding: 28px 24px 12px; border-radius: var(--r-l); background: var(--tile); }
.titles-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.titles-season { margin-left: auto; color: var(--muted); }
/* Строки званий делят высоту карточки поровну */
.title-list { flex: 1; list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-auto-rows: 1fr; font-family: var(--sans); }
.title-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.title-role { width: 48px; height: 48px; object-fit: contain; }
/* Аватар и ник владельца звания — рядом, слева */
.title-text .title-owner { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 4px; }
.title-text .title-owner .title-name { display: inline; }
.title-ava { position: relative; flex: none; width: 22px; height: 22px; }
.title-ava .rating-podium-avatar-inner { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--tile-2); }
.title-ava .rating-podium-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.title-ava .rating-podium-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 10px; }
.title-text b { display: block; font-weight: 500; font-size: 17px; }
.title-text span { display: block; color: var(--muted); }

/* 7. Вопросы: слева заголовок и «Не нашёл ответ?» с переходом в чат, справа вопросы мягкими карточками */
.faq { padding-top: var(--gap-section); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-help { margin-top: 32px; padding: 24px; border-radius: var(--r-m); background: var(--tile); }
.faq-help p { color: var(--soft); margin-bottom: 18px; }
.faq-help b { display: block; color: var(--text); font-size: var(--fs-h3); margin-bottom: 4px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border-radius: 24px; background: var(--tile); transition: background-color .25s; }
.faq-list details[open] { background: var(--tile-2); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 20px 20px 26px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
/* Плюс нарисован двумя одинаковыми линиями (символ «+» из шрифта садится по базовой линии и смещён);
   при открытии поворачивается в крестик */
.faq-list summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background:
    linear-gradient(var(--soft), var(--soft)) center / 14px 2px no-repeat,
    linear-gradient(var(--soft), var(--soft)) center / 2px 14px no-repeat,
    rgba(244, 244, 244, .07);
  transition: transform .25s, background-color .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding: 0 72px 24px 26px; color: var(--soft); max-width: 40em; }

/* 8. Финал: тёплая панель по центру */
.final { padding-top: var(--gap-section); padding-bottom: 96px; }
/* Карточка-сцена: свет лампы над столом стоит ровно за датой, края уходят в темноту */
.final-in { position: relative; isolation: isolate; overflow: hidden; min-height: min(760px, 88vh); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(64px, 8vw, 112px) 32px; border-radius: var(--r-l); background: #000; text-align: center; }
.final-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; filter: brightness(1.25) contrast(1.1); }
.final-in::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 52%, rgba(10, 10, 10, .15) 0%, rgba(10, 10, 10, .55) 60%, rgba(10, 10, 10, .92) 100%); }
.final-brand { align-items: center; font-size: clamp(28px, 2.6vw, 36px); }
.final-when { margin-top: clamp(40px, 5vw, 64px); }
.final-label { color: var(--red-soft); font-size: var(--fs-lead); font-weight: 500; letter-spacing: -.01em; }
/* Дата — главный элемент: крупно и светлым начертанием, как цифры клуба */
.final-title { margin-top: 10px; font-size: clamp(72px, 10.5vw, 160px); font-weight: 400; line-height: .9; letter-spacing: -.055em; white-space: nowrap; }
.final-title--text { margin-top: 0; font-size: var(--fs-h2); font-weight: 500; line-height: .96; letter-spacing: -.045em; white-space: normal; max-width: 12em; }
.final-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; color: var(--soft); font-size: var(--fs-lead); }
.final-meta span { display: inline-flex; align-items: center; gap: 10px; }
.final-meta .i { color: var(--red-soft); }
.final-sub { margin: 40px 0 28px; color: var(--muted); font-size: var(--fs-body); }
.final-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
/* Несколько игр в расписании: карточки рядом, у каждой — дата, время, адрес и своя запись */
.final-games { list-style: none; margin: 28px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.final-games li { width: 260px; }
.final-games a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 22px 22px 20px; border-radius: 24px; background: rgba(22, 22, 22, .85); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); text-align: left; text-decoration: none; font-size: var(--fs-small); transition: background-color .25s, transform .25s; }
.final-games a:hover { background: rgba(32, 32, 32, .85); transform: translateY(-2px); }
.final-games b { font: 300 44px/1 var(--display); letter-spacing: -.05em; color: var(--text); }
.final-games .go { margin-top: 10px; color: var(--red-soft); font-weight: 500; }
.final-when--many .final-title { font-size: var(--fs-h2); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(244, 244, 244, .3); }
.btn-ghost:hover { background: var(--tile-2); box-shadow: inset 0 0 0 1px rgba(244, 244, 244, .3); } /* у прозрачной кнопки нет красного отсвета */

/* Подвал: слева клуб и запись, справа три колонки (о клубе, игры, связь); внизу — копирайт и «Работает с помощью» */
.foot { margin-top: var(--gap-section); border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0 56px; }
.foot-about { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.brand-foot { font-size: 30px; }
.foot-text { max-width: 22em; color: var(--soft); font-size: 16px; }
.foot-cta { height: 52px; padding: 0 24px; font-size: 16px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-head { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.foot-col a { color: var(--text); text-decoration: none; font-size: 16px; transition: color .2s; }
.foot-col a:hover { color: var(--red-soft); }
.social { display: inline-flex; align-items: center; gap: 12px; }
.social-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tile); transition: background-color .2s; }
.social:hover .social-i { background: var(--red); }
.social:hover { color: var(--text) !important; }
/* Знаки занимают в своих квадратах разную долю (замер getBBox: Telegram 18×15 из 24, MAX 100×100 из 100,
   ВКонтакте 16×9 из 24) — размеры подобраны так, чтобы видимый знак был одной величины, около 14 px */
.social-i .i--tg { width: 19px; height: 19px; }
.social-i .i--max { width: 14px; height: 14px; }
.social-i .i--vk { width: 21px; height: 21px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Появление при прокрутке (класс js-reveal ставит скрипт, если движение не отключено) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .reveal.is-in > :nth-child(2) { transition-delay: .08s; }
.js-reveal .reveal.is-in > :nth-child(3) { transition-delay: .16s; }
.js-reveal .reveal.is-in > :nth-child(4) { transition-delay: .24s; }

@media (max-width: 1080px) {
  .nav { gap: 22px; }
  }
@media (max-width: 1080px) {
  .role-deck li { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 96px; }
  .hero-scene { height: 70svh; }
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .doubts { grid-template-columns: 1fr; }
  .doubt { min-height: 0; gap: 24px; padding: 26px; }
  .story { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .story-steps li { min-height: 0; opacity: 1; padding-bottom: 40px; }
  .story-inline { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); margin-bottom: 20px; }
  /* Номер шага — слева от заголовка и текста, фото — во всю ширину над ними */
  .story-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-content: start; }
  .story-inline { grid-column: 1 / -1; }
  .story-steps li::before { grid-row: 2 / span 2; font-size: 56px; line-height: .9; margin: 0; }
  .story-steps li p { margin-top: 10px; }
  .friends { grid-template-columns: 1fr 1fr; }
  .fr-video, .fr-head, .fr-card { grid-column: auto; grid-row: auto; }
  .fr-head { grid-column: 1 / -1; }
  .fr-head { order: -1; padding: 0 0 12px; }
  .fr-video { grid-column: 1 / -1; }
  .fr-video { min-height: 0; aspect-ratio: 4 / 5; }
  .season-grid { grid-template-columns: 1fr; }
  .rating-open { align-self: stretch; }
  }
@media (max-width: 560px) {
  :root { --fs-body: 16px; --fs-display: 72px; --fs-h2: 40px; --fs-h3: 18px; }
  .top-in { height: 64px; gap: 12px; }
  .brand { font-size: 22px; }
  .hero-lead { font-size: 18px; }
  .eve { flex-basis: 78vw; }
  .fr-card { padding: 22px; grid-column: 1 / -1; }
  .role-deck { gap: 10px; }
  .role-deck li { flex-basis: calc((100% - 10px) / 2); }
  .role-card { padding: 16px 12px; border-radius: 20px; gap: 6px; }
  .role-goal { display: none; }
            .rating-grid { padding: 28px 8px 8px; border-radius: 22px; }
  .titles { padding: 22px 18px 8px; border-radius: 22px; }
  .faq-list p { padding-right: 0; }
  .final-in { min-height: 0; padding: 56px 20px; border-radius: 28px; }
  .final-title { font-size: min(64px, 15vw); white-space: normal; }
  .final-meta { flex-direction: column; align-items: center; font-size: var(--fs-body); }
  .final .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text > *, .face { animation: none; }
  .btn:hover { transform: none; }
  .role-card, .role-art { transition: none; transform: none !important; }
}

/* ---------- Клуб в цифрах: плитки без фона и переходы в историю и статистику ---------- */
.club-nums { padding-top: var(--gap-section); }
.nums { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.num { display: flex; flex-direction: column; gap: 10px; min-height: 260px; padding: 28px; border-radius: var(--r-l); background: var(--tile); }
.num b { font-size: clamp(72px, 7.5vw, 120px); line-height: .85; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.num span { color: var(--soft); font-size: 18px; }
.num small { margin-top: auto; color: rgba(255, 255, 255, .8); font-size: 15px; }
.num--red { background: var(--red); box-shadow: var(--glow-card); }
.num--red span { color: rgba(255, 255, 255, .85); }
.num--people { grid-column: span 2; }
/* Стопка настоящих аватарок игроков и «+N» остальных */
.num-faces { margin-top: auto; display: flex; align-items: center; }
.num-faces img, .num-faces span { width: 52px; height: 52px; margin-left: -12px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--tile); }
.num-faces > :first-child { margin-left: 0; }
.num-faces span { display: grid; place-items: center; background: var(--tile-2); color: var(--text); font: 500 16px/1 var(--sans); }
.nums-links { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.band-link-more { display: inline-flex; align-items: center; gap: 6px; }
.band-link { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-l); background: var(--tile); border: 0; text-decoration: none; transition: border-color .3s, background-color .3s, transform .3s; }
.band-link:hover { background: var(--tile-2); }
.band-link-top { display: flex; align-items: center; gap: 10px; font: 500 var(--fs-h3)/1.3 var(--display); letter-spacing: -.02em; }
.band-link-top .i { color: var(--red-soft); }
.band-link-text { display: flex; flex-direction: column; gap: 12px; color: var(--soft); font-size: var(--fs-small); line-height: 1.5; min-height: 4.5em; }
.band-link-more { margin-top: auto; color: var(--red-soft); font-size: var(--fs-small); font-weight: 500; }
.band-teams { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--soft); }
.band-teams b { color: var(--text); font-weight: 500; }
.band-season { color: var(--muted); }

.band-bar { display: flex; gap: 3px; height: 8px; border-radius: 999px; overflow: hidden; }
.band-bar i { display: block; min-width: 6px; }
.rows-panel .rating-row, .rating-podium-slot[data-id] { cursor: pointer; }

/* ---------- Внутренние страницы: История игр и Статистика ---------- */
.subpage .top { background: rgba(10, 10, 10, .92); box-shadow: 0 1px 0 var(--line); }
.page-head { padding-top: clamp(130px, 14vw, 190px); }
.page-title { font-size: clamp(48px, 7vw, 104px); }
/* Страницы «История игр» и «Статистика клуба»: раскладка сайта, элементы и цвета — приложения (appui/screens.css) */
.season-chips { margin-top: 32px; }
.page-body { padding-top: 40px; padding-bottom: var(--gap-section); font-family: var(--font-sans); }

.h-day + .h-day { margin-top: 48px; }
.h-day-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.h-day-head h2 { font: 700 26px/1.2 var(--font-sans); letter-spacing: -.02em; }
.h-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.h-game { margin: 0; padding: 14px 12px 10px; }
.h-game-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 10px; }
.h-game-win { color: var(--team); font-size: 13px; font-weight: 700; }
.h-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.h-players li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: .5; cursor: pointer; }
.h-players li.is-win { opacity: 1; }
.h-players li:hover { background: var(--tb-s1); opacity: 1; }
.h-players .day-results-role-icon { width: 24px; height: 24px; }
.h-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-best { color: #facc15; font-size: 11px; }

.s-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.s-nums .stats-hero { align-items: flex-start; }
.s-charts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; margin-top: 10px; }
.s-card { margin: 0; padding: 24px; }
.s-note { margin: 6px 0 20px; color: var(--soft); font-size: var(--fs-small); line-height: 1.45; }
.s-title { margin: 0; font: 500 var(--fs-h3)/1.2 var(--display); letter-spacing: -.02em; }
.s-card :is(.player-stats-legend-meta, .player-stats-bar-value) { display: inline-flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.s-card .player-stats-legend-row { padding: 10px 0; }
.s-card .player-stats-bar-head { gap: 12px; }
.s-card .player-stats-bar-label { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.s-card .player-stats-donut-block { flex-direction: column; align-items: stretch; gap: 28px; margin-top: 8px; }
.s-card .player-stats-donut { width: 210px; height: 210px; align-self: center; }
.s-card .player-stats-donut-value { font-size: 48px; }
.s-role-icon { width: 26px; height: 26px; object-fit: contain; }
.s-tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.s-top > .s-title, .s-top .player-stats-section-head { margin: 0 0 16px; }
.s-top .player-stats-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.s-top .rating-row { margin: 0 0 8px; }
/* В приложении места 1–3 — на пьедестале, их строк в списке нет; в топах статистики свечение значка медали лишнее */
.app-ui .s-top .rating-row .rank { box-shadow: none; }

@media (max-width: 860px) {
  .nums-links, .s-tops, .s-charts { grid-template-columns: 1fr; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num { min-height: 200px; }
}
@media (max-width: 560px) {
  .s-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-card { padding: 20px 18px; }
  .s-card .player-stats-bar-value { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.25; }
}
@media (max-width: 560px) {
  .band-link { padding: 22px; }
  .num { padding: 22px; }
  .num-faces img, .num-faces span { width: 40px; height: 40px; margin-left: -10px; }
}

/* Окна приложения — снизу шторкой, как на телефоне; на широком экране — окном шириной с телефон по центру */
@media (min-width: 640px) {
  .app-ui .modal { align-items: center; justify-content: center; padding: 24px; }
  .app-ui .modal-content { width: min(480px, 100%); border-radius: var(--radius); max-height: min(900px, calc(100dvh - 48px)); }
}

/* Подвал: «Работает с помощью» и логотип MafiaHub — единственное место с ним на сайте */
.powered { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; text-decoration: none; transition: color .2s; }
.powered img { height: 36px; width: auto; margin: -6px 0; } /* в файле логотипа широкие поля */
.powered:hover { color: var(--text); }

/* ---------- Окно записи на игру ---------- */
/* Сверху выбор игры блоками, под ним — действие (форма или «ты записан»), ниже — состав дня из приложения */
.app-ui #modal-signup .modal-content.signup { max-width: 520px; }
.app-ui #modal-signup .modal-header h3 { font: 500 26px/1.15 var(--display); letter-spacing: -.02em; }
.signup-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.signup-game {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px;
  border: 1px solid rgba(244, 244, 244, .1); border-radius: 20px; background: var(--tile-2);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.signup-game:hover { border-color: rgba(244, 244, 244, .28); }
.signup-game.is-active { border-color: var(--red); background: rgba(196, 38, 30, .1); }
.signup-game:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.signup-game-date { display: flex; align-items: baseline; gap: 6px; font-size: 16px; }
.signup-game-date b { font: 500 34px/1 var(--display); letter-spacing: -.03em; }
.signup-game-meta { color: var(--soft); font-size: 14px; }
.signup-game-mine { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; font-weight: 600; }
.signup-game-mine .fa-solid { color: var(--red-soft); }
.signup-info { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.signup-info:first-child { margin-top: 0; }
.signup-info:empty { display: none; }
.signup-info p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--soft); font-size: 15px; }
.signup-info b { color: var(--text); font-weight: 600; }
.signup-info .i { width: 16px; height: 16px; flex: none; color: var(--red-soft); }

.signup-action { margin-top: 24px; }
.signup-form { display: flex; flex-direction: column; gap: 18px; }
.signup-fields { display: flex; flex-direction: column; gap: 14px; }
.signup-field { display: flex; flex-direction: column; gap: 8px; }
.signup-field > span { font-size: 15px; font-weight: 500; }
.signup-field input {
  height: 54px; padding: 0 18px; border: 1px solid rgba(244, 244, 244, .12); border-radius: 16px;
  background: var(--tile-2); color: var(--text); font: 400 17px/1 var(--sans); transition: border-color .2s;
}
.signup-field input::placeholder { color: rgba(244, 244, 244, .38); }
.signup-field input:focus { outline: none; border-color: rgba(244, 244, 244, .55); }
.app-ui .signup-guests { margin: 0; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--tile-2); }
.app-ui .day-vote-guests.signup-guests { order: 0; } /* у приложения блок гостей поднят наверх (order: -1) */
.app-ui .signup-guests .day-vote-guests-label { font-size: 15px; font-weight: 500; color: var(--text); }
.app-ui .signup-guests .stepper { gap: 6px; padding: 0; background: none; }
.app-ui .signup-guests .stepper-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(244, 244, 244, .08); color: var(--text); }
.app-ui .signup-guests .stepper-btn:hover:not(:disabled) { background: rgba(244, 244, 244, .16); }
.app-ui .signup-guests .stepper-btn:disabled { color: var(--text); opacity: .3; }
.app-ui .signup-guests .day-vote-guests-value { min-width: 64px; text-align: center; font-size: 20px; font-weight: 600; }
.app-ui .signup-guests .day-vote-guests-unit { color: var(--soft); font-size: 14px; font-weight: 400; }
.signup-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-error { margin: 0; color: var(--red-soft); font-size: 14px; }
.signup-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.signup-buttons .btn, .signup-cancel { width: 100%; height: 54px; }
.signup-submit:disabled, .signup-cancel:disabled { opacity: .6; cursor: default; }

.signup-status { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: rgba(196, 38, 30, .14); }
.signup-status > .fa-solid { margin-top: 3px; color: var(--red-soft); font-size: 22px; }
.signup-status.is-queue { background: var(--tile-2); }
.signup-status.is-queue > .fa-solid { color: #f5b83d; }
.signup-status-title { margin: 0; font: 500 20px/1.25 var(--display); }
.signup-status-sub { margin: 6px 0 0; color: var(--soft); font-size: 14px; line-height: 1.45; }
.signup-cancel { margin-top: 12px; }
.signup-cancel.is-confirm { box-shadow: inset 0 0 0 1px var(--red); color: var(--red-soft); }

.signup-voters { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(244, 244, 244, .08); }
.app-ui .signup-voters .day-vote-voter-title--signed, .app-ui .signup-voters .day-vote-voter-title--queue { font: 500 20px/1.2 var(--display); }
.signup-cap { color: var(--soft); }
.app-ui .signup-voters .day-vote-fill > span { background: var(--red); }
.app-ui .signup-voters .day-vote-chip { padding: 5px 14px; } /* у приложения слева место под значок уровня */
.app-ui .signup-voters .chip-count-bubble { background: var(--red); color: #fff; }
/* Шрифт приложения: в Jost «+» стоит на базовой линии и «+1» выглядит съехавшим вниз */
.app-ui .chip-count-bubble { font-family: 'Onest', var(--sans); }
.app-ui .signup-voters .day-vote-voter-section + .day-vote-voter-section { margin-top: 22px; }
.signup-empty { margin: 0; color: var(--soft); font-size: 15px; }
.signup-empty a { color: var(--text); }
