/* Respawn Portal. Tokens follow the "Respawn Night Feed" design. */

@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--bg: #0F1114;
	--surface: #171A1F;
	--surface-2: #1F232A;
	--line: #2A2F37;
	--ink: #ECEEF1;
	--muted: #9AA2AE;
	--accent: #FF5B2E;
	--accent-ink: #0F1114;
	--good: #4FD18B;
	--bad: #FF6B6B;

	--font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Unbounded", "Onest", system-ui, sans-serif;

	--r-sm: 6px;
	--r-md: 10px;
	--wrap: 1280px;
	--gutter: clamp(16px, 3vw, 32px);
	--header-h: 64px;
	--ink-2: #C9CED6;
	--footer-bg: #0B0D10;
	--header-bg: rgba(15, 17, 20, .86);
	color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(ul, ol)[class] { list-style: none; padding: 0; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.icon { flex: none; }

/* Buttons and small parts */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 0 16px;
	border: 1px solid transparent; border-radius: var(--r-sm);
	font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
	cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #FF7550; color: var(--accent-ink); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn--wide { width: 100%; margin-top: 16px; }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }

.label {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.label--muted { color: var(--muted); }
.donate { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.donate__card, .donate__steps { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: grid; gap: 14px; }
.donate__title { font: 700 18px/1.2 var(--font-display); text-transform: uppercase; }
.donate__phone { font: 700 clamp(26px, 5vw, 36px)/1.1 var(--font-display); }
.donate__phone a { color: var(--accent); }
.donate__bank { color: var(--muted); }
.donate__steps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.label--owner { background: #FFC933; color: #1a1400; padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip, .chips a {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
	border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink);
}
.chip span { color: var(--muted); font-size: 12px; }
.chip:hover, .chips a:hover { border-color: var(--accent); color: var(--ink); }

.score {
	display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px;
	background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm);
	font: 700 20px/1 var(--font-display);
}
.score--sm { min-width: 34px; height: 24px; font-size: 12px; border-radius: 4px; }
.score--lg { min-width: 96px; height: 96px; font-size: 40px; }

.like {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted);
	font-weight: 600; font-size: 14px; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s;
}
.like:hover { color: var(--ink); border-color: var(--muted); }
.like.is-liked { color: var(--accent); border-color: var(--accent); background: rgba(255, 91, 46, .1); }
.like.is-error { border-color: var(--bad); }
.like svg { transition: transform .2s; }
.like.is-liked svg { transform: scale(1.12); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--ink); }
.meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; font-weight: 500; }
.meta__avatar { width: 22px; height: 22px; border-radius: 50%; }
.meta__counts { display: inline-flex; gap: 12px; }
.meta__counts > * { display: inline-flex; align-items: center; gap: 4px; }
.meta__counts .icon { width: 15px; height: 15px; }
.meta__likes { color: var(--accent); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.site-header__burger { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 14px; height: 14px; background: var(--accent); border-radius: 3px; transform: rotate(45deg); }
.logo__text { font: 700 19px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }

.nav { flex: 1; min-width: 0; }
.nav__list, .nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav a {
	display: block; padding: 8px 7px; border-radius: var(--r-sm);
	color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav .current-menu-item > a, .nav .current-category-ancestor > a, .nav .current-post-ancestor > a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu__avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); }
.usermenu[open] .usermenu__avatar { border-color: var(--accent); }
.usermenu__panel {
	position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
	display: grid;
}
.usermenu__panel a { padding: 9px 10px; border-radius: var(--r-sm); font-size: 15px; }
.usermenu__panel a:hover { background: var(--surface-2); color: var(--ink); }
.usermenu__name { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-weight: 700; display: grid; gap: 2px; }
.usermenu__karma { font-weight: 500; font-size: 13px; color: var(--muted); }

