/* Сайт сервера.
 *
 * Тёмный, почти чёрный фон, один светящийся акцент (site_accent из настроек
 * приходит переменной --s-accent), крупные заголовки с засечками капителью и
 * мелкие подписи-метки. Шрифты — системные: внешние правила страницы не
 * пускают, а «Palatino»/«Georgia» есть почти везде.
 */

:root {
    --s-accent: #e04b4b;
    --s-bg:     #0b0c0e;
    --s-bg-2:   #111317;
    --s-card:   #15171c;
    --s-line:   rgba(255, 255, 255, .08);
    --s-line-2: rgba(255, 255, 255, .14);
    --s-text:   #ecebe8;
    --s-dim:    #9b9a96;
    --s-serif:  "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
    --s-sans:   "Segoe UI", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --s-glow:   color-mix(in srgb, var(--s-accent) 35%, transparent);
    --s-soft:   color-mix(in srgb, var(--s-accent) 12%, transparent);

    --s-head:   rgba(11, 12, 14, .86);
    --s-foot:   #08090a;
    --s-tree:   #07080a;
    --s-veil:   rgba(11, 12, 14, .92);
    --s-text2:  #d4d2cd;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--s-bg);
    color: var(--s-text);
    font: 15px/1.65 var(--s-sans);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--s-accent); color: #fff; }

.s-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.s-narrow { max-width: 820px; }
.s-dim { color: var(--s-dim); }
.s-skip { position: absolute; left: -9999px; }
.s-skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--s-accent); color: #fff; padding: 6px 12px; }

/* ---- шапка ---- */

.s-top {
    position: fixed; inset: 0 0 auto 0; z-index: 30;
    transition: background .25s, border-color .25s, backdrop-filter .25s;
    border-bottom: 1px solid transparent;
}
.s-top.solid {
    background: var(--s-head);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--s-line);
}
.s-top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.s-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--s-serif); font-size: 22px; font-weight: 700;
    color: var(--s-accent); text-shadow: 0 0 18px var(--s-glow);
}
.s-nav { display: flex; gap: 22px; }
.s-nav a {
    position: relative; font-size: 13px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--s-dim); padding: 6px 0;
    transition: color .15s;
}
.s-nav a:hover, .s-nav a.on { color: var(--s-text); }
.s-nav a.on::after {
    content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px;
    background: var(--s-accent); transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 8px var(--s-glow);
}
.s-top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.s-online { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.s-online i {
    width: 7px; height: 7px; background: var(--s-accent); transform: rotate(45deg);
    box-shadow: 0 0 10px var(--s-accent);
}
.s-link {
    font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--s-text); opacity: .85;
}
.s-link:hover { opacity: 1; color: var(--s-accent); }
.s-gear { font-size: 16px; letter-spacing: 0; }

/* ---- кнопки ---- */

.s-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border: 1px solid var(--s-text); border-radius: 4px;
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.s-btn:hover { border-color: var(--s-accent); color: var(--s-accent); box-shadow: 0 0 22px var(--s-soft); }
.s-btn.big {
    padding: 15px 34px; font-size: 14px;
    background: var(--s-accent); border-color: var(--s-accent); color: #fff;
    box-shadow: 0 0 30px var(--s-glow);
}
.s-btn.big:hover { background: transparent; color: var(--s-accent); }
.s-btn.big.ghost { background: transparent; border-color: var(--s-line-2); color: var(--s-text); box-shadow: none; }
.s-btn.big.ghost:hover { border-color: var(--s-accent); color: var(--s-accent); }
.s-more { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s-dim); }
.s-more:hover { color: var(--s-accent); }

/* ---- метки и заголовки ---- */

.s-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--s-dim);
}
.s-label::before {
    content: ""; width: 6px; height: 6px; background: var(--s-accent);
    transform: rotate(45deg); box-shadow: 0 0 8px var(--s-glow);
}
.s-h1, .s-h2, .s-title, .s-cls-card h3 {
    font-family: "Segoe UI Variable", "Segoe UI", sans-serif; font-weight: 600;
    text-transform: none; letter-spacing: -.02em; line-height: 1.2;
    margin: 10px 0 18px;
}
.s-h1 { font-size: clamp(28px, 3.6vw, 42px); }
.s-h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 0; }

/* ---- обложка ---- */

.s-hero {
    position: relative; overflow: hidden;
    min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
    padding: 120px 0 40px;
    background:
        radial-gradient(900px 500px at 75% 30%, var(--s-soft), transparent 70%),
        radial-gradient(700px 420px at 15% 85%, rgba(255, 255, 255, .03), transparent 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 120px),
        var(--s-bg);
    border-bottom: 1px solid var(--s-line);
}
.s-hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.s-hero.has-img::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--s-veil) 0%, color-mix(in srgb, var(--s-veil) 60%, transparent) 55%, transparent 100%),
                linear-gradient(0deg, var(--s-bg) 0%, transparent 35%);
}
.s-hero-glow {
    position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; border-radius: 50%;
    background: radial-gradient(circle, var(--s-glow), transparent 60%); opacity: .35;
    filter: blur(40px); animation: s-breathe 9s ease-in-out infinite;
}
.s-hero-in, .s-count { position: relative; z-index: 2; }
.s-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-accent); }
.s-dot { color: var(--s-dim); }
.s-title { font-size: clamp(48px, 9vw, 120px); margin: 18px 0 8px; text-shadow: 0 0 40px rgba(0, 0, 0, .6); }
.s-tagline { font-family: var(--s-serif); font-size: clamp(20px, 2.4vw, 30px); text-transform: uppercase;
    letter-spacing: .08em; margin: 0 0 18px; color: var(--s-text); }
