/* ============================================================================
   PlayInWoW — поверх site.css («Врата Азерота»).

   1. Сопряжение макета с сайтом: ссылки вместо кнопок-заглушек, поля
      настоящих форм (повтор пароля, согласие), форма выхода.
   2. Система внутренних страниц: у них нет отдельных макетов, поэтому они
      получают материалы главной — камень, потёртая бронза, светлый металл,
      Cormorant Garamond и Manrope. Страницы опираются на токены --color-*,
      --fs-*, --font-* и классы .container-piw / .piw-panel; здесь они
      переопределены в новой палитре, разметка страниц не менялась.

   Главная сюда почти не заходит: её вид целиком из site.css.
   ========================================================================= */

/* ---------------------------------------------------------------- 1. сопряжение */

/* пункты меню, сервисы, карточки и действия стали ссылками — без подчёркивания */
#ice-citadel .ic-nav a,
#ice-citadel .ic-sidebar a,
#ice-citadel .ic-news-card,
#ice-citadel .tg-account-button,
#ice-citadel .ic-primary,
#ice-citadel .ic-secondary,
#ice-citadel .ic-text-button,
#ice-citadel .tg-world-name,
#ice-citadel .g-footer-brand,
#ice-citadel .g-footer-links a,
#ice-citadel .g-about-page a {
	text-decoration: none;
}
/* карточка хроники стала ссылкой: цвет текста как у кнопки макета, сетку задаёт site.css */
#ice-citadel .ic-news-card {
	color: inherit;
}

/* настоящие публикации бывают длиннее примеров макета — не больше двух строк */
#ice-citadel .ic-news-copy b,
#ice-citadel .ic-news-copy .g-news-description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

/* у двух карточек общие строки сетки: при разной длине текста окна картинок одной высоты */
@media (min-width: 881px) and (min-height: 680px) {
	#ice-citadel .ic-news-grid {
		grid-template-rows: minmax(110px, 1fr) auto;
	}
	#ice-citadel .ic-news-card {
		grid-row: span 2;
		grid-template-rows: subgrid;
		/* subgrid наследует gap сетки (34px) — между картинкой и подписью его быть не должно */
		row-gap: 0;
	}
}

/* форма выхода на первом экране не должна ломать ряд кнопок */
#ice-citadel .tg-inline-form {
	display: contents;
}

/* согласие с правилами в окне регистрации */
#ice-citadel .ic-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 14px 0 4px;
	font-size: 12px;
	line-height: 1.5;
	color: #cbbf9f;
}
#ice-citadel .ic-check input {
	margin: 3px 0 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	box-shadow: none !important;
	align-self: flex-start;
	width: 16px;
	height: 16px;
	accent-color: #c6a56c;
	flex-shrink: 0;
}
#ice-citadel .ic-check a {
	color: #efd59b;
}
#ice-citadel .ic-field input[aria-invalid='true'] {
	border-color: #c9785f;
}
#ice-citadel .ic-form-error:empty {
	display: none;
}
#ice-citadel .tg-account-switch a {
	color: #d7c092;
}

/* ссылки подвала: из базы их больше, чем одна кнопка макета */
#ice-citadel .g-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 12px;
}
#ice-citadel .g-footer-links a {
	color: #b9a987;
	transition: color 0.3s;
}
#ice-citadel .g-footer-links a:hover,
#ice-citadel .g-footer-links a:focus-visible {
	color: #efd59b;
}

/* прокрутка с привязкой к главам — только на главной, внутренним страницам она мешает читать */
:root:has(#ice-citadel[data-page='inner']) {
	scroll-snap-type: none;
}

/* ---------------------------------------------------------------- 2. токены */

#ice-citadel[data-page='inner'] {
	--color-gold: #c6a56c;
	--color-gold-soft: #efd59b;
	--color-gold-deep: #7d6238;
	--color-bronze: #a8834c;
	--color-bronze-deep: #5d4527;
	--color-copper: #b87a4b;
	--color-ice: #8ec5e6;
	--color-ice-soft: #cfe6f4;
	--color-ice-deep: #3f6f8c;
	--color-fire: #e39a4e;
	--color-fire-soft: #f3c48f;
	--color-fire-deep: #8f4f22;
	--color-stone-1: #0b1012;
	--color-stone-2: #111719;
	--color-stone-3: #172024;
	--color-stone-4: #20292d;
	--color-stone-5: #2b3438;
	--color-bg: #0b1012;
	--color-surface-1: #121a1d;
	--color-parchment: #d8c9a4;
	--color-parchment-ink: #2b2317;
	--color-frame: #5f5037;
	--color-frame-lit: #a28a59;
	--color-frame-gold: #a28a59;
	--color-frame-ice: #4f6f80;
	--color-frame-fire: #7a5433;
	--color-head: #efd59b;
	--color-body: #ede7d7;
	--color-dim: #c3bba6;
	--color-mute: #a9aaa2;
	--color-success: #9fcf7a;
	--color-online: #9fcf7a;
	--color-danger: #e5aa90;
	--color-warn: #e3c07a;
	--color-offline: #8c8f8a;
	--color-alliance: #7fb2e6;
	--color-horde: #e0735f;

	--text: #ede7d7;
	--text-dim: #c3bba6;
	--text-hi: #fff6e0;
	--accent: #c6a56c;
	--accent-rgb: 198 165 108;
	--gold-rgb: 198 165 108;
	--ice-rgb: 142 197 230;
	--fire-rgb: 227 154 78;
	--gold-300: #efd59b;
	--gold-glow: 0 0 18px rgb(198 165 108 / 0.35);
	--metal-gold: linear-gradient(180deg, #f3deac, #c6a56c 55%, #8a6c3c);
	--hair: rgb(162 138 89 / 0.35);

	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: Manrope, 'Segoe UI', sans-serif;
	--font-num: Manrope, 'Segoe UI', sans-serif;
	--font-ui: Manrope, 'Segoe UI', sans-serif;
	--font-mono: ui-monospace, Consolas, monospace;

	--radius-s: 2px;
	--radius-m: 3px;
	--radius-l: 4px;
	--radius-xl: 6px;
	--t-fast: 0.15s;
	--t: 0.2s;
	--t-slow: 0.3s;
	--t-slower: 0.45s;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	--fs-display: clamp(38px, 6vw, 68px);
	--fs-h1: clamp(32px, 4.2vw, 50px);
	--fs-h2: clamp(24px, 3vw, 32px);
	--fs-h3: clamp(18px, 2vw, 22px);
	--fs-lead: clamp(15px, 1.5vw, 17px);
	--fs-body: 15px;
	--fs-small: 13px;
	--fs-caption: 11.5px;
	--fs-stat: clamp(24px, 3.4vw, 40px);
}

