/* Сайт LongAge (головна longage.online; гра — /play/). Темний «старий світ» у тон гри: кольори й шрифт — як на сторінці
   входу в гру (client-unity/Assets/WebGLTemplates/LongAge/index.html) і в лобі. Арт — art/source/site/ (GPT Image через Codex). */
@font-face { font-family: "PT Serif"; src: url("/site/fonts/PTSerif-Regular.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #0d0b09; --bg2: #15110d; --panel: rgba(30, 23, 17, .82); --line: rgba(216, 178, 116, .22); --line-hi: rgba(232, 196, 128, .55);
  --ink: #f3e7cc; --dim: #b7a888; --mute: #8c7f68; --gold: #d8b274; --gold-hi: #f0cf8e; --red: #b3321f;
  --serif: "PT Serif", Georgia, "Times New Roman", serif; --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px; --nav: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
       background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120, 72, 30, .10), transparent 70%); }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.center { text-align: center; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1a120a; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ── Кнопки ────────────────────────────────────── */
/* «Грати» — та сама червона пластина з самоцвітами, що й «Увійти у світ» у лобі гри (Resources/UI/Lobby/enter_button.png) */
.btn-play { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #fff2d8;
            background: url("/site/img/play-button.png") center / 100% 100% no-repeat; aspect-ratio: 1024 / 196; transition: transform .25s, filter .25s; }
.btn-play span { font: 700 1em/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 6px rgba(40, 6, 2, .9), 0 0 18px rgba(255, 120, 60, .25); }
.btn-play:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.12) drop-shadow(0 8px 24px rgba(200, 60, 30, .45)); }
.btn-play:active { transform: scale(.98); filter: brightness(.95); }
.btn-play.big { width: min(440px, 86vw); font-size: clamp(18px, 2.2vw, 23px); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.btn-play.big::after { content: ""; position: absolute; inset: 18% 12%; border-radius: 40px; box-shadow: 0 0 40px 6px rgba(220, 70, 40, .35); opacity: .7; z-index: -1;
                       animation: breathe 3.6s ease-in-out infinite; }
.btn-play.small { width: 150px; font-size: 13px; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
.btn-ghost { display: inline-block; padding: 12px 28px; border: 1px solid var(--line-hi); border-radius: 999px; color: var(--ink); text-decoration: none;
             font: 600 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: rgba(216, 178, 116, .06); cursor: pointer;
             transition: background .2s, border-color .2s, transform .2s; }
.btn-ghost:hover { background: rgba(216, 178, 116, .16); border-color: var(--gold-hi); transform: translateY(-1px); }

/* ── Верхнє меню ───────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); display: flex; align-items: center; gap: 28px; padding: 0 max(20px, 3vw);
       transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
               background: linear-gradient(180deg, rgba(8, 6, 4, .7), rgba(8, 6, 4, 0)); transition: opacity .35s; }
.nav.solid { background: rgba(13, 11, 9, .86); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .45);
             -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.nav.solid::before { opacity: 0; }
.nav-logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .7)); }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; position: relative; opacity: .86; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover, .nav-links a.on { opacity: 1; }
.nav-links a:hover::after, .nav-links a.on::after { transform: none; }
.nav-online { font: 500 13px/1 var(--sans); color: var(--dim); white-space: nowrap; }
.nav-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .3); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-menu i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Головний банер ────────────────────────────── */
.hero { position: relative; min-height: max(100vh, 640px); min-height: max(100svh, 640px); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -3%; z-index: -3; background: url("/site/img/hero.jpg") center 38% / cover no-repeat, #1b1510;
           animation: kenburns 40s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
              background: radial-gradient(ellipse 70% 55% at 50% 78%, rgba(8, 6, 4, .72), rgba(8, 6, 4, 0) 70%),
                          linear-gradient(180deg, rgba(8, 6, 4, .35) 0%, rgba(8, 6, 4, 0) 22%, rgba(8, 6, 4, 0) 55%, var(--bg) 100%); }
.hero-content { width: min(860px, 92vw); padding: calc(var(--nav) + 40px) 0 max(11vh, 84px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-block; margin: 0 0 14px; padding: 7px 16px; border: 1px solid var(--line-hi); border-radius: 999px; background: rgba(12, 9, 7, .55);
         font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
         animation: rise 1s cubic-bezier(.2, .8, .2, 1) both .1s; }
.hero-title { margin: 0; animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both .2s; }
.hero-title img { width: min(620px, 84vw); height: auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .85)); }
.hero-tagline { margin: 6px 0 10px; font: 700 clamp(15px, 1.7vw, 19px)/1.3 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-hi);
                text-shadow: 0 2px 12px rgba(0, 0, 0, .9); animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both .35s; }