.s-lead { max-width: 560px; color: var(--s-dim); font-size: 16px; margin: 0 0 30px; }
.s-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.s-count {
    margin-top: 60px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 30px;
}
.s-cd { display: inline-flex; align-items: baseline; gap: 6px; }
.s-cd b { font-family: var(--s-serif); font-weight: 400; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.s-cd small { color: var(--s-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

/* ---- полоса чисел ---- */

.s-strip { border-bottom: 1px solid var(--s-line); background: var(--s-bg-2); }
.s-strip-in { display: flex; flex-wrap: wrap; }
.s-strip-in > div {
    flex: 1 1 200px; padding: 24px 0; display: flex; flex-direction: column; align-items: center;
    border-right: 1px solid var(--s-line);
}
.s-strip-in > div:last-child { border-right: 0; }
.s-strip b { font-family: var(--s-serif); font-size: 34px; font-weight: 400; line-height: 1.1; }
.s-strip span { font-size: 12px; color: var(--s-dim); text-transform: uppercase; letter-spacing: .14em; }
.s-donor b { color: var(--s-accent); font-size: 24px; }
.s-donor .cls-ico { width: 28px; height: 28px; }

/* ---- разделы ---- */

.s-sec { padding: 90px 0; border-bottom: 1px solid var(--s-line); }
.s-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 24px; margin-bottom: 36px; }
.s-sec-head .s-label { flex-basis: 100%; }
.s-sec-head .s-more { margin-left: auto; }
.s-page { padding: 130px 0 90px; min-height: 70vh; }

/* новости */
.s-news { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.s-news-card {
    display: flex; flex-direction: column; gap: 10px; padding: 22px;
    background: var(--s-card); border: 1px solid var(--s-line); border-radius: 6px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.s-news-card:hover { border-color: var(--s-accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.s-news-card b { font-family: var(--s-serif); font-size: 21px; font-weight: 400; line-height: 1.25; }
.s-news-text { color: var(--s-dim); font-size: 14px; }
.s-news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--s-dim);
    text-transform: uppercase; letter-spacing: .1em; }
.s-news-meta i { font-style: normal; color: var(--s-accent); font-weight: 700; }
.s-news-meta i.pin { color: var(--s-text); border: 1px solid var(--s-line-2); padding: 0 6px; border-radius: 3px; }
.s-news-list { border-top: 1px solid var(--s-line); }
.s-news-row { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--s-line); }
.s-news-row b { font-family: var(--s-serif); font-size: 24px; font-weight: 400; }
.s-news-row:hover b { color: var(--s-accent); }
.s-article p { font-size: 17px; line-height: 1.75; color: var(--s-text2); }
.s-article a { color: var(--s-accent); text-decoration: underline; }
.s-article-img { border-radius: 6px; margin: 10px 0 24px; border: 1px solid var(--s-line); }

/* классы */
.s-cls-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.s-cls {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 14px 8px 8px; border-radius: 999px;
    background: transparent; border: 1px solid var(--s-line-2); color: var(--s-text);
    font: 700 13px var(--s-sans); letter-spacing: .06em; text-transform: uppercase;
    transition: border-color .15s, background .15s;
}
.s-cls:hover { border-color: var(--s-accent); }
.s-cls.on { background: var(--s-soft); border-color: var(--s-accent); color: var(--s-accent); }
.s-cls .cls-ico { width: 26px; height: 26px; border-radius: 50%; }
.s-cls-card {
    display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
    padding: 36px; background: linear-gradient(120deg, var(--s-soft), transparent 60%), var(--s-card);
    border: 1px solid var(--s-line); border-radius: 8px;
    animation: s-in .35s ease both;
}
.s-cls-card[hidden] { display: none; }
.s-cls-card h3 { font-size: 40px; margin: 0 0 10px; }
.s-cls-card p { max-width: 640px; color: var(--s-text2); margin: 0 0 8px; }
.s-cls-icons { display: flex; gap: 10px; }
.s-cls-icons .cls-ico { width: 96px; height: 96px; filter: drop-shadow(0 0 18px var(--s-glow)); }

/* особенности */
.s-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    background: var(--s-line); border: 1px solid var(--s-line); border-radius: 6px; overflow: hidden; }
.s-feats li { background: var(--s-bg); padding: 26px; transition: background .2s; }
.s-feats li:hover { background: var(--s-card); }
.s-num { display: block; font-family: var(--s-serif); font-size: 30px; color: var(--s-accent); line-height: 1; margin-bottom: 12px; }
.s-feats b { display: block; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.s-feats p { margin: 0; color: var(--s-dim); font-size: 14px; }

/* топы */
.s-tops { display: grid; gap: 40px; grid-template-columns: 3fr 2fr; }
.s-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.s-pod {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 26px 12px 18px; text-align: center;
    background: var(--s-card); border: 1px solid var(--s-line); border-radius: 6px;
}
.s-pod.p1 { border-color: var(--s-accent); box-shadow: 0 0 30px var(--s-soft); }
.s-pod .cls-ico { width: 44px; height: 44px; }
.s-pod b { font-size: 16px; }
.s-pod small { color: var(--s-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.s-place { position: absolute; left: 12px; top: 8px; font-family: var(--s-serif); font-size: 26px; color: var(--s-dim); }
.s-pod.p1 .s-place { color: var(--s-accent); }
.s-lvl { font-family: var(--s-serif); font-size: 30px; line-height: 1; }
.s-lvl small { margin-left: 4px; }
.s-list { margin: 0; padding: 0; list-style: none; counter-reset: s var(--start, 0); }
.s-list li {
    display: grid; grid-template-columns: 26px auto 1fr auto; gap: 10px; align-items: center;
    padding: 10px 6px; border-bottom: 1px solid var(--s-line);
}
.s-list li small { color: var(--s-dim); font-size: 12px; }
.s-list li > span:last-child { font-family: var(--s-serif); font-size: 18px; }
.s-list li .cls-ico { width: 24px; height: 24px; }
.s-clan-ico { width: var(--clan-ico, 16px); height: var(--clan-ico, 16px); }
.s-clans h3 { font-family: var(--s-serif); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.s-clans .s-list li { grid-template-columns: auto 1fr auto auto; }

/* рейтинг */
.s-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 24px; border-bottom: 1px solid var(--s-line); }
.s-tabs a {
    padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--s-dim); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.s-tabs a.on, .s-tabs a:hover { color: var(--s-text); border-bottom-color: var(--s-accent); }
.s-table { width: 100%; border-collapse: collapse; }
.s-table th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--s-dim);
    padding: 10px 12px; border-bottom: 1px solid var(--s-line-2); }
.s-table td { padding: 12px; border-bottom: 1px solid var(--s-line); }
.s-table tr:hover td { background: rgba(255, 255, 255, .02); }
.s-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.s-place-n { width: 42px; font-family: var(--s-serif); font-size: 18px; color: var(--s-dim); }
.s-table tr.p1 .s-place-n { color: var(--s-accent); }
.s-who { display: flex; align-items: center; gap: 10px; }
.s-who .cls-ico { width: 26px; height: 26px; }
.s-on { width: 7px; height: 7px; background: var(--s-accent); transform: rotate(45deg); box-shadow: 0 0 8px var(--s-accent); }

/* финал и подвал */
.s-final { padding: 100px 0; text-align: center;
    background: radial-gradient(700px 300px at 50% 100%, var(--s-soft), transparent 70%); }
.s-final .s-cta { justify-content: center; margin-top: 26px; }
.s-foot { border-top: 1px solid var(--s-line); background: var(--s-foot); padding: 40px 0 20px; color: var(--s-dim); }
.s-foot-in { display: flex; flex-wrap: wrap; gap: 30px 60px; }
.s-foot-in b { font-family: var(--s-serif); font-size: 20px; color: var(--s-text); }
.s-foot-in nav { display: flex; flex-direction: column; gap: 6px; }
.s-foot-in nav a:hover { color: var(--s-accent); }
.s-copy { margin-top: 30px; font-size: 12px; }

@keyframes s-breathe { 0%, 100% { opacity: .25; } 50% { opacity: .45; } }
@keyframes s-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .s-nav { display: none; }
    .s-tops { grid-template-columns: 1fr; }
    .s-cls-card { grid-template-columns: 1fr; }
    .s-cls-icons .cls-ico { width: 64px; height: 64px; }
}
@media (max-width: 560px) {
    .s-wrap { padding: 0 16px; }
    .s-top-right .s-link { display: none; }
    .s-podium { grid-template-columns: 1fr; }
    .s-cd b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Значки классов: в клиенте они 14×14. Тянуть их до сотни пикселей нельзя —
   расплываются. Показываем вдвое и втрое, без сглаживания: так они чёткие.
   ===================================================================== */
.cls-ico { image-rendering: pixelated; image-rendering: crisp-edges; }
.s-cls .cls-ico, .s-who .cls-ico, .s-list li .cls-ico, .s-donor .cls-ico { width: 28px; height: 28px; border-radius: 50%; }
.s-pod .cls-ico { width: 42px; height: 42px; border-radius: 50%; }
.s-cls-icons { gap: 16px; }
.s-cls-icons .cls-ico { width: 42px; height: 42px; filter: none; border-radius: 50%; }
.s-ring {
    position: relative; width: 92px; height: 92px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, var(--s-soft), transparent 70%);
    border: 1px solid var(--s-line-2);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .02), 0 0 40px var(--s-soft) inset;
}
.s-ring::before {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--s-accent) 40%, transparent);
    animation: s-spin 28s linear infinite;
}
.s-ring.f::before { animation-direction: reverse; }