/* ---------------------------------------------------------------- 3. страница */

/* свой фон внутренних страниц: камень зала и тёплый свет сверху.
   Дорисованный пол главной сюда намеренно не переносится. */
:where(#ice-citadel) main.pw-inner {
	position: relative;
	min-height: calc(100dvh - var(--g-header-height, 78px) - 120px);
	padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 90px);
	background:
		radial-gradient(ellipse 70% 42% at 50% 0%, rgb(198 165 108 / 0.13), transparent 70%),
		radial-gradient(ellipse 40% 30% at 12% 20%, rgb(142 197 230 / 0.06), transparent 70%),
		radial-gradient(ellipse 40% 30% at 88% 22%, rgb(140 190 90 / 0.05), transparent 70%),
		linear-gradient(180deg, #111719, #0b1012 60%, #090d0f);
	color: var(--color-body);
	font: 400 var(--fs-body) / 1.7 var(--font-body);
}

:where(#ice-citadel .pw-inner) h1,
:where(#ice-citadel .pw-inner) h2,
:where(#ice-citadel .pw-inner) h3,
:where(#ice-citadel .pw-inner) h4 {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--color-head);
	line-height: 1.15;
	text-shadow: 0 2px 10px #000a;
}
:where(#ice-citadel .pw-inner) h1 {
	font-size: var(--fs-h1);
	margin: 0 0 12px;
}
:where(#ice-citadel .pw-inner) h2 {
	font-size: var(--fs-h2);
	margin: 1.4em 0 0.5em;
}
:where(#ice-citadel .pw-inner) h3 {
	font-size: var(--fs-h3);
	margin: 1.2em 0 0.4em;
}
:where(#ice-citadel .pw-inner) p {
	margin: 0 0 0.9em;
}
:where(#ice-citadel .pw-inner) a {
	color: #e6c98e;
	text-decoration-color: rgb(198 165 108 / 0.45);
	text-underline-offset: 3px;
	transition: color 0.25s;
}
:where(#ice-citadel .pw-inner) a:hover {
	color: #fff0c8;
}
:where(#ice-citadel .pw-inner) ul,
:where(#ice-citadel .pw-inner) ol {
	padding-left: 1.3em;
	margin: 0 0 1em;
}
:where(#ice-citadel .pw-inner) li {
	margin: 0.25em 0;
}
:where(#ice-citadel .pw-inner) li::marker {
	color: var(--color-gold);
}
:where(#ice-citadel .pw-inner) code {
	font-family: var(--font-mono);
	font-size: 0.92em;
	padding: 2px 6px;
	background: #0a1113;
	border: 1px solid #3a3326;
	color: #f0dcae;
}
:where(#ice-citadel .pw-inner) hr {
	border: 0;
	height: 1px;
	margin: 2em 0;
	background: linear-gradient(90deg, transparent, #a28a59, transparent);
}

.container-piw {
	width: min(1200px, 100% - 2 * clamp(16px, 4vw, 48px));
	margin-inline: auto;
}

/* панель — плита потемневшей бронзы с двойным кантом, как рама меню */
:where(#ice-citadel) .piw-panel {
	position: relative;
	border: 1px solid #6b5a3c;
	border-radius: 2px;
	background:
		radial-gradient(ellipse at 50% 0%, rgb(198 165 108 / 0.07), transparent 65%),
		linear-gradient(180deg, #161d20, #0f1517 70%, #121819);
	box-shadow:
		inset 0 0 0 1px #0a0f11,
		inset 0 0 0 2px rgb(162 138 89 / 0.18),
		0 10px 28px #0008;
}

.piw-label {
	font: 600 var(--fs-caption, 11.5px) / 1.2 Manrope, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #a9aaa2;
}
.piw-num {
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum';
	font-weight: 600;
}
.piw-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, #a28a59, transparent);
	margin: 1.5em 0;
}
:where(#ice-citadel .pw-inner) .muted {
	color: var(--color-mute);
}
:where(#ice-citadel .pw-inner) .lead {
	font-size: var(--fs-lead);
	color: var(--color-dim);
}

/* поля и кнопки внутренних форм — те же, что в окне входа */
:where(#ice-citadel .pw-inner) input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
:where(#ice-citadel .pw-inner) select,
:where(#ice-citadel .pw-inner) textarea {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #766747;
	border-radius: 2px;
	background: #0d1518;
	color: #e0d8c6;
	font: 400 15px/1.4 Manrope, sans-serif;
	transition: border-color 0.2s, box-shadow 0.2s;
}
:where(#ice-citadel .pw-inner) input::placeholder,
:where(#ice-citadel .pw-inner) textarea::placeholder {
	color: #7f7a6c;
}
:where(#ice-citadel .pw-inner) input:focus-visible,
:where(#ice-citadel .pw-inner) select:focus-visible,
:where(#ice-citadel .pw-inner) textarea:focus-visible {
	outline: none;
	border-color: #c6a56c;
	box-shadow: 0 0 0 3px rgb(198 165 108 / 0.2);
}
:where(#ice-citadel .pw-inner) input[type='checkbox'],
:where(#ice-citadel .pw-inner) input[type='radio'] {
	accent-color: #c6a56c;
}

/* основная кнопка формы — бронзовая плита, как «Скачать лаунчер» на террасе */
:where(#ice-citadel .pw-inner) button[type='submit'],
:where(#ice-citadel .pw-inner) .btn,
:where(#ice-citadel .pw-inner) .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 24px;
	border: 1px solid #ba985e;
	border-radius: 2px;
	background: linear-gradient(180deg, #86622e, #4d351e 45%, #34251a 54%, #65502d);
	box-shadow:
		inset 0 0 0 2px #211b14,
		inset 0 0 0 3px #9b764233,
		0 3px 12px #0009;
	color: #f3deac;
	font: 600 13px Manrope, sans-serif;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-shadow: 0 1px #000;
	cursor: pointer;
	transition: filter 0.3s, box-shadow 0.3s;
}
:where(#ice-citadel .pw-inner) button[type='submit']:hover,
:where(#ice-citadel .pw-inner) .btn:hover,
:where(#ice-citadel .pw-inner) .submit:hover {
	filter: brightness(1.12);
	box-shadow:
		inset 0 0 0 2px #211b14,
		inset 0 0 0 3px #c69a5555,
		0 0 18px rgb(198 165 108 / 0.25),
		0 3px 12px #0009;
}
:where(#ice-citadel .pw-inner) button[type='submit']:disabled {
	filter: grayscale(0.4) brightness(0.8);
	cursor: progress;
}
:where(#ice-citadel .pw-inner) .ghost {
	background: transparent;
	border: 1px solid #6b5a3c;
	color: #d7c092;
}
:where(#ice-citadel .pw-inner) .danger {
	border-color: #9a5a48;
	color: #f0b8a6;
}

/* таблицы: онлайн, рейтинги, журнал */
:where(#ice-citadel .pw-inner) table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
:where(#ice-citadel .pw-inner) th {
	text-align: left;
	font: 600 11.5px/1.2 Manrope, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #a9aaa2;
	padding: 12px 10px;
	border-bottom: 1px solid #6b5a3c;
}
:where(#ice-citadel .pw-inner) td {
	padding: 10px;
	border-bottom: 1px solid rgb(107 90 60 / 0.35);
}
:where(#ice-citadel .pw-inner) tbody tr:hover td {
	background: rgb(198 165 108 / 0.05);
}

/* появление блоков (actions/reveal.ts) — мягко, без смещения всей страницы */
.piw-reveal {
	opacity: 0;
}
.piw-reveal.is-visible {
	animation: pw-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pw-rise {
	from {
		opacity: 0;
		translate: 0 14px;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.piw-reveal,
	.piw-reveal.is-visible {
		opacity: 1;
		animation: none;
	}
}

@media (max-width: 620px) {
	.hide-s {
		display: none !important;
	}
}

/* ---------------------------------------------------------------- 4. акценты страниц
   В стилях страниц остались яркие цвета прежней темы (синие и оранжевые
   градиенты кнопок, золотые активные вкладки). Здесь они приводятся к
   материалам «Врат»: бронзовая плита для действия, светлый металл для
   выбранного. Специфичность выше стилей страниц намеренно. */
#ice-citadel .pw-inner :is(.launcher, .dl, .submit, .btn) {
	border: 1px solid #ba985e;
	border-radius: 2px;
	background: linear-gradient(180deg, #86622e, #4d351e 45%, #34251a 54%, #65502d);
	box-shadow:
		inset 0 0 0 2px #211b14,
		inset 0 0 0 3px #9b764233,
		0 3px 12px #0009;
	color: #f3deac;
	text-shadow: 0 1px #000;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 600;
}
#ice-citadel .pw-inner :is(.launcher, .dl, .submit, .btn):hover {
	filter: brightness(1.13);
	box-shadow:
		inset 0 0 0 2px #211b14,
		inset 0 0 0 3px #c69a5555,
		0 0 18px rgb(198 165 108 / 0.25),
		0 3px 12px #0009;
}
#ice-citadel .pw-inner :is(.tabs a.active, .pages b) {
	border-color: #c6a56c;
	background: linear-gradient(180deg, #3a3122, #231d15);
	box-shadow: inset 0 0 0 1px #0b0f10, 0 0 12px rgb(198 165 108 / 0.2);
	color: #f3deac;
}

/* ---------------------------------------------------------------------------
 * Главная: кнопка «Кабинет · ЛОГИН» не выходит за рамку.
 * Логин (до 16 символов) обрезается многоточием внутри рамки, а на узком
 * экране (≤ 620px) показывается просто «Кабинет» — логин остаётся в aria-label.
 * ------------------------------------------------------------------------- */
/* ячейка сетки не растёт под длинный логин (min-width:auto у 1fr) */
#ice-citadel .tg-account-button.tg-cabinet {
	min-width: 0;
}
#ice-citadel .tg-account-button.tg-cabinet > span {
	display: flex;
	min-width: 0;
	/* отступ от шипов рамки: при узкой кнопке у неё почти нет внутренних полей */
	max-width: calc(100% - 40px);
}
#ice-citadel .tg-account-button .tg-cabinet-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: pre;
	font: inherit;
}
@media (max-width: 620px) {
	#ice-citadel .tg-account-button .tg-cabinet-name {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Регистрация: две отдельные галочки (соглашение/правила/18+ и согласие на
 * обработку ПДн — отдельный документ по 152-ФЗ).
 * ------------------------------------------------------------------------- */
#ice-citadel .ic-check + .ic-check {
	margin-top: 8px;
}
#ice-citadel .ic-check input[aria-invalid='true'] {
	outline: 2px solid #c9785f;
	outline-offset: 1px;
}

/* ---------------------------------------------------------------------------
 * Подвал: строка сведений — знак 18+ (436-ФЗ), оператор и контакт (149-ФЗ),
 * отметка о неофициальном сервере. Отдельной строкой во всю ширину подвала.
 * ------------------------------------------------------------------------- */
#ice-citadel .g-footer-legal {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 4px 0 0;
	padding-top: 16px;
	border-top: 1px solid #77603d55;
	font-size: 11.5px;
	line-height: 1.5;
	color: #a8997d;
}
#ice-citadel .g-footer-legal a {
	padding: 0;
	font-size: inherit;
	color: #d3b982 !important;
	text-decoration: none;
}
#ice-citadel .g-footer-legal a:hover,
#ice-citadel .g-footer-legal a:focus-visible {
	color: #efd59b !important;
	text-decoration: underline;
}
#ice-citadel .g-footer-legal small {
	font-size: 10.5px;
	color: #7f8783;
}
/* бронзовая плашка «18+» — потёртый металл, как у кантов «Врат» */
#ice-citadel .g-age {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 30px;
	padding: 0 8px;
	border: 1px solid #b89559;
	border-radius: 3px;
	font: 800 14px/1 Manrope, 'Segoe UI', sans-serif;
	letter-spacing: 0.04em;
	color: #1a1208;
	background: linear-gradient(180deg, #e3c68a 0%, #b58d4f 55%, #8a6834 100%);
	box-shadow:
		inset 0 1px 0 #fbe8bd,
		inset 0 -1px 0 #5e4420,
		0 0 0 2px #0b1012,
		0 0 0 3px #77603d88;
	text-shadow: 0 1px 0 #f0d8a266;
}
@media (max-width: 620px) {
	#ice-citadel .g-footer-legal {
		order: 3;
		align-items: flex-start;
		gap: 12px;
		font-size: 11px;
	}
}

/* ---------------------------------------------------------------------------
 * Уведомление о cookie: тёмный камень, бронзовый кант. Снизу слева, узкое —
 * не закрывает кнопки первого экрана; пока видно, страница получает запас
 * снизу, чтобы конец подвала можно было прочитать.
 * ------------------------------------------------------------------------- */
#ice-citadel .g-cookie {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: min(520px, calc(100vw - 32px));
	padding: 12px 14px 12px 16px;
	border: 1px solid #77603d;
	border-top-color: #9c8150;
	background: linear-gradient(160deg, #1d2122f2, #0c1113f7);
	box-shadow:
		inset 0 0 0 3px #0c10123d,
		0 0 0 1px #030708,
		0 10px 30px #000a;
	font: 400 12px/1.55 Manrope, 'Segoe UI', sans-serif;
	color: #c9c0a9;
	animation: g-cookie-in 0.5s ease-out both;
}
#ice-citadel .g-cookie p {
	margin: 0;
}
#ice-citadel .g-cookie a {
	color: #efd59b;
}
#ice-citadel .g-cookie button {
	flex-shrink: 0;
	min-height: 36px;
	padding: 7px 16px;
	border: 1px solid #b19a67;
	background: linear-gradient(180deg, #3a3326, #1b1a15);
	font: 600 11.5px/1 Manrope, 'Segoe UI', sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #efd59b;
	cursor: pointer;
	transition: border-color 0.3s, filter 0.3s;
}
#ice-citadel .g-cookie button:hover,
#ice-citadel .g-cookie button:focus-visible {
	border-color: #efd59b;
	filter: brightness(1.2);
}
#ice-citadel .g-cookie button:focus-visible {
	outline: 2px solid #efd59b;
	outline-offset: 2px;
}
#ice-citadel[data-cookie-notice] .ic-footer {
	padding-bottom: 110px;
}
@keyframes g-cookie-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}
#ice-citadel[data-motion='off'] .g-cookie {
	animation: none;
}
@media (max-width: 620px) {
	#ice-citadel .g-cookie {
		left: 10px;
		right: 10px;
		bottom: 10px;
		max-width: none;
		padding: 10px 12px;
		gap: 10px;
		font-size: 11px;
	}
	#ice-citadel[data-cookie-notice] .ic-footer {
		padding-bottom: 150px;
	}
}