.site-search { border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg); }
.searchform { display: flex; gap: 8px; max-width: 720px; }
.searchform input {
	flex: 1; min-width: 0; height: 44px; padding: 0 14px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.searchform input:focus { border-color: var(--accent); outline: none; }
.searchform .btn { height: 44px; }

/* Thumbs and placeholders */
.thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.thumb:hover .thumb__img { transform: scale(1.03); }
.thumb__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; overflow: hidden; }
.thumb__ph span { font: 700 clamp(18px, 3vw, 34px)/1 var(--font-display); text-transform: uppercase; color: rgba(236, 238, 241, .14); letter-spacing: .02em; }
.thumb__ph--0 { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 91, 46, .38), transparent 60%), linear-gradient(160deg, #1F232A, #12151A); }
.thumb__ph--1 { background: radial-gradient(110% 100% at 0% 100%, rgba(255, 91, 46, .30), transparent 55%), linear-gradient(20deg, #171A1F, #232832); }
.thumb__ph--2 { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px), linear-gradient(200deg, #262B34, #14171B 70%), #14171B; }
.thumb__ph--3 { background: radial-gradient(80% 120% at 30% 0%, rgba(255, 91, 46, .22), transparent 60%), linear-gradient(90deg, #1A1E24, #22262E); }

/* Sections */
.site-main { min-height: 60vh; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font: 700 18px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }
.box__more { color: var(--muted); font-size: 14px; font-weight: 600; }
.box__more::after { content: " →"; }
.box__more:hover { color: var(--accent); }

/* Home: lead */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 32px; padding-block: 28px 40px; }
.lead { color: #ECEEF1; position: relative; display: grid; border-radius: var(--r-md); overflow: hidden; min-height: 460px; background: var(--surface); isolation: isolate; }
.lead .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
.lead .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 20, 0) 25%, rgba(15, 17, 20, .78) 62%, rgba(15, 17, 20, .97)); }
.lead .thumb__ph { align-items: flex-start; padding: 28px; }
.lead .thumb__ph span { font-size: clamp(40px, 7vw, 96px); color: rgba(236, 238, 241, .07); }
.lead__body { align-self: end; padding: 32px; display: grid; gap: 12px; max-width: 760px; }
.lead__title { font-weight: 800; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.015em; }
.lead__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lead__excerpt { color: var(--ink-2); font-size: 17px; max-width: 62ch; }

.toplist { display: flex; flex-direction: column; }
.toplist ul { flex: 1; list-style: none; margin: 0; padding: 0; }
.toplist__item { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.toplist__item:first-child { border-top: 0; padding-top: 0; }
.toplist__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.toplist .box__more { margin-top: 14px; }

/* Home: reviews */
.reviews-strip { padding-bottom: 40px; }
.reviews-strip__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.review-tile { position: relative; scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.review-tile .score { position: absolute; top: 10px; left: 10px; }
.review-tile__title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.review-tile__verdict { color: var(--muted); font-size: 14px; }

/* Layout with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 8px 64px; align-items: start; }
.layout__main { min-width: 0; display: grid; gap: 48px; align-content: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 12px; }
.box__title { font: 700 14px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.box--accent { background: linear-gradient(160deg, rgba(255, 91, 46, .16), rgba(255, 91, 46, 0) 70%), var(--surface); border-color: rgba(255, 91, 46, .35); }
.box--accent p { color: var(--ink-2); font-size: 15px; }
.box--accent .btn { justify-self: start; }

.ranked { counter-reset: rank; display: grid; gap: 14px; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; }
.ranked li::before { content: counter(rank); grid-row: span 2; font: 700 18px/1.2 var(--font-display); color: var(--accent); }
.ranked a { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ranked .meta { font-size: 12px; }

.plain-list { display: grid; gap: 10px; }
.plain-list li { display: grid; gap: 2px; font-size: 15px; }
.plain-list a { font-weight: 600; }
.plain-list .muted { font-size: 13px; }

/* Feed rows */
.feed { display: grid; }
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.feed > .row:first-child { border-top: 0; padding-top: 0; }
.row__body { display: grid; gap: 8px; align-content: start; }
.row__top { display: flex; align-items: center; gap: 10px; }
.row__title { font-size: 21px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; }
.row__excerpt { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 28px; display: grid; gap: 10px; justify-items: start; }
.empty__title { font-weight: 700; font-size: 18px; }
.empty p:not(.empty__title) { color: var(--muted); max-width: 60ch; }
.empty .btn { margin-top: 6px; }

/* Listing heads and pagination */
.page-head { display: grid; gap: 10px; padding-top: 28px; }
.page-head__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.page-head__desc { color: var(--muted); max-width: 68ch; }
.layout > .layout__main > .page-head { padding-top: 20px; }

.pager .nav-links, .pager { display: flex; flex-wrap: wrap; gap: 6px; }
.pager { margin-top: 28px; }
.pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: 15px;
}
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager .page-numbers.dots { border: 0; }

/* Article */
.article { gap: 28px; padding-top: 24px; }
.article__head { display: grid; gap: 14px; }
.article__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; max-width: 22ch; }
.article__lede { font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 62ch; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-top: 4px; }
.article__meta > .meta { gap: 6px; }
.article__image img { width: 100%; border-radius: var(--r-md); }
.article__image figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

.facts { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts > div { flex: 1 1 160px; padding: 14px 18px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-weight: 600; margin-top: 4px; }

.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 28px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.verdict__score { display: grid; justify-items: center; gap: 8px; }
.verdict__of { color: var(--muted); font-size: 13px; }
.verdict__body { display: grid; gap: 14px; align-content: start; }
.verdict__title { font: 700 18px/1.2 var(--font-display); text-transform: uppercase; }
.verdict__text { font-size: 19px; font-weight: 600; line-height: 1.4; }
.verdict__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.verdict__lists h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.pros-title { color: var(--good); }
.cons-title { color: var(--bad); }
.pros, .cons { display: grid; gap: 8px; }
.pros li, .cons li { position: relative; padding-left: 22px; font-size: 15px; }
.pros li::before, .cons li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pros li::before { content: "+"; color: var(--good); }
.cons li::before { content: "−"; color: var(--bad); }

.article__foot { display: grid; gap: 24px; }
.article__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-block: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; gap: 6px; }
.share a, .share button { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.share a:hover, .share button:hover { color: var(--ink); border-color: var(--muted); }

.author-card { display: flex; gap: 16px; padding: 20px; background: var(--surface); border-radius: var(--r-md); }
.author-card__avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author-card__name { font-weight: 700; font-size: 17px; }
.author-card p { font-size: 15px; margin-top: 4px; }

.related__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 20px; }
.related__list li { display: grid; gap: 8px; align-content: start; }
.related__title { font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Prose */
.prose { font-size: 18px; line-height: 1.7; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin-top: 1.8em; }
.prose h3 { font-size: 21px; font-weight: 750; line-height: 1.25; margin-top: 1.6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; font-size: 20px; color: var(--ink-2); }
.prose img, .prose iframe, .prose video { border-radius: var(--r-md); }
.prose figure figcaption, .prose .wp-element-caption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: var(--r-md); overflow-x: auto; font-size: 15px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose .wp-block-button__link { background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: var(--r-sm); font-weight: 600; }

/* Comments */
.comments { display: grid; gap: 20px; }
.comments .section-title { margin: 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.comment-list .children { padding-left: 28px; border-left: 2px solid var(--line); margin-top: 4px; }
.comment__body { display: grid; gap: 10px; padding: 16px 0; }
.comment__head { display: flex; gap: 12px; align-items: center; }
.comment__avatar { width: 36px; height: 36px; border-radius: 50%; }
.comment__head > div { display: grid; }
.comment__author { font-weight: 700; font-size: 15px; }
.comment__time { color: var(--muted); font-size: 13px; }
.comment__pending { color: var(--accent); font-size: 14px; }
.comment__text { font-size: 16px; line-height: 1.6; }
.comment__actions { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.comment__actions .like { min-height: 30px; padding: 0 10px; font-size: 13px; }
.comment__actions a { color: var(--muted); }
.comment__actions a:hover { color: var(--ink); }
.comment-respond { background: var(--surface); border-radius: var(--r-md); padding: 20px; display: grid; gap: 12px; }
.comment-reply-title { font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.comment-reply-title small a { color: var(--muted); font-size: 14px; font-weight: 600; }
.comment-form { display: grid; gap: 12px; }
.comment-form p { margin: 0; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); resize: vertical;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--accent); outline: none; }
.must-log-in a { color: var(--accent); font-weight: 600; }

/* Author profile */
.profile { display: flex; gap: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 24px; }
.profile__avatar { width: 96px; height: 96px; border-radius: 50%; flex: none; border: 3px solid var(--line); }
.profile__body { display: grid; gap: 8px; align-content: start; }
.profile__name { font-size: 32px; font-weight: 800; line-height: 1.1; }
.profile__bio { max-width: 62ch; }
.profile__stats { display: flex; gap: 28px; margin-top: 8px; }
.profile__stats dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.profile__stats dd { font: 700 24px/1.2 var(--font-display); }
.profile__stats div:first-child dd { color: var(--accent); }
.profile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Pages */
.page-wrap { padding-block: 8px 72px; }
.page-article { display: grid; gap: 24px; max-width: 820px; }
.notfound { display: grid; gap: 16px; justify-items: start; padding-top: 48px; }
.notfound__code { font: 700 clamp(80px, 16vw, 180px)/.9 var(--font-display); color: var(--accent); }
.notfound p { color: var(--muted); max-width: 60ch; }
.notfound .searchform { width: 100%; }

/* bbPress */
.forum-wrap { padding-bottom: 72px; display: grid; gap: 20px; }
#bbpress-forums { font-size: 15px; color: var(--ink); background: none; margin: 0; }
#bbpress-forums a { color: var(--ink); }
#bbpress-forums a:hover { color: var(--accent); }
#bbpress-forums .bbp-breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
#bbpress-forums .bbp-breadcrumb a { color: var(--muted); }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-search-results {
	border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 20px; background: var(--surface);
}
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--surface-2); border-color: var(--line); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 12px 16px; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--line); padding: 14px 16px; }
#bbpress-forums div.odd, #bbpress-forums ul.odd, #bbpress-forums div.even, #bbpress-forums ul.even { background: transparent; }
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink { font-weight: 700; font-size: 16px; }
#bbpress-forums .bbp-forum-content, #bbpress-forums .bbp-topic-meta, #bbpress-forums .bbp-forum-freshness, #bbpress-forums .bbp-topic-freshness, #bbpress-forums p.bbp-topic-meta { color: var(--muted); font-size: 13px; }
#bbpress-forums .bbp-forums-list { border-left: 2px solid var(--line); margin-top: 6px; }
#bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
#bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content { color: var(--ink); font-size: 16px; line-height: 1.6; }
#bbpress-forums div.bbp-forum-header, #bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header, #bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-color: var(--line); }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; background: var(--surface); }
#bbpress-forums fieldset.bbp-form legend { font-weight: 700; padding: 0 8px; }
#bbpress-forums input[type="text"], #bbpress-forums textarea, #bbpress-forums select, .bbp-login-form input[type="text"], .bbp-login-form input[type="password"] {
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; color: var(--ink); max-width: 100%;
}
#bbpress-forums .button, #bbpress-forums button.button, .bbp-submit-wrapper button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--r-sm); padding: 10px 18px; font-weight: 600; cursor: pointer; }
#bbpress-forums div.bbp-template-notice { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); padding: 10px 14px; }
#bbpress-forums div.bbp-template-notice p { margin: 0; font-size: 14px; }
#bbpress-forums div.bbp-template-notice a { color: var(--accent); }
#bbpress-forums #bbp-search-form { margin-bottom: 16px; }
#bbpress-forums .bbp-pagination { color: var(--muted); }
#bbpress-forums .bbp-author-avatar img, #bbpress-forums img.avatar { border-radius: 50%; }
#bbpress-forums #bbp-user-wrapper h2.entry-title { color: var(--ink); }
#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a { background: var(--surface-2); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); padding-top: 48px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer__brand { display: grid; gap: 14px; align-content: start; }
.site-footer__brand p { color: var(--muted); max-width: 40ch; }
.site-footer__title { font: 700 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--ink-2); }
.site-footer nav a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1080px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
	.lead-grid { grid-template-columns: minmax(0, 1fr); }
	.lead { min-height: 400px; }
}