/* ---- появление при прокрутке (только со скриптом: без него всё видно) ---- */
.js .reveal, .js .reveal-kids > * {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in, .js .reveal-kids > .in { opacity: 1; transform: none; }

/* ---- обложка: плавающие искры ---- */
.s-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, var(--s-accent), transparent 60%),
        radial-gradient(1.5px 1.5px at 70% 60%, #fff, transparent 60%),
        radial-gradient(2px 2px at 85% 25%, var(--s-accent), transparent 60%),
        radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent 60%),
        radial-gradient(2px 2px at 55% 15%, var(--s-accent), transparent 60%),
        radial-gradient(1.5px 1.5px at 10% 70%, #fff, transparent 60%);
    opacity: .5; animation: s-float 14s ease-in-out infinite alternate;
}
.s-title { background: linear-gradient(180deg, var(--s-text) 30%, color-mix(in srgb, var(--s-accent) 35%, var(--s-text))); 
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-title, .s-tagline, .s-chips, .s-lead, .s-hero .s-cta { animation: s-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.s-tagline { animation-delay: .12s; }
.s-lead { animation-delay: .22s; }
.s-hero .s-cta { animation-delay: .32s; }
.s-btn.big:not(.ghost) { position: relative; overflow: hidden; }
.s-btn.big:not(.ghost)::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg); animation: s-shine 4.5s ease-in-out infinite;
}
.s-btn.off { opacity: .45; cursor: not-allowed; }