/* ---------------------------------------------------------------------------
 * QA3: подвал читается и нажимается на телефоне; кнопка входа/кабинета в шапке.
 * ------------------------------------------------------------------------- */
/* ссылки подвала и строка версий были 10px (на телефоне 9px) — 13px, контраст ≥ 4.5 */
#ice-citadel .ic-footer .g-footer-links a {
	padding: 8px 6px;
	font-size: 13px;
	color: #b9b3a3 !important;
}
#ice-citadel .ic-footer .g-footer-links a:hover,
#ice-citadel .ic-footer .g-footer-links a:focus-visible {
	color: #efd59b !important;
}
#ice-citadel .ic-footer > span small {
	font-size: 13px;
	color: #979f9b;
}
#ice-citadel .g-footer-legal,
#ice-citadel .g-footer-legal a {
	font-size: 13px;
}
#ice-citadel .g-footer-legal small {
	font-size: 12px;
	color: #979f9b;
}
@media (max-width: 620px) {
	#ice-citadel .ic-footer .g-footer-links {
		gap: 2px 10px;
	}
}

/* «Войти» / «Кабинет» в шапке: рамка из макета (.ic-nav .tg-account в site.css),
   цвет перебивает общий !important пунктов меню */
#ice-citadel .ic-nav .tg-account {
	color: #ead6ae !important;
}
#ice-citadel .ic-nav .tg-account:hover,
#ice-citadel .ic-nav .tg-account:focus-visible,
#ice-citadel .ic-nav .tg-account[aria-current='page'] {
	color: #ffedc8 !important;
	background: #aa8c4326;
}
@media (max-width: 880px) {
	/* в раскрытом меню телефона — отдельной строкой, чтобы не терялась среди пунктов */
	#ice-citadel .ic-nav .tg-account {
		justify-content: center;
		flex-basis: 100%;
		margin-top: 6px;
	}
}

