/* event-landing.css - лендинг игрового события (game_event.php, templates/game_event/landing.php)

   Отдельная страница во всю ширину, вне игрового фрейма и без theme.css. Своя тёмная тема события по образцу
   презентации Астры (решения 9, 91): переменные - на body.ev-landing, не на :root, чтобы не спорить с
   палитрой игры. Данные (ширины полос, картинки) приходят инлайном из PHP.

   Структура:
     [1] THEME - переменные события
     [2] LAYOUT - обёртка, шапка, разделы
     [3] COMPONENTS - кнопки, полосы, заметки, значки
     [4] ITEMS - первый экран, легенда, Светильник, награды, очки, Рыцарь, город, правила
     [5] MOTION - появление при прокрутке
     [6] RESPONSIVE */

/* --- [1] THEME --- */

body.ev-landing {
    --ev-bg: #0c1011;
    --ev-panel: #141b1d;
    --ev-panel-2: #192224;
    --ev-ink: #eee7db;
    --ev-muted: #a9b4b3;
    --ev-gold: #dcb577;
    --ev-orange: #f8a14c;
    --ev-mint: #86cdbb;
    --ev-line: rgba(255, 255, 255, 0.09);
    --ev-serif: Georgia, 'Times New Roman', serif;
    --ev-sans: 'Segoe UI', Arial, sans-serif;
}

/* --- [2] LAYOUT --- */

body.ev-landing {
    margin: 0;
    background: var(--ev-bg);
    color: var(--ev-ink);
    font: 15px/1.65 var(--ev-sans);
}

.ev-landing *,
.ev-landing *::before,
.ev-landing *::after {
    box-sizing: border-box;
}

/* Сбросы - через :where(): нулевая специфичность, классы абзацев и заголовков ниже их перебивают */
:where(.ev-landing) a {
    color: inherit;
    text-decoration: none;
}

:where(.ev-landing) :is(h1, h2, h3, p) {
    margin: 0;
}

:where(.ev-landing) :is(h1, h2, h3) {
    font-family: var(--ev-serif);
    font-weight: 400;
}

:where(.ev-landing) h2 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.15;
}

:where(.ev-landing) h3 {
    font-size: 22px;
    line-height: 1.25;
}

html:has(body.ev-landing) {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.ev-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.ev-section {
    padding-top: 88px;
}

.ev-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.ev-section__head > p {
    max-width: 390px;
    color: var(--ev-muted);
    font-size: 14px;
}

.ev-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(12, 16, 17, 0.93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ev-line);
}

.ev-topbar__inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ev-brand {
    font: bold 22px var(--ev-serif);
    letter-spacing: -0.5px;
}

.ev-brand small {
    display: block;
    margin-top: -4px;
    font: 10px var(--ev-sans);
    letter-spacing: 2px;
    color: var(--ev-gold);
    text-transform: uppercase;
}

.ev-nav {
    display: flex;
    gap: 26px;
    font-size: 12px;
    color: var(--ev-muted);
}

.ev-nav a:hover {
    color: var(--ev-gold);
}

/* --- [3] COMPONENTS --- */

.ev-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--ev-gold);
}

.ev-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ev-gold);
}

.ev-muted {
    color: var(--ev-muted);
}

.ev-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--ev-muted);
}

.ev-admin-note {
    margin-top: 22px;
    font-size: 12px;
    color: var(--ev-mint);
}

/* Кнопки: блик через ::before, без translateY (STYLE_GUIDE, кнопки действия) */
.ev-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 19px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--ev-ink);
    font: 600 13px var(--ev-sans);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ev-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.45s ease;
}

.ev-btn:hover:not(:disabled)::before {
    left: 120%;
}