/* ---- шапка: имя, язык, меню на телефоне ---- */
.s-me { text-transform: none; letter-spacing: .02em; color: var(--s-accent); opacity: 1; }
.s-lang { position: relative; }
.s-lang summary {
    list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--s-dim);
}
.s-lang summary::-webkit-details-marker { display: none; }
.s-lang summary::after { content: " ▾"; font-size: 10px; }
.s-lang[open] summary, .s-lang summary:hover { color: var(--s-text); }
.s-lang > div {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 80px;
    background: var(--s-card); border: 1px solid var(--s-line-2); border-radius: 6px; padding: 4px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.s-lang a { display: block; padding: 6px 12px; font-size: 13px; font-weight: 700; border-radius: 4px; }
.s-lang a:hover, .s-lang a.on { background: var(--s-soft); color: var(--s-accent); }
.s-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.s-burger i { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--s-text); transition: transform .2s; }

/* ---- «Играть» ---- */
.s-play-hero {
    position: relative; padding: 46px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--s-line);
    background: radial-gradient(700px 360px at 85% 20%, var(--s-soft), transparent 70%), var(--s-card);
}
.s-dl { margin-top: 26px; padding: 22px; border-radius: 8px; border: 1px solid var(--s-line-2); background: rgba(0, 0, 0, .25); }
.s-dl-note { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding-left: 14px;
    border-left: 3px solid var(--s-accent); }
.s-dl-note span { color: var(--s-dim); font-size: 14px; }
.s-dl-size { margin: 12px 0 0; font-size: 13px; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.s-steps li {
    position: relative; padding: 26px; border-radius: 8px; border: 1px solid var(--s-line); background: var(--s-card);
    transition: border-color .2s, transform .2s;
}
.s-steps li:hover { border-color: var(--s-accent); transform: translateY(-3px); }
.s-step-n { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--s-accent); margin-bottom: 10px; }
.s-steps b { display: block; font-family: var(--s-serif); font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.s-steps p { margin: 0; color: var(--s-dim); font-size: 14px; }
.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.s-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.s-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; }
.s-checks li::before { content: "◆"; color: var(--s-accent); grid-row: span 2; font-size: 12px; line-height: 1.9; }
.s-checks span { color: var(--s-dim); font-size: 14px; }
.s-h3 { font-family: var(--s-serif); font-weight: 400; font-size: 28px; text-transform: uppercase;
    letter-spacing: .06em; margin: 8px 0 16px; }
