:root {
    color-scheme: dark;
    --bg: #10131d;
    --panel: #191e2b;
    --line: #2e3546;
    --ink: #f3f1ed;
    --dim: #b7bfd0;
    --fire: #f7a574;
    --orange: #f28243;
    --content: 1240px;
    --shell: 1540px;
    --header-height: 66px;
    font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-width: 280px; }
body { margin: 0; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
:where(a, summary, button, input, textarea, select):focus-visible { outline: 2px solid #ffba92; outline-offset: 3px; }
.container { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; left: 14px; top: -100px; z-index: 30; padding: 12px; background: var(--panel); }
.skip:focus { top: 14px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
}
.site-header .container { width: min(var(--shell), calc(100% - 56px)); }
.header-layout, .header-actions { display: flex; align-items: center; }
.header-layout { min-height: var(--header-height); justify-content: space-between; gap: 12px; }
.header-actions { gap: 12px; }
.header-brandline { display: flex; align-items: center; gap: 26px; }
.header-brandline .brand { min-width: 184px; }
.header-catalog { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 162px; padding: 8px 13px; border-radius: 9px; background: #1a1e31; color: var(--dim); font-size: .9rem; }
.header-catalog::before { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: 5px 5px 0 -4px currentColor; content: ""; }
.header-catalog:hover { color: var(--ink); background: #22273b; }
.header-links { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 23px); }
.home .header-links { display: none; }
.header-links a { padding: 9px 3px; color: var(--dim); font-size: .91rem; font-weight: 620; }
.header-links a:hover, .header-links a[aria-current] { color: var(--fire); }
.header-links a[aria-current] { box-shadow: 0 2px var(--orange); }
.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    font-size: 29px;
    font-weight: 780;
    line-height: 1;
    letter-spacing: -.055em;
}
.header-login, .header-register { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); font-size: .88rem; font-weight: 650; }
.header-register { padding-inline: 14px; border-radius: 8px; background: var(--orange); color: #1c100a; }
.header-register:hover { background: #ffb487; }
.header-login:hover { color: var(--fire); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    min-height: 47px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--orange);
    color: #241315;
    font-weight: 740;
    line-height: 1.24;
    text-align: center;
    cursor: pointer;
}
.button:hover { background: #ffac86; }
.button-cta {
    gap: 14px;
    padding-inline: 19px;
    background: var(--orange);
    box-shadow: 0 8px 24px #17090729;
}
.button-cta:hover { background: #ffbc89; }
.button-cta:active { box-shadow: inset 0 2px 5px #a13a2459; }
.button-cta span {
    display: grid;
    flex: 0 0 18px;
    place-items: center;
    height: 18px;
    font-size: 1.18em;
    line-height: 1;
}
.button-secondary { color: var(--ink); background: #fff5ed12; }
.button-secondary:hover { color: var(--fire); background: #fff5ed1c; }
.button-secondary span { color: var(--fire); line-height: 1; }
.header-cta { min-height: 40px; gap: 9px; padding: 7px 14px; font-size: .85rem; }

#main { min-width: 0; scroll-margin-top: calc(var(--header-height) + 12px); }
.site-layout {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 26px;
    width: min(var(--shell), calc(100% - 56px));
    margin: 12px auto 0;
    align-items: start;
}
.lobby-sidebar { position: sticky; top: calc(var(--header-height) + 16px); }
.lobby-sidebar nav { display: grid; gap: 9px; padding: 10px 8px; border-radius: 12px; background: #161a2a; }
.lobby-sidebar nav > div + div { padding-top: 8px; border-top: 1px solid #282d40; }
.lobby-sidebar a {
    display: flex;
    align-items: center;
    min-height: 43px;
    gap: 9px;
    padding: 8px 12px 8px 10px;
    border-radius: 7px;
    color: var(--dim);
    font-size: .92rem;
    font-weight: 610;
}
.lobby-icon { display: inline-grid; flex: 0 0 18px; place-items: center; font-size: 1.08rem; line-height: 1; }
.lobby-sidebar a:hover, .lobby-sidebar a[aria-current] { color: var(--fire); background: #20243a; }
.site-shell > .container { width: min(100%, var(--content)); }
.home .site-shell > .container { width: 100%; }
.inner-page .site-shell {
    --content: 1060px;
}
.directory-group p {
    margin: 0 0 4px;
    color: var(--dim);
    font-size: .74rem;
    font-weight: 670;
}
.directory-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-height: 33px;
    padding: 5px 0;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 620;
    line-height: 1.27;
}
.directory-group a:hover { color: var(--fire); }
.directory-group a[aria-current] {
    color: var(--fire);
}
.directory-group a[aria-current]::after { content: "›"; color: var(--orange); }
.menu { display: block; }
.menu summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 10px;
    list-style: none;
    border: 0;
    color: var(--ink);
    border-radius: 999px;
    background: transparent;
    font-size: .82rem;
    font-weight: 720;
    cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--fire); background: #fff5ed12; }
.menu-glyph {
    width: 13px;
    height: 9px;
    border-block: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.menu nav {
    position: fixed;
    z-index: 12;
    top: calc(var(--header-height) + 8px);
    right: max(16px, calc((100vw - var(--content)) / 2));
    width: min(550px, calc(100vw - 32px));
    max-height: calc(100dvh - var(--header-height) - 20px);
    padding: 20px 24px;
    overflow: auto;
    overscroll-behavior: contain;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    background: var(--panel);
    box-shadow: 0 15px 44px #0e0b0bd0;
}
.menu:not([open]) nav { display: none; }
.menu[open] nav { display: grid; }
.menu .directory-group { margin: 0; }
.menu .directory-group:first-child { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu .directory-group a { min-height: 44px; margin-block: 3px; }

.welcome-layout { display: grid; gap: 14px; }
.welcome-with-links { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.welcome-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 11px;
}
.welcome-link { display: flex; flex-direction: column; min-width: 0; gap: 7px; padding: clamp(10px, 1.18vw, 17px); border-radius: 10px; background: #191d31; }
.welcome-link:hover { background: #21253a; }
.welcome-link > span { color: var(--dim); font-size: .82rem; }
.welcome-link strong { color: var(--ink); font-size: clamp(1rem, 1.38vw, 1.35rem); line-height: 1.16; overflow-wrap: anywhere; }
.welcome-link:first-child strong { color: var(--fire); }
.welcome-link small { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 5px; margin-top: auto; padding: 6px 8px; border-radius: 6px; background: #242841; color: var(--ink); font-size: .76rem; line-height: 1.25; }
.welcome-link small span { color: var(--fire); }
.welcome-link:focus-visible { outline-offset: -3px; }
.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    border-radius: 14px;
    background: #0c1220;
}
.hero:not(.hero-custom) {
    background-image: linear-gradient(90deg, #101321 2%, #101321f5 28%, #11132470 70%, #15152740), url('/assets/hero-scene.webp');
    background-position: center, center right;
    background-size: cover;
}
.hero-layout {
    display: flex;
    align-items: center;
    width: calc(100% - 2 * clamp(22px, 3.5vw, 50px));
    min-height: clamp(265px, 20.4vw, 335px);
    padding-block: 25px;
    pointer-events: none;
}
.hero-copy {
    position: relative;
    z-index: 1;
    width: min(67%, 480px);
}
.hero-copy :is(h1, p, a) { pointer-events: auto; }
.hero-domain {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
    margin-top: 15px;
    color: var(--dim);
    font-size: .88rem;
}
.hero-domain strong { color: var(--fire); font-weight: 690; }
.hero h1, .article-hero h1 {
    font-weight: 780;
    line-height: 1.03;
    letter-spacing: -.055em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.hero h1 { font-size: clamp(2.85rem, 4.85vw, 5.2rem); text-wrap: pretty; line-height: .98; }
.hero:has(.hero-offer) h1 { font-size: clamp(1.23rem, 1.75vw, 1.65rem); line-height: 1.15; letter-spacing: -.028em; }
.hero-lead {
    max-width: 36ch;
    margin-top: 10px;
    color: var(--dim);
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
    line-height: 1.5;
}
.hero-offer { display: block; margin-top: 11px; color: var(--fire); font-weight: 745; font-size: clamp(1.72rem, 2.75vw, 2.62rem); line-height: 1.06; letter-spacing: -.041em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; }
.hero-actions .button { min-height: 51px; }
.hero-terms { display: inline-flex; align-items: center; column-gap: 3px; min-height: 44px; padding-inline: 10px; border-radius: 8px; background: #1b2031; color: var(--ink); font-size: .88rem; font-weight: 650; }
.hero-terms > span:last-child, .hero-terms:hover { color: var(--fire); }
.hero-terms:hover { background: #252b40; }
.hero-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    margin: 0 0 14px;
    border-radius: 11px;
    background: #191c2d;
}
.hero-catalog div { display: flex; min-width: 0; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 13px 16px; }
.hero-catalog div + div { border-left: 1px solid #282d41; }
.hero-catalog dt { color: var(--dim); font-size: .77rem; line-height: 1.3; }
.hero-catalog dd { margin: 0; color: var(--ink); font-size: clamp(1.08rem, 1.6vw, 1.46rem); font-weight: 715; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-art {
    position: absolute;
    inset: 0 0 0 49%;
    display: grid;
    place-items: center;
}
.hero-art:focus-visible { outline-offset: -4px; }
.hero-art img {
    object-fit: contain;
    width: min(100%, 348px);
    height: 94%;
    position: absolute;
    top: 3%;
    right: clamp(6px, 1.5vw, 28px);
}
.hero-photo img { width: 100%; height: 100%; top: 0; right: 0; object-position: right center; mask-image: linear-gradient(90deg, transparent, #000 31%); }
.slot-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: clamp(16px, 2.1vw, 25px);
    scroll-margin-top: calc(var(--header-height) + 12px);
}
.slot-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(154px, 21%); gap: 10px; }
.slot-filters :is(input, select) { min-width: 0; width: 100%; min-height: 46px; padding: 9px 13px; border: 1px solid #2b3046; border-radius: 9px; background: #181c30; color: var(--ink); font-size: .92rem; }
.slot-filters input::placeholder { color: var(--dim); }
.showcase-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.showcase-heading h2 { font-size: clamp(1.26rem, 2.1vw, 1.7rem); letter-spacing: -.028em; }
.showcase-link { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; margin-inline-start: auto; color: var(--fire); font-size: .87rem; font-weight: 660; }
.showcase-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.slot-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.slot-list li { position: relative; display: flex; min-width: 0; flex-direction: column; border-radius: 10px; background: #171b2c; }
.slot-list img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px 10px 0 0; background: #151928; }
.slot-caption { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 4px; padding: 8px 10px 5px; }
.slot-caption :is(strong, span) { overflow-wrap: anywhere; }
.slot-caption strong { font-size: .9rem; line-height: 1.25; }
.slot-caption span { color: var(--dim); font-size: .77rem; }
.slot-guide-trigger { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; margin: 0 6px 3px; padding: 5px 5px; border: 0; border-radius: 7px; background: transparent; color: var(--fire); font-size: .74rem; text-align: left; font-weight: 630; cursor: pointer; }
.slot-guide-trigger::after { position: absolute; inset: 0; border-radius: 10px; content: ""; }
.slot-guide-trigger:hover { background: #232840; }
.slot-empty { color: var(--dim); font-size: .95rem; }
.slot-guide { max-width: min(470px, calc(100% - 28px)); width: 100%; max-height: calc(100dvh - 28px); padding: clamp(17px, 4vw, 27px); border: 1px solid var(--line); border-radius: 14px; background: #191e31; color: var(--ink); }
.slot-guide::backdrop { background: #070913bc; }
.slot-guide-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.slot-guide-header h2 { font-size: clamp(1.25rem, 3.1vw, 1.65rem); line-height: 1.2; overflow-wrap: anywhere; }
.slot-guide-header p { margin-bottom: 5px; color: var(--dim); font-size: .86rem; }
.slot-guide-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: #242940; color: var(--ink); font-size: 1.55rem; cursor: pointer; }
.slot-guide-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.slot-guide-actions .button { min-height: 44px; font-size: .87rem; }
.slot-guide [role="status"]:not(:empty) { margin-top: 8px; color: var(--dim); font-size: .83rem; }
.home-promo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "label tiers actions" "status status status";
    align-items: center;
    column-gap: clamp(12px, 2.5vw, 30px);
    min-height: 82px;
    margin-top: clamp(18px, 2.3vw, 30px);
    padding-block: 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.home-promo-title, .home-promo-tiers, .home-promo-link, .home-promo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-promo-title { grid-area: label; flex-wrap: wrap; font-weight: 650; }
.home-promo-title code {
    color: var(--fire);
    font: 700 .89rem/1.2 ui-monospace, Consolas, monospace;
}
.home-promo-tiers {
    grid-area: tiers;
    flex-wrap: wrap;
    gap: 4px clamp(10px, 2vw, 24px);
    color: var(--dim);
    font-size: .88rem;
}
.home-promo-tiers strong, .home-promo-link { color: var(--fire); }
.home-promo-actions { grid-area: actions; gap: 14px; }
.home-promo-link, .home-promo-copy { min-height: 44px; font-size: .86rem; font-weight: 680; }
.home-promo-copy { padding: 7px 15px; }
.home-promo-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-promo .promo-copy-status { grid-area: status; font-size: .83rem; }
.related-card:hover strong { color: var(--fire); }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: clamp(19px, 3vw, 38px) 0 9px;
    color: var(--dim);
    font-size: .82rem;
}
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumbs a:hover { color: var(--fire); }
.article-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(15px, 3vw, 40px) 0 clamp(31px, 5vw, 66px);
}
.article-hero h1 { max-width: 24ch; font-size: clamp(2.2rem, 5vw, 4.6rem); }
.article-lead {
    max-width: 70ch;
    margin-top: 13px;
    color: var(--dim);
    font-size: clamp(.99rem, 1.5vw, 1.11rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.article-art {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: 40%;
    height: 100%;
    object-fit: cover;
    opacity: .33;
    mask-image: radial-gradient(ellipse, #000, transparent 70%);
}

.promo-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 11px;
    min-height: 44px;
    margin-top: 14px;
    padding-block: 8px;
    color: #ffb28a;
    font-size: .9rem;
    font-weight: 710;
}
.promo-inline span { color: var(--dim); font-weight: 530; }
.promo-inline:hover { text-decoration: underline; text-underline-offset: 4px; }
.promo-offer {
    display: grid;
    grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
    gap: 10px 26px;
    margin-top: 19px;
    padding-block: clamp(15px, 3vw, 28px);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-height) + 12px);
}
.promo-offer-head { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; align-self: center; }
.promo-offer code {
    color: #ffb78f;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: .055em;
    user-select: all;
}
.promo-copy { min-height: 44px; padding: 8px 12px; font-size: .85rem; }
.promo-offer table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.promo-offer th, .promo-offer td { padding: 6px 0; border-bottom: 1px solid #48404a; text-align: left; }
.promo-offer thead th { color: #cabac8; font-size: .81rem; font-weight: 650; }
.promo-offer tbody th { font-weight: 650; }
.promo-offer td, .promo-offer th:last-child { text-align: right; }
.promo-offer td { color: #ffc29d; font-size: 1.31rem; font-weight: 780; }
.promo-offer p { grid-column: 1 / -1; color: var(--dim); font-size: .89rem; }
.promo-copy-status:empty { display: none; }
.promo-copy-status { color: var(--fire) !important; }

.reading-layout { margin-top: clamp(24px, 4.4vw, 54px); }
.home-reading, .article-reading {
    display: grid;
    align-items: start;
    gap: clamp(22px, 5vw, 70px);
}
.home-reading { grid-template-columns: minmax(0, 1fr) minmax(255px, .58fr); grid-template-areas: "body sidebar"; }
.article-reading { grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); grid-template-areas: "sidebar body"; }
.home-reading .article-body, .article-reading .article-body { grid-area: body; }
.info-panel, .section-links { grid-area: sidebar; }
.section-links {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    max-height: calc(100dvh - var(--header-height) - 30px);
    overflow: auto;
    padding-right: 16px;
    color: var(--dim);
    font-size: .84rem;
}
.section-menu summary {
    min-height: 36px;
    padding-block: 7px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 690;
    cursor: pointer;
}
.section-menu summary::marker { color: var(--fire); }
.section-index { display: grid; }
.section-index a { display: flex; align-items: center; min-height: 37px; padding-block: 4px; }
.section-index a:hover, .section-index a[aria-current] { color: var(--fire); }
.section-index a[aria-current] { font-weight: 690; }
.article-body section { scroll-margin-top: calc(var(--header-height) + 13px); }
.article-body section + section { margin-top: clamp(28px, 4vw, 52px); }
.article-body h2, .related h2, .info-panel h2, .directory-section h2 {
    font-size: clamp(1.33rem, 2.5vw, 1.9rem);
    line-height: 1.16;
    letter-spacing: -.027em;
}
.article-body p { max-width: 74ch; margin-top: 12px; color: #ded9e0; line-height: 1.72; overflow-wrap: anywhere; }
.catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
    gap: 6px 22px;
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--dim);
    font-size: .89rem;
    overflow-wrap: anywhere;
}
.catalog-list li::marker { color: var(--fire); }
.detail-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
}
.detail-table caption { padding-bottom: 7px; color: var(--dim); font-size: .86rem; text-align: left; }
.detail-table th, .detail-table td { padding: 8px 9px 8px 0; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.detail-table thead th { color: var(--fire); font-weight: 680; }
.detail-table tbody th { width: 28%; font-weight: 650; }
.detail-table td { color: #ded9e0; }
.detail-table-numbers { table-layout: fixed; }
.detail-table-numbers thead th { position: sticky; top: calc(var(--header-height) + 1px); z-index: 1; background: var(--panel); box-shadow: 0 1px var(--line); }
.detail-table-numbers .table-group-start > * { border-top: 1px solid #795244; }
.detail-table-numbers th:first-child, .detail-table-numbers th:nth-child(2) { width: 15%; }
.detail-table-numbers th:nth-child(n + 3), .detail-table-numbers td:nth-child(n + 3) { text-align: right; }
.detail-table-numbers td:nth-child(n + 3) { white-space: nowrap; }
.info-panel { min-width: 0; }
.facts { margin: 12px 0 0; }
.facts > div {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 7px 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--dim); font-size: .9rem; }
.facts dd { margin: 0; font-size: .91rem; font-weight: 680; overflow-wrap: anywhere; }
.facts a { color: var(--fire); }
.facts a:hover { text-decoration: underline; }
.article-cta { margin-top: 20px; }

.related, .directory-section { margin: 36px 0 40px; }
.page-directory { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.page-directory .directory-group { display: flex; flex-direction: column; gap: 5px; }
.page-directory .directory-group p { margin-left: 0; }
.page-directory .directory-group a { min-height: 44px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; border-top: 1px solid var(--line); }
.related-card { min-width: 0; padding-block: 12px; }
.related-card strong { display: flex; justify-content: space-between; gap: 7px; }
.related-card strong span { color: var(--fire); }
.related-card p { margin-top: 3px; color: var(--dim); font-size: .84rem; overflow-wrap: anywhere; }

.site-footer { margin-top: 15px; background: var(--panel); }
.footer-layout { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 24px 0; }
.footer-layout .brand { font-size: 24px; }
.footer-layout p, .footer-layout nav a { color: var(--dim); font-size: .82rem; }
.footer-layout p { margin-top: 4px; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-layout nav a:hover { color: var(--fire); }
.footer-age { display: flex; align-items: center; gap: 8px; max-width: 218px; }
.footer-age strong {
    display: inline-grid;
    place-items: center;
    flex: 0 0 33px;
    height: 33px;
    border: 1px solid #886352;
    border-radius: 50%;
    color: #ffd1b5;
}
.mobile-action { display: none; }

@media (prefers-reduced-motion: no-preference) {
    :where(.button, .home-promo, .related-card, .directory-group a, .promo-inline) { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
    .button-cta span { transition: transform 160ms ease; }
    .button-cta:hover span { transform: translate(1px, -1px); }
    .hero-art img { transition: transform 350ms ease-out; }
    .hero-art:hover img, .hero-art:focus-visible img { transform: scale(1.035); }
    .menu[open] nav { animation: show-directory 150ms ease-out; }
    @keyframes show-directory { from { opacity: 0; transform: translateY(-5px); } }
}

@media (min-width: 1041px) {
    .header-links { display: none; }
    .home .header-login { padding-inline: 14px; border-radius: 8px; background: #1b2033; color: var(--ink); }
    .home .header-login:hover { color: var(--fire); }
}
@media (min-width: 1320px) {
    .welcome-with-links { grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); }
}
@media (max-width: 1319px) {
    .slot-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .welcome-with-links { grid-template-columns: minmax(0, 1fr); }
    .welcome-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .welcome-link { padding: 12px; gap: 5px; }
    .slot-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
    .site-layout { display: block; width: calc(100% - 40px); }
    .site-header .container { width: calc(100% - 40px); }
    .header-brandline .brand { min-width: 0; }
    .lobby-sidebar { display: none; }
}
@media (max-width: 840px) {
    .header-links { display: none; }
}
@media (max-width: 750px) {
    :root { --header-height: 59px; }
    html:has(.mobile-action:not([hidden])) { scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
    .container { width: calc(100% - 32px); }
    .site-layout, .site-header .container { width: calc(100% - 32px); }
    .header-actions { gap: 7px; }
    .header-catalog { display: none; }
    .brand { gap: 5px; font-size: 25px; }
    .brand .brand-mark { width: 32px; height: 32px; }
    .brand .brand-wordmark { width: 65px; height: 20px; }
    .header-register { padding-inline: 8px; }
    .header-cta { display: none; }
    .menu summary { min-height: 44px; }
    .menu nav { inset-inline: 16px; width: auto; max-width: 510px; margin-left: auto; }
    .hero-layout { min-height: 237px; width: calc(100% - 2 * clamp(15px, 4.5vw, 30px)); padding-block: 18px; }
    .hero-copy { width: 100%; }
    .hero:not(.hero-custom) { background-image: linear-gradient(90deg, #101321 0%, #101321ee 45%, #13152590 100%), url('/assets/hero-scene.webp'); }
    .hero-art { inset: 0 0 0 36%; }
    .hero-art img {
        right: 0;
        top: 4%;
        width: min(100%, 285px);
        height: 77%;
        object-position: right center;
        mask-image: linear-gradient(90deg, transparent, #000 37%);
    }
    .hero-photo img { height: 88%; }
    .hero h1 { font-size: clamp(2.55rem, 7.5vw, 3.7rem); }
    .hero-domain { margin-top: 10px; }
    .hero-lead { max-width: 30ch; }
    .hero-actions { margin-top: 10px; }
    .hero-actions .button { min-height: 44px; padding-inline: 12px; font-size: .9rem; }
    .slot-showcase { gap: 10px; }
    .slot-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-promo { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label actions" "tiers tiers" "status status"; row-gap: 4px; }
    .breadcrumbs { padding-top: 15px; }
    .article-hero { padding-bottom: 20px; }
    .article-hero h1 { max-width: 28ch; }
    .reading-layout { margin-top: 24px; }
    .home-reading, .article-reading { grid-template-columns: minmax(0, 1fr); }
    .home-reading { grid-template-areas: "sidebar" "body"; }
    .article-reading { grid-template-areas: "sidebar" "body"; }
    .section-links { position: static; max-height: none; padding: 0 0 3px; border-bottom: 1px solid var(--line); }
    .section-menu summary { min-height: 44px; padding-block: 11px; }
    .section-index a { min-height: 44px; }
    .related, .directory-section { margin: 24px 0 28px; }
    .page-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-directory .directory-group:last-child { grid-column: 1 / -1; }
    .footer-layout { grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 18px; }
    .footer-layout nav { grid-column: 1 / -1; grid-row: 2; }
    .footer-age { justify-self: end; }
    .mobile-action {
        position: fixed;
        z-index: 8;
        bottom: 0;
        inset-inline: 0;
        display: flex;
        align-items: stretch;
        gap: 8px;
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        box-shadow: 0 -8px 24px #10101898;
    }
    .mobile-action .button { flex: 2 1 100px; min-width: 0; min-height: 44px; padding-inline: 8px; font-size: .84rem; overflow-wrap: anywhere; }
    .mobile-section { display: grid; place-items: center; flex: 1 0 auto; min-width: 44px; min-height: 44px; padding: 2px 4px; border: 0; border-radius: 7px; background: #1a1e30; color: var(--ink); font-size: .82rem; font-weight: 650; cursor: pointer; }
    .mobile-section:hover { color: var(--fire); }
}
@media (max-width: 540px) {
    .header-login, .header-register { font-size: .82rem; }
    .hero-domain { display: none; }
    .hero-layout { min-height: 216px; }
    .hero h1 { font-size: clamp(2.15rem, 10.5vw, 3.4rem); }
    .hero-lead { margin-top: 9px; max-width: 32ch; font-size: .89rem; line-height: 1.35; }
    .hero-offer { font-size: clamp(1.58rem, 6.4vw, 2.16rem); }
    .hero:not(.hero-custom) { background-image: linear-gradient(90deg, #101321 0%, #101321ee 60%, #13152590 100%), url('/assets/hero-scene.webp'); }
    .hero-art { inset-inline-start: 43%; }
    .hero-art img { opacity: .67; height: 69%; mask-image: linear-gradient(90deg, transparent, #000 65%); }
    .hero-actions .button { gap: 7px; padding-inline: 10px; font-size: .84rem; }
    .hero-terms { font-size: .8rem; }
    .welcome-links { display: none; }
    .hero-catalog { margin-bottom: 9px; }
    .hero-catalog div { padding: 9px 9px; }
    .hero-catalog dt { font-size: .72rem; }
    .slot-filters { grid-template-columns: minmax(0, 1fr) minmax(99px, 38%); gap: 7px; }
    .slot-filters :is(input, select) { min-height: 43px; padding-inline: 9px; font-size: .82rem; }
    .slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
    .home-promo-actions { gap: 11px; }
    .home-promo-copy { padding-inline: 9px; }
    .home-promo-title { font-size: .91rem; }
    .promo-offer { display: block; }
    .promo-offer-head { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
    .promo-offer table { margin-top: 9px; }
    .promo-offer p { margin-top: 10px; }
    .detail-table-numbers { font-size: .79rem; }
    .detail-table-numbers th, .detail-table-numbers td { padding-inline: 0 3px; }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 374px) {
    .header-register { display: none; }
    .showcase-heading { column-gap: 7px; }
    .showcase-heading h2 { font-size: 1.12rem; }
    .showcase-link { font-size: .76rem; }
    .mobile-section { font-size: .74rem; }
}
@media (max-width: 399px) {
    .hero-actions { column-gap: 7px; }
    .hero-terms { padding-inline: 6px; }
    .hero-terms-detail { display: none; }
    .hero:not(.hero-custom) { background-image: linear-gradient(90deg, #101321 0%, #101321f7 57%, #131525af 100%), url('/assets/hero-scene.webp'); }
    .hero-art { inset-inline-start: 51%; }
    .hero-art img { opacity: .64; mask-image: linear-gradient(90deg, transparent, #000 85%); }
}
@media (max-width: 350px) {
    .container, .site-layout, .site-header .container { width: calc(100% - 24px); }
    .header-layout { gap: 6px; }
    .brand { font-size: 22px; }
    .brand .brand-mark { width: 27px; height: 27px; }
    .menu summary { padding-inline: 7px; }
    .menu-glyph { display: none; }
}