/* perf: атлас иконок глав (4×4, ячейка до 78px) — вариант под плотность экрана вместо 1024px
   исходника (scripts/optimize_images.py). Переопределяет --g-icons из site.css. */
#ice-citadel {
	--g-icons: -webkit-image-set(
		url('/playinwow/assets/gates-icons-512.webp') 1x,
		url('/playinwow/assets/gates-icons-768.webp') 2x
	);
}

/* perf: телефон ≤480px — логотип крупнее и ниже полосы «Меню» (было ~149px и заходил под неё).
   Высоту первого экрана НЕ трогаем: блоки по задумке во весь экран на любом разрешении,
   её считает скрипт сцены (--tg-page-fill, --tg-spare). */
@media (max-width: 480px) {
	#ice-citadel .tg-stage h1.tg-logo {
		left: 25%;
		top: 3%;
		width: 50%;
		height: 20.5%;
	}
}

/* QA3: кнопка «Войти»/«Кабинет» в шапке. На ПК сетка меню — 8 колонок с иконками,
   девятый пункт переносился на вторую строку; ставим кнопку справа в полосе шапки.
   На телефоне (до 880px) она остаётся строкой в раскрывающемся меню. */
@media (min-width: 881px) {
	/* шапка остаётся position: sticky (site.css) — она и есть опора для абсолютной кнопки */
	#ice-citadel .ic-nav .tg-account {
		position: absolute !important;
		right: clamp(10px, 1.6vw, 28px) !important;
		top: 50% !important;
		transform: translateY(-50%) !important;
		margin: 0 !important;
		min-height: 36px !important;
		padding: 7px 14px !important;
		display: inline-flex !important;
		align-items: center;
		font-size: 12px !important;
		letter-spacing: 0.04em;
		border: 1px solid #86704980;
		border-radius: 3px;
		background: #aa8c431a;
		color: #ead6ae !important;
	}
	#ice-citadel .ic-nav .tg-account:hover {
		background: #aa8c4333;
	}
}
/* QA3: на средних ширинах меню занимает всю полосу — оставляем справа место под «Войти» */
@media (min-width: 881px) and (max-width: 1360px) {
	#ice-citadel .ic-nav {
		padding-right: 96px !important;
	}
}

/* Телефон и планшет (≤880px): каждый блок главной — ровно один экран по высоте, как на ПК.
   Макет давал «Пути» min-height 1000px, а «Хроники» ставили карточки столбиком (~1400px).
   Карточки хроник — горизонтальная лента со свайпом (по одной на экран), «Путь» — компактнее.
   --g-page-height считает скрипт сцены (экран минус полоса меню). Анимации не затронуты. */
