/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
    --bg: #050911;
    --bg-2: #07101a;
    --bg-3: #0b1626;

    --panel: rgba(10, 18, 31, 0.84);
    --panel-strong: rgba(8, 15, 26, 0.94);
    --panel-soft: rgba(15, 24, 38, 0.78);

    --text: #edf3fb;
    --text-soft: #dbe6f5;

    --muted: #9aa8bc;
    --muted-2: #8492a6;

    --line: rgba(78, 109, 156, 0.20);
    --line-strong: rgba(113, 150, 214, 0.28);
    --line-bright: rgba(149, 187, 255, 0.42);

    --accent: #86adff;
    --accent-2: #c7dbff;
    --accent-3: #6c99ff;

    --accent-glow: rgba(103, 153, 255, 0.20);
    --accent-glow-strong: rgba(103, 153, 255, 0.34);

    --success: #9ed1ff;
    --danger: #ff6b7d;

    --max: 1180px;
    --wide: 1320px;
    --reading: 760px;

    --radius: 24px;
    --radius-lg: 32px;
    --radius-sm: 16px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
    --shadow-main: 0 24px 80px rgba(0, 0, 0, 0.34);
    --shadow-hero: 0 40px 120px rgba(0, 0, 0, 0.44);

    --header-height: 86px;
}

/* =========================================================
   02. RESET / BASE
   ========================================================= */

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

html {
    margin: 0;
    padding: 0;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(80, 123, 205, 0.15), transparent 18%),
        radial-gradient(circle at 78% 16%, rgba(61, 118, 255, 0.08), transparent 18%),
        radial-gradient(circle at 50% 0%, rgba(22, 54, 107, 0.12), transparent 28%),
        linear-gradient(180deg, #050911 0%, #07101a 34%, #060c15 100%);
    font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    appearance: none;
    -webkit-appearance: none;
}

::selection {
    background: rgba(114, 162, 255, 0.24);
    color: #ffffff;
}

/* =========================================================
   03. PAGE SHELL / CONTAINERS
   ========================================================= */

.shell {
    min-height: 100vh;
}

.container {
    width: min(var(--max), calc(100% - 72px));
    margin-left: auto;
    margin-right: auto;
}

.container-wide {
    width: min(var(--wide), calc(100% - 72px));
    margin-left: auto;
    margin-right: auto;
}

.narrow {
    width: min(var(--reading), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.reading-wrap {
    width: min(var(--reading), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   04. HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 10, 16, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-row,
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brand-mark {
    letter-spacing: 0.12em;
    font-size: 15px;
    font-weight: 800;
    color: #f4f8ff;
    text-transform: uppercase;
}

.brand-sub {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
}

.brand-with-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(139, 178, 255, 0.06);
    box-shadow:
        0 0 0 1px rgba(139, 178, 255, 0.16),
        0 0 24px rgba(139, 178, 255, 0.12);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--accent-2);
    font-size: 18px;
    position: relative;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(134, 173, 255, 0.75),
        transparent
    );
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: #eef5ff;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   05. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.08;
    color: #f7fbff;
}

h1 {
    font-size: clamp(42px, 7vw, 88px);
    letter-spacing: -0.035em;
    max-width: 920px;
}

h2 {
    font-size: clamp(28px, 4vw, 58px);
    letter-spacing: -0.028em;
}

h3 {
    font-size: 26px;
    letter-spacing: -0.02em;
}

p {
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 800;
}

.hero-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 800;
}

.meta,
.muted {
    color: var(--muted);
}

.meta {
    font-size: 15px;
    line-height: 1.5;
}

.muted {
    font-size: 17px;
    line-height: 1.65;
}

.lead {
    max-width: 840px;
    color: #dce6f4;
    font-size: 21px;
    line-height: 1.72;
}

.article-text {
    color: #e5edf8;
}

.article-text p {
    margin: 0 0 1.2em;
    font-size: 20px;
    line-height: 1.95;
    color: #ecf2fa;
}

.article-text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   06. SECTIONS / GRIDS
   ========================================================= */

.section {
    padding: 34px 0;
}

.section-soft {
    padding-bottom: 88px;
}

.section-head,
.section-head-spaced {
    margin-bottom: 18px;
}

.section-head h2,
.section-head-spaced h2 {
    margin-bottom: 0;
}

.section-head-spaced {
    margin-top: 48px;
}

.grid {
    display: grid;
    gap: 26px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack {
    display: grid;
    gap: 18px;
}

/* =========================================================
   07. CARDS
   ========================================================= */

.hero-box,
.card,
.reader,
.chapter-end {
    background: linear-gradient(
        180deg,
        rgba(14, 22, 35, 0.92),
        rgba(9, 15, 25, 0.96)
    );
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-main);
}

.card {
    padding: 30px;
    background: linear-gradient(
        180deg,
        rgba(12, 19, 31, 0.92),
        rgba(8, 13, 22, 0.96)
    );
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(116, 156, 230, 0.34);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.feature-card {
    padding: 38px;
}

.feature-card-main {
    position: relative;
    overflow: hidden;
}

.feature-card-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 22%, rgba(87, 136, 255, 0.12), transparent 16%),
        linear-gradient(
            90deg,
            transparent 70%,
            rgba(92, 142, 255, 0.08) 82%,
            transparent 88%
        );
    pointer-events: none;
}

