/* playcapo.ru — «Картель: Покер клуб».
   Материалы игры: сукно стола, бордовая кожа с прострочкой, латунь, пергамент.
   Шрифты свои (assets/fonts, OFL): Oswald — как на карточках режимов в игре,
   Golos Text — текст. */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(../fonts/oswald-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(../fonts/oswald-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --felt: #0e3b2e;
    --felt-deep: #0a2a21;
    --felt-night: #071d17;
    --leather: #3a1519;
    --leather-deep: #26100f;
    --brass: #c9a45c;
    --brass-hi: #ead08f;
    --brass-lo: #9b7a3c;
    --parchment: #efe3c6;
    --smoke: #bcb196;
    --ink: #24170c;

    --display: "Oswald", "Arial Narrow", sans-serif;
    --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1180px;
    --gutter: 20px;
    --band: clamp(64px, 9vw, 120px);

    /* Ворс сукна и зерно кожи — шум поверх цвета */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--felt-night);
    color: var(--smoke);
    font: 400 17px/1.6 var(--text);
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--parchment); margin: 0; }
h1, h2 { font: 700 clamp(34px, 5vw, 56px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font: 500 22px/1.2 var(--display); letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.wrap-text { max-width: calc(720px + 2 * var(--gutter)); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--parchment); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ——— Кнопки: латунные, как в игре ——— */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 28px; border-radius: 10px;
    font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: .03em;
    text-decoration: none; cursor: pointer; border: 0;
    transition: filter .15s, transform .15s;
}
.btn-brass {
    color: var(--ink);
    background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 48%, var(--brass-lo) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 245, 210, .7), inset 0 -2px 0 rgba(70, 45, 10, .45), 0 6px 18px rgba(0, 0, 0, .35);
}
.btn-brass { position: relative; overflow: hidden; isolation: isolate; }
.btn-brass::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 250, 230, .55), transparent);
    transform: skewX(-20deg);
}
.btn-brass:hover::after { left: 130%; transition: left .7s ease; }
.hero-cta .btn-brass::after { animation: sheen 10s ease-in-out 4s infinite; }
@keyframes sheen { 0% { left: -70%; } 9%, 100% { left: 130%; } }
.btn-brass:hover { color: var(--ink); filter: brightness(1.07); }
.btn-brass:active { transform: translateY(1px); }
.btn-ghost { color: var(--parchment); box-shadow: inset 0 0 0 1.5px rgba(201, 164, 92, .6); background: transparent; }
.btn-ghost:hover { color: var(--parchment); box-shadow: inset 0 0 0 1.5px var(--brass-hi); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 16px; border-radius: 8px; }

/* ——— Шапка ——— */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 29, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201, 164, 92, .18); }
.top-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 28px; }
.top-logo img { width: 112px; }
.top-nav { display: flex; gap: 24px; margin-left: auto; }
.top-nav a { color: var(--smoke); text-decoration: none; font: 500 17px/1 var(--display); letter-spacing: .02em; padding: 8px 0; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--parchment); }
.top-nav a[aria-current] { box-shadow: 0 2px 0 var(--brass); }
/* На главной шапка прозрачная над первым экраном, лого — крупное в нём */
.is-home .top { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; transition: background .25s, border-color .25s; }
.is-home .top-logo { opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.is-home.scrolled .top { background: rgba(7, 29, 23, .92); border-color: rgba(201, 164, 92, .18); backdrop-filter: blur(8px); }
.is-home.scrolled .top-logo { opacity: 1; visibility: visible; }

/* ——— Первый экран: подпольный зал и веер режимов ——— */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: center; padding: 110px 0 70px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url(../img/hero.webp) center 30% / cover no-repeat; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 72% 58%, rgba(14, 59, 46, .15), transparent 70%),
        linear-gradient(90deg, rgba(7, 29, 23, .92) 0%, rgba(7, 29, 23, .7) 42%, rgba(7, 29, 23, .35) 100%),
        linear-gradient(180deg, rgba(7, 29, 23, .4) 0%, transparent 30%, transparent 70%, var(--felt-night) 100%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-logo { display: block; width: min(340px, 80%); margin: 0 0 28px -8px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6)); }