@media (max-width: 900px) {
	:root { --header-h: 58px; }
	.site-header__bar { gap: 8px; }
	.site-header__burger { display: inline-grid; margin-left: -8px; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 16px; display: none;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav-open .nav { display: block; }
	.nav__list, .nav ul { flex-direction: column; overflow: visible; }
	.nav a { padding: 12px 8px; font-size: 17px; }
	.site-header__write span { display: none; }
	.site-header__write { padding: 0 11px; }
}

@media (max-width: 720px) {
	body { font-size: 15px; }
	.lead-grid { padding-top: 16px; gap: 28px; }
	.lead { min-height: 0; border-radius: var(--r-md); }
	.lead .thumb { position: relative; aspect-ratio: 16 / 10; }
	.lead .thumb::after { background: linear-gradient(180deg, transparent 50%, rgba(23, 26, 31, 1)); }
	.lead__body { padding: 0 18px 20px; margin-top: -24px; }
	.row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
	.row .thumb { aspect-ratio: 1; }
	.row .thumb__ph span { display: none; }
	.row__title { font-size: 17px; }
	.row__excerpt { display: none; }
	.row .meta__author img { display: none; }
	.verdict { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
	.verdict__score { justify-items: start; grid-auto-flow: column; align-items: end; }
	.verdict__lists { grid-template-columns: 1fr; }
	.prose { font-size: 17px; }
	.profile { flex-direction: column; padding: 20px; }
	.profile__name { font-size: 26px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
	.facts > div:last-child { border-bottom: 0; }
	.site-header .btn--ghost { padding: 0 12px; }
}

@media (max-width: 480px) {
	.site-header__bar { gap: 4px; }
	.site-header__actions { gap: 4px; }
	.logo { gap: 8px; }
	.logo__text { font-size: 16px; }
	.logo__mark { width: 11px; height: 11px; }
	.site-header .btn--ghost { padding: 0 10px; font-size: 14px; }
	.searchform .btn { padding: 0 12px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

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

/* ===== Light theme ===== */
[data-theme="light"] {
	--bg: #F4F5F8; --surface: #FFFFFF; --surface-2: #ECEEF3; --line: #DADFE7;
	--ink: #14171C; --muted: #5A6371; --ink-2: #353D49;
	--footer-bg: #E8EBF0; --header-bg: rgba(244, 245, 248, .86);
	--accent: #F0471A;
	color-scheme: light;
}
[data-theme="light"] .btn--primary:hover { background: #FF6A3D; }
[data-theme="light"] .btn--primary, [data-theme="light"] .score { color: #fff; }
[data-theme="light"] .thumb__ph span { color: rgba(20, 23, 28, .1); }
[data-theme="light"] .thumb__ph--0, [data-theme="light"] .thumb__ph--1, [data-theme="light"] .thumb__ph--2, [data-theme="light"] .thumb__ph--3 { background-color: #E6E9EF; }

/* ===== Ambient motion: aurora and drifting grid ===== */
body { position: relative; overflow-x: hidden; }
body::before, body::after { content: ""; position: fixed; pointer-events: none; z-index: -1; }
body::before {
	inset: -25%;
	background:
		radial-gradient(40% 35% at 18% 22%, rgba(255, 91, 46, .16), transparent 70%),
		radial-gradient(38% 40% at 82% 12%, rgba(90, 120, 255, .12), transparent 70%),
		radial-gradient(45% 40% at 70% 85%, rgba(255, 91, 46, .10), transparent 70%);
	animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
	inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: .22;
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
	animation: gridmove 18s linear infinite;
}
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(4%, 3%, 0) rotate(6deg) scale(1.08); } 100% { transform: translate3d(-2%, 5%, 0) rotate(-5deg) scale(1.02); } }
@keyframes gridmove { to { background-position: 56px 56px, 56px 56px; } }

/* Logo, buttons, scores: always-on life */
.logo__mark { animation: markpulse 3.6s ease-in-out infinite; }
@keyframes markpulse {
	0% { transform: rotate(45deg) scale(1); box-shadow: 0 0 0 0 rgba(255, 91, 46, .5); }
	50% { transform: rotate(225deg) scale(1.15); box-shadow: 0 0 0 9px rgba(255, 91, 46, 0); }
	100% { transform: rotate(405deg) scale(1); box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); }
}
.btn--primary, .score { position: relative; overflow: hidden; }
.btn--primary::after, .score::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
	transform: translateX(-130%); animation: shine 5s ease-in-out infinite;
}
.score::after { animation-delay: 1.5s; }
@keyframes shine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.box--accent, .lead { position: relative; }
.box--accent::before, .lead::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
	background: conic-gradient(from var(--a), transparent 0 68%, var(--accent) 86%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: spin 6s linear infinite;
}
@keyframes spin { to { --a: 360deg; } }

.thumb__ph::before {
	content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: -10%; top: -20%; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 91, 46, .38), transparent 65%);
	animation: drift 9s ease-in-out infinite alternate;
}
.thumb__ph span { position: relative; }
@keyframes drift { to { transform: translate(90%, 60%) scale(1.25); } }

/* ===== Reveal on scroll ===== */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ===== Tilt + spotlight cards ===== */
[data-tilt] { transition: transform .25s ease, border-color .2s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.lead[data-tilt] { transform: perspective(1400px) rotateX(calc(var(--rx, 0deg) / 3)) rotateY(calc(var(--ry, 0deg) / 3)); }
[data-tilt]::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 1;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 46, .20), transparent 60%);
}
[data-tilt]:hover::after { opacity: 1; }

