/* ==========================================================================
   Eldfall Community — основные стили
   Палитра «ночь и киноварь», шрифты Alegreya SC (заголовки) + Onest (текст)
   ========================================================================== */

:root {
	--ec-bg: #0E1117;
	--ec-bg-deep: #0A0C11;
	--ec-bg-alt: #121720;
	--ec-panel: #161B24;
	--ec-panel-2: #1A202B;
	--ec-panel-3: #1E2532;
	--ec-hover: #222A38;
	--ec-line: #232A36;
	--ec-line-2: #2E3746;
	--ec-line-3: #3A4456;
	--ec-text: #ECE8E1;
	--ec-text-2: #B9C0CC;
	--ec-muted: #8E97A6;
	--ec-faint: #5F6878;
	--ec-accent: #E0533A;
	--ec-accent-hover: #F06A50;
	--ec-accent-soft: #F28A72;
	--ec-accent-dim: #8A3426;
	--ec-on-accent: #140A08;
	--ec-frost: #7FB0D6;
	--ec-warm: #F2A08E;
	--ec-warm-bg: #2E1A16;
	--ec-frost-bg: #1D2028;
	--ec-ok: #A9CDB6;
	--ec-note-bg: #2A1A17;
	--ec-note-fg: #F2C2B5;
	--ec-sand: #D9B26A;
	--ec-sand-light: #E9CF95;
	--ec-sand-line: #6A5634;
	--ec-sand-text: #F1EADB;
	--ec-sand-muted: #B8AD98;
	--ec-display: "Alegreya SC", Georgia, "Times New Roman", serif;
	--ec-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ec-cut: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
	--ec-cut-s: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
	--ec-diamond: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	--ec-gutter: 24px;
	--ec-max: 1280px;
	--ec-hatch: repeating-linear-gradient(135deg, #1A202A 0 10px, #151A22 10px 20px);
}

/* Базовое ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--ec-bg);
	color: var(--ec-text);
	font-family: var(--ec-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ec-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ec-accent-soft); }
:focus-visible { outline: 2px solid var(--ec-accent); outline-offset: 2px; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ec-display); font-weight: 500; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; }
.ec-icon { flex-shrink: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 1000; padding: 12px 16px; background: var(--ec-accent); color: var(--ec-on-accent); }

.ec-container { width: 100%; max-width: var(--ec-max); margin: 0 auto; padding: 0 var(--ec-gutter); }
.ec-section { position: relative; padding: 80px 0; border-top: 1px solid var(--ec-line); overflow: hidden; }
.ec-section--alt { background: var(--ec-bg-alt); }
.ec-section > .ec-container { position: relative; }
.ec-stack { display: flex; flex-direction: column; gap: 28px; }

/* Типографика ------------------------------------------------------------- */
.ec-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-accent); }
.ec-h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.02; }
.ec-h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.02; }
.ec-h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.ec-lead { font-size: 18px; line-height: 1.5; color: var(--ec-text-2); max-width: 640px; }
.ec-muted { color: var(--ec-muted); }
.ec-small { font-size: 13px; }
.ec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; }
.ec-head__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ec-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-link-more { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* Скосы и рамки ----------------------------------------------------------- */
.ec-cut { clip-path: var(--ec-cut); }
.ec-cut-s { clip-path: var(--ec-cut-s); }
.ec-frame { clip-path: var(--ec-cut); background: var(--ec-line-2); padding: 1px; }
.ec-frame--accent { background: var(--ec-accent); }
.ec-frame > .ec-frame__in { clip-path: var(--ec-cut); background: var(--ec-panel); height: 100%; }
.ec-hatch { background: var(--ec-hatch); display: flex; align-items: center; justify-content: center; color: var(--ec-faint); font-size: 12px; letter-spacing: .06em; }

/* Кнопки ------------------------------------------------------------------ */
.ec-btn {
	clip-path: var(--ec-cut-s);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 12px 18px;
	border: 1px solid transparent; background: transparent; color: var(--ec-text);
	font-family: var(--ec-sans); font-size: 14px; font-weight: 700; line-height: 1.2;
	cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.ec-btn--primary { background: var(--ec-accent); color: var(--ec-on-accent); border-color: var(--ec-accent); }
.ec-btn--primary:hover { background: var(--ec-accent-hover); color: var(--ec-on-accent); }
.ec-btn--ghost, .ec-btn--outline-accent, .ec-btn--sand-line { clip-path: none; }
.ec-btn--ghost { border-color: var(--ec-line-3); color: var(--ec-text); font-weight: 600; background: rgba(10, 12, 17, .35); }
.ec-btn--ghost:hover { border-color: var(--ec-accent); color: var(--ec-accent); }
.ec-btn--outline-accent { border-color: var(--ec-accent); color: var(--ec-text); background: rgba(10, 12, 17, .6); font-weight: 600; }
.ec-btn--outline-accent:hover { color: var(--ec-accent); }
.ec-btn--sand { background: var(--ec-sand); color: #1A1208; border-color: var(--ec-sand); }
.ec-btn--sand:hover { background: var(--ec-sand-light); color: #1A1208; }
.ec-btn--sand-line { border-color: var(--ec-sand-line); color: var(--ec-sand-text); }
.ec-btn--sand-line:hover, .ec-btn--sand-line[aria-pressed="true"] { border-color: var(--ec-sand); color: var(--ec-sand-light); }
.ec-btn--sand-line[aria-pressed="true"] { background: rgba(217, 178, 106, .15); }
.ec-btn--block { width: 100%; }
.ec-btn--lg { padding: 16px 24px; font-size: 15px; }
.ec-btn--icon { width: 44px; padding: 0; }
.ec-btn[aria-pressed="true"].ec-btn--ghost { background: var(--ec-accent); border-color: var(--ec-accent); color: var(--ec-on-accent); }

.ec-chip {
	clip-path: var(--ec-cut-s); min-height: 44px; padding: 10px 16px;
	border: 1px solid var(--ec-line-3); background: transparent; color: var(--ec-text);
	font-size: 14px; font-weight: 600; cursor: pointer;
}
.ec-chip:hover { border-color: var(--ec-accent); }
.ec-chip:not([aria-pressed="true"]):not([aria-selected="true"]) { clip-path: none; }
.ec-chip[aria-pressed="true"], .ec-chip[aria-selected="true"] { background: var(--ec-accent); border-color: var(--ec-accent); color: var(--ec-on-accent); }

/* Метки ------------------------------------------------------------------- */
.ec-tag { clip-path: var(--ec-cut-s); display: inline-block; padding: 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--ec-note-bg); color: var(--ec-note-fg); }
.ec-tag--accent { background: var(--ec-accent); color: var(--ec-on-accent); }
.ec-tag--warm { background: var(--ec-warm-bg); color: var(--ec-warm); }
.ec-tag--frost { background: var(--ec-frost-bg); color: #AFC0E0; }
.ec-tag--ok { background: #1C2420; color: var(--ec-ok); }
.ec-tag--muted { background: var(--ec-panel-3); color: var(--ec-text-2); }
.ec-tag--sand { background: rgba(217, 178, 106, .15); color: var(--ec-sand); }
.ec-tag--pokras { background: var(--ec-warm-bg); color: var(--ec-warm); }
.ec-tag--report { background: #1C2420; color: var(--ec-ok); }
.ec-tag--article { background: var(--ec-frost-bg); color: #AFC0E0; }
.ec-tag--terrain { background: var(--ec-panel-3); color: var(--ec-text-2); }

/* Аватары-ромбы ----------------------------------------------------------- */
.ec-diamond {
	--s: 34px;
	clip-path: var(--ec-diamond); width: var(--s); height: var(--s); flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ec-panel-3); color: var(--ec-accent);
	font-weight: 700; font-size: calc(var(--s) * .4); overflow: hidden;
}
.ec-diamond img { width: 100%; height: 100%; object-fit: cover; }
.ec-diamond--accent { background: var(--ec-accent); color: var(--ec-on-accent); }
.ec-diamond-ring { clip-path: var(--ec-diamond); background: var(--ec-accent); padding: 4px; display: inline-flex; flex-shrink: 0; }
.ec-diamond-ring > .ec-diamond { font-family: var(--ec-display); }

/* Фоны-иллюстрации -------------------------------------------------------- */
.ec-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ec-bg--top { bottom: auto; height: 620px; }
.ec-shade { position: absolute; inset: 0; pointer-events: none; }
.ec-shade--hero { background: linear-gradient(90deg, rgba(10, 12, 17, .94) 0%, rgba(10, 12, 17, .78) 45%, rgba(10, 12, 17, .35) 100%), linear-gradient(0deg, var(--ec-bg) 0%, rgba(14, 17, 23, 0) 35%); }
.ec-shade--top { bottom: auto; height: 620px; background: linear-gradient(180deg, rgba(18, 23, 32, .55) 0%, rgba(18, 23, 32, .85) 55%, var(--ec-bg-alt) 100%), linear-gradient(90deg, rgba(18, 23, 32, .85) 0%, rgba(18, 23, 32, .2) 70%); }
.ec-shade--top-dark { bottom: auto; height: 620px; background: linear-gradient(180deg, rgba(14, 17, 23, .5) 0%, rgba(14, 17, 23, .88) 60%, var(--ec-bg) 100%); }
.ec-shade--even { background: linear-gradient(90deg, rgba(10, 12, 17, .72) 0%, rgba(10, 12, 17, .6) 50%, rgba(10, 12, 17, .88) 100%); }
.ec-shade--page { background: linear-gradient(0deg, var(--ec-bg) 0%, rgba(14, 17, 23, .82) 45%, rgba(14, 17, 23, .35) 100%); }

/* Шапка ------------------------------------------------------------------- */
.ec-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 12, 17, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ec-line); }
.admin-bar .ec-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ec-header { top: 46px; } }
.ec-header__in { display: flex; align-items: center; gap: 12px 32px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.ec-logo { display: flex; align-items: center; gap: 12px; color: var(--ec-text); flex-shrink: 0; }
.ec-logo:hover { color: var(--ec-text); }
.ec-logo__mark { color: var(--ec-accent); }
.ec-logo .custom-logo { max-height: 44px; width: auto; }
.ec-logo__text { display: flex; flex-direction: column; line-height: 1; }
.ec-logo__name { font-family: var(--ec-display); font-size: 22px; letter-spacing: .06em; }
.ec-logo__sub { font-size: 10px; letter-spacing: .32em; color: var(--ec-accent); margin-top: 4px; text-transform: uppercase; }
.ec-nav .ec-menu { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.ec-nav .ec-menu a { color: var(--ec-text); display: inline-block; padding: 8px 0; border-bottom: 2px solid transparent; }
.ec-nav .ec-menu a:hover, .ec-nav .ec-menu .is-current > a { color: var(--ec-accent); }
.ec-nav .ec-menu .is-current > a { border-bottom-color: var(--ec-accent); }
.ec-nav .sub-menu { display: none; }
.ec-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ec-header__me { display: flex; align-items: center; gap: 10px; color: var(--ec-text); font-size: 14px; font-weight: 600; }
.ec-header__me:hover { color: var(--ec-accent); }
.ec-nav-toggle { display: none; }
.ec-search-form { display: flex; gap: 8px; }
.ec-search-form input[type="search"] { flex: 1; }

@media (max-width: 1080px) {
	.ec-nav-toggle { display: inline-flex; }
	.ec-header__in { flex-wrap: wrap; }
	.ec-nav { order: 10; flex-basis: 100%; display: none; padding: 8px 0 12px; }
	.ec-nav.is-open { display: block; }
	.ec-nav .ec-menu { flex-direction: column; gap: 0; }
	.ec-nav .ec-menu a { padding: 12px 0; border-bottom: 1px solid var(--ec-line); width: 100%; }
	.ec-header__actions .ec-hide-sm { display: none; }
}

/* Первый экран и лента ---------------------------------------------------- */
.ec-hero { position: relative; overflow: hidden; background: #11151C; border-bottom: 1px solid var(--ec-line); }
.ec-hero__in { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 48px; padding-top: 96px; padding-bottom: 40px; }
.ec-hero__text { flex: 1 1 560px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ec-hero__text .ec-h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.ec-stats { flex: 1 1 380px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ec-stat { clip-path: var(--ec-cut-s); background: rgba(17, 21, 29, .85); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ec-stat__v { font-family: var(--ec-display); font-size: 32px; line-height: 1.1; color: var(--ec-accent); }
.ec-stat__l { font-size: 12px; color: var(--ec-text-2); }

.ec-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ec-layout__main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ec-layout__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.ec-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ec-line); }
.ec-tab { min-height: 44px; padding: 10px 14px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ec-text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.ec-tab:hover { color: var(--ec-text); }
.ec-tab[aria-selected="true"] { color: var(--ec-text); border-bottom-color: var(--ec-accent); }
.ec-tabs--chips { border: 0; gap: 8px; }

.ec-post { display: flex; flex-wrap: wrap; gap: 20px; padding: 22px 24px; background: var(--ec-panel); border: 1px solid var(--ec-line); transition: background .15s; }
.ec-post:hover { background: var(--ec-hover); }
.ec-post[hidden] { display: none; }
.ec-post__body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ec-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--ec-muted); }
.ec-post__author { color: var(--ec-text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ec-post__date { margin-left: auto; }
.ec-post__title { font-size: 24px; line-height: 1.15; }
.ec-post__title a { color: var(--ec-text); }
.ec-post__title a:hover { color: var(--ec-accent); }
.ec-post__excerpt { color: var(--ec-text-2); }
.ec-post__thumb { clip-path: var(--ec-cut-s); flex: 0 1 220px; min-width: 0; height: 170px; overflow: hidden; }
.ec-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-empty { border: 1px dashed var(--ec-line-3); padding: 24px; color: var(--ec-muted); }

.ec-panel { clip-path: var(--ec-cut); background: var(--ec-panel); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ec-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ec-panel__title { font-size: 24px; }
.ec-event-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ec-line); }
.ec-date { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
.ec-date__dow { font-size: 11px; font-weight: 700; color: var(--ec-accent); }
.ec-date__day { font-family: var(--ec-display); font-size: 28px; line-height: 1; }
.ec-date__mon { font-size: 12px; color: var(--ec-muted); }
.ec-event-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ec-event-row__title { color: var(--ec-text); font-weight: 600; line-height: 1.25; }
.ec-event-row__place { font-size: 12px; color: var(--ec-muted); }

.ec-newbie { clip-path: var(--ec-cut); background: var(--ec-note-bg); display: flex; flex-direction: column; overflow: hidden; }
.ec-newbie img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ec-newbie__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ec-newbie__body p { color: var(--ec-text-2); }

.ec-channels { display: flex; flex-direction: column; gap: 8px; }
.ec-channel { clip-path: var(--ec-cut-s); display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--ec-panel); color: var(--ec-text); font-size: 14px; font-weight: 600; transition: background .15s; }
.ec-channel:hover { background: var(--ec-hover); color: var(--ec-text); }
.ec-channel .ec-icon { color: var(--ec-accent); }
.ec-channel__note { display: block; font-size: 12px; font-weight: 400; color: var(--ec-muted); }
.ec-channel__arrow { margin-left: auto; color: var(--ec-accent); }

/* FreeCompany ------------------------------------------------------------- */
.ec-fc { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.ec-fc-feature { clip-path: var(--ec-cut); flex: 1 1 420px; min-width: 0; min-height: 420px; position: relative; overflow: hidden; display: flex; color: var(--ec-text); }
.ec-fc-feature:hover { color: var(--ec-text); }
.ec-fc-feature .ec-shade { background: linear-gradient(0deg, rgba(10, 12, 17, .96) 0%, rgba(10, 12, 17, .55) 55%, rgba(10, 12, 17, .15) 100%); }
.ec-fc-feature__body { position: relative; margin-top: auto; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.ec-fc-feature__title { font-size: 36px; line-height: 1.05; }
.ec-fc-feature__text { color: #C9CFD9; }
.ec-fc-list { flex: 1.4 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.ec-fc-item { clip-path: var(--ec-cut-s); background: var(--ec-panel); border-top: 2px solid var(--ec-line-3); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ec-text); transition: background .15s; }
.ec-fc-item:hover { background: var(--ec-hover); color: var(--ec-text); }
.ec-fc-item--warm { border-top-color: var(--ec-warm); }
.ec-fc-item--frost { border-top-color: var(--ec-frost); }
.ec-fc-item--sand { border-top-color: var(--ec-sand); }
.ec-fc-item__top { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ec-fc-item--warm .ec-fc-item__tag { color: var(--ec-warm); }
.ec-fc-item--frost .ec-fc-item__tag { color: var(--ec-frost); }
.ec-fc-item--sand .ec-fc-item__tag { color: var(--ec-sand); }
.ec-fc-item--muted .ec-fc-item__tag { color: var(--ec-text-2); }
.ec-fc-item__date { color: var(--ec-muted); letter-spacing: .04em; }
.ec-fc-item__title { font-family: var(--ec-display); font-size: 21px; line-height: 1.15; }
.ec-fc-item__text { font-size: 14px; color: var(--ec-muted); flex-grow: 1; }
.ec-fc-item__more { font-size: 13px; font-weight: 600; color: var(--ec-accent); }

/* Apocrypha --------------------------------------------------------------- */
.ec-apoc { color: var(--ec-sand-text); background: #14110C; border-top-color: #3A3020; }
.ec-apoc .ec-shade--a1 { background: linear-gradient(90deg, rgba(20, 14, 8, .94) 0%, rgba(20, 14, 8, .72) 45%, rgba(20, 14, 8, .3) 100%); }
.ec-apoc .ec-shade--a2 { background: linear-gradient(180deg, rgba(20, 17, 12, 0) 0%, rgba(20, 17, 12, .2) 30%, rgba(20, 17, 12, .88) 58%, #14110C 82%); }
.ec-apoc .ec-shade--a3 { background: radial-gradient(ellipse 45% 35% at 78% 18%, rgba(233, 207, 149, .22) 0%, rgba(233, 207, 149, 0) 70%); }
.ec-apoc__top { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.ec-apoc__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ec-apoc__kicker { font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--ec-sand); }
.ec-apoc__title { font-weight: 700; font-size: clamp(52px, 7vw, 80px); line-height: .95; letter-spacing: .02em; color: var(--ec-sand-light); text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.ec-apoc__tagline { font-family: var(--ec-display); font-size: 24px; color: var(--ec-sand); }
.ec-apoc__desc { color: #CFC5B2; max-width: 600px; line-height: 1.6; }
.ec-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ec-fact { clip-path: var(--ec-cut-s); background: rgba(20, 14, 8, .6); border: 1px solid rgba(217, 178, 106, .35); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ec-fact__v { font-family: var(--ec-display); font-weight: 700; font-size: 24px; color: var(--ec-sand-light); }
.ec-fact__l { font-size: 12px; color: var(--ec-sand-muted); }
.ec-apoc__art { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ec-apoc__art .ec-frame { background: var(--ec-sand); padding: 2px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.ec-apoc__art img { clip-path: var(--ec-cut); display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ec-apoc__credit { font-size: 12px; color: var(--ec-sand-muted); }
.ec-apoc__bottom { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 44px; }
.ec-apoc h3 { color: var(--ec-sand-light); font-size: 30px; }
.ec-heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ec-hero-card { clip-path: var(--ec-cut-s); background: #1E1810; border: 1px solid #3A3020; display: flex; flex-direction: column; }
.ec-hero-card__img { aspect-ratio: 3 / 4; background: radial-gradient(ellipse 60% 50% at 50% 40%, #3A2C18 0%, #1A140C 80%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ec-hero-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ec-hero-card__q { clip-path: var(--ec-diamond); width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: rgba(217, 178, 106, .15); font-family: var(--ec-display); font-size: 28px; color: var(--ec-sand); }
.ec-hero-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ec-hero-card__name { font-family: var(--ec-display); font-size: 22px; }
.ec-hero-card__st { font-size: 12px; color: var(--ec-sand-muted); }
.ec-timeline { list-style: none; padding: 0 0 0 22px; border-left: 1px solid var(--ec-sand-line); display: flex; flex-direction: column; gap: 20px; }
.ec-timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ec-timeline li::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--ec-sand); border: 2px solid #14110C; }
.ec-timeline__date { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ec-sand); }
.ec-timeline__title { font-family: var(--ec-display); font-size: 21px; line-height: 1.15; }
.ec-timeline__text { font-size: 14px; color: var(--ec-sand-muted); }
.ec-timeline--accent { border-left-color: var(--ec-line-2); }
.ec-timeline--accent li::before { background: var(--ec-accent); border-color: var(--ec-bg); }
.ec-timeline--accent .ec-timeline__date { color: var(--ec-accent); }
.ec-timeline--accent .ec-timeline__text { color: var(--ec-muted); }

/* Площадки ---------------------------------------------------------------- */
.ec-places { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.ec-map { clip-path: var(--ec-cut); flex: 999 1 520px; min-width: 0; min-height: 360px; position: relative; background: var(--ec-hatch); overflow: hidden; }
.ec-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ec-map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--ec-faint); font-size: 13px; }
.ec-map__ph .ec-icon { color: var(--ec-accent); }
.ec-place-list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ec-place { clip-path: var(--ec-cut); background: var(--ec-panel); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.ec-place__name { display: flex; align-items: center; gap: 10px; font-family: var(--ec-display); font-size: 26px; }
.ec-place__name::before { content: ""; width: 12px; height: 12px; transform: rotate(45deg); background: var(--ec-accent); flex-shrink: 0; }
.ec-place:nth-child(2n) .ec-place__name::before { background: var(--ec-frost); }
.ec-place__addr { font-size: 14px; color: var(--ec-muted); }
.ec-place__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Творчество -------------------------------------------------------------- */
.ec-creative .ec-deco { position: absolute; right: max(24px, calc(50% - 640px)); top: 24px; height: 330px; width: auto; opacity: .5; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)); pointer-events: none; }
@media (max-width: 900px) { .ec-creative .ec-deco { display: none; } }
.ec-tabpanel[hidden] { display: none; }
.ec-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ec-work { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ec-work__img { clip-path: var(--ec-cut); background: var(--ec-line-2); padding: 1px; }
.ec-work.is-voted .ec-work__img { background: var(--ec-accent); padding: 2px; }
.ec-work__img img, .ec-work__img .ec-hatch { clip-path: var(--ec-cut); display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ec-work__title { font-size: 18px; font-weight: 600; color: var(--ec-text); }
.ec-work__author { font-size: 13px; color: var(--ec-muted); }
.ec-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ec-tile { background: var(--ec-panel); border: 1px solid var(--ec-line); color: var(--ec-text); display: flex; flex-direction: column; transition: background .15s; }
.ec-tile:hover { background: var(--ec-hover); color: var(--ec-text); }
.ec-tile__img { height: 180px; overflow: hidden; }
.ec-tile__img img, .ec-tile__img .ec-hatch { width: 100%; height: 100%; object-fit: cover; display: flex; }
.ec-tile__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ec-tile__meta { font-size: 13px; color: var(--ec-muted); }
.ec-tile__title { font-family: var(--ec-display); font-size: 23px; line-height: 1.15; }
.ec-note { clip-path: var(--ec-cut-s); background: var(--ec-note-bg); color: var(--ec-note-fg); padding: 14px 18px; font-size: 14px; display: flex; gap: 12px; align-items: center; }

/* Лига -------------------------------------------------------------------- */
.ec-league-wrap { display: flex; flex-wrap: wrap; gap: 28px; }
.ec-league { flex: 999 1 620px; min-width: 0; }
.ec-league .ec-frame__in { background: rgba(19, 24, 32, .9); padding: 36px; display: flex; flex-wrap: wrap; gap: 32px; }
.ec-league__info { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.ec-league__top { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.ec-top-row { clip-path: var(--ec-cut-s); background: var(--ec-panel-2); padding: 14px 16px; display: flex; align-items: center; gap: 14px; color: var(--ec-text); }
.ec-top-row:first-of-type { background: var(--ec-panel-3); }
.ec-medal { clip-path: var(--ec-diamond); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--ec-on-accent); font-family: var(--ec-display); font-size: 21px; }
.ec-medal--1 { background: #D2A85A; }
.ec-medal--2 { background: #B9B2A4; }
.ec-medal--3 { background: #B07A4F; }
.ec-top-row__name { font-weight: 600; }
.ec-top-row__score { margin-left: auto; font-family: var(--ec-display); font-size: 28px; }
.ec-tours { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ec-tour { clip-path: var(--ec-cut-s); background: rgba(19, 24, 32, .9); padding: 18px 20px; display: flex; gap: 16px; align-items: center; color: var(--ec-text); }
.ec-tour:hover { background: var(--ec-hover); color: var(--ec-text); }
.ec-tour .ec-date { padding-right: 14px; border-right: 1px solid var(--ec-line-2); }
.ec-dashed { border: 1px dashed var(--ec-line-3); background: rgba(19, 24, 32, .85); padding: 16px 18px; font-size: 14px; color: var(--ec-muted); line-height: 1.5; }

/* Гильдия ----------------------------------------------------------------- */
.ec-guild { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.ec-guild__col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ec-guild__col--wide { flex: 1.3 1 440px; }
.ec-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ec-muted); display: flex; justify-content: space-between; gap: 12px; }
.ec-demo { flex-grow: 1; }
.ec-demo .ec-frame__in { display: flex; flex-direction: column; }
.ec-demo__cover { height: 110px; position: relative; overflow: hidden; }
.ec-demo__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-demo__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ec-panel) 0%, rgba(22, 27, 36, .2) 100%); }
.ec-demo__body { padding: 0 26px 26px; margin-top: -40px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.ec-demo__who { display: flex; align-items: flex-end; gap: 16px; }
.ec-demo__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.ec-demo__grid div { background: var(--ec-panel-3); padding: 12px 6px; display: flex; flex-direction: column; }
.ec-demo__grid b { font-family: var(--ec-display); font-weight: 500; font-size: 28px; color: var(--ec-accent); }
.ec-demo__grid span { font-size: 12px; color: var(--ec-muted); }
.ec-ranks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.ec-rank { clip-path: var(--ec-cut-s); background: var(--ec-panel); padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-grow: 1; }
.ec-rank__n { clip-path: var(--ec-diamond); width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ec-on-accent); font-family: var(--ec-display); font-size: 22px; }
.ec-rank-1 { background: #B07A4F; } .ec-rank-2 { background: #B9B2A4; } .ec-rank-3 { background: var(--ec-accent); } .ec-rank-4 { background: #E9D3A2; }
.ec-rank__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ec-rank__name { font-family: var(--ec-display); font-size: 24px; line-height: 1.1; }
.ec-rank__how { color: var(--ec-text-2); font-size: 15px; }
.ec-rank__tag { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ec-muted); }
.ec-rank:first-child .ec-rank__tag { color: var(--ec-accent); }
.ec-way-n { background: var(--ec-panel-3); color: var(--ec-accent); border: 0; }
.ec-rank:first-child .ec-way-n { background: var(--ec-accent); color: var(--ec-on-accent); }
.ec-way-link { align-self: flex-start; margin-top: 4px; padding: 6px 0; background: none; border: 0; color: var(--ec-accent); font-size: 14px; font-weight: 600; cursor: pointer; min-height: 32px; }
.ec-way-link:hover { color: var(--ec-accent-soft); }
@media (max-width: 640px) { .ec-rank { align-items: flex-start; } .ec-rank__n { width: 44px; height: 44px; font-size: 18px; } }
.ec-join { flex: 1 1 340px; min-width: 0; display: flex; }
.ec-join .ec-frame { flex-grow: 1; }
.ec-join .ec-frame__in { padding: 0 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.ec-join__img { margin: 0 -30px 4px; width: calc(100% + 60px); max-width: none; height: 150px; object-fit: cover; display: block; }
.ec-perks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ec-perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ec-text-2); }
.ec-perks li::before { content: ""; width: 9px; height: 9px; margin-top: 8px; flex-shrink: 0; background: var(--ec-accent); transform: rotate(45deg); }
.ec-join__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.ec-members { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-member { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 14px 7px 8px; background: var(--ec-panel); border: 1px solid var(--ec-line); color: var(--ec-text); font-size: 14px; font-weight: 600; transition: background .15s; }
.ec-member:hover { background: var(--ec-hover); color: var(--ec-text); }
.ec-member .ec-diamond { --s: 30px; }
.ec-member--you { border: 1px dashed var(--ec-accent); color: var(--ec-accent); font-weight: 700; }
.ec-member--you .ec-diamond { background: var(--ec-accent); color: var(--ec-on-accent); }

/* Подписка и подвал ------------------------------------------------------- */
.ec-subscribe-wrap { padding: 24px 0 72px; }
.ec-subscribe { clip-path: var(--ec-cut); position: relative; overflow: hidden; background: var(--ec-panel); }
.ec-subscribe .ec-shade { background: linear-gradient(90deg, rgba(10, 12, 17, .92) 0%, rgba(10, 12, 17, .7) 55%, rgba(10, 12, 17, .35) 100%); }
.ec-subscribe__figure { position: absolute; right: 2%; bottom: -30px; height: 115%; width: auto; max-width: none; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); pointer-events: none; }
.ec-subscribe__in { position: relative; padding: 56px 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; max-width: 900px; }
.ec-subscribe__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.ec-subscribe__text p { color: #C9CFD9; font-size: 18px; }
.ec-subscribe__actions { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .ec-subscribe__figure { opacity: .35; } .ec-subscribe__in { padding: 40px 24px; } }

.ec-footer { background: var(--ec-bg-deep); border-top: 1px solid var(--ec-line); font-size: 14px; }
.ec-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.ec-footer__title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ec-muted); margin-bottom: 12px; }
.ec-footer__list, .ec-footer .menu { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ec-footer a { color: var(--ec-text); }
.ec-footer a:hover { color: var(--ec-accent); }
.ec-footer__about { color: var(--ec-muted); line-height: 1.5; margin-top: 10px; }
.ec-footer__bottom { border-top: 1px solid var(--ec-line); padding-top: 18px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ec-muted); }
.ec-footer__bottom span:last-child { margin-left: auto; }

/* Внутренние страницы ----------------------------------------------------- */
.ec-page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ec-line); }
.ec-page-hero__in { position: relative; padding-top: 110px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.ec-page-hero .ec-h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.ec-page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--ec-text-2); }
.ec-content { padding: 48px 0 96px; }
.ec-content--narrow .ec-entry { max-width: 820px; }
.ec-content-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ec-content-layout .ec-entry { flex: 999 1 620px; min-width: 0; }

.ec-entry { font-size: 17px; line-height: 1.7; color: var(--ec-text); }
.ec-entry > * + * { margin-top: 1.1em; }
.ec-entry h2 { font-size: 32px; margin-top: 1.6em; }
.ec-entry h3 { font-size: 25px; margin-top: 1.4em; }
.ec-entry h4 { font-size: 20px; margin-top: 1.2em; }
.ec-entry a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ec-entry ul, .ec-entry ol { padding-left: 1.4em; }
.ec-entry li + li { margin-top: .35em; }
.ec-entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ec-accent); font-family: var(--ec-display); font-size: 22px; line-height: 1.35; color: var(--ec-text-2); }
.ec-entry img { display: block; }
.ec-entry figure { margin: 1.4em 0; }
.ec-entry figcaption, .ec-entry .wp-element-caption { font-size: 13px; color: var(--ec-muted); margin-top: 8px; }
.ec-entry hr { border: 0; height: 1px; background: var(--ec-line-2); margin: 2em 0; }
.ec-entry code { background: var(--ec-panel-3); padding: 2px 6px; font-size: .9em; }
.ec-entry pre { background: var(--ec-panel); padding: 18px; overflow-x: auto; }
.ec-entry table, .ec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ec-entry .wp-block-table, .ec-table-wrap { overflow-x: auto; border: 1px solid var(--ec-line); }
.ec-entry th, .ec-table th { background: var(--ec-panel); color: var(--ec-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: left; font-weight: 700; }
.ec-entry th, .ec-entry td, .ec-table th, .ec-table td { padding: 12px 16px; border-top: 1px solid var(--ec-line); }
.ec-entry tbody tr:hover, .ec-table tbody tr:hover { background: var(--ec-panel-2); }
.ec-entry .wp-block-button__link, .ec-entry .button, .ec-entry button[type="submit"], .ec-entry input[type="submit"] {
	clip-path: var(--ec-cut-s); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px;
	background: var(--ec-accent); color: var(--ec-on-accent); border: 0; border-radius: 0; font-family: var(--ec-sans); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.ec-entry .wp-block-button__link:hover, .ec-entry .button:hover, .ec-entry button[type="submit"]:hover, .ec-entry input[type="submit"]:hover { background: var(--ec-accent-hover); color: var(--ec-on-accent); }
.ec-entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--ec-text); border: 1px solid var(--ec-line-3); }
.alignwide { max-width: calc(var(--ec-max) - 2 * var(--ec-gutter)); }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Формы (в т.ч. формы плагинов внутри контента) */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
	width: 100%; padding: 12px 14px; min-height: 46px;
	background: var(--ec-bg); border: 1px solid var(--ec-line-2); border-radius: 0; color: var(--ec-text);
	font-family: var(--ec-sans); font-size: 15px; color-scheme: dark;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ec-accent); outline-offset: 1px; border-color: transparent; }
::placeholder { color: var(--ec-faint); }
label { font-size: 13px; font-weight: 600; color: var(--ec-muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ec-accent); width: 18px; height: 18px; }

.ec-pagination { margin-top: 32px; }
.ec-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-pagination .page-numbers { clip-path: var(--ec-cut-s); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--ec-line-3); color: var(--ec-text); font-weight: 600; }
.ec-pagination .page-numbers.current { background: var(--ec-accent); border-color: var(--ec-accent); color: var(--ec-on-accent); }

.ec-post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 48px; }
.ec-post-nav a { clip-path: var(--ec-cut-s); background: var(--ec-panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ec-text); }
.ec-post-nav a:hover { background: var(--ec-hover); color: var(--ec-text); }
.ec-post-nav span { font-size: 12px; color: var(--ec-muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* Комментарии */
.ec-comments { margin-top: 56px; max-width: 820px; }
.ec-comments .comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ec-comments .children { list-style: none; padding-left: 28px; margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.ec-comments .comment-body { background: var(--ec-panel); border: 1px solid var(--ec-line); padding: 18px 20px; }
.ec-comments .comment-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--ec-muted); margin-bottom: 8px; }
.ec-comments .avatar { clip-path: var(--ec-diamond); }
.ec-comments .fn { color: var(--ec-text); font-weight: 600; font-style: normal; }
.ec-comments .comment-respond { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.ec-comments .comment-form { display: flex; flex-direction: column; gap: 14px; }
.ec-comments .comment-form p { display: flex; flex-direction: column; gap: 6px; }
.ec-comments .comment-form .form-submit input { clip-path: var(--ec-cut-s); align-self: flex-start; min-height: 44px; padding: 12px 22px; border: 0; background: var(--ec-accent); color: var(--ec-on-accent); font-weight: 700; cursor: pointer; }

/* Профиль игрока ---------------------------------------------------------- */
.ec-profile-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ec-line); }
.ec-profile-hero__in { position: relative; padding-top: 130px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 24px; }
.ec-profile-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 32px; }
.ec-profile-head .ec-diamond-ring { padding: 4px; }
.ec-profile-head .ec-diamond { --s: 140px; font-size: 56px; }
.ec-profile-head__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.ec-profile-head__line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; color: var(--ec-text-2); }
.ec-profile-head h1 { font-size: clamp(40px, 5vw, 58px); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-profile-head__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 6px; }
.ec-profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ec-profile-stats .ec-stat { background: rgba(22, 27, 36, .88); }
.ec-profile-stats .ec-stat:not(:first-child) .ec-stat__v { color: var(--ec-text); }
.ec-profile-tabs .ec-tab { min-height: 52px; padding: 14px 18px; font-size: 15px; }
.ec-rankpath { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ec-rankpath__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; }
.ec-rankpath__item.is-locked { opacity: .5; }
.ec-rankpath__item.is-locked .ec-rank__n { background: var(--ec-panel-3); color: var(--ec-muted); }
.ec-rankpath .ec-rank__n { width: 52px; height: 52px; font-size: 20px; }
.ec-progress { height: 8px; background: var(--ec-line); position: relative; }
.ec-progress > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ec-accent); }
.ec-game { background: var(--ec-panel); border: 1px solid var(--ec-line); padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ec-res { clip-path: var(--ec-cut-s); width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.ec-res--W { background: var(--ec-warm-bg); color: var(--ec-warm); }
.ec-res--D { background: var(--ec-panel-3); color: var(--ec-text-2); }
.ec-res--L { background: var(--ec-panel-2); color: var(--ec-muted); }
.ec-status--ok { color: var(--ec-ok); }
.ec-status--wait { color: var(--ec-note-fg); }
.ec-bar { height: 6px; background: var(--ec-line); position: relative; }
.ec-bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ec-accent); }
.ec-contact { display: flex; justify-content: space-between; gap: 12px; background: var(--ec-panel); border: 1px solid var(--ec-line); padding: 12px 14px; color: var(--ec-text); font-size: 14px; }
.ec-contact:hover { background: var(--ec-hover); color: var(--ec-text); }
.ec-contact span { color: var(--ec-muted); }

/* Модальные окна ---------------------------------------------------------- */
.ec-modal { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 9, .8); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.ec-modal[hidden] { display: none; }
.ec-modal__box { clip-path: var(--ec-cut); background: var(--ec-accent); padding: 1px; width: 100%; max-width: 640px; margin: auto 0; }
.ec-modal__box--sm { max-width: 480px; }
.ec-modal__in { clip-path: var(--ec-cut); background: var(--ec-panel); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.ec-modal__head { display: flex; align-items: flex-start; gap: 16px; }
.ec-modal__head > div { display: flex; flex-direction: column; gap: 6px; }
.ec-modal__close { margin-left: auto; flex-shrink: 0; }
.ec-form { display: flex; flex-direction: column; gap: 18px; }
.ec-form label { display: flex; flex-direction: column; gap: 6px; }
.ec-form fieldset { margin: 0; padding: 0; border: 0; }
.ec-form legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ec-muted); }
.ec-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ec-form__checks { display: flex; flex-direction: column; gap: 10px; }
.ec-form__checks label { flex-direction: row; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; font-weight: 400; color: var(--ec-text-2); }
.ec-form__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.ec-form__actions .ec-btn--primary { flex: 1 1 220px; }
.ec-form__error { color: var(--ec-warm); font-size: 14px; }
.ec-form__error:empty { display: none; }
.ec-hp { position: absolute; left: -9999px; }
.ec-success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ec-success[hidden] { display: none; }
.ec-success .ec-diamond { --s: 64px; }

/* Мелкие экраны ----------------------------------------------------------- */
@media (max-width: 640px) {
	:root { --ec-gutter: 16px; }
	.ec-section { padding: 56px 0; }
	.ec-hero__in { padding-top: 64px; }
	.ec-post { padding: 18px; }
	.ec-post__thumb { flex-basis: 100%; height: 190px; order: -1; }
	.ec-post__date { margin-left: 0; }
	.ec-modal__in { padding: 24px 18px; }
	.ec-league .ec-frame__in { padding: 24px; }
	.ec-rank { padding: 16px; gap: 14px; }
	.ec-rank__tag { display: none; }
	.ec-rankpath__item span:last-child { font-size: 11px; }
	.ec-profile-head .ec-diamond { --s: 104px; font-size: 42px; }
	.ec-footer__bottom span:last-child { margin-left: 0; }
}
.admin-bar .ec-modal { padding-top: 72px; }

/* Правила и вики ---------------------------------------------------------- */
.ec-rules { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.ec-rules__main { flex: 1.6 1 600px; min-width: 0; }
.ec-rules__main .ec-frame__in { position: relative; overflow: hidden; }
.ec-rules__art { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; opacity: .55; }
.ec-rules__shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ec-panel) 45%, rgba(22, 27, 36, .6) 75%, rgba(22, 27, 36, .2) 100%); }
.ec-rules__body { position: relative; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.ec-rules__body .ec-h2 { max-width: 560px; }
.ec-rules__body p { color: var(--ec-text-2); max-width: 560px; }
.ec-chapters { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.ec-chapter { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; background: rgba(30, 37, 50, .85); border: 1px solid var(--ec-line-2); color: var(--ec-text); font-size: 13px; font-weight: 600; }
.ec-chapter:hover { border-color: var(--ec-accent); color: var(--ec-text); }
.ec-wiki { flex: 1 1 340px; min-width: 0; }
.ec-wiki .ec-frame__in { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.ec-wiki__icon { clip-path: var(--ec-diamond); width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--ec-frost-bg); color: var(--ec-frost); }
.ec-wiki .ec-kicker { color: var(--ec-frost); }
.ec-wiki p { color: var(--ec-text-2); flex-grow: 1; }
.ec-wiki .ec-contact span { color: var(--ec-frost); }
.ec-btn--frost { border-color: var(--ec-frost); color: var(--ec-text); clip-path: none; }
.ec-btn--frost:hover { background: var(--ec-frost-bg); color: var(--ec-text); }
@media (max-width: 640px) { .ec-rules__body, .ec-wiki .ec-frame__in { padding: 24px; } .ec-rules__art { width: 100%; opacity: .2; } }

.ec-frame--frost { background: var(--ec-frost); }
.ec-frame--frost .ec-btn--frost { margin-top: 4px; }

/* ==========================================================================
   Подготовка к игре (/prep/): квесты Season 2 и билдер ростеров
   ========================================================================== */
.ec-quests [data-ec-qlang] {}
[data-ec-qlang="en"] .ec-l-ru, [data-ec-qlang="ru"] .ec-l-en { display: none !important; }
.ec-quests { display: flex; flex-direction: column; gap: 28px; }
.ec-quests__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ec-quests__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ec-seg { display: inline-flex; border: 1px solid var(--ec-line-2); background: var(--ec-panel); }
.ec-seg button { min-height: 44px; padding: 8px 14px; border: 0; background: transparent; color: var(--ec-text-2); font: 600 13px/1 var(--ec-sans); letter-spacing: .04em; cursor: pointer; }
.ec-seg button[aria-pressed="true"] { background: var(--ec-accent); color: var(--ec-on-accent); }
.ec-seg button:focus-visible { outline: 2px solid var(--ec-frost); outline-offset: -2px; }

.ec-quests__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ec-qcard { display: flex; gap: 14px; align-items: center; text-align: left; padding: 10px; background: var(--ec-panel); border: 1px solid var(--ec-line); color: var(--ec-text); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.ec-qcard:hover { border-color: var(--ec-line-3); background: var(--ec-panel-2); }
.ec-qcard[aria-selected="true"] { border-color: var(--ec-accent); background: linear-gradient(90deg, rgba(224, 83, 58, .14), var(--ec-panel) 70%); box-shadow: inset 3px 0 0 var(--ec-accent); }
.ec-qcard:focus-visible { outline: 2px solid var(--ec-frost); outline-offset: 2px; }
.ec-qcard__map { flex: 0 0 auto; line-height: 0; }
.ec-qcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ec-qcard__n { font: 700 11px/1 var(--ec-sans); letter-spacing: .2em; color: var(--ec-muted); }
.ec-qcard[aria-selected="true"] .ec-qcard__n { color: var(--ec-accent); }
.ec-qcard__name { font: 600 21px/1.05 var(--ec-display); }
.ec-qcard__tags { font-size: 12px; color: var(--ec-text-2); }

.ec-qmap { display: block; max-width: 100%; height: auto; font: 600 9px var(--ec-sans); }
.ec-qmap .f { fill: #121822; stroke: var(--ec-line-3); }
.ec-qmap .za { fill: rgba(224, 83, 58, .22); stroke: rgba(224, 83, 58, .55); }
.ec-qmap .zb { fill: rgba(127, 176, 214, .18); stroke: rgba(127, 176, 214, .5); }
.ec-qmap .c { stroke: var(--ec-line-3); stroke-dasharray: 4 4; }
.ec-qmap .q { stroke: var(--ec-sand); stroke-dasharray: 6 4; }
.ec-qmap .rng { fill: rgba(217, 178, 106, .1); stroke: rgba(217, 178, 106, .55); stroke-dasharray: 3 3; }
.ec-qmap .mo { fill: var(--ec-sand); stroke: #0e1117; stroke-width: 2; }
.ec-qmap .mi { fill: #b78cf0; stroke: #0e1117; stroke-width: 2; }
.ec-qmap .mc { fill: var(--ec-text); stroke: #0e1117; stroke-width: 2; }
.ec-qmap .mh { fill: #8fd18f; stroke: #0e1117; stroke-width: 2; }
.ec-qmap .ma { fill: var(--ec-accent); stroke: #0e1117; stroke-width: 2; }
.ec-qmap .mb { fill: var(--ec-frost); stroke: #0e1117; stroke-width: 2; }
.ec-qmap text { fill: var(--ec-text-2); }
.ec-qmap .zl { font: 700 11px var(--ec-sans); fill: var(--ec-muted); }
.ec-qcard .ec-qmap text { display: none; }

.ec-quest { display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--ec-bg-alt); border: 1px solid var(--ec-line); }
.ec-quest__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; }
.ec-quest__title { font: 600 clamp(32px, 4vw, 48px)/1 var(--ec-display); margin: 8px 0 10px; }
.ec-quest__intro { max-width: 760px; color: var(--ec-text-2); font-style: italic; margin: 0; }
.ec-quest__top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ec-quest__map { margin: 0; }
.ec-quest__map figcaption { font-size: 12px; color: var(--ec-muted); margin-top: 8px; }
.ec-quest__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ec-qbox { background: var(--ec-panel); border: 1px solid var(--ec-line); border-top: 3px solid var(--ec-line-3); padding: 16px 18px; }
.ec-qbox--accent { border-top-color: var(--ec-accent); }
.ec-qbox--sand { border-top-color: var(--ec-sand); }
.ec-qbox--frost { border-top-color: var(--ec-frost); }
.ec-qbox h4, .ec-qrule h4, .ec-quest__sub { font: 600 20px/1.1 var(--ec-display); margin: 0 0 10px; }
.ec-quest__sub { font-size: 26px; margin: 4px 0 0; }
.ec-qlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ec-qlist li::marker { color: var(--ec-accent); }
.ec-qnote { margin-top: 10px; padding: 10px 12px; background: var(--ec-note-bg); color: var(--ec-note-fg); font-size: 13px; }
.ec-qnote .ec-qlist { padding-left: 0; list-style: none; font-size: 13px; }
.ec-quest__rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.ec-qrule { background: var(--ec-panel); border: 1px solid var(--ec-line); padding: 16px 18px; }
.ec-qrule p { margin: 0; font-size: 15px; color: var(--ec-text-2); }
.ec-qrule--schemes { border-left: 3px solid var(--ec-frost); }
.ec-qchart { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.ec-qchart th { text-align: left; font: 700 11px/1 var(--ec-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ec-muted); padding: 8px 10px; border-bottom: 1px solid var(--ec-line-2); }
.ec-qchart td { padding: 8px 10px; border-bottom: 1px solid var(--ec-line); vertical-align: top; color: var(--ec-text-2); }
.ec-qchart__roll { white-space: nowrap; font-weight: 700; color: var(--ec-sand) !important; width: 64px; }
.ec-qchart__name { font: 600 17px/1.15 var(--ec-display); color: var(--ec-text) !important; width: 220px; }
.ec-qchart tr.is-hit td { background: rgba(224, 83, 58, .12); }

.ec-schemes { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--ec-panel); border: 1px solid var(--ec-line); }
.ec-schemes__draw { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.ec-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ec-text-2); }
.ec-field select { min-height: 44px; min-width: 220px; padding: 8px 12px; background: var(--ec-bg); color: var(--ec-text); border: 1px solid var(--ec-line-2); font: 15px var(--ec-sans); }
.ec-schemes__hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ec-scard { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--ec-bg-alt); border: 1px solid var(--ec-line-2); text-align: left; color: var(--ec-text); font: inherit; cursor: pointer; }
.ec-scard:hover { border-color: var(--ec-line-3); }
.ec-scard[aria-pressed="true"] { border-color: var(--ec-accent); box-shadow: inset 0 3px 0 var(--ec-accent); }
.ec-scard[aria-pressed="false"].is-dimmed { opacity: .45; }
.ec-scard__roll { font: 700 12px/1 var(--ec-sans); letter-spacing: .16em; color: var(--ec-sand); }
.ec-scard__name { font: 600 20px/1.1 var(--ec-display); }
.ec-scard__text { font-size: 14px; color: var(--ec-text-2); }
.ec-scard__keep { font-size: 12px; font-weight: 700; color: var(--ec-accent); letter-spacing: .1em; text-transform: uppercase; }

.ec-prep-seq { padding: 22px 24px; border: 1px dashed var(--ec-line-3); }
.ec-prep-seq ol { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; padding-left: 20px; }
.ec-prep-seq li::marker { color: var(--ec-accent); font-weight: 700; }
.ec-prep-login { max-width: 760px; }
.ec-prep-login > * { background: var(--ec-panel); }
.ec-prep-login { padding: 32px; background: var(--ec-panel); clip-path: var(--ec-cut); }
.ec-builder-host { min-height: 520px; }

@media (max-width: 900px) {
	.ec-quest__top { grid-template-columns: 1fr; }
	.ec-quest__map svg { width: 100%; max-width: 360px; }
	.ec-quest { padding: 20px 16px; }
	.ec-schemes { padding: 20px 16px; }
	.ec-quest__rules { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ec-quests__grid { grid-template-columns: 1fr; }
	.ec-qcard__map svg { width: 64px; height: 64px; }
	.ec-qchart--wide thead { display: none; }
	.ec-qchart--wide tr { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--ec-line); }
	.ec-qchart--wide td { border: 0; }
	.ec-qchart--wide td:last-child { grid-column: 1 / -1; padding-top: 0; }
	.ec-qchart__name { width: auto; }
	.ec-field select { min-width: 0; width: 100%; }
	.ec-field { flex: 1 1 100%; }
	.ec-schemes__draw .ec-btn { width: 100%; }
}
@media print {
	.ec-prep-page .ec-header, .ec-prep-page .ec-footer, .ec-prep-page .ec-page-hero, .ec-prep-page .ec-tabs, .ec-prep-page .ec-modal { display: none !important; }
	.ec-prep-page.is-printing-quest .ec-quests > :not(.is-print) { display: none !important; }
	.ec-prep-page { background: #fff; }
}
@media print {
	.ec-prep-page.is-printing-quest, .ec-prep-page.is-printing-quest * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
	.ec-prep-page.is-printing-quest .ec-qmap .f { fill: #fff; stroke: #000; }
	.ec-prep-page.is-printing-quest [data-ec-quest-print] { display: none; }
	.ec-prep-page.is-printing-quest .ec-qrule, .ec-prep-page.is-printing-quest .ec-qbox { break-inside: avoid; border-color: #999 !important; }
}

/* Подсчёт очков квеста */
.ec-qmap .lg { font: 600 9px var(--ec-sans); fill: #8fd18f; }
.ec-score { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--ec-panel); border: 1px solid var(--ec-line-2); border-top: 3px solid var(--ec-accent); }
.ec-score__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ec-score__totals { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-score__total { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; padding: 10px 16px; min-width: 170px; background: var(--ec-bg-alt); border: 1px solid var(--ec-line-2); border-left: 4px solid var(--ec-accent); }
.ec-score__total--b { border-left-color: var(--ec-frost); }
.ec-score__total input { grid-column: 1 / -1; width: 100%; min-height: 32px; padding: 2px 0; background: transparent; border: 0; border-bottom: 1px dashed var(--ec-line-3); color: var(--ec-text); font: 600 14px var(--ec-sans); }
.ec-score__total input:focus { outline: none; border-bottom-color: var(--ec-accent); }
.ec-score__total b { font: 600 40px/1.1 var(--ec-display); color: var(--ec-text); }
.ec-score__total span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ec-muted); }
.ec-score__rounds { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.ec-score__rounds > button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; min-height: 52px; padding: 6px 10px; background: var(--ec-bg-alt); border: 1px solid var(--ec-line-2); color: var(--ec-text-2); font: 700 15px/1.1 var(--ec-sans); cursor: pointer; }
.ec-score__rounds > button small { font-size: 11px; font-weight: 600; color: var(--ec-muted); margin-top: 3px; }
.ec-score__rounds > button[aria-selected="true"] { background: var(--ec-accent); border-color: var(--ec-accent); color: var(--ec-on-accent); }
.ec-score__rounds > button[aria-selected="true"] small { color: var(--ec-on-accent); }
.ec-score__rctl { display: inline-flex; gap: 4px; margin-left: auto; }
.ec-score__rctl button { width: 44px; min-height: 52px; background: transparent; border: 1px dashed var(--ec-line-3); color: var(--ec-text-2); font-size: 18px; cursor: pointer; }
.ec-score__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ec-score__col { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--ec-bg-alt); border-top: 3px solid var(--ec-accent); }
.ec-score__col--b { border-top-color: var(--ec-frost); }
.ec-score__who { font: 600 20px/1.1 var(--ec-display); margin-bottom: 4px; }
.ec-score__grp { margin-top: 8px; font: 700 11px/1 var(--ec-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ec-muted); }
.ec-score__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--ec-panel); border: 1px solid var(--ec-line); }
.ec-score__row.is-on { border-color: var(--ec-line-3); background: var(--ec-panel-2); }
.ec-score__row.is-penalty.is-on { border-color: var(--ec-accent-dim); background: var(--ec-note-bg); }
.ec-score__lbl { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.ec-score__lbl small { color: var(--ec-sand); font-weight: 700; font-size: 12px; }
.ec-score__row.is-penalty .ec-score__lbl small { color: var(--ec-warm); }
.ec-score__step { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ec-score__step button { width: 40px; height: 40px; background: var(--ec-bg); border: 1px solid var(--ec-line-2); color: var(--ec-text); font-size: 20px; line-height: 1; cursor: pointer; }
.ec-score__step button:hover:not(:disabled) { border-color: var(--ec-accent); }
.ec-score__step button:disabled { opacity: .35; cursor: default; }
.ec-score__step output { min-width: 34px; text-align: center; font: 600 20px var(--ec-display); }
.ec-score__row--scheme select { flex: 1 1 auto; min-width: 0; min-height: 40px; background: var(--ec-bg); color: var(--ec-text); border: 1px solid var(--ec-line-2); padding: 6px 8px; font: 14px var(--ec-sans); }
.ec-score__none { margin: 0; padding: 10px; font-size: 14px; color: var(--ec-note-fg); background: var(--ec-note-bg); }
.ec-score__sum { margin-top: 0; min-width: 520px; }
.ec-score__sum td, .ec-score__sum th { text-align: center; }
.ec-score__sum td:first-child, .ec-score__sum th:first-child { text-align: left; }
.ec-score__tot { font: 600 20px var(--ec-display); color: var(--ec-text) !important; }
.ec-score__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ec-score__lead { margin-right: auto; font: 600 18px var(--ec-display); color: var(--ec-sand); }
.ec-score :focus-visible { outline: 2px solid var(--ec-frost); outline-offset: 2px; }
@media (max-width: 760px) {
	.ec-score { padding: 16px 12px; }
	.ec-score__cols { grid-template-columns: 1fr; }
	.ec-score__totals, .ec-score__total { flex: 1 1 140px; min-width: 0; }
	.ec-score__rctl { margin-left: 0; }
	.ec-score__rounds > button { min-width: 54px; flex: 1 0 54px; }
}
@media print { .ec-prep-page.is-printing-quest .ec-score__rounds, .ec-prep-page.is-printing-quest .ec-score__cols, .ec-prep-page.is-printing-quest .ec-score__foot button { display: none !important; } }
.ec-score b, .ec-score output, .ec-score__tot, .ec-score__lead { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.ec-score__total { grid-template-columns: auto 1fr; }
.ec-score__total span { align-self: end; padding-bottom: 8px; }
.ec-score__rctl { align-items: center; }
.ec-score__rctl > .ec-small { margin-right: 4px; }

/* Атрибут hidden всегда скрывает (иначе display:flex у карточек перебивает его) */
[hidden] { display: none !important; }

/* Сворачиваемые правила квеста */
details.ec-qrule > summary, .ec-schemes__fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.ec-qrule > summary::-webkit-details-marker, .ec-schemes__fold > summary::-webkit-details-marker { display: none; }
details.ec-qrule > summary::after, .ec-schemes__fold > summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ec-line-3); color: var(--ec-text-2); font: 600 16px/1 var(--ec-sans); }
details.ec-qrule[open] > summary::after, .ec-schemes__fold[open] > summary::after { content: "−"; }
details.ec-qrule > summary h4 { margin: 0; }
details.ec-qrule[open] > summary { margin-bottom: 10px; }
details.ec-qrule > summary:focus-visible, .ec-schemes__fold > summary:focus-visible { outline: 2px solid var(--ec-frost); outline-offset: 2px; }
.ec-schemes__fold > summary { padding: 12px 0; font: 600 18px var(--ec-display); border-bottom: 1px solid var(--ec-line-2); }
@media (min-width: 761px) { details.ec-qrule > summary::after { display: none; } details.ec-qrule > summary { cursor: default; pointer-events: none; } }

/* Подсчёт очков на телефоне: «игрок против игрока» в одной ленте */
.ec-vs { display: flex; flex-direction: column; gap: 8px; }
.ec-vs__bar { position: sticky; top: var(--ec-sticky-top, 64px); z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 0 -12px; padding: 8px 12px; background: rgba(14, 17, 23, .96); border-bottom: 1px solid var(--ec-line-2); backdrop-filter: blur(6px); }
.ec-vs__p { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ec-vs__p--b { justify-content: flex-end; }
.ec-vs__p i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ec-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-vs__p b { font: 600 26px/1 var(--ec-display); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.ec-vs__p--a b { color: var(--ec-accent-soft); }
.ec-vs__p--b b { color: var(--ec-frost); }
.ec-vs__r { padding: 4px 10px; background: var(--ec-accent); color: var(--ec-on-accent); font: 700 13px/1 var(--ec-sans); }
.ec-vs__row { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--ec-bg-alt); border: 1px solid var(--ec-line); }
.ec-vs__row.is-on { border-color: var(--ec-line-3); }
.ec-vs__row.is-penalty.is-on { border-color: var(--ec-accent-dim); background: var(--ec-note-bg); }
.ec-vs__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ec-vs .ec-score__step { justify-content: space-between; padding: 3px; background: var(--ec-panel); border-left: 3px solid var(--ec-accent); }
.ec-vs .ec-score__step--b { border-left-color: var(--ec-frost); }
.ec-vs .ec-score__step button { width: 48px; height: 48px; font-size: 22px; }
.ec-vs__row--scheme { flex-direction: row; flex-wrap: wrap; align-items: center; border-left: 3px solid var(--ec-accent); }
.ec-vs__row--scheme.ec-vs__row--b { border-left-color: var(--ec-frost); }
.ec-vs__row--scheme select { flex: 1 1 140px; min-width: 0; min-height: 48px; background: var(--ec-bg); color: var(--ec-text); border: 1px solid var(--ec-line-2); padding: 6px 8px; font: 14px var(--ec-sans); }
.ec-vs__row--scheme .ec-score__step { border-left: 0; }
.ec-vs__who { flex: 1 1 100%; font-size: 13px; font-weight: 700; color: var(--ec-text-2); }

@media (max-width: 760px) {
	/* Квесты — горизонтальная лента карточек */
	.ec-quests__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: thin; }
	.ec-qcard { flex: 0 0 78%; scroll-snap-align: start; }
	.ec-quests__bar .ec-h2 { font-size: 28px; }
	.ec-quests__tools { width: 100%; }
	.ec-seg { flex: 1 1 100%; }
	.ec-seg button { flex: 1; }
	.ec-quests__tools .ec-btn { flex: 1 1 100%; }
	.ec-quest { margin: 0 -16px; border-left: 0; border-right: 0; }
	.ec-quest__head .ec-btn { display: none; }
	.ec-quest__title { font-size: 34px; }
	.ec-quest__intro { font-size: 14px; }
	.ec-quest__map svg { max-width: 260px; margin: 0 auto; }
	.ec-quest__cols { grid-template-columns: 1fr; }
	.ec-qbox { padding: 12px 14px; }
	.ec-qlist { font-size: 14px; }
	details.ec-qrule { padding: 12px 14px; }
	.ec-score { margin: 0 -16px; border-left: 0; border-right: 0; }
	.ec-score__head .ec-kicker { display: none; }
	.ec-score__totals { width: 100%; }
	.ec-score__total { padding: 8px 12px; }
	.ec-score__total b { font-size: 32px; }
	.ec-score__rounds { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; }
	.ec-score__rounds > button { flex: 0 0 auto; min-width: 58px; }
	.ec-score__rctl { flex: 0 0 auto; }
	.ec-score__rctl > .ec-small { display: none; }
	.ec-score__foot .ec-btn { flex: 1 1 auto; }
	.ec-score__lead { flex: 1 1 100%; }
	.ec-schemes { margin: 0 -16px; border-left: 0; border-right: 0; }
	.ec-prep-seq ol { flex-direction: column; }
}

/* Шапка на узких телефонах: одна строка, «Войти» — в меню */
.ec-nav__login { display: none; }
@media (max-width: 520px) {
	.ec-header__actions .ec-hide-xs { display: none; }
	.ec-nav.is-open .ec-nav__login { display: block; padding: 14px 0; color: var(--ec-accent); font-weight: 700; border-top: 1px solid var(--ec-line); }
	.ec-header__actions { gap: 8px; }
	.ec-header__actions .ec-btn--primary { padding-left: 14px; padding-right: 14px; }
}
/* Подсчёт очков на телефоне: заголовок над итогами, итоги в ряд */
@media (max-width: 760px) {
	.ec-score__head { flex-direction: column; align-items: stretch; gap: 10px; }
	.ec-score__totals { flex-wrap: nowrap; }
	.ec-score__total { flex: 1 1 0; }
	.ec-score__head .ec-quest__sub { font-size: 24px; }
}
.ec-score__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ec-score__total input { flex: 1 1 100%; }
.ec-score__total span { padding-bottom: 0; }
.ec-score__total span { align-self: baseline; }
.ec-score__total b { line-height: 1; }
.ec-score__total { align-content: flex-start; }

/* ==========================================================================
   Турнир / Лига
   ========================================================================== */
.ec-tourney-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ec-line); }
.ec-tourney-hero__in { position: relative; padding-top: 72px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.ec-tourney-back { font-size: 13px; font-weight: 600; color: var(--ec-text-2); width: max-content; }
.ec-tourney-back:hover { color: var(--ec-accent); }
.ec-tourney-title { font-size: clamp(38px, 6vw, 72px); line-height: .95; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, .65); }
.ec-tourney-dates { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ec-text-2); font-size: 16px; }
.ec-status-pill { font-weight: 700; }
.ec-status-pill--live { background: var(--ec-warm-bg); color: var(--ec-warm); }
.ec-status-pill--reg { background: #1C2420; color: var(--ec-ok); }
.ec-status-pill--soon { background: var(--ec-frost-bg); color: var(--ec-frost); }
.ec-status-pill--done { background: var(--ec-panel-2); color: var(--ec-muted); }
.ec-tag--xs { font-size: 10px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

.ec-season-bar { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.ec-season-bar__track { position: relative; height: 6px; background: rgba(255, 255, 255, .1); }
.ec-season-bar__track > span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--ec-accent-dim), var(--ec-accent)); }
.ec-season-bar__track > span::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg); background: var(--ec-accent); box-shadow: 0 0 12px rgba(224, 83, 58, .8); }
.ec-season-bar__meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ec-text-2); letter-spacing: .04em; }
.ec-season-bar--sm { max-width: none; }
.ec-season-bar--sm .ec-season-bar__track { height: 4px; }
.ec-season-bar--sm .ec-season-bar__track > span::after { width: 8px; height: 8px; right: -4px; }

.ec-tourney-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; max-width: 760px; margin-top: 6px; }
.ec-stat--warm .ec-stat__v { color: var(--ec-warm); }
.ec-tourney-cta { margin-top: 4px; }

.ec-tourney-tabs { position: sticky; top: 68px; z-index: 20; background: rgba(14, 17, 23, .94); backdrop-filter: blur(8px); }
.admin-bar .ec-tourney-tabs { top: 100px; }
.ec-tab__n { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; background: var(--ec-panel-3); color: var(--ec-text-2); font-size: 12px; text-align: center; }

.ec-tourney-pending { display: flex; gap: 10px; align-items: flex-start; }
.ec-tourney-pending svg { flex: 0 0 auto; margin-top: 2px; color: var(--ec-warm); }

/* Пьедестал */
.ec-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.ec-podium__p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 14px 18px; background: linear-gradient(180deg, var(--ec-panel-2), var(--ec-panel)); border: 1px solid var(--ec-line-2); color: var(--ec-text); text-align: center; clip-path: var(--ec-cut); transition: border-color .15s, transform .15s; }
.ec-podium__p:hover { border-color: var(--ec-line-3); transform: translateY(-2px); color: var(--ec-text); }
.ec-podium__p--1 { padding-top: 38px; padding-bottom: 26px; background: linear-gradient(180deg, rgba(210, 168, 90, .18), var(--ec-panel) 70%); border-color: rgba(210, 168, 90, .5); }
.ec-podium__p .ec-medal { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; font-size: 16px; }
.ec-podium__p .ec-diamond { margin-top: 14px; font-family: var(--ec-display); font-size: 22px; }
.ec-podium__name { font: 600 20px/1.1 var(--ec-display); margin-top: 6px; overflow-wrap: anywhere; }
.ec-podium__fac { font-size: 12px; color: var(--ec-muted); }
.ec-podium__total { font: 600 40px/1 var(--ec-display); color: var(--ec-accent); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ec-podium__p--1 .ec-podium__total { font-size: 52px; color: #E2BD72; }
.ec-podium__games { font-size: 12px; color: var(--ec-text-2); }

/* Таблица-лидерборд (на телефоне превращается в карточки) */
.ec-standings { display: flex; flex-direction: column; border: 1px solid var(--ec-line); background: var(--ec-bg-alt); }
.ec-standings__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 140px 70px 100px 80px 80px; align-items: center; gap: 0 12px; padding: 10px 16px; border-top: 1px solid var(--ec-line); position: relative; }
.ec-standings:not(:has(.ec-standings__form)) .ec-standings__row { grid-template-columns: 52px minmax(0, 1fr) 70px 100px 80px 80px; }
.ec-standings__row--head { border-top: 0; background: var(--ec-panel); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-muted); padding-top: 12px; padding-bottom: 12px; }
.ec-standings__row:not(.ec-standings__row--head):hover { background: var(--ec-panel); }
.ec-standings__row.is-zone { background: linear-gradient(90deg, rgba(224, 83, 58, .1), transparent 55%); }
.ec-standings__row.is-zone::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ec-accent); }
.ec-standings__row.is-me { outline: 1px solid var(--ec-accent); outline-offset: -1px; background: var(--ec-warm-bg); }
.ec-standings__row.is-idle { color: var(--ec-muted); }
.ec-standings__pos { font: 600 22px var(--ec-display); color: var(--ec-text-2); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ec-standings__row.is-zone .ec-standings__pos { color: var(--ec-accent); }
.ec-standings__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ec-standings__who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ec-standings__who a { color: var(--ec-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-standings__who a:hover { color: var(--ec-accent); }
.ec-standings__row.is-idle .ec-standings__who a { color: var(--ec-text-2); }
.ec-standings__who small { font-size: 12px; color: var(--ec-muted); }
.ec-standings__form { display: flex; gap: 3px; }
.ec-standings__form .ec-res { width: 22px; height: 22px; font-size: 11px; clip-path: none; }
.ec-res--D { background: var(--ec-panel-3); color: var(--ec-text-2); }
.ec-res--L { background: var(--ec-frost-bg); color: var(--ec-frost); }
.ec-num { text-align: right; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.ec-standings__wdl { color: var(--ec-text-2); white-space: nowrap; }
.ec-standings__total { font: 600 22px var(--ec-display); color: var(--ec-text); }
.ec-standings__row.is-idle .ec-standings__total { color: var(--ec-muted); }

/* Сайдбар */
.ec-tourney-me { display: flex; flex-direction: column; gap: 10px; }
.ec-tourney-me__pos { display: flex; align-items: baseline; gap: 8px; }
.ec-tourney-me__pos b { font: 600 56px/1 var(--ec-display); color: var(--ec-accent); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ec-tourney-me__pos span { color: var(--ec-text-2); }
.ec-tourney-me__line { display: flex; gap: 16px; font-weight: 600; }
.ec-tourney-scoring { display: flex; flex-direction: column; gap: 12px; }
.ec-tourney-pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ec-tourney-pts span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: var(--ec-bg-alt); border: 1px solid var(--ec-line); font-size: 12px; color: var(--ec-text-2); }
.ec-tourney-pts b { font: 600 30px/1 var(--ec-display); color: var(--ec-text); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ec-tourney-pts span:first-child b { color: var(--ec-accent); }
.ec-facts { margin: 0; display: flex; flex-direction: column; }
.ec-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ec-line); font-size: 14px; }
.ec-facts > div:first-child { border-top: 0; }
.ec-facts dt { color: var(--ec-muted); }
.ec-facts dd { margin: 0; text-align: right; font-weight: 600; }

/* Партии */
.ec-matches { display: flex; flex-direction: column; gap: 8px; }
.ec-match { display: grid; grid-template-columns: 60px 1fr auto 1fr minmax(180px, auto); align-items: center; gap: 14px; padding: 14px 18px; background: var(--ec-panel); border: 1px solid var(--ec-line); }
.ec-match.is-pending { border-style: dashed; }
.ec-match__date { font-size: 13px; color: var(--ec-muted); font-variant-numeric: lining-nums; }
.ec-match__p { font-weight: 600; color: var(--ec-text-2); }
.ec-match__p a { color: inherit; }
.ec-match__p--a { text-align: right; }
.ec-match__p.is-win { color: var(--ec-text); }
.ec-match__p.is-win::after { content: " ◆"; color: var(--ec-accent); font-size: 10px; vertical-align: middle; }
.ec-match__p--a.is-win::after { content: none; }
.ec-match__p--a.is-win::before { content: "◆ "; color: var(--ec-accent); font-size: 10px; vertical-align: middle; }
.ec-match__score { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--ec-bg-alt); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.ec-match__score b { font: 600 24px/1 var(--ec-display); min-width: 28px; text-align: center; }
.ec-match__score i { color: var(--ec-muted); font-style: normal; }
.ec-match__meta { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* Правила */
.ec-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ec-rule-card { position: relative; padding: 22px 22px 22px 70px; background: var(--ec-panel); border: 1px solid var(--ec-line); }
.ec-rule-card__n { position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; clip-path: var(--ec-diamond); background: var(--ec-accent); color: var(--ec-on-accent); font: 600 18px var(--ec-display); }
.ec-rule-card h3 { margin: 0 0 8px; font: 600 22px/1.1 var(--ec-display); }
.ec-rule-card p { margin: 0; color: var(--ec-text-2); font-size: 15px; }
.ec-tourney-more { margin-top: 20px; border: 1px solid var(--ec-line); padding: 14px 18px; }
.ec-tourney-more > summary { cursor: pointer; font-weight: 600; }

/* Список турниров */
.ec-tourney-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ec-tcard { display: flex; flex-direction: column; background: var(--ec-panel); border: 1px solid var(--ec-line); color: var(--ec-text); transition: border-color .15s, transform .15s; overflow: hidden; }
.ec-tcard:hover { border-color: var(--ec-line-3); transform: translateY(-2px); color: var(--ec-text); }
.ec-tcard__img { position: relative; height: 150px; overflow: hidden; }
.ec-tcard__img img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.ec-tcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ec-panel), transparent 70%); }
.ec-tcard__body { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; margin-top: -26px; position: relative; flex: 1; }
.ec-tcard__title { font: 600 26px/1.05 var(--ec-display); }
.ec-tcard__dates { font-size: 14px; color: var(--ec-text-2); }
.ec-tcard__meta { display: flex; gap: 16px; font-size: 13px; color: var(--ec-text-2); }
.ec-tcard__meta b { color: var(--ec-text); font-size: 15px; }
.ec-tcard__top { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--ec-line); }
.ec-tcard__top > span { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ec-tcard__top .ec-medal { width: 22px; height: 22px; font-size: 12px; }
.ec-tcard__top b { margin-left: auto; font-family: var(--ec-display); font-size: 17px; }
.ec-tcard__more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--ec-accent); }
.ec-tcard--feature { grid-column: 1 / -1; flex-direction: row; min-height: 280px; border-color: var(--ec-line-2); }
.ec-tcard--feature .ec-tcard__img { flex: 0 0 46%; height: auto; }
.ec-tcard--feature .ec-tcard__img::after { background: linear-gradient(270deg, var(--ec-panel), transparent 60%); }
.ec-tcard--feature .ec-tcard__body { margin-top: 0; padding: 28px; justify-content: center; }
.ec-tcard--feature .ec-tcard__title { font-size: 40px; }