.feature-copy {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

/* =========================================================
   08. HOME HERO — CLEAN FINAL VERSION
   ========================================================= */

.hero {
    padding-top: 20px;
    padding-bottom: 32px;
}

.hero-home {
    position: relative;
    z-index: 1;
    padding-top: 14px !important;
    padding-bottom: 28px;
    margin-top: 0 !important;
}

.hero-home .container {
    width: min(var(--wide), calc(100% - 68px));
    margin-left: auto;
    margin-right: auto;
    padding-top: 0 !important;
}

.hero-box {
    min-height: auto;
    padding: 56px;
}

.hero-box-home {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 660px) 1fr;
    align-items: center;

    padding: 46px 72px 54px !important;

    background:
        linear-gradient(
            90deg,
            rgba(3, 7, 13, 0.97) 0%,
            rgba(3, 7, 13, 0.94) 22%,
            rgba(3, 7, 13, 0.84) 40%,
            rgba(3, 7, 13, 0.58) 58%,
            rgba(3, 7, 13, 0.28) 74%,
            rgba(3, 7, 13, 0.10) 100%
        ),
        url('/public/assets/hero-main.webp') right center / cover no-repeat;

    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hero);
}

.hero-box-home::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(circle at 76% 34%, rgba(103, 153, 255, 0.14), transparent 12%),
        radial-gradient(circle at 66% 52%, rgba(72, 131, 255, 0.09), transparent 22%),
        linear-gradient(
            90deg,
            transparent 55%,
            rgba(102, 160, 255, 0.05) 63%,
            rgba(102, 160, 255, 0.10) 68%,
            rgba(102, 160, 255, 0.03) 72%,
            transparent 76%
        );
}

.hero-box-home::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(6, 11, 18, 0.02) 0%,
        rgba(6, 11, 18, 0.18) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    grid-column: 1;
    width: 100%;
    max-width: 660px;
}

.hero-inner {
    width: 100%;
    max-width: 660px;
    margin-left: 0;
}

.hero-title {
    margin: 0 0 20px;
}

.hero-home .hero-title {
    max-width: 660px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.hero-text {
    max-width: 600px;
    color: var(--text-soft);
    font-size: 24px;
    line-height: 1.55;
}

.hero-home .hero-text,
.hero-home .hero-subtext {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.50);
}

.hero-subtext {
    max-width: 760px;
    margin: 18px 0 0;
    color: #aebbd0;
    font-size: 18px;
    line-height: 1.72;
}

/* =========================================================
   09. HERO ACTIONS / META
   ========================================================= */

.hero-actions,
.next-actions,
.reaction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-actions {
    margin-top: 26px;
    margin-bottom: 16px;
}

.hero-actions a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(139, 178, 255, 0.30);
    background: rgba(6, 12, 22, 0.18);
    color: #e7f0ff;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.hero-actions a:hover {
    border-color: rgba(139, 178, 255, 0.62);
    background: rgba(139, 178, 255, 0.10);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(80, 140, 255, 0.12);
}

.hero-actions a:first-child {
    background: rgba(139, 178, 255, 0.12);
    color: #f3f7ff;
    border: 1px solid rgba(139, 178, 255, 0.38);
    box-shadow: none;
}

.hero-actions a:first-child:hover {
    background: rgba(139, 178, 255, 0.18);
    border-color: rgba(139, 178, 255, 0.58);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(200, 220, 255, 0.62);
}

.hero-meta span {
    position: relative;
    padding: 6px 12px 6px 16px;
    border-radius: 999px;
    background: rgba(139, 178, 255, 0.08);
    border: 1px solid rgba(139, 178, 255, 0.16);
}

.hero-meta span::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.62;
    transform: translateY(-50%);
}

.hero-release-status {
    margin-top: 12px;
    color: rgba(200, 220, 255, 0.58);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   10. BUTTONS
   ========================================================= */

.button,
.reaction-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    border: 1px solid var(--line);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.button-primary {
    background: linear-gradient(180deg, #9ec0ff 0%, #7ea7f5 100%);
    color: #06101c;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(103, 153, 255, 0.24);
}

.button-secondary,
.reaction-button {
    background: rgba(10, 17, 28, 0.28);
    color: var(--text);
    border-color: rgba(84, 118, 177, 0.26);
}

.button:hover,
.reaction-button:hover {
    transform: translateY(-2px);
}

.button:active,
.reaction-button:active {
    transform: translateY(0);
}

.button-primary:hover {
    box-shadow:
        0 16px 36px rgba(103, 153, 255, 0.30),
        0 0 20px rgba(111, 211, 255, 0.16);
}

.button-primary:active {
    box-shadow: 0 0 10px rgba(111, 211, 255, 0.4);
}

.button-secondary:hover,
.reaction-button:hover {
    border-color: rgba(125, 166, 238, 0.36);
    background: rgba(13, 22, 36, 0.48);
    box-shadow: 0 0 20px rgba(111, 211, 255, 0.10);
}

.button-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-height: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(207, 224, 255, 0.42);
    cursor: default;
    border: 1px dashed rgba(139, 178, 255, 0.18);
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   11. LINKS
   ========================================================= */

.text-link,
.back-link {
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.text-link:hover,
.back-link:hover {
    opacity: 0.92;
    color: #eef5ff;
}

/* =========================================================
   12. GENERAL CONTENT CARDS
   ========================================================= */

.book-card,
.chapter-card,
.world-card,
.character-card,
.system-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-meta,
.chapter-meta,
.world-meta,
.character-meta {
    color: var(--muted);
    font-size: 15px;
}

.book-actions,
.chapter-actions,
.world-actions,
.character-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.chapter-card p,
.world-card p,
.character-card p,
.system-card p {
    color: var(--text-soft);
}

.chapter-card p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid .card {
    min-height: 300px;
}

/* =========================================================
   13. READING PAGE / CHAPTER HEADER
   ========================================================= */

.reading-top {
    margin-bottom: 26px;
}

.reading-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.chapter-next-top {
    white-space: nowrap;
}

.button.button-primary.chapter-next-top {
    padding: 10px 18px;
    min-height: auto;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(139, 178, 255, 0.18);
    border: 1px solid rgba(139, 178, 255, 0.32);
    color: #e8f0ff;
    box-shadow: 0 12px 36px rgba(60, 110, 220, 0.12);
}

.button.button-primary.chapter-next-top:hover {
    background: rgba(139, 178, 255, 0.25);
    border-color: rgba(139, 178, 255, 0.46);
    transform: translateY(-1px);
}

.button.button-disabled.chapter-next-top {
    padding: 10px 18px;
    min-height: auto;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.035);
    border: 1px dashed rgba(139, 178, 255, 0.18);
    color: rgba(207, 224, 255, 0.42);
    box-shadow: none;
}

.reading-top .meta {
    margin-bottom: 20px;
}

.reading-top h1 {
    margin-bottom: 22px;
}

.reading-top .muted {
    margin-bottom: 0;
}

/* =========================================================
   14. CHAPTER COVER / CINEMATIC FRAME
   ========================================================= */

.chapter-cover {
    position: relative;
    margin: 28px 0 44px;
    border-radius: 28px;
    padding: 1px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(139, 178, 255, 0.45),
            rgba(255, 255, 255, 0.04),
            rgba(139, 178, 255, 0.16)
        );
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(139, 178, 255, 0.12);
    transform: translateZ(0);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.chapter-cover::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 2;
    pointer-events: none;
    border-radius: 27px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0) 24%
        ),
        linear-gradient(
            0deg,
            rgba(5, 9, 17, 0.55),
            rgba(5, 9, 17, 0) 42%
        );
}