.hero-lead { max-width: 620px; margin: 0 0 26px; font-size: clamp(16px, 1.5vw, 19px); color: #eadfc6; text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
             animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both .45s; }
.hero .btn-play { animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both .55s; }
.hero-meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 14px; color: var(--dim); text-shadow: 0 1px 6px #000;
             animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both .65s; }
.hero-meta .sep { opacity: .5; }
.hero-mobile { margin: 14px 0 0; padding: 10px 16px; max-width: 460px; font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 9, 7, .7); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); box-shadow: 0 0 0 0 rgba(120, 220, 120, .5); }
.status.up i { background: #6fd36a; animation: ping 2.2s ease-out infinite; }
.status.down i { background: #d06a4a; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 106, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(111, 211, 106, 0); } }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(243, 231, 204, .45); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Розділи ───────────────────────────────────── */
.section { width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 110px 0 40px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.kicker { margin: 0 0 10px; font: 600 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: .02em;
                   background: linear-gradient(180deg, #fff3d6 15%, #e2bd7a 60%, #b08240 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ornament { position: relative; width: 220px; height: 14px; margin: 16px auto 0; }
.ornament::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ornament::after { content: ""; position: absolute; left: 50%; top: 2px; width: 9px; height: 9px; margin-left: -5px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 12px rgba(240, 207, 142, .6); }
.lead { margin: 22px auto 0; font-size: 18px; color: var(--dim); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Новини ────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: repeat(3, auto); gap: 22px; margin-bottom: 34px; }
.news-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--mute); border: 1px dashed var(--line); border-radius: 16px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
        text-decoration: none; color: inherit; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 196, 128, .12); }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1d1711; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
       color: #1d140a; background: var(--gold); }
.tag.update { background: #d8b274; } .tag.event { background: #8fc76a; } .tag.maintenance { background: #d47b5c; color: #fff4e6; } .tag.news { background: #9cb6d9; }
.pin { color: var(--gold-hi); font-size: 13px; }
.card h3 { font-size: 21px; color: var(--ink); }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card.featured { grid-row: 1 / span 3; }
.card.featured h3 { font-size: clamp(24px, 2.4vw, 32px); }
.card.featured .card-img { aspect-ratio: 16 / 10; }
.card.featured .card-body { padding: 24px 26px 28px; gap: 12px; }
.card.featured p { font-size: 17px; }
.card.compact { flex-direction: row; }
.card.compact .card-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 140px; }
.card.compact .card-body { padding: 14px 16px; }
.card.compact h3 { font-size: 17px; }
.card.compact p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Про гру ───────────────────────────────────── */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 54px; align-items: center; margin: 0 0 90px; }
.feature.flip .feature-art { order: 2; }
.feature-art { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.feature-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, .45); pointer-events: none; }
.feature-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.feature:hover .feature-art img { transform: scale(1.04); }
.feature-text h3 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 14px; }
.feature-text p { color: var(--dim); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 26px; color: var(--ink); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px rgba(240, 207, 142, .5); }

/* ── Народи ────────────────────────────────────── */
.race-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin-bottom: 34px; }
.race-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 10px 4px; border: 0; background: none; color: var(--dim); cursor: pointer;
            font: 600 13px/1.2 var(--sans); letter-spacing: .04em; transition: color .2s, transform .2s; }