.s-tree {
    margin: 0 0 14px; padding: 18px 20px; border-radius: 8px; overflow-x: auto;
    background: var(--s-tree); border: 1px solid var(--s-line); color: var(--s-text); font: 14px/1.7 Consolas, "Courier New", monospace;
}
.s-warn { padding: 12px 16px; border-radius: 6px; font-size: 14px;
    background: color-mix(in srgb, #e0a458 12%, transparent); border: 1px solid color-mix(in srgb, #e0a458 35%, transparent); }
.s-req { border: 1px solid var(--s-line); border-radius: 8px; overflow: hidden; background: var(--s-card); }

@keyframes s-spin { to { transform: rotate(360deg); } }
@keyframes s-float { from { transform: translateY(0); } to { transform: translateY(-30px); } }
@keyframes s-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 900px) {
    .s-burger { display: block; margin-left: 4px; }
    .s-top.open .s-nav {
        display: flex; flex-direction: column; gap: 4px;
        position: absolute; top: 68px; left: 0; right: 0; padding: 12px 24px 18px;
        background: var(--s-head); border-bottom: 1px solid var(--s-line);
    }
    .s-top.open { background: var(--s-head); }
    .s-two { grid-template-columns: 1fr; }
    .s-play-hero { padding: 28px 20px; }
}

.s-page.s-play { min-height: 0; padding-bottom: 50px; }

.s-copy { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }


/* ---- светлая тема сайта ----
   Те же правила, другие значения: бумажный фон, тёмный текст, тот же акцент. */
html.site[data-theme="light"] {
    --s-bg:     #f5f3ef;
    --s-bg-2:   #ece9e3;
    --s-card:   #ffffff;
    --s-line:   rgba(30, 25, 20, .10);
    --s-line-2: rgba(30, 25, 20, .18);
    --s-text:   #1d1a17;
    --s-text2:  #3a3631;
    --s-dim:    #6d6860;
    --s-head:   rgba(250, 248, 245, .9);
    --s-foot:   #ece9e3;
    --s-tree:   #f0ede8;
    --s-veil:   rgba(245, 243, 239, .9);
    --s-glow:   color-mix(in srgb, var(--s-accent) 25%, transparent);
    --s-soft:   color-mix(in srgb, var(--s-accent) 9%, transparent);
    color-scheme: light;
}
@media (prefers-color-scheme: light) {
    html.site[data-theme="auto"] {
        --s-bg:     #f5f3ef;
        --s-bg-2:   #ece9e3;
        --s-card:   #ffffff;
        --s-line:   rgba(30, 25, 20, .10);
        --s-line-2: rgba(30, 25, 20, .18);
        --s-text:   #1d1a17;
        --s-text2:  #3a3631;
        --s-dim:    #6d6860;
        --s-head:   rgba(250, 248, 245, .9);
        --s-foot:   #ece9e3;
        --s-tree:   #f0ede8;
        --s-veil:   rgba(245, 243, 239, .9);
        --s-glow:   color-mix(in srgb, var(--s-accent) 25%, transparent);
        --s-soft:   color-mix(in srgb, var(--s-accent) 9%, transparent);
        color-scheme: light;
    }
}
.s-theme { font-size: 16px; letter-spacing: 0; }

/* ---- обложка: колонка с «пузырями» ---- */
.s-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.s-side { display: flex; flex-direction: column; gap: 12px; animation: s-in .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
.s-bubble {
    display: flex; gap: 14px; align-items: center;
    padding: 16px 18px; border-radius: 12px;
    background: color-mix(in srgb, var(--s-card) 78%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--s-line-2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    transition: transform .2s, border-color .2s;
}
.s-bubble:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--s-accent) 50%, var(--s-line-2)); }
.s-online-b { flex-direction: column; align-items: flex-start; gap: 4px; }
.s-online-b .s-dim { font-size: 13px; }
.s-online-n { font-size: 13px; color: var(--s-dim); }
.s-online-n b { font-family: var(--s-serif); font-size: 26px; font-weight: 400; color: var(--s-text); margin-right: 4px; }
.s-ev-ico {
    flex: none; width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    color: var(--s-accent); border: 1px solid color-mix(in srgb, var(--s-accent) 45%, transparent);
    background: var(--s-soft);
}
.s-ev b { display: block; font-family: var(--s-serif); font-size: 19px; font-weight: 400; }
.s-ev span { font-size: 13px; color: var(--s-dim); }
.s-ev.state-now .s-ev-ico { animation: s-pulse 1.8s ease-in-out infinite; }
.s-ev.state-now span { color: var(--s-accent); }
.s-bubble-link { font-size: 13px; font-weight: 700; color: var(--s-accent); padding: 0 6px; }
.s-bubble-link:hover { text-decoration: underline; }
.s-votes, .s-donors { flex-direction: column; align-items: stretch; gap: 8px; }
.s-vote { display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px; border: 1px solid var(--s-line); transition: border-color .15s, background .15s; }
.s-vote:hover { border-color: var(--s-accent); background: var(--s-soft); }
.s-vote span { font-size: 12px; color: var(--s-accent); font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; }
.s-vote small { color: var(--s-dim); font-weight: 400; }
.s-donors ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.s-donors li { display: flex; align-items: center; gap: 8px; }
.s-donors li:first-child b { color: var(--s-accent); }
.s-donors .cls-ico { width: 28px; height: 28px; border-radius: 50%; }
@keyframes s-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--s-glow); } 50% { box-shadow: 0 0 0 10px transparent; } }

/* ---- таймеры ---- */
.s-timers { display: flex; flex-direction: column; gap: 10px; }
.s-timer { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
    padding: 16px 18px; border-radius: 10px; border: 1px solid var(--s-line); background: var(--s-card); }
.s-timer.state-now { border-color: var(--s-accent); box-shadow: 0 0 30px var(--s-soft); }
.s-timer.state-now .s-ev-ico { animation: s-pulse 1.8s ease-in-out infinite; }
.s-timer-main { display: flex; flex-direction: column; gap: 4px; }
.s-timer-main b { font-family: var(--s-serif); font-size: 21px; font-weight: 400; }
.s-days { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.s-days i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
    color: var(--s-dim); border: 1px solid var(--s-line); }
.s-days i.on { color: var(--s-accent); border-color: color-mix(in srgb, var(--s-accent) 50%, transparent); }
.s-days i.today { text-decoration: underline; }
.s-days em { font-style: normal; margin-left: 6px; font-weight: 700; }
.s-timer-when { text-align: right; display: flex; flex-direction: column; }
.s-timer-when b { font-family: var(--s-serif); font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.s-timer-when small { color: var(--s-dim); }
.s-now { color: var(--s-accent); }

/* ---- карта владений в рейтинге ---- */
.s-mapbox { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.s-map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--s-line-2); }
.s-map img { display: block; width: 100%; }
.s-spot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.s-spot img { width: 18px; height: 18px; border: 1px solid rgba(0, 0, 0, .6); box-shadow: 0 0 8px rgba(0, 0, 0, .6); image-rendering: pixelated; }
.s-spot i { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.s-spot:not(.own) i { opacity: .55; }
.s-spot.own i { color: #ffd84f; }
.s-owners { display: flex; flex-direction: column; gap: 8px; }
.s-owner { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center;
    padding: 10px 12px; border: 1px solid var(--s-line); border-radius: 8px; background: var(--s-card); }
.s-owner small { grid-column: 1 / -1; color: var(--s-dim); }
.s-owner span { color: var(--s-accent); font-size: 13px; font-weight: 700; }
.s-clan-ico { image-rendering: pixelated; }

/* ---- картинки в текстах и особенностях ---- */
.s-feat-img { display: block; width: calc(100% + 52px); margin: -26px -26px 18px; height: 160px; object-fit: cover; }
.s-rich p { line-height: 1.75; color: var(--s-text2); }
.s-rich a { color: var(--s-accent); text-decoration: underline; }
.s-fig { margin: 22px 0; }
.s-fig img { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--s-line); }
.s-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--s-dim); text-align: center; }
.s-ul { padding-left: 0; list-style: none; }
.s-ul li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--s-text2); }
.s-ul li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 10px; color: var(--s-accent); }