.hero-logo img { width: 100%; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; max-width: 11ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero .lead { font-size: 19px; line-height: 1.55; color: #d8ceb6; max-width: 34em; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-or { color: var(--smoke); font-size: 16px; }

.hand { position: relative; height: 470px; }
.hand-tilt { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hand-card {
    --spread: 132px;
    position: absolute; left: 50%; bottom: 24px; width: 220px;
    translate: calc(-50% + (var(--i) - 1.5) * var(--spread)) calc(var(--y) * 18px);
    rotate: calc((var(--i) - 1.5) * 9deg);
    transform-origin: 50% 100%;
    transition: translate .25s cubic-bezier(.2, .8, .2, 1), filter .25s;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55));
    animation: deal .7s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(.25s + var(--i) * .11s);
}
.hand-card img { width: 100%; border-radius: 12px; }
.hand-card:hover, .hand-card:focus-visible { translate: calc(-50% + (var(--i) - 1.5) * var(--spread)) calc(var(--y) * 18px - 28px); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)) brightness(1.06); }
@keyframes deal {
    from { opacity: 0; transform: translateY(160px) rotate(calc((1.5 - var(--i)) * 9deg)) scale(.9); }
    to { opacity: 1; transform: none; }
}

/* ——— Живой фон: дым, блеск латуни ———
   Всё медленное и полупрозрачное, только transform и background-position —
   без перерисовки страницы. Вне экрана — на паузе (site.js), при «уменьшить
   движение» в системе — выключено. */
.smoke { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.smoke span {
    position: absolute; left: 0; bottom: -8%; width: 200%; height: 75%;
    background: url(../img/smoke.webp) repeat-x 0 100% / 50% 100%;
    opacity: .2; mix-blend-mode: screen;
    animation: drift 110s linear infinite; will-change: transform;
}
.smoke span + span { bottom: 22%; height: 55%; opacity: .11; background-position-x: 37%; animation-duration: 170s; animation-direction: reverse; }
.smoke-war span { opacity: .1; height: 90%; animation-duration: 150s; }
@keyframes drift { to { transform: translateX(-50%); } }
.paused .smoke span, .paused .shine::after, .paused .btn-brass::after { animation-play-state: paused; }

/* Блеск по латуни: проходит по золоту лого и значка Картеля, только по их рисунку */
.shine { position: relative; display: inline-block; }
.shine::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 43%, rgba(255, 246, 214, .6) 50%, transparent 57%) no-repeat;
    background-size: 300% 100%; background-position: 130% 0;
    -webkit-mask: var(--shine-mask) center / 100% 100% no-repeat; mask: var(--shine-mask) center / 100% 100% no-repeat;
    mix-blend-mode: color-dodge;
    animation: glint 9s ease-in-out 1.6s infinite;
}
.shine-logo { --shine-mask: url(../img/logo.webp); }
.shine-cartel { --shine-mask: url(../img/badge-cartel.webp); line-height: 0; }
.shine-cartel::after { animation-duration: 7s; animation-delay: 3s; }
@keyframes glint { 0% { background-position: 130% 0; } 22%, 100% { background-position: -30% 0; } }

/* ——— Полосы страницы ——— */
.band { position: relative; padding: var(--band) 0; }
.band-tight { padding: 48px 0 96px; }
.band-felt {
    background-color: var(--felt);
    background-image: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(46, 120, 88, .28), transparent 75%), var(--grain);
    background-blend-mode: normal, soft-light;
}
.band-felt + .band-felt { padding-top: 0; }
.band-felt + .band-felt::before { content: ""; display: block; height: 1px; max-width: var(--wrap); margin: 0 auto var(--band); background: rgba(201, 164, 92, .18); }
.band-leather { background-color: var(--leather); background-image: radial-gradient(ellipse at 50% 30%, rgba(120, 40, 40, .35), transparent 70%), var(--grain); background-blend-mode: normal, soft-light; }
.band-dark { background: var(--felt-night); }

.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head p { font-size: 19px; margin: 16px 0 0; color: var(--smoke); }
.sec-head-row { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.more { font: 500 18px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }

/* Прострочка кожи — как рамки карточек в игре */
.stitch { position: relative; padding: clamp(32px, 5vw, 64px); border-radius: 22px; background: rgba(0, 0, 0, .12); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 20px 50px rgba(0, 0, 0, .25); }
.stitch::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(201, 164, 92, .4); border-radius: 15px; pointer-events: none; }

