/* «Чёрная Корона» v3 (10.11.2026) — сайт игры заново. Морские чернила + одно золото; Cormorant Garamond (заголовки) и Onest (текст) —
   у обоих есть кириллица, ə/ğ/ş/İ. Токены, основа, шапка и первый экран — встроены в index.html (критичный слой); здесь — всё ниже.
   Двигаются только transform/opacity; при prefers-reduced-motion всё статично. */

/* ——— типографика и общий ритм ——— */
h2 { font: 600 clamp(2.3rem, 4.7vw, 4rem)/1.02 var(--display); letter-spacing: -.018em; color: #fff; text-wrap: balance; }
h3 { font: 600 clamp(1.6rem, 2.3vw, 2.1rem)/1.1 var(--display); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
h4 { font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
p { text-wrap: pretty; }
h2, h3, .tile b, .y3-hud h4, .fleet h3 { font-variant-numeric: lining-nums; }
.page { overflow-x: clip; }
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(84px, 10.5vw, 152px) var(--gut) 0; scroll-margin-top: 40px; }
.sec-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4.4vw, 60px); }
.sec-h p { max-width: 52ch; padding-bottom: .5em; color: var(--ink-2); }
.note { margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold-hi); background: var(--gold-wash); }
.tag-warn { color: #ffb4aa; background: rgba(255, 117, 102, .14); }
.wide { width: 100%; }
.btn small { font-size: 12.5px; font-weight: 500; opacity: .7; }
#meName { font-weight: 700; }
#meName:not(:empty)::before { content: "· "; font-weight: 400; opacity: .7; }

/* кадр: единая рамка для снимков игры */
.shot { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--out); }
.shot:hover img { transform: scale(1.035); }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--out) var(--d, 0s), transform .9s var(--out) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ——— игра: два крупных кадра в шахматном порядке и пара кадров пониже ——— */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4.6vw, 72px); align-items: center; }
.duo + .duo { margin-top: clamp(28px, 4.6vw, 72px); }
.duo .shot { aspect-ratio: 16 / 10; }
.duo.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.duo.flip .shot { order: 2; }
.duo-tx { max-width: 44ch; }
.duo-tx h3 { font-size: clamp(2rem, 3.3vw, 3rem); }
.duo-tx p, .pair-i p { margin-top: 14px; color: var(--ink-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4.6vw, 72px); }
.pair-i .shot { aspect-ratio: 16 / 9; margin-bottom: 22px; }
.pair-i p { max-width: 50ch; }