/* ===== Ticker ===== */
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.ticker__in { display: flex; align-items: stretch; }
.ticker__tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--accent); color: var(--accent-ink); font: 700 11px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
[data-theme="light"] .ticker__tag { color: #fff; }
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; transform: scale(.7); } }
.ticker__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__half { display: flex; flex: none; min-width: 100vw; }
.ticker__half a { padding: 9px 26px; white-space: nowrap; color: var(--ink-2); }
.ticker__half a::before { content: "◆"; color: var(--accent); margin-right: 12px; font-size: 9px; vertical-align: 1px; }
.ticker__half a:hover { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Home intro ===== */
.hero-intro { display: grid; gap: 22px; padding-block: 34px 6px; }
.hero-intro__title { font: 800 clamp(26px, 4.2vw, 52px)/1.08 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; max-width: 18ch; }
.rotator { display: inline-block; color: var(--accent); }
.rotator.is-out { animation: rotout .28s ease-in forwards; }
.rotator.is-in { animation: rotin .38s ease-out; }
@keyframes rotout { to { opacity: 0; transform: translateY(-.4em); filter: blur(4px); } }
@keyframes rotin { from { opacity: 0; transform: translateY(.4em); filter: blur(4px); } }
.hero-intro__sub { color: var(--muted); max-width: 56ch; font-size: 17px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat { min-width: 140px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 80%, transparent); display: grid; gap: 2px; }
.stat b { font: 700 28px/1.1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

/* ===== Category tiles ===== */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat-card { position: relative; display: grid; gap: 6px; align-content: end; min-height: 120px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; isolation: isolate; }
.cat-card::before { content: attr(data-initial); position: absolute; right: 10px; bottom: -14px; z-index: -1; font: 800 84px/1 var(--font-display); color: var(--accent); opacity: .09; transition: transform .4s, opacity .3s; }
.cat-card:hover { border-color: var(--accent); color: var(--ink); }
.cat-card:hover::before { transform: translateY(-8px) scale(1.1); opacity: .18; }
.cat-card__name { font: 700 15px/1.2 var(--font-display); text-transform: uppercase; }
.cat-card__count { color: var(--muted); font-size: 13px; }

/* ===== Reading progress, back-to-top, theme toggle ===== */
.progress { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), #FFB02E); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--accent); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .25s, transform .25s, border-color .2s; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.theme-toggle .icon--moon { display: none; }
[data-theme="light"] .theme-toggle .icon--sun { display: none; }
[data-theme="light"] .theme-toggle .icon--moon { display: block; }

/* ===== Live search ===== */
.search-live { max-width: 720px; margin-top: 8px; display: grid; }
.search-live:empty { display: none; }
.search-live a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 600; }
.search-live a:hover, .search-live a:focus-visible { background: var(--surface-2); color: var(--ink); }
.search-live a span { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.search-live p { color: var(--muted); padding: 8px 12px; }

/* ===== Table of contents and post nav ===== */
.toc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); max-width: 70ch; }
.toc[hidden] { display: none; }
.toc summary { cursor: pointer; padding: 12px 16px; font: 700 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--accent); }
.toc[open] summary::after { content: "−"; }
.toc ol { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--muted); font-size: 15px; transition: color .15s, border-color .15s, padding .2s; }
.toc a::before { content: counter(toc) ". "; color: var(--accent); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--accent); padding-left: 14px; }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.postnav a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 700; line-height: 1.3; transition: border-color .2s, transform .2s; }
.postnav a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.postnav small { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.postnav .next { text-align: right; }
.postnav a:only-child { grid-column: 1 / -1; }

/* Small interface polish */
.like.is-pop svg { animation: pop .4s; }
@keyframes pop { 40% { transform: scale(1.6) rotate(-8deg); } }
.row { transition: transform .25s; }
.row:hover { transform: translateX(4px); }
.row__title a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.row__title a:hover { background-size: 100% 2px; color: var(--ink); }
.toplist__item { transition: transform .2s; }
.toplist__item:hover { transform: translateX(4px); }
@media (max-width: 720px) { .stat { flex: 1 1 130px; } .postnav { grid-template-columns: 1fr; } .to-top { right: 14px; bottom: 14px; } .hero-intro { padding-top: 22px; } }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } [data-tilt] { transform: none; } }

