/* Шрифты раздаются с нашего сервера (без Google Fonts — GDPR). Лицензия OFL — рядом с файлами. */
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('../fonts/PlayfairDisplay-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Playfair Display'; font-weight: 800; font-display: swap; src: url('../fonts/PlayfairDisplay-ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/Manrope-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('../fonts/Manrope-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/Manrope-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/Manrope-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../fonts/Manrope-ExtraBold.ttf') format('truetype'); }

/* Мафия — сайт. Значения из design/design/tokens.json и source/*.dc.html */
:root {
  --ground: #0E0C10;
  --ground-deep: #0A0912;
  --surface: #18151B;
  --surface-alt: #1B171E;
  --raised: #221E26;
  --chip: #2A2430;
  --border: #2A2430;
  --border-strong: #3A343F;
  --divider: #221E26;
  --text: #F2EBDD;
  --text-2: #CFC6B8;
  --muted: #A79F93;
  --faint: #6E6673;
  --hint: #1A1622;
  --hint-border: #2E2838;
  --town: #E3B969;
  --town-on: #1A1408;
  --mafia: #C7353F;
  --mafia-text: #E0565F;
  --solo: #8C7BD6;
  --solo-text: #A595E8;
  --success: #8FD3A7;
  --night-seat: #1C1A33;
  --night-border: #2A2748;
  --felt: #13221A;
  --felt-border: #24402F;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--town); }
a:hover { color: #F2D79E; }
:focus-visible { outline: 2px solid var(--town); outline-offset: 2px; }
button { font-family: inherit; }
svg { flex-shrink: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.display { font-family: var(--display); }

/* ---------- Логотип / шапка ---------- */
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo__moon { width: 34px; height: 34px; border-radius: 50%; background: var(--town); position: relative; overflow: hidden; display: block; flex-shrink: 0; }
.logo__moon::after { content: ''; position: absolute; left: 11px; top: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--ground); }
.logo__name { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.logo--sm .logo__moon { width: 30px; height: 30px; }
.logo--sm .logo__moon::after { left: 10px; top: -5px; width: 30px; height: 30px; }
.logo--sm .logo__name { font-size: 22px; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 24px; padding-bottom: 24px; }
.site-header .logo { margin-right: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--text-2); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--text); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px; border-radius: 16px; border: 1px solid transparent;
  font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--text);
}
.btn--red { background: var(--mafia); color: #FFFFFF; }
.btn--red:hover { color: #FFFFFF; background: #D23F49; }
.btn--light { background: var(--text); color: var(--ground); }
.btn--light:hover { color: var(--ground); background: #FFF8EA; }
.btn--outline { border-color: var(--border-strong); color: var(--text); font-weight: 700; padding: 0 20px; }
.btn--outline:hover { color: var(--text); border-color: #5A5260; }
.btn--sm { height: 44px; padding: 0 16px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.btn--dark { background: #1A1408; color: var(--text); }
.btn--dark:hover { color: #FFFFFF; background: #2A2210; }
.btn--soon { cursor: default; opacity: 1; }
.btn--soon .soon {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 8px; background: rgba(0,0,0,0.18);
}
.btn--light.btn--soon .soon { background: rgba(14,12,16,0.1); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); }
.icon-btn--filled { background: var(--surface-alt); border-color: var(--surface-alt); }
.icon-btn--filled.bordered { border-color: var(--border); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow--gold { color: var(--town); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

h1, h2, h3 { margin: 0; }
.h-section { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.05; }

/* ---------- Лендинг ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__eyebrow { display: flex; align-items: center; gap: 8px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.02em; }
.hero__lead { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; overflow-x: clip; }
.art { position: relative; width: 420px; max-width: 100%; height: 480px; }
.art__moon { position: absolute; right: 0; top: 0; width: 230px; height: 230px; border-radius: 50%; background: var(--town); opacity: 0.9; }
.art__moon-cut { position: absolute; right: -40px; top: -30px; width: 230px; height: 230px; border-radius: 50%; background: var(--ground); }
.art__phone {
  position: absolute; left: 50%; top: 40px; margin-left: -125px; width: 250px; height: 430px; border-radius: 40px;
  background: var(--surface); border: 8px solid var(--chip); display: flex; flex-direction: column; padding: 22px 16px; gap: 12px;
}
.art__label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.art__card { flex-grow: 1; border-radius: 20px; background: var(--mafia); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.art__card span { font-family: var(--display); font-size: 28px; font-weight: 800; }
.art__hide { height: 44px; border-radius: 14px; background: var(--text); color: var(--ground); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.art__mini {
  position: absolute; left: 0; bottom: 30px; width: 130px; height: 180px; border-radius: 16px; background: var(--raised);
  border: 1px solid var(--border-strong); transform: rotate(-12deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--town);
}
.art__mini span { font-family: var(--display); font-size: 16px; font-weight: 700; }

.facts { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.facts .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 20px 56px; justify-content: space-between; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact b { font-family: var(--display); font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
.fact span { font-size: 14px; color: var(--muted); }

.section { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 36px; }
.section--how { padding-top: 96px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.step__n { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--town); line-height: 1; }
.step__t { font-size: 1.25rem; font-weight: 700; }
.step__d { font-size: 15px; line-height: 1.6; color: var(--muted); }

.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section__head a { font-size: 15px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.role-tile { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.role-tile__team { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.role-tile__name { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.role-tile__short { font-size: 14px; line-height: 1.5; color: var(--muted); }

.host { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.host__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.host__text p { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--text-2); }
.host__note { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 20px; border-radius: 16px; border: 1px solid var(--border-strong); font-size: 15px; font-weight: 700; }
.host__art { flex: 1 1 480px; min-width: 0; }
.tablet { aspect-ratio: 1194 / 834; border-radius: 28px; background: var(--ground-deep); border: 10px solid var(--chip); position: relative; overflow: hidden; }
.tablet__felt {
  position: absolute; left: 50%; top: 50%; width: 52%; height: 50%; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--felt); border: 2px solid var(--felt-border); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: clamp(0.9rem, 2.4vw, 1.4rem); font-weight: 700;
}
.tablet__seat {
  position: absolute; width: 12%; height: 11%; transform: translate(-50%, -50%); border-radius: 12px; background: var(--night-seat);
  border: 2px solid var(--night-border); display: flex; align-items: center; justify-content: center; font-size: clamp(10px, 1.6vw, 14px); font-weight: 800;
}
.tablet__seat--target { background: rgba(199,53,63,0.35); border-color: var(--mafia-text); }
.tablet__seat--dead { opacity: 0.4; }

.cta-block { padding-top: 24px; padding-bottom: 96px; }
.cta-block__card { border-radius: 32px; background: var(--town); color: #1A1408; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.cta-block__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-block h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.02; }
.cta-block p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.qr-open { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.qr-open input {
  width: 9.5ch; min-width: 0; height: 56px; padding: 0 16px; border-radius: 16px; border: 2px solid #1A1408; background: transparent;
  color: #1A1408; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: 0.12em; text-align: center; outline: none;
}
.qr-open input::placeholder { color: rgba(26,20,8,0.4); }
.qr-open input:focus { background: rgba(255,255,255,0.25); }
.qr-open__err { flex-basis: 100%; font-size: 14px; font-weight: 700; color: #7A1C22; min-height: 0; }
.cta-block__qr { width: 220px; max-width: 100%; padding: 16px; border-radius: 20px; background: #FFFFFF; }
.qr-box svg { display: block; width: 100%; height: auto; }

.site-footer { border-top: 1px solid var(--divider); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer .brand { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--text); margin-right: auto; text-decoration: none; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.site-footer a:hover { color: var(--text); }

/* ---------- Текстовые страницы ---------- */
.page { max-width: 760px; padding-top: 32px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.page h1 { font-family: var(--display); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.05; }
.page h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin-top: 12px; }
.page p, .page li { font-size: 1.05rem; line-height: 1.65; color: var(--text-2); }
.page p { margin: 0; }
.page ul { margin: 0; padding-left: 1.2em; }
.panel { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }

.roles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.role-full { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.role-full__head { display: flex; align-items: center; gap: 14px; }
.role-full__icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.role-full h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.role-full p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.role-full ol { margin: 0; padding-left: 1.3em; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.role-full__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Страница QR ---------- */
.qr-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.qr-page__glow { position: absolute; left: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; background: var(--town); opacity: 0.08; pointer-events: none; }
.qr-header { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 24px; padding-bottom: 24px; position: relative; }
.qr-header .logo { margin-right: auto; }
.qr-main { flex-grow: 1; width: 100%; padding-top: 24px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px 72px; position: relative; }
.qr-main__qr { flex: 0 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr-card { width: 100%; max-width: 460px; padding: clamp(18px, 3vw, 32px); border-radius: 32px; background: #FFFFFF; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.qr-card .qr-box { aspect-ratio: 1 / 1; }
.qr-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.qr-main__info { flex: 1 1 380px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 24px; }
.qr-main__info h1 { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 800; line-height: 1; }
.qr-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.qr-fact { flex: 1 1 180px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qr-fact__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.qr-fact__code { font-family: var(--display); font-size: 3rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1; }
.qr-fact__link { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; color: var(--text); text-decoration: none; }
.qr-fact__link:hover { color: var(--text); }
.seated { display: flex; flex-direction: column; gap: 12px; }
.seated__head { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.bar { height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.bar > div { height: 100%; background: var(--success); transition: width 0.4s ease; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { height: 34px; padding: 0 12px; border-radius: 10px; background: var(--raised); color: var(--text); border: 1px solid var(--raised); font-size: 14px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; }
.chip--wait { background: transparent; color: var(--faint); border-color: var(--border-strong); font-weight: 600; }
.chip--new { animation: chip-in 0.5s ease; }
@keyframes chip-in { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.qr-main__info .browser-link { align-self: flex-start; font-size: 15px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.qr-closed { padding: 16px 18px; border-radius: 16px; background: var(--hint); border: 1px solid var(--hint-border); color: var(--text-2); font-size: 15px; }
.qr-page:fullscreen .qr-main__qr { flex-basis: 560px; }
.qr-page:fullscreen .qr-card { max-width: 560px; }

/* ---------- 404 ---------- */
.nf { flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding-top: 48px; padding-bottom: 96px; max-width: 720px; }
.nf h1 { font-family: var(--display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1; }
.nf p { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--text-2); }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Игрок (веб-вход, 12/13) ---------- */
.play-body { background: var(--ground); }
.play { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 40px 20px 32px; gap: 22px; }
.play-top { display: flex; align-items: center; gap: 12px; }
.play-top__titles { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.play-top__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-top__title { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.25; }
.screen { display: flex; flex-direction: column; gap: 22px; flex-grow: 1; }
.screen--tight { gap: 18px; }
.spacer { flex-grow: 1; }

.scan-hint { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.scan-hint__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--town); color: var(--town-on); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scan-hint__t { font-size: 17px; font-weight: 700; display: block; }
.scan-hint__d { font-size: 13px; color: var(--muted); display: block; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; font-weight: 600; }
.or::before, .or::after { content: ''; flex-grow: 1; height: 1px; background: var(--border); }
.digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.digits input {
  width: 100%; height: 72px; border-radius: 16px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text);
  text-align: center; font-family: var(--display); font-size: 34px; font-weight: 700; outline: none; padding: 0; caret-color: var(--town);
}
.digits input:focus { border-color: var(--town); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  height: 56px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 17px; font-weight: 600; outline: none; width: 100%;
}
.field input:focus { border-color: var(--town); }
.form-error { padding: 12px 14px; border-radius: 14px; background: rgba(199,53,63,0.16); color: #F2B8BC; font-size: 14px; font-weight: 600; }
.cta {
  height: 58px; border-radius: 18px; border: none; background: var(--mafia); color: #FFFFFF; font-size: 17px; font-weight: 800; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.cta:disabled { opacity: 0.6; cursor: default; }
.cta--light { background: var(--text); color: var(--ground); }
.btn-secondary { height: 48px; border-radius: 14px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; }

.seat-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.seat-card__me { display: flex; align-items: center; gap: 14px; }
.seat-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--town); color: var(--town-on); font-family: var(--display); font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.seat-card__name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.seat-card__sub { font-size: 13px; color: var(--muted); }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mini-chip { height: 32px; padding: 0 10px; border-radius: 10px; background: var(--chip); color: var(--text); font-size: 13px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; }
.mini-chip--me { background: var(--town); color: var(--town-on); }
.mini-chip--wait { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--border); }
.mini-chip--dead { opacity: 0.45; text-decoration: line-through; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.card-arrived {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--mafia); color: #FFFFFF; text-decoration: none;
  position: relative; overflow: hidden; border: none; text-align: left; cursor: pointer; width: 100%; font-family: inherit;
}
.card-arrived::before { content: ''; position: absolute; right: -24px; top: -16px; width: 110px; height: 150px; border-radius: 16px; background: rgba(0,0,0,0.18); transform: rotate(14deg); }
.card-arrived__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; position: relative; }
.card-arrived__title { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.05; position: relative; }
.card-arrived__go { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; position: relative; }
.wait-card { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--border-strong); }
.wait-card__t { font-size: 16px; font-weight: 700; }
.wait-card__d { font-size: 13px; color: var(--muted); }
.hint { display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--hint); border: 1px solid var(--hint-border); }
.hint span { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.out-card { padding: 20px; border-radius: 22px; background: var(--raised); border: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 6px; }
.out-card__t { font-family: var(--display); font-size: 26px; font-weight: 800; }
.out-card__d { font-size: 14px; color: var(--text-2); line-height: 1.5; }

.role-card { position: relative; height: 330px; border-radius: 28px; overflow: hidden; }
.role-card__face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px; transition: filter 0.25s ease; }
.role-card--hidden .role-card__face { filter: blur(18px); }
.role-card__ring1 { position: absolute; right: -50px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.2; }
.role-card__ring2 { position: absolute; right: 20px; bottom: -10px; width: 150px; height: 150px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.2; }
.role-card__top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; position: relative; }
.role-card__icon { flex-grow: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.role-card__name { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; position: relative; overflow-wrap: anywhere; }
.role-card__short { font-size: 15px; font-weight: 600; margin-top: 6px; position: relative; }
.role-card__cover {
  position: absolute; inset: 0; border: none; background: rgba(14,12,16,0.55); color: var(--text); font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center;
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat__l { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__v { font-size: 15px; font-weight: 700; }
.block { display: flex; flex-direction: column; gap: 8px; }
.block h2 { font-family: var(--display); font-size: 22px; font-weight: 700; }
.block p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.steps-list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; }
.steps-list .num { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps-list .txt { font-size: 15px; line-height: 1.45; color: var(--text-2); padding-top: 3px; }
.limits { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--hint); border: 1px solid var(--hint-border); }
.limits b { font-size: 15px; }
.limits span { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.secret { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid; }
.secret--love { background: rgba(227,185,105,0.10); border-color: rgba(227,185,105,0.35); }
.secret--mafia { background: rgba(199,53,63,0.14); border-color: rgba(224,86,95,0.4); }
.secret__t { font-size: 15px; font-weight: 700; }
.secret__d { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.deck-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.deck-chip { padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.deck-chip--town { background: rgba(227,185,105,0.12); color: #F0D49B; }
.deck-chip--mafia { background: rgba(199,53,63,0.16); color: #F2B8BC; }
.deck-chip--solo { background: rgba(140,123,214,0.18); color: #CFC6F5; }
.deck-chip--healer { background: rgba(157,211,196,0.16); color: #BFE6DA; }
.deck-chip--me { outline: 1px solid currentColor; }
.seen-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bottom { display: flex; flex-direction: column; gap: 10px; }

.winner { padding: 24px; border-radius: 28px; display: flex; flex-direction: column; gap: 8px; }
.winner__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.winner__t { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1.05; }
.winner__d { font-size: 15px; font-weight: 600; }
.results { list-style: none; margin: 0; padding: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.results li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-top: 1px solid #241F28; }
.results li:first-child { border-top: none; }
.results .num { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.results .nm { flex-grow: 1; font-size: 15px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.results .rl { font-size: 13px; font-weight: 700; text-align: right; }
.results .nm__name { text-decoration: none; }
.results .dead .nm__name { text-decoration: line-through; opacity: 0.55; }
.results .you { color: var(--muted); font-weight: 600; }

@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header { gap: 8px 16px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 0 18px; font-size: 14px; }
  .hero { padding-top: 16px; gap: 32px; padding-bottom: 48px; }
  .hero__actions .btn { flex: 1 1 auto; padding: 0 18px; }
  .art { height: 420px; }
  .art__phone { height: 380px; width: 230px; margin-left: -115px; }
  .art__mini { width: 110px; height: 150px; left: -4px; bottom: 10px; }
  .section--how { padding-top: 64px; }
  .steps { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .role-tile { padding: 16px; }
  .role-tile__name { font-size: 1.3rem; }
  .roles-list { grid-template-columns: 1fr; }
  .fact b { font-size: 1.9rem; }
  .cta-block { padding-bottom: 64px; }
  .cta-block__qr { margin: 0 auto; }
  .play { padding: 28px 20px 24px; }
  .role-card__name { font-size: 40px; }
  .qr-header { padding-top: 16px; padding-bottom: 8px; }
  .qr-header .btn--sm { width: 44px; padding: 0; }
  .qr-header .btn--sm .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .qr-fact__code { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Девиз мафии на экране победы */
.winner__motto { display: block; margin-top: 10px; font-family: var(--display); font-size: 22px; font-weight: 800; font-style: italic; line-height: 1.2; }

/* Логотип «Висбаденская мафия» (wiesbaden-mafia-logo) */
.logo__img { display: block; height: 64px; width: auto; }
.logo--sm .logo__img { height: 48px; }
@media (max-width: 480px) { .logo__img { height: 42px; } .logo--sm .logo__img { height: 36px; } }