.race-tab img { width: 72px; height: 72px; border-radius: 50%; filter: grayscale(.55) brightness(.8); transition: filter .3s, transform .3s, box-shadow .3s; }
.race-tab:hover { color: var(--ink); transform: translateY(-2px); }
.race-tab:hover img { filter: none; }
.race-tab[aria-selected="true"] { color: var(--gold-hi); }
.race-tab[aria-selected="true"] img { filter: none; transform: scale(1.12); box-shadow: 0 0 0 2px rgba(240, 207, 142, .7), 0 0 26px rgba(240, 190, 100, .55); }
.race-panel { display: grid; grid-template-columns: minmax(280px, 430px) 1fr; gap: 50px; align-items: center; padding: 34px; border-radius: 22px;
              background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(120, 80, 40, .18), transparent 70%), var(--panel); border: 1px solid var(--line);
              box-shadow: 0 30px 80px rgba(0, 0, 0, .45); min-height: 560px; }
.race-art { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; background: #120e0b; }
.race-art img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn .6s ease both; }
.race-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 50px rgba(0, 0, 0, .55); border-radius: inherit; pointer-events: none; }
.race-info { animation: slideIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.race-info .kicker { margin-bottom: 8px; }
.race-info h3 { font-size: clamp(34px, 4vw, 50px); }
.race-class { margin: 8px 0 16px; font: 700 18px/1.3 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); }
.race-arch { font: italic 400 18px/1.5 var(--serif); color: var(--ink); }
.race-sum { color: var(--dim); }
.race-gear { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 20px; font-size: 14px; color: var(--dim); }
.race-gear b { color: var(--ink); font-weight: 600; }
.race-passive { margin: 0 0 22px; padding: 14px 16px; border-left: 2px solid var(--gold); background: rgba(216, 178, 116, .06); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--dim); }
.race-passive b { color: var(--gold-hi); }
.ratings { display: grid; grid-template-columns: 120px 1fr; gap: 9px 16px; align-items: center; max-width: 460px; font-size: 14px; color: var(--dim); }
.bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8a5a26, var(--gold-hi)); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ── Галерея ───────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { position: relative; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #120e0b; aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s; filter: brightness(.9); }
.shot:hover img { transform: scale(1.06); filter: none; }
.shot figcaption { position: absolute; inset: auto 0 0; padding: 26px 14px 10px; font-size: 14px; color: var(--ink); text-align: left;
                   background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }

/* ── Як почати ─────────────────────────────────── */
.steps { list-style: none; margin: 0 0 50px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 34px 28px 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.step-n { display: block; margin-bottom: 14px; font: 700 42px/1 var(--serif); background: linear-gradient(180deg, #fff3d6, #c08a42); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }
.start-cta { text-align: center; }
.start-cta .note { max-width: 640px; margin: 22px auto 0; font-size: 14px; color: var(--mute); }
.start { padding-bottom: 100px; }

.footer { padding: 46px 20px 54px; text-align: center; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); color: var(--mute); font-size: 14px; }
.footer img { width: 150px; height: auto; margin: 0 auto 14px; opacity: .9; }
.footer nav { display: flex; justify-content: center; gap: 22px; }
.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--gold-hi); }

/* ── Новина й архів поверх сторінки ────────────── */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(6, 5, 4, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s ease both; }
.overlay[hidden], .lightbox[hidden] { display: none; }
.overlay-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 60px 16px; }
.reader, .archive { position: relative; width: min(860px, 100%); margin: 0 auto; border-radius: 20px; background: #17120e; border: 1px solid var(--line);
                    box-shadow: 0 40px 120px rgba(0, 0, 0, .7); animation: pop .35s cubic-bezier(.2, .8, .2, 1) both; }
.archive { padding: 40px 40px 30px; }
.overlay-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-hi);
                 background: rgba(12, 9, 7, .75); color: var(--ink); font-size: 16px; cursor: pointer; transition: background .2s, transform .2s; }
