/* SHENTUM · онлайн — нотариальный нуар: чернила, пергамент, сургуч, янтарные искры. */
:root {
  --ink: #111219; --ink2: #1A1B24; --ink3: #23242F; --line: #2C2D38;
  --paper: #EEE7D9; --paper2: #F7F2E8; --paperline: #D8CFBE;
  --text: #CFC8BA; --muted: #8F8A80; --head: #F3EDE2;
  --red: #B23A2C; --red2: #E07A6C; --amber: #F0B23E;
  --h: 'Unbounded', Arial, sans-serif; --b: 'Manrope', Arial, sans-serif; --m: 'JetBrains Mono', 'Courier New', monospace;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--b); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
a { color: var(--amber); }
h1, h2, h3, h4 { font-family: var(--h); color: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 26px; } h3 { font-size: 20px; } h4 { font-size: 14px; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--m); font-weight: 600; }
p { margin: 0 0 .8em; }
.boot, .center-msg { padding: 40vh 20px; text-align: center; color: var(--muted); font-family: var(--m); }
.eyebrow { font-family: var(--m); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.eyebrow.red, .red { color: var(--red2) !important; }
.amber { color: var(--amber) !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.pill { display: inline-block; font-family: var(--m); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); margin: 2px 4px 2px 0; }
.pill.red { border-color: var(--red); color: var(--red2); } .pill.amber { border-color: var(--amber); color: var(--amber); }

/* Кнопки */
.btn { font-family: var(--b); font-weight: 800; font-size: 16px; border: 1px solid var(--line); background: var(--ink3); color: var(--head); padding: 12px 18px; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; touch-action: manipulation; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-red { background: var(--red); color: #F6EFE3; border-color: var(--red); }
.btn-ghost { background: transparent; }
.btn.wide { width: 100%; margin: 10px 0; } .btn.big { padding: 16px; font-size: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip { font-family: var(--b); font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink2); color: var(--text); cursor: pointer; touch-action: manipulation; }
.chip.small { padding: 6px 10px; font-size: 13px; }
.chip.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip:disabled { opacity: .35; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ink2); }
.stepper button { width: 42px; height: 40px; border: 0; background: transparent; color: var(--head); font-size: 22px; cursor: pointer; touch-action: manipulation; }
.stepper b { min-width: 34px; text-align: center; font-family: var(--m); color: var(--head); }
select { font: inherit; background: var(--ink2); color: var(--head); border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-width: 100%; }
input { font: inherit; }

/* Тосты */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 50; width: min(520px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--ink3); border: 1px solid var(--line); color: var(--head); padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: opacity .4s, transform .4s; font-size: 15px; }
.toast.out { opacity: 0; transform: translateY(10px); }
.toast-error { border-color: var(--red); }
.toast-seal { border-color: var(--amber); }
.toast-betrayal { background: var(--red); border-color: var(--red); color: #F6EFE3; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.toast-betrayal b { font-family: var(--h); font-size: 18px; }

/* Главная */
.home { background: var(--ink); }
.hero { position: relative; overflow: hidden; padding: 64px 20px 56px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 85% 120%, rgba(240,178,62,.16), transparent 55%), var(--ink); }
.hero-inner { max-width: 1040px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(72px, 16vw, 168px); font-weight: 800; letter-spacing: -.04em; margin: 0; line-height: .95; }
.tagline { font-size: clamp(22px, 4vw, 38px); font-weight: 500; color: var(--text); margin: 18px 0; line-height: 1.2; }
.lead { font-size: 18px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--m); color: var(--muted); font-size: 14px; }
.facts b { font-family: var(--h); color: var(--head); font-size: 22px; margin-right: 6px; }
.hero-seal { position: absolute; right: -40px; top: 40px; width: 300px; height: 300px; border-radius: 50%; background: var(--red); opacity: .9;
  box-shadow: inset 0 0 0 18px #9b3125, inset 0 0 0 22px #c95a4c, 0 0 90px rgba(178,58,44,.35); transform: rotate(-10deg);
  border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%; }
.hero-seal svg { position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--paper); filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
@media (max-width: 760px) { .hero-seal { width: 170px; height: 170px; right: -50px; top: 20px; opacity: .55; } }
.sec { max-width: 1040px; margin: 0 auto; padding: 48px 20px 8px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 12px; }
.card p { margin: 0; }
.card .num { font-family: var(--h); font-size: 36px; color: var(--amber); font-weight: 800; line-height: 1; margin-bottom: 10px; }
.card.center { text-align: center; } .card.win { border-color: var(--amber); }
.mode { position: relative; }
.mode .badge { position: absolute; top: 16px; right: 16px; font-family: var(--m); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; background: var(--ink3); color: var(--muted); }
.mode.on { border-color: var(--amber); } .mode.on .badge { background: var(--amber); color: var(--ink); }
.mode.soon { opacity: .72; } .mode h3 { padding-right: 90px; }
.rules60 { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.rules60 li { counter-increment: r; position: relative; padding-left: 52px; font-size: 18px; color: var(--head); }
.rules60 li::before { content: counter(r); position: absolute; left: 0; top: -4px; font-family: var(--h); font-weight: 800; font-size: 34px; color: var(--red2); }
.worlds { display: grid; gap: 10px; }
.world { display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink2); opacity: .7; }
.world.on { opacity: 1; border-color: var(--amber); }
.world b { font-family: var(--h); color: var(--head); } .world span { color: var(--muted); font-size: 14px; } .world em { font-family: var(--m); font-style: normal; font-size: 12px; color: var(--amber); }
@media (max-width: 640px) { .world { grid-template-columns: 1fr auto; } .world span { grid-column: 1 / -1; grid-row: 2; } }
.foot { max-width: 1040px; margin: 40px auto 0; padding: 30px 20px 60px; color: var(--muted); font-family: var(--m); font-size: 13px; border-top: 1px solid var(--line); }
.join-card { display: grid; gap: 14px; max-width: 520px; background: var(--paper); color: var(--ink); padding: 22px; border-radius: var(--r); }
.join-card label { display: grid; gap: 6px; font-family: var(--m); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #6B6458; }
.join-card input { font-size: 20px; padding: 12px 14px; border: 1px solid var(--paperline); border-radius: 10px; background: var(--paper2); color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--b); }
.join-card input[name=code] { text-transform: uppercase; font-family: var(--m); letter-spacing: .3em; }
.joinpage .join-wrap { max-width: 460px; margin: 0 auto; padding: 18vh 20px 40px; }
.logo { font-size: 64px; font-weight: 800; margin: 0; }
.code { font-family: var(--m); color: var(--amber); letter-spacing: .2em; }