.ev-btn:hover:not(:disabled) {
    border-color: rgba(220, 181, 119, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.ev-btn--primary {
    background: linear-gradient(115deg, #e8ad68, #c98643);
    border-color: #edb577;
    color: #221a13;
    box-shadow: 0 6px 25px rgba(185, 112, 40, 0.14);
}

.ev-btn--compact {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
}

/* Погасшая кнопка «Вернуться в игру» (вкладку закрыть не дали) - подсказка, текст читаемый */
.ev-btn:disabled {
    cursor: default;
}

.ev-btn:focus-visible,
.ev-landing a:focus-visible,
.ev-landing summary:focus-visible {
    outline: 2px solid var(--ev-orange);
    outline-offset: 4px;
}

.ev-badge {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid rgba(134, 205, 187, 0.4);
    border-radius: 3px;
    font-size: 11px;
    color: var(--ev-mint);
}

.ev-track {
    position: relative;
    height: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.ev-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #aa6631, #edbd77);
    transition: width 0.6s ease;
}

.ev-track--main {
    margin: 24px 0 8px;
}

/* --- [4] ITEMS --- */

/* Первый экран: картинка приходит переменной --ev-hero с body */
.ev-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #0c1416;
}

.ev-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--ev-hero) 65% 50% / cover no-repeat;
    animation: ev-appear 0.6s ease;
}

.ev-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 16, 18, 0.94) 0%, rgba(7, 16, 18, 0.74) 36%, rgba(7, 16, 18, 0.07) 72%),
        linear-gradient(0deg, var(--ev-bg), transparent 35%);
}

.ev-hero__content {
    padding-top: 92px;
    padding-bottom: 100px;
}

.ev-hero h1 {
    max-width: 640px;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.ev-hero h1 em {
    font-style: normal;
    color: #edbc7f;
}

.ev-hero__intro {
    max-width: 445px;
    margin: 24px 0 28px;
    font-size: 16px;
    line-height: 1.8;
    color: #c0c8c3;
}

/* Заставка до старта: дата начала на месте кнопок */
.ev-hero__starts {
    margin: 0;
    font: 700 22px/1.3 var(--ev-serif);
    color: var(--ev-gold);
}

.ev-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ev-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #c0c8c3;
}

.ev-hero__facts li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--ev-gold);
    vertical-align: middle;
}

.ev-prologue {
    display: grid;
    grid-template-columns: 1fr 2.3fr;
    gap: 55px;
    align-items: start;
    padding-top: 8px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--ev-line);
}

.ev-prologue__quote {
    font: italic 23px/1.5 var(--ev-serif);
    color: var(--ev-gold);
}

.ev-chapter__title {
    margin-bottom: 10px;
    color: var(--ev-ink);
}

.ev-chapter {
    font-size: 14px;
    color: var(--ev-muted);
}

.ev-guest-call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
    border: 1px solid rgba(220, 181, 119, 0.3);
    border-radius: 8px;
    background: linear-gradient(115deg, #1d2425, #11191c);
}

/* Светильник: арт - та же картинка первого экрана, стадия гасит или разжигает её */
.ev-lantern {
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    border: 1px solid rgba(193, 147, 83, 0.31);
    border-radius: 8px;
    background: linear-gradient(115deg, #1d2425, #11191c);
}

.ev-lantern__art {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: end;
    min-height: 330px;
    padding: 24px;
    overflow: hidden;
    background: var(--ev-hero) 86% 53% / auto 128% no-repeat;
}

.ev-lantern__art::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, #101719 0%, transparent 65%);
}

.ev-lantern[data-stage="0"] .ev-lantern__art {
    filter: saturate(0.2) brightness(0.8);
}

.ev-lantern[data-stage="1"] .ev-lantern__art {
    filter: saturate(0.55);
}

.ev-lantern[data-stage="4"] .ev-lantern__art {
    box-shadow: inset 0 0 80px rgba(237, 188, 127, 0.27);
}

.ev-lantern__stage {
    font: 24px/1.1 var(--ev-serif);
}

.ev-lantern__soul {
    position: absolute;
    left: 70%;
    top: 35%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0fff1;
    box-shadow: 0 0 15px 5px rgba(141, 248, 215, 0.4);
    animation: ev-float 4s infinite;
}

.ev-lantern__soul:nth-child(2) {
    left: 35%;
    top: 48%;
    animation-delay: 1s;
}

.ev-lantern__soul:nth-child(3) {
    left: 80%;
    top: 65%;
    animation-delay: 2s;
}

.ev-lantern__info {
    padding: 30px 34px;
}

.ev-progress-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 15px;
}