@media (max-width: 880px) {
	#ice-citadel .g-journey,
	#ice-citadel .ic-news.g-chapter {
		/* не меньше экрана; если содержимое всё же выше — блок растёт, а не наезжает на соседний */
		min-height: 100dvh !important;
		height: auto !important;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	/* Хроники: лента карточек */
	#ice-citadel .ic-news.g-chapter {
		padding-top: 12px !important;
		padding-bottom: 8px !important;
	}
	#ice-citadel .ic-news .g-chapter-head {
		margin-bottom: 10px !important;
	}
	#ice-citadel .ic-news-tabs {
		margin-bottom: 12px !important;
	}
	#ice-citadel .ic-news-grid {
		display: flex !important;
		grid-template-columns: none !important;
		gap: 14px !important;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: -16px;
		padding-inline: 16px;
	}
	#ice-citadel .ic-news-grid::-webkit-scrollbar {
		display: none;
	}
	#ice-citadel .ic-news-card {
		flex: 0 0 86%;
		scroll-snap-align: center;
		min-width: 0;
	}
	#ice-citadel .ic-news-card[hidden] {
		display: none !important;
	}
	#ice-citadel .ic-news-bottom {
		margin-top: 10px !important;
	}
	/* Путь: компактнее, чтобы всё помещалось в экран */
	#ice-citadel .g-journey {
		padding: 16px 16px 10px !important;
	}
	#ice-citadel .g-journey .g-chapter-head {
		margin-bottom: 12px !important;
	}
	#ice-citadel .g-journey .g-platform {
		margin-bottom: 12px !important;
	}
	#ice-citadel .g-journey .ic-sidebar {
		gap: 8px !important;
	}
}

/* Короткие экраны телефонов (≤780px по высоте, напр. 360×740, 375×667): ещё компактнее,
   чтобы «Хроники» и «Путь» тоже умещались в один экран. */
@media (max-width: 880px) and (max-height: 780px) {
	#ice-citadel .ic-news .g-chapter-head > p,
	#ice-citadel .g-journey .g-chapter-head > p,
	#ice-citadel .g-journey .g-platform,
	#ice-citadel .g-journey .ic-sidebar small {
		display: none !important;
	}
	#ice-citadel .ic-news .g-chapter-head h2,
	#ice-citadel .g-journey .g-chapter-head h2 {
		font-size: 30px !important;
		margin-block: 4px !important;
	}
	#ice-citadel .g-journey .g-journey-icon {
		width: 44px !important;
		height: 44px !important;
	}
	#ice-citadel .ic-news-card .g-news-description {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	#ice-citadel .g-journey .ic-sidebar a {
		min-height: 0 !important;
		padding-block: 10px !important;
	}
}

/* Совсем низкие экраны (≤700px, напр. iPhone SE 375×667): карточка хроник уже — её картинка ниже */
@media (max-width: 880px) and (max-height: 700px) {
	#ice-citadel .ic-news-card {
		flex-basis: 84%;
	}
	#ice-citadel .ic-news-copy b {
		font-size: 22px !important;
		line-height: 1.2 !important;
	}
	#ice-citadel .ic-news .g-eyebrow {
		display: none !important;
	}
	#ice-citadel .ic-news-card .g-news-description {
		-webkit-line-clamp: 1 !important;
	}
	#ice-citadel .ic-news-tabs {
		margin-bottom: 8px !important;
	}
	#ice-citadel .ic-news .g-rule {
		display: none !important;
	}
}

/* Планшеты 621–880px: шапка там закреплена (sticky, site.css) — блоки «экран минус шапка», как на ПК.
   До 620px шапка обычная и уезжает — там блоки в полный экран (правило выше, 100dvh). */
@media (min-width: 621px) and (max-width: 880px) {
	#ice-citadel .g-journey,
	#ice-citadel .ic-news.g-chapter {
		min-height: var(--g-page-height) !important;
	}
}

/* Хроники, пакет дизайна 28.09: описание реалмов под заголовком и «Архив хроник» на форум.
   Вид — из site.css (генератор). Здесь только умещение в экран: на телефоне макет ставит три
   пункта столбиком (~230px) — вместе с лентой карточек это выше экрана, поэтому до 880px пункты
   остаются в ряд, как на ПК, но мельче. Текст тот же; на низких экранах прячется только пояснение
   под пунктом (dd), как раньше пряталось вступление главы. */
@media (max-width: 880px) {
	#ice-citadel #chronicles .g-server-note {
		margin-top: 6px;
	}
	#ice-citadel #chronicles .g-server-note-intro {
		max-width: none;
		font-size: 11px;
		line-height: 1.45;
	}
	#ice-citadel #chronicles .g-server-features {
		/* средний пункт «Боссы ослаблены на 99%» — самый длинный: ему шире, чтобы в две строки */
		grid-template-columns: 0.95fr 1.2fr 1fr;
		text-align: center;
		margin-top: 6px;
		padding: 7px 0 8px;
		background: linear-gradient(90deg, transparent, #10171cc4 6%, #10171cc4 94%, transparent);
	}
	#ice-citadel #chronicles .g-server-features > div {
		padding: 0 6px;
	}
	#ice-citadel #chronicles .g-server-features > div + div {
		border-top: 0;
		border-left: 1px solid #b99b6240;
	}
	#ice-citadel #chronicles .g-server-features dt {
		font-size: 16px;
		line-height: 1.1;
	}
	#ice-citadel #chronicles .g-server-features dd {
		margin-top: 3px;
		font-size: 10px;
		line-height: 1.35;
		text-wrap: balance;
	}
	#ice-citadel #chronicles .ic-news-bottom {
		margin-top: 10px !important;
	}
	#ice-citadel #chronicles .g-forum-link {
		min-height: 44px;
		padding-block: 4px;
	}
	#ice-citadel #chronicles .g-forum-link-label {
		font-size: 19px;
	}
}
@media (max-width: 880px) and (max-height: 780px) {
	#ice-citadel #chronicles .g-server-features dd {
		display: none;
	}
	#ice-citadel #chronicles .ic-news-bottom {
		margin-top: 6px !important;
	}
	/* «Боссы ослаблены на 99%» на узком экране в три строки — отыгрываем высоту отступами */
	#ice-citadel #chronicles .g-server-note {
		margin-top: 2px;
	}
	#ice-citadel #chronicles .g-server-features {
		margin-top: 4px;
		padding-block: 5px;
	}
	#ice-citadel #chronicles .g-server-features dt {
		line-height: 1.04;
	}
	#ice-citadel .ic-news-tabs {
		margin-bottom: 8px !important;
	}
}

