/* GameZone v30 — базовые стили темы DLE.
   Источник дизайна: variants/v30. Токены и визуальный характер сохранены,
   добавлены состояния DLE: шапка с входом, навигация по категориям,
   служебные страницы, «показать ещё», формы поиска. */

@font-face { font-family: Manrope; src: url('../fonts/manrope-400.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('../fonts/manrope-500.ttf'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url('../fonts/manrope-600.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url('../fonts/manrope-700.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url('../fonts/manrope-800.ttf'); font-weight: 800; font-display: swap; }

:root {
	--accent: #a18aff;
	--accent-2: #6cd7ec;
	--on-accent: #171125;
	--bg: #121318;
	--surface: #1c1e26;
	--surface-raised: #252733;
	--header: #17181f;
	--text: #f1f0f7;
	--muted: #aba9bd;
	--subtle: #8d8b9f;
	--border: #333440;
	--soft: #252632;
	--ps: #80a5ff;
	--xbox: #8ac98a;
	--nin: #ef858c;
	--sega: #e7aa74;
	--pc: #aab4ce;
	--psp: #ba9fe7;
	--ts-size: 39px;
	--ts-radius: 9px;
	--ts-color: var(--text);
	--ts-bg: var(--soft);
	--ts-border: var(--border);
	--ts-hover-bg: color-mix(in srgb, var(--accent) 18%, var(--soft));
	--ts-accent: var(--accent);
	--ts-menu-bg: var(--surface);
	--ts-menu-color: var(--text);
	--ts-menu-border: var(--border);
	--ts-menu-hover: var(--soft);
	--ts-font: 600 12px/1.2 Manrope, sans-serif;
	font-family: Manrope, system-ui, sans-serif;
	font-synthesis: none;
	color: var(--text);
	background: var(--bg);
}

/* Светлая тема — переключателем в шапке. */
:root[data-theme="light"] {
	--bg: #f1f1f2;
	--surface: #fff;
	--surface-raised: #f9f9fa;
	--header: #fff;
	--text: #25262b;
	--muted: #62636b;
	--subtle: #74757d;
	--border: #dedee3;
	--soft: #f1f1f4;
	--accent: #7052ce;
	--accent-2: #087f98;
	--on-accent: #fff;
	--ps: #355fc4;
	--xbox: #3e783e;
	--nin: #bd3646;
	--sega: #a66029;
	--pc: #5f6a88;
	--psp: #8051af;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 14px; line-height: 1.5; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, input, select, textarea { border: 1px solid var(--border); border-radius: 8px; background: var(--soft); }
img { display: block; max-width: 100%; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 12px 20px; background: var(--accent); color: var(--on-accent); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Шапка */
.header { background: var(--header); border-bottom: 1px solid var(--border); }
.header__top { display: flex; align-items: center; gap: 34px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; font-size: 24px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.1; }
.logo b, .footer__logo b { color: var(--accent); }
.logo small { display: block; margin-top: 7px; font-size: 8px; letter-spacing: 1.7px; font-weight: 600; color: var(--muted); }
.logo__mark { display: grid; place-items: center; height: 43px; width: 43px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); box-shadow: 0 5px 18px color-mix(in srgb, var(--accent) 20%, transparent); }
.logo__mark .icon { width: 27px; height: 27px; }
.header__nav { display: flex; align-items: center; gap: 24px; font-size: 12px; font-weight: 700; color: var(--muted); }
.header__nav a { padding-block: 27px; position: relative; white-space: nowrap; }
.header__nav a:hover, .header__nav .is-current { color: var(--text); }
.header__nav .is-current::after { content: ''; position: absolute; height: 3px; background: var(--accent); border-radius: 2px 2px 0 0; bottom: 0; left: 0; right: 0; }
.header-search { margin-left: auto; position: relative; width: 250px; flex: none; }
.header-search input { height: 39px; width: 100%; padding: 0 42px 0 14px; font-size: 11px; background: var(--soft); }
.header-search button { display: grid; place-items: center; position: absolute; right: 1px; top: 1px; height: 37px; width: 38px; border: 0; background: transparent; color: var(--muted); }
.header-search button:hover { color: var(--accent); }
.header__top theme-select { --ts-size: 39px; }
.header__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: transparent; padding: 10px 9px; flex: none; }
.header__burger span { display: block; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-nav { display: none; background: var(--header); border-top: 1px solid var(--border); padding: 8px 16px 16px; }
.mobile-nav a { display: block; padding: 13px 4px; border-top: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 13px; }
.mobile-nav a:first-child { border-top: 0; }
.mobile-nav.is-open { display: block; }

/* Панель платформ: {catmenu} */
.platform-bar { border-top: 1px solid var(--border); }
.platform-nav { display: flex; align-items: center; gap: 30px; min-height: 52px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.platform-nav::-webkit-scrollbar { display: none; }
.platform-nav .cat-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.platform-nav .cat-item { flex: none; }
.platform-nav .cat-item a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding-block: 14px; color: var(--text); }
.platform-nav .cat-item.cat-1 { padding-right: 24px; border-right: 1px solid var(--border); }
.platform-nav .cat-item.cat-1 a { color: var(--muted); }
.platform-nav .cat-item a:hover, .platform-nav .cat-item.is-current a { color: var(--accent); }
.platform-nav .cat-item__mark { color: var(--accent); font-size: 9px; opacity: 0; }
.platform-nav .cat-item:hover .cat-item__mark, .platform-nav .cat-item.is-current .cat-item__mark { opacity: 1; }
.platform-nav__note { margin-left: auto; font-size: 10px; font-style: italic; color: var(--subtle); }

/* Общий каркас */
.home { padding-bottom: 65px; }
.eyebrow { display: block; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--accent); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2 { font-size: 18px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; margin: 0; }
.section-heading__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.heading-mark { color: var(--accent); font-size: 21px; display: inline-flex; align-items: center; }
.heading-mark .icon { width: 18px; height: 18px; }
.section-heading > a { font-size: 10px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.section-heading > a:hover { color: var(--accent); }
.section-hint { color: var(--muted); font-size: 10px; }
.section-count { color: var(--muted); font-size: 10px; font-weight: 700; }

/* Игра в центре внимания */
.featured { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 205px; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; margin: 27px 0; }
.featured__art { position: absolute; width: 68%; height: 100%; right: 0; top: 0; object-fit: cover; object-position: center 35%; opacity: .65; mask-image: linear-gradient(90deg, transparent, black 60%); }
.featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 65%, transparent), transparent 80%); pointer-events: none; }
.featured__body { position: relative; z-index: 1; padding: 23px 30px; }
.featured h1 { margin-top: 9px; font-size: 31px; line-height: 1.12; font-weight: 800; letter-spacing: -1.5px; }
.featured h1 span { color: var(--accent-2); }
.featured__body > p { margin-top: 11px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.featured .button { margin-top: 18px; padding: 10px 15px; background: linear-gradient(110deg, var(--accent), var(--accent-2)); }
.featured__game { position: relative; z-index: 1; align-self: end; justify-self: end; margin: 25px; width: min(310px, calc(100% - 50px)); padding: 18px 20px; background: color-mix(in srgb, var(--surface) 93%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 10px; backdrop-filter: blur(12px); }
.featured__label { display: flex; align-items: center; justify-content: space-between; font-size: 8px; letter-spacing: 1px; color: var(--accent-2); font-weight: 700; }
.featured__label > span { font-size: 16px; }
.featured__game h2 { font-size: 24px; letter-spacing: -.8px; margin-top: 5px; }
.featured__game > p { font-size: 10px; color: var(--muted); margin-top: 3px; }
.featured__game .platform-badges { margin-top: 10px; }
.featured__meta { display: flex; align-items: center; gap: 11px; font-size: 10px; color: var(--muted); margin-top: 13px; }
.featured__meta > span:first-child { color: var(--accent-2); font-weight: 800; }

/* Полка обложек */
.showcase { padding: 0; background: transparent; border: 0; }
.showcase .section-heading__title .heading-mark { background: linear-gradient(var(--accent), var(--accent-2)); width: 4px; height: 20px; border-radius: 3px; font-size: 0; }
.showcase .section-heading__title h2 { font-size: 21px; }
.showcase-tabs { margin-left: auto; display: flex; padding: 3px; border-radius: 7px; background: var(--surface); gap: 3px; }
.showcase-tabs button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; font-size: 10px; font-weight: 700; border-radius: 5px; }
.showcase-tabs button[aria-pressed="true"] { color: var(--text); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.shelf-arrows { display: flex; gap: 6px; }
.shelf-arrows button { width: 28px; height: 28px; border-radius: 50%; background: transparent; }
.shelf-arrows button:hover { border-color: var(--accent); color: var(--accent); }
.cover-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 9 * 14px) / 10); gap: 14px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; padding-bottom: 5px; scroll-snap-type: x mandatory; }
.cover-shelf[hidden] { display: none; }
.cover-card { min-width: 0; scroll-snap-align: start; }
.cover-card__image { position: relative; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--soft); aspect-ratio: 3 / 3.8; }
.cover-card img { height: 100%; width: 100%; object-fit: cover; transition: transform .25s; }
.cover-card:hover img { transform: scale(1.04); }
.cover-card:hover > strong { color: var(--accent); }
.cover-card__score { position: absolute; bottom: 7px; left: 7px; font-size: 10px; padding: 3px 6px; border-radius: 5px; background: var(--bg); color: var(--accent-2); font-weight: 800; }
.cover-card > strong { display: block; margin-top: 9px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-card > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.cover-card > small span { padding-inline: 4px; }

/* Два bulletin-блока: новости и обновления */
.bulletins { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 22px; }
.bulletin { min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 18px 20px 8px; }
.bulletin .section-heading { margin-bottom: 4px; }
.bulletin h2 { font-size: 15px; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; min-width: 0; }
.news-item + .news-item { border-top: 0; }
.news-item img { width: 57px; height: 67px; object-fit: cover; border-radius: 6px; flex: none; }
.news-item small { font-size: 8px; letter-spacing: .4px; color: var(--subtle); }
.news-item h3 { font-size: 11px; line-height: 1.5; margin-top: 4px; font-weight: 700; }
.news-item p { display: none; margin-top: 4px; font-size: 10px; color: var(--muted); overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.news-item:hover h3 { color: var(--accent); }
.item-arrow { display: none; margin-left: auto; color: var(--subtle); }
.update-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; min-height: 58px; }
.update-item + .update-item { border-top: 1px solid var(--border); }
.update-item img { width: 30px; height: 38px; object-fit: cover; border-radius: 4px; flex: none; }
.update-item > div { min-width: 0; }
.update-item strong { font-size: 11px; display: block; }
.update-item p { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.update-item:hover strong { color: var(--accent); }
.update-item__version { margin-left: auto; flex: none; font-size: 10px; color: var(--accent); text-align: right; font-weight: 700; }
.update-item__version small { display: block; font-size: 8px; color: var(--subtle); font-weight: 400; margin-top: 3px; }

/* Каталог */
.catalog { margin-top: 32px; scroll-margin-top: 20px; }
.catalog__heading { align-items: end; }
.catalog__heading h2 { font-size: 26px; margin-top: 5px; letter-spacing: -.8px; }
.catalog__heading h2::before { content: ''; width: 4px; height: 23px; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 3px; margin-right: 2px; }
.filters { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; }
.filters label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filters input { height: 33px; padding: 0 10px; border-radius: 6px; font-size: 11px; min-width: 0; }
.filter-query { flex: 1; }
.filter-query input { width: 100%; }
.filter-submit { height: 33px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; flex: none; }
.filter-submit:hover { filter: brightness(1.08); }
.filter-hint { font-size: 10px; color: var(--subtle); white-space: nowrap; }
.filter-reset { font-size: 10px; background: transparent; border: 0; padding: 6px; white-space: nowrap; color: var(--muted); }
.filter-reset:hover { color: var(--accent); }
.feed { display: grid; gap: 16px; }
.feed--search .search-page { margin: 0; }

/* Карточка игры в ленте */
.story { display: grid; grid-template-columns: 155px minmax(0, 1fr) 220px; gap: 25px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); transition: border-color .2s; }
.story:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.story__cover { position: relative; overflow: hidden; border-radius: 7px; background: var(--soft); min-height: 208px; }
.story__cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.story__score { position: absolute; bottom: 9px; left: 9px; background: var(--bg); border: 1px solid var(--border); color: var(--accent-2); padding: 4px 8px; font-size: 11px; font-weight: 800; border-radius: 6px; }
.story__body { display: flex; flex-direction: column; min-width: 0; padding-block: 2px; }
.story__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.story__genre { color: var(--accent-2); font-size: 10px; font-weight: 700; }
.story__date { color: var(--subtle); font-size: 9px; }
.story h3 { font-size: 23px; letter-spacing: -.8px; line-height: 1.2; margin-top: 8px; overflow-wrap: anywhere; }
.story h3 a:hover { color: var(--accent); }
.story__edition { color: var(--muted); font-size: 10px; margin-top: 5px; }
.story .platform-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.story__summary { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 12px; }
.story__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: auto; }
.story__more { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 10px; font-weight: 800; }
.story__more .icon { color: var(--accent); width: 16px; height: 16px; }
.story__comments { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 10px; }
.story__comments .icon { width: 15px; height: 15px; }
.story__facts { border: 0; border-radius: 8px; background: var(--surface-raised); padding: 12px 16px; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.story__facts > div:not(.story__status) { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 10px; }
.story__facts dt { color: var(--subtle); }
.story__facts dd { font-weight: 600; margin: 0; text-align: right; }
.story__status { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; font-size: 9px; color: var(--accent-2); }
.story__status dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.story__status .icon { width: 13px; height: 13px; }
.story--short { grid-template-columns: minmax(0, 1fr); }

/* Платформенные бейджи: {link-category} */
.platform-badges .cat-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; background: color-mix(in srgb, var(--platform-color, var(--accent)) 10%, transparent); color: var(--platform-color, var(--accent)); border: 1px solid color-mix(in srgb, var(--platform-color, var(--accent)) 22%, transparent); font-size: 9px; font-weight: 700; border-radius: 5px; white-space: nowrap; }
.platform-badges .cat-link::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.platform-badges .cat-link-1 { display: none; }
.platform-badges .cat-link-2 { --platform-color: var(--pc); }
.platform-badges .cat-link-3 { --platform-color: var(--ps); }
.platform-badges .cat-link-4 { --platform-color: var(--psp); }
.platform-badges .cat-link-5 { --platform-color: var(--xbox); }
.platform-badges .cat-link-6 { --platform-color: var(--nin); }
.platform-badges .cat-link-7 { --platform-color: var(--sega); }

