/* =========================================================
   Lin2Web — content pages (about, download, legal, news,
   streams, map, error pages). Loaded after theme.css.
   ========================================================= */

/* ---------- Page hero (title band) ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 84px 0 68px;
    text-align: center;
    background: var(--ink);
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, transparent, rgba(230, 194, 122, .45), transparent) 1;
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -2;
    background: url("../img/bg-other.jpg") center 28% / cover no-repeat;
    opacity: .5;
    filter: saturate(.75) sepia(.15);
}
.page-hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(55% 90% at 50% 0%, rgba(230, 194, 122, .16), transparent 70%),
        linear-gradient(180deg, rgba(14, 11, 9, .55) 0%, rgba(14, 11, 9, .78) 62%, var(--ink) 100%);
}
.page-hero .wrap { position: relative; }
.page-hero__crumbs {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 22px;
    font-family: var(--font-accent-regular), serif;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--text-muted);
}
.page-hero__crumbs a { color: var(--gold-soft); transition: color .2s; }
.page-hero__crumbs a:hover { color: #fff4d6; }
.page-hero__crumbs span[aria-hidden] { font-size: 7px; color: var(--gold-dim); }
.page-hero__title {
    max-width: 920px;
    margin: 20px auto 0;
    font-family: var(--font-accent-bold), serif;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: .03em;
    color: #f6e7c4;
    background: linear-gradient(180deg, #fff6df 10%, #e2bd77 90%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6));
}
.page-hero .hero-eyebrow + .page-hero__title { margin-top: 18px; }
.page-hero .ornament { margin: 24px auto 0; width: min(320px, 70%); }
.page-hero__lead {
    max-width: 640px;
    margin: 20px auto 0;
    font-size: 16px;
    color: #d6cbb8;
}

/* ---------- Page body ---------- */
.page-body {
    position: relative;
    padding: 56px 0 96px;
    background:
        radial-gradient(70% 40% at 50% 0%, rgba(230, 194, 122, .05), transparent 70%),
        var(--ink);
}
.page-body .panel:hover { transform: none; }