@media (max-width: 880px) and (max-height: 700px) {
	#ice-citadel #chronicles .ic-news-copy {
		padding: 14px 16px 11px;
	}
	#ice-citadel #chronicles .ic-news-copy .g-read {
		margin-top: 6px;
		padding-top: 6px;
	}
}
/* Низкие экраны ПК (1366×768, 1280×720): описание реалмов съело высоту — у настоящих
   публикаций заголовок и описание в одну строку, иначе «Архив хроник» уходит за край экрана */
@media (min-width: 881px) and (max-height: 820px) {
	/* окно картинки может стать ниже 110px макета — иначе подпись карточки наезжает на кнопку архива */
	#ice-citadel #chronicles .ic-news-grid {
		grid-template-rows: minmax(84px, 1fr) auto;
	}
	#ice-citadel #chronicles .ic-news-copy b,
	#ice-citadel #chronicles .ic-news-copy .g-news-description {
		-webkit-line-clamp: 1;
		line-clamp: 1;
		/* balance разбил бы заголовок пополам, и в одной строке осталась бы половина */
		text-wrap: wrap;
	}
}

/* ================================================================ «О сервере» по блокам
   Как главная: каждый из четырёх разделов — глава ровно в экран (--g-page-height = экран
   минус закреплённая шапка; до 620px шапка не закреплена — 100dvh). Прилипание прокрутки
   и точки глав справа — те же, что на главной (mountChapters). Фоны и анимации не трогаем:
   здесь только размеры и компоновка содержимого, масштаб — от высоты экрана (dvh). */
:root:has(#ice-citadel[data-page='inner'] .g-about-page) {
	scroll-snap-type: y proximity;
}
@media (max-width: 620px), (prefers-reduced-motion: reduce) {
	:root:has(#ice-citadel[data-page='inner'] .g-about-page) {
		scroll-snap-type: none;
	}
}
#ice-citadel .g-about-page > .g-chapter {
	box-sizing: border-box;
	height: var(--g-page-height);
	min-height: var(--g-page-height);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: clamp(14px, 3dvh, 40px);
	scroll-margin-top: 0;
}
#ice-citadel .g-about-page .g-about-backdrop-view {
	position: relative;
	height: 100%;
}
/* панели не тянутся на всю высоту раздела */
#ice-citadel .g-about-page .g-about-section-head {
	flex: none;
}

/* --- 1. Каминный зал: сцена + плашка слева, текст справа, полоса разделов внизу */
#ice-citadel .g-about-page .g-about-intro {
	padding: 0;
}
#ice-citadel .g-about-page .g-about-layout {
	flex: 1;
	min-height: 0;
	width: 100%;
}
#ice-citadel .g-about-page .g-about-copy.g-about-carved {
	margin-block: clamp(14px, 3.4dvh, 38px);
	padding-block: clamp(22px, 4.4dvh, 44px) clamp(20px, 4.2dvh, 42px);
}
#ice-citadel .g-about-page .g-about-copy h1 {
	font-size: clamp(40px, min(6.6dvh, 5vw), 76px);
	margin: clamp(8px, 1.6dvh, 18px) 0 clamp(10px, 2.2dvh, 24px);
}
#ice-citadel .g-about-page .g-about-rule {
	margin-bottom: clamp(10px, 2.2dvh, 24px);
}
#ice-citadel .g-about-page .g-about-lead {
	font-size: clamp(17px, 2.3dvh, 22px);
	margin-bottom: clamp(8px, 1.6dvh, 18px);
}
#ice-citadel .g-about-page .g-about-intro-text {
	line-height: clamp(1.55, 0.2dvh + 1.5, 1.9);
}
#ice-citadel .g-about-page .g-about-hero-realms {
	margin-top: clamp(12px, 2.6dvh, 29px);
}
#ice-citadel .g-about-page .g-about-actions {
	margin-top: clamp(14px, 2.8dvh, 31px);
}
#ice-citadel .g-about-page .g-about-account {
	margin-top: clamp(8px, 1.6dvh, 18px);
}
#ice-citadel .g-about-page .g-about-chapters {
	flex: none;
	padding-block: clamp(8px, 1.8dvh, 22px);
}

/* --- 2–4. Разделы: заголовок в рамке + содержимое, всё по центру экрана */
#ice-citadel .g-about-page .g-about-section-head.g-about-carved {
	margin-bottom: clamp(14px, 3.4dvh, 42px);
	padding-block: clamp(16px, 2.8dvh, 27px) clamp(16px, 2.8dvh, 28px);
}
#ice-citadel .g-about-page .g-about-section h2 {
	font-size: clamp(30px, min(5.2dvh, 3.6vw), 55px);
	margin: clamp(6px, 1.2dvh, 13px) 0 clamp(8px, 1.8dvh, 19px);
}
#ice-citadel .g-about-page .g-about-realm figure {
	min-height: clamp(210px, 32dvh, 345px);
}
#ice-citadel .g-about-page .g-about-realm-copy {
	padding-block: clamp(16px, 2.6dvh, 28px);
}
#ice-citadel .g-about-page .g-about-realm h3 {
	margin: clamp(6px, 1.2dvh, 12px) 0 clamp(8px, 1.6dvh, 17px);
}
#ice-citadel .g-about-page .g-about-realm ul {
	margin-top: clamp(10px, 1.9dvh, 20px);
	padding-top: clamp(8px, 1.4dvh, 14px);
}
#ice-citadel .g-about-page .g-about-feature-grid article.g-about-carved {
	padding-block: clamp(20px, 3.4dvh, 36px) clamp(18px, 3.2dvh, 35px);
}
#ice-citadel .g-about-page .g-about-feature-mark {
	font-size: clamp(38px, 5.6dvh, 58px);
	margin-bottom: clamp(8px, 2dvh, 23px);
}
#ice-citadel .g-about-page .g-about-feature-grid h3 {
	font-size: clamp(24px, 2.9dvh, 29px);
	margin: clamp(6px, 1dvh, 10px) 0 clamp(8px, 1.6dvh, 17px);
}
#ice-citadel .g-about-page .g-about-feature-grid article > p:not(.g-about-eyebrow) {
	margin-bottom: clamp(10px, 2.2dvh, 25px);
	line-height: clamp(1.6, 0.25dvh + 1.5, 1.85);
}
#ice-citadel .g-about-page .g-about-rest-note.g-about-carved {
	margin-top: clamp(14px, 3.4dvh, 38px);
	padding-block: clamp(14px, 2.4dvh, 25px);
}
#ice-citadel .g-about-page .g-about-rest-note p {
	font-size: clamp(17px, 2.1dvh, 21px);
}
#ice-citadel .g-about-page .g-about-start-panel.g-about-carved {
	padding-block: clamp(24px, 4dvh, 42px) clamp(22px, 3.8dvh, 39px);
}
#ice-citadel .g-about-page .g-about-start-ornament {
	margin-bottom: clamp(6px, 1.4dvh, 15px);
}
#ice-citadel .g-about-page .g-about-steps {
	margin-block: clamp(14px, 3.4dvh, 36px);
}
#ice-citadel .g-about-page .g-about-start-section .g-about-actions {
	margin-top: clamp(10px, 2.4dvh, 24px);
}
#ice-citadel .g-about-page .g-about-start-section .g-about-forum {
	margin-top: clamp(10px, 2.4dvh, 26px);
}