.chapter-cover::after {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.14) 48%,
        transparent 62%
    );
    transform: translateX(-70%);
    opacity: 0;
    transition:
        transform 0.7s ease,
        opacity 0.35s ease;
}

.chapter-cover img {
    width: 100%;
    height: 300px;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 27px;
    filter: brightness(0.9) contrast(1.06) saturate(0.95);
    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}

.chapter-cover:hover {
    transform: scale(1.012) translateY(-3px);
    box-shadow:
        0 36px 110px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(139, 178, 255, 0.22),
        0 0 42px rgba(91, 142, 255, 0.14);
}

.chapter-cover:hover img {
    transform: scale(1.035);
    filter: brightness(0.98) contrast(1.1) saturate(1.04);
}

.chapter-cover:hover::after {
    opacity: 1;
    transform: translateX(70%);
}

/* =========================================================
   15. READER BODY
   ========================================================= */

.reader {
    position: relative;
    padding: 52px 54px;
    border-radius: 28px;
    border: 1px solid rgba(110, 145, 208, 0.16);
    background:
        linear-gradient(
            180deg,
            rgba(10, 16, 26, 0.97) 0%,
            rgba(8, 13, 22, 0.98) 100%
        );
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.reader::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 0%, rgba(99, 149, 255, 0.05), transparent 18%),
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.01) 100%);
}

.reader p {
    position: relative;
    z-index: 1;
    margin: 0 0 1.45em;
    font-size: 21px;
    line-height: 1.95;
    letter-spacing: 0.002em;
    color: #eef4fb;
    max-width: 100%;
}

.reader p:first-child {
    font-size: 22px;
    color: #f6faff;
}

.reader p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   16. CHAPTER END / REACTIONS
   ========================================================= */

.chapter-end {
    margin-top: 26px;
    padding: 30px 32px;
    border-radius: 24px;
    border: 1px solid rgba(98, 135, 194, 0.16);
    background:
        linear-gradient(
            180deg,
            rgba(11, 17, 27, 0.92),
            rgba(8, 13, 22, 0.96)
        );
}

.chapter-end h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 42px);
}

.chapter-end .muted {
    max-width: 760px;
    line-height: 1.7;
}

.chapter-end .reaction-row {
    margin-top: 18px;
}

.chapter-end .reaction-button {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(113, 154, 223, 0.20);
    background:
        linear-gradient(
            180deg,
            rgba(13, 22, 36, 0.80),
            rgba(10, 17, 28, 0.96)
        );
    color: #eef4fb;
    font-size: 17px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.chapter-end .reaction-button:hover {
    border-color: rgba(140, 179, 243, 0.34);
    background:
        linear-gradient(
            180deg,
            rgba(15, 25, 40, 0.92),
            rgba(12, 19, 31, 0.98)
        );
}

.reaction-button.is-active {
    border-color: rgba(158, 194, 255, 0.52);
    background:
        linear-gradient(
            180deg,
            rgba(139, 178, 255, 0.18),
            rgba(80, 120, 190, 0.10)
        );
    box-shadow:
        0 0 0 1px rgba(139, 178, 255, 0.10),
        0 0 26px rgba(103, 153, 255, 0.12);
}

.reaction-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: rgba(207, 224, 255, 0.72);
    font-size: 15px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.reaction-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.next-actions {
    margin-top: 24px;
}

/* =========================================================
   17. RELATED BLOCKS / CHAPTER NAV
   ========================================================= */

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
    align-items: stretch;
}

.related-grid .card {
    min-height: 100%;
    padding: 28px 30px;
    background:
        linear-gradient(
            180deg,
            rgba(12, 19, 31, 0.94),
            rgba(8, 13, 22, 0.98)
        );
    border: 1px solid rgba(95, 132, 193, 0.18);
}

.related-grid .card h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.related-grid .card .muted {
    margin-bottom: 16px;
    color: #aab8cb;
    line-height: 1.7;
}

.link-list {
    margin: 12px 0 0;
    padding-left: 0;
    list-style: none;
}