/* ---------- Prose (legal, about, articles) ---------- */
.prose { color: var(--text); font-size: 15px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
    display: flex; align-items: center; gap: 14px;
    margin: 44px 0 16px;
    font-family: var(--font-accent-bold), serif;
    font-size: 21px; line-height: 1.3; letter-spacing: .05em;
    text-transform: uppercase;
    color: #f1e2bf;
}
.prose h2::after {
    content: ""; flex: 1; min-width: 24px; height: 1px;
    background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.prose h3 {
    margin: 30px 0 12px;
    font-family: var(--font-accent-bold), serif;
    font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gold);
}
.prose p { margin: 0 0 14px; color: #cfc4b2; line-height: 1.75; }
.prose strong, .prose b { color: #f1e2bf; font-family: var(--font-bold), sans-serif; font-weight: normal; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); transition: color .2s, border-color .2s; word-break: break-word; }
.prose a:hover { color: #fff4d6; border-color: var(--gold); }
.prose code, .prose kbd {
    padding: 1px 7px;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    background: rgba(0, 0, 0, .35);
    color: var(--gold);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88em;
}
.prose ul, .prose ol { margin: 0 0 18px; padding: 0; list-style: none; }
.prose li { position: relative; margin: 8px 0; padding-left: 24px; color: #cfc4b2; }
.prose li::before {
    content: "";
    position: absolute; left: 5px; top: .68em;
    width: 6px; height: 6px;
    transform: rotate(45deg);
    background: var(--gold-soft);
    box-shadow: 0 0 8px rgba(230, 194, 122, .45);
}
.prose li li::before { background: none; border: 1px solid var(--gold-soft); box-shadow: none; }
.prose li > ul { margin: 6px 0 4px; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote {
    margin: 0 0 18px; padding: 14px 20px;
    border-left: 2px solid var(--gold);
    background: rgba(230, 194, 122, .05);
    color: #d6cbb8; font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid rgba(201, 164, 99, .12); text-align: left; }
.prose th { color: var(--gold); font-family: var(--font-accent-bold), serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Callout box */
.callout {
    position: relative;
    display: flex; flex-direction: column; gap: 8px;
    margin: 22px 0;
    padding: 18px 22px 18px 26px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(230, 194, 122, .1), rgba(230, 194, 122, .02) 60%),
        rgba(0, 0, 0, .25);
    color: #cfc4b2; font-size: 14px; line-height: 1.7;
}
.callout::before {
    content: "";
    position: absolute; left: -1px; top: 12px; bottom: 12px;
    width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
}
.callout > strong {
    color: var(--gold);
    font-family: var(--font-accent-bold), serif;
    font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.callout--warn { border-color: rgba(214, 120, 80, .4); background: linear-gradient(90deg, rgba(214, 120, 80, .12), rgba(214, 120, 80, .02) 60%), rgba(0, 0, 0, .25); }
.callout--warn::before { background: linear-gradient(180deg, transparent, #e08a5c, transparent); }
.callout--warn > strong { color: #f0a77c; }
.callout__sign { color: #f1e2bf; font-family: var(--font-accent-bold), serif; letter-spacing: .04em; }
.callout__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.callout__links a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); font-size: 13px; letter-spacing: .04em; }
.callout__links a:hover { color: #fff4d6; border-color: var(--gold); }

/* ---------- Legal documents (rules / terms / privacy) ---------- */
.legal {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}
.legal-toc { position: sticky; top: 96px; padding: 24px 22px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; }
.legal-toc a {
    display: flex; align-items: baseline; gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(201, 164, 99, .1);
    color: var(--text-muted); font-size: 14px; line-height: 1.4;
    transition: color .2s, padding-left .2s var(--ease);
}
.legal-toc li:last-child a { border-bottom: 0; }
.legal-toc a span { color: var(--gold-soft); font-family: var(--font-accent-bold), serif; font-size: 12px; letter-spacing: .08em; }
.legal-toc a:hover { color: #fff4d6; padding-left: 8px; }
.legal-doc { padding: 44px 52px; }
.legal-doc h2 { scroll-margin-top: 100px; }
.legal-num {
    display: inline-grid; place-items: center;
    flex: none;
    width: 38px; height: 38px;
    border: 1px solid var(--gold-dim); border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .4), 0 0 14px rgba(230, 194, 122, .12);
    color: var(--gold); font-size: 13px; letter-spacing: 0;
}
.legal-meta {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
    margin: 0 0 32px; padding: 0 0 18px;
    border-bottom: 1px solid rgba(201, 164, 99, .14);
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.legal-meta time { color: var(--gold); font-family: var(--font-accent-bold), serif; }
.prose .clauses li { padding-left: 52px; }
.prose .clauses li::before { content: none; }
.prose .clauses li > b:first-child {
    position: absolute; left: 0; top: 2px;
    min-width: 38px; padding: 1px 6px;
    border: 1px solid rgba(201, 164, 99, .25); border-radius: 4px;
    background: rgba(0, 0, 0, .3);
    color: var(--gold); text-align: center;
    font-family: var(--font-accent-bold), serif; font-size: 12px; line-height: 1.7;
}

/* ---------- About ---------- */
.about-highlights {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
    margin-bottom: 32px;
}
.about-highlight {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
    column-gap: 16px; align-items: center;
    padding: 20px 22px;
}
.about-highlight img { grid-row: span 2; width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(230, 194, 122, .3)); }
.about-highlight strong {
    font-family: var(--font-accent-bold), serif; font-size: 28px; line-height: 1;
    background: linear-gradient(180deg, #fff6df 10%, #e2bd77 90%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.about-highlight span { color: var(--text-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.about-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.about-nav { position: sticky; top: 96px; padding: 22px 18px; }
.about-nav__list { position: relative; display: flex; flex-direction: column; gap: 6px; }
.about-nav .about-link {
    --ui-tex: url("../img/ui/UI_Btn_Normal.png");
    display: flex; align-items: center; gap: 12px;
    width: 100%; height: auto; min-width: 0; min-height: 44px;
    padding: 8px 14px;
    border: 4px solid transparent; border-radius: 0;
    border-image: var(--ui-tex) 8 fill / 4px stretch;
    background: none;
    color: #e6d9bd;
    font-family: var(--font-accent-bold), serif; font-size: 13px; line-height: 1.25; letter-spacing: .04em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
    transition: color .2s, filter .2s var(--ease);
}
.about-nav .about-link img { flex: none; width: 18px; height: 18px; opacity: .75; }
.about-nav .about-link:hover { --ui-tex: url("../img/ui/UI_Btn_Hover.png"); color: #fff4d6; filter: drop-shadow(0 0 8px rgba(230, 194, 122, .2)); }
.about-nav .about-link:active { --ui-tex: url("../img/ui/UI_Btn_Pressed.png"); }
.about-nav .about-link.active {
    --ui-tex: url("../img/ui/UI_Btn_Pressed.png");
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(230, 194, 122, .25));
}
.about-nav .about-link.active img { opacity: 1; filter: sepia(1) saturate(3) hue-rotate(-12deg) brightness(1.05); }
.about-nav .about-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.about-content { padding: 40px 46px; min-height: 520px; }
.about-content .content-about { display: none; }
.about-content .content-about.active { display: block; animation: pg-fade .35s var(--ease); }
@keyframes pg-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.about-nav .about-link::before { content: none; }
.about-nav .about-link::after {
    content: ""; position: static; inset: auto; z-index: auto;
    flex: none; width: 7px; height: 7px; margin-left: auto; padding: 0;
    -webkit-mask: none; mask: none; border-radius: 0;
    transform: rotate(45deg);
    border: 1px solid rgba(230, 194, 122, .35);
    background: none;
    transition: background .2s, box-shadow .2s, border-color .2s;
}
.about-nav .about-link.active::after { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 10px rgba(230, 194, 122, .8); }
.rate-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
    margin: 4px 0 24px;
}
.rate-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rate {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 18px 12px 16px;
    border: 1px solid rgba(201, 164, 99, .2); border-radius: var(--radius);
    background: radial-gradient(100% 80% at 50% 0%, rgba(230, 194, 122, .1), transparent 70%), rgba(0, 0, 0, .3);
    text-align: center;
}
.rate img { width: 36px; height: 36px; }
.rate span { color: var(--text-muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.prose .rate strong { color: var(--gold); font-family: var(--font-accent-bold), serif; font-size: 24px; line-height: 1; }

.prose .schedule { display: grid; gap: 6px; }
.prose .schedule li {
    display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 16px; align-items: center;
    margin: 0; padding: 10px 16px;
    border: 1px solid rgba(201, 164, 99, .14); border-radius: var(--radius);
    background: rgba(0, 0, 0, .25);
}
.prose .schedule li::before { content: none; }
.schedule time { color: var(--gold); font-family: var(--font-accent-bold), serif; font-size: 13px; letter-spacing: .06em; }
.schedule span { color: #e9e1d3; }

.prose .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.prose .tag-list li {
    margin: 0; padding: 4px 12px;
    border: 1px solid rgba(201, 164, 99, .25); border-radius: 999px;
    background: rgba(0, 0, 0, .3);
    font-size: 13px; color: #e6d9bd;
}
.prose .tag-list li::before { content: none; }

.item-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.item-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px;
    border: 1px solid rgba(201, 164, 99, .2); border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(230, 194, 122, .07), rgba(0, 0, 0, .3));
}
.prose .item-card strong { color: #f1e2bf; font-family: var(--font-accent-bold), serif; font-size: 15px; }
.item-card__stat { color: var(--gold); font-size: 13px; letter-spacing: .06em; }
.prose .item-card p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }

.prize {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    margin: 6px 0 24px; padding: 26px 20px;
    border: 1px solid var(--gold-dim); border-radius: var(--radius);
    background: radial-gradient(80% 120% at 50% 0%, rgba(230, 194, 122, .2), transparent 70%), rgba(0, 0, 0, .35);
    text-align: center;
}
.prize__label { color: var(--text-muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.prose .prize__value {
    font-family: var(--font-accent-bold), serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.1;
    background: linear-gradient(180deg, #fff6df 10%, #e2bd77 90%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.prize__period { color: #cfc4b2; font-size: 13px; }

/* ---------- Download ---------- */
.dl-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.dl-step { padding: 36px 40px; }
.dl-step > p { margin: 0 0 18px; color: #cfc4b2; }
.dl-step__head {
    display: flex; align-items: center; gap: 18px;
    margin: 0 0 24px; padding: 0 0 22px;
    border-bottom: 1px solid rgba(201, 164, 99, .16);
}
.dl-step__num {
    display: grid; place-items: center; flex: none;
    width: 56px; height: 56px;
    border: 1px solid var(--gold-dim); border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, rgba(230, 194, 122, .25), rgba(0, 0, 0, .5) 70%);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .45), 0 0 18px rgba(230, 194, 122, .18);
    color: var(--gold); font-family: var(--font-accent-bold), serif; font-size: 20px;
}
.dl-step__label { display: block; color: var(--text-muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.dl-step__title { margin: 4px 0 0; font-family: var(--font-accent-bold), serif; font-size: 24px; letter-spacing: .04em; color: #f1e2bf; }
.dl-step__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.dl-step .callout { margin-bottom: 0; }

.dl-files { display: flex; flex-direction: column; gap: 14px; }
.dl-file {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(201, 164, 99, .2); border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(230, 194, 122, .06), rgba(0, 0, 0, .3));
    transition: border-color .25s, background .25s;
}
.dl-file:hover { border-color: rgba(230, 194, 122, .45); background: linear-gradient(180deg, rgba(230, 194, 122, .1), rgba(0, 0, 0, .3)); }
.dl-file__icon {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border: 1px solid var(--gold-dim); border-radius: var(--radius);
    background: rgba(0, 0, 0, .4); color: var(--gold);
}
.dl-file__icon svg { width: 26px; height: 26px; }
.dl-file__body h3 { margin: 0 0 4px; font-family: var(--font-accent-bold), serif; font-size: 16px; color: #f1e2bf; }
.dl-file__body p { margin: 0; font-size: 13px; line-height: 1.55; }
.dl-file .ui-btn { grid-column: 2; justify-self: start; min-width: 200px; }

/* ---------- News list ---------- */
.news-list .news-card { padding: 0 0 24px; overflow: hidden; }
.news-list .news-card > :not(.news-card__media) { margin-left: 24px; margin-right: 24px; }
.news-card__media {
    position: relative; display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--panel-border);
    background: #0b0907;
    overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .4s; }
.news-card__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(14, 11, 9, .65));
    pointer-events: none;
}
.news-card__media--empty { display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 50%, rgba(230, 194, 122, .18), #0b0907 75%); }
.news-card__media--empty img { width: 96px; height: 96px; object-fit: contain; opacity: .85; }
.news-list .news-card:hover { transform: translateY(-4px); }
.news-list .news-card:hover .news-card__media img { transform: scale(1.05); filter: brightness(1.08); }

/* Pagination (vendor.pagination.loka-dark) -> UI_BtnSmall */
.pg-pagination { margin-top: 44px; }
.pg-pagination .news-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pg-pagination .news-pagination > * {
    --ui-tex: url("../img/ui/UI_BtnSmall_Normal.png");
    display: inline-grid; place-items: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 3px solid transparent;
    border-image: var(--ui-tex) 6 fill / 3px stretch;
    color: #e6d9bd; font-family: var(--font-accent-bold), serif; font-size: 14px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
}
.pg-pagination .news-pagination a:hover { --ui-tex: url("../img/ui/UI_BtnSmall_Hover.png"); color: #fff4d6; }
.pg-pagination .news-pagination a:active { --ui-tex: url("../img/ui/UI_BtnSmall_Pressed.png"); }
.pg-pagination .news-pagination .active { --ui-tex: url("../img/ui/UI_BtnSmall_Pressed.png"); color: var(--gold); }
.pg-pagination .news-pagination .disabled { --ui-tex: url("../img/ui/UI_BtnSmall_Disabled.png"); color: #7a7166; }
.pg-pagination .news-pagination .dots { border-image: none; color: var(--text-muted); }

/* Empty state */
.empty-state {
    max-width: 620px; margin: 0 auto;
    padding: 52px 40px;
    text-align: center;
}
.empty-state__emblem { width: 96px; height: 96px; margin: 0 auto 18px; display: block; filter: drop-shadow(0 0 22px rgba(230, 194, 122, .35)); }
.empty-state h3 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { margin: 0 auto 26px; max-width: 440px; }

/* ---------- News article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.article { padding: 0 0 36px; overflow: hidden; }
.article > :not(.article__cover) { margin-left: 48px; margin-right: 48px; }
.article__cover { margin: 0 0 8px; border-bottom: 1px solid var(--panel-border); background: #0b0907; }
.article__cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.article__meta {
    display: flex; align-items: center; gap: 12px;
    padding: 28px 0 18px; margin-bottom: 26px;
    border-bottom: 1px solid rgba(201, 164, 99, .14);
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
}
.article__meta::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); }
.article__meta time { color: var(--gold); font-family: var(--font-accent-bold), serif; }
.article__body { font-size: 16px; }
.article__body p { font-size: 16px; }
.article__foot {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(201, 164, 99, .14);
}
.article-aside { position: sticky; top: 96px; }
.recent-list li { border-bottom: 1px solid rgba(201, 164, 99, .1); }
.recent-list li:last-child { border-bottom: 0; }
.recent-list a { display: flex; flex-direction: column; gap: 4px; padding: 12px 0 12px 16px; position: relative; transition: padding-left .2s var(--ease); }
.recent-list a::before {
    content: ""; position: absolute; left: 0; top: 19px;
    width: 6px; height: 6px; transform: rotate(45deg);
    border: 1px solid var(--gold-soft);
}
.recent-list__title { color: #f1e2bf; font-family: var(--font-accent-bold), serif; font-size: 14px; line-height: 1.35; transition: color .2s; }
.recent-list time { color: #7d7365; font-size: 12px; letter-spacing: .1em; }
.recent-list a:hover { padding-left: 22px; }
.recent-list a:hover .recent-list__title { color: var(--gold); }
.recent-list .is-current a::before { background: var(--gold); box-shadow: 0 0 10px rgba(230, 194, 122, .5); }
.recent-list .is-current .recent-list__title { color: var(--gold); }

/* ---------- Streams ---------- */
.stream-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stream-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.stream-card__media { position: relative; aspect-ratio: 16 / 9; background: #0b0907; border-bottom: 1px solid var(--panel-border); }
.stream-card__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-card__offline {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: radial-gradient(60% 70% at 50% 45%, rgba(230, 194, 122, .12), transparent 75%);
    color: var(--text-muted); font-family: var(--font-accent-bold), serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.stream-card__offline img { width: 72px; height: 72px; opacity: .45; filter: grayscale(.6); }
.stream-card__info { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.stream-card__platform { width: 34px; height: 34px; flex: none; }
.stream-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.stream-card__name { color: #f1e2bf; font-family: var(--font-accent-bold), serif; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-card__viewers { color: var(--text-muted); font-size: 12px; letter-spacing: .06em; }
.stream-badge {
    flex: none; padding: 3px 10px;
    border: 1px solid rgba(169, 157, 138, .35); border-radius: 999px;
    color: var(--text-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.stream-card.is-live .stream-badge { border-color: rgba(230, 90, 70, .6); color: #ff9a85; background: rgba(230, 90, 70, .12); }
.stream-card.is-live .stream-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #ff5a45; box-shadow: 0 0 8px #ff5a45; vertical-align: 1px; }

/* ---------- World map ---------- */
.map-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: stretch; }
.map-stage { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, .25);
}
.map-search {
    position: relative; flex: 1 1 260px; max-width: 360px;
    display: flex; align-items: center;
}
.map-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--gold-soft); pointer-events: none; }
.map-search input {
    width: 100%; height: 40px; padding: 0 12px 0 36px;
    border: 1px solid var(--panel-border); border-radius: var(--radius);
    background: rgba(0, 0, 0, .45);
    color: var(--text); font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.map-search input::placeholder { color: #7d7365; }
.map-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 194, 122, .15); }
.map-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 13px; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.map-shell .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.map-shell .dot.player { background: #6fd38a; box-shadow: 0 0 8px rgba(111, 211, 138, .7); }
.map-shell .dot.boss { background: #ff5a45; box-shadow: 0 0 8px rgba(255, 90, 69, .7); }
.map-shell .dot.boss-dead { background: #777; }
.map-zoom { display: flex; gap: 6px; margin-left: auto; }

#map-wrapper {
    position: relative;
    height: min(72vh, 820px); min-height: 420px;
    overflow: hidden;
    background: #050403;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
#map-wrapper.is-dragging { cursor: grabbing; }
#map-wrapper::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(201, 164, 99, .12);
}
#map-layer { position: absolute; top: 0; left: 0; transform-origin: 0 0; --marker-scale: 1; }
#map-image { display: block; max-width: none; pointer-events: none; user-select: none; filter: sepia(.15) saturate(.9); }
#map-layer .marker {
    position: absolute; z-index: 5;
    width: 12px; height: 12px; border-radius: 50%;
    transform: translate(-50%, -50%) scale(var(--marker-scale));
    cursor: pointer;
}
#map-layer .marker.player { background: #6fd38a; border: 2px solid #1d5a2c; box-shadow: 0 0 10px rgba(111, 211, 138, .8); }
#map-layer .marker.boss { width: 14px; height: 14px; background: #ff5a45; border: 2px solid #5a120a; box-shadow: 0 0 12px rgba(255, 90, 69, .8); }
#map-layer .marker.boss-dead { background: #777; border-color: #333; box-shadow: none; }
#map-layer .marker.highlight { z-index: 50; box-shadow: 0 0 0 3px rgba(230, 194, 122, .9), 0 0 18px 6px rgba(230, 194, 122, .6); }
#map-layer .map-popup {
    position: absolute; z-index: 99;
    padding: 8px 12px;
    border: 1px solid var(--panel-border); border-radius: var(--radius);
    background: rgba(14, 11, 9, .94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
    white-space: nowrap; font-size: 12px; color: var(--text);
    transform: translate(-50%, calc(-100% - 14px)) scale(var(--marker-scale));
    transform-origin: 50% 100%;
    pointer-events: none;
}
.map-info { display: flex; flex-direction: column; }
.map-info__body { color: var(--text-muted); font-size: 14px; }
.map-shell .info p { margin: 4px 0; color: var(--text-muted); font-size: 13px; }
.map-shell .info-name { color: var(--gold) !important; font-family: var(--font-accent-bold), serif; font-size: 15px !important; }
.map-shell .info-status.alive span { color: #6fd38a; }
.map-shell .info-status.dead span { color: #ff6a55; }
.map-shell .info-hp span { color: #f1d27a; }
.map-shell .info-coords span, .map-shell .info-class span { color: #e9e1d3; }

/* ---------- Error pages (404 / 500) ---------- */
.err-body { background: var(--ink); }
.err-page {
    position: relative; isolation: isolate;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
}
.err-page::before {
    content: ""; position: fixed; inset: 0; z-index: -2;
    background: url("../img/404.jpg") center / cover no-repeat;
    opacity: .45; filter: saturate(.7) sepia(.2);
}
.err-page::after {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(50% 60% at 50% 40%, rgba(230, 194, 122, .12), transparent 70%),
        radial-gradient(120% 90% at 50% 50%, rgba(14, 11, 9, .55), rgba(14, 11, 9, .95) 75%);
}
.err-logo { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); }
.err-logo img { height: 42px; width: auto; display: block; transition: filter .2s; }
.err-logo:hover img { filter: brightness(1.15); }
.err-card { width: min(560px, 100%); padding: 0 40px 44px; overflow: visible; }
.err-char {
    display: block;
    width: clamp(130px, 22vw, 210px); height: auto;
    margin: -96px auto 8px;
    animation: err-float 4s ease-in-out infinite;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(230, 194, 122, .18));
}
@keyframes err-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.err-num {
    margin: 14px 0 4px;
    font-family: var(--font-accent-bold), serif;
    font-size: clamp(72px, 14vw, 128px); line-height: 1; letter-spacing: .04em;
    background: linear-gradient(180deg, #fff6df 10%, #e2bd77 55%, #8a6a35 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .7));
}
.err-card h1 {
    margin: 0;
    font-family: var(--font-accent-bold), serif;
    font-size: clamp(20px, 3vw, 28px); letter-spacing: .06em; text-transform: uppercase;
    color: #f1e2bf;
}
.err-card .ornament { margin: 18px auto; width: min(260px, 70%); }
.err-card p { max-width: 400px; margin: 0 auto 28px; font-size: 15px; }
.err-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .about-layout { grid-template-columns: 270px minmax(0, 1fr); }
    .stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .item-cards { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .page-hero { padding: 56px 0 48px; }
    .page-body { padding: 36px 0 72px; }
    .legal, .about-layout, .article-layout, .map-shell, .dl-steps { grid-template-columns: 1fr; }
    .legal-toc, .about-nav, .article-aside { position: static; }
    .legal-doc { padding: 32px 26px; }
    .about-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-nav { padding: 14px 0 10px; overflow: hidden; }
    .about-nav .panel-title { padding: 0 16px; margin-bottom: 10px; }
    .about-nav__list {
        flex-direction: row; gap: 6px;
        overflow-x: auto; scroll-snap-type: x proximity;
        padding: 0 16px 8px;
        scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent;
    }
    .about-nav__list li { flex: none; scroll-snap-align: center; }
    .about-nav .about-link { white-space: nowrap; width: auto; }
    .about-content { padding: 28px 24px; min-height: 0; }
    .article > :not(.article__cover) { margin-left: 26px; margin-right: 26px; }
    .dl-step { padding: 28px 24px; }
    #map-wrapper { height: 62vh; min-height: 340px; }
    .map-zoom { margin-left: 0; }
}
@media (max-width: 640px) {
    .page-hero__crumbs { margin-bottom: 16px; }
    .page-hero__lead { font-size: 15px; }
    .stream-grid { grid-template-columns: 1fr; }
    .rate-grid, .rate-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .rate { padding: 12px 4px; }
    .rate img { width: 28px; height: 28px; }
    .rate span { font-size: 10px; letter-spacing: .06em; }
    .prose .rate strong { font-size: 18px; }
    .prose .schedule li { grid-template-columns: 1fr; gap: 2px; }
    .prose h2 { font-size: 18px; }
    .legal-doc { padding: 26px 18px; }
    .prose .clauses li { padding-left: 46px; }
    .prose .clauses li > b:first-child { min-width: 34px; padding: 1px 4px; font-size: 11px; }
    .prose h2::after { display: none; }
    .about-highlight { padding: 16px; column-gap: 12px; }
    .about-highlight img { width: 36px; height: 36px; }
    .about-highlight strong { font-size: 22px; }
    .about-content { padding: 24px 18px; }
    .dl-step__head { gap: 14px; }
    .dl-step__num { width: 46px; height: 46px; font-size: 17px; }
    .dl-step__title { font-size: 20px; }
    .dl-step__actions .ui-btn, .dl-file .ui-btn { width: 100%; justify-self: stretch; grid-column: 1 / -1; }
    .dl-file { padding: 16px; gap: 14px; }
    .article > :not(.article__cover) { margin-left: 18px; margin-right: 18px; }
    .news-list .news-card > :not(.news-card__media) { margin-left: 18px; margin-right: 18px; }
    .empty-state { padding: 40px 22px; }
    .err-card { padding: 0 22px 34px; }
    .err-btns .ui-btn { flex: 1 1 100%; }
    .map-search { max-width: none; flex-basis: 100%; }
}