/* --- телефоны: шапка не закреплена, каждый раздел — полный экран (как главная до 620px) */
@media (max-width: 620px) {
	#ice-citadel .g-about-page > .g-chapter {
		height: 100dvh;
		min-height: 100dvh;
		padding: 12px 16px;
	}
	#ice-citadel .g-about-page .g-about-intro {
		padding: 0;
	}
	/* фон каждого раздела на весь его экран (макет держал у первого 560px сцены над текстом) */
	#ice-citadel .g-about-page .g-about-intro .g-about-backdrop-view {
		height: 100%;
	}
	/* 1. сцена сверху с табличкой у камина, текст внизу в рамке */
	#ice-citadel .g-about-page .g-about-layout {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
	}
	#ice-citadel .g-about-page .g-about-scenic-space {
		flex: 1;
		height: auto;
		min-height: 0;
		align-items: flex-end;
		padding: 0 16px 8px;
	}
	#ice-citadel .g-about-page .g-about-scenic-space p.g-about-carved {
		padding: clamp(12px, 2.2dvh, 23px) 16px;
	}
	#ice-citadel .g-about-page .g-about-scenic-space b {
		font-size: clamp(22px, 3.6dvh, 29px);
		margin-top: 4px;
	}
	#ice-citadel .g-about-page .g-about-copy.g-about-carved {
		width: calc(100% - 24px);
		margin: 6px 12px 10px;
		padding: clamp(18px, 3dvh, 36px) 20px clamp(16px, 2.8dvh, 35px);
		--frame-size: 24px;
	}
	#ice-citadel .g-about-page .g-about-copy h1 {
		font-size: clamp(32px, 5.6dvh, 53px);
		margin: 6px 0 10px;
	}
	#ice-citadel .g-about-page .g-about-rule {
		margin-bottom: 10px;
	}
	#ice-citadel .g-about-page .g-about-lead {
		font-size: clamp(16px, 2.3dvh, 21px);
		margin-bottom: 8px;
	}
	#ice-citadel .g-about-page .g-about-intro-text {
		font-size: 12px;
		line-height: 1.55;
	}
	#ice-citadel .g-about-page .g-about-hero-realms {
		margin-top: 10px;
	}
	#ice-citadel .g-about-page .g-about-hero-realms > span {
		font-size: 20px;
	}
	#ice-citadel .g-about-page .g-about-actions {
		margin-top: 12px;
	}
	#ice-citadel .g-about-page .g-about-actions .ic-primary {
		min-height: 44px;
	}
	#ice-citadel .g-about-page .g-about-chapters {
		padding: 8px 16px;
	}

	/* 2–4. заголовки разделов компактнее */
	#ice-citadel .g-about-page .g-about-section-head.g-about-carved {
		margin-bottom: 12px;
		padding: clamp(14px, 2.2dvh, 26px) 18px;
		--frame-size: 20px;
	}
	#ice-citadel .g-about-page .g-about-section h2 {
		font-size: clamp(27px, 4.4dvh, 37px);
		margin: 6px 0 8px;
	}
	#ice-citadel .g-about-page .g-about-section-head > p:last-child {
		font-size: 12px;
		line-height: 1.6;
	}

	/* карточки миров и возможностей — горизонтальная лента со свайпом, как карточки «Хроник» */
	#ice-citadel .g-about-page .g-about-realm-grid,
	#ice-citadel .g-about-page .g-about-feature-grid {
		display: flex;
		gap: 14px;
		width: auto;
		max-width: none;
		margin: 0 -16px;
		padding: 8px 16px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	#ice-citadel .g-about-page .g-about-realm-grid::-webkit-scrollbar,
	#ice-citadel .g-about-page .g-about-feature-grid::-webkit-scrollbar {
		display: none;
	}
	#ice-citadel .g-about-page .g-about-realm,
	#ice-citadel .g-about-page .g-about-feature-grid > article {
		flex: 0 0 86%;
		scroll-snap-align: center;
		min-width: 0;
	}
	#ice-citadel .g-about-page .g-about-realm.g-about-carved {
		padding: 12px;
		--frame-size: 22px;
	}
	#ice-citadel .g-about-page .g-about-realm figure {
		height: clamp(110px, 21dvh, 235px);
		min-height: 0;
	}
	#ice-citadel .g-about-page .g-about-realm-copy {
		padding: 12px 10px 8px;
	}
	#ice-citadel .g-about-page .g-about-realm h3 {
		font-size: clamp(24px, 3.6dvh, 33px);
		margin: 4px 0 6px;
	}
	#ice-citadel .g-about-page .g-about-realm-copy > p {
		line-height: 1.55;
	}
	#ice-citadel .g-about-page .g-about-realm ul {
		margin-top: 8px;
		padding-top: 6px;
		line-height: 1.7;
	}
	#ice-citadel .g-about-page .g-about-feature-grid article.g-about-carved {
		padding: clamp(18px, 3dvh, 33px) 22px;
		--frame-size: 22px;
	}
	#ice-citadel .g-about-page .g-about-feature-mark {
		font-size: clamp(34px, 5dvh, 48px);
		margin-bottom: 6px;
	}
	#ice-citadel .g-about-page .g-about-feature-grid h3 {
		font-size: clamp(22px, 3.2dvh, 29px);
		margin: 4px 0 8px;
	}
	#ice-citadel .g-about-page .g-about-feature-grid article > p:not(.g-about-eyebrow) {
		line-height: 1.6;
		margin-bottom: 10px;
	}
	#ice-citadel .g-about-page .g-about-rest-note.g-about-carved {
		margin-top: 10px;
		padding: 14px 16px;
		--frame-size: 18px;
	}
	#ice-citadel .g-about-page .g-about-rest-note p {
		font-size: clamp(16px, 2.3dvh, 20px);
	}

	/* 4. начало пути: шаги и кнопки плотнее */
	#ice-citadel .g-about-page .g-about-start-panel.g-about-carved {
		padding: clamp(18px, 3dvh, 35px) 18px;
		--frame-size: 22px;
	}
	#ice-citadel .g-about-page .g-about-start-ornament {
		margin-bottom: 4px;
	}
	#ice-citadel .g-about-page .g-about-start-lead {
		line-height: 1.6;
	}
	#ice-citadel .g-about-page .g-about-steps {
		margin-block: clamp(10px, 2dvh, 25px);
		gap: 0;
	}
	#ice-citadel .g-about-page .g-about-steps li {
		padding: clamp(7px, 1.3dvh, 13px) 0;
		gap: 12px;
	}
	#ice-citadel .g-about-page .g-about-steps b {
		font-size: clamp(19px, 2.8dvh, 24px);
	}
	#ice-citadel .g-about-page .g-about-steps small {
		margin-top: 3px;
	}
	#ice-citadel .g-about-page .g-about-start-section .g-about-actions {
		gap: 10px;
		margin-top: 8px;
	}
	#ice-citadel .g-about-page .g-about-start-section .ic-primary,
	#ice-citadel .g-about-page .g-about-start-section .ic-secondary {
		min-height: 44px;
	}
	#ice-citadel .g-about-page .g-about-start-section .g-about-forum {
		margin-top: 8px;
		padding: 6px 0 !important;
	}
}