/* ——— Режимы ——— */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.mode { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: start; scroll-margin-top: 100px; }
.mode-card { width: 132px; border-radius: 8px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); }
.mode h3 { font: 700 30px/1.05 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.mode p { margin-bottom: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-size: 15px; }
.facts div { display: flex; flex-direction: column; }
.facts dt { color: rgba(188, 177, 150, .75); }
.facts dd { margin: 0; color: var(--parchment); }
.mode:target .mode-card { animation: nudge .6s ease; }
@keyframes nudge { 40% { transform: translateY(-10px) rotate(-3deg); } }

/* ——— Личный офшор: красное дерево и латунь, как кейс в игре ——— */
.band-offshore {
    background-color: #2a150c;
    background-image: radial-gradient(ellipse 70% 80% at 85% 20%, rgba(201, 164, 92, .16), transparent 70%), var(--grain);
    background-blend-mode: normal, soft-light;
    border-top: 1px solid rgba(201, 164, 92, .3); border-bottom: 1px solid rgba(201, 164, 92, .3);
}
.off-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-bottom: 56px; }
.off-text h2 { font-size: clamp(36px, 5vw, 60px); }
.off-text .lead-sm { margin-bottom: 0; max-width: 34em; }
.calc {
    padding: 28px 30px 26px; border-radius: 16px;
    background: linear-gradient(180deg, rgba(14, 59, 46, .95), rgba(10, 42, 33, .95));
    box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .45), 0 20px 40px rgba(0, 0, 0, .4);
}
.calc-label { display: block; font-size: 15px; }
.calc-pot { display: block; font: 700 40px/1.15 var(--display); color: var(--parchment); margin: 2px 0 14px; }
.calc-range { width: 100%; accent-color: var(--brass); margin: 0 0 14px; cursor: pointer; }
.calc-boost { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.calc-boost input { width: 18px; height: 18px; accent-color: var(--brass); }
.calc-res { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed rgba(201, 164, 92, .45); font: 700 34px/1.1 var(--display); color: var(--brass-hi); }
.calc-res span { font: 400 15px/1.3 var(--text); color: var(--smoke); }
.calc-res output { display: inline-block; }
.calc-res output.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.08); color: #fff3cf; text-shadow: 0 0 18px rgba(234, 208, 143, .6); } }
.off-steps { counter-reset: off; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.off-steps li { counter-increment: off; }
.off-steps img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(201, 164, 92, .35), 0 16px 30px rgba(0, 0, 0, .45); margin-bottom: 18px; }
.off-steps h3 { font: 700 23px/1.15 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.off-steps h3::before { content: counter(off) "."; color: var(--brass); margin-right: 8px; }
.off-steps p { margin: 0; font-size: 16px; }

/* Это игра, а не казино */
.hero-note { display: flex; gap: 12px; align-items: flex-start; max-width: 34em; margin: 26px 0 0; padding: 12px 16px; font-size: 14px; line-height: 1.45; color: #d4c9ae; background: rgba(7, 29, 23, .6); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .3); }
.hero-note::before { content: "♠"; flex: none; color: var(--brass); font-size: 16px; line-height: 1.3; }

/* ——— Путь по локациям ——— */

.route {
    display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 22px;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    scrollbar-width: thin; scrollbar-color: rgba(201, 164, 92, .5) transparent;
    counter-reset: none;
}
.stop { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: auto auto auto auto; padding-top: 52px; }
/* Пунктир маршрута между номерами */
.stop::before { content: ""; position: absolute; top: 17px; left: 36px; right: -22px; border-top: 2px dashed rgba(201, 164, 92, .45); }
.stop:last-child::before { display: none; }
.stop-n {
    position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; font: 700 17px/1 var(--display); color: var(--ink);
    background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo));
    box-shadow: 0 0 0 4px var(--felt);
}
.stop img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(201, 164, 92, .3), 0 12px 24px rgba(0, 0, 0, .35); }
.stop-name { color: var(--parchment); font: 500 21px/1.2 var(--display); margin-top: 14px; }
.stop-buy { font-size: 15px; }
.stop:last-child img { box-shadow: 0 0 0 2px var(--brass), 0 12px 30px rgba(0, 0, 0, .4); }

.ranks { margin-top: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 32px; align-items: baseline; }
.ranks h3 { font-size: 20px; }
.rank-line { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--parchment); }
.rank-line li { display: inline-flex; align-items: center; }
.rank-line li:not(:last-child)::after { content: "♦"; color: var(--brass); font-size: 11px; margin: 0 12px; }
.rank-line li:last-child { color: var(--brass-hi); font-weight: 600; }

