/* =====================================================================
   Онлайн-квиз. Две темы: .theme-game (игрок, экран трансляции — «сцена»)
   и .theme-admin (конструктор и пульт — рабочий инструмент).
   ===================================================================== */

:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* светлая рабочая тема */
  --bg: #f4f5f8;
  --bg-2: #eceef4;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --line: #dfe2ea;
  --text: #1b1e2b;
  --muted: #5b6173;  /* подсказки: контраст ≥ 5:1 на всех фонах админки (9.4, читаемость) */
  --accent: #e8900c;
  --accent-ink: #1b1e2b;
  --primary: #3a45c9;
  --primary-ink: #ffffff;
  --ok: #1f9d63;
  --ok-bg: #e3f6ec;
  --bad: #d23b4b;
  --bad-bg: #fbe7e9;
  --warn: #b7700b;
  --warn-bg: #fdf1dc;
  --focus: 0 0 0 3px rgba(58, 69, 201, .28);
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 4px 16px rgba(20, 24, 40, .06);
}

/* сцена: игрок и экран трансляции */
.theme-game {
  --bg: #0d1024;
  --bg-2: #141838;
  --surface: #181d42;
  --surface-2: #20265a;
  --line: #2c3370;
  --text: #f1f2ff;
  --muted: #9ca3d4;
  --accent: #ffb547;
  --accent-ink: #1a1400;
  --primary: #ffb547;
  --primary-ink: #1a1400;
  --ok: #3ddc97;
  --ok-bg: rgba(61, 220, 151, .14);
  --bad: #ff6b7a;
  --bad-bg: rgba(255, 107, 122, .14);
  --warn: #ffc86b;
  --warn-bg: rgba(255, 181, 71, .14);
  --focus: 0 0 0 3px rgba(255, 181, 71, .45);
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
body.theme-game {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 181, 71, .13), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(98, 88, 255, .16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--primary); }
.theme-game a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; margin-top: 1.4em; }
code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.pad { padding: 24px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.upper { text-transform: uppercase; }
.w80 { width: 90px !important; }

.error { color: var(--bad); margin: 8px 0; }
.ok { color: var(--ok); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.row--end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 18px; align-items: start; }

/* ------------------------------------------------------------ элементы форм */
input, select, textarea {
  font: inherit; color: var(--text);
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.theme-game input, .theme-game select { background: var(--bg-2); }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--primary); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary); }
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--primary); }
input.invalid { border-color: var(--bad); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: .92rem; color: var(--text); font-weight: 500; }  /* подпись — обычным текстом, подсказка — .hint (9.4) */

.check { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 4px 0; }

.btn {
  font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .08s, background .15s, border-color .15s, opacity .15s;
  color: var(--text);
  background: var(--surface-2);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }

.btn--ok.active { background: var(--ok); color: #fff; border-color: var(--ok); }

.btn--bad.active { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn--sm { padding: 5px 10px; font-size: .88rem; }
.btn--lg { padding: 13px 22px; font-size: 1.05rem; }
.btn--xl { padding: 16px 26px; font-size: 1.15rem; min-width: 260px; }
.iconbtn { font-size: 1.15rem; background: transparent; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.iconbtn:hover { background: var(--surface-2); }
.linkbtn { background: none; border: 0; padding: 0 4px; color: var(--primary); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.danger { color: var(--bad); }
.chip {
  font: inherit; font-size: .84rem; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); margin: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.notice { background: var(--warn-bg); color: var(--text); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; }
.notice--warn { border-left: 4px solid var(--warn); }

/* =====================================================================
   ИГРОК
   ===================================================================== */
.app--player { display: flex; flex-direction: column; }   /* высота и прокрутка — в разделе «Прокрутка» ниже */

.join { flex: 1; display: grid; place-items: center; padding: 16px; }
.join__card { width: 100%; max-width: 480px; }
.join__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 14px; }
.join__title { font-size: 1.6rem; }
.join__form { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.join__team { padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); margin-bottom: 10px; }
.teampick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.teampick__btn { font: inherit; padding: 12px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; }
.teampick__btn.on { border-color: var(--accent); background: var(--warn-bg); font-weight: 700; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__team { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__talkshort { display: none; }
@media (max-width: 1000px) { .topbar__talkshort { display: inline; } }

.conn { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.conn i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.conn--online i, .conn--poll i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.conn--reconnecting i, .conn--connecting i { background: var(--warn); animation: blink 1s infinite; }
.conn__text { display: none; }
.conn--reconnecting .conn__text { display: inline; }
@keyframes blink { 50% { opacity: .3; } }

.soundpanel { position: relative; }
.soundpanel__pop {
  position: absolute; right: 0; top: 110%; z-index: 30;
  width: 290px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.soundpanel__row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 4px; font-size: .9rem; }
.soundpanel__row--master span { font-weight: 700; }
.soundpanel__pct { min-width: 3em; text-align: right; font-variant-numeric: tabular-nums; }
.soundpanel__nosound { font-size: .85rem; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.soundpanel__foot { align-items: center; }
.soundpanel__done { min-width: 44px; min-height: 44px; }
.soundpanel__icon { position: relative; z-index: 41; }

.soundbar {
  position: sticky; top: 52px; z-index: 19;
  margin: 8px 16px 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-align: center; cursor: pointer;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 181, 71, .2); } }

.announce {
  position: relative; z-index: 4; /* над декоративными слоями тем (сцена «Аркады») */
  margin: 10px 16px 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #5b4bff, #8a4bff); color: #fff; font-weight: 600;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow);
}
.drop-enter-active, .drop-leave-active { transition: all .35s var(--ease); }
.drop-enter-from, .drop-leave-to { opacity: 0; transform: translateY(-12px); }

.stage { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 16px; position: relative; }
.stage__title { font-size: 1.8rem; text-align: center; margin: 12px 0 18px; }

.lobby { display: flex; flex-direction: column; gap: 14px; }
.soundcheck { text-align: center; }
.soundcheck.ok { border-color: var(--ok); }
.memo ol { margin: 8px 0 0; padding-left: 20px; }
.memo li { margin: 4px 0; }

/* заставка раунда */
.round-intro { text-align: center; padding: 24px 8px; animation: rise .5s var(--ease); }
.round-intro__kicker { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.round-intro__name { font-size: clamp(1.8rem, 6vw, 3rem); margin: 8px 0 14px; }
.round-intro__img { max-width: 100%; max-height: 40vh; border-radius: var(--radius); margin: 8px 0 14px; }
.round-intro__desc { font-size: 1.1rem; color: var(--muted); }
.round-intro__rules { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-align: left; max-width: 640px; margin: 14px auto 0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.ready { text-align: center; padding: 60px 8px; animation: rise .4s var(--ease); }
.ready__kicker { color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ready__num { font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 800; margin: 10px 0; }

/* вопрос */
.question { display: flex; flex-direction: column; gap: 14px; position: relative; animation: rise .35s var(--ease); }
.qhead { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: .9rem; color: var(--muted); }
.qhead > * { min-width: 0; overflow-wrap: anywhere; }  /* длинное название раунда без пробелов не расширяет страницу */
.qhead__num { color: var(--text); font-weight: 700; }
.qhead__pts { margin-left: auto; color: var(--accent); font-weight: 600; }
.question__text { font-size: clamp(1.15rem, 3.2vw, 1.5rem); font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.hint { color: var(--muted); font-size: max(13px, .88rem); line-height: 1.45; }
.review__kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }

/* таймер */
.timer { display: flex; align-items: center; gap: 14px; }
.timer__digits { font-size: 2.2rem; font-weight: 800; min-width: 2.2em; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.timer__icon { font-size: 1.6rem; color: var(--accent); }
.timer__side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.timer__bar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.timer__fill { height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--accent), #ffd98a); transition: transform .12s linear; }
.timer__label { font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.timer__squeeze { font-weight: 700; color: var(--accent); font-size: .95rem; animation: squeezein .4s ease-out; }
.timer--big .timer__squeeze { font-size: 1.4rem; }
@keyframes squeezein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.less-motion .timer__squeeze { animation: none; }
.timer--urgent .timer__digits { color: var(--bad); animation: throb 1s infinite; }
.timer--urgent .timer__fill { background: linear-gradient(90deg, var(--bad), #ff9aa4); }
.timer--paused .timer__digits { color: var(--muted); }
.timer--ended .timer__digits { color: var(--muted); }
.timer--reading .timer__fill, .timer--media .timer__fill { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--line) 10px, var(--line) 20px); animation: slide 1s linear infinite; background-size: 28px 28px; }
@keyframes throb { 50% { transform: scale(1.12); } }
@keyframes slide { to { background-position: 28px 0; } }
.timer--big .timer__digits { font-size: 5rem; min-width: 2em; }
.timer--big .timer__bar { height: 18px; }
.timer--big .timer__label { font-size: 1.2rem; }

/* медиа */
.media { border-radius: var(--radius); overflow: hidden; }
.media__img { display: block; max-width: 100%; max-height: 50vh; margin: 0 auto; border-radius: var(--radius); cursor: zoom-in; }
.media__img--zoom { max-height: none; cursor: zoom-out; }
.media__video { width: 100%; max-height: 55vh; background: #000; border-radius: var(--radius); display: block; }
.media__audio { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.media__audio audio { flex: 1; min-width: 200px; }
.media__audio-label { font-weight: 600; }
.media__wave { display: flex; gap: 3px; align-items: center; height: 26px; }
.media__wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--accent); display: block; }
.media__audio.is-playing .media__wave i { animation: wave 1s infinite ease-in-out; }
.media__wave i:nth-child(2) { animation-delay: .1s !important; } .media__wave i:nth-child(3) { animation-delay: .2s !important; }
.media__wave i:nth-child(4) { animation-delay: .3s !important; } .media__wave i:nth-child(5) { animation-delay: .4s !important; }
.media__wave i:nth-child(6) { animation-delay: .5s !important; } .media__wave i:nth-child(7) { animation-delay: .6s !important; }
@keyframes wave { 50% { height: 24px; } }
.media--big .media__img { max-height: 58vh; }

/* варианты */
.options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stage { container-type: inline-size; }
@container (min-width: 520px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option {
  font: inherit; color: var(--text); text-align: left;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; min-height: 58px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
button.option:hover:not(:disabled) { border-color: var(--muted); }
.option:disabled { cursor: default; opacity: .8; }
.option__letter { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); font-weight: 800; flex: none; }
.option__text { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.option__hint { width: 100%; font-size: .8rem; color: var(--accent); }
.option.chosen { border-color: var(--accent); background: var(--warn-bg); }
.option.chosen .option__letter { background: var(--accent); color: var(--accent-ink); }
.option.armed { border-style: dashed; border-color: var(--accent); }
.option.correct { border-color: var(--ok); background: var(--ok-bg); }
.option.correct .option__letter { background: var(--ok); color: #062015; }
.options--static .option { cursor: default; }

.answerform { display: flex; gap: 8px; }
.answerform input { font-size: 1.1rem; padding: 13px 14px; }
.answerform .btn { flex: none; }

.confirm { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.confirm p { margin: 0; flex-basis: 100%; }

.teamanswer { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--accent); }
.teamanswer--none { border-left-color: var(--line); }

.reveal { background: var(--ok-bg); border: 1px solid var(--ok); border-radius: var(--radius); padding: 16px 18px; animation: rise .4s var(--ease); }
.reveal__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); font-weight: 700; }
.reveal__answer { font-size: 1.5rem; font-weight: 800; margin: 4px 0; }
.reveal__expl { color: var(--text); opacity: .9; }
.reveal__img { max-width: 100%; max-height: 40vh; border-radius: var(--radius-sm); margin-top: 10px; display: block; }
.reveal--big .reveal__answer { font-size: 2.6rem; }
.reveal--big .reveal__expl { font-size: 1.3rem; }

.pause-overlay { position: absolute; inset: -8px; display: grid; place-items: center; background: rgba(13, 16, 36, .66); backdrop-filter: blur(3px); border-radius: var(--radius); z-index: 5; }
.pause-overlay span { font-size: 2.4rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* таблица */
.board { text-align: center; }
.final__kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.final__title { font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 8px 0 18px; overflow-wrap: anywhere; }
.myplace { margin: 0 0 14px; font-size: 1.1rem; }
.scores { text-align: left; max-width: 640px; margin: 0 auto; }
.scores__title { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; margin-bottom: 8px; }
.scores__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scores__row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.scores__row.is-me { border-color: var(--accent); background: var(--warn-bg); }
.scores__place { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-weight: 800; flex: none; }
.scores__row.place-1 .scores__place { background: #ffd35c; color: #3a2a00; }
.scores__row.place-2 .scores__place { background: #d7dbea; color: #22263a; }
.scores__row.place-3 .scores__place { background: #e0a26b; color: #2d1500; }
.scores__team { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.scores__score { font-weight: 800; font-size: 1.2rem; }
.scores__delta { font-size: .85rem; font-weight: 700; }
.scores__delta.up { color: var(--ok); }
.scores__delta.down { color: var(--bad); }
.rank-move { transition: transform .8s var(--ease); }
.scores--big { max-width: 1000px; }
.scores--big .scores__row { padding: 16px 22px; font-size: 1.5rem; }
.scores--big .scores__place { width: 48px; height: 48px; }
.scores--big .scores__score { font-size: 2rem; }

/* телефон: плотнее */
@media (max-width: 520px) {
  .stage { padding: 12px; }
  .timer__digits { font-size: 1.8rem; }
  .answerform { flex-direction: column; }
  .topbar { padding: 8px 12px; }
  /* шапка телефона — одна строка (V2.30): команда с многоточием и значки; эмблема, имя и «на весь экран» — не здесь */
  .topbar--game { flex-wrap: nowrap; gap: 6px; padding: 6px 10px; }
  .topbar--game > .tbrand, .topbar--game .topbar__me, .topbar--game .fsbtn { display: none; }
  .topbar--game .topbar__team { font-size: .92rem; }
  .topbar--game .msgbtn { padding: 5px 7px; }
  .topbar--game .msgbtn__short { display: none; }
  .topbar--game .topbar__talk { padding: 4px 7px; }
  .topbar--game .conn__text { display: none; }
  /* телефон (замечание 8): нижняя панель; значок 🔊 вверху остаётся виден и закрывает её */
  .soundpanel__pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; z-index: 40; max-height: 70vh; overflow-y: auto;
    border-radius: var(--radius) var(--radius) 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .soundpanel__done { flex: 1 1 auto; min-height: 48px; font-size: 1.05rem; }
}

/* =====================================================================
   ЭКРАН ТРАНСЛЯЦИИ
   ===================================================================== */
.app--screen { display: flex; flex-direction: column; }
.screen-tools { position: fixed; right: 12px; top: 10px; z-index: 40; display: flex; gap: 6px; align-items: center; opacity: .25; transition: opacity .2s; }
.screen-tools:hover { opacity: 1; }
.screen-center { flex: 1; display: grid; place-items: center; text-align: center; padding: 24px; }
.stage--screen { max-width: 1500px; padding: 32px 48px; font-size: 1.3rem; }
.stage--screen .question__text { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.stage--screen .qhead { font-size: 1.3rem; }
.stage--screen .round-intro__name { font-size: clamp(2.6rem, 6vw, 5rem); }
.stage--screen .round-intro__desc, .stage--screen .round-intro__rules { font-size: 1.5rem; }
.stage--screen .ready__num { font-size: 5rem; }
.screen-q { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.screen-q:has(.screen-q__media) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.options--big .option { font-size: 1.6rem; padding: 18px 22px; }
.options--big .option__letter { width: 48px; height: 48px; font-size: 1.4rem; }
.answered { font-size: 1.3rem; color: var(--muted); }
.screen-lobby { text-align: center; padding-top: 3vh; }
.screen-lobby__cover { max-width: 60%; max-height: 40vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.screen-lobby__title { font-size: clamp(2.4rem, 5vw, 4.5rem); margin: 24px 0 10px; }
.screen-lobby__desc { font-size: 1.5rem; color: var(--muted); }
.screen-lobby__join { font-size: 1.8rem; margin: 26px 0; }
.screen-lobby__join b { color: var(--accent); }
.board--big .final__title { font-size: 4rem; }

/* =====================================================================
   АДМИНКА
   ===================================================================== */
.admin { min-height: 100vh; }

.nav a.on, .nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav .linkbtn { color: #c7cbef; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: #151934; }

.empty { text-align: center; padding: 60px 20px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }

.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }

@media (max-width: 760px) {
  .teams-table thead { display: none; }
  .teams-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .teams-table td { border: 0; padding: 0; }
}

/* редактор */

@media (max-width: 900px) { .editor__body { grid-template-columns: 1fr; } }

.tree__item.on { background: #e6e8fb; color: var(--primary); font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; min-width: 0; }
.form.locked { opacity: .75; }

.seg button.on { background: var(--primary); color: #fff; }

.progress { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; background: var(--primary); transition: width .2s; }

.library__item .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }

/* пульт ведущего */
.host { max-width: 1500px; margin: 0 auto; padding: 16px 20px 60px; overflow-wrap: anywhere; }  /* длинные слова без пробелов (вопрос, команда, ответ) не расширяют пульт */

.host__links .conn__text { display: inline; }

@media (max-width: 1000px) { .host__grid { grid-template-columns: minmax(0, 1fr); } }

.control .timer { margin-bottom: 14px; }

.tiebreak { margin-top: 14px; box-shadow: none; }

.tchip { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-weight: 500; }
.tchip.on { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.groups { display: flex; flex-direction: column; gap: 6px; }
.group { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 5px; }
.group--correct { border-left-color: var(--ok); }
.group--incorrect { border-left-color: var(--bad); }
.group--pending, .group--mixed { border-left-color: var(--warn); background: var(--warn-bg); }

@media (max-width: 640px) { .group { grid-template-columns: 1fr; } .group__verdict { justify-content: flex-start; } }
.vbadge { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
.vbadge--correct { background: var(--ok-bg); color: var(--ok); }
.vbadge--incorrect { background: var(--bad-bg); color: var(--bad); }
.vbadge--pending, .vbadge--mixed { background: var(--warn-bg); color: var(--warn); }

.review-nav__btn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.review-nav__btn.warn:not(.on) { background: var(--warn-bg); }

.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets .chip { text-align: left; }

.player { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 4px; font-size: .92rem; }

.player:hover .player__actions { opacity: 1; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

.adjlist li.cancelled { text-decoration: line-through; color: var(--muted); }

/* модальные окна, уведомления */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 18, 38, .55); display: grid; place-items: center; padding: 16px; }
.modal__box { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 20px 22px; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }

.modal--wide .modal__box { max-width: 1500px; }

.toast { background: #151934; color: #fff; padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow); animation: rise .25s var(--ease); }
.toast--warn { background: var(--warn); }
.toast--error { background: var(--bad); color: #fff; }

/* предпросмотр */
.preview { padding: 14px; }

@media (max-width: 1400px) { .preview__frames { grid-template-columns: 360px minmax(0, 1fr); } .pframe--screen { grid-column: 1 / -1; } }
@media (max-width: 800px) { .preview__frames { grid-template-columns: 1fr; } }

.stage--screen .round-intro__rules { max-width: 1100px; }
.stage--screen .screen-lobby__teams .tag { font-size: 1.3rem; padding: 8px 18px; }

/* ---------- v3 */

.scores__tb { font-weight: 500; color: var(--muted); font-size: .8em; }
.memo-body h3 { margin-top: 0; }
.memo-body ol { padding-left: 20px; margin: 8px 0 14px; }
.memo-body li { margin: 6px 0; }
.memo-body p { margin: 6px 0; }
.join__memo { margin-top: 16px; }
.join__memo summary { cursor: pointer; color: var(--accent); }
.theme-game .modal__box { background: var(--surface); border: 1px solid var(--line); }
.help h3 { margin-top: 0; }
.help ol, .help ul { padding-left: 22px; }
.help li { margin: 6px 0; }

.help .memo-body { background: var(--surface-2); padding: 12px 16px; border-radius: var(--radius-sm); }

/* ---------- сообщения ведущему */
.msgbtn { position: relative; white-space: nowrap; }
.msgbtn__badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.msgbox { display: flex; flex-direction: column; gap: 10px; }
.msgbox h3 { margin: 0; }
.thread { max-height: 34vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--bg-2); border-radius: var(--radius-sm); }
.thread__msg { padding: 8px 10px; border-radius: 10px; background: var(--surface); max-width: 88%; align-self: flex-end; }
.thread__msg--host { align-self: flex-start; border-left: 3px solid var(--accent); }
.thread__meta { font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.messages .row { margin-bottom: 8px; }

.hmsg--new { border-left-color: var(--bad); background: var(--bad-bg); }
.hmsg--read { border-left-color: var(--warn); }
.hmsg--resolved { border-left-color: var(--ok); opacity: .75; }

@media (max-width: 520px) { .msgbtn { padding: 5px 8px; } }

/* ---- v3.1: медиатека, состояние сервиса */

.statgrid .panel { margin: 0; }

code.break { word-break: break-all; }

/* ---- волна 1: эффекты поверх игры (не перекрывают поле ответа надолго, отключаются «меньше анимаций») */
.timer--final3 .timer__digits { font-size: 3.4rem; color: var(--bad); animation: shake .35s infinite; }
.timer--big.timer--final3 .timer__digits { font-size: 7rem; }
@keyframes shake { 0%, 100% { transform: translate(0, 0) } 25% { transform: translate(-2px, 1px) rotate(-2deg) } 75% { transform: translate(2px, -1px) rotate(2deg) } }

.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; display: grid; place-items: center; }
.fx-layer > * { grid-area: 1 / 1; }
.fx-vs, .fx-plaque { opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.fx-vs.is-on, .fx-plaque.is-on { opacity: 1; transform: scale(1); }
.fx-vs { background: rgba(8, 10, 30, .92); color: #fff; border-radius: 22px; padding: 28px 36px; text-align: center; box-shadow: 0 20px 80px rgba(0, 0, 0, .5); max-width: 92vw; }
.fx-vs__kicker { text-transform: uppercase; letter-spacing: .2em; color: #ffb547; font-weight: 800; margin-bottom: 14px; }
.fx-vs__row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.fx-vs__card { background: #20265a; border: 2px solid #ffb547; border-radius: 16px; padding: 14px 22px; min-width: 140px; }
.fx-vs__name { font-size: 1.4rem; font-weight: 800; }
.fx-vs__score { font-size: 2.4rem; font-weight: 900; color: #ffb547; }
.fx-vs__vs { font-size: 2.6rem; font-weight: 900; color: #ff6b7a; text-shadow: 0 0 18px rgba(255, 107, 122, .6); }
.fx-plaque { background: linear-gradient(135deg, #ffb547, #ff6b7a); color: #1a1400; border-radius: 20px; padding: 22px 40px; text-align: center; box-shadow: 0 20px 80px rgba(0, 0, 0, .4); }
.fx-plaque__title { font-size: clamp(2rem, 7vw, 4.5rem); font-weight: 900; letter-spacing: .04em; }
.fx-plaque__sub { font-size: 1.2rem; font-weight: 700; }
.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; }

.dist { margin-top: 14px; display: grid; gap: 6px; }
.dist__title { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dist__row { display: grid; grid-template-columns: minmax(80px, 1.2fr) 2fr 3.2em; gap: 10px; align-items: center; font-size: .95rem; }
.dist__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist__bar { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.dist__bar i { display: block; height: 100%; background: var(--muted); border-radius: 6px; transition: width .6s var(--ease); }
.dist__row--ok .dist__bar i { background: var(--ok); }
.dist__row--ok .dist__label { color: var(--ok); font-weight: 700; }
.dist__row--muted { color: var(--muted); }
.dist__pct { text-align: right; font-variant-numeric: tabular-nums; }
.reveal--big .dist__row { font-size: 1.3rem; }
.reveal--big .dist__bar { height: 18px; }

/* саундборд на пульте */

.soundboard .btn.is-playing { outline: 2px solid var(--primary); }

/* «меньше анимаций»: без тряски, конфетти, пульсаций */
.less-motion *, .less-motion *::before, .less-motion *::after { animation: none !important; transition-duration: .01ms !important; }

/* ---- общий чат */
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 0; height: 100%; }
.chat__list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 120px; max-height: 420px; padding-right: 4px; }
.chatside .chat__list { max-height: none; }
.chat__msg { font-size: .92rem; line-height: 1.35; padding: 6px 9px; border-radius: 10px; background: var(--surface-2); position: relative; }
.chat__msg--host { background: var(--warn-bg); border-left: 3px solid var(--accent); }
.chat__msg--me { background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.chat__who { font-weight: 700; font-size: .82rem; overflow-wrap: anywhere; }
.chat__who small { font-weight: 400; color: var(--muted); }
.chat__time { float: right; font-size: .72rem; color: var(--muted); margin-left: 8px; }
.chat__del { float: right; }
.chat__text { word-break: break-word; white-space: pre-wrap; }
.chat__form { display: flex; gap: 6px; position: relative; }
.chat__form input { flex: 1; min-width: 0; }
.chat__pause { position: absolute; inset: -2px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.chat__melt { width: 70%; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.chat__melt i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform .2s linear; }

/* игрок: справа колонка на широком экране, выезжающая панель на узком */
.chatside { display: none; }
.chatside--open { display: flex; flex-direction: column; gap: 8px; position: fixed; z-index: 40; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px; }
.chatside--open { left: 8px; right: 8px; bottom: 8px; height: 62vh; border-radius: 16px; }
@media (min-width: 721px) { .chatside--open { left: auto; width: 420px; } }
.chatside__head { display: flex; justify-content: space-between; align-items: center; }

/* реакции */
.reactbar { position: fixed; left: 12px; bottom: 12px; z-index: 35; display: flex; gap: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; box-shadow: var(--shadow); }
.reactbar__btn { font-size: 1.3rem; background: none; border: 0; cursor: pointer; padding: 2px 4px; border-radius: 8px; }
.reactbar__btn:disabled { opacity: .45; cursor: default; }
.reactbar__btn:not(:disabled):hover { transform: scale(1.15); }
.react-layer { position: fixed; inset: 0; pointer-events: none; z-index: 55; }
.react-fly { position: absolute; bottom: 60px; font-size: 2rem; animation: reactfly 2.2s var(--ease) forwards; opacity: 0; }
@keyframes reactfly { 0% { transform: translate(0, 0) scale(.6); opacity: 0 } 15% { opacity: 1 } 100% { transform: translate(var(--drift), -55vh) scale(1.1); opacity: 0 } }
.react-tally { position: absolute; left: 14px; bottom: 64px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: 1.05rem; box-shadow: var(--shadow); animation: fadeout 2.6s forwards; }
@keyframes fadeout { 0%, 70% { opacity: 1 } 100% { opacity: 0 } }
.app--screen ~ .react-layer .react-fly, .react-layer .react-fly { will-change: transform, opacity; }
.chatside--open ~ .reactbar { bottom: calc(62vh + 16px); }

/* =====================================================================
   ЛОГОТИП QUIZ ENGINE (постановка, раздел 9.8)
   Задаётся одна сторона, вторая — по пропорциям файла; без теней, обводок и перекраски.
   Свободное поле — не меньше четверти высоты логотипа.
   ===================================================================== */
.brand { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.brand--lockup { width: auto; }
/* эмблема: не уже 160 px — меньше не читается подпись на ленте */
.join { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.brand--join { width: clamp(160px, 42vw, 240px); margin: 8px auto 28px; }
.brand--lobby { width: clamp(160px, 30vw, 220px); margin: 4px auto 18px; }
.brand--final { width: clamp(160px, 22vw, 240px); margin: 0 auto 22px; }
.brand--screen-lobby { width: auto; height: clamp(110px, 20vh, 260px); margin: 0 auto 2.5vh; }
.screen-lobby:has(.brand--screen-lobby) { padding-top: 1vh; }
.screen-lobby .screen-lobby__cover { max-height: 24vh; }
.screen-lobby .screen-lobby__title { margin-top: 2.5vh; }
.screen-lobby .screen-lobby__join { margin: 2.5vh 0; }
.brand--break { width: auto; height: clamp(120px, 22vh, 320px); margin: 1vh auto 2vh; }
.board--big .brand--final { width: auto; height: clamp(180px, 26vh, 300px); }
@media (min-width: 1200px) {
  .brand--join { width: 320px; }
}
@media (max-height: 700px) {
  .brand--lobby, .brand--final { width: 160px; margin-bottom: 12px; }
}
/* знак с надписью: 32 px в шапках служебных экранов */

.brand--nav { height: 32px; }
.brand--login { height: 32px; margin: 4px 0 14px; }
.about { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand--about { height: 32px; }

/* заставка начала игры */
.fx-splash { display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; transform: scale(.9);
  transition: opacity .45s var(--ease), transform .45s var(--ease); }
.fx-splash.is-on { opacity: 1; transform: scale(1); }
.fx-splash img { width: auto; height: min(56vh, 70vw); }
.fx-splash__sub { font-size: clamp(1.1rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.fx-layer:has(.fx-splash.is-on) { background: rgba(8, 10, 26, .82); transition: background .4s; }
.less-motion .fx-splash { transform: none; transition: opacity .2s; }

/* выбор темы в конструкторе */
.mt0 { margin-top: 0; }

.themepick__btn.on { border-color: var(--primary); box-shadow: var(--focus); }

.themepick__btn--clean .themepick__sw i:nth-child(1) { background: #F3F5F8; } .themepick__btn--clean .themepick__sw i:nth-child(2) { background: #FFFFFF; } .themepick__btn--clean .themepick__sw i:nth-child(3) { background: #2950D8; }
.themepick__btn--corp .themepick__sw i:nth-child(1) { background: #F3F5F8; } .themepick__btn--corp .themepick__sw i:nth-child(2) { background: #FFFFFF; } .themepick__btn--corp .themepick__sw i:nth-child(3) { background: #0F7B6C; }
.themepick__btn--arcade .themepick__sw i:nth-child(1) { background: linear-gradient(180deg, #1B0548, #9B1C74); } .themepick__btn--arcade .themepick__sw i:nth-child(2) { background: #FF2E97; } .themepick__btn--arcade .themepick__sw i:nth-child(3) { background: #2DE2E6; }
.themepick__btn--stage .themepick__sw i:nth-child(1) { background: #0d1024; } .themepick__btn--stage .themepick__sw i:nth-child(2) { background: #181d42; } .themepick__btn--stage .themepick__sw i:nth-child(3) { background: #ffb547; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; display: inline-grid; place-items: center; overflow: hidden; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.preview__frames.t-arcade .pframe__viewport { background: linear-gradient(180deg, #07011A, #1B0548 60%, #4A0C66); }
input[type="color"] { padding: 3px; height: 40px; cursor: pointer; }
.theme-game { font-family: var(--font); }

.fx-splash img { max-width: 80vw; object-fit: contain; }
.fx-splash--corp img { height: auto; max-height: 28vh; width: auto; max-width: 60vw; }

.conflict { align-items: flex-start; }
.defaults .panel h3 { margin-top: 18px; }
.defaults .panel h3.mt0 { margin-top: 0; }

/* ---------------------------------------------------------------- счётчики реакций (V1.5.1) */
.reactbar__btn { display: inline-flex; align-items: baseline; gap: 3px; }
.reactbar__n { font-size: .85rem; font-weight: 800; color: var(--text); opacity: .8; font-variant-numeric: tabular-nums; }
.reacttotals { display: grid; gap: 4px; margin: 6px 0 10px; }
.reacttotals__i { margin-left: 10px; white-space: nowrap; }

/* ---------------------------------------------------------------- подсказки и отмена вопроса (V1.6) */
.hintbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--warn-bg); color: var(--text); border-left: 4px solid var(--warn); }
.hintbox--offer { background: transparent; border: 1px dashed var(--line); border-left: 4px solid var(--warn); }
.qcancel { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- айдентика команд, награды, пасхалки (V1.6) */
.tavatar { flex: none; display: inline-block; vertical-align: middle; image-rendering: pixelated; }
.topbar__avatar { margin-right: 8px; align-self: center; }
.teamstyle { display: grid; gap: 12px; text-align: left; }
.teamstyle__head { display: flex; gap: 16px; align-items: center; }
.teamstyle__head p { margin: 4px 0 8px; }
.teamstyle__colors { display: flex; flex-wrap: wrap; gap: 8px; }
.teamstyle__colors .swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; position: relative; }
.teamstyle__colors .swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.teamstyle__colors .swatch.taken::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.teamstyle__cry input { flex: 1; min-width: 0; }
.warn-text { color: var(--warn); font-weight: 600; margin: 0; }
.cries { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: left; }
.cry { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--line); border-left: 6px solid var(--team, var(--accent)); }
.cry__team { font-weight: 700; font-size: .9em; }
.cry__text { font-size: 1.1em; font-weight: 600; font-style: italic; }
.round-intro--big .cries { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.awards { display: grid; gap: 10px; margin: 8px 0 18px; }
.awards--row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 18px; }
.award { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.award--mine { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.award--fresh { animation: awardin .5s var(--ease); }
.award__icon { font-size: 2rem; line-height: 1; width: 2.6rem; flex: none; text-align: center; }
.award__title { font-weight: 800; font-size: 1.1rem; }
.award__teams { font-weight: 700; color: var(--accent); }
.award__why { font-size: .9rem; color: var(--muted); }
.award--big { max-width: 900px; margin: 2vh auto; padding: 3vh 4vw; gap: 3vw; }
.award--big .award__icon { font-size: 9vh; width: auto; }
.award--big .award__title { font-size: 5vh; }
.award--big .award__teams { font-size: 4vh; }
.award--big .award__why { font-size: 2.4vh; }
@keyframes awardin { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

.fx-award { opacity: 0; transform: scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease);
  background: linear-gradient(135deg, #ffd56b, #ff8a5c); color: #1a1400; border-radius: 22px; padding: 26px 48px; text-align: center;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .4); max-width: min(92vw, 720px); }
.fx-award.is-on { opacity: 1; transform: scale(1); }
.fx-award__icon { font-size: 4rem; line-height: 1.1; }
.fx-award__title { font-size: 2rem; font-weight: 800; }
.fx-award__teams { font-size: 1.4rem; font-weight: 700; margin-top: 6px; }
.fx-coin { position: fixed; top: -40px; font-size: 1.8rem; animation: coinfall 2.4s linear forwards; pointer-events: none; z-index: 80; }
@keyframes coinfall { to { transform: translateY(110vh) rotate(540deg); } }
.brand--lobby { cursor: default; user-select: none; }

/* ---------------------------------------------------------------- аудиопульт ведущего (V1.7) */

/* ---------------------------------------------------------------- мини-экран «что видят игроки» (V1.7) */

/* режим просмотра на экранах игрока и трансляции: ничего нажать нельзя */
.app--preview .stage, .app--preview .sidecol, .app--preview .chatside, .app--preview .reactbar, .app--preview .playgrid { pointer-events: none; }
.app--preview .topbar .btn, .app--preview .topbar .iconbtn, .app--preview .soundpanel, .app--preview .soundbar, .app--preview .fsbtn { display: none !important; }
.is-preview { overflow: hidden; }

/* ---------------------------------------------------------------- «Команда готова» (V1.7) */
.readycard { text-align: center; display: grid; gap: 8px; justify-items: center; }
/* «Команда готова» нажата (замечание 49): контраст текста не ниже 4,5:1 (31.2) — тёмный текст на зелёном; надпись
   не сжимается под ширину — кнопка шире */
.btn--ready { background: var(--ok); color: var(--ok-ink, #06210F); border-color: var(--ok); }
.btn--ready, .readycard .btn, .showcase-plaque .btn { white-space: nowrap; flex: none; min-width: max-content; }
.tag--ready { border-color: var(--ok); color: var(--ok); }

/* ---------------------------------------------------------------- растущие списки (V1.7) */
.chat { position: relative; }
.chat__list { resize: vertical; }
.chat__new { position: absolute; left: 50%; transform: translateX(-50%); bottom: 58px; z-index: 2; border: 0; border-radius: 999px; padding: 6px 14px;
  background: var(--primary); color: var(--primary-ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }

/* плейлист музыки между фазами (6.10) */

/* захват пульта (9.2) */

/* отзыв после игры (9.1) */
.feedback { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 18px auto 0; text-align: left; }
.feedback__stars { display: flex; gap: 4px; }
.feedback__star { font-size: 2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--line); padding: 2px 4px; }
.feedback__star.on { color: #f5b301; }
.feedback__star:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.feedback textarea { width: 100%; }
.teampick__btn--any { border-style: dashed; }
.waiting .soundcheck { margin: 12px 0; }
/* рассадка и зрители в пульте */

/* эфир ведущего */

.onair-badge .linkbtn { color: #fff; text-decoration: underline; }

@keyframes onairPulse { 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .onair-badge { animation: none; } }

/* игрок и экран: плашка «Ведущий говорит» */
.onair-plaque { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 30; background: #d92d20; color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.25); display: flex; gap: 8px; align-items: center; pointer-events: none; }
.onair-plaque small { font-weight: 500; opacity: .9; }
.app--screen .onair-plaque { top: 18px; font-size: 1.3rem; }
/* группы настроек: в «Настройках» — навигация слева { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
@media (min-width: 900px) {
}

/* автопилот на пульте */
.autopilot { display: flex; flex-direction: column; gap: 8px; }

.ap-switch button.on.m-manual { background: #64748b; color: #fff; }
.ap-switch button.on.m-semi { background: #d97706; color: #fff; }
.ap-switch button.on.m-auto { background: #16a34a; color: #fff; }

/* обратный отсчёт у игроков и на экране */
.ap-countdown { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 25; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; box-shadow: var(--shadow); font-weight: 600; font-size: 1.15rem; pointer-events: none; }
.ap-countdown b { font-variant-numeric: tabular-nums; }
.app--screen .ap-countdown { font-size: 1.8rem; bottom: 28px; }
/* промежуточные экраны: крупный отсчёт в начале экрана, по центру (замечание 3, V2.3) */
.apc { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .3em .5em; margin: 4px auto 18px; padding: 10px 22px;
  width: fit-content; max-width: 100%; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.apc__label { font-size: 1.25rem; font-weight: 600; color: var(--muted); }
.apc__num { font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent, var(--primary)); }
.apc__unit { font-size: 1.25rem; font-weight: 600; color: var(--muted); }
.app--screen .apc__label, .app--screen .apc__unit { font-size: 2rem; }
.app--screen .apc__num { font-size: 5.5rem; }

/* «Проверить ответ» в редакторе (V2.1) */

.verdict--correct { color: var(--ok, #2e9e5b); }
.verdict--pending { color: var(--warn); }
.verdict--incorrect { color: var(--bad, #d64545); }

/* Аварийный режим пульта (V2.1) */

.weight { margin: 4px 0 8px; }

/* Церемония финала (27.1, V2.3): заголовок, таблица рекордов, грамота */
.cer { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.cer__title { margin: 4px 0 0; text-align: center; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: .01em; line-height: 1.15;
  background: linear-gradient(90deg, #D4A51E, #F5D76E, #D4A51E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cer--big .cer__title { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.hiscore { text-align: left; width: 100%; max-width: 760px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.cer--big .hiscore { max-width: 1200px; }
.hiscore__head, .hiscore__row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) 5.5em minmax(3em, auto); align-items: center; gap: 10px; padding: 8px 14px; }
.hiscore__head { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hiscore__body { max-height: min(60vh, 640px); overflow-y: auto; }
.cer--big .hiscore__body { max-height: 62vh; }
.hiscore__row { border-top: 1px solid var(--line); font-size: 1.05rem; }
.cer--big .hiscore__row { font-size: 1.6rem; padding: 12px 22px; }
.hiscore__num { text-align: right; font-variant-numeric: tabular-nums; }
.hiscore__place { font-weight: 800; font-size: 1.2em; font-variant-numeric: tabular-nums; }
.hiscore__place small { font-size: .55em; margin-left: 1px; }
.hiscore__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hiscore__name { font-weight: 700; overflow-wrap: anywhere; }
.hiscore__swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.hiscore__score { font-weight: 800; }
.hiscore__awards { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; }
.hiscore__award { position: relative; border: 0; background: none; padding: 0 2px; font-size: 1.2em; line-height: 1; cursor: help; }
.hiscore__tip { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 3; white-space: nowrap; font-size: .8rem; font-weight: 600; padding: 4px 8px;
  border-radius: 6px; background: var(--text); color: var(--surface); }
.hiscore__row.place-1 { background: linear-gradient(90deg, rgba(245, 215, 110, .38), transparent 70%); }
.hiscore__row.place-2 { background: linear-gradient(90deg, rgba(200, 206, 216, .45), transparent 70%); }
.hiscore__row.place-3 { background: linear-gradient(90deg, rgba(222, 160, 104, .35), transparent 70%); }
.hiscore__row.place-1 .hiscore__place { color: #B8860B; }
.hiscore__row.place-2 .hiscore__place { color: #7D8696; }
.hiscore__row.place-3 .hiscore__place { color: #A0602A; }
.hiscore__row.is-me { outline: 3px solid var(--primary); outline-offset: -3px; }
.cer--fresh .hiscore__row { animation: hiIn .5s var(--ease) both; animation-delay: calc(2.5s + var(--i) * .08s); }
@keyframes hiIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.less-motion .cer--fresh .hiscore__row { animation: none; }
.cer__after { width: 100%; display: flex; flex-direction: column; align-items: center; }
.cer__certs { font-size: 1.6rem; font-weight: 700; margin: 6px 0 0; }
@media (max-width: 520px) {
  .hiscore__head, .hiscore__row { grid-template-columns: 3.2em minmax(0, 1fr) 3.6em auto; gap: 6px; padding: 8px 10px; }
  .hiscore__head { font-size: .66rem; letter-spacing: .02em; }
}
.finalplaque { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin: 10px 0; }
.finalplaque__text { font-size: 1.1rem; }
.finalplaque__btn { width: min(100%, 360px); }
.fx-champagne { position: fixed; left: 50%; bottom: -80px; font-size: 6rem; transform: translateX(-50%); animation: champ 3s var(--ease) forwards; z-index: 81; }
.fx-champagne--pixel { image-rendering: pixelated; filter: drop-shadow(0 0 12px #FF2E97); }
@keyframes champ { 0% { bottom: -80px; transform: translateX(-50%) rotate(-30deg); } 40% { bottom: 35vh; transform: translateX(-50%) rotate(15deg); } 70% { bottom: 30vh; transform: translateX(-50%) rotate(-10deg) scale(1.15); } 100% { bottom: 30vh; opacity: 0; transform: translateX(-50%) rotate(0) scale(1.3); } }
#print-cert { display: none; }
@media print {
  body.printing-cert > *:not(#print-cert) { display: none !important; }
  body.printing-cert #print-cert { display: block; width: 100vw; height: 100vh; overflow: hidden; }
  body.printing-cert #print-cert img { width: 100vw; height: 100vh; object-fit: contain; display: block; }
  @page { size: A4 landscape; margin: 0; }
}
.hallstrip { margin: 10px auto; max-width: 720px; text-align: center; font-size: .95rem; }
.hallstrip--big { font-size: 1.25rem; max-width: 1100px; margin-top: 24px; }
.hallstrip__list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: .9em; }

@media (max-width: 860px) { .certmaker__grid { grid-template-columns: 1fr; } }

/* Сцены и живые фоны (V2.2, scene.js) */
.scenes { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scenes__item { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
/* «Фокус на вопросе» (33.10, V2.42): на время вопроса сцена стоит (scenefreeze.js), размыта и частично обесцвечена.
   Фильтр ложится на неподвижный кадр; интерфейс и вопрос не размываются (они не внутри .scenes / .fx2-under). */
.scenes, .fx2-under { transition: filter var(--focus-ms, 1s) var(--ease), transform var(--focus-ms, 1s) var(--ease); }
.scene-frozen .scenes, .scene-frozen .fx2-under:not(.fx2-under--battle):not(.fx2-live) {
  filter: blur(var(--focus-blur, 6px)) grayscale(var(--focus-gray, .6)) brightness(.92); transform: scale(1.04); }   /* без светлого ореола размытия у краёв окна */
.scenes__item.is-on { opacity: 1; }
.scene2 { position: absolute; inset: 0; overflow: hidden; }
.scene2__box { position: absolute; overflow: hidden; }
.scene2__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene2__layer { position: absolute; display: block; height: auto; will-change: transform, opacity; }
.scene2__ribbon { display: flex; }
.scene2__ribbon img { display: block; height: auto; flex: none; }
.scene2--pixel img { image-rendering: pixelated; image-rendering: crisp-edges; }
.scene2__dim { position: absolute; inset: 0; background: #000; }
.less-motion .scene2__layer, .less-motion .scene2__ribbon { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .scene2__layer, .scene2__ribbon { animation: none !important; } }
/* содержимое — над сценой в любой теме */
.theme-game .stage, .theme-game .playgrid, .theme-game .join, .theme-game .screen-center { position: relative; z-index: 1; }
@media (max-width: 900px) { }
.layer { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }

.spv__frame .scene2 { position: absolute; }

.focuspick img.pixel { image-rendering: pixelated; }

.row.wrap { flex-wrap: wrap; }

.layer__builtin img.pixel { image-rendering: pixelated; }

/* Fair play (9.4, V2.3): текст вопроса и вариантов у игрока не выделяется */
.fairplay .question__text, .fairplay .option__text, .fairplay .option__letter, .fairplay .reveal, .fairplay .hintbox {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

/* выпадающее меню (меню «Экспорт» квиза, V2.3) */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }

.menu__item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none;
  color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
.menu__item:hover, .menu__item:focus-visible { background: var(--surface-2); }
.menu__item small { color: var(--muted); font-size: .8rem; }

/* спецэффекты ведущего (раздел 19, V2.3): надпись в стиле «Паники» — один вид во всех темах */
/* как «Паника» в V1.6 (замечание 4): жёлтая полоса во всю ширину по центру, прямые углы, Russo One заглавными */
.fx-say { pointer-events: none; justify-self: stretch; width: 100vw; padding: 22px 4vw; border-radius: 0; text-align: center;
  background: rgba(249, 200, 14, .94); color: #120330; font: 400 clamp(1.8rem, 6vw, 4.2rem)/1.15 "Russo One", "Exo 2", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 0 0 4px #120330, 0 16px 60px rgba(0, 0, 0, .35);
  opacity: 0; transform: scaleY(.6); transition: opacity .25s var(--ease), transform .25s var(--ease); overflow-wrap: anywhere; }
.fx-say.is-on { opacity: 1; transform: none; }
.fx-say--still, .less-motion .fx-say { transform: none; transition: opacity .2s linear; }
.fx-eimg { pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.fx-eimg.is-on { opacity: 1; }
.fx-eimg img { display: block; max-width: min(40vw, 420px); max-height: 38vh; object-fit: contain; }
.fx-eimg--tl { justify-self: start; align-self: start; margin: 16px; }
.fx-eimg--tr { justify-self: end; align-self: start; margin: 16px; }
.fx-eimg--bl { justify-self: start; align-self: end; margin: 16px; }
.fx-eimg--br { justify-self: end; align-self: end; margin: 16px; }
.fx-eimg--above { transform: translateY(calc(-50% - 70px)); }
.fx-eimg--tl img, .fx-eimg--tr img, .fx-eimg--bl img, .fx-eimg--br img { max-width: min(26vw, 260px); max-height: 26vh; }

/* «Настройки» → «Спецэффекты» */

/* банк вопросов (V2.5, раздел 9.9) */

@media (max-width: 960px) { .bank__body { grid-template-columns: 1fr; } }

.bank__versions li.on { font-weight: 700; }

.bankfilters .row { flex-wrap: wrap; gap: 6px; }

.bankitem.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }

.diff td { vertical-align: top; }

/* сцена из арт-пака (V2.3.1, artpack.js): холст 2560×1440, масштабируется целиком */
.ap { position: absolute; inset: 0; overflow: hidden; background: #12081F; }
.ap__frame { position: absolute; inset: 0; overflow: hidden; }
.ap__box { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.ap__img, .ap-spot { position: absolute; display: block; max-width: none; }
.ap-spot { opacity: 0; }
.ap-star { position: absolute; display: block; max-width: none; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.ap-meteors { overflow: hidden; }
.ap-meteor { position: absolute; background: linear-gradient(90deg, rgba(255, 236, 255, 0), rgba(255, 236, 255, .95)); border-radius: 3px; transform-origin: 100% 50%; will-change: transform, opacity; }
.ap__layer { position: absolute; inset: 0; }
/* сцена «Поезд» (33.9): слои ставит trainscene.js в координатах холста */
.tr-box .tr-l { position: absolute; left: 0; top: 0; pointer-events: none; }
.tr-fps { position: fixed; left: 8px; top: 8px; z-index: 60; background: rgba(18,8,31,.85); color: #19E6FF; font: 600 13px/1.3 system-ui, sans-serif;
  padding: 4px 8px; border: 1px solid #5B1E6B; font-variant-numeric: tabular-nums; pointer-events: none; }
/* запуск ракеты на сцене победы (33.7): трясётся только обёртка сцены; части запуска — без событий мыши */
.ap__shake { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ap-part, .ap-ship { position: absolute; display: block; max-width: none; pointer-events: none; user-select: none; }
.rocket-go { position: fixed; z-index: 38; font-family: "Press Start 2P", "Courier New", monospace; color: #12081F; background: #FFE14D;
  border: 0; box-shadow: 6px 6px 0 #FF2BD6; letter-spacing: .04em; cursor: pointer; line-height: 1.2; }
.rocket-go:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #FF2BD6; }
.rocket-go:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #FF2BD6; }
.rocket-go:focus-visible { outline: 4px solid #19E6FF; outline-offset: 4px; }
.rocket-go.rocket-go-leave-active { transition: opacity .4s ease-in, transform .4s ease-in; pointer-events: none; }
.rocket-go.rocket-go-leave-to, .rocket-go.rocket-go-leave-to:hover, .rocket-go.rocket-go-leave-to:active { opacity: 0; transform: translateY(24px); }
.ap-mover { position: absolute; left: 0; top: 0; will-change: transform; }
.ap-mover img { display: block; max-width: none; }
.ap-glint { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ap-glint__band { position: absolute; top: 0; bottom: 0; left: 0; opacity: 0; will-change: transform, opacity; }
.ap-crt { pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, var(--scan)) 0 2px, transparent 2px 5px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, var(--vig)) 100%); }
.less-motion .ap__img { animation: none !important; }

/* режим витрины (9.1): интерфейс уходит (0,6 с) и открывает сцену; возвращается за 0,3 с */
.app--player .topbar, .app--player .playgrid, .app--player .chatside, .app--player .reactbar, .app--player .tfoot, .app--player .soundbar, .app--player .ap-countdown {
  transition: opacity .3s var(--ease), visibility 0s linear 0s; }
.app--showcase .topbar, .app--showcase .playgrid, .app--showcase .chatside, .app--showcase .reactbar, .app--showcase .tfoot,
.app--showcase .soundbar, .app--showcase .ap-countdown {
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.less-motion .app--player .topbar, .less-motion .app--player .playgrid, .less-motion .app--player .chatside, .less-motion .app--player .reactbar,
.less-motion .app--player .tfoot { transition: none !important; }
.showcase-plaque { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; max-width: calc(100vw - 32px); background: rgba(18, 8, 31, .9); color: #F6EEFF; border: 2px solid var(--accent, #19E6FF);
  border-radius: 12px; cursor: pointer; font-weight: 600; }
.showcase-plaque__team { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showcase-plaque__chat { font-weight: 700; }
.showcase-toggle { position: fixed; right: 14px; bottom: 14px; z-index: 31; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(246, 238, 255, .5);
  background: rgba(18, 8, 31, .82); color: #F6EEFF; font: 600 .85rem/1.2 inherit; cursor: pointer; }
.app--showcase .showcase-toggle { opacity: .8; }
/* V2.31: «Свернуть всё» не наезжает на карточку лобби — место под кнопкой внизу страницы */
.app--sctoggle { padding-bottom: 58px; }
@media (max-width: 720px) { .showcase-plaque { bottom: 60px; } }

/* ---------------------------------------------------------------- метаигра (V2.6, раздел 29) */
.tactics { position: relative; display: inline-flex; align-items: center; }
.tactics__btn { white-space: nowrap; }
.tactics__q { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; border: 1px solid currentColor; font-size: .75em; margin-left: 2px; }
.tactics__toast { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px 12px; font-size: .9rem; width: max-content; max-width: min(80vw, 360px); }
.tactics__rules { max-width: 560px; }
.tactics__item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.tactics__icon { flex: 0 0 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 800; }
.tactics-slot { display: flex; flex-direction: column; gap: 8px; margin: 12px auto 0; max-width: 640px; width: 100%; }
.joker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; border-left: 4px solid var(--accent); }
.joker--on { background: var(--ok-bg); border-left-color: var(--ok); }
.modcard { margin: 14px auto; max-width: 640px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--accent); text-align: center; }
.modcard__title { font-size: clamp(1.4rem, 6vw, 2.4rem); font-weight: 900; letter-spacing: .06em; color: var(--accent); }
.modcard__rule { margin-top: 6px; }
.modcard--super { border-color: var(--warn); } .modcard--super .modcard__title { color: var(--warn); }
.modcard--wager { border-color: var(--primary); } .modcard--wager .modcard__title { color: var(--primary); }
.modcard--big { max-width: 1000px; font-size: 1.4rem; }
.modbadges { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.modbadge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); margin-right: 4px; }
.modbadge--super { background: var(--warn); color: #120330; }
.modbadge--wager { background: var(--primary); color: var(--primary-ink, #fff); }
.modbadge--joker { background: var(--ok); color: #fff; }
.wager { margin: 12px auto; max-width: 640px; text-align: left; border-left: 4px solid var(--primary); }
.wager__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wager__left { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wager__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.wager__chip { min-width: 3em; min-height: 44px; font-size: 1.1rem; font-weight: 700; justify-content: center; }
.wager-result { margin: 12px 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 800; font-size: 1.15rem; text-align: center; }
.wager-result.is-win { background: var(--ok-bg); color: var(--ok); }
.wager-result.is-lose { background: var(--bad-bg); color: var(--bad); }
.wager-result.is-pending { background: var(--warn-bg); color: var(--warn); }
.wager-screen { margin: 18px auto; font-size: 2rem; font-weight: 800; }
.burnwarn { margin: 0; }
.tacticslist { margin-top: 14px; text-align: left; }
.tacticslist ul { margin: 6px 0 0; padding-left: 1.2em; }
.hosttactics { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.hosttactics__pause { margin: 0; }
.wagerhost__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

@media (max-width: 560px) { .tactics__word { display: none; }
  .tactics__toast { position: fixed; top: 8px; left: 12px; right: 12px; width: auto; max-width: none; } }

/* ---------------------------------------------------------------- босс-баттл (V2.7, раздел 30; 33.6) */
.bt { position: absolute; inset: 0; overflow: hidden; background: #12081F; color: #F6EEFF; --alarm: #FF2B4E; --bt-yel: #FFE14D; --bt-cyan: #19E6FF; --bt-mag: #FF2BD6;
  font-family: "Exo 2", var(--font, system-ui), sans-serif; touch-action: manipulation; }
.bt-box { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.bt-world { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; }
.bt-char { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.bt-char__bob, .bt-char__act, .bt-char__flip { position: absolute; inset: 0; transform-origin: 50% 100%; }
.bt-char__img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; user-select: none; }
.bt-flash { opacity: 0; }
.bt-hidden { visibility: hidden; }
.bt--edit .bt-char { pointer-events: auto; cursor: grab; outline: 4px dashed var(--bt-yel); outline-offset: 8px; }
.bt--edit { cursor: default; }
.bt-ret { position: absolute; border: 2px solid rgba(255, 43, 78, .28); box-sizing: border-box; opacity: 0; pointer-events: none; }
.bt-ret.on { opacity: 1; }
.bt-ret .c { position: absolute; width: 64px; height: 64px; border: 0 solid var(--alarm); filter: drop-shadow(0 0 6px rgba(255, 43, 78, .8)); animation: btbreathe 1s ease-in-out infinite alternate; }
.bt-ret .tl { left: -8px; top: -8px; border-width: 8px 0 0 8px; } .bt-ret .tr { right: -8px; top: -8px; border-width: 8px 8px 0 0; }
.bt-ret .bl { left: -8px; bottom: -8px; border-width: 0 0 8px 8px; } .bt-ret .br { right: -8px; bottom: -8px; border-width: 0 8px 8px 0; }
/* подписи рамки цели и союзников — на плашках (31.2, замечание 50, V2.42): мелкий пиксельный текст поверх арены */
.bt-ret b { position: absolute; font: 22px/1 "Press Start 2P", monospace; color: var(--alarm); letter-spacing: .06em; white-space: nowrap; background: rgba(18, 8, 31, .9); padding: 6px 8px;
  text-shadow: 2px 2px 0 #12081F, -2px -2px 0 #12081F, 2px -2px 0 #12081F, -2px 2px 0 #12081F; }
.bt-ret .t1 { left: 0; top: -56px; color: var(--bt-yel); } .bt-ret .t2 { right: 0; top: -56px; animation: btlock 1s steps(1) infinite; }
.bt-ret .t3 { left: 0; bottom: -52px; font-size: 18px; color: #FF8FA3; } .bt-ret .t4 { right: 0; bottom: -52px; font-size: 18px; color: #FF8FA3; }
.bt-ret .scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 43, 78, .55), transparent) top / 100% 3px no-repeat; animation: btscan 4s linear infinite; }
@keyframes btbreathe { from { opacity: .65; } to { opacity: 1; } }
@keyframes btlock { 0%, 60% { opacity: 1; } 62%, 98% { opacity: .25; } }
@keyframes btscan { 0% { background-position: 0 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { background-position: 0 100%; opacity: 0; } }
.bt--still .bt-ret .c, .bt--still .bt-ret .t2 { animation: none; }
.bt-allytag { position: absolute; pointer-events: none; }
.bt-allytag b { font: 20px/1 "Press Start 2P", monospace; color: var(--bt-cyan); letter-spacing: .06em; white-space: nowrap; text-shadow: 2px 2px 0 #12081F, -2px -2px 0 #12081F; background: rgba(18, 8, 31, .9); padding: 6px 8px; }
.bt-zone { position: absolute; border: 4px dashed rgba(255, 225, 77, .85); background: rgba(255, 225, 77, .08); pointer-events: none; box-sizing: border-box; }
.bt-zone span { position: absolute; left: 16px; top: 10px; font: 22px "Press Start 2P", monospace; color: var(--bt-yel); text-shadow: 2px 2px 0 #12081F; }
.bt-sfx { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; pointer-events: none; }
.bt-muz { position: absolute; width: 160px; height: 160px; opacity: 0; max-width: none; }
.bt-dmg { position: absolute; font: 64px "Press Start 2P", monospace; color: #fff; text-shadow: 4px 4px 0 var(--alarm), -2px -2px 0 #12081F; white-space: nowrap; }
.bt-dmg--crit { color: var(--bt-yel); }
/* жизнь боссов кодом (V2.25, 33.12–33.13; bosslife.js): координаты — пиксели спрайта внутри персонажа */
.bt-life { position: absolute; inset: 0; pointer-events: none; }
.bt-char--boss { --eng: 25, 230, 255; --engHot: 200, 252, 255; }
.bt-char--boss.bl-rage { --eng: 255, 60, 230; --engHot: 255, 205, 250; }
.bl-plume { position: absolute; transform-origin: 50% 0; }
.bl-plume i { position: absolute; inset: 0; transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(var(--engHot), .95) 0%, rgba(var(--eng), .7) 18%, rgba(var(--eng), .32) 50%, rgba(var(--eng), .1) 78%, rgba(var(--eng), 0) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.bl-pulse { position: absolute; border-radius: 50%; border: 7px solid rgba(var(--engHot), .95); box-shadow: 0 0 14px 4px rgba(var(--eng), .8), inset 0 0 10px 2px rgba(var(--eng), .6); opacity: 0; animation: blpulse 1.2s linear infinite; }
@keyframes blpulse { 0% { opacity: 0; transform: translateY(0) scale(.7, .6); } 15% { opacity: .95; } 100% { opacity: 0; transform: translateY(var(--drop)) scale(1.15, 1); } }
.bt--still .bl-pulse { animation: none; opacity: .35; }
.bl-ring { position: absolute; border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(ellipse at 50% 50%, rgba(var(--engHot), .55), rgba(var(--eng), .25) 45%, rgba(var(--eng), 0) 72%); }
.bl-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--engHot)); box-shadow: 0 0 10px 3px rgba(var(--eng), .9); }
.bl-steam { position: absolute; width: 30px; height: 56px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 245, 255, .85), rgba(255, 225, 255, 0) 70%); filter: blur(2.5px); opacity: 0; }
.bl-drop { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #6B3A1E; box-shadow: inset -2px -2px 0 #3A1D0C; }
.bl-charge { position: absolute; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0%, #FFD2B8 14%, rgba(255, 70, 60, .85) 32%, rgba(255, 43, 120, .3) 55%, rgba(255, 43, 120, 0) 72%); }
.bl-mote { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #FFE0D0; box-shadow: 0 0 12px 4px rgba(255, 70, 90, .9); }
.bl-smoke { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(150, 130, 175, .6), rgba(90, 70, 120, 0) 70%); filter: blur(4px); }
.bl-hitspark { position: absolute; width: 18px; height: 6px; margin: -3px 0 0 -9px; border-radius: 3px; background: #FFE7A0; box-shadow: 0 0 10px 3px rgba(255, 140, 40, .9); }
.bl-tracer { position: absolute; height: 10px; border-radius: 5px; transform-origin: 0 50%; opacity: 0; }
.bl-shield { position: absolute; left: 0; top: 0; overflow: visible; filter: drop-shadow(0 0 8px rgba(var(--eng), .85)); opacity: 0; }
.bl-shield .hx { fill: rgba(var(--eng), .2); stroke: rgba(var(--engHot), .95); stroke-width: 3; stroke-linejoin: round; transform-box: view-box; }
.bl-shield .rim { fill: none; stroke: rgba(var(--engHot), .9); stroke-width: 5; }
.bl-shield .rimW { fill: none; stroke: rgba(var(--eng), .25); stroke-width: 30; }
/* Сфинкс: экран-капча на груди, парящие плитки */
.bl-grid { position: absolute; left: 0; top: 0; width: 300px; height: 285px; transform-origin: 0 0; overflow: hidden; }
.bl-tile { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; }
.bl-sel { position: absolute; left: 0; top: 0; border: 3px solid var(--bt-cyan); box-sizing: border-box; border-radius: 4px; box-shadow: 0 0 10px var(--bt-cyan), inset 0 0 10px rgba(25, 230, 255, .6); opacity: 0; transition: transform .18s ease-out; }
.bl-noise { position: absolute; inset: -6px; opacity: 0; mix-blend-mode: screen; width: calc(100% + 12px); height: calc(100% + 12px); }
.bl-scan { position: absolute; inset: -6px; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 4px); mix-blend-mode: multiply; }
.bl-msg { position: absolute; inset: -4px; display: grid; place-items: center; text-align: center; font: 24px/1.35 "Press Start 2P", monospace; color: #fff; opacity: 0; background: #0b1660; padding: 8px; box-sizing: border-box; }
.bl-msg .sp { display: block; margin: 0 auto 14px; width: 44px; height: 44px; border: 6px solid var(--bt-cyan); border-right-color: transparent; border-radius: 50%; box-sizing: border-box; }
.bl-vbtn { position: absolute; border-radius: 6px; opacity: 0; box-shadow: 0 0 18px 4px var(--bt-cyan), inset 0 0 14px rgba(25, 230, 255, .8); transform: rotate(1.2deg); }
.bl-ft { position: absolute; width: 160px; height: 160px; margin: -80px 0 0 -80px; }
.bl-ft img { width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 0 10px rgba(60, 170, 255, .9)); }
.bl-ft i { position: absolute; width: var(--s, 12px); height: var(--s, 12px); background: var(--c, #ff5ce1); box-shadow: 0 0 6px var(--c, #ff5ce1); }
.bl-ft i.o { background: transparent; border: 2px solid var(--c, #ff5ce1); box-sizing: border-box; }
.bl-rage .bl-ft img { filter: grayscale(1) sepia(1) saturate(7) hue-rotate(-45deg) brightness(.95) contrast(1.15) drop-shadow(0 0 12px rgba(255, 40, 60, .95)); }
.bl-fly.r img, .bl-rage .bl-tile { filter: grayscale(1) sepia(1) saturate(7) hue-rotate(-45deg) brightness(.95) contrast(1.15); }
.bl-rage .bl-ft i { background: #ff3b4e; box-shadow: 0 0 6px #ff3b4e; }
.bl-fly { position: absolute; width: 66px; height: 66px; margin: -33px 0 0 -33px; filter: drop-shadow(0 0 8px rgba(60, 170, 255, .9)); }
.bl-fly img { width: 100%; height: 100%; max-width: none; }
.bl-fly.r { filter: drop-shadow(0 0 8px rgba(255, 40, 60, .95)); }
/* арена Сфинкса: луч пирамиды, постамент, туман */
.bl-arena { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; pointer-events: none; }
.bl-beam { position: absolute; top: 0; width: 120px; margin-left: -60px; mix-blend-mode: screen; transform-origin: 50% 100%; }
.bl-beam i { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); }
.bl-beam .halo { width: 110px; background: linear-gradient(90deg, rgba(255, 40, 200, 0), rgba(255, 40, 200, .38) 35%, rgba(255, 70, 215, .6) 50%, rgba(255, 40, 200, .38) 65%, rgba(255, 40, 200, 0));
  -webkit-mask: linear-gradient(transparent, #000 18%); mask: linear-gradient(transparent, #000 18%); }
.bl-beam .core { width: 3px; margin-left: var(--dx); background: linear-gradient(90deg, rgba(255, 140, 235, .7), #fff 50%, rgba(255, 140, 235, .7)); box-shadow: 0 0 8px 2px rgba(255, 60, 210, .85);
  -webkit-mask: linear-gradient(transparent, #000 10%); mask: linear-gradient(transparent, #000 10%); }
.bl-pkt { position: absolute; left: 50%; width: 46px; height: 130px; margin-left: -23px; top: 0; border-radius: 50%; background: radial-gradient(ellipse 50% 50% at 50% 50%, #fff 0, rgba(255, 190, 245, .95) 30%, rgba(255, 70, 215, .6) 60%, rgba(255, 40, 200, 0) 100%); filter: blur(1px); opacity: 0; }
.bl-beamtop { position: absolute; width: 900px; height: 360px; margin-left: -450px; top: -160px; border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 60, 210, .45), rgba(200, 40, 190, .15) 55%, rgba(200, 40, 190, 0)); }
.bl-ped { position: absolute; max-width: none; }
.bl-mist { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(205, 175, 240, .55), rgba(165, 125, 215, .22) 50%, rgba(150, 110, 200, .06) 80%, rgba(150, 110, 200, 0)); }
.bl-fog { position: absolute; height: 120px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(150, 110, 210, .45), rgba(120, 80, 190, 0) 70%); filter: blur(4px); }
.bt-vig { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(255, 43, 78, .55) 100%); opacity: 0; pointer-events: none; }
.bt-vig.on { animation: btvig 2.4s linear both; }
@keyframes btvig { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: .4; } 75% { opacity: 1; } 100% { opacity: 0; } }
.bt-alert { position: absolute; left: 0; top: 560px; width: 2560px; height: 300px; background: var(--bt-yel); display: grid; place-items: center; animation: btalert 2.4s both; }
.bt-alert span { font: 150px/1 "Russo One", sans-serif; color: #12081F; letter-spacing: .04em; }
@keyframes btalert { 0% { opacity: 0; transform: scaleY(.2); } 10% { opacity: 1; transform: scaleY(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
.bt-say { position: absolute; max-width: 760px; padding: 22px 30px; background: rgba(18, 8, 31, .9); border: 3px solid var(--alarm); font: 600 34px/1.3 "Exo 2", sans-serif; }
.bt-say b { font: 26px "Russo One", sans-serif; color: var(--alarm); margin-right: 10px; }
.bt-count { position: absolute; left: 0; top: 200px; width: 2560px; text-align: center; font: 150px/1 "Press Start 2P", monospace; color: var(--bt-yel); text-shadow: 10px 10px 0 var(--bt-mag), -4px -4px 0 #12081F; animation: btcount .95s ease-out both; pointer-events: none; }
@keyframes btcount { from { transform: scale(1.4); opacity: 0; } 25% { transform: scale(1); opacity: 1; } to { opacity: 1; } }
.bt--still .bt-alert, .bt--still .bt-vig.on, .bt--still .bt-count { animation: none; opacity: 1; }
.bt--still .bt-vig.on { opacity: .6; }
.bt-paused { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 1, 26, .55); }
.bt-paused span { font: 90px "Press Start 2P", monospace; color: var(--bt-yel); }
/* интерфейс боя в координатах холста */
.bt-hp { position: relative; background: rgba(18, 8, 31, .88); border: 4px solid var(--alarm); box-sizing: border-box; }
.bt-hp i { position: absolute; left: 8px; top: 8px; bottom: 8px; width: calc((100% - 16px) * var(--hp, 1)); background: var(--alarm); transition: width .5s; }
.bt-hp--rage i { background: linear-gradient(90deg, var(--alarm), #FF8A00); }
.bt-hp span { position: absolute; left: 28px; top: 14px; font: 34px "Russo One", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 0 #12081F, 2px 0 0 #12081F, -2px 0 0 #12081F; }
.bt-hp b { position: absolute; right: 28px; top: 16px; font: 28px "Press Start 2P", monospace; color: var(--bt-yel); text-shadow: 3px 3px 0 #12081F; }
.bt-box .bt-q, .bt-box .bt-tac, .bt-box .bt-next { position: absolute; left: 1180px; top: 176px; width: 1220px; box-sizing: border-box; }
.bt-q { background: rgba(18, 8, 31, .88); border: 4px solid var(--bt-cyan); padding: 30px 44px; }
.bt-q__top { display: flex; justify-content: space-between; font: 30px "Russo One", sans-serif; color: var(--bt-yel); letter-spacing: .06em; }
.bt-q__hot { color: var(--alarm); }
.bt-q__text { font: 600 40px/1.3 "Exo 2", sans-serif; margin: 26px 0 30px; }
.bt-q__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bt-q__opt { text-align: left; border: 3px solid var(--bt-mag); background: rgba(42, 18, 72, .9); color: #F6EEFF; padding: 20px 26px; font: 600 30px "Exo 2", sans-serif; cursor: pointer; border-radius: 0; }
.bt-q__opt span { font: 26px "Russo One", sans-serif; color: var(--bt-cyan); margin-right: 14px; }
.bt-q__opt:disabled { cursor: default; }
.bt-q__opt.chosen { border-color: var(--bt-yel); box-shadow: 0 0 0 3px var(--bt-yel) inset; }
.bt-q__opt.correct { border-color: #3BFF8A; background: rgba(20, 90, 50, .85); }
.bt-q__form { display: flex; gap: 16px; }
.bt-q__form input { flex: 1; font: 600 32px "Exo 2", sans-serif; padding: 16px 20px; background: #0C0418; color: #F6EEFF; border: 3px solid var(--bt-mag); border-radius: 0; }
.bt-btn { font: 28px "Russo One", sans-serif; letter-spacing: .04em; padding: 16px 26px; background: var(--bt-yel); color: #12081F; border: 0; border-radius: 0; cursor: pointer; }
.bt-btn:disabled { opacity: .45; cursor: default; }
.bt-btn.on { background: #3BFF8A; }
.bt-q__status, .bt-q__correct { margin-top: 20px; font: 600 28px "Exo 2", sans-serif; color: #D9C8F2; }
.bt-q__correct b { color: #3BFF8A; }
.bt-q__err { margin-top: 12px; color: #FF8FA3; font-size: 26px; }
.bt-tac { background: rgba(18, 8, 31, .88); border: 4px solid var(--bt-yel); padding: 24px 32px; }
/* тактика — внизу слева, на дороге под боссом: не закрывает союзника и вопрос */
.bt-box .bt-tac { left: 128px; top: auto; bottom: 236px; width: 1000px; }
.bt-box:has(.bt-plates--grid) .bt-tac { bottom: 236px; }
.bt-tac__top { font: 28px "Russo One", sans-serif; color: var(--bt-yel); margin-bottom: 16px; display: flex; gap: 12px; }
.bt-tac__tok { margin-left: auto; color: #F6EEFF; }
.bt-next { font: 34px "Russo One", sans-serif; color: var(--bt-yel); text-shadow: 3px 3px 0 #12081F; text-align: right; }
/* плашки команд (30.5, V2.25): ряд, пока названия влезают в две строки, иначе — сетка в два ряда в зоне 1212–1420;
   своя плашка в полтора раза шире; раскладка выбирается в начале боя и не меняется */
.bt-box .bt-plates { position: absolute; left: 128px; top: 1228px; width: 2304px; }
.bt-plates { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; }
.bt-plates .bt-plate { flex: 1 1 0; min-width: 0; box-sizing: border-box; }
.bt-plates .bt-plate.me { flex-grow: 1.5; }
.bt-box .bt-plates--grid { top: 1250px; row-gap: 12px; column-gap: 18px; }
.bt-plates--grid .bt-plate { flex: 1 1 calc((100% - (var(--cols) - 1) * 18px) / var(--cols)); padding: 10px 16px; font-size: 26px; }
.bt-plates--grid .bt-plate__hp { height: 14px; margin-top: 8px; }
.bt-plates--grid .bt-plate__tag { top: 8px; right: 12px; font-size: 22px; }
.bt-plates--grid .bt-plate__name { padding-right: 130px; }
.bt-plate { position: relative; background: rgba(18, 8, 31, .88); border: 3px solid var(--bt-cyan); padding: 14px 20px; font: 600 30px "Exo 2", sans-serif; }
.bt-plate.me { border-color: var(--bt-yel); box-shadow: 0 0 0 3px var(--bt-yel); }
.bt-plate.shake { animation: btshake .5s; }
@keyframes btshake { 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.bt--still .bt-plate.shake { animation: none; }
.bt-plate__name { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bt-plate__text { min-width: 0; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.bt-plates--grid .bt-plate__text { -webkit-line-clamp: 1; }
.bt-plate__pts { color: var(--bt-yel); font-family: "Press Start 2P", monospace; font-size: .7em; }
.bt-plate__hp { display: block; height: 22px; margin-top: 12px; background: var(--bt-cyan); transition: width .5s; }
.bt-plate__tag { position: absolute; right: 14px; top: -34px; font: 26px "Russo One", sans-serif; color: var(--bt-yel); text-shadow: 2px 2px 0 #12081F; }
.bt-res { position: absolute; left: 680px; top: 300px; width: 1200px; background: rgba(18, 8, 31, .94); border: 5px solid var(--bt-yel); padding: 40px 50px; box-sizing: border-box; }
.bt-res__title { font: 64px "Press Start 2P", monospace; color: var(--bt-yel); text-align: center; text-shadow: 6px 6px 0 var(--bt-mag); }
.bt-res__sub, .bt-res__note { text-align: center; font: 600 28px "Exo 2", sans-serif; color: #D9C8F2; margin: 18px 0; }
.bt-res__table { width: 100%; border-collapse: collapse; font: 600 30px "Exo 2", sans-serif; }
.bt-res__table th { text-align: left; color: var(--bt-cyan); font-family: "Russo One", sans-serif; padding: 8px; }
.bt-res__table td { padding: 10px 8px; border-top: 2px solid #5B1E6B; }
.bt-res__table tr.me td { color: var(--bt-yel); }
/* телефон: полоса сцены сверху, интерфейс боя под ней */
.bt-panel { position: absolute; left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 10px; background: #12081F; }
.bt-panel .bt-hp { height: 34px; border-width: 3px; }
.bt-panel .bt-hp i { left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) * var(--hp, 1)); }
.bt-panel .bt-hp span { font-size: 14px; left: 10px; top: 6px; } .bt-panel .bt-hp b { font-size: 12px; top: 8px; right: 10px; }
.bt-panel .bt-q { padding: 12px 14px; border-width: 3px; }
.bt-panel .bt-q__top { font-size: 14px; } .bt-panel .bt-q__text { font-size: 18px; margin: 10px 0 12px; }
.bt-panel .bt-q__opts { grid-template-columns: 1fr; gap: 8px; }
.bt-panel .bt-q__opt { font-size: 16px; padding: 12px 14px; border-width: 2px; } .bt-panel .bt-q__opt span { font-size: 14px; }
.bt-panel .bt-q__form input { font-size: 16px; padding: 10px; border-width: 2px; }
.bt-panel .bt-btn { font-size: 15px; padding: 10px 14px; }
.bt-panel .bt-q__status, .bt-panel .bt-q__correct, .bt-panel .bt-q__err { font-size: 14px; margin-top: 10px; }
.bt-panel .bt-tac { padding: 12px 14px; border-width: 3px; } .bt-panel .bt-tac__top { font-size: 14px; margin-bottom: 8px; }
.bt-panel .bt-next { font-size: 16px; text-align: left; }
.bt-panel .bt-plates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bt-panel .bt-plate.me { grid-column: span 2; }
.bt-panel .bt-plate__text { -webkit-line-clamp: 2; }
.bt-panel .bt-plate { font-size: 14px; padding: 8px 10px; border-width: 2px; }
.bt-panel .bt-plate__hp { height: 8px; margin-top: 6px; } .bt-panel .bt-plate__tag { font-size: 12px; top: -14px; right: 8px; }
.bt-panel .bt-res { position: static; width: auto; padding: 14px; border-width: 3px; }
.bt-panel .bt-res__title { font-size: 20px; } .bt-panel .bt-res__sub, .bt-panel .bt-res__note { font-size: 13px; margin: 8px 0; }
.bt-panel .bt-res__table { font-size: 14px; }
/* обёртки на экранах игрока и трансляции */
.battle-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; }
.hostbattle { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; padding: 8px 10px; border: 2px solid #FF2B4E; border-radius: var(--radius-sm); }
.app--battle .chatside, .app--battle .reactbar, .app--battle .tfoot { display: none !important; }

/* V2.7: библиотека боссов */

/* V2.8: импорт и экспорт банка, сложность 1–5 */

.bankimp--error td:nth-child(2) { color: var(--bad); }
.bankimp--dup td:nth-child(2) { color: #a15c00; }
.bankimp--update td:nth-child(2) { color: var(--accent, #3b5bdb); }
.bankimp__counts .chip { cursor: default; }

/* V2.9: перерыв на время */
.brk { margin: 18px auto; text-align: center; }
.brk__label { font-size: 18px; opacity: .85; }
.brk__num { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.brk--big .brk__label { font-size: 30px; } .brk--big .brk__num { font-size: 110px; }
.brk__soon { display: inline-block; margin-top: 12px; padding: 10px 22px; background: #FFE14D; color: #12081F; font: 700 22px "Russo One", sans-serif; letter-spacing: .03em; }
.brk--big .brk__soon { font-size: 40px; padding: 16px 40px; }

/* ---------------- V2.10: читаемость редактора (9.4) — секции, «?» { width: 1em; color: var(--muted); }

.fsec__body > .field, .fsec__body > .check { margin-bottom: 10px; }

.helptip__pop { position: absolute; z-index: 40; left: -10px; top: 26px; width: min(420px, 80vw); background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 8px 28px rgba(20, 24, 40, .18); padding: 10px 12px; font-size: 14px; font-weight: 400; line-height: 1.45; white-space: normal; text-align: left; }
/* вкладки категорий настроек квиза — жирные { position: sticky; top: 112px; z-index: 15; background: var(--surface); margin: 0 -24px 16px; padding: 10px 24px 0; border-bottom: 2px solid var(--line); gap: 2px; flex-wrap: wrap; }

/* конструктор: перетаскивание и ↑↓ (9.4) */

.drop-before::before, .drop-after::after { content: ""; position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 2px; background: var(--primary); z-index: 2; pointer-events: none; }
.drop-before::before { top: -2px; }
.drop-after::after { bottom: -2px; }

/* V2.11 (30.5): полоса ХП босса — под окном наведения, «ЗАРЯЖЕНО», «Готовы N из M» */
.bt-ret .bt-hp--ret { position: absolute; left: 0; right: 0; top: calc(100% + 56px); height: 28px; border-width: 3px; background: rgba(18, 8, 31, .9); }
.bt-ret .bt-hp--ret i { left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) * var(--hp, 1)); }
.bt-hp--compact { height: 34px; }
.bt-plate.charged { border-color: var(--bt-yel); box-shadow: 0 0 22px rgba(255, 210, 63, .55), inset 0 0 18px rgba(255, 210, 63, .25); animation: btcharge 1s ease-in-out infinite alternate; }
.bt-plate.me.charged { box-shadow: 0 0 0 3px var(--bt-yel), 0 0 26px rgba(255, 210, 63, .6); }
.bt-plate__tag--charged { color: var(--bt-yel); letter-spacing: .12em; font-family: "Press Start 2P", monospace; font-size: .62em; }
@keyframes btcharge { from { box-shadow: 0 0 10px rgba(255, 210, 63, .35); } to { box-shadow: 0 0 30px rgba(255, 210, 63, .75); } }
.bt--still .bt-plate.charged { animation: none; }
.bt-q__ready { margin-top: 18px; font: 600 28px "Exo 2", sans-serif; color: var(--bt-yel); }
.bt-q__all { font-family: "Press Start 2P", monospace; font-size: 24px; letter-spacing: .06em; animation: btlock 1s steps(1) infinite; }
.bt--still .bt-q__all { animation: none; }
.bt-panel .bt-q__ready { font-size: 15px; margin-top: 8px; } .bt-panel .bt-q__all { font-size: 12px; }
.bt-panel .bt-plate__tag--charged { font-size: 10px; }
/* звуки босса и союзника: выключение по строке и общее (30.1) */

/* строка ожидания (9.1, критерий 89, V2.12): крупно, цвет акцента, подложка 31.2, бегущее многоточие */
.waitline { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -6px auto 4px; padding: 10px 22px;
  max-width: calc(100vw - 32px); border-radius: 12px; background: rgba(18, 8, 31, .88); color: #F6EEFF; text-align: center; }
.waitline__text { font-size: 1.35rem; font-weight: 800; color: var(--accent, #19E6FF); line-height: 1.2; animation: waitPulse 2.4s ease-in-out infinite; }
.waitline__dots i { font-style: normal; animation: waitDot 1.5s infinite; opacity: .2; }
.waitline__dots i:nth-child(2) { animation-delay: .25s; } .waitline__dots i:nth-child(3) { animation-delay: .5s; }
.waitline__phones { font-weight: 500; font-size: .9rem; opacity: .85; }
.waitline .brk { margin: 0; }
.waitline--big .waitline__text { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.waitline--big .waitline__phones { font-size: clamp(.95rem, 1.4vw, 1.25rem); }
.waitline--float { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 29; margin: 0; width: max-content; }
@keyframes waitPulse { 50% { opacity: .72; } }
@keyframes waitDot { 0%, 100% { opacity: .2; } 30% { opacity: 1; } }
.less-motion .waitline__text, .less-motion .waitline__dots i { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .waitline__text, .waitline__dots i { animation: none; opacity: 1; } }

/* экран «Наушники» (критерий 88, V2.12): не пропускается, до включения звука */
.hpgate { position: fixed; inset: 0; z-index: 95;   /* над слоем эффектов (60), под окнами (100) — V2.31 */ display: grid; place-items: center; padding: 16px; background: rgba(10, 4, 20, .92); overflow-y: auto; }
.hpgate__box { max-width: 520px; width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.hpgate__icon { font-size: 3.4rem; line-height: 1; }
.hpgate__title { margin: 0; font-size: 1.6rem; }
.hpgate__btns { display: flex; flex-direction: column; gap: 10px; }
.hpgate__btns .btn { min-height: 48px; }
/* две равноправные кнопки (критерий 111): рядом на широком экране, друг под другом на телефоне */
.hpgate__btns--pair { flex-direction: row; flex-wrap: wrap; }
.hpgate__btns--pair .btn { flex: 1 1 180px; }
.hpgate__mute { display: block; margin: 12px auto 0; }
.hpgate__vol { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-weight: 700; }
.hpgate__vol input { width: 100%; }

/* бой (V2.12, 30.5, 33.6): строка правил в паузе перед боем, «+очки» после удара, реакция плашек на контратаку */
.bt-rule { position: absolute; padding: 18px 30px; background: rgba(18, 8, 31, .88); border: 3px solid var(--bt-yel); color: #F6EEFF;
  font: 40px/1.25 "Russo One", sans-serif; text-align: center; text-shadow: 2px 2px 0 #12081F; box-sizing: border-box; }
.bt-rule--edit { cursor: move; pointer-events: auto; outline: 3px dashed rgba(255, 255, 255, .55); outline-offset: 6px; }
.bt-hitframe { position: absolute; box-sizing: border-box; border: 4px dashed #4fd1ff; background: rgba(79, 209, 255, .10); cursor: move; pointer-events: auto; }
.bt-hitframe span { position: absolute; left: 12px; bottom: 8px; color: #bff0ff; font: 700 30px/1.2 var(--f-body); text-shadow: 0 2px 4px #000; }
.bt-hitframe__h { position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; background: #4fd1ff; border: 3px solid #08202c; cursor: nwse-resize; }
.bt-panel .bt-rule { position: static; font-size: 16px; padding: 8px 12px; border-width: 2px; margin: 6px 0; }
.bt-plate__plus { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font: 40px "Press Start 2P", monospace; color: var(--bt-yel);
  text-shadow: 3px 3px 0 #12081F; pointer-events: none; animation: btPlus 1.1s ease-out forwards; white-space: nowrap; }
.bt-plate__minus { position: absolute; left: 20px; top: -34px; font: 34px "Press Start 2P", monospace; color: var(--alarm, #FF2B4E);
  text-shadow: 3px 3px 0 #12081F; pointer-events: none; animation: btMinus 1.1s ease-out forwards; }
.bt-panel .bt-plate__plus { font-size: 14px; top: -12px; } .bt-panel .bt-plate__minus { font-size: 13px; top: -14px; left: 8px; }
.bt-plate.hurt { border-color: var(--alarm, #FF2B4E); box-shadow: 0 0 24px rgba(255, 43, 78, .7), inset 0 0 22px rgba(255, 43, 78, .45); }
.bt-plate.shielded { border-color: #5FD3FF; box-shadow: 0 0 24px rgba(95, 211, 255, .75), inset 0 0 22px rgba(95, 211, 255, .45); }
.bt-edge { position: absolute; inset: 0; pointer-events: none; z-index: 50; box-shadow: inset 0 0 0 10px rgba(255, 43, 78, .9), inset 0 0 60px rgba(255, 43, 78, .6);
  animation: btEdge .4s ease-out forwards; }
@keyframes btPlus { 0% { opacity: 0; transform: translate(-50%, 16px); } 20% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -70px); } }
@keyframes btMinus { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: .9; transform: translateY(-26px); } }
@keyframes btEdge { from { opacity: 1; } to { opacity: 0; } }
/* «меньше анимаций»: без тряски и полётов — только цвет и цифры */
.bt--still .bt-plate__plus { animation: none; transform: translateX(-50%); }
.bt--still .bt-plate__minus, .bt--still .bt-edge { animation: none; }

/* окно громкости непрозрачное в любой теме; на телефоне открытая панель прячет «Свернуть всё» (замечание 8) */
@media (max-width: 520px) { body:has(.soundpanel__pop) .showcase-toggle, body:has(.soundpanel__pop) .showcase-plaque { display: none; } }

/* «готовимся» перед битвой (6.1): полоса тревоги без текста, пока игроки догружают босса */
.bt-alert--blank { top: 690px; height: 60px; animation: btBlank 1s ease-in-out infinite; }
@keyframes btBlank { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.bt--still .bt-alert--blank { animation: none; opacity: .8; }

/* банк таблицей (V2.18, 9.9, критерий 90) */

.btable__t tbody tr.on td { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.btable__multi { position: relative; font-weight: 400; }
.btable__multi > summary { cursor: pointer; font-size: .82rem; color: var(--text); list-style: none; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface); }

.btable__cols { position: relative; }
.btable__cols .btable__pop { left: auto; right: 0; min-width: 240px; max-height: 60vh; }
.btable__cols > summary { list-style: none; }

.btc--text .badge { margin-left: 4px; }

.bank .modal__box--wide { max-width: min(1100px, 96vw); }
.ap-switch button.on { background: var(--primary); color: var(--primary-ink); }

/* панель тактики (29, «Панель тактики игрока», V2.22): закреплена внизу колонки вопроса, не уезжает при прокрутке */
.tacdock { position: sticky; bottom: 8px; z-index: 6; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tacdock .hintbox { margin: 0; }
.tacpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.tacpanel__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tacbtn { flex: 1 1 150px; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: var(--surface-2, var(--bg-2)); border: 2px solid var(--accent, var(--primary)); border-radius: 10px; }
.tacbtn:not(:disabled):hover { filter: brightness(1.08); }
.tacbtn:disabled { cursor: default; }
.tacbtn--off { border-color: var(--line); opacity: .75; }
.tacbtn--on { border-color: var(--good, #2e7d32); }
.tacbtn__icon { font-size: 32px; line-height: 1; flex: none; width: 36px; text-align: center; }
.tacbtn__body { display: flex; flex-direction: column; min-width: 0; }
.tacbtn__label { font-weight: 800; line-height: 1.15; }
.tacbtn__cost { font-size: .85em; font-weight: 700; color: var(--accent, var(--primary)); }
.tacbtn__why { font-size: .78em; color: var(--muted); line-height: 1.2; }
.tacpanel__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 2px 6px; }
.tacpanel__q { font-weight: 700; }
.tacpanel__yn { display: flex; gap: 8px; }
.tacpanel__yn .btn { min-height: 44px; }
.tactics__coin { font-size: 24px; line-height: 1; vertical-align: -3px; }
@media (max-width: 1199px) { .tacdock { bottom: 64px; } }   /* над реакциями внизу экрана */
.app--preview .tacdock { position: static; }
/* панель тактики в бою: в сцене 2560×1440 (bt-box) — в масштабе сцены, в узкой раскладке (bt-panel) — как у вопроса */
.bt-tacpanel { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 12px; color: #F6EEFF; }
.bt-tacpanel .tacbtn { background: rgba(18, 8, 31, .9); color: #F6EEFF; border-color: var(--bt-yel); border-radius: 0; font-family: "Russo One", sans-serif; }
.bt-tacpanel .tacbtn--on { border-color: #3BFF8A; }
.bt-tacpanel .tacbtn--off { border-color: rgba(246, 238, 255, .35); }
.bt-tacpanel .tacbtn__cost { color: var(--bt-yel); }
.bt-tacpanel .tacbtn__why { color: rgba(246, 238, 255, .7); }
.bt-box .bt-tacpanel .tacbtn { font-size: 30px; min-height: 104px; padding: 12px 24px; gap: 18px; flex-basis: 300px; border-width: 4px; }
.bt-box .bt-tacpanel .tacbtn__icon { font-size: 60px; width: 68px; }
.bt-box .bt-tacpanel .tacpanel__ask { font-size: 30px; }
.bt-box .bt-tacpanel .tacpanel__yn .btn { font-size: 28px; min-height: 80px; padding: 10px 28px; }
/* подтверждения ui.confirm — поверх любого окна страницы (карточка сцены, окно ставки и т. п.) */
.modal.modal--ui { z-index: 140; }

/* ---------------------------------------------------------------- эффекты библиотеки (33.10, V2.23) */
.fx2-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.fx2-under { z-index: 0; }
.fx2-under--battle { position: absolute; }   /* в бою — внутри боя сразу за ареной: над ней, под боссом и интерфейсом (замечание 23) */                  /* над сценой (.scenes), под интерфейсом (z-index 1) */
.fx2-over { z-index: 59; }                  /* над интерфейсом; клики и нажатия проходят сквозь */
.fx2-layer--box { position: absolute; }
.fx2-box { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* «Новый год» (пак ny_overlay_v1, V2.49.2): украшение поверх интерфейса; клики и наведение проходят сквозь */
.fxny, .fxny * { pointer-events: none; }
.fxny { position: absolute; inset: 0; overflow: hidden; }
.fxny img { position: absolute; image-rendering: pixelated; user-select: none; max-width: none; }
.fxny__snow { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.fxny__garclip { position: absolute; overflow: hidden; z-index: 2; }   /* лампочки висят перед снежной шапкой плашки */
.fxny__corner { z-index: 3; }
.fxny__garland { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fxny__goff { left: 0; top: 0; }
.fxny__bulb { position: absolute; image-rendering: pixelated; background-repeat: no-repeat; }
.fxny__glow { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
@supports (mix-blend-mode: plus-lighter) { .fxny__glow { mix-blend-mode: plus-lighter; } }

.fx2-box--edge { inset: 0 auto 0 auto; width: 15%; }   /* витрины по краям экрана (x 0–384 и 2176–2560 из 2560) */
.fx2-box--left { left: 0; } .fx2-box--right { right: 0; }
.fx2-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx2-item { position: absolute; top: 0; font-size: 28px; width: 32px; will-change: transform; }
.fx2-flash { position: absolute; inset: 0; background: #FFFFFF; opacity: 0; }
.fx2-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5, 3, 14, .55), rgba(5, 3, 14, .95)); opacity: 0; }
.fx2-state .fx2-dim { transition: opacity .4s; }
.fx2-peek { position: absolute; font-size: min(18vw, 180px); line-height: 1; max-width: 30vw; }
.fx2-peek--tl { left: 2%; top: 2%; } .fx2-peek--tr { right: 2%; top: 2%; } .fx2-peek--bl { left: 2%; bottom: 2%; } .fx2-peek--br { right: 2%; bottom: 2%; }
.fx2-peek--left { left: 0; top: 40%; } .fx2-peek--right { right: 0; top: 40%; }
.fx2-piece { position: absolute; transform-origin: 50% 50%; }
.fx2-img { max-width: 60vw; height: auto; }
.fx2-box--edge .fx2-img, .fx2-box--edge .fx2-stamp { max-width: 90%; }
.fx2-stamp { --stamp: #D7263D; color: var(--stamp); border: 5px double var(--stamp); padding: .35em .8em; font: 400 clamp(22px, 4vw, 64px)/1.05 "Russo One", "Arial Black", sans-serif;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: rgba(10, 4, 16, .5); mix-blend-mode: normal;   /* фон: печать читается и на тёплом фоне */
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .78) 61%, #000 75%); mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .78) 61%, #000 75%); }
.fx2-stamp--circle { border-radius: 50%; padding: 1.1em .7em; }
.fx2-box--edge .fx2-stamp { font-size: clamp(14px, 1.6vw, 28px); white-space: normal; text-align: center; }
.fx2-note { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: 64px; }
.fx2-note--img { max-width: 30vw; }
.fx2-say { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); background: #FFD60A; color: #111; text-align: center; font: 400 22px/1.3 "Russo One", "Arial Black", sans-serif;
  padding: 10px 12px; text-transform: uppercase; opacity: .92; }
.fx2-pimg { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); max-width: 40%; max-height: 40%; }
.less-motion .fx2-item { display: none; }

/* ---------------------------------------------------------------- сцена «Ночная улица» (arcade_city_v1, V2.23) */
.cy-box .cy-l { position: absolute; left: 0; top: 0; pointer-events: none; }
.cy-box img { max-width: none; }   /* иначе общее img{max-width:100%} в контейнере нулевой ширины делает поезд невидимым */
.cy-train { will-change: transform; }
.cy-box .cy-off, .cy-box .cy-dark, .cy-box .cy-puff, .cy-box .cy-glow, .cy-box .cy-hover, .cy-box .cy-dust { position: absolute; pointer-events: none; }
.cy-off { border-radius: 6px; background: rgba(4, 2, 12, .88); opacity: 0; filter: blur(3px); }
.cy-dark { background: rgba(8, 5, 18, .86); filter: blur(2px); opacity: 0; border-radius: 3px; }
.cy-puff { border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 225, 242, .6), rgba(210, 205, 230, .26) 55%, rgba(210, 205, 230, 0)); filter: blur(5px); }
.cy-glow { border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 170, 80, 1), rgba(255, 100, 40, .45) 50%, rgba(255, 90, 40, 0)); }
.cy-glow--lamp { background: radial-gradient(closest-side, rgba(255, 215, 140, .9), rgba(255, 180, 90, .3) 55%, rgba(255, 180, 90, 0)); }
.cy-hover { border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(120, 240, 255, .95), rgba(40, 200, 255, .35) 50%, rgba(40, 200, 255, 0)); }
.cy-dust { image-rendering: pixelated; }
/* «Мрачный город» (33.15, V2.44): свет слоями, вертолёт за улицей, луч, отсветы мигалки на мокром асфальте, засветка */
.dc-box .dc-l, .dc-box .dc-puff { position: absolute; left: 0; top: 0; pointer-events: none; }
.dc-box img { max-width: none; display: block; }
.dc-heli { will-change: transform; }
.dc-heli > * { position: absolute; pointer-events: none; }
.dc-rotor { left: 66px; top: 4px; width: 520px; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(40, 40, 55, .55), rgba(60, 60, 80, .25) 60%, rgba(60, 60, 80, 0) 72%); }
.dc-fan { left: 19px; top: 39px; width: 60px; height: 60px; border-radius: 50%; filter: blur(1.5px);
  background: conic-gradient(rgba(20, 20, 30, .75) 0 12%, transparent 12% 25%, rgba(20, 20, 30, .75) 25% 37%, transparent 37% 50%, rgba(20, 20, 30, .75) 50% 62%, transparent 62% 75%, rgba(20, 20, 30, .75) 75% 87%, transparent 87%); }
.dc-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.dc-strobe { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; opacity: 0; mix-blend-mode: screen; }
.dc-beam { mix-blend-mode: screen; will-change: transform, opacity; }
.dc-beam > div { position: absolute; top: 0; bottom: 0; }
.dc-beam i { position: absolute; inset: 0; clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%); }
.dc-beam__wide { left: 0; right: 0; filter: blur(18px); }   /* размытие — на обёртке, форма — внутри: иначе края жёсткие */
.dc-beam__wide i { background: linear-gradient(to bottom, rgba(215, 232, 255, 0), rgba(215, 232, 255, .45) 6%, rgba(200, 222, 255, .22) 40%, rgba(200, 222, 255, 0) 92%); }
.dc-beam__core { left: 150px; width: 160px; filter: blur(6px); }
.dc-beam__core i { background: linear-gradient(to bottom, rgba(240, 248, 255, 0), rgba(240, 248, 255, .6) 4%, rgba(220, 235, 255, .25) 35%, rgba(220, 235, 255, 0) 80%); }
.dc-wet { mix-blend-mode: screen; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.dc-wet i { position: absolute; inset: 0; opacity: 0; }
.dc-wet__r { background: radial-gradient(ellipse 30% 90% at 40% 40%, rgba(255, 50, 70, 1), rgba(255, 40, 60, 0) 72%); }
.dc-wet__b { background: radial-gradient(ellipse 30% 90% at 62% 45%, rgba(60, 130, 255, 1), rgba(40, 110, 255, 0) 72%); }
.dc-glow { opacity: 0; mix-blend-mode: screen; }
.dc-glare { opacity: 0; }
.dc-puff { border-radius: 50%; background: radial-gradient(circle, rgba(220, 215, 230, .55), rgba(200, 195, 215, 0) 70%); filter: blur(6px); }

/* проверка эффекта в библиотеке (33.10): сцена, макет экрана вопроса, слои эффектов */
.fxpv { display: grid; gap: 6px; }

.fxpv__scene { position: absolute; inset: 0; }

.fxpv .fx2-stamp { font-size: clamp(9px, 4cqw, 40px); border-width: 3px; }
.fxpv .fx2-box--edge .fx2-stamp { font-size: clamp(7px, 1.8cqw, 18px); }
.fxpv .fx2-peek { font-size: 18cqw; max-width: 30cqw; }
.fxpv .fx2-img { max-width: 60cqw; }
.fxpv .fx2-note { font-size: 10cqw; }
.fxpv .fx2-note--img { max-width: 30cqw; }
.fxpv .fx2-item { font-size: 4cqw; width: 5cqw; }
.fxpv .fx2-say { font-size: 3.4cqw; padding: 1cqw; }
.fx2-box--zone .fx2-stamp { font-size: clamp(18px, 2.4vw, 44px); white-space: nowrap; }
.fx2-box--edge .fx2-stamp { padding: .3em .5em; border-width: 4px; }

/* ---------------------------------------------------------------- пак эффектов arcade_fx_v1 (33.10, V2.24) */
.fxp-world { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; transform-origin: 0 0; pointer-events: none; overflow: hidden;
  --ink: #D7263D; --f-label: "Russo One", "Arial Black", sans-serif; --f-body: "Exo 2", "Segoe UI", system-ui, sans-serif; --f-hand: "Caveat", "Comic Sans MS", cursive; }
.fxp-world img { max-width: none; }
.fxp-world > * { position: absolute; }
.fxp-crack { position: absolute; }
.fxp-flash { width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(190,240,255,.5) 40%, rgba(190,240,255,0)); }
.fxp-spark { width: 6px; height: 6px; margin: -3px; background: #fff; box-shadow: 0 0 6px #19E6FF; }
.fxp-screen { overflow: hidden; }
.fxp-bar { position: absolute; left: 0; background-repeat: no-repeat; }
.fxp-roll { position: absolute; left: 0; right: 0; top: 0; height: 12.5%; opacity: 0; background: linear-gradient(rgba(255,255,255,0), rgba(200,240,255,.18), rgba(255,255,255,0)); }
.fxp-noise { position: absolute; inset: -3%; opacity: 0; background-size: 100% 100%; image-rendering: pixelated; mix-blend-mode: screen; }
.fxp-vig { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; opacity: 0; }
.fxp-pp { position: absolute; transform-origin: 50% 50%; white-space: nowrap; }
.fxp-ink { color: var(--ink); }
.fxp-ink .fxp-sheet { position: absolute; inset: -12% -9%; background: linear-gradient(170deg, #fbf7ef, #efe8da); box-shadow: 0 10px 18px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.06); }
.fxp-ink .fxp-sheet.fxp-torn { background: none; box-shadow: none; filter: drop-shadow(0 10px 12px rgba(0,0,0,.4)); }
.fxp-ink .fxp-sheet.fxp-torn img { width: 100%; height: 100%; display: block; }
.fxp-ink .fxp-t .fxp-in { display: flex; flex-direction: column; align-items: center; }
.fxp-ink .fxp-m { position: absolute; inset: 0; background: var(--ink); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.fxp-ink .fxp-t { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; white-space: nowrap;
  font: 62px/1.02 var(--f-label); letter-spacing: .04em; color: var(--ink); -webkit-mask-size: 300px auto; mask-size: 300px auto; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.fxp-ink .fxp-t.sign { font: 600 30px/1.3 var(--f-body); } .fxp-ink .fxp-t.sign b { font: 38px/1.05 var(--f-label); letter-spacing: .06em; }
.fxp-ink .fxp-t.small { font: 600 22px/1 var(--f-body); }
.fxp-ink .fxp-t.big { letter-spacing: .01em; font-weight: 400; -webkit-text-stroke: 1.5px var(--ink); }
.fxp-ink .fxp-t.knock { color: rgba(255,246,236,.95); }
.fxp-paper { filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.fxp-paper .fxp-pt { position: absolute; inset: 16% 12%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: pre-line; color: #2a2220; }
.fxp-paper .fxp-pt.hand { font: 600 46px/1.05 var(--f-hand); color: #2b2a7a; transform: rotate(-4deg); }
.fxp-paper .fxp-pt.type { font: 600 24px/1.25 "Courier New", monospace; }
.fxp-paper .fxp-pt.form { inset: 12% 14% 50% 14%; font: 700 22px/1.3 var(--f-body); letter-spacing: .06em; }
.fxp-cap { position: absolute; background: #f8f9fb; color: #222; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.45); font: 600 28px/1.2 var(--f-body); overflow: hidden; }
.fxp-cap-robot { width: 520px; height: 130px; display: flex; align-items: center; gap: 26px; padding: 0 30px; box-sizing: border-box; }
.fxp-cap-robot .box { width: 54px; height: 54px; border: 4px solid #b9bec7; border-radius: 4px; box-sizing: border-box; position: relative; flex: none; }
.fxp-cap-robot .spin { position: absolute; inset: -6px; border: 6px solid #3d7cf5; border-right-color: transparent; border-radius: 50%; opacity: 0; }
.fxp-cap-robot .x { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font: 700 54px/1 var(--f-body); opacity: 0; }
.fxp-cap-robot small { display: block; color: var(--ink); font: 600 20px var(--f-body); opacity: 0; }
.fxp-cap-grid { width: 470px; }
.fxp-cap-grid header { background: #3d7cf5; color: #fff; padding: 18px 22px; font: 600 24px/1.25 var(--f-body); }
.fxp-cap-grid header b { display: block; font: 700 36px/1.1 var(--f-body); }
.fxp-cap-grid .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.fxp-cap-grid .g div { position: relative; aspect-ratio: 1; background: #0d1a5c; }
.fxp-cap-grid .g img { width: 100%; height: 100%; display: block; }
.fxp-cap-grid .g div.sel img { transform: scale(.82); }
.fxp-cap-grid .g div.sel::after { content: "✓"; position: absolute; left: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; background: #3d7cf5; color: #fff; font: 700 24px/34px var(--f-body); text-align: center; }
.fxp-cap-grid footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 14px; font: 600 20px var(--f-body); color: var(--ink); }
.fxp-cap-grid footer span:last-child { background: #3d7cf5; color: #fff; padding: 10px 20px; border-radius: 3px; }
.fxp-cap-slide { width: 480px; padding: 16px; box-sizing: border-box; }
.fxp-cap-slide .pic { position: relative; height: 220px; border-radius: 4px; background-color: #1b0b2e; background-repeat: no-repeat; background-size: 1100px 619px; }
.fxp-cap-slide .hole { position: absolute; width: 70px; height: 70px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 3px rgba(255,255,255,.8); }
.fxp-cap-slide .piece { position: absolute; left: 10px; width: 70px; height: 70px; background-color: #2a1248; background-repeat: no-repeat; background-size: 1100px 619px; box-shadow: 0 0 0 3px #fff, 0 6px 10px rgba(0,0,0,.5); }
.fxp-cap-slide .rail { margin-top: 14px; height: 56px; border-radius: 28px; background: #e6e9ef; position: relative; font: 600 20px/56px var(--f-body); color: #778; text-align: center; }
.fxp-cap-slide .knob { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: #3d7cf5; color: #fff; font: 700 28px/56px var(--f-body); text-align: center; }
.fxp-cap-math { width: 460px; padding: 26px 30px; box-sizing: border-box; }
.fxp-cap-math .eq { font: 700 64px/1 var(--f-label); letter-spacing: .06em; display: flex; align-items: center; gap: 16px; }
.fxp-cap-math .in { display: inline-block; min-width: 90px; height: 76px; border: 4px solid #b9bec7; border-radius: 6px; text-align: center; line-height: 70px; color: var(--ink); }
.fxp-cap-math small { display: block; margin-top: 14px; font: 600 20px var(--f-body); color: #667; }
.fxp-cap-text { width: 460px; padding: 18px; box-sizing: border-box; }
.fxp-cap-text .pic { height: 150px; display: flex; align-items: center; justify-content: center; gap: 2px; border-radius: 4px;
  background: repeating-linear-gradient(35deg, #d9dde6 0 6px, #eef0f5 6px 14px), #eee; font: 700 92px/1 Georgia, "Times New Roman", serif; color: #30364a; position: relative; overflow: hidden; }
.fxp-cap-text .pic span { display: inline-block; }
.fxp-cap-text .pic i { position: absolute; left: -10%; width: 120%; height: 5px; background: #30364a; border-radius: 3px; }
.fxp-cap-text .row { display: flex; gap: 10px; margin-top: 12px; }
.fxp-cap-text .row span { flex: 1; height: 56px; border: 3px solid #b9bec7; border-radius: 4px; box-sizing: border-box; font: 600 28px/50px var(--f-body); padding-left: 12px; color: var(--ink); }
.fxp-cap-text .row b { background: #3d7cf5; color: #fff; padding: 0 18px; border-radius: 4px; font: 600 22px/56px var(--f-body); }

/* V2.24: «Порт» (portscene.js), состояния пака arcade_fx_v1 (fxstates.js, rainglass.js) */
.pt-box .pt-l { position: absolute; left: 0; top: 0; pointer-events: none; }
.pt-box img.pt-l { max-width: none; }
img.is-px, .is-px { image-rendering: pixelated; }
.fxr-world { pointer-events: none; }
.fxr-glass { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; pointer-events: none; }
.fxr-street { overflow: hidden; width: 2560px; height: 1440px; }
.fxr-streaks { position: absolute; left: -400px; top: -600px; width: 3400px; height: 2600px; transform-origin: 50% 50%; will-change: transform; }
.fxc { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fxc > div { position: absolute; inset: 0; }
.fxc__scan { -webkit-mask: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0,0,0,.75), #000); mask: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0,0,0,.75), #000); }
.fxc > .fxc__grain { inset: -64px; image-rendering: pixelated; background-size: 256px 256px; }
.fxc__fadeG { background: #808080; mix-blend-mode: saturation; }
.fxc__fadeW { background: #c9a27a; mix-blend-mode: soft-light; }
.fxc__fadeL { background: #2a2438; mix-blend-mode: lighten; }
.fxc__fringe { box-shadow: inset 10px 0 24px -8px rgba(255,40,200,.9), inset -10px 0 24px -8px rgba(40,230,255,.9), inset 0 8px 24px -10px rgba(255,40,200,.6), inset 0 -8px 24px -10px rgba(40,230,255,.6); mix-blend-mode: screen; }
.fxc__glare { background: radial-gradient(ellipse 60% 35% at 32% 14%, rgba(255,255,255,.14), rgba(255,255,255,0) 70%), radial-gradient(ellipse 120% 90% at 50% 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,.05) 80%, rgba(255,255,255,0) 95%); }

/* «Об игре» (9.1, V2.27) */
.about-game__box { max-width: 760px; max-height: 88vh; overflow: auto; }
.about-game__sec { margin: 6px 0; }
.about-game__sec > summary { cursor: pointer; font-weight: 600; }
.about-game__table { overflow-x: auto; }
.about-game__table td, .about-game__table th { vertical-align: top; }
.join__about { text-align: center; margin: 8px 0 0; }

/* показ ответа (8.4, критерий 136): медиа вопроса — полосой ~48 px, ответ — вверху без прокрутки */
.mstrip { margin: 10px 0; }
.mstrip__bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.mstrip__thumb { height: 40px; width: 56px; object-fit: cover; border-radius: 4px; }
.mstrip__icon { width: 56px; text-align: center; font-size: 22px; opacity: .8; }
.mstrip__label { flex: 1; font-weight: 600; }
.mstrip--open .media { margin-top: 8px; }
.reveal__mine { margin-top: 6px; font-size: 1.05em; }
.reveal .reveal__img { max-height: 32vh; object-fit: contain; }
@media (max-width: 640px) { .reveal .reveal__img { max-height: 26vh; } }
/* трансляция: экран не прокручивается — медиа уменьшается, чтобы ответ и медиа были видны вместе */
.question--revealed .media--big .media__img { max-height: 34vh; }
.question--revealed .media--big .media__video { max-height: 34vh; }
.question--revealed .reveal--big .reveal__img { max-height: 24vh; }
.about-game__created { white-space: pre-line; }

/* диалоги боссов (34.5): плашка у говорящего; «Рация» — внизу по центру; «меньше анимаций» — без появления */
.bt-say--dlg { animation: rise .3s var(--ease); }
.bt-say--dlg.bt-say--still { animation: none; }
.bt-say--radio { border-color: #3ad0ff; }
.bt-say--radio b { color: #3ad0ff; }
.bt-say--ally0, .bt-say--ally1 { border-color: #9ef04a; }
.bt-say--ally0 b, .bt-say--ally1 b { color: #9ef04a; }
.bt-say--panel { position: static; max-width: none; padding: 10px 14px; font-size: 16px; margin: 0 0 8px; }
.bt-say--panel b { font-size: 14px; }
/* сбой загрузки боя и сцены с кодом (замечание 29): сообщение и статичный фон вместо пустоты */
/* код подгрузился — плавно сменяет запасной вид (замечание 29, V2.33) */
.lazy-in { animation: lazy-in .6s ease-out both; }
@keyframes lazy-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lazy-in { animation: none; } }
/* «простой бой» без арены — пока код боя не пришёл: полоса HP и вопрос работают */
.bt--lite { display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 20%, #2A1145, #12081F 70%); }
.bt-lite { width: min(760px, 100%); display: grid; gap: 12px; text-align: center; }
.bt-lite__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bt-lite__name { font-size: 1.4em; color: var(--bt-yel); }
.bt-lite__phase { opacity: .8; }
.bt-lite__line { font-style: italic; margin: 0; }
.bt-lite__rule { margin: 0; color: var(--bt-cyan); }
.bt-lite__res { text-align: left; margin: 0 auto; }
.bt-lite__note { opacity: .6; margin: 0; }
.ap--fallback { position: absolute; inset: 0; overflow: hidden; }
.ap--fallback__img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== титры (27.4): вступительная заставка и финальные титры ===================== */
.intro { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: #05060d;
  animation: intro-in .6s ease-out both; }
.intro--theme { background: var(--bg); }
.intro__media, .intro .intro__brand { max-width: min(60vw, 520px); max-height: 50vh; object-fit: contain;
  animation: intro-glow 2.4s ease-in-out both; }
.intro--out { animation: intro-out var(--intro-fade, .5s) ease-in both; }
/* пак заставки (33.14): слои эмблемы и огонь четырёх труб; пиксельная — без сглаживания */
.intro__pack { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.qe-emb { position: relative; flex: none; transform-origin: center; }
.qe-emb__layer, .qe-emb__flames { position: absolute; inset: 0; width: 100%; height: 100%; }
.qe-emb__flame { position: absolute; will-change: opacity, transform; pointer-events: none; }
.qe-emb__glow { position: absolute; opacity: 0; mix-blend-mode: screen; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 90, .9), rgba(255, 140, 30, .55) 35%, rgba(255, 90, 20, 0) 70%); }
.qe-emb--px img { image-rendering: pixelated; }
.intro--still, .intro--still .intro__media, .intro--still .intro__brand { animation-duration: .3s; animation-name: intro-in; }
.intro--still.intro--out { animation-name: intro-out; animation-duration: .3s; }
.intro--preview { z-index: 9500; }
@keyframes intro-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes intro-glow { 0% { opacity: 0; filter: drop-shadow(0 0 0 transparent); transform: scale(.96); }
  45% { opacity: 1; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 55%, transparent)); transform: scale(1); }
  100% { opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 25%, transparent)); transform: scale(1); } }

/* колонка титров справа поверх экрана церемонии — на месте общего чата; узкое окно — панель снизу */
.crd { position: fixed; z-index: 40; right: 0; top: 64px; bottom: 44px; width: clamp(300px, 30vw, 440px);
  display: flex; flex-direction: column; background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-left: 1px solid var(--line); backdrop-filter: blur(6px); animation: intro-in .6s ease-out both; }
.crd--big { top: 0; bottom: 0; width: 32vw; font-size: 1.25em; }
.crd__box { position: relative; flex: 1; overflow: hidden; }
.crd__roll { position: absolute; left: 0; right: 0; top: 0; padding: 0 22px; will-change: transform; text-align: center; }
.crd__still { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 22px; text-align: center; animation: intro-in .6s ease-out both; }
.crd__blocks { display: flex; flex-direction: column; gap: 1.4em; }
.crd__rolename { color: var(--muted); font-size: .85em; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3em; }
.crd__name { font-size: 1.1em; line-height: 1.45; }
.crd__title { font-size: 1.6em; font-weight: 700; color: var(--accent); }
.crd__text { white-space: pre-line; line-height: 1.5; }
.crd__image img { max-width: 70%; max-height: 160px; object-fit: contain; }
.crd__final { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 22px; text-align: center;
  font-size: 2em; font-weight: 700; color: var(--accent); animation: intro-in .8s ease-out both; }
.crd__hide { position: absolute; right: 10px; bottom: 10px; }
.crd__replay { position: fixed; right: 16px; bottom: 54px; z-index: 39; }
.crd__after { text-align: center; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
@media (max-width: 899px) {
  .crd { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 33vh; border-left: 0; border-top: 1px solid var(--line); }
  .crd__replay { bottom: 12px; }
}
/* пока идут титры, таблица церемонии стоит левее колонки (27.4, «Раскладка») */
@media (min-width: 900px) {
  .app--player.app--credits .board { margin-right: clamp(300px, 30vw, 440px); }
}
.app--screen.app--credits .board--big { margin-right: 32vw; }

/* титры по теме (27.4, «Оформление по теме»; замечание 39): шрифты, цвета и подложка — из темы квиза */
.crd { font-family: var(--font); color: var(--text); }
.crd__rolename, .crd__title, .crd__final, .crd__after { font-family: var(--font-label, var(--font)); }
.crd__name, .crd__text { font-family: var(--font); }
.crd__name, .crd__rolename, .crd__title, .crd__text, .crd__final, .crd__after { overflow-wrap: anywhere; hyphens: auto; }   /* длинные строки переносятся, не уменьшаются */

/* Прокрутка (замечание 54, V2.42): страница игрока и экрана трансляции не прокручивается никогда. У игрока — как
   приложение на всех ширинах: высота окна, одна прокрутка — колонка вопроса (.stage), у чата и длинных списков —
   свои; вложенных полос нет. Экран трансляции целиком помещается в окно (у длинных списков — свои правила).
   Полосы прокрутки — тонкие, цвета темы. Автопроверка — e2e «прокрутки» (1366×768, 1920×1080, 390 px, масштаб 125 %). */
.app--player { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.app--player > .playgrid { flex: 1 1 auto; min-height: 0; }
.app--player > .playgrid > .stage { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.app--player > main.join { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.app--screen { height: 100vh; min-height: 0; overflow: hidden; }
.app--screen > .stage { flex: 1 1 auto; min-height: 0; overflow-y: auto; }   /* длинная таблица (15+ команд) — своя прокрутка, не обрезается */
.pframe .app--player, .pframe .app--screen { height: 100%; }
.theme-game, .theme-game * { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.theme-game ::-webkit-scrollbar { width: 8px; height: 8px; }
.theme-game ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.theme-game ::-webkit-scrollbar-track { background: transparent; }
/* форма отзыва свёрнута в строку (замечание 53): плавное появление */
.feedback--folded { display: block; padding: 10px 16px; animation: fbfold .5s var(--ease, ease) both; }
@keyframes fbfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.less-motion .feedback--folded { animation: none; }

/* Язык сцен, формат 2 (V3.0-α1): постер — первый кадр сцены, виден сразу и на ступени «Постер»; фон за коробкой —
   тот же постер, растянутый и размытый (keep уменьшил сцену меньше экрана) */
.sl-stage .sl-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.75); transform: scale(1.08); pointer-events: none; }
.sl-stage .sl-poster { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; max-width: none; transition: opacity .6s; pointer-events: none; }
.sl-stage .sl-poster--off { opacity: 0; }
.sl-stage .sl-host { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; }
.sl-text { font-family: var(--font-display, inherit); color: #fff; font-size: 64px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