/* «Показать ещё» и пагинация DLE */
.more-wrap > a { display: flex; justify-content: center; gap: 30px; width: 100%; padding: 15px; margin-top: 20px; font-size: 11px; font-weight: 800; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.more-wrap > a:hover { border-color: var(--accent); }
.more-wrap > a span:last-child { color: var(--accent); }
.more-wrap > span { display: none; }
.navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.navigation .pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.navigation .pages a, .navigation .pages span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 700; }
.navigation .pages a:hover { border-color: var(--accent); color: var(--accent); }
.navigation .pages span { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

/* Подвал */
.footer { border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; gap: 30px; padding-block: 28px; }
.footer__logo { font-size: 20px; font-weight: 800; letter-spacing: -1px; }
.footer p, .footer__inner > a:last-child { color: var(--subtle); font-size: 10px; }
.footer__inner > a:last-child { margin-left: auto; }
.footer__inner > a:last-child:hover { color: var(--accent); }

/* Вход и профиль в шапке — на токенах, чтобы читалось и в тёмной, и в светлой теме */
.login-pane { position: relative; flex: none; }
.login-pane__toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--soft); color: var(--text); border-radius: 9px; padding: 9px 12px; font-size: 11px; font-weight: 800; }
.login-pane__toggle:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); color: var(--accent); }
.login-pane__avatar { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 28%, var(--surface)); color: var(--accent); font-size: 10px; }
.login-pane__menu, .login-pane__form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 90; min-width: 220px; padding: 8px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); display: none; }
.login-pane.is-open .login-pane__menu, .login-pane.is-open .login-pane__form { display: grid; gap: 2px; }
.login-pane__menu a { padding: 10px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--text); }
.login-pane__menu a:hover { background: var(--soft); color: var(--accent); }
.login-pane__form { min-width: 272px; padding: 16px; gap: 7px; }
.login-pane__form label { font-size: 10px; font-weight: 800; color: var(--muted); }
.login-pane__form input { width: 100%; border: 1px solid var(--border); background: var(--bg); border-radius: 7px; padding: 10px 11px; color: var(--text); font-size: 12px; }
.login-pane__form .button { width: 100%; margin-top: 4px; display: inline-flex; justify-content: center; }
.login-pane__links { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 10px; }
.login-pane__links a { color: var(--accent); font-weight: 700; }