/* Город и кризис */
.systems { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.sys { background: var(--ink2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; }
.sys.hit { border-color: var(--red); background: #24181A; }
.sys.dark { opacity: .55; background: #0c0d12; }
.sys-top { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--head); white-space: nowrap; overflow: hidden; }
.sys-top b { overflow: hidden; text-overflow: ellipsis; }
.sys-ico { color: var(--amber); }
.sys-note { font-family: var(--m); font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.sys.hit .sys-note { color: var(--red2); }
.segs { display: flex; gap: 4px; margin-top: 8px; }
.segs i { flex: 1; height: 7px; border-radius: 4px; background: #33343f; min-width: 10px; }
.segs i.on { background: var(--amber); }
.segs.big i { height: 12px; }
td .segs { display: inline-flex; width: 64px; margin: 0 0 0 8px; vertical-align: middle; }
@media (max-width: 520px) { .systems:not(.big) { grid-template-columns: repeat(5, 1fr); gap: 5px; } .systems:not(.big) .sys { padding: 7px 6px; } .systems:not(.big) .sys-note { display: none; } .sys-top { font-size: 11px; } .sys-ico { display: none; } }
.crisis, .result, .hearing, .center-card { background: var(--paper); color: #45434A; border-radius: var(--r); padding: 20px; margin: 10px 0; }
.crisis h3, .result h3, .hearing h3, .center-card h2 { color: #16161D; }
.crisis .eyebrow, .result .eyebrow, .hearing .eyebrow, .center-card .eyebrow { color: var(--red); }
.crisis .pill { border-color: var(--red); color: var(--red); }
.crisis .muted, .result .muted, .hearing .muted, .center-card .muted { color: #6B6458; }
.attacks { margin: 6px 0 12px; }
.dilemma { display: grid; gap: 10px; }
.opt { border-top: 2px solid #16161D; padding-top: 8px; display: grid; gap: 2px; }
.opt b { color: #16161D; } .opt span { font-size: 15px; }
.crisis.compact { padding: 14px; } .crisis.compact h3 { font-size: 17px; }
.rtable { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.rtable th, .rtable td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--paperline); }
.rtable th { font-family: var(--m); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6B6458; font-weight: 600; }
.rtable tr.dark td { color: #9a948a; }
.events { margin: 6px 0; padding-left: 18px; } .events li { margin: 3px 0; color: #16161D; }
.result .segs i { background: #d5ccbb; } .result .segs i.on { background: var(--red); }
.hearing .big-line { font-family: var(--h); font-size: 20px; color: #16161D; }
.dossier { display: grid; gap: 6px; background: var(--paper2); border: 1px solid var(--paperline); border-radius: 12px; padding: 12px; margin: 8px 0; }
.dossier div { display: flex; justify-content: space-between; gap: 10px; } .dossier span { color: #6B6458; font-family: var(--m); font-size: 12px; text-transform: uppercase; } .dossier b { color: #16161D; text-align: right; }
.hearing .red { color: var(--red) !important; }

/* Хроника и пакты */
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.log li { border-left: 2px solid var(--line); padding-left: 10px; }
.log-big { color: var(--head); border-color: var(--amber) !important; }
.log-betrayal { color: var(--red2); border-color: var(--red) !important; }
.log-pact { border-color: var(--amber) !important; }
.ppact { font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.ppact.broken { border-color: var(--red); } .ppact.kept { border-color: var(--amber); }
.ppact .st { font-family: var(--m); font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

/* Табло */
.boardpage { overflow-x: hidden; }
.topbar { display: flex; gap: 20px; align-items: center; padding: 14px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-family: var(--h); font-weight: 800; color: var(--head); font-size: 22px; } .brand span { color: var(--muted); font-weight: 500; font-size: 16px; }
.room { font-family: var(--m); color: var(--muted); } .room b { color: var(--amber); letter-spacing: .2em; }
.phase { font-family: var(--h); color: var(--head); font-size: 20px; flex: 1; }
.timer { font-family: var(--m); color: var(--amber); margin-left: 10px; font-weight: 700; }
.timer.urgent { color: var(--red2); }
.controls { display: flex; gap: 10px; }
.board { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 20px 28px; }
.b-main { min-width: 0; }
.b-center { max-width: 980px; }
.board .crisis, .board .result, .board .hearing, .board .center-card { padding: 28px 32px; }
.board .crisis h3, .board .result h3, .board .hearing h3 { font-size: 34px; }
.board .dilemma { grid-template-columns: 1fr 1fr; gap: 24px; } .board .opt span { font-size: 18px; } .board .opt b { font-size: 20px; }
.board .rtable { font-size: 17px; }
.systems.big .sys { padding: 16px; } .systems.big .sys-top { font-size: 18px; } .systems.big .sys-note { font-size: 13px; }
.hint-line { font-family: var(--m); color: var(--muted); margin-top: 12px; } .hint-line b { color: var(--amber); }
.b-side h4:first-child { margin-top: 0; }
.players { display: grid; gap: 6px; }
.pl { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; padding: 8px 10px; background: var(--ink2); border-radius: 10px; border: 1px solid var(--line); }
.pl-name { color: var(--head); font-weight: 700; } .pl-role { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--muted); font-family: var(--m); }
.pl-seals { font-family: var(--m); color: var(--amber); display: inline-flex; align-items: center; gap: 4px; }
.pl-ready { font-family: var(--m); font-size: 12px; color: var(--muted); } .pl-ready.yes { color: var(--amber); }
.seal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 2px #8a2a20; }
.lobby { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 40px 48px; align-items: start; }
.big-code { font-family: var(--m); font-weight: 700; font-size: clamp(64px, 9vw, 128px); letter-spacing: .18em; color: var(--amber); line-height: 1; margin: 10px 0 18px; }
.link { color: var(--head); font-family: var(--m); }
.qr img { width: 260px; height: 260px; border-radius: 16px; display: block; margin: 16px 0; }
.seats { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.seat { background: var(--paper); color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 999px; font-size: 18px; display: inline-flex; gap: 8px; align-items: center; }
.seat.me { background: var(--amber); }
.seat.bot { background: var(--ink3); color: var(--head); border: 1px dashed var(--muted); }
.seat.bot .x { color: var(--muted); }
.bot-add { margin: 18px 0 6px; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; }
.bot-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.bot-btns .btn { flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding: 12px 14px; }
.bot-btns .btn span { font-weight: 500; font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) { .bot-btns { grid-template-columns: 1fr; } }
.seat .x { border: 0; background: transparent; color: #6B6458; font-size: 18px; cursor: pointer; padding: 0 2px; }
.rules-mini { margin-top: 24px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; }
.reveal-wrap { padding: 30px 48px; }
@media (max-width: 1000px) { .board { grid-template-columns: 1fr; } .lobby { grid-template-columns: 1fr; padding: 24px; } .board .dilemma { grid-template-columns: 1fr; } }

/* Вскрытие */
.stage { background: radial-gradient(circle at 50% 0%, rgba(178,58,44,.18), transparent 60%), var(--ink2); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; text-align: center; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 10px 0; }
.stage-big { font-family: var(--h); font-size: clamp(30px, 6vw, 72px); font-weight: 800; color: var(--head); line-height: 1.05; }
.stage-mid { font-family: var(--h); font-size: clamp(18px, 3vw, 32px); color: var(--head); }
.stage-terms { font-size: clamp(16px, 2.2vw, 24px); max-width: 900px; }
.stage-progress { font-family: var(--m); color: var(--muted); font-size: 12px; margin-top: 12px; }
.kept-list { display: flex; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.titles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; width: 100%; max-width: 1000px; margin: 14px 0; }
.title-card { background: var(--ink3); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.title-card b { font-family: var(--h); color: var(--amber); } .title-card span { color: var(--head); font-weight: 700; } .title-card small { color: var(--muted); }
.rtable.final { max-width: 1000px; color: var(--text); } .rtable.final th, .rtable.final td { border-color: var(--line); } .rtable.final th { color: var(--muted); }
.stage .systems { width: 100%; max-width: 900px; }

/* Телефон игрока */
.playpage { padding-bottom: 76px; }
.phead { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 10px 14px; background: rgba(17,18,25,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.ph-left { display: grid; line-height: 1.2; min-width: 0; } .ph-left b { color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ph-left span { font-size: 12px; color: var(--amber); font-family: var(--m); }
.ph-mid { font-family: var(--m); font-size: 12px; color: var(--muted); text-align: center; }
.ph-mid .timer { display: block; font-size: 18px; margin: 0; }
.ph-right { display: flex; gap: 10px; justify-content: flex-end; align-items: center; font-family: var(--m); }
.sparks { color: var(--amber); font-weight: 700; font-size: 18px; display: grid; text-align: right; line-height: 1.1; } .sparks small { font-size: 10px; color: var(--muted); font-weight: 400; }
.seals { display: inline-flex; gap: 4px; align-items: center; color: var(--head); }
.pbody { max-width: 640px; margin: 0 auto; padding: 12px 14px 20px; }
.hint { font-family: var(--m); font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ink2); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { background: transparent; border: 0; color: var(--muted); font-family: var(--b); font-weight: 800; font-size: 13px; padding: 16px 2px; cursor: pointer; position: relative; }
.tabs button.on { color: var(--amber); box-shadow: inset 0 3px 0 var(--amber); }
.dot { font-style: normal; background: var(--red); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.banner { padding: 10px 14px; font-weight: 700; text-align: center; border-radius: 12px; margin: 8px 0; }
.banner.red { background: var(--red); color: #F6EFE3; border-radius: 0; margin: 0; }
.banner.amber { background: rgba(240,178,62,.12); color: var(--amber); border: 1px solid var(--amber); }
.role-card { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 10px 0; }
.role-card p { margin: 6px 0 0; font-size: 15px; }
.motive-card { background: var(--ink2); border: 2px dashed var(--line); border-radius: var(--r); padding: 16px; margin: 10px 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; cursor: pointer; }
.motive-card.shown { border-style: solid; border-color: var(--amber); background: #1e1a12; }
.veil { font-family: var(--m); color: #3a3b47; font-size: 22px; letter-spacing: .1em; }
.motive-option { background: var(--paper); color: #45434A; border-radius: var(--r); padding: 16px; margin: 10px 0; }
.motive-option h3 { color: #16161D; } .motive-option .pill { border-color: var(--paperline); color: #6B6458; } .motive-option .pill.amber { border-color: #b7832a; color: #8a5f12; }
.motive-option .muted { color: #6B6458; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.stats div { background: var(--ink2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; }
.stats b { font-family: var(--h); font-size: 22px; color: var(--head); } .stats span { font-size: 12px; color: var(--muted); }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.notes li { padding: 8px 10px; background: var(--ink2); border-radius: 10px; border-left: 3px solid var(--line); }
.note-betrayal { border-color: var(--red) !important; color: var(--head); } .note-crack { border-color: var(--red2) !important; }
.note-seal { border-color: var(--amber) !important; } .note-secret { border-color: #8b7cf6 !important; } .note-offer, .note-gift { border-color: var(--head) !important; }
.abilities { display: grid; gap: 8px; margin: 12px 0; }
.ability { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink2); }
.ability b { color: var(--amber); font-family: var(--h); font-size: 15px; } .ability span { font-size: 14px; }
.gift { margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink2); }
.gift summary { cursor: pointer; font-weight: 800; color: var(--head); }
.pact { background: var(--paper); color: #45434A; border-radius: 14px; padding: 14px; margin: 10px 0; }
.pact-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.pact-head b { font-family: var(--h); color: #16161D; } .pact-head span { font-family: var(--m); font-size: 12px; color: #6B6458; }
.pact-row { display: grid; grid-template-columns: 120px 1fr; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--paperline); font-size: 15px; }
.pact-row span { font-family: var(--m); font-size: 11px; text-transform: uppercase; color: #6B6458; padding-top: 3px; }
.pact-row b { color: #16161D; } .pact-row em { grid-column: 2; font-style: normal; font-size: 13px; color: var(--red); }
.pact-foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pact .st { font-family: var(--m); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6B6458; }
.pact .st.kept { color: #8a5f12; } .pact .st.broken { color: var(--red); } .pact .st.signed { color: #16161D; }
.pact.broken { box-shadow: inset 4px 0 0 var(--red); } .pact.kept { box-shadow: inset 4px 0 0 var(--amber); }
.pact.declined, .pact.expired, .pact.withdrawn, .pact.annulled { opacity: .6; }
.pact .btn-ghost { color: #16161D; border-color: var(--paperline); }
.pact .pill { border-color: var(--red); color: var(--red); }
.composer { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 12px 0; }
.lbl { font-family: var(--m); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 12px 0 6px; }
.lbl b { font-size: 14px; }
.terms { border-top: 1px solid var(--line); margin-top: 10px; }
.promise { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.ptoggle { font-family: var(--b); font-weight: 800; font-size: 15px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--muted); background: transparent; color: var(--text); cursor: pointer; }
.promise.on .ptoggle { background: var(--amber); color: var(--ink); border: 1px solid var(--amber); }
.pdetail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pdetail .chips { margin: 0; }
.coll span { font-size: 14px; color: var(--muted); }
.preview { margin: 14px 0 4px; padding: 10px 12px; background: var(--ink); border-radius: 10px; font-size: 14px; color: var(--head); border-left: 3px solid var(--amber); }
.sm-block { background: var(--ink2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.sm-block .lbl { margin-top: 0; }
.sm-block.shadow { border-color: var(--red); }
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.abtn { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; color: var(--text); cursor: pointer; display: grid; gap: 4px; text-align: center; font-family: var(--b); touch-action: manipulation; }
.abtn b { font-family: var(--h); font-size: 28px; color: var(--head); } .abtn span { font-size: 13px; }
.abtn.on { background: var(--paper); border-color: var(--paper); } .abtn.on b, .abtn.on span { color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 10px; color: var(--head); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); }
.alloc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.alloc span { color: var(--head); font-weight: 700; } .alloc em { font-style: normal; font-family: var(--m); font-size: 12px; font-weight: 400; }
.alloc.dark span { color: var(--muted); font-weight: 400; }
details summary { cursor: pointer; color: var(--head); font-weight: 700; padding: 8px 0; }
.promise-check { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.promise-check b { font-family: var(--m); font-size: 12px; text-transform: uppercase; min-width: 84px; }
.promise-check.ok b { color: var(--amber); } .promise-check.bad b { color: var(--red2); }

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.crisis > p.small { margin: 14px 0 0; }
@media (max-width: 520px) { .rtable.final { font-size: 13px; } .rtable.final th, .rtable.final td { padding: 6px 4px; } .stage { padding: 22px 12px; } }
@media (max-width: 520px) { .rtable.final th:nth-child(4), .rtable.final td:nth-child(4), .rtable.final th:nth-child(5), .rtable.final td:nth-child(5) { display: none; } }

/* ---------- объяснения для новичков ---------- */
.guide { background: rgba(240,178,62,.07); border: 1px solid rgba(240,178,62,.35); border-radius: 14px; padding: 14px 16px; margin: 6px 0 12px; }
.guide p { margin: 6px 0; }
.guide ol, .guide ul, .more-body ol, .more-body ul, .intro-card ul, .rules ul { margin: 6px 0 8px; padding-left: 22px; }
.guide li, .more-body li, .intro-card li { margin: 4px 0; }
.g-title { font-family: var(--h); font-weight: 800; color: var(--amber); font-size: 17px; }
.g-lbl { font-family: var(--m); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 10px 0 2px; }
.motive-option .g-lbl { color: #6B6458; }
details.more { margin: 8px 0; border-top: 1px dashed var(--line); padding-top: 6px; }
details.more > summary { cursor: pointer; font-weight: 800; color: var(--amber); padding: 6px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '＋ '; }
details.more[open] > summary::before { content: '− '; }
.motive-option details.more { border-top-color: var(--paperline); }
.motive-option details.more > summary { color: #8a5f12; }
.more-body { font-size: 15px; }
.more-body p { margin: 6px 0; }
.tipline { background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.motive-option .tipline { background: rgba(0,0,0,.05); }
.step { font-family: var(--m); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 8px 0 6px; text-align: center; }
.intro-card { background: var(--ink2); border: 1px solid var(--amber); border-radius: var(--r); padding: 18px; margin: 6px 0 12px; }
.intro-card h2 { margin: 4px 0 8px; font-size: 28px; color: var(--head); }
.intro-card p { margin: 6px 0; }
.intro-card .lead { font-size: 17px; color: var(--head); }
.power { display: inline-block; font-weight: 800; color: var(--ink); background: var(--amber); border-radius: 999px; padding: 6px 14px; margin: 6px 0 4px; }
.rules h3 { margin: 22px 0 6px; color: var(--head); }
.rules p { margin: 6px 0; }
.rules .steps li { margin: 6px 0; }
.gloss { margin: 6px 0; } .gloss dt { font-weight: 800; color: var(--head); margin-top: 10px; } .gloss dd { margin: 2px 0 0; }
.sysguide { display: grid; gap: 8px; margin: 8px 0; }
.sysguide div { background: var(--ink2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.sysguide b { color: var(--head); } .sysguide span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.check.tips { margin: 12px 0; }
.bguide { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(240,178,62,.08); border: 1px solid rgba(240,178,62,.3); font-size: 18px; color: var(--head); }
.bguide span { color: var(--muted); margin-left: 6px; }
.bguide em { display: block; font-style: normal; font-family: var(--m); font-size: 14px; color: var(--amber); margin-top: 6px; }
.btn.tgl { font-size: 14px; } .btn.tgl.on { border-color: var(--amber); color: var(--amber); }
.rules-mini { font-size: 15px; line-height: 1.5; }

/* ---------- наглядность: полоски прочности, объекты, схемы ---------- */
.bars { display: inline-flex; gap: 4px; vertical-align: middle; }
.bars i { width: 22px; height: 9px; border-radius: 3px; background: #33343f; position: relative; }
.bars.big i { width: 34px; height: 13px; border-radius: 4px; }
.bars i.on { background: var(--amber); box-shadow: 0 0 10px rgba(240,178,62,.35); }
.bars i.gain { background: #5FC08A; box-shadow: 0 0 12px rgba(95,192,138,.55); animation: gain 1.4s ease-out; }
/* потерянное деление: пустое, с красной пунктирной рамкой (при появлении коротко вспыхивает) */
.bars i.lost { --empty: #33343f; background: var(--empty); outline: 2px dashed var(--red2); outline-offset: -2px; animation: lose 1.4s ease-in; }
@keyframes lose { 0% { background: var(--red2); transform: scale(1.25); box-shadow: 0 0 16px var(--red2); } 50% { background: var(--red2); transform: scale(1); } 100% { background: var(--empty); box-shadow: none; } }
@keyframes gain { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); } }
.crisis .bars i, .result .bars i, .motive-option .bars i, .center-card .bars i { background: #d6ccb9; }
.crisis .bars i.on, .result .bars i.on { background: #e0a22b; box-shadow: none; }
.result .bars i.gain { background: #3f9e6a; } .crisis .bars i.lost, .result .bars i.lost, .demo .bars i.lost, .tc-art .paper .bars i.lost { --empty: #d6ccb9; outline-color: var(--red); }

.sys .bars { display: flex; margin-top: 8px; } .sys .bars i { flex: 1; width: auto; min-width: 8px; }
.sys-state { font-family: var(--m); font-size: 11px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.sys.hit .sys-state { color: var(--red2); }
.sys-price { font-weight: 800; color: var(--head); font-size: 14px; margin-top: 2px; }
.systems.big .sys-price { font-size: 18px; } .systems.big .sys-state { font-size: 13px; }
@media (max-width: 520px) { .systems:not(.big) .sys-state { font-size: 9px; letter-spacing: 0; } .systems:not(.big) .sys-price { font-size: 12px; } }

.atk-lbl { font-family: var(--m); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #6B6458; margin: 12px 0 6px; }
.attacks { display: grid; gap: 6px; margin: 4px 0 6px; }
.atk { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: rgba(178,58,44,.08); border: 1px solid rgba(178,58,44,.35); border-radius: 10px; padding: 8px 12px; }
.atk-name { color: #16161D; font-weight: 800; } .atk b { color: var(--red); white-space: nowrap; }
.board .atk { padding: 12px 16px; font-size: 20px; } .board .atk-lbl { font-size: 14px; }

.res-list { display: grid; gap: 6px; margin: 12px 0; }
.res-row { display: grid; grid-template-columns: 130px auto 34px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.035); }
.res-row.down { background: rgba(178,58,44,.09); } .res-row.up { background: rgba(63,158,106,.12); } .res-row.dead { opacity: .75; }
.rr-name { color: #16161D; white-space: nowrap; }
.rr-delta { font-family: var(--h); font-weight: 800; font-size: 18px; text-align: center; color: #6B6458; }
.res-row.down .rr-delta { color: var(--red); } .res-row.up .rr-delta { color: #3f9e6a; }
.rr-why { font-size: 14px; color: #45434A; } .rr-why b { color: var(--red); }
.board .res-row { grid-template-columns: 190px auto 48px 1fr; padding: 12px 16px; } .board .rr-why { font-size: 17px; } .board .rr-delta { font-size: 24px; }
@media (max-width: 520px) { .res-row { grid-template-columns: 1fr auto 30px; } .rr-why { grid-column: 1 / -1; font-size: 13px; } .res-row .bars.big i { width: 24px; } }

.alloc .al-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.alloc .al-name em { flex-basis: 100%; color: var(--muted); }
.alloc .al-name em.red { color: var(--red2); }
.alloc .bars i { width: 14px; height: 7px; }

/* правила */
.rules .r-sec { margin: 6px 0 22px; }
.rules .r-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 21px; }
.r-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--ink); font-family: var(--h); font-size: 15px; font-weight: 800; }
.obj-grid { display: grid; gap: 10px; }
.obj { background: var(--ink2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.obj-head { display: flex; align-items: center; gap: 10px; } .obj-head b { color: var(--head); font-size: 18px; }
.obj-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(240,178,62,.14); color: var(--amber); font-size: 18px; }
.obj-what { color: var(--text); font-size: 15px; }
.obj-dark { margin: 2px 0 0; font-size: 14px; color: var(--red2); border-left: 3px solid var(--red); padding-left: 10px; }
.obj-grid.compact .obj-what { display: none; }
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.state { background: var(--ink2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 13px; color: var(--head); }
.state .bars.big i { width: 18px; }
.state.s0 { border-color: var(--red); color: var(--red2); } .state.s1 { border-color: rgba(224,122,108,.5); }
.doom { display: flex; align-items: center; gap: 14px; background: rgba(178,58,44,.12); border: 1px solid var(--red); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.doom > div { display: grid; gap: 6px; } .doom b { color: var(--head); }
.demo { background: var(--paper); color: #45434A; border-radius: 14px; padding: 12px 14px; margin: 10px 0; display: grid; gap: 8px; }
.demo-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #16161D; padding-bottom: 6px; border-bottom: 1px solid var(--paperline); }
.demo-head .price { background: var(--red); color: #F6EFE3; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.demo-row { display: grid; grid-template-columns: 1fr 18px 1.3fr; gap: 8px; align-items: center; }
.demo-inv { font-size: 12px; color: #6B6458; line-height: 1.3; } .demo-inv b { font-size: 18px; color: #16161D; }
.demo-arrow { color: #6B6458; font-weight: 800; }
.demo-res { display: grid; gap: 4px; font-size: 13px; color: #16161D; }
.demo .bars i { background: #d6ccb9; } .demo .bars i.on { background: #e0a22b; box-shadow: none; } .demo .bars i.gain { background: #3f9e6a; } .demo .bars i.lost { animation: none; }
.demo .bars.big i { width: 26px; }
.demo-row.bad .demo-res span { color: var(--red); } .demo-row.good .demo-res span { color: #2f7d52; } .demo-row.ok .demo-res span { color: #8a5f12; }
.coins { display: block; letter-spacing: -3px; color: #e0a22b; font-size: 12px; margin-top: 2px; } .coins i { font-style: normal; }
.kinds { display: grid; gap: 10px; margin: 8px 0; }
.kind { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--ink2); }
.kind b { font-size: 18px; color: var(--head); } .kind p { margin: 4px 0 0; font-size: 15px; }
.kind-ico { float: right; font-size: 26px; line-height: 1; }
.kind.civil { border-color: rgba(240,178,62,.6); } .kind.solo { border-color: #4F7FA8; } .kind.shadow { border-color: var(--red); background: linear-gradient(135deg, #24181A, var(--ink2)); }
.motive-option .kind { background: rgba(0,0,0,.04); border-color: var(--paperline); } .motive-option .kind b { color: #16161D; } .motive-option .kind.shadow { background: rgba(178,58,44,.08); }
.timeline { display: grid; gap: 0; margin: 8px 0; }
.tl { display: grid; grid-template-columns: 40px 1fr; gap: 12px; position: relative; padding-bottom: 12px; }
.tl:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--ink3); border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; }
.tl b { color: var(--head); } .tl p { margin: 2px 0 0; font-size: 15px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.oc { border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; font-size: 14px; }
.oc.good { background: rgba(240,178,62,.12); border: 1px solid var(--amber); } .oc.good b { color: var(--amber); }
.oc.bad { background: rgba(178,58,44,.12); border: 1px solid var(--red); } .oc.bad b { color: var(--red2); }
.demo-pact { margin: 8px 0; }

/* табло: лобби с объяснением */
.board-intro { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding: 0 48px 48px; }
.board-intro p { font-size: 16px; }
.bi-story p { font-size: 17px; line-height: 1.55; margin: 0 0 10px; }
@media (max-width: 1100px) { .board-intro { grid-template-columns: 1fr; } }

/* кто есть кто */
.layers { display: grid; gap: 8px; margin: 8px 0; }
.layer { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--ink2); }
.layer p { margin: 4px 0 6px; font-size: 15px; }
.layer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.layer-head b { font-size: 18px; color: var(--head); }
.layer-head span { font-family: var(--m); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.layer.role { border-color: var(--amber); } .layer.role .layer-head span { background: var(--amber); color: var(--ink); }
.layer.motive { border-color: var(--red); background: linear-gradient(135deg, #22171a, var(--ink2)); } .layer.motive .layer-head span { background: var(--red); color: #F6EFE3; }
.layer.bot { border-style: dashed; border-color: var(--muted); } .layer.bot .layer-head span { border: 1px dashed var(--muted); color: var(--muted); }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchips span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--ink3); color: var(--head); }
.example { background: rgba(240,178,62,.07); border-left: 3px solid var(--amber); padding: 10px 12px; border-radius: 0 10px 10px 0; font-size: 15px; }
.roles-list { display: grid; gap: 8px; margin: 8px 0; }
.rl { background: var(--ink2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rl.in { border-color: rgba(240,178,62,.5); } .rl.out { opacity: .55; }
.rl-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rl-head b { color: var(--head); font-size: 16px; } .rl-head span { color: var(--amber); font-weight: 700; font-size: 14px; }
.rl-head em { font-style: normal; font-family: var(--m); font-size: 11px; color: var(--muted); margin-left: auto; }
.rl p { margin: 4px 0 0; font-size: 14px; }
.bot-types { display: grid; gap: 8px; margin: 8px 0; }
.bot-types div { border: 1px dashed var(--muted); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.bot-types b { color: var(--head); } .bot-types span { font-size: 14px; }
.board-intro .bi-wide { grid-column: 2 / -1; }
.board-intro .roles-list { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .board-intro .bi-wide { grid-column: auto; } .board-intro .roles-list { grid-template-columns: 1fr; } }

/* ---------- фигурки, медальоны, печати ---------- */
.ic { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; vertical-align: -0.3em; flex: none; }
.ic svg, .medal svg, .stamp svg { width: 100%; height: 100%; display: block; }
.ic .f { fill: currentColor; fill-opacity: .18; }
.medal { --c: var(--head); --acc: rgba(240,178,62,.3); display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink3); border: 2px solid var(--amber); color: var(--c); padding: 7px; }
.medal .f { fill: var(--acc); }
.medal.xs { width: 30px; height: 30px; padding: 3px; border-width: 1.5px; }
.medal.sm { width: 42px; height: 42px; padding: 5px; }
.medal.lg { width: 78px; height: 78px; padding: 10px; border-width: 2.5px; }
.medal.role { background: radial-gradient(circle at 50% 35%, #2c2d3a, var(--ink3)); }
.medal.obj { border-color: #4a4b58; --acc: rgba(240,178,62,.22); }
.medal.concept { border-color: var(--amber); color: var(--amber); --acc: rgba(240,178,62,.18); }
.medal.bot { border: 2px dashed var(--muted); color: #C9D6E2; --acc: rgba(201,214,226,.14); }
.medal.shadow { border-color: var(--red); color: var(--red2); --acc: rgba(224,122,108,.2); background: #1d1418; }
.stamp { --k: var(--amber); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 96px; height: 96px; border-radius: 50%; border: 3px double var(--k); color: var(--k); transform: rotate(-7deg); flex: none; }
.stamp svg { width: 46%; height: 46%; } .stamp .f { fill: var(--k); fill-opacity: .2; }
.stamp b { font-family: var(--h); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.stamp.solo { --k: #7FA7CF; } .stamp.shadow { --k: var(--red2); }
.stamp.sm { width: 64px; height: 64px; border-width: 2.5px; } .stamp.sm b { font-size: 7.5px; }
.stamp.lg { width: 116px; height: 116px; } .stamp.lg b { font-size: 12px; }
.stamp.xs { flex-direction: row; width: auto; height: auto; border-radius: 999px; border-width: 1.5px; border-style: solid; padding: 3px 10px 3px 4px; transform: none; gap: 6px; }
.stamp.xs svg { width: 22px; height: 22px; } .stamp.xs b { font-size: 11px; letter-spacing: 0; text-transform: none; font-family: var(--b); font-weight: 800; }
/* на пергаменте — тёмная линия */
.crisis .ic, .result .ic, .motive-option .ic { color: #16161D; }
.motive-option .stamp.civil { --k: #a06d12; } .motive-option .stamp.solo { --k: #3f6f9c; } .motive-option .stamp.shadow { --k: var(--red); }

/* где живут фигурки */
.sys-top .ic { width: 18px; height: 18px; color: var(--amber); }
.systems.big .sys-top .ic { width: 24px; height: 24px; }
.atk-name, .rr-name { display: inline-flex; align-items: center; gap: 6px; }
.al-name .ic { color: var(--amber); }
.seat .ic { width: 22px; height: 22px; color: #C9D6E2; }
.pl { display: flex !important; align-items: center; gap: 10px; }
.pl-who { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pl-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.botchip { display: inline-flex; align-items: center; gap: 3px; font-family: var(--m); font-size: 11px; color: #C9D6E2; border: 1px dashed var(--muted); border-radius: 999px; padding: 1px 8px 1px 3px; }
.botchip .ic { width: 16px; height: 16px; }
.ph-left { display: flex; align-items: center; gap: 8px; } .ph-left > div { display: grid; min-width: 0; }
.bot-btns .btn .medal { margin-bottom: 4px; }
.g-title { display: flex; align-items: center; gap: 10px; }
.rc-top { display: flex; gap: 14px; align-items: center; }
.rc-top h3 { margin: 2px 0; }
.kind-line { display: block; font-family: var(--m); font-size: 12px; color: #6B6458; margin-bottom: 2px; }
.motive-option { position: relative; }
.motive-option > .stamp.sm { position: absolute; right: 12px; top: 10px; }
.motive-option > h3, .motive-option > .kind-line { padding-right: 76px; }
.motive-card .stamp.sm { float: right; margin: 0 0 6px 8px; }
.shadow-card .stamp.lg { float: right; margin: -4px -4px 8px 10px; }

/* слои, должности, боты, виды */
.lrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.lfig { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; } .lfig i { font-style: normal; font-size: 11px; color: var(--muted); }
.rl { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.bot-types div { grid-template-columns: auto 1fr; gap: 12px; align-items: center; } .bot-types b { display: block; }
.kind { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.kind p { margin: 4px 0 0; }

/* досье на старте */
.dossier-card { background: var(--paper); color: #45434A; border-radius: var(--r); padding: 16px; margin: 6px 0 12px; display: grid; gap: 10px; box-shadow: inset 0 0 0 1px var(--paperline); }
.dc-title { font-family: var(--h); font-weight: 800; color: #16161D; font-size: 20px; }
.dc-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; }
.dc-row h2 { margin: 0; color: #16161D; font-size: 26px; } .dc-row p { margin: 4px 0 6px; font-size: 14px; }
.dc-lbl { font-family: var(--m); font-size: 11px; color: #6B6458; }
.dc-row.open { background: rgba(240,178,62,.16); border: 1px solid rgba(160,109,18,.35); }
.dc-row.sealed { background: rgba(178,58,44,.08); border: 1px dashed rgba(178,58,44,.5); }
.dc-row.bots { background: rgba(0,0,0,.04); border: 1px dashed #9a948a; }
.dossier-card .power { margin-top: 4px; }
.dossier-card .stamp.xs.civil { --k: #a06d12; } .dossier-card .stamp.xs.solo { --k: #3f6f9c; } .dossier-card .stamp.xs.shadow { --k: var(--red); }

/* тур «Как играть» */
.t-head { margin: 18px 0 8px; color: var(--head); }
.tcard { background: var(--ink2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; position: relative; }
.tc-num { position: absolute; top: 12px; right: 14px; font-family: var(--m); font-size: 12px; color: var(--muted); }
.tc-art { min-height: 150px; border-radius: 12px; background: radial-gradient(circle at 50% 0%, rgba(240,178,62,.12), transparent 70%), #15161e; display: grid; place-items: center; padding: 14px 10px; margin-bottom: 10px; }
.tcard h3 { margin: 4px 0 4px; font-size: 20px; color: var(--head); }
.tcard p { margin: 0; font-size: 15px; line-height: 1.5; }
.t-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 8px; }
.t-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .t-dots i.on { background: var(--amber); width: 22px; border-radius: 4px; } .t-dots i.done { background: #6b5a35; }
.t-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.t-objs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.t-objs > span { display: grid; justify-items: center; gap: 5px; } .t-objs i { font-style: normal; font-size: 11px; color: var(--muted); }
.t-objs .bars i { width: 11px; height: 5px; }
.t-hit { display: flex; gap: 14px; align-items: center; }
.t-price { display: inline-block; background: var(--red); color: #F6EFE3; font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: 13px; margin-bottom: 8px; }
.t-flow { display: grid; grid-template-columns: 92px auto auto; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: 4px 0; } .t-flow b { color: var(--red2); font-size: 13px; }
.t-flow .bars.big i { width: 22px; height: 10px; }
.t-spark { display: flex; gap: 14px; align-items: center; } .t-spark b { display: block; font-family: var(--h); font-size: 30px; color: var(--amber); } .t-spark span { font-size: 13px; color: var(--muted); }
.t-uses { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; } .t-uses span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ink3); color: var(--head); }
.t-dossier { display: flex; align-items: center; gap: 12px; }
.t-dossier > div { display: grid; justify-items: center; gap: 4px; text-align: center; } .t-dossier b { color: var(--head); } .t-dossier span { font-size: 12px; color: var(--muted); }
.td-motive span { color: var(--red2) !important; } .td-plus { font-family: var(--h); font-size: 24px; color: var(--muted); }
.t-stamps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .t-stamps .stamp { width: 84px; height: 84px; }
.t-steps { display: flex; flex-wrap: wrap; gap: 4px 2px; justify-content: center; align-items: flex-start; }
.tstep { display: grid; justify-items: center; gap: 4px; width: 60px; } .tstep i { font-style: normal; font-size: 10px; color: var(--muted); text-align: center; }
.tstep:not(:last-child)::after { content: ''; }
.t-pact, .t-win { display: flex; gap: 14px; align-items: center; }
.t-oc, .t-wins { display: grid; gap: 6px; }
.t-oc span { display: grid; grid-template-columns: 26px auto; column-gap: 8px; align-items: center; } .t-oc .ic { width: 26px; height: 26px; grid-row: span 2; }
.t-oc b { font-size: 14px; } .t-oc i { font-style: normal; font-size: 12px; color: var(--muted); }
.t-oc .good { color: var(--amber); } .t-oc .bad { color: var(--red2); }
.t-wins span { display: flex; align-items: center; gap: 8px; } .t-wins i { font-style: normal; font-size: 12px; color: var(--muted); }
/* табло: тур сеткой */
.board-intro { display: block; padding: 0 48px 48px; }
.bi-head { color: var(--head); margin: 0 0 16px; }
.tour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tour-grid .tcard p { font-size: 15px; }
.bi-roles { margin-top: 28px; } .bi-roles h3 { color: var(--head); }
.board-intro .roles-list { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .tour-grid, .board-intro .roles-list { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .bars i.lost, .bars i.gain { animation: none; } }

/* тур: макеты */
.tc-art { min-height: 190px; }
.tc-art .paper { background: var(--paper); color: #45434A; border-radius: 12px; padding: 10px 12px; width: 100%; }
.tc-art .paper .ic { color: #16161D; }
.tc-art .paper .bars i { background: #d6ccb9; } .tc-art .paper .bars i.on { background: #e0a22b; box-shadow: none; } .tc-art .paper .bars i.gain { background: #3f9e6a; }
.t-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.t-states > div { display: grid; justify-items: center; gap: 4px; text-align: center; }
.t-states b { color: var(--head); font-size: 13px; } .t-states i { font-style: normal; font-size: 11px; color: var(--muted); }
.t-states .bars i { width: 12px; height: 6px; }
.t-states .dead .medal { opacity: .45; filter: grayscale(1); } .t-states .dead i { color: var(--red2); }
.tcr-head { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #16161D; margin-bottom: 6px; }
.tcr-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(178,58,44,.08); border: 1px solid rgba(178,58,44,.3); margin: 4px 0; font-size: 14px; }
.tcr-row b { color: #16161D; } .tcr-row .bars i { width: 12px; height: 6px; }
.tcr-price { color: var(--red); font-weight: 800; white-space: nowrap; }
.tcr-note { font-size: 12px; color: #6B6458; margin-top: 4px; }
.tcr-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tcr-ab span { border-top: 2px solid #16161D; padding-top: 4px; font-size: 11.5px; line-height: 1.35; } .tcr-ab b { display: block; color: #16161D; font-size: 13px; }
.t-meter { width: 100%; display: grid; gap: 10px; }
.tm-chips { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.t-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--ink3); border-radius: 999px; padding: 2px 10px 2px 2px; } .t-chip b { color: var(--amber); }
.tm-sum { font-family: var(--h); font-size: 22px; color: var(--amber); }
.tm-bar { position: relative; display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #33343f; border: 1px solid var(--amber); }
.tm-bar i { display: block; height: 100%; background: var(--amber); border-right: 2px solid #15161e; } .tm-bar i:nth-child(2) { background: #f6c86a; }
.tm-bar em { position: absolute; right: 6px; top: -1px; font-style: normal; font-size: 11px; color: var(--ink); font-weight: 800; }
.tm-res { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--head); } .tm-res b { color: var(--amber); }
.t-outs { display: grid; gap: 6px; }
.t-out { display: grid; grid-template-columns: 74px auto 14px auto 1fr; gap: 6px; align-items: center; font-size: 12px; }
.to-sum { color: #45434A; font-weight: 700; } .to-arr { color: #6B6458; text-align: center; }
.t-out .bars i { width: 12px; height: 7px; } .t-out b { font-size: 12px; }
.t-out.ok b { color: #8a5f12; } .t-out.bad b { color: var(--red); } .t-out.good b { color: #2f7d52; }
.t-uses3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; width: 100%; }
.t-uses3 > span { display: grid; justify-items: center; gap: 2px; text-align: center; background: var(--ink3); border-radius: 10px; padding: 8px 4px; }
.t-uses3 .ic { width: 22px; height: 22px; color: var(--amber); } .t-uses3 b { color: var(--head); font-size: 13px; } .t-uses3 i { font-style: normal; font-size: 10.5px; color: var(--muted); line-height: 1.25; }
.tc-art:has(.t-spark) { display: block; } .tc-art .t-spark { justify-content: center; }
.t-mcards { display: grid; gap: 6px; width: 100%; }
.t-mcard { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; background: var(--paper); border-radius: 10px; padding: 6px 10px; }
.t-mcard .stamp { grid-row: span 2; } .t-mcard b { color: #16161D; font-size: 13px; } .t-mcard span { font-size: 12px; color: #45434A; }
.t-mcard .stamp.xs.civil { --k: #a06d12; } .t-mcard .stamp.xs.solo { --k: #3f6f9c; } .t-mcard .stamp.xs.shadow { --k: var(--red); }
.t-bubs { display: grid; gap: 8px; width: 100%; }
.t-bub { display: flex; align-items: flex-start; gap: 8px; } .t-bub:nth-child(2) { flex-direction: row-reverse; }
.t-bub span { background: var(--ink3); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; font-size: 13px; color: var(--head); }
.t-phone { width: 190px; background: #0d0e14; border: 2px solid #3a3b47; border-radius: 18px; padding: 10px; display: grid; gap: 6px; }
.tp-lbl { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); } .tp-lbl .ic { color: var(--amber); }
.tp-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .tp-ab span { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px; font-weight: 800; color: var(--head); } .tp-ab .on { background: var(--paper); color: var(--ink); }
.tp-row { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--head); } .tp-row .ic { color: var(--amber); }
.tp-row i { margin-left: auto; font-style: normal; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); }
.tp-row i + b + i { margin-left: 0; } .tp-row b { width: 14px; text-align: center; color: var(--amber); }
.tp-btn { background: var(--amber); color: var(--ink); text-align: center; font-weight: 800; border-radius: 8px; padding: 5px; font-size: 12px; }
.t-result { display: grid; gap: 4px; }
.tr-row { display: grid; grid-template-columns: auto 74px auto 1fr; gap: 6px; align-items: center; font-size: 12px; color: #16161D; } .tr-row .bars i { width: 11px; height: 6px; } .tr-row span { color: #45434A; font-size: 11px; }
.t-hear { display: grid; gap: 8px; width: 100%; }
.th-vote { display: flex; gap: 8px; justify-content: center; } .th-vote span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--head); } .th-vote .yes { border-color: var(--amber); color: var(--amber); }
.th-doss { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--red2); font-weight: 800; font-size: 14px; }
.t-see { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.t-see > div { border-radius: 12px; padding: 10px; display: grid; justify-items: center; text-align: center; gap: 2px; }
.t-see .ic { width: 30px; height: 30px; } .t-see b { font-size: 14px; } .t-see span { font-family: var(--h); font-size: 15px; } .t-see i { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.t-see .good { border: 1px solid var(--amber); color: var(--amber); background: rgba(240,178,62,.08); } .t-see .bad { border: 1px solid var(--red); color: var(--red2); background: rgba(178,58,44,.1); }
.tc-num { position: static; margin-bottom: 8px; text-align: right; }
.tc-art .bars i.lost, .tc-art .bars i.gain { animation: none; }

/* тур: новые макеты */
.t-dead { display: grid; gap: 4px; width: 100%; }
.t-dead > div:not(.t-doom) { display: grid; grid-template-columns: 22px 78px 1fr; gap: 6px; align-items: center; font-size: 12px; }
.t-dead .ic { width: 20px; height: 20px; color: var(--muted); }
.t-dead b { color: var(--head); font-size: 12.5px; } .t-dead span { color: var(--red2); line-height: 1.25; }
.t-doom { display: flex; align-items: center; gap: 8px; margin-top: 6px; background: var(--red); color: #F6EFE3; border-radius: 10px; padding: 8px 12px; animation: none; }
.t-doom .ic { color: #F6EFE3; width: 22px; height: 22px; } .t-doom b { font-family: var(--h); font-size: 14px; }
.t-kinds { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.t-kinds > div { display: grid; justify-items: center; gap: 6px; text-align: center; } .t-kinds span { font-size: 12px; color: var(--head); }
.t-mcard { grid-template-columns: auto 1fr; } .t-mcard > div { display: grid; gap: 1px; } .t-mcard i { font-style: normal; font-size: 11px; color: #6B6458; }
.t-mcard .stamp { grid-row: auto; }
.t-phones { display: flex; align-items: center; gap: 6px; }
.t-phone.sm { width: 140px; padding: 8px; gap: 5px; border-radius: 14px; }
.tp-line { font-size: 10.5px; color: var(--muted); line-height: 1.3; } .tp-line b { color: var(--head); display: block; font-size: 12px; }
.tp-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4px; } .tp-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.t-phone.sm .tp-btn { font-size: 11px; padding: 4px; }
.tph-arr { font-family: var(--h); color: var(--amber); font-size: 20px; }
.t-check { display: grid; gap: 5px; }
.tc-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #45434A; } .tc-row .ic { width: 20px; height: 20px; flex: none; }
.tc-row.ok b { color: #8a5f12; } .tc-row.bad b { color: var(--red); } .tc-row b { color: #16161D; }
.t-why { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.t-why > div { border-radius: 12px; padding: 8px 10px; display: grid; gap: 4px; align-content: start; }
.t-why b { font-size: 13px; } .t-why span { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: var(--text); line-height: 1.3; } .t-why .ic { width: 16px; height: 16px; flex: none; }
.t-why .good { border: 1px solid var(--amber); } .t-why .good b, .t-why .good .ic { color: var(--amber); }
.t-why .bad { border: 1px solid var(--red); } .t-why .bad b, .t-why .bad .ic { color: var(--red2); }
.t-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.t-ab > div { border-top: 2px solid #16161D; padding-top: 4px; display: grid; gap: 2px; }
.t-ab b { color: #16161D; font-size: 13px; } .t-ab span { font-size: 11px; line-height: 1.3; } .t-ab .ab-plus { color: #2f7d52; } .t-ab .ab-minus { color: var(--red); }
.all-motives { display: grid; gap: 6px; }
.am { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: var(--ink2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.am .stamp { grid-row: span 2; } .am b { color: var(--head); } .am span { font-size: 14px; }

/* режимы */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.ms { text-align: left; display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--ink2); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit; }
.ms b { color: var(--head); font-size: 16px; } .ms span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ms.on { border: 2px solid var(--amber); background: rgba(240,178,62,.08); cursor: default; } .ms.on b { color: var(--amber); }
.ms:disabled:not(.on) { opacity: .55; cursor: default; }
.card.mode .btn { margin-top: 10px; }
.t-doom2 { font-size: 12px; color: var(--red2); text-align: center; margin-top: 4px; }
.t-mini-pact { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--head); background: var(--ink3); border-radius: 10px; padding: 8px 10px; } .t-mini-pact .ic { color: var(--amber); width: 20px; height: 20px; }
.t-crisis.mini { padding: 6px 8px; } .t-mcards.one { margin-top: 10px; }
.tc-art .t-doom { margin-top: 10px; width: 100%; }
.intro-card > .stamp.lg { float: right; margin: -4px -4px 8px 10px; }

/* v0.1.11: шаблоны пакта, первый пакт, прогресс цели, главное за раунд, штраф */
.tpls { display: grid; gap: 6px; margin: 4px 0 10px; } .tpls .chip { text-align: left; white-space: normal; line-height: 1.3; }
.first-pact { background: rgba(240,178,62,.1); border: 1px dashed var(--amber); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; margin-bottom: 10px; } .first-pact b { color: var(--amber); }
.progress { background: rgba(240,178,62,.12); border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; padding: 6px 10px; font-size: 14px; color: var(--head); }
.motive-option .progress, .motive-card .progress { color: inherit; }
.headlines { display: grid; gap: 6px; margin: 10px 0 12px; }
.hl { font-family: var(--h); font-weight: 800; font-size: 16px; padding: 8px 12px; border-radius: 10px; }
.hl.bad { background: rgba(178,58,44,.14); color: var(--red); } .hl.good { background: rgba(63,158,106,.16); color: #2f7d52; }
.hl.seal { background: rgba(240,178,62,.18); color: #8a5f12; font-size: 14px; } .hl.ok { background: rgba(0,0,0,.05); color: #45434A; }
.board .hl { font-size: 22px; padding: 10px 16px; } .board .hl.seal { font-size: 17px; }
.timer.elapsed { color: var(--muted); font-size: .8em; }
.check.penalty { margin: 0 0 14px; font-size: 14px; }
.alloc.restart { opacity: 1; border-style: dashed; }

.stats.three { grid-template-columns: repeat(3, 1fr); }
.hl.warn { background: rgba(240,178,62,.22); color: #7a4a06; font-size: 15px; } .board .hl.warn { font-size: 19px; }

/* ---------- 0.1.13: понятная игра и лобби ведущего ---------- */
/* Шкала раунда: где мы сейчас */
.steps { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.steps .st-round { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 700; }
.steps ol { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: wrap; }
.steps li { font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.steps li.done { color: var(--text); background: var(--ink2); }
.steps li.on { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.steps.big { margin: 16px 28px 0; } .steps.big li { font-size: 15px; padding: 7px 14px; } .steps.big .st-round { font-size: 15px; }

/* Карточка «Сейчас» на телефоне: одно главное действие */
.now { background: rgba(240,178,62,.08); border: 1px solid rgba(240,178,62,.5); border-radius: 16px; padding: 16px; margin: 0 0 14px; }
.now-title { display: flex; align-items: center; gap: 10px; color: var(--amber); font-family: var(--h); font-size: 17px; margin-bottom: 8px; line-height: 1.2; }
.now-lead { color: var(--head); font-size: 16px; margin-bottom: 6px; } .now-lead b { color: var(--amber); }
.now .btn.big { margin-top: 12px; }
.now-done { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(63,158,106,.18); color: #9BDBB7; font-weight: 800; }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--amber); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.wait { margin: 10px 0 2px; font-size: 14px; color: var(--text); } .wait b { color: var(--head); } .wait.ok { color: #9BDBB7; }
.now .muted.small { margin: 2px 0 0; }
.warn-line { font-size: 14px; color: var(--amber); margin: 4px 0 8px; }
.btn.pact-cta { margin: 8px 0 0; }
.now .more { margin-top: 10px; }
.b-ready { margin-top: 8px; font-size: 17px; color: var(--text); } .b-ready b { color: var(--amber); }
.pl-ready { white-space: nowrap; }
.banner.amber b { color: var(--head); }

/* Главная: два пути — ведущий и игрок */
.paths { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin: 24px 0 18px; max-width: 920px; }
.path { border: 1px solid var(--line); background: rgba(17,18,25,.65); border-radius: 16px; padding: 16px 18px; }
.path.host { border-color: rgba(240,178,62,.55); }
.path-who { font-family: var(--h); font-size: 19px; color: var(--head); margin-bottom: 4px; }
.path p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.path-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.path-more { display: inline-block; margin-top: 12px; font-size: 14px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

/* Шаги ведущего */
.host-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.host-steps li { background: var(--ink2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; }
.hs-ico { position: relative; width: max-content; margin-bottom: 12px; }
.hs-ico i { position: absolute; right: -10px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--ink); font-style: normal; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.host-steps b { display: block; color: var(--head); font-size: 15px; margin-bottom: 6px; line-height: 1.25; }
.host-steps p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
@media (max-width: 1000px) { .host-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .host-steps { grid-template-columns: 1fr; } }

/* Сравнение режимов: строки выровнены */
.mcmp { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--ink2); }
.mcmp > div { padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.mcmp > div:nth-child(-n+3) { border-top: 0; }
.mc-l { color: var(--muted); font-size: 13px !important; }
.mc-c { color: var(--text); }
.mc-h { display: flex; gap: 10px; align-items: center; padding: 14px 12px !important; }
.mc-h b { display: block; font-family: var(--h); font-size: 17px; color: var(--head); line-height: 1.2; } .mc-h span { font-size: 12px; color: var(--muted); }
.mc-h.beginner span { color: var(--amber); }
.mcmp .on { background: rgba(240,178,62,.09); }
.mc-h.on { box-shadow: inset 0 3px 0 var(--amber); } .mc-h.on b { color: var(--amber); }
.mc-f { display: flex; align-items: center; }
.mc-chosen { font-weight: 800; color: var(--amber); }
.mc-common { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) {
  .mcmp { grid-template-columns: 1fr 1fr; }
  .mc-l { grid-column: 1 / -1; background: var(--ink); padding: 6px 12px !important; }
  .mc-corner { display: none; }
  .mcmp > div:nth-child(-n+3) { border-top: 1px solid var(--line); }
}

/* Лобби ведущего: шаги до старта */
.lobby.host-lobby { grid-template-columns: minmax(300px, .75fr) 1.25fr; gap: 40px; }
.join-how { margin: 8px 0 16px; padding-left: 22px; font-size: 17px; color: var(--head); } .join-how li { margin: 5px 0; }
.host-hello { background: rgba(240,178,62,.08); border: 1px solid rgba(240,178,62,.45); border-radius: 14px; padding: 12px 16px; margin-bottom: 6px; font-size: 16px; color: var(--head); } .host-hello b { color: var(--amber); }
.lb-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.lb-step:first-of-type { border-top: 0; }
.lb-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--amber); color: var(--amber); display: grid; place-items: center; font-family: var(--h); font-weight: 800; }
.lb-step.done .lb-num { background: var(--amber); color: var(--ink); }
.lb-body { min-width: 0; } .lb-body h3 { font-size: 19px; margin: 6px 0 12px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { position: relative; min-height: 60px; border-radius: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 14px; min-width: 0; }
.slot.taken { background: var(--ink3); border: 1px solid var(--line); color: var(--head); }
.slot.taken b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.slot.taken > i { font-style: normal; font-size: 11px; color: var(--muted); }
.slot.need, .slot.opt { justify-content: center; flex-direction: column; gap: 0; }
.slot.need { border: 2px dashed rgba(240,178,62,.6); color: var(--amber); }
.slot.opt { border: 1px dashed var(--line); color: var(--muted); }
.slot > span { font-family: var(--h); font-size: 16px; } .slot.need > i, .slot.opt > i { font-style: normal; font-size: 12px; }
.slot .x { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 2px; }
.lb-status { margin: 12px 0 4px; font-size: 16px; } .lb-status.warn { color: var(--amber); } .lb-status.ok { color: #9BDBB7; }
.timer-choice { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); } .timer-choice .btn { flex: none; }
.check.penalty span b { color: var(--head); }
.lb-after { margin-top: 6px; padding: 16px; border-radius: 14px; background: var(--ink2); border: 1px solid var(--line); }
.lb-after h4 { margin-top: 0; }
.flow { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flow li { padding: 8px 10px; border-radius: 10px; background: var(--ink3); display: grid; gap: 2px; } .flow b { color: var(--head); font-size: 14px; } .flow span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.board-intro > .muted.center { margin-top: -6px; }
@media (max-width: 1000px) { .lobby.host-lobby { grid-template-columns: 1fr; } .slots { grid-template-columns: repeat(4, 1fr); } .flow { grid-template-columns: 1fr 1fr; } }
.ic-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; } .ic-head h2 { margin: 0; }
.motive-option h3, .motive-option h3 + p { padding-right: 66px; }
.alloc .al-name { flex: 1 1 auto; min-width: 0; } .alloc .stepper { flex: none; } .alloc .al-name em { white-space: normal; }
.sm-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--ink); font-family: var(--h); font-size: 12px; font-weight: 800; margin-right: 6px; vertical-align: 1px; }
.sm-block .lbl.step-lbl { font-family: var(--b); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 800; color: var(--head); margin-bottom: 10px; }
.submit-step { margin-top: 14px; }
/* Что нажать игрокам — показано на табло */
.b-press { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 16px; color: var(--head); }
.b-steps { color: var(--muted); }
.btn-mock { display: inline-block; background: var(--amber); color: var(--ink); font-weight: 800; padding: 8px 14px; border-radius: 10px; font-size: 16px; }
/* Главная кнопка игрока мягко пульсирует, пока её не нажали */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,178,62,.55); } 50% { box-shadow: 0 0 0 10px rgba(240,178,62,0); } }
.btn.pulse:not(:disabled) { animation: pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; } }
.bguide .b-press span { color: var(--head); margin-left: 0; }
.bguide .b-press .b-steps { color: var(--muted); }
.bguide .b-press .btn-mock { color: var(--ink); }
.lbl.step-lbl { font-family: var(--b); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 800; color: var(--head); margin-bottom: 10px; }

/* ---------- 0.1.14: правила по шагам ---------- */
.t-pos { font-size: 13px; color: var(--muted); margin: 0 0 8px; } .t-pos b { color: var(--amber); }
.t-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; }
.t-dots button.on { background: var(--amber); width: 24px; border-radius: 5px; } .t-dots button.done { background: #6b5a35; }
.t-dots { flex-wrap: wrap; gap: 7px; }
.t-nav .btn { font-size: 14px; line-height: 1.25; }
.tcard p + p { margin-top: 8px; }
.tc-list { margin: 8px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.45; } .tc-list li { margin: 5px 0; }
.tcard .more { margin-top: 10px; }
.tcard .more .all-motives { margin-top: 6px; }

/* Ступени защиты */
.ps { font-size: 13px; }
.ps-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; margin-bottom: 2px; } .ps-head .ic { width: 18px; height: 18px; }
.ps-sub { font-size: 11px; color: #7b7368; margin-bottom: 4px; }
.ps-row { display: grid; grid-template-columns: 88px auto 1fr; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px dashed #d6ccb9; }
.ps-range { font-family: var(--h); font-weight: 800; font-size: 15px; color: #2b2930; white-space: nowrap; }
.ps-row .bars i { width: 13px; height: 8px; }
.ps-res { display: grid; line-height: 1.2; min-width: 0; }
.ps-what { font-weight: 800; font-size: 13px; } .ps-why { font-size: 11px; color: #7b7368; }
.ps-row.bad .ps-what { color: var(--red); } .ps-row.ok .ps-what { color: #8a5f12; } .ps-row.good .ps-what { color: #2f7d52; }

/* Когда город погибает */
.t-end { display: grid; gap: 10px; width: 100%; }
.te-rule { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.te-rule.early { border-color: rgba(200,71,58,.6); }
.te-tl { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.te-r { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: var(--ink3); color: var(--text); }
.te-r.boom { background: var(--red); color: #F6EFE3; }
.te-r.skip { text-decoration: line-through; color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.te-r.stop { background: #F6EFE3; color: var(--red); }
.te-what { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .te-what b { font-size: 13px; color: var(--head); margin-left: 4px; }
.te-what .bars i { width: 11px; height: 7px; }

/* Бюджет стола */
.t-budget { display: grid; gap: 6px; width: 100%; }
.tb-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--ink3); font-size: 13px; }
.tb-row b { font-family: var(--h); font-size: 17px; }
.tb-row.in b { color: #9BDBB7; } .tb-row.out b { color: var(--amber); } .tb-row.big { border: 1px solid rgba(200,71,58,.6); } .tb-row.big b { color: #e07a6c; }

/* Шаги раунда на карточке */
.tc-art .t-steps { margin: 0; justify-content: center; } .tc-art .t-steps li { font-size: 13px; padding: 6px 10px; }
.t-x3 { margin-top: 10px; font-family: var(--h); color: var(--amber); font-size: 15px; text-align: center; }
.ps-range small { display: block; font-family: var(--b); font-weight: 600; font-size: 11px; color: #7b7368; }
.tc-after { margin-top: 10px !important; padding: 10px 12px; border-radius: 10px; background: rgba(240,178,62,.10); border-left: 3px solid var(--amber); color: var(--head); }
.ps-th { border-top: 0 !important; padding: 2px 0 0 !important; font-size: 10.5px; color: #7b7368; }
.ps-th span:first-child { white-space: normal; line-height: 1.15; }

/* ---------- 0.1.16: сценарии «А» и «Б» с ценами ---------- */
.sc-intro { text-transform: none; letter-spacing: 0; font-family: var(--b); font-size: 14px; color: #45434A; line-height: 1.4; }
.dilemma.scens { gap: 12px; }
.scen { background: #fbf6ec; border: 1px solid #d9cfbc; border-radius: 14px; padding: 12px; display: grid; gap: 4px; align-content: start; }
.sc-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.sc-k { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #16161D; color: var(--paper); display: grid; place-items: center; font-family: var(--h); font-weight: 800; font-size: 18px; }
.sc-head b { display: block; color: #16161D; font-size: 16px; line-height: 1.25; } .sc-head span { font-size: 12px; color: #6B6458; }
.sc-lbl { font-size: 11px; color: #6B6458; margin-top: 6px; }
.sc-p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; padding: 5px 8px; border-radius: 8px; background: #f2ebdd; }
.sc-obj { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #16161D; min-width: 108px; } .sc-obj .ic { width: 16px; height: 16px; }
.sc-price { font-weight: 800; color: #16161D; } .sc-was { font-size: 12px; color: #6B6458; } .sc-note { font-size: 13px; color: #45434A; }
.sc-p.bad { background: #f6dcd6; } .sc-p.bad .sc-price { color: var(--red); }
.sc-p.good { background: #dcefe2; } .sc-p.good .sc-price, .sc-p.good .sc-note { color: #2f7d52; font-weight: 700; }
.sc-o { display: flex; gap: 8px; align-items: baseline; font-size: 14px; line-height: 1.35; color: #45434A; }
.sc-o i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: #e5dccb; color: #45434A; }
.sc-o.good i { background: #2f7d52; color: #fff; } .sc-o.bad i { background: var(--red); color: #fff; }
.sc-o.bad { color: #7a2a20; } .sc-o.good { color: #22593b; }
.board .scen { padding: 16px; } .board .sc-head b { font-size: 20px; } .board .sc-p, .board .sc-o { font-size: 17px; } .board .sc-k { width: 42px; height: 42px; font-size: 22px; }
.scen-box { margin: 8px 0 0; }
.abtn span { line-height: 1.25; }
.sc-k { color: #fff !important; }
.sm-block.promises { border-color: rgba(240,178,62,.5); } .sm-block.promises p.small { font-size: 14px; margin: 0 0 8px; color: var(--text); } .sm-block.promises p.small b { color: var(--amber); } .promise-check + .muted.small { margin-top: 8px; }

/* ---------- 0.1.18: ожидание — крупно и понятно ---------- */
.waitcard { margin: 12px 0 4px; padding: 14px 16px; border-radius: 14px; background: rgba(110,150,220,.10); border: 1px solid rgba(130,165,230,.45); }
.wc-head { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--head); }
.wc-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #8fb0ee; animation: wcpulse 1.6s ease-in-out infinite; }
@keyframes wcpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .wc-dot { animation: none; } }
.wc-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.wc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--ink3); color: var(--head); font-weight: 700; font-size: 14px; }
.wc-what { font-size: 15px; color: var(--head); margin: 4px 0; }
.wc-then { font-size: 14px; color: var(--text); margin: 4px 0; }
.wc-note { font-size: 14px; color: #9BDBB7; margin: 6px 0; }
.wc-host { font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.waitcard .linkbtn { margin-top: 2px; }
.waitcard.all { background: rgba(63,158,106,.14); border-color: rgba(63,158,106,.5); } .waitcard.all .wc-dot { background: #6fc796; }

/* ---------- 0.1.19: табло у всех, ведущий с телефона, продолжить игру ---------- */
.bt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink2); border: 1px solid var(--line); }
.bt-head b { display: block; color: var(--head); font-size: 16px; } .bt-head span { font-size: 13px; color: var(--muted); }
.hostbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; max-width: 640px; margin: 8px auto 0; padding: 10px 14px; border-radius: 12px; background: rgba(240,178,62,.10); border: 1px solid rgba(240,178,62,.45); font-size: 14px; color: var(--text); }
.hostbar b { color: var(--amber); } .hb-btns { display: flex; gap: 8px; } .hostbar .btn { padding: 8px 12px; font-size: 14px; }
.resume { max-width: 920px; margin: 20px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(240,178,62,.10); border: 1px solid rgba(240,178,62,.55); }
.resume > b { display: block; font-family: var(--h); font-size: 18px; color: var(--head); margin-bottom: 8px; }
.rs-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; } .rs-row > span { min-width: 140px; color: var(--text); } .rs-row b { color: var(--amber); letter-spacing: .08em; }
.rv-nav { margin-top: 10px; }
/* Объекты на телефоне: три в ряд, названия целиком */
@media (max-width: 520px) {
  .systems:not(.big) { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .systems:not(.big) .sys-top { font-size: 12px; white-space: normal; }
  .systems:not(.big) .sys-top b { overflow: visible; }
  .systems:not(.big) .sys-note { display: block; font-size: 10px; }
}

/* ---------- 0.1.20: голос города, день и ночь, финал «Кто Тень?» ---------- */
/* Время суток: фон страницы меняется с фазой */
body.ph-crisis { background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(178,58,44,.22), transparent 70%) var(--ink); }
body.ph-negotiation { background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(240,178,62,.16), transparent 70%) var(--ink); }
body.ph-secret {
  --ink: #090B17; --ink2: #11142A; --ink3: #1A1E3A; --line: #262B4D; --muted: #8A8FB0; --text: #C9CCE0;
  background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(110,130,220,.22), transparent 70%) #090B17;
}
body.ph-secret .phead { background: rgba(9,11,23,.96); }
body.ph-result { background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(232,140,110,.18), transparent 70%) var(--ink); }
body.ph-accuse, body.ph-reveal, body.ph-ended {
  --ink: #0E0B10; --ink2: #18131A; --ink3: #221B24; --line: #33283A;
  background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(178,58,44,.28), transparent 70%) #0E0B10;
}
body.ph-accuse .phead, body.ph-reveal .phead, body.ph-ended .phead { background: rgba(14,11,16,.96); }
@media (prefers-reduced-motion: no-preference) { body { transition: background-color .6s ease; } }

/* Голос города */
.narr { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 10px 14px; border-radius: 14px; border-left: 4px solid var(--amber); background: rgba(255,255,255,.03); }
.narr b { display: block; font-family: var(--h); font-size: 17px; color: var(--head); line-height: 1.2; }
.narr span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.narr.big { margin: 16px 28px 0; padding: 14px 20px; } .narr.big b { font-size: 26px; } .narr.big span { font-size: 15px; }
.narr.alarm { border-left-color: var(--red); } .narr.alarm .medal { border-color: var(--red); color: var(--red2); }
.narr.day { border-left-color: var(--amber); }
.narr.night { border-left-color: #8fa2ee; background: rgba(110,130,220,.08); } .narr.night .medal { border-color: #8fa2ee; color: #b9c5f5; }
.narr.dawn { border-left-color: #e8a07c; } .narr.dawn .medal { border-color: #e8a07c; color: #f2c0a4; }
.narr.accuse, .narr.dusk { border-left-color: var(--red2); background: rgba(178,58,44,.08); } .narr.accuse .medal, .narr.dusk .medal { border-color: var(--red2); color: var(--red2); }

/* Ночью карточка «Сейчас» — лунная */
body.ph-secret .now { background: rgba(110,130,220,.08); border-color: rgba(143,162,238,.45); }
body.ph-secret .now-title { color: #b9c5f5; }

/* История кризиса */
.crisis-story { font-size: 16px; font-style: italic; color: #45434A; margin: -4px 0 14px; padding-left: 12px; border-left: 3px solid var(--red); line-height: 1.45; }
.board .crisis-story { font-size: 21px; }

/* Финал на экране игрока */
.accuse-card { border-color: rgba(224,122,108,.55); background: rgba(178,58,44,.08); }
.accuse-card .now-title { color: var(--red2); } .accuse-card .now-lead b { color: var(--red2); }
.accuse-card p.small { font-size: 14px; color: var(--text); margin: 6px 0; }
.suspects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.suspect { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; background: var(--ink3); border: 1.5px solid var(--line); color: var(--head); font: inherit; cursor: pointer; min-width: 0; }
.suspect .medal { grid-row: 1 / 3; }
.suspect b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .suspect span { font-size: 12px; color: var(--muted); }
.suspect.on { border-color: var(--red2); background: rgba(178,58,44,.22); box-shadow: 0 0 0 3px rgba(224,122,108,.18); }
.suspect:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Финал на табло */
.accuse-board { text-align: center; }
.accuse-board h2 { font-size: clamp(34px, 5vw, 64px); margin: 4px 0 10px; }
.ab-city { font-size: 20px; font-weight: 800; margin: 0 0 12px; } .ab-city.ok { color: #2f7d52; } .ab-city.bad { color: var(--red); }
.ab-how { text-align: left; max-width: 640px; margin: 0 auto 14px; font-size: 18px; color: #45434A; } .ab-how li { margin: 6px 0; }
.ab-count { font-size: 18px; color: #45434A; } .ab-count b { font-family: var(--h); font-size: 32px; color: #16161D; }

/* Вскрытие */
.stage > .medal { margin: 0 auto 10px; }
.shadow-name { text-shadow: 0 0 28px rgba(224,122,108,.45); }
.tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.stage .pill.red { border-color: var(--red2); color: var(--red2); }

/* Финал в правилах */
.t-accuse { display: grid; justify-items: center; gap: 8px; }
.ta-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ta-p { padding: 5px 10px; border-radius: 999px; background: var(--ink3); color: var(--text); font-size: 13px; font-weight: 700; }
.ta-p.on { background: rgba(178,58,44,.35); color: #fff; box-shadow: 0 0 0 2px var(--red2); }
.t-accuse b { font-family: var(--h); color: var(--head); font-size: 15px; } .t-accuse i { font-style: normal; color: var(--red2); font-weight: 800; }

/* Главная */
.hero .lead2 { font-size: 15px; max-width: 620px; color: var(--muted); margin-top: -4px; }
.flow { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* Главная: крючок крупнее */
.hero .lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--head); max-width: 640px; }
.suspects + .lbl.step-lbl { margin-top: 16px; }
.sys-tag { font-size: 13px; color: var(--muted); margin: -2px 0 6px; font-style: italic; }
.dark .sys-tag { opacity: .6; }
.systems.big .sys-top { white-space: normal; align-items: flex-start; }
.systems.big .sys-top b { overflow: visible; line-height: 1.15; }
.hero-seal svg { inset: 18%; width: 64%; height: 64%; }

/* =====================================================================
   0.1.21 · НЕОН-НУАР. Ночной город Нова: фиолетовая мгла, неон, золото.
   ===================================================================== */
:root {
  --ink: #0A0816; --ink2: #141029; --ink3: #1D1738; --line: #2E2656;
  --text: #D9D3F0; --muted: #9A92C0; --head: #F8F4FF;
  --amber: #FFC94D; --red: #E5385F; --red2: #FF7C98;
  --vio: #8B5CFF; --mag: #FF3DBE; --cyan: #37E2FF;
  --paper: #F4ECE2; --paper2: #FBF6EE; --paperline: #DCCFC6;
  --glass: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.015) 60%);
  --glow-v: 0 0 0 1px rgba(139,92,255,.22), 0 12px 40px rgba(20,8,60,.55);
}
html, body { background-color: var(--ink); }
body {
  background:
    radial-gradient(1100px 650px at 8% -12%, rgba(139,92,255,.30), transparent 62%),
    radial-gradient(900px 600px at 108% 6%, rgba(255,61,190,.20), transparent 60%),
    radial-gradient(1000px 700px at 50% 118%, rgba(55,226,255,.12), transparent 62%),
    var(--ink);
  background-attachment: fixed;
}

/* Время суток — тот же неон, другой оттенок */
body.ph-crisis { background:
  radial-gradient(1100px 600px at 50% -14%, rgba(229,56,95,.36), transparent 62%),
  radial-gradient(900px 600px at 110% 40%, rgba(255,61,190,.16), transparent 60%), var(--ink); background-attachment: fixed; }
body.ph-negotiation { background:
  radial-gradient(1100px 600px at 20% -14%, rgba(255,201,77,.24), transparent 60%),
  radial-gradient(900px 600px at 110% 20%, rgba(255,61,190,.18), transparent 60%),
  radial-gradient(900px 700px at 40% 120%, rgba(139,92,255,.18), transparent 62%), var(--ink); background-attachment: fixed; }
body.ph-secret {
  --ink: #05061A; --ink2: #0C0F2C; --ink3: #141946; --line: #263070; --muted: #8C95C8; --text: #CDD3F2;
  background:
    radial-gradient(1000px 640px at 70% -16%, rgba(55,226,255,.22), transparent 60%),
    radial-gradient(900px 700px at 0% 30%, rgba(139,92,255,.30), transparent 62%), #05061A;
  background-attachment: fixed;
}
body.ph-result { background:
  radial-gradient(1100px 620px at 50% -16%, rgba(255,140,110,.30), transparent 60%),
  radial-gradient(900px 600px at 0% 60%, rgba(255,61,190,.16), transparent 60%), var(--ink); background-attachment: fixed; }
body.ph-accuse, body.ph-reveal, body.ph-ended {
  --ink: #0C0612; --ink2: #170C1F; --ink3: #22122C; --line: #3A1F48;
  background:
    radial-gradient(1000px 640px at 50% -16%, rgba(229,56,95,.40), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(139,92,255,.26), transparent 62%), #0C0612;
  background-attachment: fixed;
}

/* Стекло вместо плоских плашек */
.card, .sm-block, .tcard, .sys, .path, .lb-after, .host-steps li, .bt-head, .resume, .mcmp, .narr, .waitcard, .slot.taken, .flow li, .suspect, .abtn {
  background-image: var(--glass);
}
.card, .sm-block, .tcard, .path, .lb-after, .host-steps li, .bt-head { border-color: rgba(139,92,255,.22); box-shadow: 0 12px 40px rgba(8,4,30,.45); }
.now { background: linear-gradient(150deg, rgba(255,201,77,.13), rgba(255,61,190,.06) 55%, rgba(139,92,255,.06)); border-color: rgba(255,201,77,.5); box-shadow: 0 0 0 1px rgba(255,201,77,.12), 0 14px 44px rgba(255,140,60,.10); }
body.ph-secret .now { background: linear-gradient(150deg, rgba(55,226,255,.12), rgba(139,92,255,.10)); border-color: rgba(120,170,255,.5); box-shadow: 0 0 40px rgba(55,226,255,.10); }
.accuse-card { background: linear-gradient(150deg, rgba(229,56,95,.18), rgba(139,92,255,.10)) !important; border-color: rgba(255,124,152,.55) !important; box-shadow: 0 0 44px rgba(229,56,95,.18); }

/* Кнопки: золото со свечением, фиолетовый неон */
.btn { transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.btn:not(:disabled):active { transform: translateY(1px) scale(.99); }
.btn-amber { background: linear-gradient(135deg, #FFE08A, #FFC94D 45%, #FF9F43); color: #1A0E00; border-color: transparent; box-shadow: 0 8px 26px rgba(255,170,60,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-amber:not(:disabled):hover { filter: brightness(1.06); box-shadow: 0 10px 34px rgba(255,170,60,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(170,150,255,.3); backdrop-filter: blur(6px); }
.btn-ghost:not(:disabled):hover { border-color: rgba(170,150,255,.6); box-shadow: 0 0 22px rgba(139,92,255,.25); }
.btn-red { background: linear-gradient(135deg, #FF5C84, #E5385F 50%, #B0215F); border-color: transparent; color: #fff; box-shadow: 0 8px 28px rgba(229,56,95,.4); }
.btn-violet { background: linear-gradient(135deg, #B48CFF, #8B5CFF 45%, #FF3DBE); color: #fff; border-color: transparent; box-shadow: 0 8px 28px rgba(139,92,255,.4); }
.btn:disabled { filter: grayscale(.6); opacity: .55; box-shadow: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 26px rgba(255,170,60,.35), 0 0 0 0 rgba(255,201,77,.6); } 50% { box-shadow: 0 8px 26px rgba(255,170,60,.35), 0 0 0 12px rgba(255,201,77,0); } }

/* Главная: неоновый логотип */
.hero { border-bottom-color: rgba(139,92,255,.25); }
.hero h1 { background: linear-gradient(100deg, #FFF3D6 0%, #FFC94D 30%, #FF5CB8 62%, #9B6BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(255,61,190,.25)); }
.hero .eyebrow { color: var(--cyan); }
.tagline .amber { background: linear-gradient(90deg, #FFC94D, #FF5CB8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-seal { background: radial-gradient(circle at 35% 30%, #FF5C84, #C2244C 55%, #7A0F3A); box-shadow: inset 0 0 0 16px rgba(120,10,50,.55), inset 0 0 0 20px rgba(255,124,152,.45), 0 0 120px rgba(255,61,190,.45); }

/* Шапки и вкладки — стекло */
.phead { background: rgba(10,8,22,.72) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(139,92,255,.25); }
.tabs { background: rgba(14,10,32,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top-color: rgba(139,92,255,.25); }
.tabs button.on { color: var(--amber); box-shadow: inset 0 3px 0 var(--amber); text-shadow: 0 0 14px rgba(255,201,77,.5); }
.topbar { background: rgba(10,8,22,.6); backdrop-filter: blur(10px); border-bottom-color: rgba(139,92,255,.25); }

/* Плитки объектов: неоновая рамка, удар — красное свечение, сломан — пепел */
.sys { border-color: rgba(139,92,255,.25); }
.sys.hit { border-color: rgba(255,92,132,.8); background: linear-gradient(160deg, rgba(229,56,95,.22), rgba(229,56,95,.05)); box-shadow: 0 0 26px rgba(229,56,95,.25); }
.sys.dark { opacity: .7; background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 8px, rgba(0,0,0,.15) 8px 16px); filter: saturate(.4); }
.sys-ico { color: var(--amber); filter: drop-shadow(0 0 6px rgba(255,201,77,.45)); }
.sys-svc { font-size: 11px; margin-top: 6px; color: #9FE7F5; line-height: 1.3; }
.sys-svc.lost { color: var(--red2); }
.systems.big .sys-svc { font-size: 13px; }
.bars i.on { background: linear-gradient(90deg, #FFE08A, #FFB347); box-shadow: 0 0 8px rgba(255,190,80,.45); }

/* Документы (кризис, итог) — бумага с лёгким градиентом и тенью */
.crisis, .result, .hearing, .center-card { background: linear-gradient(160deg, #FBF5EC, #F1E6EE 70%, #E9E2F5); box-shadow: 0 18px 60px rgba(10,4,30,.5), 0 0 0 1px rgba(255,255,255,.4); }
.crisis .eyebrow { color: var(--red); }

/* Голос города — неон по краю */
.narr { background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); box-shadow: 0 10px 34px rgba(8,4,30,.35); }
.narr b { background: linear-gradient(90deg, #fff, #E9DCFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.narr.alarm { border-left-color: #FF4D73; box-shadow: -6px 0 26px -10px rgba(255,77,115,.8), 0 10px 34px rgba(8,4,30,.35); }
.narr.day { border-left-color: var(--amber); box-shadow: -6px 0 26px -10px rgba(255,201,77,.8), 0 10px 34px rgba(8,4,30,.35); }
.narr.night { border-left-color: var(--cyan); box-shadow: -6px 0 26px -10px rgba(55,226,255,.8), 0 10px 34px rgba(8,4,30,.35); }
.narr.night .medal { border-color: var(--cyan); color: var(--cyan); }
.narr.dawn { border-left-color: #FF9F7A; box-shadow: -6px 0 26px -10px rgba(255,159,122,.8), 0 10px 34px rgba(8,4,30,.35); }
.narr.accuse, .narr.dusk { border-left-color: var(--mag); box-shadow: -6px 0 26px -10px rgba(255,61,190,.8), 0 10px 34px rgba(8,4,30,.35); }
.narr.accuse .medal, .narr.dusk .medal { border-color: var(--mag); color: #FF8AD8; }

/* Шкала раунда */
.steps li.on { background: linear-gradient(135deg, #FFE08A, #FF9F43); border-color: transparent; color: #1A0E00; box-shadow: 0 0 18px rgba(255,170,60,.45); }
body.ph-secret .steps li.on { background: linear-gradient(135deg, #9FE7F5, #8B5CFF); color: #08061A; box-shadow: 0 0 18px rgba(55,226,255,.45); }

/* Медальоны со свечением */
.medal.concept { box-shadow: 0 0 18px rgba(255,201,77,.18); }
.medal.shadow { box-shadow: 0 0 22px rgba(229,56,95,.35); }

/* Вскрытие — сцена */
.stage { background: radial-gradient(circle at 50% -10%, rgba(255,61,190,.30), transparent 55%), radial-gradient(circle at 50% 120%, rgba(139,92,255,.25), transparent 60%), var(--ink2); border-color: rgba(255,61,190,.3); box-shadow: 0 0 80px rgba(255,61,190,.15), 0 20px 60px rgba(0,0,0,.5); }
.stage-big { text-shadow: 0 0 40px rgba(255,201,77,.18); }
.stage-big.red { color: #FF6A8C; text-shadow: 0 0 40px rgba(229,56,95,.55); }
@media (prefers-reduced-motion: no-preference) { .stage { animation: stageIn .5s ease both; } }
@keyframes stageIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* Улики и анонимки */
.clues, .rumors { display: grid; gap: 6px; margin: 6px 0 10px; }
.clue, .rm { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.clue { background: linear-gradient(135deg, rgba(55,226,255,.16), rgba(139,92,255,.10)); border: 1px solid rgba(55,226,255,.45); box-shadow: 0 0 22px rgba(55,226,255,.12); }
.clue .ic { color: var(--cyan); width: 22px; height: 22px; grid-row: 1 / 3; }
.clue span { color: var(--head); } .clue b { color: #9FE7F5; } .clue i { font-style: normal; font-size: 12px; color: var(--muted); }
.rm { background: linear-gradient(135deg, rgba(255,61,190,.14), rgba(139,92,255,.10)); border: 1px solid rgba(255,61,190,.35); }
.rm .ic { color: #FF8AD8; width: 20px; height: 20px; grid-row: 1 / 3; }
.rm span { color: var(--head); font-style: italic; } .rm i { font-style: normal; font-size: 12px; color: var(--muted); }
.rumor-box summary { color: #FF8AD8 !important; }
.rumor-kinds { display: grid; gap: 6px; margin: 4px 0 10px; }
.rk { text-align: left; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.rk.on { border-color: #FF8AD8; background: rgba(255,61,190,.16); color: #fff; }
.rumor.off { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 8px 0; } .rumor.off .ic { width: 18px; height: 18px; }
.hl.clue { background: linear-gradient(90deg, rgba(55,226,255,.22), rgba(139,92,255,.14)); color: #0B5466; font-size: 14px; }
.hl.jackpot { background: linear-gradient(90deg, #FFE08A, #FFB347); color: #3A2200; box-shadow: 0 4px 18px rgba(255,170,60,.35); }
.log-rumor { color: #FF8AD8; font-style: italic; }
.rv-rumors { display: grid; gap: 8px; max-width: 640px; margin: 14px auto 0; text-align: left; }
.rvr { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.rvr span { font-style: italic; color: var(--text); } .rvr b { white-space: nowrap; color: var(--head); }
.rvr.sh { border-color: rgba(255,92,132,.7); background: rgba(229,56,95,.14); } .rvr.sh b { color: #FF6A8C; }

/* Лобби: длина партии */
.len-choice { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 8px; align-items: stretch; margin: 14px 0 6px; }
.len-choice .lbl { align-self: center; margin: 0; }
.lenb { display: grid; gap: 2px; justify-items: start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.lenb b { font-family: var(--h); font-size: 24px; color: var(--head); line-height: 1; } .lenb span { font-size: 12px; } .lenb i { font-style: normal; font-size: 11px; color: var(--muted); }
.lenb.on { border-color: var(--amber); background: linear-gradient(135deg, rgba(255,201,77,.18), rgba(255,61,190,.08)); box-shadow: 0 0 22px rgba(255,201,77,.18); } .lenb.on b { color: var(--amber); }
@media (max-width: 560px) { .len-choice { grid-template-columns: repeat(3, 1fr); } .len-choice .lbl { grid-column: 1 / -1; } }

/* Правила: сервисы и улики */
.t-svc { display: grid; gap: 6px; width: 100%; }
.t-svc > div { display: grid; grid-template-columns: auto 92px 1fr 1fr; gap: 6px; align-items: center; font-size: 11.5px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.04); }
.t-svc b { color: var(--head); font-size: 12.5px; } .t-svc .ok { color: #9FE7F5; } .t-svc .bad { color: var(--red2); }
@media (max-width: 420px) { .t-svc > div { grid-template-columns: auto 1fr; } .t-svc .ok, .t-svc .bad { grid-column: 2; } }
.t-clues { display: grid; gap: 8px; width: 100%; }

/* Подозреваемые */
.suspect { border-color: rgba(170,150,255,.25); }
.suspect.on { border-color: #FF8AD8; background: linear-gradient(135deg, rgba(229,56,95,.30), rgba(139,92,255,.18)); box-shadow: 0 0 26px rgba(255,61,190,.3); }

/* Тосты — неон */
.toast { background: rgba(20,14,44,.92); backdrop-filter: blur(10px); border-color: rgba(139,92,255,.4); box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 24px rgba(139,92,255,.2); }
.toast-seal { border-color: var(--amber); box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 24px rgba(255,201,77,.25); }
.toast-betrayal { background: linear-gradient(135deg, #E5385F, #8B1E5A); }

/* Мелочи */
.eyebrow { letter-spacing: .14em; }
a { color: #FFD27A; }
::selection { background: rgba(255,61,190,.35); }
.hero h1 { display: inline-block; padding-right: .04em; }

/* ---------- 0.1.23 · Обучение: главы, пробные ходы, пакт целиком, раунд на примере ---------- */
.t-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.t-chapters button { font: 600 12px/1 var(--b); color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.t-chapters button.done { color: var(--text); border-color: #4a3f7a; }
.t-chapters button.on { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.t-chapters button:focus-visible, .t-try:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tc-art .t-try-box { width: 100%; display: grid; gap: 8px; color: #16161D; }
.t-try-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; }
.t-try-line b { font: 800 16px/1 var(--h); }
.t-try-btns { display: flex; gap: 6px; } .t-try-btns.two { display: grid; grid-template-columns: 1fr 1fr; }
.t-try { font: 800 15px/1 var(--h); min-width: 46px; padding: 10px 12px; border-radius: 10px; border: 2px solid #c9b996; background: #fff8ea; color: #16161D; cursor: pointer; transition: transform .12s; }
.t-try:hover { transform: translateY(-1px); } .t-try.on { background: #e0a22b; border-color: #a06d12; color: #16161D; }
.t-try.bad { border-color: #d9a3a0; } .t-try.bad.on { background: var(--red); border-color: #7c1c2c; color: #fff; }
.t-try-btns.two .t-try { font: 800 13px/1.2 var(--b); }
.t-res { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 8px 10px; font-size: 13px; animation: tRes .45s ease-out both; }
.t-res.wait { background: rgba(0,0,0,.05); color: #6B6458; font-style: italic; animation: none; }
.t-res.good { background: #e3f3e6; } .t-res.bad { background: #f8e1de; }
.t-res b { margin-left: auto; font-size: 13px; } .t-res .bars i { width: 14px; height: 8px; }
.tc-art .t-res .bars i.lost { animation: lose 1.2s ease-in .25s both; }
.t-res-why { font-size: 13px; line-height: 1.45; color: #3b3942; margin: 0; }
.t-phone.mini { width: auto; color: var(--text); font-size: 12px; } .t-phone.mini b { color: var(--head); } .t-phone.mini span { color: var(--muted); }
.t-morning { border-radius: 12px; padding: 10px; display: grid; gap: 6px; animation: tRes .5s ease-out both; }
.t-morning.good { background: #e3f3e6; } .t-morning.bad { background: #f8e1de; }
.tm-head { display: flex; align-items: center; gap: 6px; font: 800 13px/1 var(--h); }
.tm-line { display: grid; grid-template-columns: 20px 1fr; gap: 6px; font-size: 13px; line-height: 1.4; }
.tm-head svg, .tm-line svg { width: 18px; height: 18px; }
@keyframes tRes { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Купол и пять Огней */
.t-dome { position: relative; width: 100%; height: 132px; display: grid; place-items: end center; }
.td-dome { position: absolute; left: 8%; right: 8%; bottom: 26px; height: 100px; border-radius: 120px 120px 0 0; border: 2px solid rgba(55,226,255,.55); background: radial-gradient(ellipse at 50% 100%, rgba(139,92,255,.35), rgba(55,226,255,.06) 70%); box-shadow: 0 0 30px rgba(55,226,255,.25) inset; animation: domePulse 3.2s ease-in-out infinite; }
.td-lights { position: relative; display: flex; gap: 10px; margin-bottom: 30px; }
.td-lights span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,201,77,.15); box-shadow: 0 0 16px rgba(255,201,77,.6); color: var(--amber); }
.td-lights svg { width: 20px; height: 20px; }
.t-dome i { position: absolute; bottom: 0; font-size: 12px; color: var(--muted); }
@keyframes domePulse { 50% { box-shadow: 0 0 46px rgba(55,226,255,.4) inset; } }
/* Разные интересы, Тень днём и ночью */
.t-mcards.two { grid-template-columns: 1fr 1fr; } .t-vs { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.t-shadow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.t-shadow2 > div { border-radius: 12px; padding: 10px; display: grid; gap: 4px; justify-items: start; font-size: 12px; }
.t-shadow2 b { font: 800 14px/1 var(--h); }
.ts-day { background: linear-gradient(160deg, #FFE7A8, #F4B860); color: #2a1d05; }
.ts-night { background: linear-gradient(160deg, #2A1446, #0C0620); color: #E9DDFF; border: 1px solid #5b2f8f; }
.t-shadow2 svg { width: 22px; height: 22px; }
/* Пакт */
.t-pact-hero { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.tph-seal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #ffd56b, #c27d12); color: #2a1503; box-shadow: 0 0 18px rgba(255,201,77,.55); animation: stampIn .6s cubic-bezier(.2,1.6,.4,1) both; }
.tph-seal svg { width: 26px; height: 26px; }
.t-ph { width: 230px; } .t-ph .tp-row { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.t-ph .tp-row b { color: var(--head); text-align: right; }
.tp-offer { font-size: 12px; line-height: 1.5; color: var(--head); background: rgba(255,255,255,.05); border-radius: 8px; padding: 6px 8px; }
.t-stamp-anim { justify-self: center; font: 800 13px/1 var(--h); letter-spacing: .02em; color: var(--red2); border: 2px solid var(--red2); border-radius: 6px; padding: 5px 10px; transform: rotate(-7deg); animation: stampIn .7s cubic-bezier(.2,1.6,.4,1) .3s both; }
@keyframes stampIn { from { opacity: 0; transform: scale(2.2) rotate(-14deg); } to { opacity: 1; transform: scale(1) rotate(-7deg); } }
.tph-seal { --rot: 0deg; }
.t-cmp { width: 100%; display: grid; grid-template-columns: auto 1fr 1fr; gap: 1px; background: var(--paperline); border-radius: 10px; overflow: hidden; font-size: 12px; color: #16161D; }
.t-cmp > div { background: var(--paper2); padding: 6px 8px; line-height: 1.3; }
.t-cmp .tc-h { font: 800 12px/1.2 var(--h); background: var(--paper); } .t-cmp .tc-p { background: #fff2cf; font-weight: 700; }
.t-cmp .tc-h.tc-p { background: #e0a22b; }
.t-phone.mini svg { width: 18px; height: 18px; color: var(--amber); vertical-align: -3px; }
.t-cheat-col:last-child:nth-child(3) { grid-column: 1 / -1; }
/* Раунд на примере */
.t-fullround { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 0; counter-reset: fr; }
.t-fullround li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; position: relative; padding-bottom: 10px; }
.t-fullround li::before { content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: linear-gradient(var(--vio), transparent); }
.t-fullround li:last-child::before { display: none; }
.fr-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink3); border: 1px solid var(--vio); color: var(--amber); }
.fr-ic svg { width: 17px; height: 17px; }
.t-fullround b { display: block; font: 800 13px/1.2 var(--h); color: var(--head); }
.t-fullround span { font-size: 12.5px; line-height: 1.45; color: var(--text); }
/* Шпаргалка */
.t-cheat { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.t-cheat-col { background: var(--ink3); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; align-content: start; }
.t-cheat-col svg { width: 22px; height: 22px; color: var(--amber); } .t-cheat-col b { font: 800 13px/1.2 var(--h); color: var(--head); }
.t-cheat-col ul { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.45; }
/* Искры летят в общую сумму */
.tm-chips .t-chip { animation: chipIn .5s ease-out both; animation-delay: calc(var(--i, 0) * .3s); }
.tm-res.anim { animation: tRes .5s ease-out 1s both; }
@keyframes chipIn { from { opacity: 0; transform: translateY(-14px) scale(.8); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .t-res, .t-morning, .td-dome, .tph-seal, .t-stamp-anim, .tm-chips .t-chip, .tm-res.anim, .tc-art .t-res .bars i.lost { animation: none; }
}

/* ---------- 0.1.24 · Узкие телефоны (320–400px): ничего не вылезает за край ---------- */
.join-card label, .join-card input { min-width: 0; }
.join-card input { width: 100%; box-sizing: border-box; }
.systems:not(.big) .sys-top b { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; min-width: 0; }
.rr-name, .atk-name { min-width: 0; }
@media (max-width: 420px) {
  .atk { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 10px; }
  .atk > b { grid-column: 1 / -1; justify-self: start; font-size: 14px; }
  .atk-name { overflow-wrap: anywhere; }
  .res-row { grid-template-columns: minmax(0, 1fr) auto 26px; gap: 6px; padding: 8px; }
  .rr-name { white-space: normal; overflow-wrap: anywhere; }
  .res-row .bars.big i { width: 16px; }
  .suspect { padding: 8px; column-gap: 6px; }
  .suspect b { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.2; }
}
@media (max-width: 380px) {
  .systems:not(.big) { gap: 5px; }
  .systems:not(.big) .sys { padding: 7px 6px; }
  .systems:not(.big) .sys-top { font-size: 11px; gap: 4px; }
  .systems:not(.big) .sys-top .ic { width: 14px; height: 14px; }
  .tabs button { font-size: 12px; padding: 15px 0; letter-spacing: -.01em; }
}
/* Обучение на узком телефоне: строки картинок переносятся, а не вылезают */
.tc-art > * { max-width: 100%; min-width: 0; }
@media (max-width: 420px) {
  .tc-art { padding: 12px 8px; }
  .tcr-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tcr-row .tcr-price { grid-column: 2 / -1; justify-self: start; }
  .tcr-row b { min-width: 0; overflow-wrap: anywhere; }
  .t-out { grid-template-columns: auto 14px auto minmax(0, 1fr); }
  .t-out .to-sum { grid-column: 1 / -1; }
  .t-mcards.two { grid-template-columns: 1fr; }
  .t-try { min-width: 0; padding: 10px 9px; }
  .t-try-btns { flex-wrap: wrap; }
  .t-ph { width: 100%; }
  .t-ab { gap: 6px; }
  .t-kinds { gap: 6px; }
  .t-chapters button { padding: 6px 9px; }
}
.t-ph .tp-row b { width: auto; min-width: 0; text-align: right; }
.t-res { flex-wrap: wrap; }
@media (max-width: 420px) { .t-uses3 { gap: 4px; } .t-uses3 i { font-size: 10px; } .t-res b { margin-left: 0; } }
/* ---------- 0.1.24 · Нижняя панель действия: прочитал — жми внизу ---------- */
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
.bottombar .tabs { position: static; }
.dock { padding: 10px 14px 8px; background: linear-gradient(180deg, rgba(10,8,22,0), rgba(10,8,22,.86) 34%); }
.dock .btn { max-width: 612px; margin: 0 auto; display: block; box-shadow: 0 10px 30px rgba(255,170,60,.35), 0 0 0 1px rgba(255,220,140,.5) inset; }
.dock.done { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; background: rgba(20,16,41,.92); border: 1px solid rgba(139,92,255,.35); border-radius: 14px; padding: 9px 12px; margin-bottom: 8px; width: calc(100% - 24px); box-sizing: border-box; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dk-ok { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #2c6e4b; color: #c9ffe0; font-weight: 800; }
.dk-txt { display: grid; gap: 1px; min-width: 0; flex: 1; } .dk-txt b { color: var(--head); font-size: 14px; }
.dk-txt span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock.done .linkbtn { flex: none; font-size: 13px; }
.playpage.has-dock { padding-bottom: 150px; }
.now-next { margin: 10px 0 4px; font-size: 14px; color: var(--text); } .now-next b { color: var(--amber); }
@media (max-width: 380px) { .dock { padding: 8px 10px 6px; } .dock .btn.big { font-size: 16px; padding: 13px 12px; } .playpage.has-dock { padding-bottom: 140px; } }
.has-dock #toasts { bottom: 150px; }

/* ---------- 0.1.24 · Мистика и юмор: атмосфера по фазам, стикеры, мерцание ---------- */
/* Общий слой атмосферы — псевдоэлементы body, их не перерисовывает игра, эффект живёт всю фазу. */
body.playpage::before, body.boardpage::before, body.playpage::after, body.boardpage::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; }
/* Ночь: туман ползёт, а из темноты иногда смотрят глаза. */
body.ph-secret::before { opacity: 1; background:
  radial-gradient(ellipse 60% 30% at 20% 70%, rgba(150,170,255,.10), transparent 70%),
  radial-gradient(ellipse 50% 26% at 80% 40%, rgba(139,92,255,.10), transparent 70%),
  radial-gradient(ellipse 70% 24% at 50% 95%, rgba(55,226,255,.08), transparent 70%);
  background-size: 200% 100%; animation: fogDrift 38s ease-in-out infinite alternate; }
body.ph-secret::after { inset: auto; width: 64px; height: 20px; right: 7%; top: 34%; background:
  radial-gradient(circle at 25% 50%, #FFD36B 0 3px, rgba(255,190,80,.55) 4px, transparent 7px),
  radial-gradient(circle at 75% 50%, #FFD36B 0 3px, rgba(255,190,80,.55) 4px, transparent 7px);
  filter: drop-shadow(0 0 6px rgba(255,190,80,.8)); animation: eyes 17s ease-in-out infinite 4s; }
body.boardpage.ph-secret::after { width: 90px; height: 26px; right: 4%; top: 22%; }
@keyframes fogDrift { from { background-position: 0% 0, 100% 0, 50% 0; } to { background-position: 100% 0, 0% 0, 0% 0; } }
@keyframes eyes { 0%, 62%, 74%, 100% { opacity: 0; transform: scaleY(1); } 64% { opacity: 1; } 67% { transform: scaleY(.1); } 68% { transform: scaleY(1); } 72% { opacity: .9; } }
/* Тревога: красный скан проходит по экрану, края пульсируют. */
body.ph-crisis::before { opacity: 1; background: linear-gradient(180deg, transparent 0, rgba(255,60,90,.0) 40%, rgba(255,60,90,.22) 50%, rgba(255,60,90,0) 60%, transparent 100%); background-size: 100% 300%; animation: scan 2.6s ease-in-out 2 both; }
body.ph-crisis::after { opacity: 1; box-shadow: inset 0 0 90px rgba(229,56,95,.0); animation: alarm 3.2s ease-in-out infinite; }
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 0%; opacity: .2; } }
@keyframes alarm { 50% { box-shadow: inset 0 0 90px rgba(229,56,95,.28); } }
body.ph-crisis .narr b { animation: glitch 7s steps(1) infinite 1s; }
@keyframes glitch { 0%, 91%, 100% { text-shadow: none; transform: none; } 92% { text-shadow: 2px 0 #ff3d6e, -2px 0 #37e2ff; transform: translateX(1px); } 94% { text-shadow: -2px 0 #ff3d6e, 2px 0 #37e2ff; transform: translateX(-1px); } 96% { text-shadow: 1px 0 #ff3d6e, -1px 0 #37e2ff; transform: none; } }
/* Утро: рассвет поднимается снизу. */
body.ph-result::before { opacity: 1; background: radial-gradient(ellipse 90% 45% at 50% 115%, rgba(255,190,90,.30), rgba(255,120,150,.10) 50%, transparent 75%); animation: dawn 2.4s ease-out both; }
@keyframes dawn { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
/* Кто Тень?: луч прожектора медленно обшаривает комнату. */
body.ph-accuse::before { opacity: 1; background: radial-gradient(circle 220px at var(--sx, 30%) 30%, rgba(255,230,180,.10), transparent 70%), radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.45)); animation: search 14s ease-in-out infinite alternate; }
@property --sx { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@keyframes search { to { --sx: 75%; } }
/* Вскрытие: имя Тени зажигается неоном с перебоями. */
.shadow-name.anim { animation: neonOn 1.8s steps(1) both; }
@keyframes neonOn { 0% { opacity: 0; } 10% { opacity: 1; } 14% { opacity: .15; } 22% { opacity: 1; } 26% { opacity: .3; } 34%, 100% { opacity: 1; text-shadow: 0 0 34px rgba(255,61,110,.75), 0 0 80px rgba(255,61,190,.35); } }
/* Нарушенное слово: по карточке пробегает трещина. */
.notes li.note-betrayal { position: relative; overflow: hidden; }
.notes li.note-betrayal::after { content: ''; position: absolute; right: 10px; top: 0; width: 26px; height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 60'%3E%3Cpath d='M14 0 L9 14 L16 22 L8 36 L15 44 L11 60' fill='none' stroke='%23FF7C98' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .55; }
.notes li.note-betrayal.anim { animation: shake .45s ease-in-out 2; }
.notes li.note-betrayal.anim::after { animation: crackIn .6s ease-out both; }
@keyframes crackIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
/* Стикеры в новостях утра: немного зумерского юмора. */
.hl { position: relative; }
.sticker { position: absolute; right: 8px; top: -9px; font: 800 11px/1 var(--b); letter-spacing: .02em; padding: 4px 8px 5px; border-radius: 7px; transform: rotate(4deg); color: #140a26; background: #FFE36B; box-shadow: 0 3px 0 rgba(0,0,0,.25); white-space: nowrap; }
.sticker.s-bad, .sticker.s-warn { background: #FF8FB0; transform: rotate(-5deg); } .sticker.s-good, .sticker.s-ok { background: #9BF2C4; }
.sticker.s-clue { background: #9FE7F5; transform: rotate(-3deg); } .sticker.s-seal { background: #D9C5FF; }
.board .sticker { font-size: 14px; padding: 5px 10px 6px; right: 14px; top: -11px; }
.hl.anim .sticker { animation: stickIn .5s cubic-bezier(.2,1.7,.4,1) both .35s; }
@keyframes stickIn { from { opacity: 0; transform: scale(2.2) rotate(-18deg); } }
.hl { padding-right: 96px; } .board .hl { padding-right: 130px; }
@media (max-width: 420px) { .hl { padding-right: 12px; padding-top: 14px; } }
.wc-fun { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
/* Главная: пять Огней Купола — один иногда гаснет. */
.hero-lights { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 6px; }
.hero-lights span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #FFD36B; background: radial-gradient(circle, rgba(255,201,77,.22), rgba(255,201,77,.04) 70%); box-shadow: 0 0 18px rgba(255,201,77,.45); animation: flame 3.4s ease-in-out infinite; animation-delay: calc(var(--d) * -.7s); }
.hero-lights span svg { width: 20px; height: 20px; }
.hero-lights span:nth-child(4) { animation: flame 3.4s ease-in-out infinite, dieOut 11s steps(1) infinite 3s; }
.hero-lights i { font-style: italic; font-size: 13px; color: var(--muted); flex-basis: 100%; }
@keyframes flame { 50% { box-shadow: 0 0 26px rgba(255,201,77,.7); transform: translateY(-1px); } }
@keyframes dieOut { 0%, 70%, 100% { opacity: 1; filter: none; } 71% { opacity: .25; filter: grayscale(1); } 73% { opacity: .9; } 74% { opacity: .2; filter: grayscale(1); } 86% { opacity: .2; filter: grayscale(1); } 87% { opacity: 1; filter: none; } }
/* Контент — над слоем атмосферы. */
body.playpage > #app, body.boardpage > #app, .phead, .bottombar { position: relative; z-index: 2; }
.bottombar { position: fixed; z-index: 20; }
.phead { position: sticky; z-index: 10; }
@media (prefers-reduced-motion: reduce) {
  body.playpage::before, body.boardpage::before, body.playpage::after, body.boardpage::after, body.ph-crisis .narr b,
  .shadow-name.anim, .notes li.note-betrayal.anim, .notes li.note-betrayal.anim::after, .hl.anim .sticker, .hero-lights span { animation: none !important; }
  body.ph-secret::after { opacity: 0; }
}
/* «Предложить пакт» — яркая кнопка с печатью: сразу видно, что на неё жмут. */
.pact-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; padding: 12px 14px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(135deg, #7A4DFF 0%, #B347E8 55%, #FF3DBE 100%); box-shadow: 0 10px 28px rgba(139,92,255,.45), 0 0 0 1px rgba(255,255,255,.18) inset; transition: transform .12s, box-shadow .12s; }
.pact-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(255,61,190,.45), 0 0 0 1px rgba(255,255,255,.25) inset; }
.pact-cta:active { transform: translateY(1px) scale(.99); }
.pact-cta:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.pc-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFE08A, #F2A93B 60%, #B86E12); color: #3a1d00; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.3); }
.pc-ic svg { width: 22px; height: 22px; }
.pc-txt { display: grid; gap: 2px; min-width: 0; } .pc-txt b { font: 800 17px/1.15 var(--h); color: #fff; } .pc-txt small { font-size: 12px; color: rgba(255,255,255,.82); }
.pc-go { font: 800 22px/1 var(--h); color: #fff; opacity: .9; }
@media (prefers-reduced-motion: reduce) { .pact-cta { transition: none; } }
/* ---------- 0.1.24 · Кнопки по размеру текста, а не во всю ширину ---------- */
.btn.wide { width: auto; min-width: min(240px, 100%); max-width: 100%; display: block; margin: 10px auto; }
.btn.big { padding: 13px 26px; font-size: 17px; }
.dock { text-align: center; }
.dock .btn, .dock .btn.wide { display: inline-block; width: auto; min-width: 0; max-width: 100%; margin: 0 auto; padding: 13px 28px; }
.pact-cta { width: fit-content; max-width: 100%; margin: 12px auto 4px; padding: 10px 16px 10px 10px; gap: 10px; }
.pc-ic { width: 38px; height: 38px; } .pc-ic .ic, .pc-ic svg { width: 20px; height: 20px; }
.pc-txt b { font-size: 16px; }
.headlines { overflow-x: clip; padding-top: 6px; }
@keyframes stickIn { from { opacity: 0; transform: scale(1.5) rotate(-12deg); } }
@media (max-width: 380px) { .dock .btn.big, .dock .btn { padding: 12px 20px; font-size: 16px; } }
.dock { background: linear-gradient(180deg, rgba(10,8,22,0) 0, rgba(10,8,22,.92) 38%, rgba(10,8,22,.97)); padding-top: 18px; }
.bottombar .tabs { background: rgba(12,9,28,.96); }
/* ---------- 0.1.24 · Шкала раунда: шаги на одной линии, крупный номер раунда ---------- */
.steps.v2 { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; padding: 12px 14px 10px; margin: 2px 0 14px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(170,150,255,.22); }
.steps.v2 .st-round { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.sr-lbl { font: 700 12px/1 var(--b); letter-spacing: .08em; color: var(--muted); }
.sr-n { font: 900 34px/0.9 var(--h); background: linear-gradient(135deg, #FFE08A, #FF9F43 55%, #FF3DBE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-of { font: 700 14px/1 var(--b); color: var(--text); }
.sr-pips { display: inline-flex; gap: 5px; margin-left: auto; align-self: center; }
.sr-pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255,201,77,.45); }
.sr-pips i.done { background: rgba(255,201,77,.55); border-color: transparent; }
.sr-pips i.on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 10px rgba(255,201,77,.8); transform: scale(1.2); }
.st-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.st-track::before, .st-track::after { content: ''; position: absolute; top: 15px; height: 3px; border-radius: 3px; left: calc(100% / var(--n) / 2); }
.st-track::before { right: calc(100% / var(--n) / 2); background: rgba(170,150,255,.22); }
.st-track::after { width: calc((100% - 100% / var(--n)) * var(--i) / (var(--n) - 1)); background: linear-gradient(90deg, #FFC94D, #FF9F43); box-shadow: 0 0 10px rgba(255,170,60,.5); transition: width .6s ease; }
.steps.v2 .st-track li, body .steps.v2 .st-track li.on, body .steps.v2 .st-track li.done { display: grid; box-shadow: none; justify-items: center; gap: 5px; position: relative; z-index: 1; min-width: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.st-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #171230; border: 2px solid rgba(170,150,255,.35); color: var(--muted); }
.st-dot .ic, .st-dot svg { width: 16px; height: 16px; }
.st-t { font: 700 clamp(10px, 2.9vw, 12px)/1.15 var(--b); color: var(--muted); text-align: center; letter-spacing: -.01em; }
.steps.v2 .st-track li.done .st-dot { background: linear-gradient(135deg, #FFE08A, #FF9F43); border-color: transparent; color: #2a1500; }
.steps.v2 .st-track li.done .st-t { color: var(--text); }
.steps.v2 .st-track li.on .st-dot { background: #1d1440; border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 4px rgba(255,201,77,.18), 0 0 18px rgba(255,201,77,.55); animation: stepGlow 2.4s ease-in-out infinite; }
.steps.v2 .st-track li.on .st-t { color: var(--amber); font-weight: 800; }
@keyframes stepGlow { 50% { box-shadow: 0 0 0 7px rgba(255,201,77,.10), 0 0 26px rgba(255,201,77,.75); } }
body.ph-secret .steps.v2 .st-track li.on .st-dot { border-color: #9FE7F5; color: #9FE7F5; box-shadow: 0 0 0 4px rgba(55,226,255,.15), 0 0 18px rgba(55,226,255,.55); }
body.ph-secret .steps.v2 .st-track li.on .st-t { color: #9FE7F5; }
/* Табло (крупно): номер раунда слева, шкала справа. */
.steps.v2.big { grid-template-columns: auto 1fr; gap: 26px; margin: 16px 28px 0; padding: 14px 22px; }
.steps.v2.big .st-round { flex-direction: column; align-items: flex-start; gap: 4px; }
.steps.v2.big .sr-n { font-size: 52px; } .steps.v2.big .sr-pips { margin-left: 0; }
.steps.v2.big .st-dot { width: 40px; height: 40px; } .steps.v2.big .st-dot svg, .steps.v2.big .st-dot .ic { width: 20px; height: 20px; }
.steps.v2.big .st-track::before, .steps.v2.big .st-track::after { top: 19px; }
.steps.v2.big .st-t { font-size: 15px; }
/* В обучении — просто шкала. */
.steps.v2.t-steps { width: 100%; background: none; border: 0; padding: 4px 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .steps.v2 .st-track li.on .st-dot { animation: none; } .st-track::after { transition: none; } }
.steps.v2 ol.st-track { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; flex-wrap: nowrap; margin: 0; padding: 0; }
/* ---------- 0.1.24 · Одна шапка вместо двух: голос ведущего — заголовок карточки «Сейчас» ---------- */
.now-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed rgba(170,150,255,.25); }
.now-head b { display: block; font: 800 20px/1.2 var(--h); color: var(--head); }
.now-head span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.now-head.alarm .medal { border-color: var(--red); color: var(--red2); box-shadow: 0 0 16px rgba(229,56,95,.45); }
.now-head.alarm b { color: #FFD9E0; }
.now-head.night .medal { border-color: #8fa2ee; color: #b9c5f5; }
.now-head.dawn .medal { border-color: #e8a07c; color: #f2c0a4; }
.now-head.accuse .medal, .now-head.dusk .medal { border-color: var(--red2); color: var(--red2); box-shadow: 0 0 16px rgba(255,124,152,.4); }
body.ph-crisis .now-head b { animation: glitch 7s steps(1) infinite 1s; }
@media (prefers-reduced-motion: reduce) { body.ph-crisis .now-head b { animation: none; } }

/* ---------- 0.1.25 · Бренд SHENTUM: длинное слово помещается на любом экране ---------- */
.hero h1 { font-size: clamp(42px, 13.5vw, 150px); letter-spacing: -.02em; }
.logo { font-size: clamp(38px, 12vw, 64px); letter-spacing: -.02em; background: linear-gradient(100deg, #FFF3D6 0%, #FFC94D 30%, #FF5CB8 62%, #9B6BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.brand { letter-spacing: .02em; }

/* ---------- 0.1.25 · Девиз под логотипом ---------- */
.motto { margin: .35em 0 0; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; line-height: 1.3;
  font-size: clamp(10px, 3.1vw, 34px); color: #FFE2A8; opacity: .88; }
.hero .motto { margin: -.1em 0 .9em; width: max-content; max-width: 100%; }
.join-wrap .motto { font-size: clamp(9px, 2.3vw, 12px); margin: .2em 0 .6em; }