/* ---- вопросы ---- */
.s-faq { display: flex; flex-direction: column; gap: 10px; }
.s-q { border: 1px solid var(--s-line); border-radius: 10px; background: var(--s-card); }
.s-q summary { cursor: pointer; padding: 18px 48px 18px 22px; font-weight: 700; list-style: none; position: relative; }
.s-q summary::-webkit-details-marker { display: none; }
.s-q summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--s-accent); transition: transform .2s; }
.s-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.s-q[open] { border-color: color-mix(in srgb, var(--s-accent) 45%, var(--s-line)); }
.s-q .s-rich { padding: 0 22px 18px; }

/* ---- карточка класса ---- */
.s-cls-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 12px; }
.s-cls-meta div { display: flex; flex-direction: column; }
.s-cls-meta dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); }
.s-cls-meta dd { margin: 2px 0 0; font-weight: 700; }
.s-share { display: block; height: 4px; max-width: 360px; border-radius: 4px; background: var(--s-line); overflow: hidden; }
.s-share i { display: block; height: 100%; background: var(--s-accent); box-shadow: 0 0 10px var(--s-glow); }

@media (max-width: 1000px) {
    .s-hero-in, .s-mapbox { grid-template-columns: 1fr; }
}

/* ---- «Ещё» в шапке ---- */
.s-more-nav { position: relative; }
.s-more-nav summary {
    list-style: none; cursor: pointer; padding: 6px 0;
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s-dim);
}
.s-more-nav summary::-webkit-details-marker { display: none; }
.s-more-nav summary::after { content: " ▾"; font-size: 10px; }
.s-more-nav[open] summary, .s-more-nav.on summary, .s-more-nav summary:hover { color: var(--s-text); }
.s-more-nav > div {
    position: absolute; left: -10px; top: calc(100% + 12px); min-width: 180px; z-index: 40;
    display: flex; flex-direction: column; padding: 6px;
    background: var(--s-card); border: 1px solid var(--s-line-2); border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.s-more-nav > div a { padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s-dim); }
.s-more-nav > div a:hover, .s-more-nav > div a.on { background: var(--s-soft); color: var(--s-accent); }
.s-more-nav > div a.on::after { display: none; }
@media (max-width: 900px) {
    .s-top.open .s-more-nav > div { position: static; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px; }
}

.s-hero-main { min-width: 0; }
.s-hero-main .s-title { font-size: clamp(40px, 6vw, 92px); overflow-wrap: anywhere; }

/* ---- быстрый просмотр: ники и кланы с карточкой при наведении ---- */
.peek { position: relative; display: inline-block; }
.peek-name { cursor: help; border-bottom: 1px dotted var(--s-line-2); }
.peek-card {
    position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; display: none;
    min-width: 220px; padding: 10px 12px; border: 1px solid var(--s-line-2); border-radius: 10px;
    background: var(--s-card); color: var(--s-text); box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    font: 400 13px/1.7 var(--s-sans); white-space: nowrap; text-align: left;
}
.peek:hover .peek-card, .peek:focus-within .peek-card { display: block; }
.peek-head { display: block; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--s-line);
    color: var(--s-accent); font-weight: 700; }
.peek-row { display: flex; justify-content: space-between; gap: 18px; }
.peek-row span { color: var(--s-dim); }
.peek-row b { font-weight: 600; }
.s-podium .peek-card { left: 50%; transform: translateX(-50%); }
.s-table tbody tr:nth-last-child(-n+3) .peek-card { top: auto; bottom: calc(100% + 6px); }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%;
    background: #3ecf6e; vertical-align: middle; }