/* Кнопки и поля */
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; background: var(--accent); color: var(--on-accent); padding: 12px 18px; font-size: 11px; font-weight: 800; }
.button:hover, .btn:hover { filter: brightness(1.08); }
.button--ghost { background: var(--soft); color: var(--text); border: 1px solid var(--border); }
.button--ghost:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); filter: none; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], textarea, select { background: var(--bg); border: 1px solid var(--border); border-radius: 7px; color: var(--text); padding: 10px 11px; }
textarea { min-height: 90px; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; margin: 0 0 10px; }
legend { padding: 0 6px; font-size: 11px; font-weight: 800; color: var(--muted); }

/* Служебные страницы в раскладке темы */
.page-shell { margin-top: 24px; padding-bottom: 40px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.box + .box { margin-top: 14px; }
.box_in { min-width: 0; }
.box .title, .static-page h1, .search-page .title { font-size: 26px; letter-spacing: -.8px; margin: 0 0 16px; }
.berrors { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.ui-form { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ui-form .form-group { display: grid; gap: 6px; }
.ui-form label { font-size: 11px; font-weight: 700; color: var(--muted); }
.ui-form input[type="text"], .ui-form input[type="email"], .ui-form input[type="password"], .ui-form textarea { width: 100%; }
.combo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.combo_field { min-width: 0; }
.wide { width: 100%; }
.form_submit { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.btn-big { padding: 13px 18px; }
.c-captcha { display: flex; align-items: center; gap: 10px; }

/* Хлебные крошки {speedbar} */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; margin: 25px 0 21px; }
.breadcrumbs .over { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .speedbar { display: contents; }

/* Поиск */
.search-page { padding: 26px; }
.search-simple { display: grid; gap: 14px; max-width: 640px; }
.search-simple input[type="text"], .search-simple input[type="search"] { width: 100%; }
.search-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-extended { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4px 18px; }
.search-extended .search-col { min-width: 0; }
.search_result_num { margin-top: 14px; color: var(--muted); font-size: 12px; }

/* Статические страницы */
.static-page { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.static-page__body { line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.static-page__body p { margin: 0 0 14px; }
.static-page__body img { border-radius: 8px; }
.static-page__print { color: var(--accent); font-size: 12px; font-weight: 700; }

/* Утилиты */
.title_hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grey, .muted { color: var(--muted); }
.empty { padding: 60px 24px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.empty h3 { margin-block: 12px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

@media (min-width: 1450px) {
	.wrap { width: min(1340px, calc(100% - 80px)); }
}

@media (max-width: 1150px) {
	.header__top { gap: 22px; }
	.header__nav { gap: 16px; }
	.header-search { width: 200px; }
	.platform-nav, .platform-nav .cat-menu { gap: 23px; }
	.platform-nav__note { display: none; }
	.cover-shelf { grid-auto-columns: calc((100% - 5 * 17px) / 6); }
	.section-heading__title h2 { font-size: 16px; }
	.story { grid-template-columns: 140px minmax(0, 1fr) 190px; gap: 20px; }
	.story__facts { padding: 12px; }
	.story__date { font-size: 8px; }
	.filter-hint { display: none; }
}

@media (max-width: 900px) {
	.wrap { width: calc(100% - 40px); }
	.header__nav { display: none; }
	.header__burger { display: block; }
	.header-search { width: min(300px, 42%); }
	.header__top { gap: 12px; }
	.featured__body { padding: 25px; }
	.featured h1 { font-size: 31px; }
	.featured__game { margin: 18px; width: calc(100% - 25px); padding: 15px; }
	.featured__game h2 { font-size: 20px; }
	.featured__game .platform-badges { display: none; }
	.showcase .section-heading { flex-wrap: wrap; }
	.showcase-tabs { order: 3; width: 100%; margin: 0; justify-content: center; }
	.cover-shelf { grid-auto-columns: calc((100% - 4 * 15px) / 5); gap: 15px; }
	.bulletins { grid-template-columns: 1fr; gap: 16px; }
	.news-list { grid-template-columns: 1fr 1fr; gap: 15px; }
	.news-item + .news-item { border: 0; }
	.news-item img { width: 65px; height: 65px; }
	.story { grid-template-columns: 135px minmax(0, 1fr); gap: 18px; }
	.story__facts { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-top: 1px solid var(--border); padding: 12px 0 0; gap: 15px; flex-wrap: wrap; }
	.story__facts > div:not(.story__status) { flex-direction: column; gap: 3px; padding: 0; }
	.story__facts dd { text-align: left; }
	.story__status { border: 0; margin: 0; padding: 0; }
	.filters { flex-wrap: wrap; gap: 8px; }
	.filter-query { flex-basis: 100%; }
	.filters .filter-reset { margin-left: auto; }
	.search-extended { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.wrap { width: calc(100% - 28px); }
	.header__top { min-height: 76px; flex-wrap: wrap; gap: 12px; padding: 16px 0 12px; }
	.logo { font-size: 22px; }
	.logo__mark { width: 36px; height: 36px; border-radius: 10px; }
	.header__top theme-select { margin-left: auto; order: 1; }
	.header__burger { order: 0; }
	.login-pane { order: 1; }
	.header-search { order: 2; width: 100%; margin: 0; }
	.header-search input { height: 36px; }
	.header-search button { height: 34px; }
	.platform-nav { min-height: 49px; gap: 23px; }
	.platform-nav .cat-menu { gap: 23px; }
	.platform-nav .cat-item a { font-size: 11px; padding-block: 14px; }
	.platform-nav .cat-item.cat-1 { padding-right: 17px; }
	.featured { min-height: auto; grid-template-columns: 1fr; margin: 18px 0 23px; }
	.featured__body { padding: 23px 20px 20px; }
	.featured h1 { font-size: 31px; }
	.featured__art { width: 100%; opacity: .4; mask-image: linear-gradient(0deg, transparent, black); }
	.featured__game { justify-self: stretch; width: auto; margin: 0 14px 14px; padding: 13px 15px; }
	.featured__game h2 { font-size: 19px; }
	.featured__game > p { display: none; }
	.featured__meta { margin-top: 8px; }
	.featured__body > p { font-size: 10px; }
	.featured__body .button { margin-top: 14px; font-size: 10px; }
	.showcase .section-heading { gap: 10px; }
	.showcase .section-heading__title h2 { font-size: 19px; max-width: none; }
	.cover-shelf { grid-auto-columns: calc((100% - 2 * 12px) / 2.8); gap: 12px; }
	.cover-card > strong { font-size: 10px; }
	.cover-card > small { font-size: 8px; }
	.cover-card__score { font-size: 9px; bottom: 5px; left: 5px; }
	.bulletins { margin-top: 16px; }
	.bulletin { padding: 16px 14px 7px; }
	.bulletin h2 { font-size: 14px; }
	.bulletin .section-hint { display: none; }
	.news-list, .update-list { display: block; }
	.news-item + .news-item, .update-item + .update-item { border-top: 1px solid var(--border); }
	.news-item img { width: 70px; height: 51px; }
	.news-item p { display: -webkit-box; font-size: 9px; }
	.update-item { flex-wrap: nowrap; }
	.update-item__version small { display: block; font-size: 7px; }
	.catalog { margin-top: 25px; }
	.catalog__heading { align-items: flex-start; }
	.catalog__heading h2 { font-size: 22px; }
	.catalog__heading .section-hint { font-size: 9px; text-align: right; }
	.filters { padding: 10px; }
	.filter-submit { font-size: 10px; }
	.filter-reset { width: 100%; text-align: right; padding-bottom: 0; font-size: 9px; }
	.story { grid-template-columns: 95px minmax(0, 1fr); padding: 12px; gap: 12px; }
	.story__cover { min-height: 146px; align-self: start; }
	.story__body { display: contents; }
	.story__top, .story h3, .story__edition, .story .platform-badges { grid-column: 2; }
	.story__top { grid-row: 1; align-self: start; }
	.story__date { display: none; }
	.story__genre { font-size: 9px; }
	.story__cover { grid-row: 1 / 5; }
	.story h3 { font-size: 19px; margin-top: 0; align-self: start; }
	.story__edition { margin: -4px 0 0; font-size: 9px; align-self: start; }
	.story .platform-badges { margin-top: -3px; align-content: start; }
	.platform-badges .cat-link { font-size: 8px; padding: 3px 5px; gap: 4px; }
	.platform-badges .cat-link::before { width: 5px; height: 5px; }
	.story__summary { grid-column: 1 / -1; font-size: 11px; margin-top: 2px; }
	.story__facts { gap: 12px; padding: 12px; }
	.story__facts > div:not(.story__status) { font-size: 9px; }
	.story__facts > div { flex-basis: calc(50% - 6px); }
	.story__facts .story__status { display: none; }
	.story__bottom { grid-column: 1 / -1; grid-row: 7; padding: 12px 0 0; border-top: 1px solid var(--border); }
	.story__more { font-size: 9px; padding: 7px 10px; }
	.story__comments { font-size: 9px; }
	.story__score { font-size: 9px; padding: 3px 5px; bottom: 6px; left: 6px; }
	.story--short { grid-template-columns: minmax(0, 1fr); }
	.more-wrap > a { font-size: 10px; padding: 13px; gap: 12px; }
	.page-shell { margin-top: 16px; }
	.box, .search-page { padding: 16px; }
	.static-page { padding: 20px; }
	.login-pane__form { right: -60px; min-width: 250px; }
	.footer__inner { flex-wrap: wrap; gap: 14px; padding-block: 23px 85px; }
	.footer p { order: 3; width: 100%; }
}

@media (max-width: 400px) {
	.header__top { gap: 8px; }
	.logo { font-size: 19px; gap: 8px; }
	.logo small { display: none; }
	.logo__mark { width: 33px; height: 33px; border-radius: 9px; }
	.logo__mark .icon { width: 22px; height: 22px; }
	.header__top theme-select { --ts-size: 34px; }
	.login-pane__toggle { padding: 8px 10px; font-size: 10px; }
	.header__burger { width: 38px; height: 38px; }
	.login-pane__form { right: -46px; min-width: 232px; }
	.story { grid-template-columns: 86px minmax(0, 1fr); }
	.story h3 { font-size: 17px; }
	.story__facts > div { flex-basis: 100%; }
	.combo { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