/* Вывод плагина без данных фильтра */
.ec-tourney-legacy table { margin: 16px 0; }

@media (max-width: 1080px) {
	.ec-tourney-tabs { top: var(--ec-sticky-top, 64px); }
	.ec-standings__row { grid-template-columns: 44px minmax(0, 1fr) 64px 90px 70px 70px; }
	.ec-standings__form { display: none !important; }
	.ec-standings:not(:has(.ec-standings__form)) .ec-standings__row { grid-template-columns: 44px minmax(0, 1fr) 64px 90px 70px 70px; }
}
@media (max-width: 760px) {
	.ec-tourney-hero__in { padding-top: 40px; padding-bottom: 24px; }
	.ec-tourney-stats { grid-template-columns: 1fr 1fr; }
	.ec-tourney-stats .ec-stat__v { font-size: 26px; }
	.ec-tourney-cta .ec-btn { flex: 1 1 auto; }
	.ec-podium { gap: 6px; }
	.ec-podium__p { padding: 22px 6px 12px; }
	.ec-podium__p--1 { padding-top: 30px; }
	.ec-podium__name { font-size: 15px; }
	.ec-podium__fac { display: none; }
	.ec-podium__total { font-size: 30px; }
	.ec-podium__p--1 .ec-podium__total { font-size: 38px; }
	.ec-standings { border-left: 0; border-right: 0; margin: 0 -16px; }
	.ec-standings__row--head { display: none !important; }
	.ec-standings__row, .ec-standings:not(:has(.ec-standings__form)) .ec-standings__row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "pos who total" "pos stats stats"; gap: 4px 10px; padding: 12px 16px; }
	.ec-standings__pos { grid-area: pos; align-self: start; padding-top: 2px; }
	.ec-standings__who { grid-area: who; }
	.ec-standings__total { grid-area: total; font-size: 26px; }
	.ec-standings__row > .ec-num:not(.ec-standings__total) { display: inline; text-align: left; font-size: 12px; color: var(--ec-muted); }
	.ec-standings__row > .ec-num:not(.ec-standings__total)::before { content: attr(data-l) " "; }
	.ec-standings__row { grid-template-areas: "pos who total" "pos s1 s1"; }
	.ec-standings__row > [data-l="Партий"] { grid-column: 2 / 4; grid-row: 2; }
	.ec-standings__row > .ec-standings__wdl { grid-column: 2 / 4; grid-row: 2; padding-left: 82px; }
	.ec-standings__row > .ec-num:not(.ec-standings__total):not([data-l="Партий"]):not(.ec-standings__wdl) { grid-column: 2 / 4; grid-row: 2; padding-left: 190px; white-space: nowrap; }
	.ec-standings__who .ec-diamond { display: none; }
	.ec-match { grid-template-columns: 1fr auto 1fr; grid-template-areas: "date date date" "a s b" "meta meta meta"; gap: 8px; padding: 12px; }
	.ec-match__date { grid-area: date; }
	.ec-match__p--a { grid-area: a; }
	.ec-match__score { grid-area: s; }
	.ec-match__p--b { grid-area: b; }
	.ec-match__meta { grid-area: meta; justify-content: space-between; }
	.ec-rule-card { padding: 18px 18px 18px 62px; }
	.ec-rule-card__n { left: 16px; top: 18px; }
	.ec-tourney-list { grid-template-columns: 1fr; }
	.ec-tcard--feature { flex-direction: column; }
	.ec-tcard--feature .ec-tcard__img { flex-basis: 160px; }
	.ec-tcard--feature .ec-tcard__img::after { background: linear-gradient(0deg, var(--ec-panel), transparent 70%); }
	.ec-tcard--feature .ec-tcard__body { padding: 0 20px 20px; margin-top: -26px; }
	.ec-tcard--feature .ec-tcard__title { font-size: 30px; }
}
.ec-standings__total, .ec-standings__pos, .ec-match__score b { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.ec-tcard__top b, .ec-tcard__meta b, .ec-tourney-me__line { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ec-tourney-hero .ec-kicker, .ec-tourney-dates, .ec-season-bar__meta { text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }

/* Регламент турнира */
.ec-reg { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.ec-reg__toc { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--ec-line-2); }
.ec-reg__toc .ec-label { margin-bottom: 8px; }
.ec-reg__toc a { padding: 7px 0; color: var(--ec-text-2); font-size: 14px; font-weight: 600; }
.ec-reg__toc a:hover, .ec-reg__toc a.is-active { color: var(--ec-accent); }
.ec-reg__print { margin-top: 14px; justify-content: center; }
.ec-reg__body { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.ec-reg__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--ec-line-2); }
.ec-reg__head .ec-h2 { margin: 0; }
.ec-reg__sec { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 150px; }
.ec-reg__h { margin: 0; font: 600 28px/1.1 var(--ec-display); display: flex; align-items: center; gap: 12px; }
.ec-reg__h::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--ec-accent); flex: 0 0 auto; }
.ec-reg__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ec-reg__facts > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--ec-panel); border: 1px solid var(--ec-line); }
.ec-reg__facts span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ec-muted); }
.ec-reg__facts b { font-size: 16px; }
.ec-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ec-timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; position: relative; padding: 0 0 18px; }
.ec-timeline li::before { content: ""; position: absolute; left: 99px; top: 8px; bottom: -8px; width: 1px; background: var(--ec-line-3); }
.ec-timeline li:last-child::before { display: none; }
.ec-timeline li::after { content: ""; position: absolute; left: 95px; top: 6px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--ec-accent); }
.ec-timeline__t { font: 600 20px/1.1 var(--ec-display); color: var(--ec-sand); text-align: right; padding-right: 8px; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ec-timeline__b { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; }
.ec-timeline__b span { font-size: 14px; color: var(--ec-text-2); }
.ec-reg__quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ec-reg__quest { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--ec-panel); border: 1px solid var(--ec-line); color: var(--ec-text); }
.ec-reg__quest:hover { border-color: var(--ec-accent); color: var(--ec-text); }
.ec-reg__qmap { flex: 0 0 auto; line-height: 0; }
.ec-reg__qmap .ec-qmap text { display: none; }
.ec-reg__qbody { display: flex; flex-direction: column; gap: 3px; }
.ec-reg__qbody b { font: 600 21px/1.1 var(--ec-display); }
.ec-reg__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.ec-reg__list li::marker { color: var(--ec-accent); }
.ec-reg__list + .ec-btn { align-self: flex-start; }
.ec-reg__pts { max-width: 420px; }
.ec-rule-card h4 { margin: 0 0 8px; font: 600 21px/1.1 var(--ec-display); }
.ec-reg__tie { padding: 16px 18px; background: var(--ec-panel); border-left: 3px solid var(--ec-sand); }
.ec-reg__tie ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 600; }
.ec-reg__p { margin: 0; color: var(--ec-text-2); }
@media (max-width: 900px) {
	.ec-reg { grid-template-columns: 1fr; gap: 20px; }
	.ec-reg__toc { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 0 0 6px; border-left: 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
	.ec-reg__toc .ec-label { display: none; }
	.ec-reg__toc a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--ec-line-2); font-size: 13px; white-space: nowrap; }
	.ec-reg__print { margin-top: 0; flex: 0 0 auto; }
	.ec-reg__h { font-size: 24px; }
	.ec-timeline li { grid-template-columns: 64px 1fr; gap: 12px; }
	.ec-timeline li::before { left: 73px; }
	.ec-timeline li::after { left: 69px; }
	.ec-timeline__t { font-size: 17px; }
}
@media print {
	body.is-printing-reg .ec-header, body.is-printing-reg .ec-footer, body.is-printing-reg .ec-tourney-hero, body.is-printing-reg .ec-tourney-tabs, body.is-printing-reg .ec-reg__toc, body.is-printing-reg [data-tabpanel]:not([data-tabpanel="rules"]) { display: none !important; }
	body.is-printing-reg [data-tabpanel="rules"] { display: block !important; }
	body.is-printing-reg .ec-reg { display: block; }
	body.is-printing-reg, body.is-printing-reg * { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
	body.is-printing-reg .ec-reg__sec { break-inside: avoid; }
	body.is-printing-reg details.ec-tourney-more > *:not(summary) { display: block !important; }
}
@media (max-width: 640px) { .ec-reg__facts { grid-template-columns: 1fr 1fr; } .ec-reg__facts > div { padding: 12px; } }
@media print {
	body.is-printing-reg .ec-timeline li::after, body.is-printing-reg .ec-reg__h::before { background: #000 !important; }
	body.is-printing-reg .ec-reg__facts > div, body.is-printing-reg }
.ec-reg__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

/* Турнир: свёрнутые участники, «моё место», плавающая кнопка */
.ec-standings__row.is-folded { display: none; }
.ec-standings.is-unfolded .ec-standings__row.is-folded { display: grid; }
.ec-standings__more { min-height: 48px; padding: 12px 16px; background: var(--ec-panel); border: 0; border-top: 1px solid var(--ec-line); color: var(--ec-text-2); font: 600 14px var(--ec-sans); cursor: pointer; text-align: center; }
.ec-standings__more:hover { color: var(--ec-accent); }
.ec-me-strip { display: none; }
.ec-fab { display: none; }
#ec-me-row { scroll-margin-top: 140px; }
@media (max-width: 760px) {
	.ec-hide-mobile { display: none !important; }
	.ec-me-strip { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--ec-warm-bg); border: 1px solid var(--ec-accent-dim); color: var(--ec-text); }
	.ec-me-strip:hover { color: var(--ec-text); }
	.ec-me-strip__pos { display: flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--ec-text-2); }
	.ec-me-strip__pos b { font: 600 34px/1 var(--ec-display); color: var(--ec-accent); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
	.ec-me-strip__txt { display: flex; flex-direction: column; font-size: 13px; color: var(--ec-text-2); }
	.ec-me-strip__txt b { color: var(--ec-text); font-size: 15px; }
	.ec-me-strip__go { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ec-accent); white-space: nowrap; }
	.ec-standings__more { margin: 0; }
	.ec-fab { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; background: var(--ec-accent); color: var(--ec-on-accent); font-weight: 700; font-size: 16px; clip-path: var(--ec-cut-s); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
	.ec-fab:hover { color: var(--ec-on-accent); background: var(--ec-accent-hover); }
	.ec-tourney-page .ec-footer { padding-bottom: 84px; }
	.ec-tourney-page .ec-tourney-cta .ec-cta-fab { display: none; }
	/* Шапка турнира: текст читается поверх арта */
	.ec-tourney-hero .ec-shade--page { background: linear-gradient(0deg, var(--ec-bg) 0%, rgba(14, 17, 23, .9) 55%, rgba(14, 17, 23, .7) 100%); }
	.ec-tourney-hero .ec-kicker { color: var(--ec-accent-soft); }
	.ec-tourney-title { font-size: 40px; }
	/* В регламенте заголовок дублирует шапку страницы */
	.ec-reg__head { display: none; }
}
@media print { .ec-fab, .ec-me-strip { display: none !important; } .ec-reg__head { display: flex !important; } }
@media (max-width: 600px) { .admin-bar .ec-header { top: 0; } .admin-bar .ec-tourney-tabs { top: var(--ec-sticky-top, 64px); } }

/* Мероприятие-турнир: вкладка «Запись» и форма плагина */
.ec-signup { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ec-signup__aside { display: flex; flex-direction: column; gap: 16px; }
.ec-signup__aside .ec-panel { display: flex; flex-direction: column; gap: 12px; }
.ec-signup__form { padding: 28px; background: var(--ec-panel); border: 1px solid var(--ec-line-2); border-top: 3px solid var(--ec-accent); }
.ec-signup__form form { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 0; }
.ec-signup__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ec-text-2); }
.ec-signup__form label:has(> input[type=radio]), .ec-signup__form label:has(> input[type=checkbox]) { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.ec-signup__form input:not([type=radio]):not([type=checkbox]):not([type=submit]), .ec-signup__form select, .ec-signup__form textarea { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--ec-bg); color: var(--ec-text); border: 1px solid var(--ec-line-2); font: 15px var(--ec-sans); }
.ec-signup__form input:focus, .ec-signup__form select:focus, .ec-signup__form textarea:focus { outline: 2px solid var(--ec-frost); outline-offset: -1px; }
.ec-signup__form button, .ec-signup__form input[type=submit] { align-self: flex-start; min-height: 48px; padding: 12px 28px; background: var(--ec-accent); color: var(--ec-on-accent); border: 0; font: 700 15px var(--ec-sans); cursor: pointer; clip-path: var(--ec-cut-s); }
.ec-signup__form button:hover, .ec-signup__form input[type=submit]:hover { background: var(--ec-accent-hover); }
.ec-signup__form h2, .ec-signup__form h3, .ec-signup__form h4 { font: 600 24px/1.1 var(--ec-display); margin: 18px 0 4px; }
.ec-signup__form > *:first-child { margin-top: 0; }
.ec-timeline li { grid-template-columns: 120px 1fr; }
.ec-timeline li::before { left: 129px; }
.ec-timeline li::after { left: 125px; }
@media (max-width: 900px) {
	.ec-signup { grid-template-columns: 1fr; }
	.ec-signup__form { padding: 20px 16px; margin: 0 -16px; border-left: 0; border-right: 0; }
	.ec-signup__form button, .ec-signup__form input[type=submit] { align-self: stretch; }
	.ec-timeline li { grid-template-columns: 96px 1fr; gap: 10px; }
	.ec-timeline li::before { left: 103px; }
	.ec-timeline li::after { left: 99px; }
	.ec-timeline__t { font-size: 15px; }
}