/* ---- быстрый просмотр (peek.js) и карточка вещи на сайте ---- */
.peek-float { position: fixed; z-index: 200; max-width: min(340px, calc(100vw - 16px)); }
.peek-float[hidden] { display: none; }
.peek-float .peek-card { position: static; display: block; }
.peek-float .cell-tip {
    display: block; min-width: 230px; padding: 10px 12px; border: 1px solid var(--s-line-2); border-radius: 10px;
    background: var(--s-card); color: var(--s-text); box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    font: 400 12.5px/1.5 var(--s-sans); text-align: left;
}
[data-peek] { cursor: help; }
.cell-tip .dim, .tip-sockets { color: var(--s-dim); }
.tip-sockets { font-size: 12px; margin-left: 4px; }
.cell-tip-text { margin-top: 6px; opacity: .85; }
.tip-props { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--s-line); }
.tip-line { font-weight: 600; }
.tip-addon  { color: #8f9dff; }
.tip-stone  { color: #8fd0ff; }
.tip-refine { color: #ffd84f; }
/* Привязка — цветами клиента (как в ADE): привязана — бирюзовым, привяжется —
   тёмным золотом, особые свойства — голубым. */
.tip-bound    { color: #00ffff; }
.tip-bindsoon { color: #d4a017; }
.tip-proc     { color: #00ffff; }
.tip-good  { color: #5fd35f; }
.tip-maker { color: #5fd35f; }
.tip-stars { color: #ffd84f; letter-spacing: 1px; }
.tip-swatch { vertical-align: -1px; border: 1px solid rgba(255,255,255,.35); }
.clan-ico { width: var(--clan-ico, 16px); height: var(--clan-ico, 16px); vertical-align: middle; image-rendering: pixelated; }

/* Куда открыть подсказку, решает peek.js по месту на экране. */
/* Все подсказки показывает peek.js в одном плавающем слое поверх страницы:
   на своём месте их резали блоки с прокруткой и перекрывали соседние
   карточки. Без скрипта (нет класса js-tips) работают как раньше, на месте. */
.js-tips .cell-tip, .js-tips .peek-card { display: none !important; }
.peek-float { position: fixed; z-index: 10000; overflow: hidden; border-radius: 10px;
    max-width: min(340px, calc(100vw - 16px)); }
.peek-float[hidden] { display: none !important; }
.js-tips .peek-float .cell-tip, .js-tips .peek-float .peek-card {
    display: block !important; position: static !important; opacity: 1 !important;
    visibility: visible !important; transform: none !important; translate: none !important;
    inset: auto !important; margin: 0 !important; width: auto !important;
    min-width: 230px; max-width: none; pointer-events: auto;
}
.js-tips .peek-float .peek-card { white-space: nowrap; }
.js-tips .peek-float .cell-tip { white-space: normal; }

/* Shared local section artwork. */
.section-icon{flex-shrink:0;vertical-align:-.18em;pointer-events:none}
 .s-nav>a,.s-more-nav>div>a{display:inline-flex;align-items:center;gap:.45em}

/* Cinematic world cover and editorial game sections. Artwork is local. */
.s-cinematic{min-height:min(960px,100svh);isolation:isolate;background:#071011}
.s-cinematic .s-hero-img{opacity:.88;object-position:65% 50%;animation:s-world-drift 26s ease-in-out infinite alternate;z-index:-2}
.s-cinematic.has-img::before{z-index:-1;background:linear-gradient(90deg,rgba(4,10,12,.89),rgba(4,10,12,.35) 60%,rgba(4,10,12,.08)),linear-gradient(0deg,var(--s-bg),transparent 25%)}
.s-cinematic .s-title{font-size:clamp(48px,7.3vw,112px);line-height:1.03;letter-spacing:-.025em;background:linear-gradient(180deg,#fff 25%,#d9e0d7);background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.s-cinematic .s-lead,.s-cinematic .s-tagline{color:#ecefe9;text-shadow:0 2px 12px #000}
.s-cinematic .s-bubble{background:rgba(10,19,21,.78);border-color:rgba(255,255,255,.13);color:#edf0ea;backdrop-filter:blur(12px)}
.s-cinematic .s-bubble .s-dim{color:#bec9c4}
.s-cinematic .s-more{color:#edf0ea}.s-cinematic .s-btn.ghost{color:#fff;border-color:rgba(255,255,255,.3)}
.s-motes{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.s-motes i{position:absolute;left:12%;bottom:-5%;width:3px;height:3px;border-radius:50%;background:var(--s-accent);box-shadow:0 0 14px var(--s-accent);animation:s-mote-rise 15s linear infinite;opacity:0}
.s-motes i:nth-child(2){left:32%;animation-delay:-7s;animation-duration:19s}.s-motes i:nth-child(3){left:49%;animation-delay:-12s}.s-motes i:nth-child(4){left:68%;animation-delay:-4s;animation-duration:21s}.s-motes i:nth-child(5){left:83%;animation-delay:-9s}.s-motes i:nth-child(6){left:92%;animation-delay:-2s;animation-duration:25s}
.s-world{position:relative;background:radial-gradient(ellipse at 80% 10%,var(--s-soft),transparent 60%)}
.s-stories{border-top:1px solid var(--s-line-2)}
.s-story{border-bottom:1px solid var(--s-line-2)}
.s-story summary{cursor:pointer;display:grid;grid-template-columns:50px 1fr 24px;align-items:center;gap:24px;padding:26px 4px;list-style:none;font-family:var(--s-serif);font-size:clamp(22px,3vw,35px);line-height:1.2;color:var(--s-text)}
.s-story summary::-webkit-details-marker{display:none}.s-story summary .section-icon{color:var(--s-accent);transition:transform .2s}.s-story[open] summary .section-icon{transform:rotate(45deg)}
.s-story summary:focus-visible{outline:2px solid var(--s-accent);outline-offset:-2px}
.s-story-no{font-family:var(--s-sans);font-size:12px;letter-spacing:.12em;color:var(--s-dim)}
.s-story-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;padding:0 0 40px 74px;align-items:center;animation:s-in .45s ease both}
.s-story-art{min-height:230px;aspect-ratio:16/10;overflow:hidden;background:radial-gradient(ellipse at center,var(--s-soft),var(--s-card) 75%);border:1px solid var(--s-line);display:grid;place-items:center}
.s-story-art>img{width:100%;height:100%;object-fit:cover}.s-story-art>span{color:var(--s-accent);opacity:.7;transform:scale(1.8)}
.s-story-copy h3{font-family:var(--s-serif);font-size:28px;font-weight:400;color:var(--s-text);margin:0 0 22px}.s-story-copy p{line-height:1.8;color:var(--s-dim)}.s-story-copy .s-story-lead{font-size:18px;color:var(--s-text)}
@keyframes s-world-drift{from{transform:scale(1.015)}to{transform:scale(1.08) translateX(-1%)}}
@keyframes s-mote-rise{0%{opacity:0;transform:translate(0,0)}15%,75%{opacity:.65}100%{opacity:0;transform:translate(35px,-75vh)}}
@media(max-width:760px){.s-cinematic{min-height:850px}.s-cinematic .s-hero-img{object-position:67% 50%}.s-cinematic.has-img::before{background:linear-gradient(90deg,rgba(4,10,12,.82),rgba(4,10,12,.5)),linear-gradient(0deg,var(--s-bg),transparent 30%)}.s-story summary{gap:10px;grid-template-columns:34px 1fr 24px;padding-block:22px}.s-story-body{grid-template-columns:1fr;gap:20px;padding:0 0 30px}.s-story-art{min-height:180px}.s-story-copy h3{display:none}}
@media(prefers-reduced-motion:reduce){.s-cinematic .s-hero-img,.s-motes i,.s-story-body{animation:none}.s-story summary .section-icon{transition:none}.s-motes{display:none}}
html[data-motion="off"] .s-cinematic .s-hero-img,html[data-motion="off"] .s-motes i,html[data-motion="off"] .s-story-body{animation:none}
html[data-motion="off"] .s-motes{display:none}

html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-motion="off"].js .reveal,html[data-motion="off"].js .reveal-kids>*{opacity:1;transform:none}

/* The floating layer owns scrolling; the anchor stays beside the item icon. */
.peek-float { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.js-tips .peek-float .cell-tip, .js-tips .peek-float .peek-card { min-width: 0; max-height: none; overflow: visible; overflow-wrap: anywhere; }

/* Значки классов — в настоящем размере, как в игре, без растягивания:
   растянутые до 28–96 px они выглядели «не того размера». Место под значком
   подстраивается под картинку; скругление убрано — на маленьком значке оно
   срезало углы. Это правило последнее и перебивает размеры выше. */
html.site .cls-ico:not(.cls-art):not(.cls-remastered) { width: auto !important; height: auto !important; border-radius: 0 !important; filter: none !important; }
.s-list li { grid-template-columns: auto auto 1fr auto; }

/* Крупные значки классов (50×50): в круге витрины — в настоящем размере,
   на вкладках — 28 px (уменьшение не размывает). Пола у них нет, поэтому
   круг один. */
/* Крупный значок класса: в полный размер — только круг витрины и пьедестал
   (.cls-big); в списках и таблицах — мельче, по месту. */
.cls-art { image-rendering: auto; border-radius: 50%; filter: none; flex: 0 0 auto; }
.cls-big { display: block; width: 50px; height: 50px; }
html.site .cls-ico.cls-art { width: 22px; height: 22px; vertical-align: middle; }
html.site .s-cls .cls-art, html.site .s-donor .cls-ico.cls-art { width: 28px; height: 28px; }
.s-ring .cls-art { filter: drop-shadow(0 0 14px var(--s-glow)); }
/* Пьедестал лучших игроков — тоже крупный значок, по центру карточки. */
.s-pod .cls-art { margin: 0 auto; filter: drop-shadow(0 0 12px var(--s-glow)); }

/* Delayed, softly appearing tooltip near its own icon/text, like a desktop popup. */
.peek-float.peek-enter{animation:qp-peek-enter .14s ease-out both;transform-origin:top left}
@keyframes qp-peek-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.peek-float.peek-enter{animation:none}}

/* Guest account actions remain accessible in the compact header. */
.s-top-right .s-register{white-space:nowrap}
@media(max-width:560px){
    .s-top-in{flex-wrap:wrap;height:auto;min-height:68px;gap:10px;padding-top:10px;padding-bottom:10px}
    .s-top-right{order:3;width:100%;margin-left:0;justify-content:flex-end;gap:12px;flex-wrap:wrap}
    .s-top-right .s-login{display:inline-flex}
    .s-top-in>.s-burger{margin-left:auto}
    .s-top.open .s-nav{top:100%}
}

.s-user-menu{flex-shrink:0}.s-user-menu>summary{letter-spacing:.02em;color:var(--s-text)}
.s-user-menu>div{min-width:220px;max-width:calc(100vw - 32px);z-index:110;background:var(--s-bg);background:color-mix(in srgb,var(--s-bg) 96%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.s-user-menu>div a,.s-user-menu>div button{display:block;width:100%;box-sizing:border-box;padding:9px 12px;color:var(--s-text);font:600 13px/1.4 var(--s-font,sans-serif);text-align:left;letter-spacing:0;text-transform:none;white-space:nowrap}
.s-user-menu form{margin:5px 0 0;border-top:1px solid var(--s-line);padding-top:5px}.s-user-menu button{border:0;background:transparent;border-radius:4px;cursor:pointer}.s-user-menu button:hover{background:var(--s-soft);color:var(--s-accent)}

html.site .cls-ico.cls-remastered{width:26px;height:26px;object-fit:contain;image-rendering:auto;flex:none;vertical-align:middle;max-width:100%}
html.site .s-donors .cls-ico{width:26px!important;height:26px!important;object-fit:contain;flex:none}
html.site .s-who .cls-ico{width:26px!important;height:26px!important;object-fit:contain;flex:none}
html.site .s-who{min-width:0}

/* Keep short headings and final lines readable at different widths. */
html.site :is(.s-h1,.s-h2,.s-title,.s-cls-card h3){text-wrap:balance;overflow-wrap:break-word}html.site :is(.s-lead,.s-prose p,.s-text p){text-wrap:pretty;line-height:1.65}html.site .s-lead{max-width:72ch}