/* ===== Bookmarks, subscriptions ===== */
.article__react { display: flex; flex-wrap: wrap; gap: 8px; }
.bookmark, .subscribe {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted);
	font-weight: 600; font-size: 14px; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s;
}
.bookmark:hover, .subscribe:hover { color: var(--ink); border-color: var(--muted); }
.bookmark.is-saved { color: var(--accent); border-color: var(--accent); background: rgba(255, 91, 46, .1); }
.bookmark.is-saved svg path { fill: currentColor; }
.bookmark--icon { width: 36px; padding: 0; justify-content: center; }
.bookmark.is-pop svg { animation: pop .4s; }
.bookmark.is-error, .subscribe.is-error, .vote.is-error { border-color: var(--bad); }
.subscribe.is-on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
[data-theme="light"] .subscribe.is-on { color: #fff; }
.subscribe__count { font-size: 12px; opacity: .75; }
.page-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }

.bm-group { display: grid; gap: 12px; margin-top: 28px; }
.bm-list { display: grid; gap: 10px; }
.bm-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.bm-item__thumb { position: relative; display: block; width: 72px; height: 54px; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.bm-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bm-item__body { display: grid; gap: 2px; min-width: 0; }
.bm-item__title { font-weight: 700; line-height: 1.3; }
.bm-item .muted { font-size: 13px; }

.subs-box { margin-top: 20px; }
.subs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.subs-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.subs-list a { font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.switch input { accent-color: var(--accent); width: 18px; height: 18px; }

/* ===== Article extras ===== */
.sources { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; background: var(--surface); }
.sources__title { font: 700 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sources a { color: var(--ink-2); font-size: 15px; }
.sources a::before { content: "↗ "; color: var(--accent); }
.sources a:hover { color: var(--accent); }
.game-link { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(120deg, rgba(255, 91, 46, .12), transparent 60%), var(--surface); font-weight: 700; transition: border-color .2s, transform .2s; }
.game-link:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.game-link img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); }
.game-link span { display: grid; }
.game-link small { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.prose blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }
.prose blockquote cite::before { content: "— "; }
.prose figure img { width: 100%; height: auto; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 22px 0; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__item { flex: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.tabs__item:hover { color: var(--ink); border-color: var(--muted); }
.tabs__item.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs--sm { margin: 0 0 14px; }
.tabs--sm .tabs__item { padding: 6px 12px; font-size: 13px; }

/* ===== Game cards ===== */
.games-wrap { padding-bottom: 72px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 22px 18px; }
.game-card { position: relative; display: grid; gap: 10px; align-content: start; border-radius: var(--r-md); }
.game-card__cover { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.game-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-card__cover img { transform: scale(1.05); }
.game-card__cover .thumb__ph { align-items: flex-end; }
.game-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15, 17, 20, .55)); pointer-events: none; }
.game-card__flag { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: var(--bg); font: 700 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.game-card__score { position: absolute; right: 10px; top: 10px; z-index: 1; }
.game-card__title { font-size: 16px; font-weight: 750; line-height: 1.25; }
.game-card__meta { color: var(--muted); font-size: 13px; }
.game-card__stats { display: flex; gap: 12px; color: var(--muted); font-size: 12px; }
.games-strip { padding-bottom: 40px; }
.games-strip__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.games-strip__track .game-card { scroll-snap-align: start; }

/* ===== Game page ===== */
.game-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.game-hero__bg { position: absolute; inset: 0; z-index: -1; }
.game-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; animation: kenburns 30s ease-in-out infinite alternate; }
.game-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 20, .3), var(--bg) 92%), linear-gradient(90deg, var(--bg), transparent 70%); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
.game-hero__in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: end; padding-block: 64px 36px; }
.game-hero__cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.game-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.game-hero__body { display: grid; gap: 12px; }
.game-hero__title { font: 800 clamp(30px, 5vw, 60px)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; color: var(--ink); }
.game-hero__lede { color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.game-hero__actions .bookmark { min-height: 40px; }
[data-theme="light"] .game-hero__bg img { opacity: .25; }
.game-layout { padding-top: 32px; }

.game-facts { display: grid; gap: 10px; margin: 0; }
.game-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.game-facts dd { margin: 2px 0 0; font-weight: 600; }
.mini-games { display: grid; gap: 10px; }
.mini-games a { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.mini-games img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-sm); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); transition: transform .3s; }
.shots a:hover img { transform: scale(1.02); }
.shots__credit { font-size: 12px; margin-top: 8px; }