/* --- планшеты 621–880px: три карточки возможностей столбиком выше экрана — лента, как на телефоне */
@media (min-width: 621px) and (max-width: 880px) {
	#ice-citadel .g-about-page .g-about-feature-grid {
		display: flex;
		gap: 18px;
		max-width: none;
		margin: 0 -8vw;
		padding: 8px 8vw;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	#ice-citadel .g-about-page .g-about-feature-grid::-webkit-scrollbar {
		display: none;
	}
	#ice-citadel .g-about-page .g-about-feature-grid > article {
		flex: 0 0 min(62%, 400px);
		scroll-snap-align: center;
		min-width: 0;
	}
	#ice-citadel .g-about-page .g-about-feature-grid article.g-about-carved {
		padding: 30px 28px;
	}
	#ice-citadel .g-about-page .g-about-feature-mark {
		position: static;
	}
}

/* --- низкие экраны ПК (1280×720, 1024×768): возможности плотнее */
@media (min-width: 881px) and (max-height: 780px) {
	#ice-citadel .g-about-page .g-about-feature-section .g-about-section-head.g-about-carved {
		margin-bottom: 12px;
	}
	#ice-citadel .g-about-page .g-about-feature-grid article.g-about-carved {
		padding-block: 18px 22px;
	}
	#ice-citadel .g-about-page .g-about-feature-mark {
		font-size: 34px;
		margin-bottom: 4px;
	}
	#ice-citadel .g-about-page .g-about-rest-note.g-about-carved {
		margin-top: 12px;
		padding-block: 12px;
	}
}

/* --- большие мониторы (2560×1440, 3440×1440): панели макета рассчитаны на ~1000px высоты и
   тонут в экране — содержимое разделов крупнее целиком (рамки, текст, отступы вместе) */
@media (min-width: 1800px) and (min-height: 1200px) {
	#ice-citadel .g-about-page .g-about-layout,
	#ice-citadel .g-about-page .g-about-chapters,
	#ice-citadel .g-about-page .g-about-section > :not(.g-about-backdrop) {
		zoom: 1.3;
	}
	/* поля раздела не масштабируются — сужаем их, иначе увеличенным карточкам тесно */
	#ice-citadel .g-about-page .g-about-world-section,
	#ice-citadel .g-about-page .g-about-feature-section,
	#ice-citadel .g-about-page .g-about-start-section {
		padding-inline: max(5%, calc((100% - 1560px) / 2));
	}
}

/* стыки разделов (пакет 28.09 04:45): бронзовый порог .g-about-seam и растворение фонов заменяют
   полосу-разделитель глав главной (.g-chapter::after) — две линии на одном шве лишние */
#ice-citadel .g-about-page > .g-chapter::after {
	display: none;
}
/* лента-разделитель (пакет 28.09 23:20): .g-about-seam стоит на границе глав (top:-10px, 20px; центр
   264×52 — по 26px в каждую сторону; на телефоне 16px и центр 42px — по 21px). Высоту глав она не меняет;
   чтобы не лечь на панели и текст, у глав оставлены поля по обе стороны стыка: сверху у разделов 2–4,
   снизу у разделов 1–3 (содержимое центрируется в оставшемся). */
#ice-citadel .g-about-page > .g-about-section {
	--seam-space: 36px;
	padding-top: var(--seam-space);
	padding-bottom: clamp(8px, 2dvh, 40px);
}
#ice-citadel .g-about-page > .g-about-section:not(.g-about-start-section) {
	padding-bottom: max(36px, clamp(8px, 2dvh, 40px));
}
/* первая глава кончается полосой разделов — под лентой её ссылкам нужен запас снизу */
#ice-citadel .g-about-page .g-about-intro .g-about-chapters {
	padding-bottom: 30px;
}
@media (max-width: 620px) {
	#ice-citadel .g-about-page > .g-about-section {
		--seam-space: 26px;
		padding-bottom: 10px;
	}
	#ice-citadel .g-about-page > .g-about-section:not(.g-about-start-section) {
		padding-bottom: 26px;
	}
	#ice-citadel .g-about-page .g-about-intro .g-about-chapters {
		padding-bottom: 24px;
	}
}
/* планшет: две карточки миров столбиком — окно картинки ниже, чтобы раздел уместился под порогом */
@media (min-width: 621px) and (max-width: 880px) {
	#ice-citadel .g-about-page .g-about-realm figure {
		min-height: clamp(200px, 24dvh, 310px);
	}
	#ice-citadel .g-about-page .g-about-realm-copy {
		padding-block: 20px;
	}
}
/* низкие ПК: «Возможности» ещё плотнее — порог забирает верх раздела */
@media (min-width: 881px) and (max-height: 820px) {
	#ice-citadel .g-about-page .g-about-section-head.g-about-carved {
		padding-block: 14px;
		margin-bottom: 10px;
	}
	#ice-citadel .g-about-page .g-about-section-head .g-about-eyebrow + h2 {
		margin-block: 4px 6px;
	}
}
/* самые низкие ПК (1280×720): «Возможностям» не хватает нескольких пикселей между лентами */
@media (min-width: 881px) and (max-height: 740px) {
	#ice-citadel .g-about-page .g-about-feature-section .g-about-section-head.g-about-carved {
		margin-bottom: 6px;
	}
	#ice-citadel .g-about-page .g-about-rest-note.g-about-carved {
		margin-top: 8px;
	}
}
