/*
 * BitvaCMS — мобильная версия
 *
 * Цвета взяты из десктопа: чёрная шапка #1e1e1e, золото логотипа #fcd100,
 * красный заголовков #c10d0a и синий ссылок #406d87. Красный и синий — углы
 * ринга: ими помечены левая и правая сторона везде (фото, полоса, кнопки).
 */

:root {
	--ring: #1e1e1e;
	--gold: #fcd100;
	--red: #c10d0a;
	--blue: #406d87;
	--paper: #ffffff;
	--mist: #f2f2f2;
	--rule: #e3e3e3;
	--ink: #1e1e1e;
	--muted: #6b6b6b;
	--gutter: 16px;
	--col: 560px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font: 16px/1.5 var(--font);
	color: var(--ink);
	background: var(--paper);
	-webkit-tap-highlight-color: transparent;
	-webkit-font-smoothing: antialiased;
	display: flex; flex-direction: column; min-height: 100vh;
}

[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.bar :focus-visible, .foot :focus-visible, .notice :focus-visible { outline-color: var(--gold); }

.skip {
	position: absolute; left: 8px; top: -60px; z-index: 100;
	background: var(--gold); color: var(--ring); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 8px; }

.sr-only, .js .panel-title {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- Шапка */

.bar {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: calc(52px + env(safe-area-inset-top, 0px));
	padding: env(safe-area-inset-top, 0px) max(var(--gutter), calc(50% - var(--col) / 2 + var(--gutter))) 0;
	background: var(--ring);
}

.bar-logo { display: block; padding: 12px 0; flex: none; }
.bar-logo {
	font: 700 19px/1 Arial, Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
.logo-mark { display: block; height: 22px; width: auto; }

.bar-nav { display: flex; align-items: center; gap: 4px; }

.bar-link {
	color: #d2d2d1; text-decoration: none; font-size: 15px; white-space: nowrap;
	padding: 12px 10px; border-radius: 8px;
}
.bar-link[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.bar-add {
	display: inline-flex; align-items: center; gap: 6px;
	height: 36px; padding: 0 14px 0 11px; margin-left: 4px;
	border: 1.5px solid var(--gold); border-radius: 18px;
	color: var(--gold); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.bar-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.bar-add[aria-current] { background: var(--gold); color: var(--ring); }

/* ------------------------------------------------------------ Раскладка */

.main {
	flex: 1 0 auto; width: 100%;
	max-width: var(--col);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.page-head, .intro { padding: 24px 0 8px; }

.page-title, .intro-title {
	margin: 0 0 6px;
	font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em;
}
.page-sub, .intro-text { margin: 0; color: var(--muted); max-width: 34em; }

.empty { color: var(--muted); padding: 16px 0; margin: 0; }

.block { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.block-title { margin: 0 0 12px; font-size: 19px; line-height: 1.25; font-weight: 750; }

/* --------------------------------------------------------------- Кнопки */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 18px;
	border: 0; border-radius: 12px;
	font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none;
	cursor: pointer; -webkit-appearance: none; appearance: none;
	-webkit-user-select: none; user-select: none;
	transition: transform .08s ease-out, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn-wide { display: flex; width: 100%; }
/* «Голосовать» — тёмно-зелёная глянцевая, как кнопка десктопа, только темнее (белый текст читается) */
.btn-a, .btn-b {
	width: 100%; color: #fff;
	background: #4a7f1c;
	background: linear-gradient(to bottom, #5f9a2a 0%, #4a7f1c 55%, #3b6a12 100%);
	border: 1px solid #335e0f;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
}
.btn-a:active, .btn-b:active { background: #3b6a12; box-shadow: none; }
.btn-ink { background: var(--ring); color: #fff; }
.btn-quiet { background: var(--mist); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ring); }

/* --------------------------------------------------------------- Главная */

.tabs { display: none; }
.js .tabs {
	display: flex; gap: 24px;
	margin-top: 12px; border-bottom: 1px solid var(--rule);
}
.tab {
	position: relative; -webkit-appearance: none; appearance: none;
	background: none; border: 0; padding: 12px 0; margin: 0;
	font-size: 17px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
	background: var(--ring); border-radius: 3px 3px 0 0;
}

.panel-title { margin: 28px 0 4px; font-size: 19px; font-weight: 750; }
.js .panel { display: none; }
.js .panel.is-active { display: block; }

.after-list { padding: 16px 0 0; }

/* Строка битвы: две миниатюры в цветах углов + вопрос */
.rows { list-style: none; margin: 0; padding: 0; }
.row + .row { border-top: 1px solid var(--rule); }

.row-link {
	display: flex; align-items: center; gap: 14px;
	margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter);
	min-height: 80px; color: inherit; text-decoration: none;
}
.row-link:active { background: var(--mist); }

.thumbs { flex: none; display: flex; gap: 2px; }
.thumb {
	display: block; width: 50px; height: 52px; object-fit: cover; background: var(--mist);
	border-bottom: 3px solid;
}
.thumb-a { border-radius: 8px 0 0 8px; border-color: var(--red); }
.thumb-b { border-radius: 0 8px 8px 0; border-color: var(--blue); }

.row-body { min-width: 0; }
.row-title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	font-weight: 650; font-size: 16px; line-height: 1.3;
}
.row-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.tag {
	display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 5px;
	background: var(--mist); font-size: 12px; font-weight: 600;
}

/* ------------------------------------------------------- Страница битвы */

.battle { padding-top: 20px; }
.battle-title {
	margin: 0 0 16px;
	font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.015em;
	text-wrap: balance;
}
.battle-text { margin-top: 20px; font-size: 16px; line-height: 1.6; }
.battle-text p { margin: 0 0 .8em; }
.battle-text img { height: auto; }

.notice {
	margin: 0 calc(-1 * var(--gutter));
	padding: 16px var(--gutter);
	background: var(--ring); color: #fff;
}
.notice-text { margin: 0 0 12px; font-weight: 600; }

/* ---------------------------------------------------------- Голосование */

.battle-title + .voting .voting-when { margin-top: -10px; }
.voting-when { margin: 0 0 14px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.voting-when.is-over { color: var(--ink); font-weight: 600; }

/* Две стороны лицом к лицу */
.pair {
	display: grid; grid-template-columns: 1fr 1fr;
	margin: 0 calc(-1 * var(--gutter));
}

.pair-pic {
	grid-row: 1; position: relative; display: block;
	margin: 0; padding: 0; border: 0; border-radius: 0;
	background: var(--mist); cursor: pointer; overflow: hidden;
	aspect-ratio: 1 / 1;
	-webkit-appearance: none; appearance: none;
}
.pair-pic-a { grid-column: 1; border-right: 1.5px solid var(--paper); }
.pair-pic-b { grid-column: 2; border-left: 1.5px solid var(--paper); }
.pair-pic img {
	position: absolute; inset: 0; display: block;
	width: 100%; height: 100%; object-fit: cover;
	transition: filter .3s, opacity .3s, transform .15s ease-out;
}
.pair-pic:active img { transform: scale(.985); }
@supports not (aspect-ratio: 1 / 1) {
	.pair-pic { height: 0; padding-bottom: 100%; }
}

.vs {
	grid-column: 1 / 3; grid-row: 1; align-self: center; justify-self: center; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--ring); box-shadow: 0 0 0 3px var(--paper);
	pointer-events: none;
}
.vs-mark { display: block; width: 30px; height: auto; fill: var(--gold); margin-top: 2px; }

/* Полоса перетягивания: красный тянет влево, синий вправо */
.tug {
	grid-column: 1 / 3; grid-row: 2;
	height: 8px; background: var(--blue); overflow: hidden;
}
.tug-a {
	position: relative; display: block; height: 100%;
	background: var(--red);
	transition: width .7s cubic-bezier(.2, .8, .2, 1);
}
.tug-a::after {
	content: ""; position: absolute; top: 0; bottom: 0; right: -1.5px; width: 3px;
	background: var(--paper);
}
.tug.is-empty { background: var(--rule); }
.tug.is-empty .tug-a { background: var(--rule); }

.tug-legend {
	grid-column: 1 / 3; grid-row: 3;
	display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
	margin: 0; padding: 10px var(--gutter) 0;
	font-variant-numeric: tabular-nums;
}
.tug-pct { font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.tug-pct-a { color: var(--red); }
.tug-pct-b { color: var(--blue); }
.tug-total { font-size: 13px; color: var(--muted); text-align: center; }
.tug.is-empty + .tug-legend .tug-pct { visibility: hidden; }

.pair-side {
	grid-row: 4; min-width: 0;
	display: flex; flex-direction: column;
	padding: 10px var(--gutter) 0;
}
.pair-side-a { grid-column: 1; padding-right: 8px; }
.pair-side-b { grid-column: 2; padding-left: 8px; align-items: flex-end; text-align: right; }

.pair-name {
	margin: 0; font-size: 17px; line-height: 1.25; font-weight: 750;
	overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto;
}
.pair-count { margin: 3px 0 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pair-count b { color: var(--ink); font-weight: 700; }
.pair-side .btn { margin-top: auto; }

/* Отметка выбранной стороны */
.pair-mark {
	position: absolute; left: 8px; bottom: 8px; z-index: 1;
	display: none; padding: 4px 9px; border-radius: 6px;
	background: var(--ring); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.pair-pic-b .pair-mark { left: auto; right: 8px; }
.is-chosen .pair-mark { display: block; }

[data-voted] .pair-pic:not(.is-chosen) img { filter: grayscale(1); opacity: .55; }
[data-voted] .pair-side .btn { display: none; }
[data-voted] .pair-count { margin-bottom: 0; }

[data-state="ended"] .pair-pic, [data-state="soon"] .pair-pic { cursor: default; }
[data-state="ended"] .pair-pic:active img { transform: none; }

[data-busy] .pair-side .btn { opacity: .6; }

/* Больше двух вариантов — список с полосами */
.options {
	list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0;
	border-top: 1px solid var(--rule);
}
.option-btn {
	position: relative; display: flex; align-items: center; gap: 12px;
	width: 100%; margin: 0; padding: 12px var(--gutter);
	background: none; border: 0; border-bottom: 1px solid var(--rule);
	text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.option-btn:active { background: var(--mist); }
.option-pic { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--mist); }
.option-body { flex: 1; min-width: 0; }
.option-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.option-bar { display: block; height: 6px; margin: 8px 0 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.option-bar span { display: block; height: 100%; border-radius: 3px; background: var(--ring); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.option-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.option-meta b { color: var(--ink); }
.option-btn .pair-mark { left: auto; right: var(--gutter); top: 10px; bottom: auto; }
.option-btn.is-chosen .option-bar span { background: var(--red); }
.option-btn.is-chosen .option-meta { padding-right: 0; }
[data-voted] .option-btn:not(.is-chosen) .option-pic { filter: grayscale(1); opacity: .55; }

.voting-foot { padding-top: 16px; }
.voting-status {
	margin: 0 auto; max-width: 30em;
	font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center;
}
.voting-status.is-strong { color: var(--ink); font-weight: 600; }
.voting-foot .btn { margin-top: 12px; }

/* ----------------------------------------------------- Ссылка и соседи */

.copy-field { display: flex; gap: 8px; margin-bottom: 10px; }
.copy-input {
	flex: 1; min-width: 0; height: 48px; padding: 0 12px;
	border: 1px solid var(--rule); border-radius: 12px; background: var(--mist);
	font: inherit; font-size: 15px; color: var(--muted);
}
.btn-copy { flex: none; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.pager-link {
	display: flex; flex-direction: column; gap: 2px; min-height: 76px;
	padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px;
	color: inherit; text-decoration: none;
}
.pager-link:active { background: var(--mist); }
.pager-next { grid-column: 2; text-align: right; }
.pager-dir { font-size: 13px; color: var(--muted); }
.pager-name {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-weight: 650; font-size: 15px; line-height: 1.3;
}

.howto-sum {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 44px; cursor: pointer; list-style: none;
	font-size: 19px; font-weight: 750;
}
.howto-sum::-webkit-details-marker { display: none; }
.howto-sum::after {
	content: ""; width: 9px; height: 9px; margin: 0 6px 4px 0;
	border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg);
	transition: transform .2s;
}
.howto[open] .howto-sum::after { transform: rotate(-135deg); margin-bottom: -4px; }

.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; margin: 0 0 14px; padding-left: 42px; }
.steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: -1px;
	width: 28px; height: 28px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--ring); color: var(--gold); font-size: 14px; font-weight: 800;
}

.comments-box { min-height: 48px; }
.comments.is-bvc .block-title {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.comments.is-bvc .comments-box { margin: 0 calc(-1 * var(--gutter)); }
.comments.is-bvc .comments-box.bvc { width: auto; }

/* ------------------------------------------------------------- Все битвы */

.feed-item {
	margin: 0 calc(-1 * var(--gutter));
	padding: 22px var(--gutter) 24px;
	border-bottom: 8px solid var(--mist);
}
.feed-title { margin: 0 0 6px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.feed-title a { color: inherit; text-decoration: none; }
.feed-link { display: inline-block; margin-top: 10px; padding: 8px 0; font-size: 15px; font-weight: 600; text-decoration: none; }

.more { padding: 20px 0 0; }
.more-prev { display: block; margin-top: 14px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------ Новая битва */

.alert {
	margin: 8px 0 16px; padding: 14px 16px;
	border-radius: 12px; border-left: 4px solid var(--red);
	background: #fcecec; color: #6d0a08;
}
.alert[hidden] { display: none; }
.alert-title { margin: 0 0 4px; font-weight: 700; }
.alert-list { margin: 0; padding-left: 18px; }

.add { padding: 8px 0 8px; }
.field { display: block; margin: 0 0 16px; }
.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.input {
	display: block; width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1.5px solid var(--rule); border-radius: 12px; background: #fff;
	font: inherit; font-size: 16px; color: var(--ink); resize: none;
	-webkit-appearance: none; appearance: none;
}
.input:focus { outline: none; border-color: var(--ring); }
.input.is-bad { border-color: var(--red); }

.add-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.add-side { min-width: 0; margin: 0; padding: 0; border: 0; }
.add-legend { padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.add-side-a .add-legend { color: var(--red); }
.add-side-b .add-legend { color: var(--blue); }

.photo {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 1 / 1; margin-bottom: 12px;
	border: 2px dashed; border-radius: 12px; background: var(--mist); cursor: pointer;
}
@supports not (aspect-ratio: 1 / 1) { .photo { height: 0; padding-bottom: calc(100% - 4px); } }
.add-side-a .photo { border-color: rgba(193, 13, 10, .35); }
.add-side-b .photo { border-color: rgba(64, 109, 135, .45); }
.photo.is-bad { border-color: var(--red); border-style: solid; }
.photo-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-empty {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	font-size: 14px; font-weight: 600; color: var(--muted);
}
.photo-empty svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.has-photo { border-style: solid; border-color: transparent; }
.photo.has-photo .photo-empty { display: none; }
.photo.is-loading .photo-empty { opacity: .4; }

.vs-add {
	position: absolute; left: 50%; z-index: 3;
	top: calc(30px + (min(100vw, var(--col)) - 2 * var(--gutter) - 12px) / 4);
	width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.vs-add .vs-mark { width: 24px; }

.add-note { margin: 0 0 16px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ 404 */

.nf { padding: 40px 0 16px; }
.nf-code {
	margin: 0 0 8px; font-size: 96px; line-height: 1; font-weight: 900; letter-spacing: -0.04em;
	color: var(--paper); -webkit-text-stroke: 2px var(--ring);
}
.nf-actions { display: grid; gap: 10px; margin-top: 24px; }

.offline { max-width: 30rem; margin: 0 auto; padding: 30vh 20px 0; }

/* --------------------------------------------------------------- Подвал */

.foot {
	margin-top: 48px;
	padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
	background: var(--ring); color: #9a9a9a;
	font-size: 13px; text-align: center;
}
.foot p { margin: 8px 0 0; }
.foot a { color: #d2d2d1; }
.foot-full { display: inline-block; padding: 10px 4px; font-size: 15px; font-weight: 600; color: #fff !important; }

/* ---------------------------------------------- Запасное меню «Поделиться» */
/* Цвета сервисов затемнены до контраста 4.5:1 с белыми буквами (WCAG AA) */

.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: fade-in .2s ease-out; }
.sheet-panel {
	position: absolute; left: 0; right: 0; bottom: 0;
	max-width: var(--col); margin: 0 auto;
	padding: 8px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
	border-radius: 18px 18px 0 0; background: var(--paper);
	animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1);
	touch-action: pan-x;
}
.sheet-panel:focus { outline: none; }
.sheet-grip { width: 36px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #d4d4d4; }
.sheet-title { margin: 0 0 4px; font-size: 18px; font-weight: 750; text-align: center; }
.sheet-sub { margin: 0 auto 16px; max-width: 26em; font-size: 14px; color: var(--muted); text-align: center; }
.sheet-sub:empty { display: none; }
.sheet-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sheet-item {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	width: 100%; padding: 10px 2px; border: 0; border-radius: 12px; background: none;
	color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sheet-item:active { background: var(--mist); }
.sheet-ico {
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .02em;
}
.sheet-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-vk { background: #0066dd; }
.ico-ok { background: #b85c00; }
.ico-tg { background: #177aa8; }
.ico-wa { background: #15803d; }
.ico-viber { background: #6450e0; }
.ico-copy { background: var(--ring); }

/* ---------------------------------------------------------------- Тост */

.toast {
	position: fixed; left: var(--gutter); right: var(--gutter); z-index: 60;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	max-width: 420px; margin: 0 auto; padding: 12px 16px;
	border-radius: 12px; background: var(--ring); color: #fff;
	font-size: 15px; line-height: 1.4;
	opacity: 0; transform: translateY(8px); pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: none; }
.toast:empty { display: none; }

@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media (max-width: 350px) {
	.logo-mark { height: 19px; }
	.bar { gap: 8px; }
	.bar-link { padding: 12px 6px; font-size: 14px; }
	.bar-add { padding: 0 11px 0 9px; font-size: 14px; }
	.battle-title, .page-title, .intro-title { font-size: 24px; }
}

@media (min-width: 400px) {
	.battle-title { font-size: 28px; }
	.vs { width: 60px; height: 60px; }
	.vs-mark { width: 32px; }
}

/* ----------------------------------- 25.10.2026: голос через Апельсинки */
.pair-pic { cursor: default; }
.pair-pic:active img { transform: none; }
.option-btn { cursor: default; }
.option-btn:active { background: none; }

/* кнопки — одной колонкой, во всю ширину, с воздухом между ними */
.ap-list { margin-top: 18px; }
.ap-item + .ap-item { margin-top: 14px; }
.ap-for {
	margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.3;
	overflow-wrap: anywhere;
}
.ap-item-a .ap-for { color: var(--red); }
.ap-item-b .ap-for { color: var(--blue); }
.ap-btn { min-height: 30px; }
.ap-btn { text-align: center; }
.ap-btn .sv-share { display: inline-block; max-width: 100%; vertical-align: top; }   /* 26.10.2026: обычная кнопка по центру */
.ap-btn iframe { display: block; max-width: 100%; }
.ap-btn-row { padding: 0 var(--gutter) 14px; border-bottom: 1px solid var(--rule); }
.option .ap-btn-row { margin-top: -1px; }
.option-btn + .ap-btn-row { padding-top: 0; }
.option-btn:has(+ .ap-btn-row) { border-bottom: 0; }
/* запасная ссылка, пока не загрузился скрипт Апельсинок */
.btn-ap {
	color: #fff; background: #ee7d13; border: 1px solid #c8600a;
	white-space: nowrap;
}
.btn-ap:active { background: #d96d0b; }

/* ------------------------------------------- Живая главная (27.10.2026, GolosHome) */
.gh-m-stats { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.gh-m-stats b { color: var(--red); }
.gh-m-h { margin: 0 0 4px; font-size: 19px; font-weight: 750; }
.gh-m-h small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.gh-m-sec { margin-top: 28px; }
.gh-m-plus { color: var(--red); }
.gh-m-split { color: #4a7f1c; }

.gh-m-day { margin-top: 20px; padding: 16px; border: 1px solid var(--rule); border-radius: 14px; }
.gh-m-dt { display: block; margin: 6px 0 12px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; }
.gh-m-sides { display: flex; gap: 10px; }
.gh-m-side { flex: 1 1 0; min-width: 0; color: var(--ink); text-decoration: none; text-align: center; }
.gh-m-side img, .gh-m-noimg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border-bottom: 4px solid var(--red); background: var(--mist); }
.gh-m-sideb img, .gh-m-sideb .gh-m-noimg { border-color: var(--blue); }
.gh-m-an { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.gh-m-pc { display: block; font-size: 22px; font-weight: 800; color: var(--red); }
.gh-m-sideb .gh-m-pc { color: var(--blue); }
.gh-m-bar { height: 8px; margin-top: 12px; border-radius: 4px; background: var(--blue); overflow: hidden; }
.gh-m-bar span { display: block; height: 100%; background: var(--red); }
.gh-m-bar.is-empty, .gh-m-bar.is-empty span { background: var(--rule); }
.gh-m-dn { margin: 8px 0 0; font-size: 14px; color: #4a7f1c; font-weight: 700; }
.gh-m-acts { display: flex; gap: 10px; margin-top: 12px; }
.gh-m-acts .btn { flex: 1 1 0; }
.gh-m-btn-tg { background: #229ed9; color: #fff; }

.gh-m-tg { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #e9f6fd; }
.gh-m-tgmain { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.gh-m-tgmain img { flex: none; width: 40px; height: 40px; }
.gh-m-tgmain b { display: block; font-size: 17px; color: #1c88cc; }
.gh-m-tgmain small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.gh-m-tglinks { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gh-m-tglinks a { color: #1c88cc; }

.gh-m-cm a { display: block; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter); color: inherit; text-decoration: none; }
.gh-m-cmt { display: block; font-size: 15px; line-height: 1.35; font-style: italic; }
.gh-m-disc { font-style: normal; font-weight: 650; }
.gh-m-cms .row-meta b { color: var(--ink); }

.foot-top { margin: 6px 0 0; }
.foot-top img { display: inline-block; vertical-align: middle; }