/* Rating */
.rating { display: grid; gap: 12px; }
.rating__sum { display: flex; align-items: baseline; gap: 10px; }
.rating__avg { font: 700 40px/1 var(--font-display); color: var(--accent); }
.rating__count, .rating__hint { color: var(--muted); font-size: 13px; }
.rating__hint a { color: var(--accent); font-weight: 600; }
.rating__scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rating__scale button { height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.rating__scale button:hover, .rating__scale button:hover ~ button { transform: none; }
.rating__scale:hover button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rating__scale button:hover ~ button { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.rating__scale button.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rating.is-pop .rating__avg { animation: pop .5s; }

/* Threads */
.threads { display: grid; gap: 4px; }
.thread-list { display: grid; gap: 10px; }
.thread { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .2s; }
.thread:hover { border-color: var(--muted); }
.thread--main { border-color: rgba(255, 91, 46, .45); background: linear-gradient(120deg, rgba(255, 91, 46, .10), transparent 50%), var(--surface); }
.thread__body { display: grid; gap: 4px; min-width: 0; align-content: center; }
.thread__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.thread__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.thread__meta a { color: var(--ink-2); font-weight: 600; }
.vote { display: grid; justify-items: center; align-content: start; gap: 2px; }
.vote__btn { display: grid; place-items: center; width: 32px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.vote__btn:hover { background: var(--surface-2); color: var(--ink); }
.vote__up.is-on { color: var(--accent); }
.vote__down.is-on { color: #7C9CFF; }
.vote__score { font: 700 15px/1.2 var(--font-display); }
.vote-mini { display: inline-block; min-width: 30px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--accent); font-weight: 700; font-size: 12px; text-align: center; }
.thread-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.thread-bar .vote { grid-auto-flow: column; align-items: center; }
.thread-bar__game { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
.new-thread { margin-top: 14px; }
.new-thread summary { list-style: none; cursor: pointer; }
.new-thread summary::-webkit-details-marker { display: none; }
.new-thread__form { margin-top: 14px; }
.new-thread__form #bbpress-forums fieldset.bbp-form { margin: 0; }
.new-thread__form p { color: var(--muted); }
.new-thread__form a { color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
	.game-hero__in { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding-block: 36px 24px; }
	.game-hero__lede { display: none; }
	.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.shots { grid-template-columns: 1fr; }
	.bm-item { grid-template-columns: 56px minmax(0, 1fr) auto; }
	.bm-item__thumb { width: 56px; height: 44px; }
	.thread { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
	.thread__title { font-size: 15px; }
}

/* ===== Registration, login, member area ===== */
.auth-wrap { padding-block: 40px 80px; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: start; }
.auth--narrow { grid-template-columns: minmax(0, 440px); justify-content: center; }
.auth__title { font: 800 clamp(26px, 3.6vw, 42px)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 16px; }
.auth__intro p { color: var(--muted); max-width: 52ch; }
.auth__perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.auth__perks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.auth__perks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.auth__perks b { color: var(--ink); }
.auth__form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.auth__form-title { font: 700 20px/1.2 var(--font-display); text-transform: uppercase; }
.auth__alt { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.auth__alt a { color: var(--accent); font-weight: 600; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field select {
	width: 100%; min-height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
}
.field input[type="file"] { color: var(--muted); font-size: 14px; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field__hint { color: var(--muted); font-size: 13px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check a { color: var(--accent); }
.form-error { padding: 10px 14px; border: 1px solid var(--bad); border-radius: var(--r-sm); background: rgba(255, 107, 107, .1); color: var(--ink); font-size: 14px; margin: 0; }
.form-note { padding: 10px 14px; border: 1px solid var(--good); border-radius: var(--r-sm); background: rgba(79, 209, 139, .1); color: var(--ink); font-size: 14px; margin: 18px 0 0; }
.rsp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--wide { width: 100%; }
.auth__form .btn--wide { margin-top: 4px; }

.write { max-width: 880px; margin-inline: auto; }
.write__form { display: grid; gap: 20px; }
.write__actions, .empty__actions, .mine__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.write .wp-editor-wrap { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.write .mce-panel, .write .mce-container, .write .mce-toolbar, .write .mce-btn { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.write .mce-ico, .write .mce-txt { color: var(--ink) !important; }
.write .wp-editor-tabs { display: none; }
.mine { display: grid; gap: 10px; }
.mine__item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.mine__main { display: grid; gap: 4px; min-width: 0; }
.mine__title { font-weight: 700; line-height: 1.3; }
.mine__stat { font-size: 13px; white-space: nowrap; }
.mine__actions form { margin: 0; }
.status { justify-self: start; padding: 3px 8px; border-radius: 4px; font: 700 11px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); color: var(--muted); }
.status--publish { background: rgba(79, 209, 139, .15); color: var(--good); }
.status--pending { background: rgba(255, 91, 46, .15); color: var(--accent); }
.page-head__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }

@media (max-width: 900px) {
	.auth { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.auth__intro { order: 2; }
	.mine__item { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Static snapshot mode (GitHub Pages): hide what needs PHP ===== */
.static-note { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter); text-align: center; font-size: 13px; color: var(--muted); }
.static-note a { color: var(--accent); font-weight: 600; }
.is-static .site-header__write, .is-static .site-header__actions > .btn--ghost, .is-static .usermenu, .is-static .like, .is-static .bookmark, .is-static .subscribe,
.is-static .rating__scale, .is-static .new-thread, .is-static .comment-respond, .is-static .vote__btn, .is-static .comment__actions .like, .is-static .box--accent,
.is-static [data-toggle-search], .is-static #site-search, .is-static .searchform, .is-static .to-top-hidden { display: none !important; }
/* Radar, duels, live strip */
.live-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-block: 28px; }
.live-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: grid; gap: 14px; align-content: start; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: lv; }
.live-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); counter-increment: lv; }
.live-list li::before { content: counter(lv); color: var(--accent); font: 700 13px/1.6 var(--font-display); width: 22px; flex: none; }
.live-list__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-list b { font-variant-numeric: tabular-nums; }

.radar-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.radar-stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: grid; gap: 4px; }
.radar-stat b { font: 700 clamp(20px, 3vw, 28px)/1.1 var(--font-display); }
.radar-stat span { color: var(--muted); font-size: 14px; }
.radar-stat--up b { color: var(--good); }
.radar-stat--down b { color: var(--bad); }
.radar-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.radar-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.radar-table th, .radar-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.radar-table th { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.radar-table tr:last-child td { border-bottom: 0; }
.radar-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.radar-table .rank { font: 700 14px/1 var(--font-display); color: var(--accent); }
.radar-table .name { font-weight: 600; white-space: normal; min-width: 160px; }
.radar-table .up, .radar-table sup.up { color: var(--good); }
.radar-table .down, .radar-table sup.down { color: var(--bad); }
.radar-table sup { font: 600 10px/1 var(--font); margin-left: 4px; }
.radar-table .trend { color: var(--accent); }
.spark { display: block; }
.radar-note { margin-top: 14px; max-width: 70ch; }

.duel { display: grid; gap: 14px; }
.duel-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.duel-list .duel, .duel-single .duel { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.duel__kicker { font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.duel__title { font: 700 clamp(18px, 2.4vw, 24px)/1.25 var(--font-display); margin: 0; }
.duel__title a { color: inherit; }
.duel__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duel__side { position: relative; display: grid; gap: 8px; align-content: space-between; min-height: 96px; padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font: 600 16px/1.3 var(--font); cursor: pointer; transition: border-color .2s, transform .2s; }
.duel__side:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.duel__side:disabled { cursor: default; }
.duel__side.is-mine { border-color: var(--accent); }
.duel__bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.duel__bar i { display: block; height: 100%; background: var(--accent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.duel__pct { font: 700 22px/1 var(--font-display); opacity: 0; transition: opacity .3s; }
.duel.is-voted .duel__bar, .duel.is-voted .duel__pct { opacity: 1; }
.duel.is-busy { opacity: .7; pointer-events: none; }
.duel__total { margin: 0; color: var(--muted); font-size: 14px; }
.duel.is-voted .duel__hint { display: none; }
.duel:not(.is-voted) .duel__count { display: none; }
.duel__count + a::before { content: ""; }
.duel-single { max-width: 760px; display: grid; gap: 20px; }
@media (max-width: 560px) { .duel__sides { grid-template-columns: 1fr; } }
.ai-note { margin: 24px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: 14px; }
.ai-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