.link-list li {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.link-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.link-list a {
    color: #dfe9f8;
    font-size: 17px;
    line-height: 1.55;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.link-list a:hover {
    color: #ffffff;
    opacity: 0.95;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-bottom: 48px;
}

/* =========================================================
   18. WORLD HERO
   ========================================================= */

.world-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(12, 19, 31, 0.92),
            rgba(8, 13, 22, 0.96)
        );
}

.world-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 17, 0.92) 0%,
            rgba(5, 9, 17, 0.78) 34%,
            rgba(5, 9, 17, 0.42) 60%,
            rgba(5, 9, 17, 0.16) 100%
        ),
        url('/public/assets/world-hero.webp') 64% center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.world-hero > * {
    position: relative;
    z-index: 1;
}

.world-card {
    padding: 30px;
}

.world-card .world-meta {
    color: var(--muted);
    font-size: 15px;
}

.world-card h3 {
    margin-bottom: 10px;
}

.world-card p {
    line-height: 1.7;
}

.world-actions {
    margin-top: auto;
}

/* =========================================================
   19. CHARACTERS INDEX
   ========================================================= */

.characters-hero-box {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 17, 0.96) 0%,
            rgba(5, 9, 17, 0.82) 35%,
            rgba(5, 9, 17, 0.55) 60%,
            rgba(5, 9, 17, 0.12) 100%
        ),
        radial-gradient(
            circle at 75% 50%,
            rgba(120, 180, 255, 0.20),
            transparent 65%
        ),
        url('/public/assets/img/cast.png') right center / cover no-repeat;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-hero);
}

.characters-hero-box > * {
    position: relative;
    z-index: 2;
}

.character-card {
    overflow: hidden;
    padding: 0;
}

.character-card .character-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.04);
}

.character-card .character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92) contrast(1.04);
    transition:
        transform 0.42s ease,
        filter 0.42s ease;
}

.character-card:hover .character-image img {
    transform: scale(1.05);
    filter: brightness(0.98) contrast(1.08);
}

.character-card .character-body {
    padding: 24px;
}

.character-card .character-meta {
    color: var(--muted);
    font-size: 15px;
}

.character-card h3 {
    margin-bottom: 10px;
}

.character-card p {
    line-height: 1.7;
}

.character-actions {
    margin-top: auto;
}

/* =========================================================
   20. SINGLE CHARACTER PROFILE
   ========================================================= */

.character-profile {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
}

.character-profile-image {
    position: relative;
    width: 100%;
    height: 460px;
    max-height: 460px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.character-profile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(5, 10, 20, 0.06),
            rgba(5, 10, 20, 0.26)
        );
    pointer-events: none;
}

.character-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.86) contrast(1.08);
}

.character-profile-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.character-profile-body .eyebrow {
    margin-bottom: 0;
}

.character-profile-body h1 {
    margin-bottom: 0;
}

.character-profile-body .hero-text {
    max-width: 720px;
    font-size: 25px;
    line-height: 1.55;
}

.character-profile-body .hero-subtext {
    margin-top: 0;
    max-width: 680px;
}

/* =========================================================
   21. BANNERS / POSTERS / UTILITY CARDS
   ========================================================= */

.banner-section {
    position: relative;
    overflow: hidden;
    padding: 34px 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(
            90deg,
            rgba(8, 15, 27, 0.94) 0%,
            rgba(10, 18, 32, 0.88) 40%,
            rgba(8, 14, 25, 0.84) 100%
        );
    box-shadow: var(--shadow-main);
}

.banner-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 50%, rgba(116, 169, 255, 0.14), transparent 16%),
        linear-gradient(
            90deg,
            transparent 68%,
            rgba(124, 175, 255, 0.12) 70%,
            transparent 74%
        );
    pointer-events: none;
}

.poster-card {
    overflow: hidden;
    padding: 0;
}

.poster-card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0b1320;
}

.poster-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-card-body {
    padding: 24px;
}

/* =========================================================
   22. PAGE HEAD / DATA LISTS
   ========================================================= */

.page-head {
    margin-bottom: 22px;
}

.page-lead {
    max-width: 840px;
    color: var(--text-soft);
    font-size: 20px;
    line-height: 1.7;
}

.list-clean {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kv {
    display: grid;
    gap: 12px;
}

.kv-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}

.kv-key {
    color: var(--muted);
    font-size: 15px;
}

.kv-value {
    color: var(--text);
}

/* =========================================================
   23. FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 56px;
    background: rgba(4, 8, 13, 0.36);
}

.site-footer .footer-row {
    min-height: 92px;
    color: #dce7f7;
    font-size: 17px;
}

/* =========================================================
   24. ANIMATION HELPERS
   ========================================================= */