/* ——— Команда ——— */
.crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.member img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 20px; box-shadow: 0 0 0 3px var(--brass), 0 0 0 7px var(--leather-deep), 0 12px 24px rgba(0, 0, 0, .45); }
.member h3 { font: 700 26px/1.1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.member p { margin: 0 0 8px; color: #dccfb3; }
.member .member-note { font-size: 15px; color: rgba(188, 177, 150, .85); }
.crew-foot { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(201, 164, 92, .2); font-size: 16px; }

/* ——— Война боссов ——— */
.band-war { background: #0d0a09; overflow: hidden; isolation: isolate; }
.war-bg { position: absolute; inset: 0; z-index: -1; background: url(../img/bosswar.webp) center / cover no-repeat; opacity: .28; }
.war-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d0a09 10%, rgba(13, 10, 9, .6) 55%, rgba(13, 10, 9, .85)); }
.war-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.lead-sm { font-size: 19px; margin: 18px 0 32px; color: #d8ceb6; }
.steps { counter-reset: step; display: grid; gap: 22px; margin-bottom: 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font: 700 19px/1 var(--display); color: var(--brass-hi);
    box-shadow: inset 0 0 0 2px var(--brass);
}
.steps strong { color: var(--parchment); font-weight: 600; }
.war-note { font-size: 16px; padding: 16px 20px; border-left: 3px solid var(--brass); background: rgba(201, 164, 92, .07); border-radius: 0 8px 8px 0; margin: 0; }

.ladder { position: relative; display: grid; gap: 14px; }
.ladder::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(var(--brass), rgba(201, 164, 92, .2)); }
.rung { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: center; padding: 10px 18px 10px 0; }
.rung img { width: 80px; height: 80px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.rung h3 { font: 700 24px/1 var(--display); text-transform: uppercase; }
.rung p { margin: 4px 0 0; font-size: 15px; }
.rung .rung-buy { color: var(--brass-hi); margin-top: 6px; }
.rung-cartel { background: linear-gradient(90deg, rgba(201, 164, 92, .16), transparent 80%); border-radius: 48px 12px 12px 48px; }
/* Значок Картеля крупнее: размер держит обёртка с блеском, картинка заполняет её целиком */
.rung-cartel .shine-cartel { display: block; width: 92px; height: 92px; margin: -6px; }
.rung-cartel .shine-cartel img { width: 100%; height: 100%; max-width: none; }

/* ——— Клуб: свой стол, общение, подарки, коллекции ——— */
.club { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.club-art { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-bottom: 20px; }
.club-art img { width: 64px; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); }
.club-art-faces img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 2px var(--brass), 0 8px 16px rgba(0, 0, 0, .4); filter: none; }
.club-art-faces img + img { margin-left: -22px; }
.club-art img[src*="sticker"] { width: 92px; }
.club-art-cases img { width: 70px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(201, 164, 92, .35); filter: none; }
.club-item h3 { font: 700 24px/1.1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.club-item p { margin: 0; font-size: 16px; }

/* ——— Образ ——— */
.avatars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 56px; }
.avatars img { width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px rgba(201, 164, 92, .55), 0 8px 18px rgba(0, 0, 0, .4); }
.avatars li:nth-child(even) { transform: translateY(18px); }
.decks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.decks li { text-align: center; }
.decks img { width: 100%; aspect-ratio: 400 / 272; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.decks span { display: block; margin-top: 10px; color: var(--parchment); font: 500 19px/1 var(--display); }

/* ——— Скриншоты ——— */
.shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.shot { margin: 0; }
.shot-big { grid-row: span 2; }
.shot img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(201, 164, 92, .25), 0 20px 40px rgba(0, 0, 0, .5); }
.shot figcaption { margin-top: 10px; font-size: 15px; }

/* ——— Новости ——— */
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.news-card { position: relative; display: flex; flex-direction: column; background: rgba(7, 29, 23, .55); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(201, 164, 92, .18); transition: box-shadow .2s; }
.news-card:hover { box-shadow: 0 0 0 1px rgba(201, 164, 92, .55); }
.news-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.news-card-body { padding: 20px 22px 24px; }
.news-card time { font-size: 14px; color: rgba(188, 177, 150, .85); }
.news-card h3 { font: 500 23px/1.2 var(--display); margin: 6px 0 10px; }
.news-card h3 a { color: var(--parchment); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; } /* вся карточка — ссылка */
.news-card h3 a:focus-visible { outline: none; }
.news-card:has(a:focus-visible) { box-shadow: 0 0 0 2px var(--brass-hi); }
.news-card p { margin: 0; font-size: 16px; }
.news-card.no-cover { border-top: 3px solid var(--brass); }

/* ——— Вопросы ——— */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 100px; margin: 0; }
.faq-grid .sec-head .more { display: inline-block; margin-top: 20px; }
.faq { border-top: 1px solid rgba(201, 164, 92, .25); }
.qa { border-bottom: 1px solid rgba(201, 164, 92, .25); scroll-margin-top: 90px; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font: 600 19px/1.35 var(--text); letter-spacing: 0; }
.qa summary::after {
    content: ""; flex: 0 0 28px; height: 28px; border-radius: 50%;
    background:
        linear-gradient(var(--brass-hi), var(--brass-hi)) center / 12px 2px no-repeat,
        linear-gradient(var(--brass-hi), var(--brass-hi)) center / 2px 12px no-repeat;
    box-shadow: inset 0 0 0 1.5px rgba(201, 164, 92, .6);
    transition: transform .2s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover h3 { color: #fff6dc; }
.qa-a { padding: 0 52px 24px 0; }
.qa:target { background: linear-gradient(90deg, rgba(201, 164, 92, .08), transparent); }

/* Текст новостей и ответов */
.prose { color: #ddd2b8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 700 28px/1.15 var(--display); text-transform: uppercase; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 1.4em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: "♦"; position: absolute; left: -1.25em; top: .1em; font-size: .7em; color: var(--brass); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--parchment); font-weight: 600; }
.prose img { border-radius: 10px; margin: 1.5em 0; box-shadow: 0 0 0 1px rgba(201, 164, 92, .25); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brass); color: var(--parchment); }
.prose code { font-size: .9em; background: rgba(0, 0, 0, .25); padding: 2px 6px; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 16px; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid rgba(201, 164, 92, .25); text-align: left; }
.prose hr { border: 0; border-top: 1px solid rgba(201, 164, 92, .25); margin: 2em 0; }

/* ——— Где играть ——— */
.play { text-align: center; }
.play > p { font-size: 19px; margin: 14px 0 36px; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.platform {
    display: flex; flex-direction: column; gap: 4px; height: 100%;
    padding: 20px 22px; border-radius: 12px; text-decoration: none;
    color: var(--smoke); background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1.5px rgba(201, 164, 92, .4);
    transition: box-shadow .15s, background .15s;
}
.platform strong { font: 700 22px/1.1 var(--display); text-transform: uppercase; color: var(--parchment); }
.platform span { font-size: 15px; }
.platform:hover { color: var(--smoke); background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 0 1.5px var(--brass-hi); }
.platform-main { background: linear-gradient(180deg, var(--brass-hi), var(--brass) 50%, var(--brass-lo)); box-shadow: inset 0 1px 0 rgba(255, 245, 210, .7), 0 8px 20px rgba(0, 0, 0, .3); }
.platform-main strong, .platform-main span, .platform-main:hover { color: var(--ink); }
.platform-main:hover { background: linear-gradient(180deg, #f2dca2, var(--brass-hi) 50%, var(--brass)); }

/* ——— Внутренние страницы ——— */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 48px; background: var(--felt-deep); background-image: linear-gradient(180deg, rgba(7, 29, 23, .7), rgba(10, 42, 33, .96)), url(../img/hero.webp); background-size: cover; background-position: center 40%; border-bottom: 1px solid rgba(201, 164, 92, .2); }
.page-head::before {
    content: ""; position: absolute; left: 0; bottom: -10%; width: 200%; height: 90%; z-index: -1; pointer-events: none;
    background: url(../img/smoke.webp) repeat-x 0 100% / 50% 100%; opacity: .12; mix-blend-mode: screen;
    animation: drift 120s linear infinite;
}
.page-head p { margin: 16px 0 0; font-size: 18px; max-width: 40em; }
.page-head time { display: block; margin-top: 14px; }
.crumbs { margin: 0 0 14px !important; font: 500 17px/1 var(--display); letter-spacing: .02em; }
.crumbs a { text-decoration: none; }
.article h1 { font-size: clamp(32px, 4.5vw, 50px); }
.article-cover { border-radius: 14px; margin-bottom: 32px; box-shadow: 0 0 0 1px rgba(201, 164, 92, .25), 0 20px 40px rgba(0, 0, 0, .4); }
.article-lead { font-size: 20px; color: var(--parchment); line-height: 1.5; }
.article-play { margin: 44px 0 0; }
.siblings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(201, 164, 92, .25); }
.sib { display: flex; flex-direction: column; gap: 4px; color: var(--parchment); text-decoration: none; font: 500 19px/1.25 var(--display); }
.sib span { font: 400 14px/1 var(--text); color: var(--smoke); }
.sib-older { grid-column: 2; text-align: right; }
.pager { display: flex; gap: 24px; justify-content: center; align-items: center; margin-top: 48px; font-size: 16px; }
.pager a { font: 500 18px/1 var(--display); }
.empty { font-size: 18px; }
.page-404 { padding: 140px 0 140px; }
.err-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px !important; }

/* ——— Подвал ——— */
.foot { background: #05140f; padding: 64px 0 28px; font-size: 15px; border-top: 1px solid rgba(201, 164, 92, .15); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { width: 132px; margin-bottom: 16px; }
.foot-brand p { max-width: 30em; color: rgba(188, 177, 150, .8); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-h { font: 500 17px/1 var(--display); text-transform: none; letter-spacing: .02em; color: var(--parchment); margin-bottom: 8px; }
.foot-col a { color: var(--smoke); text-decoration: none; }
.foot-col a:hover { color: var(--parchment); text-decoration: underline; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(201, 164, 92, .12); color: rgba(188, 177, 150, .6); }

/* ——— Узкие экраны ——— */
@media (max-width: 1020px) {
    .hero-in { grid-template-columns: minmax(0, 1fr); }
    .hero { padding-top: 96px; }
    .hand { height: 330px; max-width: 520px; width: 100%; margin: 0 auto; }
    .hand-card { width: 170px; --spread: 104px; }
    .modes { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
    .war-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .off-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .club { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .off-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 560px; }
    .avatars { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .avatars li:nth-child(even) { transform: none; }
    .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .faq-grid .sec-head { position: static; }
    .foot-in { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: span 2; }
}
@media (max-width: 720px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    .top-nav { display: none; }
    .top-play { margin-left: auto; }
    .is-home .top-logo { opacity: 1; visibility: visible; }
    .is-home .top { background: linear-gradient(rgba(7, 29, 23, .85), transparent); }
    .hero { min-height: 0; padding: 84px 0 40px; }
    .hero-logo { display: none; }
    .hero .lead { font-size: 17px; margin: 18px 0 26px; }
    .hero-cta .btn { width: 100%; }
    .hero-note { margin-top: 20px; }
    .calc { padding: 22px 20px; }
    .calc-pot { font-size: 32px; }
    .calc-res { font-size: 28px; }
    .hero-in { gap: 8px; }
    .hand { height: 196px; margin-top: 12px; }
    .hand-card { width: 118px; --spread: 70px; }
    .sec-head { margin-bottom: 36px; }
    .sec-head p { font-size: 17px; }
    .sec-head-row { flex-wrap: wrap; }
    .mode { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; }
    .mode-card { width: 88px; }
    .mode h3 { font-size: 25px; }
    .route { grid-auto-columns: 78%; }
    .ranks { grid-template-columns: minmax(0, 1fr); }
    .crew { grid-template-columns: minmax(0, 1fr); }
    .club { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .member { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 20px; }
    .member img { width: 76px; height: 76px; grid-row: span 3; }
    .stitch { padding: 32px 22px; }
    .rung { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
    .rung img { width: 64px; height: 64px; }
    .rung-cartel .shine-cartel { width: 74px; height: 74px; margin: -5px; }
    .ladder::before { left: 31px; }
    .avatars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .shots { grid-template-columns: minmax(0, 1fr); }
    .shot-big { grid-row: auto; }
    .news-cards { grid-template-columns: minmax(0, 1fr); }
    .qa-a { padding-right: 0; }
    .platforms { grid-template-columns: minmax(0, 1fr); }
    .foot-in { grid-template-columns: 1fr; gap: 28px; }
    .foot-brand { grid-column: auto; }
    .siblings { grid-template-columns: 1fr; }
    .sib-older { grid-column: auto; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .smoke, .page-head::before, .shine::after, .btn-brass::after { animation: none !important; display: none; }
}