.ev-progress-head h3 {
    margin-bottom: 6px;
    font-size: 28px;
}

.ev-progress-number {
    font: 44px/1 var(--ev-serif);
    color: var(--ev-gold);
    white-space: nowrap;
    text-align: right;
}

.ev-progress-number small {
    display: block;
    margin-top: 8px;
    font: 12px var(--ev-sans);
    color: var(--ev-muted);
}

.ev-stages {
    display: flex;
    justify-content: space-between;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.ev-stages li {
    position: relative;
    flex: 1;
    font-size: 11px;
    text-align: center;
    color: #a1acaa;
}

.ev-stages li small {
    display: block;
    color: var(--ev-muted);
}

.ev-stages li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 60%;
    right: -40%;
    height: 1px;
    background: var(--ev-line);
}

.ev-stages b {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    margin: 0 auto 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: #151e20;
    font: 500 10px var(--ev-sans);
}

.ev-stages li.is-active {
    color: var(--ev-gold);
}

.ev-stages li.is-active b {
    border-color: var(--ev-gold);
    background: var(--ev-gold);
    color: #1d211d;
}

/* Награды: карточки порогов, у выбора - два варианта внутри */
.ev-rewards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ev-reward {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 19px 18px 16px;
    border: 1px solid var(--ev-line);
    border-radius: 6px;
    background: linear-gradient(180deg, #1b2324, #111719);
    transition: border-color 0.25s;
}

.ev-reward.is-available {
    border-color: rgba(220, 181, 119, 0.5);
}

.ev-reward.is-claimed {
    border-color: rgba(134, 205, 187, 0.35);
}

.ev-reward--final {
    background: linear-gradient(145deg, #34291b, #151a1a);
}

.ev-reward__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ev-muted);
}

.ev-reward__top strong {
    font: 18px var(--ev-serif);
    color: var(--ev-gold);
}

.ev-reward__status {
    font-size: 10px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.ev-reward.is-available .ev-reward__status {
    color: var(--ev-gold);
}

.ev-reward.is-claimed .ev-reward__status {
    color: var(--ev-mint);
}

.ev-reward__visual {
    display: block;
    height: 120px;
    margin: 8px 0;
    background: center / contain no-repeat, radial-gradient(ellipse, rgba(184, 123, 56, 0.19), transparent 65%);
    filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.6));
}

.ev-reward.is-closed .ev-reward__visual {
    filter: saturate(0.6) brightness(0.85) drop-shadow(0 9px 10px rgba(0, 0, 0, 0.6));
}

.ev-reward h3 {
    margin-bottom: 8px;
    font-size: 19px;
}

.ev-reward__about {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.65;
    color: var(--ev-muted);
}

/* В варианте выбора колонка узкая: описание короче, полностью - в подсказке (title) */
.ev-variant .ev-reward__about {
    -webkit-line-clamp: 4;
}

.ev-reward__term,
.ev-reward__extra {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--ev-gold);
}

.ev-reward__action {
    margin-top: auto;
    padding-top: 14px;
}

.ev-reward__action .ev-btn {
    width: 100%;
}

.ev-reward__variants {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.ev-variant {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--ev-line);
    border-radius: 5px;
}

.ev-variant .ev-reward__visual {
    height: 90px;
}

/* Вариант-стек (семечки вместо вещи): картинка 60x60 уменьшена до 40x40, не растягивается */
.ev-variant .ev-reward__visual--stack {
    background-size: 40px 40px;
}

.ev-variant h3 {
    font-size: 16px;
}

.ev-variant.is-chosen {
    border-color: var(--ev-mint);
}

/* Очки: две половины ночи и ритуал */
.ev-activities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ev-activity {
    position: relative;
    isolation: isolate;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--ev-line);
    border-radius: 7px;
    background: var(--ev-panel);
}

.ev-activity--cave::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, var(--ev-panel) 35%, rgba(20, 27, 29, 0.6)), var(--ev-cave) center / cover;
    opacity: 0.55;
}

/* Своя пещера игрока под общим списком пещер по уровням */
.ev-activity__own {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ev-ink);
}

.ev-activity__own b {
    color: var(--ev-gold);
}