.center {
    text-align: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================================
   25. RESPONSIVE — LARGE / TABLET
   ========================================================= */

@media (max-width: 1180px) {
    :root {
        --header-height: 82px;
    }

    .container,
    .container-wide {
        width: min(100%, calc(100% - 56px));
    }

    h1 {
        max-width: 760px;
    }

    .hero-text {
        max-width: 720px;
        font-size: 22px;
    }

    .hero-box-home {
        min-height: 500px;
        grid-template-columns: minmax(0, 620px) 1fr;
        padding: 42px 56px 50px !important;
        background:
            linear-gradient(
                90deg,
                rgba(3, 7, 13, 0.97) 0%,
                rgba(3, 7, 13, 0.94) 26%,
                rgba(3, 7, 13, 0.82) 44%,
                rgba(3, 7, 13, 0.58) 60%,
                rgba(3, 7, 13, 0.26) 76%,
                rgba(3, 7, 13, 0.10) 100%
            ),
            url('/public/assets/hero-main.webp') 72% center / cover no-repeat;
    }

    .hero-content,
    .hero-inner,
    .hero-home .hero-title {
        max-width: 620px;
    }

    .hero-home .hero-text {
        max-width: 560px;
    }

    .character-profile {
        grid-template-columns: 340px 1fr;
        gap: 30px;
    }

    .character-profile-image {
        height: 430px;
        max-height: 430px;
    }
}

/* =========================================================
   26. RESPONSIVE — MEDIUM
   ========================================================= */

@media (max-width: 920px) {
    :root {
        --header-height: auto;
    }

    .container,
    .container-wide,
    .narrow,
    .reading-wrap {
        width: min(100%, calc(100% - 40px));
    }

    .grid-2,
    .grid-3,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .header-row,
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
        min-height: auto;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 17px;
    }

    .hero {
        padding: 32px 0 26px;
    }

    .hero-home {
        padding-top: 10px !important;
        padding-bottom: 24px;
    }

    .hero-box,
    .hero-box-home,
    .card,
    .feature-card,
    .reader,
    .chapter-end,
    .banner-section {
        padding: 24px;
    }

    .hero-box-home {
        min-height: auto;
        display: block;
        padding: 34px 32px 38px !important;
        background:
            linear-gradient(
                180deg,
                rgba(3, 7, 13, 0.96) 0%,
                rgba(3, 7, 13, 0.90) 32%,
                rgba(3, 7, 13, 0.72) 56%,
                rgba(3, 7, 13, 0.42) 76%,
                rgba(3, 7, 13, 0.22) 100%
            ),
            url('/public/assets/hero-main.webp') 72% center / cover no-repeat;
    }

    .hero-content,
    .hero-inner,
    .hero-home .hero-title,
    .hero-home .hero-text {
        max-width: 100%;
    }

    .hero-kicker {
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    h1 {
        font-size: clamp(36px, 9vw, 62px);
    }

    h2 {
        font-size: clamp(28px, 7vw, 42px);
    }

    h3 {
        font-size: 24px;
    }

    .hero-text,
    .lead {
        font-size: 20px;
        line-height: 1.58;
    }

    .hero-subtext {
        font-size: 17px;
        line-height: 1.7;
    }

    .hero-actions a {
        min-height: 42px;
        padding: 9px 16px;
        font-size: 15px;
    }

    .reader {
        padding: 34px 28px;
        border-radius: 22px;
    }

    .reader p,
    .article-text p {
        font-size: 19px;
        line-height: 1.85;
    }

    .reader p:first-child {
        font-size: 20px;
    }

    .chapter-cover img {
        height: 260px;
        object-position: center;
    }

    .chapter-nav {
        flex-direction: column;
    }

    .button,
    .reaction-button {
        min-height: 50px;
        padding: 0 20px;
        font-size: 17px;
    }

    .site-footer .footer-row {
        font-size: 15px;
    }

    .kv-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .character-profile {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .character-profile-image {
        height: 420px;
        max-height: 420px;
    }

    .character-card .character-image {
        height: 240px;
    }

    .characters-hero-box {
        background:
            linear-gradient(
                180deg,
                rgba(5, 9, 17, 0.96) 0%,
                rgba(5, 9, 17, 0.86) 42%,
                rgba(5, 9, 17, 0.64) 70%,
                rgba(5, 9, 17, 0.28) 100%
            ),
            radial-gradient(
                circle at 75% 50%,
                rgba(120, 180, 255, 0.20),
                transparent 65%
            ),
            url('/public/assets/img/cast.png') center / cover no-repeat;
    }

    .world-hero::before {
        background:
            linear-gradient(
                180deg,
                rgba(5, 9, 17, 0.94) 0%,
                rgba(5, 9, 17, 0.80) 40%,
                rgba(5, 9, 17, 0.48) 72%,
                rgba(5, 9, 17, 0.22) 100%
            ),
            url('/public/assets/world-hero.webp') center / cover no-repeat;
    }
}

/* =========================================================
   27. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {
    .container,
    .container-wide,
    .narrow,
    .reading-wrap {
        width: min(100%, calc(100% - 24px));
    }

    .brand-mark {
        font-size: 14px;
    }

    .brand-sub {
        font-size: 14px;
    }

    .brand-with-logo {
        gap: 10px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 16px;
    }

    .hero {
        padding: 24px 0;
    }

    .hero-home {
        padding-top: 8px !important;
    }

    .hero-box,
    .hero-box-home,
    .card,
    .feature-card,
    .reader,
    .chapter-end,
    .banner-section {
        padding: 20px;
        border-radius: 18px;
    }

    .hero-box-home {
        padding: 28px 20px 32px !important;
        border-radius: 20px;
        background:
            linear-gradient(
                180deg,
                rgba(3, 7, 13, 0.98) 0%,
                rgba(3, 7, 13, 0.92) 36%,
                rgba(3, 7, 13, 0.76) 64%,
                rgba(3, 7, 13, 0.45) 100%
            ),
            url('/public/assets/hero-main.webp') 70% center / cover no-repeat;
    }

    .hero-kicker {
        font-size: 10px;
        letter-spacing: 0.12em;
        line-height: 1.5;
    }

    h1 {
        font-size: clamp(32px, 10vw, 46px);
    }

    h2 {
        font-size: clamp(26px, 8vw, 38px);
    }

    h3 {
        font-size: 22px;
    }

    .hero-title {
        margin-bottom: 16px;
    }

    .hero-text,
    .lead {
        font-size: 18px;
    }

    .hero-subtext,
    .muted,
    .meta,
    .page-lead {
        font-size: 15px;
    }

    .hero-actions,
    .next-actions,
    .reaction-row,
    .book-actions,
    .chapter-actions,
    .world-actions,
    .character-actions {
        gap: 10px;
    }

    .hero-actions a {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-meta span {
        font-size: 12px;
        padding: 6px 10px 6px 15px;
    }

    .button,
    .reaction-button {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 24px 0;
    }

    .section-soft {
        padding-bottom: 56px;
    }

    .reader {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .reader p,
    .article-text p {
        font-size: 18px;
        line-height: 1.8;
    }

    .reader p:first-child {
        font-size: 18px;
    }

    .reading-top-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .chapter-cover {
        border-radius: 20px;
        margin: 24px 0 34px;
    }

    .chapter-cover::before {
        border-radius: 19px;
    }

    .chapter-cover img {
        height: 220px;
        border-radius: 19px;
    }

    .chapter-end {
        padding: 24px 20px;
    }

    .site-footer {
        margin-top: 36px;
    }

    .character-profile {
        padding: 18px;
        border-radius: 20px;
    }

    .character-profile-image {
        height: 360px;
        max-height: 360px;
        border-radius: 20px;
    }

    .character-profile-body .hero-text {
        font-size: 20px;
    }
}

/* =========================================================
   28. RESPONSIVE — VERY SMALL
   ========================================================= */

@media (max-width: 380px) {
    .container,
    .container-wide,
    .narrow,
    .reading-wrap {
        width: min(100%, calc(100% - 18px));
    }

    .hero-box-home {
        padding: 24px 16px 28px !important;
    }

    .card,
    .feature-card,
    .reader,
    .chapter-end,
    .banner-section {
        padding: 18px;
    }

    .main-nav a {
        font-size: 15px;
    }

    .brand-mark {
        font-size: 13px;
    }

    .brand-sub {
        font-size: 13px;
    }
}

/* =========================================================
   29. FINAL HOME HERO OVERRIDES
   ========================================================= */

/* главный фикс: уменьшаем воздух над hero примерно на 50% */
.site-header + main .hero-home:first-child {
    padding-top: 12px !important;
}

/* прижимаем hero-box выше, но без прилипания к header */
.hero-home .hero-box-home {
    margin-top: 0 !important;
}

/* защита от старых конфликтов */
.hero-box-home .hero-content,
.hero-box-home .hero-inner {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* удерживаем текст в левой колонке */
.hero-home .hero-kicker,
.hero-home .hero-title,
.hero-home .hero-text,
.hero-home .hero-actions,
.hero-home .hero-meta,
.hero-home .hero-release-status {
    max-width: 660px;
    margin-left: 0 !important;
}

/* основной текст чуть уже, чтобы не лез в визуал */
.hero-home .hero-text {
    max-width: 600px;
}

/* kicker не должен ломать сетку */
.hero-home .hero-kicker {
    max-width: 700px;
    margin-bottom: 16px;
}

/* кнопки hero — тонкая премиальная обводка */
.hero-actions a {
    border-radius: 999px !important;
    border: 1px solid rgba(139, 178, 255, 0.30) !important;
}

/* pill-метки не должны выглядеть как баг */
.hero-meta span {
    white-space: nowrap;
}

/* =========================================================
   30. FINAL CARD ALIGNMENT OVERRIDES
   ========================================================= */

.world-card,
.system-card,
.chapter-card {
    padding: 30px !important;
}

.character-card .character-body {
    padding: 24px !important;
}

.container.grid.grid-2 {
    align-items: start;
}

.container.grid.grid-2 > div {
    min-width: 0;
}

/* =========================================================
   31. FINAL HEADER / LOGO SAFETY
   ========================================================= */

.site-header .container {
    width: min(var(--wide), calc(100% - 68px));
}

.brand {
    margin: 0;
}

.brand-sub {
    margin: 0;
}

/* если логотип добавлен в layout */
.brand-with-logo .brand-mark,
.brand-with-logo .brand-sub {
    display: block;
}

/* =========================================================
   32. SAFETY: DISABLE OLD GLOBAL HERO BACKGROUND LEAKS
   ========================================================= */

/*
   В старом CSS были глобальные .hero-box::before/.hero-box::after,
   которые ломали обычные hero-блоки.
   Теперь псевдо-слои используются только там, где нужны.
*/

.hero-box::before,
.hero-box::after {
    display: none;
}

.hero-box-home::before,
.hero-box-home::after,
.world-hero::before,
.chapter-cover::before,
.chapter-cover::after,
.banner-section::before {
    display: block;
}

/* =========================================================
   33. ACCESSIBILITY / MOTION SAFETY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .chapter-cover:hover,
    .chapter-cover:hover img,
    .card:hover,
    .button:hover,
    .reaction-button:hover,
    .hero-actions a:hover {
        transform: none !important;
    }
}

/* =========================================================
   34. PRINT SAFETY
   ========================================================= */

@media print {
    body {
        background: #ffffff !important;
        color: #111111 !important;
    }

    .site-header,
    .site-footer,
    .hero-actions,
    .hero-meta,
    .hero-release-status,
    .chapter-end,
    .related-grid,
    .chapter-nav,
    .main-nav {
        display: none !important;
    }

    .container,
    .narrow,
    .reading-wrap {
        width: 100% !important;
        max-width: none !important;
    }

    .reader {
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        padding: 0 !important;
    }

    .reader p {
        color: #111111 !important;
        font-size: 13pt !important;
        line-height: 1.6 !important;
    }
}

/* =========================================================
   35. MICRO POLISH
   ========================================================= */

.card,
.hero-box,
.reader,
.chapter-end,
.chapter-cover {
    will-change: transform;
}

.card p:last-child,
.hero-box p:last-child,
.article-text p:last-child {
    margin-bottom: 0;
}

img {
    user-select: none;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   36. KNOWN SITE-SPECIFIC CLEANUP
   ========================================================= */

/* если в hero-release-status остался длинный дубль, он хотя бы не ломает сетку */
.hero-release-status {
    max-width: 600px;
}

/* если home.php использует btn-primary / btn-secondary вместо button */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.btn-primary {
    color: #f3f7ff;
    background: rgba(139, 178, 255, 0.12);
    border: 1px solid rgba(139, 178, 255, 0.38);
}

.btn-secondary {
    color: #e7f0ff;
    background: rgba(6, 12, 22, 0.18);
    border: 1px solid rgba(139, 178, 255, 0.30);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
    background: rgba(139, 178, 255, 0.16);
    border-color: rgba(139, 178, 255, 0.58);
    box-shadow: 0 10px 30px rgba(80, 140, 255, 0.12);
}

/* =========================================================
   37. FINAL SAFE OVERRIDES
   ========================================================= */

.hero-box-home {
    padding-top: 26px !important;
    padding-bottom: 34px !important;
    padding-left: 54px !important;
    padding-right: 54px !important;
    min-height: 440px !important;
}

.hero-home .hero-kicker {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.hero-home .hero-title {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

.hero-home .hero-text {
    margin-bottom: 20px !important;
    max-width: 560px !important;
}

.hero-home .hero-actions {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

.hero-home .hero-meta {
    margin-top: 0 !important;
}

.hero-box:not(.hero-box-home) {
    padding: 52px 56px !important;
    min-height: auto !important;
}

.world-hero.hero-box,
.world-hero {
    padding: 52px 56px !important;
    min-height: auto !important;
}

.characters-hero-box.hero-box,
.characters-hero-box {
    padding: 52px 56px !important;
    min-height: auto !important;
}

.world-card,
.character-card:not(:has(.character-image)),
.system-card,
.chapter-card {
    padding: 30px !important;
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

.site-header .header-row {
    position: relative !important;
    z-index: 2 !important;
}

.verion-logo,
.site-header .verion-logo {
    position: absolute !important;
    left: 50% !important;
    top: 24px !important;
    transform: translateX(-50%) !important;
    width: 56px !important;
    max-width: 56px !important;
    height: 156px !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 1000 !important;
}

.verion-logo img,
.verion-logo svg,
.site-header .verion-logo img,
.site-header .verion-logo svg {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: block !important;
    width: 56px !important;
    max-width: 56px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 12px rgba(120, 170, 255, 0.45)) !important;
}

.hero {
    position: relative !important;
    z-index: 1 !important;
}

.hero-home {
    overflow: visible !important;
}

@media (max-width: 920px) {
    .hero-box-home {
        padding: 28px 30px 34px !important;
        min-height: auto !important;
    }

    .hero-box:not(.hero-box-home),
    .world-hero.hero-box,
    .world-hero,
    .characters-hero-box.hero-box,
    .characters-hero-box {
        padding: 34px 32px !important;
    }

    .site-header {
        padding-bottom: 0 !important;
    }

    .verion-logo,
    .site-header .verion-logo {
        top: 22px !important;
        width: 46px !important;
        max-width: 46px !important;
        height: 136px !important;
    }

    .verion-logo img,
    .verion-logo svg,
    .site-header .verion-logo img,
    .site-header .verion-logo svg {
        width: 46px !important;
        max-width: 46px !important;
    }
}

@media (max-width: 560px) {
    .hero-box-home {
        padding: 24px 20px 30px !important;
    }

    .hero-box:not(.hero-box-home),
    .world-hero.hero-box,
    .world-hero,
    .characters-hero-box.hero-box,
    .characters-hero-box {
        padding: 24px 20px !important;
    }

    .site-header {
        padding-bottom: 0 !important;
}

    .verion-logo,
    .site-header .verion-logo {
        top: 10px !important;
    
        left: auto !important;     /* убираем центрирование */
        right: 16px !important;    /* ← фикс к правому краю */
    
        transform: none !important;
    
        width: 30px !important;
        max-width: 30px !important;
        height: 96px !important;
    }
    
    .verion-logo img,
    .verion-logo svg,
    .site-header .verion-logo img,
    .site-header .verion-logo svg {
        width: 30px !important;
        max-width: 30px !important;
        opacity: 0.6 !important;
        filter: drop-shadow(0 0 6px rgba(120,170,255,0.25)) !important;
    }
.hero-home {
    padding-top: 0 !important;
    margin-top: -18px !important;
}

.hero-box-home {
    margin-top: 0 !important;
}
.hero-home {
    margin-top: -28px !important;
    padding-top: 0 !important;
}

.hero-home .container {
    transform: none !important;
}

.hero-box-home {
    margin-top: 0 !important;
}
.mobile-scroll-progress {
    display: none;
}

@media (max-width: 560px) {
    .mobile-scroll-progress {
        position: fixed;
        right: 10px;
        top: 50%;
        z-index: 9999;
        transform: translateY(-50%) translateX(8px);
        min-width: 42px;
        padding: 7px 9px;
        border-radius: 999px;
        background: rgba(6, 12, 22, 0.78);
        border: 1px solid rgba(139, 178, 255, 0.26);
        color: rgba(210, 228, 255, 0.92);
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        opacity: 0;
        pointer-events: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 0 18px rgba(90, 140, 255, 0.14);
        transition:
            opacity 0.18s ease,
            transform 0.18s ease;
    }

    .mobile-scroll-progress.is-visible {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}
.section-label {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(140, 170, 220, 0.75);
    margin-bottom: 10px;
}
.next-episode {
    margin-top: 16px !important;
    color: #86adff !important;
    font-size: 17px !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em;
    text-shadow: 0 0 14px rgba(134, 173, 255, 0.24);
}
@media (min-width: 921px) {

    .site-header .verion-logo {
        top: 24px !important;
        transform: translate(-50%, -14px) !important;
    }

}
/* =========================================================
   99. FINAL HOME HERO — POSTER FIX
   ========================================================= */

.hero-home {
    padding-top: 0 !important;
    margin-top: -18px !important;
}

.hero-home .container {
    transform: none !important;
}

.hero-box-home {
    margin-top: 0 !important;
    min-height: 520px !important;
    padding: 42px 64px 48px !important;
}

/* текстовая зона */
.hero-box-home .hero-content,
.hero-box-home .hero-inner {
    width: 100% !important;
    max-width: 980px !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* верхняя строка */
.hero-home .hero-kicker {
    max-width: 900px !important;
    margin: 0 0 28px !important;
    font-size: clamp(13px, 0.95vw, 17px) !important;
    line-height: 1.25 !important;
    letter-spacing: 0.23em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    color: #8fb3ff !important;
}

/* название */
.hero-home .hero-title {
    max-width: 980px !important;
    margin: 0 0 36px !important;
    font-size: clamp(72px, 6.2vw, 112px) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.065em !important;
    font-weight: 950 !important;
    color: #f7f9ff !important;
    text-shadow: 0 14px 46px rgba(0, 0, 0, 0.58) !important;
}

/* новый punchline */
.hero-home .hero-pitch {
    max-width: 980px !important;
    margin: 0 0 30px !important;
}

.hero-home .hero-line {
    display: block !important;
    margin: 0 !important;
    font-size: clamp(42px, 3.25vw, 62px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.04em !important;
    font-weight: 820 !important;
    color: rgba(248, 251, 255, 0.98) !important;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.52) !important;
    text-wrap: balance !important;
}

.hero-home .hero-line + .hero-line {
    margin-top: 8px !important;
}

.hero-home .hero-line-accent {
    color: #a9c2ff !important;
    text-shadow:
        0 14px 38px rgba(0, 0, 0, 0.52),
        0 0 34px rgba(104, 145, 255, 0.26) !important;
}

/* описание меньше и тише */
.hero-home .hero-subtext {
    max-width: 800px !important;
    margin: 0 0 28px !important;
    font-size: clamp(16px, 1.05vw, 19px) !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
    font-weight: 400 !important;
    color: rgba(220, 229, 248, 0.66) !important;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.50) !important;
    text-wrap: balance !important;
}

/* старый hero-text отключаем, если он вдруг остался */
.hero-home .hero-text {
    display: none !important;
}

/* кнопки */
.hero-home .hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin: 0 0 22px !important;
}

.hero-home .hero-actions a,
.hero-home .btn-primary,
.hero-home .btn-secondary {
    min-height: 54px !important;
    padding: 0 28px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    letter-spacing: -0.025em !important;
}

.hero-home .hero-actions a:first-child,
.hero-home .btn-primary {
    color: #f8fbff !important;
    background: linear-gradient(
        180deg,
        rgba(47, 75, 124, 0.98),
        rgba(19, 31, 54, 0.98)
    ) !important;
    border: 1px solid rgba(154, 185, 248, 0.46) !important;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.hero-home .hero-actions a:nth-child(2),
.hero-home .btn-secondary {
    color: #eef5ff !important;
    background: rgba(4, 11, 23, 0.54) !important;
    border: 1px solid rgba(146, 176, 240, 0.34) !important;
    backdrop-filter: blur(12px) !important;
}

/* метки */
.hero-home .hero-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 0 !important;
}

.hero-home .hero-meta span {
    white-space: nowrap !important;
    padding: 9px 15px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: rgba(204, 218, 250, 0.68) !important;
    background: rgba(38, 58, 94, 0.34) !important;
    border: 1px solid rgba(134, 166, 230, 0.16) !important;
}

.hero-home .hero-meta span::before {
    width: 4px !important;
    height: 4px !important;
}

/* следующий эпизод */
.next-episode {
    margin-top: 14px !important;
    color: #86adff !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 0 14px rgba(134, 173, 255, 0.24) !important;
}

/* центральный символ */
@media (min-width: 921px) {
    .site-header .verion-logo {
        top: 24px !important;
        transform: translate(-50%, -14px) !important;
    }
}

/* планшет */
@media (max-width: 920px) {
    .hero-box-home {
        min-height: auto !important;
        padding: 36px 30px 40px !important;
    }

    .hero-home .hero-title {
        font-size: clamp(48px, 10vw, 76px) !important;
        margin-bottom: 26px !important;
    }

    .hero-home .hero-line {
        font-size: clamp(32px, 6.8vw, 48px) !important;
    }

    .hero-home .hero-subtext {
        font-size: 17px !important;
    }
}

/* телефон */
@media (max-width: 560px) {
    .hero-box-home {
        padding: 30px 20px 34px !important;
    }

    .hero-home .hero-kicker {
        font-size: 10px !important;
        letter-spacing: 0.14em !important;
        margin-bottom: 18px !important;
    }

    .hero-home .hero-title {
        font-size: clamp(38px, 12vw, 54px) !important;
        margin-bottom: 22px !important;
    }

    .hero-home .hero-line {
        font-size: clamp(27px, 7.8vw, 36px) !important;
        line-height: 1.08 !important;
    }

    .hero-home .hero-subtext {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .hero-home .hero-actions a,
    .hero-home .btn-primary,
    .hero-home .btn-secondary {
        width: 100% !important;
    }
}