/* ——— легенда: ночной кадр во всю ширину ——— */
.legend { position: relative; isolation: isolate; margin-top: clamp(84px, 10.5vw, 152px); padding: clamp(84px, 11vw, 160px) 0; overflow: hidden; scroll-margin-top: 40px; }
.legend-bg { position: absolute; inset: 0; z-index: -2; }
.legend-bg img { width: 100%; height: 100%; object-fit: cover; }
.legend::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 10, 14, .46) 24%, rgba(6, 10, 14, .62) 68%, var(--bg) 100%); }
.legend-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.legend h2 { max-width: 14ch; margin-bottom: clamp(32px, 4.4vw, 60px); font-style: italic; font-size: clamp(2.6rem, 5.6vw, 4.75rem); }
.legend-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.6vw, 56px); }
.legend-cols > div { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.legend-cols h3 { color: var(--gold-hi); }
.legend-cols p { margin-top: 12px; font-size: 16px; color: #d3dde4; }

/* ——— мир: мозаика мест и карта ——— */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 21vw, 290px); gap: 14px; }
.tile { position: relative; overflow: hidden; grid-column: span 4; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.tile.t-a { grid-column: span 8; grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--out); }
.tile:hover img { transform: scale(1.045); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 8, 12, .9) 0%, rgba(4, 8, 12, .5) 32%, rgba(4, 8, 12, 0) 60%); pointer-events: none; }
.tile figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; display: grid; gap: 4px; }
.tile b { font: 600 26px/1.08 var(--display); color: #fff; }
.tile.t-a b { font-size: clamp(2rem, 3.4vw, 3rem); }
.tile span { max-width: 48ch; font-size: 14.5px; line-height: 1.42; color: #d6e0e6; }
.tile.t-a figcaption { left: 30px; bottom: 26px; }
.tile.t-a span { font-size: 16px; }

.chart { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 5.6vw, 84px); scroll-margin-top: 90px; }
.chart-tx h3 { font-size: clamp(1.9rem, 2.9vw, 2.6rem); }
.chart-tx p { margin-top: 14px; color: var(--ink-2); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; list-style: none; }
.kinds li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: var(--surface); }
.kinds i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--gold)); }
.mapcard { position: relative; height: clamp(340px, 40vw, 520px); border-radius: var(--r-l); overflow: hidden; background: #e9dcbc; box-shadow: var(--shadow); }
.mapcard canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.mapzoom { position: absolute; z-index: 2; right: 16px; top: 16px; display: grid; gap: 8px; }
.mapzoom .mb { color: #3b2a17; background: #f7ecd2; border-color: rgba(59, 42, 23, .28); box-shadow: 0 1px 2px rgba(40, 24, 6, .3), 0 8px 18px -8px rgba(40, 24, 6, .5); }
.mapzoom .mb:hover { background: #fff8e4; }
.mb { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); transition: background-color .2s, border-color .2s; }
.mb:hover { background: #20303d; border-color: rgba(244, 210, 134, .45); }

/* ——— корабли: верфь в 3D и таблица флота ——— */
.yard3d { position: relative; border-radius: var(--r-l); overflow: hidden; background: #081019; box-shadow: var(--shadow); }
.y3-tabs { display: flex; gap: 6px; padding: 14px 16px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); padding-right: 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.y3-tabs::-webkit-scrollbar { display: none; }
.y3-tab { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s, background-color .2s; }
.y3-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.y3-tab.on { color: var(--gold-ink); font-weight: 600; background: var(--gold); }
.y3-stage { position: relative; aspect-ratio: 16 / 7.4; background: radial-gradient(120% 95% at 62% 0%, #2a4a63 0%, #12283a 42%, #081019 100%); }
.y3-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 10, 14, .86) 0%, rgba(6, 10, 14, .4) 30%, rgba(6, 10, 14, 0) 54%); }
.y3-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.y3-hud { position: absolute; z-index: 2; left: clamp(22px, 3vw, 40px); bottom: clamp(22px, 3vw, 38px); width: min(380px, 40%); pointer-events: none; }
.y3-no { font-size: 13px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.y3-hud h4 { margin: 8px 0 10px; font: 700 clamp(2rem, 3.6vw, 3.25rem)/1 var(--display); letter-spacing: -.015em; text-transform: none; color: #fff; }
.y3-d { font-size: 15px; line-height: 1.5; color: #d3dde4; }
.y3-st { display: flex; gap: 28px; margin-top: 20px; }
.y3-st span { display: grid; gap: 4px; }
.y3-st em { font: 700 26px/1 var(--sans); font-variant-numeric: tabular-nums; color: #fff; }
.y3-st b { font-size: 12.5px; font-weight: 500; color: var(--mute); }
.y3-pr { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; font-size: 16px; font-weight: 600; color: var(--gold-hi); }
.coin { flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c4, var(--gold) 55%, var(--gold-lo)); }
.y3-load { position: absolute; inset: 0; display: grid; place-items: center; }
.y3-load[hidden] { display: none; }
.y3-load svg { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; animation: spin 1.1s linear infinite; }
.y3-load circle { opacity: .2; }
@keyframes spin { to { transform: rotate(360deg); } }
.y3-hint { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 14px; line-height: 1.45; color: var(--mute); background: var(--surface); border-top: 1px solid var(--line); }
.y3-hint .ico { color: var(--gold); }

.fleet { margin-top: 22px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.ship { display: grid; grid-template-columns: 112px minmax(0, 1fr) repeat(3, 84px) 204px 44px; gap: 0 18px; align-items: center; min-height: 86px; padding: 10px 20px 10px 10px; transition: opacity .9s var(--out) var(--d, 0s), transform .9s var(--out) var(--d, 0s), background-color .25s; }
.ship + .ship { border-top: 1px solid var(--line); }
.ship:hover { background: var(--surface-2); }
.ship .art { height: 66px; display: flex; align-items: flex-end; justify-content: center; border-radius: var(--r-s); background: #0a121a; cursor: pointer; }
.hull { width: 100%; height: 62px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hull .hl { fill: #101b26; stroke: var(--gold); stroke-width: 1.2; }
.hull .sl { fill: rgba(244, 210, 134, .12); stroke: var(--gold-hi); stroke-width: 1; }
.hull .ms, .hull .yd { stroke: var(--gold); stroke-width: 1.4; }
.hull .rg { stroke: rgba(244, 210, 134, .32); stroke-width: .7; }
.hull .wl { stroke: var(--gold-lo); stroke-width: 1; }
.hull .lt { fill: #ffd98a; }
.hull .pt { fill: rgba(244, 210, 134, .75); }
.hull .fl { fill: #05080b; stroke: var(--gold); stroke-width: .8; }
.hull .wv { stroke: rgba(150, 190, 215, .4); stroke-width: 1; }
.ship h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 24px; }
.ship .s-tag { min-height: 22px; padding: 0 9px; font: 600 11.5px/22px var(--sans); letter-spacing: .03em; }
.ship .s-d { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--mute); }
.s-sts { display: contents; }
.s-st { display: grid; gap: 3px; }
.s-st em { font: 600 19px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.s-st b { font-size: 12px; font-weight: 500; color: var(--mute); }
.s-st i { display: block; height: 3px; margin-top: 4px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .09); }
.s-st i b { display: block; height: 100%; border-radius: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--out) calc(var(--d, 0s) + .25s); }
.ship.in .s-st i b { transform: scaleX(var(--v)); }
.price { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 15px; font-weight: 600; color: var(--gold-hi); white-space: nowrap; }
.v3d { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); border: 1px solid var(--line-strong); transition: color .2s, border-color .2s, background-color .2s; }
.v3d:hover { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.fleet-note { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 22px; font-size: 15.5px; color: var(--ink-2); }
.fleet-note b { font: 600 22px/1.2 var(--display); color: var(--gold-hi); }

/* ——— что нового ——— */
.news { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.news-h { position: sticky; top: 96px; }
.news-h h2 { margin-top: 18px; }
.news-lead { margin-top: 16px; font: italic 600 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--display); color: var(--gold-hi); }
.news-h p:last-child { margin-top: 14px; color: var(--ink-2); }
.upd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 3.2vw, 44px) clamp(18px, 2.4vw, 32px); list-style: none; }
@media (min-width: 761px) { .upd li:first-child { grid-column: 1 / -1; } .upd li:first-child img { aspect-ratio: 21 / 9; } }
.upd img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; border-radius: var(--r-m); background: var(--surface); }
.upd b { display: block; font: 600 24px/1.12 var(--display); color: #fff; }
.upd span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.earlier { margin-top: clamp(40px, 5vw, 72px); border-block: 1px solid var(--line-strong); transition: opacity .9s var(--out), transform .9s var(--out); }
.earlier summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; font: 600 clamp(1.5rem, 2.2vw, 1.9rem)/1.1 var(--display); color: #fff; cursor: pointer; list-style: none; }
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary .ico { width: 24px; height: 24px; color: var(--gold); transition: transform .35s var(--out); }
.earlier[open] summary .ico { transform: rotate(180deg); }
.earlier summary:hover { color: var(--gold-hi); }
.earlier-g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px clamp(20px, 2.6vw, 36px); padding: 8px 0 34px; }
.earlier-g h3 { font-size: 22px; color: var(--gold-hi); }
.earlier-g ul { display: grid; gap: 8px; margin-top: 12px; list-style: none; }
.earlier-g li { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.beta { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.beta .tag { flex: none; }

/* ——— кадры ——— */
.gal { --gap: 12px; --gw: calc((min(100vw, var(--max)) - 2 * var(--gut) - 3 * var(--gap)) / 4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc(var(--gw) * 9 / 16); grid-auto-flow: dense; gap: var(--gap); }
.g { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--surface); cursor: zoom-in; text-align: left; }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.g::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 8, 12, .82), rgba(4, 8, 12, 0) 44%); opacity: 0; transition: opacity .35s; }
.g .cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; font-size: 14.5px; font-weight: 500; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--out); }
.g .cap span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g:hover img, .g:focus-visible img { transform: scale(1.05); }
.g:hover::after, .g:focus-visible::after, .g:hover .cap, .g:focus-visible .cap { opacity: 1; }
.g:hover .cap, .g:focus-visible .cap { transform: none; }
.g.big { grid-column: span 2; grid-row: span 2; }
.g.big .cap { left: 22px; bottom: 18px; font-size: 17px; }
@media (hover: none) { .g::after, .g .cap { opacity: 1; } .g .cap { transform: none; } }

/* ——— как играть: одна панель, три колонки ——— */
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.how-c { padding: clamp(22px, 2.8vw, 36px); }
.how-c + .how-c { border-left: 1px solid var(--line); }
.how-c h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.how-c h3 .ico { width: 26px; height: 26px; color: var(--gold); }
.how-c h4 { margin: 28px 0 12px; }
.keys { list-style: none; display: grid; }
.keys li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 15px; color: var(--ink-2); }
.keys li + li { border-top: 1px solid var(--line); }
kbd { flex: none; min-width: 116px; padding: 6px 10px; border-radius: 9px; text-align: center; font: 600 13px/1.35 var(--sans); color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 0 #05090c; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-2); }
.seg button { flex: 1 1 auto; min-height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.seg button.on { color: var(--gold-ink); font-weight: 600; background: var(--gold); }
.soon { list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.soon li { position: relative; padding-left: 18px; }
.soon li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ——— скачать ——— */
.dl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dl-pic { aspect-ratio: 4 / 4.4; }
.dl-sub { max-width: 52ch; margin-top: 16px; color: var(--ink-2); }
.dl-rows { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.dl-rows li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dl-rows > li > .ico { width: 28px; height: 28px; color: var(--gold); }
.dl-rows b { display: block; font: 600 24px/1.15 var(--display); color: #fff; }
.dl-rows span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.dl-rows .btn { min-width: 168px; }
.dl-rows .btn span { font-size: inherit; color: inherit; }
.dl-rows .dl-meta { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; letter-spacing: .02em; color: var(--mute); font-variant-numeric: tabular-nums; }
.dl-new { margin-top: 22px; padding: 14px 18px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 8px; }
.dl-new b { display: block; font: 600 18px/1.3 var(--display); color: #fff; }
.dl-new p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ——— финальный призыв ——— */
.final { position: relative; isolation: isolate; margin-top: clamp(84px, 10.5vw, 152px); min-height: min(86svh, 760px); display: grid; place-items: center; padding: 110px var(--gut); text-align: center; overflow: hidden; }
.final-bg { position: absolute; inset: 0; z-index: -2; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 10, 14, .5) 26%, rgba(6, 10, 14, .62) 70%, var(--bg) 100%); }
.final-logo { width: min(220px, 52vw); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); }
.final h2 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); }
.final p { max-width: 46ch; margin: 18px auto 32px; font-size: 18px; color: #dbe4ea; }

/* ——— подвал ——— */
.foot { max-width: var(--max); margin: 0 auto; padding: 64px var(--gut) max(28px, env(safe-area-inset-bottom)); }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px clamp(28px, 4vw, 64px); align-items: start; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot .brand-logo { height: 56px; }
.foot-brand p { max-width: 40ch; margin-top: 14px; font-size: 14.5px; color: var(--mute); }
.foot-links { display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.foot-links a { padding: 5px 0; transition: color .2s; }
.foot-links a:hover { color: var(--gold-hi); }
.foot-live .live-t { font-size: 15px; }
.foot-live dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin-top: 16px; }
.foot-live dl div { display: grid; gap: 2px; }
.foot-live dd { order: -1; font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.foot-live dt { font-size: 13px; color: var(--mute); }
.live-top { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.live-top:empty { display: none; }
.live-top b { flex: 1 1 100%; font-weight: 600; color: var(--mute); }
.live-clan { padding: 4px 11px; border-radius: 999px; background: var(--surface); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; font-size: 14px; color: var(--mute); }
.dev b { font-weight: 600; color: var(--ink-2); }
.mbar { display: none; }

/* ——— окна: вход, карта, кадр, кабинет — сплошные, поверх затемнения ——— */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 9, .92); animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.sheet { position: relative; width: min(440px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 0 28px 28px; border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), 0 40px 100px rgba(0, 0, 0, .8); animation: pop .35s var(--out); }
.sheet-art { position: relative; height: 136px; margin: 0 -28px; background: url("img/e-fire-m.webp?v=50") center 40% / cover; }
.sheet-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 24, 32, 0) 20%, var(--surface)); }
.sheet-x { position: absolute; z-index: 2; right: 14px; top: 14px; background: rgba(6, 10, 14, .82); }
.sheet h3 { margin: 2px 0 18px; font-size: 38px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--bg-2); }
.tabs button { flex: 1; min-height: 40px; padding: 0 6px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--gold-ink); font-weight: 600; background: var(--gold); }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; margin: 0 0 6px 4px; font-size: 13.5px; color: var(--ink-2); }
.field input { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; font-size: 16px; background: var(--bg-2); border: 1px solid var(--line-strong); outline: none; caret-color: var(--gold); transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(226, 176, 74, .18); }
.hint { margin: 2px 4px 6px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.err { min-height: 20px; margin: 0 4px 10px; font-size: 14px; color: var(--crit); }

.mapbox { width: min(1200px, 100%); height: min(820px, calc(100svh - 32px)); display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-l); overflow: hidden; background: #e9dcbc; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 100px rgba(0, 0, 0, .8); animation: pop .4s var(--out); }
.maphead { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 12px 14px 12px 22px; background: var(--surface); }
.maphead > b { font: 600 26px/1 var(--display); color: #fff; }
.maphint { font-size: 13.5px; color: var(--mute); }
.mapbtns { margin-left: auto; display: flex; gap: 8px; }
.mapwrap { position: relative; min-height: 0; }
.mapbox canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }

#lightbox { touch-action: pan-y pinch-zoom; }
.lbf { display: grid; justify-items: center; gap: 14px; max-width: min(1500px, 100%); animation: pop .35s var(--out); }
.lbf img { max-width: 100%; max-height: calc(100svh - 120px); border-radius: var(--r-m); box-shadow: 0 40px 100px rgba(0, 0, 0, .8); }
.lbf figcaption { display: flex; align-items: baseline; gap: 16px; font: 600 24px/1.2 var(--display); color: #fff; }
.lbf figcaption b { font: 500 13px/1 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--mute); }
.lbn { position: fixed; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); transition: background-color .2s, border-color .2s; }
.lbn:hover { background: #20303d; border-color: rgba(244, 210, 134, .45); }
.lbn.prev { left: 20px; }
.lbn.next { right: 20px; }
.lbx { position: fixed; right: 20px; top: 20px; }

.cabbox { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: var(--r-l); background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), 0 40px 100px rgba(0, 0, 0, .8); animation: pop .35s var(--out); }
.cabhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.cabhead > b { font: 600 26px/1 var(--display); color: #fff; }
.cabbody { display: grid; gap: 10px; padding: 16px; }
.cabrow { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-s); background: var(--bg-2); }
.cabico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--gold); background: var(--gold-wash); }
.cabico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cabrow b { display: block; color: var(--ink); }
.cabrow small { font-size: 13.5px; color: var(--mute); }
.cab3d { min-height: 200px; border-radius: var(--r-m); overflow: hidden; background: radial-gradient(80% 90% at 50% 30%, #1d3446, #081019 75%); }
.cab3d-cv { display: block; width: 100%; height: auto; }

/* ——— адаптив ——— */
@media (max-width: 1100px) {
  .ship { grid-template-columns: 96px minmax(0, 1fr) repeat(3, 68px) 44px; }
  .ship .price { grid-column: 2; grid-row: 2; justify-content: flex-start; margin-top: 6px; }
  .ship .art, .ship .v3d { grid-row: span 2; }
  .earlier-g { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-live { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sec-h, .duo, .duo.flip, .chart, .news, .dl { grid-template-columns: minmax(0, 1fr); }
  .sec-h p { padding-bottom: 0; }
  .duo.flip .shot { order: 0; }
  .duo-tx { max-width: 56ch; }
  .legend-cols { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(190px, 34vw, 280px); }
  .tile, .tile.t-a { grid-column: span 1; }
  .tile.t-a { grid-column: 1 / -1; grid-row: span 1; grid-row-end: span 1; aspect-ratio: 16 / 10; }
  .news-h { position: static; }
  .howto { grid-template-columns: 1fr; }
  .how-c + .how-c { border-left: 0; border-top: 1px solid var(--line); }
  .dl-pic { aspect-ratio: 16 / 9; }
  .y3-stage { aspect-ratio: 4 / 3; }
  .y3-stage::after { display: none; }
  .y3-hud { position: static; width: auto; padding: 20px 20px 22px; background: var(--surface); border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .pair { grid-template-columns: 1fr; gap: 36px; }
  .gal { --gap: 8px; --gw: calc((100vw - 2 * var(--gut) - var(--gap)) / 2); grid-template-columns: 1fr 1fr; }
  .g .cap { left: 11px; right: 10px; bottom: 8px; font-size: 13px; }
  .ship { grid-template-columns: 76px minmax(0, 1fr) 44px; gap: 0 12px; padding: 14px 12px 14px 10px; }
  .ship .art { grid-row: 1; height: 54px; align-self: start; } .hull { height: 50px; }
  .ship .v3d { grid-row: 1; grid-column: 3; align-self: start; }
  .ship h3 { font-size: 22px; } .ship .s-d { display: none; } .ship .s-main { align-self: center; }
  .ship .s-sts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; grid-column: 1 / -1; grid-row: 2; margin-top: 14px; }
  .ship .price { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; }
  .upd { grid-template-columns: 1fr; }
  .earlier-g { grid-template-columns: 1fr; }
  .beta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dl-rows li { grid-template-columns: 28px minmax(0, 1fr); }
  .dl-rows .btn { grid-column: 1 / -1; width: 100%; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-live { grid-column: auto; }
  .foot { padding-bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px)); }
  .foot-bottom { flex-direction: column; }
  .maphint { display: none; }
  .mapbox { height: calc(100svh - 32px); }
  .lbn { top: auto; bottom: 18px; margin: 0; }
  .lbf img { max-height: calc(100svh - 190px); }
  .lbf figcaption { font-size: 20px; }
  .mbar { display: flex; position: fixed; z-index: 35; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateY(170%); transition: transform .5s var(--out); }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 40px rgba(0, 0, 0, .75); }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile.t-a { grid-column: auto; aspect-ratio: 16 / 11; }
  .tile b, .tile.t-a b { font-size: 26px; }
  .tile figcaption, .tile.t-a figcaption { left: 18px; right: 18px; bottom: 16px; }
  .tile.t-a span { font-size: 14.5px; }
  .foot-live dl { grid-template-columns: 1fr 1fr; }
  kbd { min-width: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .earlier { opacity: 1; transform: none; }
  .ship .s-st i b { transform: scaleX(var(--v)); }
}

/* ——— вечер 11.11: надзаголовки, карточки флота, новые корабли, подписи галереи ——— */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 600 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; flex: none; width: 36px; height: 1px; background: currentColor; opacity: .75; }
.legend .eyebrow { margin-bottom: 20px; color: var(--gold-hi); }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; margin-top: 22px; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.ship { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto; gap: 0; align-items: start; min-height: 0; padding: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: opacity .9s var(--out) var(--d, 0s), transform .9s var(--out) var(--d, 0s), background-color .25s, border-color .25s; }
.ship + .ship { border-top: 1px solid var(--line); }
.ship:hover { background: var(--surface-2); border-color: rgba(244, 210, 134, .38); }
.ship .art { grid-column: 1 / -1; grid-row: 1; height: 142px; align-self: stretch; padding: 14px 18px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: radial-gradient(120% 110% at 62% 0%, #1f394e 0%, #0f1f2d 52%, #0a131b 100%); }
.hull { height: 122px; }
.ship .s-main { grid-column: 1 / -1; grid-row: 2; align-self: start; padding: 16px 20px 0; }
.ship h3 { font-size: 26px; }
.ship .s-d { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; }
.ship .s-sts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; grid-column: 1 / -1; grid-row: 3; align-self: end; margin-top: 0; padding: 18px 20px 0; }
.ship .price { grid-column: 1; grid-row: 4; justify-content: flex-start; margin-top: 0; padding: 18px 0 0 20px; }
.ship .v3d { grid-column: 2; grid-row: 4; align-self: end; margin: 12px 16px 0 0; }
.newships { margin-bottom: clamp(28px, 4vw, 52px); }
.ns-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 6px clamp(28px, 5vw, 80px); align-items: end; margin-bottom: 22px; }
.ns-h .eyebrow { grid-column: 1 / -1; margin-bottom: 6px; }
.ns-h h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.ns-h p { color: var(--ink-2); }
.ns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.ns { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.ns .shot { aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; }
.ns-tx { display: grid; align-content: start; gap: 12px; padding: 20px 22px 22px; }
.ns-tx h4 { font: 700 clamp(1.7rem, 2.4vw, 2.2rem)/1.05 var(--display); letter-spacing: -.01em; text-transform: none; color: #fff; }
.ns-tx p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ns-sts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.ns.in .s-st i b { transform: scaleX(var(--v)); }
.ns-3d { justify-self: start; min-height: 42px; margin-top: 4px; padding: 0 18px; font-size: 14.5px; }
.ns-grid[data-n="1"] { grid-template-columns: 1fr; }
.ns-grid[data-n="1"] .ns { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto; }
.ns-grid[data-n="1"] .ns-tx { align-content: center; padding: clamp(22px, 3vw, 40px); }
.g::after { opacity: .7; }
.g .cap { opacity: 1; transform: none; }
.g:hover::after, .g:focus-visible::after { opacity: 1; }
@media (max-width: 900px) { .ns-h { grid-template-columns: 1fr; } .ns-grid[data-n="1"] .ns { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .fleet { grid-template-columns: 1fr 1fr; gap: 10px; } .ship .art { height: 96px; padding: 10px 10px 0; } .hull { height: 82px; } .ship .s-main { padding: 12px 14px 0; } .ship h3 { font-size: 21px; } .ship .s-d { display: none; } .ship .s-sts { gap: 8px; padding: 12px 14px 0; } .s-st em { font-size: 16px; } .s-st b { font-size: 11px; } .ship .price { padding: 12px 0 0 14px; font-size: 13.5px; white-space: normal; } .ship .v3d { width: 40px; height: 40px; margin: 8px 10px 0 0; } .ship { padding-bottom: 12px; } }
@media (max-width: 380px) { .fleet { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ns .s-st i b { transform: scaleX(var(--v)); } }

/* ——— отметка 18+ ——— */
.age { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 6px; font: 700 12px/1 var(--sans); letter-spacing: .02em; color: var(--gold-hi); }
.brand .age { margin-left: 2px; }
.ns-grid { grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }
.ns-tx { padding: 16px 18px 18px; } .ns-tx h4 { font-size: clamp(1.45rem, 1.9vw, 1.8rem); } .ns-tx p { font-size: 14.5px; } .ns-sts { gap: 10px; }
.cta .age { height: 28px; min-width: 42px; font-size: 13.5px; color: #fff; opacity: .86; }
.age-line { display: inline-flex; align-items: center; gap: 10px; }
.agechk { display: flex; align-items: center; gap: 10px; margin: 4px 4px 10px; font-size: 15px; color: var(--ink); cursor: pointer; }
.agechk input { flex: none; width: 20px; height: 20px; accent-color: var(--gold); }
.agechk .age { margin-left: auto; }
@media (max-width: 760px) { .brand .age { margin-left: 6px; } .cta .age { display: none; } }