.ev-activity__title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ev-activity__title p {
    margin-top: 4px;
    font-size: 12px;
}

.ev-activity__count {
    font: 26px var(--ev-serif);
    color: var(--ev-gold);
    white-space: nowrap;
}

.ev-activity__count small {
    font: 12px var(--ev-sans);
    color: var(--ev-muted);
}

.ev-activity__lines {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.ev-activity__lines li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid var(--ev-line);
    font-size: 14px;
}

.ev-activity__lines b {
    color: var(--ev-gold);
    font-weight: 600;
}

.ev-synergy {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 22px 28px;
    border: 1px solid rgba(134, 205, 187, 0.19);
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(34, 52, 47, 0.4), #172221);
}

.ev-synergy h3 {
    margin-bottom: 4px;
    font-size: 20px;
}

.ev-synergy p {
    font-size: 12px;
    color: var(--ev-muted);
}

.ev-synergy__bonus {
    margin-left: auto;
    font: 30px var(--ev-serif);
    color: var(--ev-mint);
    white-space: nowrap;
    text-align: right;
}

.ev-synergy__bonus small {
    display: block;
    font: 11px var(--ev-sans);
    color: var(--ev-muted);
}

.ev-synergy.is-done {
    border-color: var(--ev-mint);
}

/* Коллекция события: свёртки на фонах редкости, сетка частей (картинка - --ev-part из PHP), тексты */
.ev-collection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 34px;
    padding: 30px;
    border: 1px solid rgba(167, 146, 112, 0.21);
    border-radius: 8px;
    background: linear-gradient(160deg, var(--ev-panel-2), var(--ev-panel));
}

.ev-collection__art {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
}

.ev-collection__art figure {
    margin: 0;
    text-align: center;
}

.ev-collection__parcel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    border-radius: 8px;
    background: center / cover no-repeat;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
}

.ev-collection__parcel img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.ev-collection__art figcaption {
    margin-top: 10px;
    font-size: 13px;
}

.ev-collection__art figcaption span {
    display: block;
    font-size: 12px;
    color: var(--ev-muted);
}

.ev-collection__parts {
    display: grid;
    grid-template-columns: repeat(5, 56px);
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.ev-collection__part {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: var(--ev-part, none) center / 48px 48px no-repeat, radial-gradient(circle closest-side, #ef730c, #923f0a 62%, #361006);
    box-shadow: inset 0 0 0 1px rgba(255, 183, 91, 0.6);
}

.ev-collection__part.is-hidden {
    background: radial-gradient(circle closest-side, #b92836, #5a1219 62%, #29090e);
    box-shadow: inset 0 0 0 1px rgba(241, 109, 114, 0.7);
}

.ev-collection__info h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ev-collection__info h3:not(:first-child) {
    margin-top: 22px;
}

.ev-collection__info p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ev-muted);
}

.ev-collection__info .ev-collection__hint {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--ev-line);
    font-family: var(--ev-serif);
    font-style: italic;
    color: var(--ev-gold);
}

/* Рыцарь - силуэт и затравка, модуля встречи пока нет */
.ev-knight {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid rgba(167, 146, 112, 0.21);
    border-radius: 8px;
    background: radial-gradient(ellipse at 20% 50%, rgba(54, 70, 67, 0.47), transparent 55%), #11191a;
}

.ev-knight__art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-knight__art::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px dashed rgba(164, 185, 167, 0.12);
    border-radius: 50%;
    animation: ev-rotate 100s linear infinite;
}

.ev-knight__art img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: brightness(0.35) drop-shadow(0 18px 16px rgba(0, 0, 0, 0.7));
}

.ev-knight__info {
    padding: 38px 36px 35px 10px;
}

.ev-knight__info h3 {
    margin: 8px 0 14px;
    font-size: 38px;
}

.ev-knight__info > p {
    max-width: 470px;
    font-size: 14px;
    color: var(--ev-muted);
}