.overlay-close:hover { background: rgba(216, 178, 116, .2); transform: rotate(90deg); }
.reader-cover { aspect-ratio: 16 / 8; overflow: hidden; border-radius: 20px 20px 0 0; }
.reader-cover img { width: 100%; height: 100%; object-fit: cover; }
.reader-inner { padding: 30px 46px 40px; }
.reader-inner h1 { margin: 12px 0 20px; font-size: clamp(28px, 4vw, 42px); }
.reader-text { font-size: 18px; line-height: 1.75; color: #e7dcc4; }
.reader-text h3 { margin: 1.4em 0 .5em; font-size: 24px; color: var(--gold-hi); }
.reader-text ul { padding-left: 1.2em; }
.reader-text li { margin: .3em 0; }
.reader-text li::marker { color: var(--gold); }
.reader-text figure { margin: 1.4em 0; }
.reader-text figure img { border-radius: 12px; border: 1px solid var(--line); }
.reader-text figcaption { margin-top: 6px; font-size: 14px; color: var(--mute); text-align: center; }
.reader-text details { margin: 1em 0; padding: 10px 16px; border: 1px dashed var(--line-hi); border-radius: 10px; }
.reader-text summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.reader-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.reader-foot .btn-play { width: min(280px, 100%); font-size: 16px; }
.link-btn { background: none; border: 0; color: var(--gold); font: 600 15px var(--sans); cursor: pointer; padding: 6px 0; }
.link-btn:hover { color: var(--gold-hi); text-decoration: underline; }
.archive h2 { font-size: 38px; margin-bottom: 18px; }
.archive-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.archive-tags button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--dim); font: 600 13px var(--sans); cursor: pointer; }
.archive-tags button[aria-selected="true"] { background: var(--gold); color: #1d140a; border-color: var(--gold); }
.archive-list { display: grid; gap: 16px; margin-bottom: 20px; }
.archive-list .card.compact .card-img { flex-basis: 36%; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(4, 3, 2, .92); animation: fade .25s ease both; }
.lightbox figure { margin: 0; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .8); }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--dim); }
.lightbox button { position: absolute; border: 1px solid var(--line-hi); background: rgba(12, 9, 7, .7); color: var(--ink); border-radius: 50%; width: 52px; height: 52px; font-size: 30px; cursor: pointer; }
.lb-close { top: 20px; right: 20px; font-size: 18px !important; width: 44px !important; height: 44px !important; }
.lb-prev { left: 20px; top: 50%; margin-top: -26px; }
.lb-next { right: 20px; top: 50%; margin-top: -26px; }
body.locked { overflow: hidden; }

/* ── Вузькі екрани ─────────────────────────────── */
@media (max-width: 1000px) {
  .nav { gap: 14px; }
  .nav-links { position: absolute; top: var(--nav); left: 12px; right: 12px; flex-direction: column; gap: 0; padding: 10px 18px; border-radius: 14px;
               background: rgba(13, 11, 9, .96); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(216, 178, 116, .1); }
  .nav-menu { display: flex; }
  .btn-play.small { margin-left: auto; }
  .nav-online { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .card.featured { grid-row: auto; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; margin-bottom: 70px; }
  .feature.flip .feature-art { order: 0; }
  .race-panel { grid-template-columns: 1fr; padding: 22px; }
  .race-art { max-width: 380px; width: 100%; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-top: 80px; }
  .btn-play.small { width: 112px; font-size: 11px; }
  .card.compact { flex-direction: column; }
  .card.compact .card-img { flex-basis: auto; aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr; }
  .race-tab { width: 76px; font-size: 11px; }
  .race-tab img { width: 56px; height: 56px; }
  .reader-inner { padding: 22px 20px 30px; }
  .archive { padding: 30px 18px 20px; }
  .ratings { grid-template-columns: 100px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Акаунт (#/account) ──────────────────────────── */
.account { width: min(620px, 100%); }
.account h2 { font-size: 34px; }
.acc-card { margin: 18px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); display: grid; gap: 10px; }
.acc-card h3 { margin: 0; font-size: 20px; color: var(--gold-hi); }
.acc-field { display: grid; gap: 4px; font-size: 14px; color: var(--mute); }
.acc-field input { font: 16px var(--sans); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-hi); background: #0f0b08; color: var(--ink); }
.acc-msg { min-height: 1.2em; margin: 0; color: #9fd08f; }
.acc-msg.bad { color: #ff9b85; }
.acc-code { font: 700 24px/1.3 ui-monospace, Menlo, monospace; letter-spacing: 2px; color: var(--gold-hi); user-select: all; }
.account .small { font-size: 14px; }
.account .muted { color: var(--mute); }