/* Город: полоса без чисел, отметки этапов */
.ev-community {
    padding: 32px 36px;
    border: 1px solid rgba(134, 205, 187, 0.19);
    border-radius: 7px;
    background: linear-gradient(115deg, #1e2e2c, #131d1f);
}

.ev-community__top p {
    max-width: 640px;
    margin-top: 10px;
    font-size: 13px;
}

.ev-track--city {
    margin-top: 24px;
}

.ev-track--city > span {
    background: linear-gradient(90deg, #3f7766, #8ccdb5);
}

.ev-track--city > i {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: rgba(238, 231, 219, 0.45);
}

.ev-community__stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ev-community__stages strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.ev-community__stages small {
    font-size: 11px;
    color: var(--ev-muted);
}

/* Глава легенды, которую открывает этап (App\GameEvent\Chapters) */
.ev-community__stages .ev-community__chapter {
    display: block;
    margin-top: 4px;
    color: var(--ev-gold);
}

.ev-community__stages .is-reached strong {
    color: var(--ev-mint);
}

.ev-community__stages .is-locked {
    opacity: 0.6;
}

.ev-admin {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ev-line);
}

.ev-rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ev-rule {
    padding-top: 22px;
    border-top: 1px solid rgba(220, 181, 119, 0.4);
}

.ev-rule > span {
    font: 30px var(--ev-serif);
    color: rgba(220, 181, 119, 0.5);
}

.ev-rule h3 {
    margin: 12px 0 10px;
}

.ev-rule p {
    font-size: 13px;
    color: var(--ev-muted);
}

.ev-faq {
    margin-top: 36px;
    border-top: 1px solid var(--ev-line);
}

.ev-faq details {
    border-bottom: 1px solid var(--ev-line);
}

.ev-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
}

.ev-faq summary::-webkit-details-marker {
    display: none;
}

.ev-faq summary::after {
    content: '+';
    font-size: 20px;
    line-height: 1;
    color: var(--ev-gold);
}

.ev-faq details[open] summary::after {
    content: '-';
}

.ev-faq details p {
    max-width: 850px;
    padding: 0 0 20px;
    font-size: 13px;
    color: var(--ev-muted);
}

/* Летопись ночи (App\GameEvent\Chronicle): ночь - раскрывающийся блок, заголовок ночи - его название */
.ev-chronicle {
    display: grid;
    gap: 10px;
}

.ev-chronicle__night {
    border: 1px solid var(--ev-line);
    border-radius: 7px;
    background: var(--ev-panel);
}

/* Ночь без записей - только заголовок, не раскрывается */
.ev-chronicle__night--quiet {
    padding: 16px 22px;
    font: italic 17px/1.45 var(--ev-serif);
    color: var(--ev-muted);
}

.ev-chronicle__night summary {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    font: italic 17px/1.45 var(--ev-serif);
    color: var(--ev-gold);
}

.ev-chronicle__night summary::-webkit-details-marker {
    display: none;
}

.ev-chronicle__night summary::after {
    content: '+';
    font: 20px/1 var(--ev-sans);
}

.ev-chronicle__night[open] summary::after {
    content: '-';
}

.ev-chronicle__night ul {
    margin: 0;
    padding: 0 22px 14px;
    list-style: none;
}

.ev-chronicle__night li {
    display: flex;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid var(--ev-line);
    font-size: 14px;
}

.ev-chronicle__night time {
    flex: 0 0 auto;
    min-width: 40px;
    color: var(--ev-muted);
    font-size: 12px;
    line-height: 1.95;
}

.ev-chronicle__night b {
    color: var(--ev-orange);
    font-weight: 600;
}

/* Ник - ссылка на анкету игрока или страницу клана: цвет ника, подчёркивание при наведении */
.ev-chronicle__night a {
    color: inherit;
    text-decoration: none;
}

.ev-chronicle__night a:hover b,
.ev-chronicle__night a:focus-visible b {
    text-decoration: underline;
}

.ev-closing {
    margin-top: 88px;
    padding: 50px 20px 58px;
    border-top: 1px solid var(--ev-line);
    background: radial-gradient(ellipse at top, rgba(172, 120, 72, 0.08), transparent 65%);
    text-align: center;
}

.ev-closing h2 {
    margin-bottom: 12px;
    font-size: 36px;
}

.ev-closing p {
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--ev-muted);
}

.ev-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid var(--ev-line);
    font-size: 11px;
    color: #9aa4a3;
}

.ev-footer strong {
    color: var(--ev-gold);
    font-weight: 500;
}

/* --- [5] MOTION ---
   Блоки проявляются при прокрутке: коротко (300 мс), один раз, без задержки перед первым экраном.
   Без JS (нет класса js на html) всё видно сразу; при «уменьшить движение» - без анимаций. */

@keyframes ev-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ev-float {
    0%, 100% { transform: translateY(0); opacity: 0.2; }
    50% { transform: translateY(-24px); opacity: 0.9; }
}

@keyframes ev-rotate {
    to { transform: rotate(340deg); }
}

.js .ev-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.js .ev-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Карточки внутри раздела догоняют его с небольшим шагом - не дольше 0.2 с на последнюю */
.js .ev-reveal .ev-reward,
.js .ev-reveal .ev-activity,
.js .ev-reveal .ev-rule {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.js .ev-reveal.is-in .ev-reward,
.js .ev-reveal.is-in .ev-activity,
.js .ev-reveal.is-in .ev-rule {
    opacity: 1;
    transform: none;
}

.js .ev-reveal.is-in > * > :nth-child(2) { transition-delay: 0.04s; }
.js .ev-reveal.is-in > * > :nth-child(3) { transition-delay: 0.08s; }
.js .ev-reveal.is-in > * > :nth-child(4) { transition-delay: 0.12s; }
.js .ev-reveal.is-in > * > :nth-child(5) { transition-delay: 0.16s; }
.js .ev-reveal.is-in > * > :nth-child(n+6) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .js .ev-reveal,
    .js .ev-reveal .ev-reward,
    .js .ev-reveal .ev-activity,
    .js .ev-reveal .ev-rule {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ev-hero::before,
    .ev-lantern__soul,
    .ev-knight__art::after {
        animation: none;
    }

    .ev-btn::before {
        transition: none;
    }
}

/* --- [6] RESPONSIVE --- */

@media (max-width: 1000px) {
    .ev-nav {
        gap: 16px;
    }

    .ev-lantern {
        grid-template-columns: 240px 1fr;
    }

    .ev-rewards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ev-knight__info h3 {
        font-size: 32px;
    }
}

@media (max-width: 720px) {
    body.ev-landing {
        font-size: 14px;
    }

    .ev-wrap {
        padding: 0 16px;
    }

    .ev-nav {
        display: none;
    }

    .ev-hero {
        min-height: 560px;
    }

    .ev-hero__content {
        padding-top: 60px;
        padding-bottom: 64px;
    }

    .ev-hero::after {
        background: linear-gradient(90deg, rgba(7, 16, 18, 0.93), rgba(7, 16, 18, 0.5)), linear-gradient(0deg, var(--ev-bg), transparent 45%);
    }

    .ev-section {
        padding-top: 64px;
    }

    .ev-section__head,
    .ev-guest-call {
        flex-direction: column;
        align-items: start;
    }

    .ev-prologue,
    .ev-lantern,
    .ev-activities,
    .ev-knight,
    .ev-rules,
    .ev-community__stages,
    .ev-rewards {
        grid-template-columns: 1fr;
    }

    .ev-lantern__art {
        min-height: 220px;
    }

    .ev-lantern__info,
    .ev-community,
    .ev-activity {
        padding: 22px 18px;
    }

    .ev-chronicle__night summary,
    .ev-chronicle__night--quiet {
        padding: 14px 16px;
        font-size: 16px;
    }

    .ev-chronicle__night ul {
        padding: 0 16px 10px;
    }

    .ev-chronicle__night li {
        gap: 10px;
        font-size: 13px;
    }

    .ev-knight__info {
        padding: 0 20px 28px;
    }

    .ev-collection {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }

    .ev-collection__parcel {
        width: 130px;
        height: 130px;
    }

    .ev-collection__parcel img {
        width: 115px;
        height: 115px;
    }

    .ev-stages li {
        font-size: 0;
    }

    .ev-stages li b {
        font-size: 10px;
    }

    .ev-footer {
        flex-direction: column;
    }
}
