/* =======================================================
   Pony Pony Paradise — Royal Court VN
   Day (Celestia) / Night (Luna) dual-theme interface
   ======================================================= */

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

/* -------------------- THEME: NIGHT (Luna, default) ----- */
:root,
html[data-theme="night"] {
    --bg-deep:      #07091a;
    --bg-mid:       #0e1230;
    --bg-soft:      rgba(20, 24, 58, 0.55);
    --bg-card:      rgba(140, 160, 220, 0.07);
    --bg-card-hov:  rgba(140, 160, 220, 0.14);
    --border-card:  rgba(130, 150, 210, 0.22);
    --border-hov:   rgba(180, 200, 240, 0.55);

    --ink:          #e6ebff;
    --ink-mute:     #a2adcf;
    --ink-dim:      #6b759a;

    --primary:      #a8b8e8;
    --accent-gold:  #f0d890;
    --accent-rose:  #e8a8d4;
    --accent-deep:  #c080b8;
    --accent-royal: #7b66d4;

    --dialogue-bg:      rgba(10, 14, 34, 0.85);
    --dialogue-border:  rgba(168, 184, 232, 0.45);
    --dialogue-speaker: linear-gradient(135deg,#8a6bd8,#c080b8);

    --starfield-opacity: 1;
    --sun-rays-opacity:  0;

    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

/* -------------------- THEME: DAY (Celestia) — soft afternoon -------- */
html[data-theme="day"] {
    --bg-deep:      #f5ecd8;
    --bg-mid:       #ede1c8;
    --bg-soft:      rgba(246, 236, 216, 0.7);
    --bg-card:      rgba(240, 224, 194, 0.55);
    --bg-card-hov:  rgba(244, 228, 200, 0.8);
    --border-card:  rgba(170, 125, 85, 0.26);
    --border-hov:   rgba(192, 118, 98, 0.5);

    --ink:          #4a3442;
    --ink-mute:     #84677a;
    --ink-dim:      #a89284;

    --primary:      #b87482;
    --accent-gold:  #b8852c;
    --accent-rose:  #cf7d95;
    --accent-deep:  #9c506a;
    --accent-royal: #d99a6a;

    --dialogue-bg:      rgba(250, 240, 220, 0.88);
    --dialogue-border:  rgba(184, 133, 44, 0.38);
    --dialogue-speaker: linear-gradient(135deg,#cf7d95,#b8852c);

    --starfield-opacity: 0;
    --sun-rays-opacity:  1;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.62;
    font-size: 16px;
    letter-spacing: 0.01em;
    transition: background 0.9s ease, color 0.9s ease;
}

/* Layered atmosphere — both themes share one stack;
   opacity flips decide which one shows. */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 18% 25%, rgba(60, 50, 140, 0.40) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(40, 60, 130, 0.34) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 105%, rgba(90, 50, 130, 0.25) 0%, transparent 45%);
    opacity: var(--starfield-opacity);
    transition: opacity 0.9s ease;
}
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 82% 15%, rgba(232, 190, 110, 0.32) 0%, transparent 48%),
        radial-gradient(ellipse at 15% 85%, rgba(220, 160, 140, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse at 55% 45%, rgba(238, 218, 186, 0.18) 0%, transparent 65%);
    opacity: var(--sun-rays-opacity);
    transition: opacity 0.9s ease;
}

/* --- Starfield (night) --- */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--starfield-opacity); transition: opacity 0.9s ease; }
.stars::before {
    content: ''; position: absolute; inset: 0; width: 100%; height: 200%;
    background-image:
        radial-gradient(1.5px 1.5px at 50px 40px,  rgba(200,210,255,0.85), transparent),
        radial-gradient(1px   1px   at 150px 80px, rgba(255,255,255,0.55), transparent),
        radial-gradient(1.5px 1.5px at 250px 30px, rgba(180,200,255,0.65), transparent),
        radial-gradient(1px   1px   at 80px 140px, rgba(255,255,255,0.4),  transparent),
        radial-gradient(2px   2px   at 180px 160px, rgba(160,180,240,0.55), transparent),
        radial-gradient(1px   1px   at 320px 60px, rgba(220,225,255,0.5),  transparent),
        radial-gradient(1.5px 1.5px at 400px 100px, rgba(255,255,255,0.6),  transparent),
        radial-gradient(1.5px 1.5px at 500px 50px, rgba(200,215,255,0.55), transparent);
    background-size: 550px 220px;
    animation: starScroll 55s linear infinite;
}
@keyframes starScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* --- Daylight motes (day) --- */
.motes { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--sun-rays-opacity); transition: opacity 0.9s ease; }
.motes::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(2px 2px at 40px 50px,  rgba(255,230,170,0.7), transparent),
        radial-gradient(1px 1px at 120px 160px, rgba(255,220,180,0.6), transparent),
        radial-gradient(2px 2px at 220px 70px,  rgba(255,240,190,0.5), transparent),
        radial-gradient(1px 1px at 330px 220px, rgba(255,210,160,0.5), transparent),
        radial-gradient(2px 2px at 440px 120px, rgba(255,235,175,0.6), transparent);
    background-size: 500px 280px;
    animation: moteDrift 40s linear infinite;
}
@keyframes moteDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(30px, -50%); }
}

body::before,
body::after,
.stars,
.motes {
    contain: paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.stars::before,
.motes::before {
    will-change: transform;
    backface-visibility: hidden;
}

/* =================================================
   LAYOUT
   ================================================= */
.container { max-width: 1160px; margin: 0 auto; padding: 28px 22px 60px; position: relative; z-index: 1; }

/* =================================================
   TOP CHROME — preview pill + theme toggle + mare
   ================================================= */
.top-chrome {
    position: fixed; top: 16px; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 18px;
    z-index: 100;
    pointer-events: none;
}
.top-chrome > * { pointer-events: auto; }

.preview-pill {
    font-family: var(--font-mono);
    background: var(--dialogue-bg);
    border: 1px solid var(--border-card);
    padding: 9px 16px;
    border-radius: 22px;
    color: var(--ink-mute);
    font-size: 0.78em;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.preview-pill:hover { color: var(--accent-gold); border-color: var(--border-hov); transform: translateY(-1px); }

.chrome-tools { display: flex; gap: 10px; align-items: center; }

.tool-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--dialogue-bg);
    border: 1px solid var(--border-card);
    cursor: pointer;
    display: grid; place-items: center;
    transition: all 0.3s ease;
    color: var(--ink);
    overflow: hidden;
}
.tool-btn:hover {
    border-color: var(--border-hov);
    transform: rotate(15deg);
    box-shadow: 0 0 24px rgba(240, 216, 144, 0.25);
}
.tool-btn img { width: 24px; height: 24px; display: block; }

.mare-btn {
    font-family: var(--font-display);
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.72em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 22px;
    border: 1px solid var(--border-card);
    background: var(--dialogue-speaker);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(200, 140, 200, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mare-btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 22px rgba(200, 140, 200, 0.6); }

/* =================================================
   NAVIGATION RAIL (Characters / Mods links)
   ================================================= */
.court-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin: 80px 6px 24px;
    gap: 18px;
}
.court-nav a {
    font-family: var(--font-mono);
    font-size: 0.78em;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-decoration: none;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-card);
    transition: all 0.25s ease;
    display: inline-flex; gap: 10px; align-items: center;
}
.court-nav a:hover { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.court-nav .crest {
    flex: 1; text-align: center;
    font-family: var(--font-display);
    font-size: 0.75em; letter-spacing: 6px;
    color: var(--ink-dim);
    text-transform: uppercase;
}

/* =================================================
   WEBRING RAIL — /mlp/Ring, integrated into the top bar
   Slim, theme-aware, scrolls away with the page (NOT fixed).
   Overrides onionring's default inline styles & table layout.
   ================================================= */
.webring-rail {
    margin: -8px 6px 26px;
    padding-top: 12px;
    border-top: 1px solid var(--border-card);
    display: flex; justify-content: center;
}
#mlpring {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    max-width: 100%;
    padding: 7px 18px;
    border: 1px solid var(--border-card);
    border-radius: 22px;
    background: var(--dialogue-bg);
    font-family: var(--font-mono);
    font-size: 0.72em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-dim);
    transition: border-color 0.25s ease, background 0.4s ease, color 0.4s ease;
}
#mlpring:hover { border-color: var(--border-hov); }

/* Flatten onionring's <table><tr><td> into one inline row */
#mlpring table, #mlpring tbody, #mlpring tr { display: contents; }
#mlpring td { display: inline-flex; align-items: center; gap: 10px; }
#mlpring br { display: none; }                 /* collapse to a single line */
#mlpring .webring-info { gap: 8px; }
#mlpring .webring-links { display: inline-flex; gap: 12px; align-items: center; }

/* A diamond separator before prev / after next for a framed look */
#mlpring .webring-prev::after,
#mlpring .webring-next::before {
    content: '◈';
    color: var(--ink-dim);
    opacity: 0.55;
    font-size: 0.9em;
}

/* Override onionring's hard-coded maroon inline link styles */
#mlpring a,
#mlpring a[style] {
    color: var(--primary) !important;
    text-shadow: none !important;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: color 0.25s ease;
}
#mlpring a:hover,
#mlpring a[style]:hover { color: var(--accent-gold) !important; }

/* =================================================
   HERO — VN Title Card
   ================================================= */
.vn-title-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: linear-gradient(180deg, var(--bg-soft), rgba(10, 12, 28, 0.5));
    box-shadow:
        0 16px 60px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-height: 520px;
    transition: background 0.9s ease, border-color 0.9s ease;
}
html[data-theme="day"] .vn-title-card {
    background: linear-gradient(180deg, rgba(248, 238, 218, 0.82), rgba(238, 222, 196, 0.62));
    box-shadow: 0 16px 60px rgba(150, 95, 70, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

/* Decorative stage wash */
.vn-stage {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(150, 120, 220, 0.22), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(120, 150, 230, 0.18), transparent 55%);
    transition: opacity 0.9s ease;
}
html[data-theme="day"] .vn-stage {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(230, 172, 130, 0.22), transparent 58%),
        radial-gradient(ellipse at 80% 70%, rgba(238, 212, 164, 0.22), transparent 58%);
}

/* Celestial body — sun in day mode, sitting in the gap between title and Celestia. */
.vn-celestial {
    position: absolute;
    left: 50%;
    top: 34px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.9s ease;
    animation: celestialFloat 14s ease-in-out infinite;
    background: radial-gradient(circle at 40% 40%, #fff3c4 0%, #f6c45a 45%, #e47a2b 100%);
    box-shadow:
        0 0 80px rgba(248, 195, 85, 0.65),
        0 0 140px rgba(248, 195, 85, 0.35),
        inset -6px -8px 20px rgba(220, 110, 40, 0.25);
}
html[data-theme="day"] .vn-celestial { opacity: 1; }

/* Sun rays (day) — soft beams fanning across the stage */
.vn-rays {
    position: absolute;
    top: 0; right: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    background:
        conic-gradient(from 220deg at 88% 18%,
            transparent 0deg,
            rgba(255, 220, 140, 0.18) 18deg,
            transparent 36deg,
            rgba(255, 200, 130, 0.14) 58deg,
            transparent 78deg,
            rgba(255, 225, 160, 0.2) 100deg,
            transparent 122deg);
}
html[data-theme="day"] .vn-rays { opacity: 1; }

/* Constellation — night mode, floating in the gap between the title and Luna. */
.vn-constellation {
    position: absolute;
    left: 50%;
    top: 28px;
    width: 170px;
    height: 170px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.9s ease;
}
html[data-theme="night"] .vn-constellation { opacity: 1; }

.vn-constellation::before,
.vn-constellation::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 30px 40px,     rgba(255,255,255,0.95), transparent),
        radial-gradient(1.5px 1.5px at 85px 18px, rgba(220,225,255,0.85), transparent),
        radial-gradient(1.5px 1.5px at 138px 58px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 62px 96px,     rgba(200,215,255,0.7), transparent),
        radial-gradient(2px 2px at 150px 125px,   rgba(255,255,255,1), transparent),
        radial-gradient(1px 1px at 48px 148px,    rgba(220,225,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 118px 158px, rgba(200,215,255,0.8), transparent);
    animation: twinkle 4s ease-in-out infinite;
}
.vn-constellation::after { animation-delay: -2s; opacity: 0.6; }

.vn-constellation svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    stroke: rgba(200, 215, 255, 0.45);
    stroke-width: 0.8;
    fill: none;
}

@keyframes celestialFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-10px); }
}


/* Primary portrait (Celestia or Luna) */
/* Stage — title block and character both absolute so neither squeezes the other */
.vn-sprites {
    position: relative;
    z-index: 2;
    height: 360px;
    padding: 0;
}

/* ---------- VN Logo block (left side of hero) ---------- */
.vn-title-block {
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 380px;
    max-width: 38%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}

.vn-chapter-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72em;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 5px 12px;
    border: 1px solid var(--border-card);
    border-radius: 20px;
    background: var(--bg-soft);
}
.vn-chapter-kicker .pip {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
}

.vn-title {
    font-family: var(--font-display);
    font-size: clamp(2.2em, 5.4vw, 4em);
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: -0.5px;
    line-height: 0.98;
    text-shadow: 0 2px 18px rgba(240, 216, 144, 0.35), 0 2px 6px rgba(0, 0, 0, 0.45);
    margin: 0;
}
.vn-title span { display: block; }
html[data-theme="day"] .vn-title {
    text-shadow: 0 2px 24px rgba(212, 148, 50, 0.45), 0 1px 2px rgba(100, 40, 30, 0.2);
}

.vn-title-flourish {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    color: var(--accent-gold);
    font-family: var(--font-display);
    letter-spacing: 6px;
    font-size: 0.9em;
    opacity: 0.9;
}
.vn-title-flourish::before,
.vn-title-flourish::after {
    content: '';
    flex: 1; height: 1px;
    min-width: 16px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}
.vn-title-flourish::after { background: linear-gradient(270deg, transparent, var(--accent-gold)); }

.vn-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.95em;
    color: var(--ink-mute);
    line-height: 1.45;
    max-width: 28ch;
}
.vn-portrait-frame {
    position: absolute;
    right: 180px;
    bottom: 0;
    width: 440px;
    height: 340px;
}
.vn-portrait-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,216,144,0.35) 0%, transparent 65%);
    filter: blur(12px);
    z-index: -1;
    animation: auraPulse 4.5s ease-in-out infinite;
}
html[data-theme="day"] .vn-portrait-frame::before {
    background: radial-gradient(circle, rgba(248, 170, 90, 0.55) 0%, transparent 65%);
}
@keyframes auraPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

.vn-portrait {
    height: 320px;
    width: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
    animation: spriteFloat 5.4s ease-in-out infinite;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
@keyframes spriteFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Cross-fade the two royal portraits */
.royal-portrait { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) translateY(0); }
.royal-portrait.celestia { opacity: var(--sun-rays-opacity); }
.royal-portrait.luna     { opacity: var(--starfield-opacity); }

/* Small side sprite (guest companion) */
.vn-sprite-aside {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
    animation: spriteFloat 5s ease-in-out infinite 1.2s;
    opacity: 0.85;
    transform: scaleX(-1);
    display: none;
}
@media (min-width: 900px) { .vn-sprite-aside { display: block; } }

/* Dialogue box */
.vn-dialogue {
    position: relative;
    z-index: 3;
    margin: -14px 28px 28px;
    padding: 26px 30px 22px;
    background: var(--dialogue-bg);
    border: 1.5px solid var(--dialogue-border);
    border-radius: var(--radius-md);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.9s ease, border-color 0.9s ease;
}
/* Arrow tail sits under the character */
.vn-dialogue::before {
    content: '';
    position: absolute;
    right: 38%; top: -10px;
    width: 20px; height: 20px;
    background: var(--dialogue-bg);
    border-left: 1.5px solid var(--dialogue-border);
    border-top: 1.5px solid var(--dialogue-border);
    transform: rotate(45deg);
    transition: background 0.9s ease, border-color 0.9s ease;
}

.vn-speaker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dialogue-speaker);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 1.4px;
    padding: 4px 16px;
    border-radius: 22px;
    font-size: 0.78em;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(200, 140, 200, 0.35);
}
.vn-speaker .sigil { font-size: 1em; }

.vn-line {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.06em;
    line-height: 1.6;
    margin-bottom: 18px;
    color: var(--ink);
    opacity: 0.95;
    max-width: 62ch;
}
.vn-line::after {
    content: '▼';
    display: inline-block;
    margin-left: 10px;
    color: var(--accent-gold);
    animation: dialogueBlink 1.2s ease-in-out infinite;
    font-size: 0.7em;
    transform: translateY(-3px);
}
@keyframes dialogueBlink {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}

.vn-choices {
    display: flex; gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.vn-choice {
    font-family: var(--font-body);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--ink);
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex; gap: 10px; align-items: center;
    cursor: pointer;
}
.vn-choice:hover {
    background: var(--bg-card-hov);
    border-color: var(--border-hov);
    color: var(--accent-gold);
    transform: translateX(3px);
}
.vn-choice .num {
    color: var(--accent-gold);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* =================================================
   SECTION SCAFFOLDING — headers & status pill
   ================================================= */
.now-reading {
    display: flex; align-items: center; justify-content: center;
    gap: 14px;
    padding: 10px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border-card);
    border-radius: 30px;
    width: fit-content;
    margin: 42px auto 30px;
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--ink-mute);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.now-reading .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
    animation: dialogueBlink 1.4s ease-in-out infinite;
}

.chapter-header {
    text-align: center;
    margin: 50px 0 30px;
}
.chapter-header h2 {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.4em, 2.5vw, 1.9em);
    color: var(--accent-gold);
    padding: 0 28px;
    letter-spacing: 1px;
    position: relative;
}
.chapter-header h2::before,
.chapter-header h2::after {
    content: '';
    position: absolute;
    top: 55%;
    width: 70px; height: 1px;
}
.chapter-header h2::before {
    right: 100%;
    background: linear-gradient(to left, var(--accent-gold), transparent);
}
.chapter-header h2::after  {
    left: 100%;
    background: linear-gradient(to right, var(--accent-gold), transparent);
}
.chapter-header .chapter-tag {
    font-family: var(--font-mono);
    color: var(--ink-dim);
    letter-spacing: 4px;
    font-size: 0.8em;
    margin-top: 10px;
    text-transform: uppercase;
}

/* =================================================
   SAVE SLOTS — Download cards
   ================================================= */
.save-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.save-slot {
    background: var(--bg-soft);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 0 320px;
}
.save-slot:hover {
    border-color: var(--border-hov);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(100, 120, 220, 0.2);
}

.slot-ribbon {
    background: linear-gradient(90deg, rgba(60, 70, 150, 0.45), rgba(40, 50, 130, 0.45));
    padding: 10px 18px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(140, 160, 220, 0.18);
    font-family: var(--font-mono);
    font-size: 0.74em;
    color: var(--ink-mute);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
html[data-theme="day"] .slot-ribbon {
    background: linear-gradient(90deg, rgba(220, 130, 80, 0.3), rgba(220, 160, 70, 0.3));
}
.slot-ribbon .slot-label { color: var(--accent-gold); font-weight: 700; }

.slot-preview {
    height: 170px;
    background: var(--bg-mid);
    position: relative;
    overflow: hidden;
}
.slot-preview img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.save-slot:hover .slot-preview img { transform: scale(1.06); }
/* Scanline/dim overlay — makes it read as a "saved frame" */
.slot-preview::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(8, 11, 24, 0.0) 30%, rgba(8, 11, 24, 0.45)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
    pointer-events: none;
    z-index: 2;
}
html[data-theme="day"] .slot-preview::before {
    background:
        linear-gradient(to bottom, rgba(255, 235, 200, 0) 30%, rgba(150, 80, 50, 0.25)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 3px);
}
/* Corner brackets — VN "frame" */
.slot-preview::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
}

/* Tiny city-tag overlay */
.slot-cities {
    position: absolute;
    left: 12px; bottom: 12px;
    z-index: 4;
    display: flex; gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.slot-cities .city {
    padding: 4px 10px;
    background: rgba(8, 11, 24, 0.7);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}
.slot-cities .city.p { color: var(--accent-rose); border-color: rgba(232, 168, 212, 0.4); }
.slot-cities .city.c { color: var(--accent-gold); border-color: rgba(240, 216, 144, 0.4); }

.slot-body { padding: 16px 20px 20px; position: relative; z-index: 1; }
.slot-title {
    font-family: var(--font-display);
    font-size: 1.25em;
    color: var(--accent-gold);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.slot-meta {
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 0.78em;
    margin-bottom: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.slot-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--dialogue-speaker);
    color: #fff;
    padding: 12px 22px;
    border-radius: 26px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82em;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(200, 140, 200, 0.35);
    transition: all 0.3s ease;
}
.slot-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(200, 140, 200, 0.5); }

/* =================================================
   MEMORY SCROLL — carousel
   ================================================= */
.memory-scroll {
    position: relative;
    margin: 10px 0 46px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    background: var(--bg-soft);
    padding: 18px;
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.35);
    content-visibility: auto;
    contain-intrinsic-size: 0 560px;
}
html[data-theme="day"] .memory-scroll { box-shadow: 0 12px 44px rgba(180, 100, 70, 0.18); }

.memory-frame {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 6px);
    aspect-ratio: 16 / 9;
    background: var(--bg-mid);
    border: 1px solid var(--border-card);
}

.memory-reel {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.memory-reel img {
    flex: 0 0 100%;
    width: 100%; height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Decorative sprocket strips (filmstrip) */
.memory-frame::before,
.memory-frame::after {
    content: '';
    position: absolute; left: 0; right: 0;
    height: 10px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(0,0,0,0.55) 0 10px,
            transparent 10px 28px
        );
    z-index: 2;
    pointer-events: none;
}
.memory-frame::before { top: 0; }
.memory-frame::after  { bottom: 0; }

/* Dialogue-style caption overlay */
.memory-caption {
    position: absolute;
    bottom: 18px; left: 18px;
    z-index: 3;
    background: var(--dialogue-bg);
    border: 1px solid var(--dialogue-border);
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--ink);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.memory-caption .num { color: var(--accent-gold); font-weight: 700; margin-right: 8px; }

/* Prev/next arrows */
.memory-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--dialogue-bg);
    border: 1px solid var(--dialogue-border);
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 1.4em;
    cursor: pointer;
    display: grid; place-items: center;
    z-index: 4;
    transition: all 0.25s ease;
}
.memory-arrow:hover { background: var(--dialogue-speaker); color: #fff; transform: translateY(-50%) scale(1.08); }
.memory-arrow.prev { left: 18px; }
.memory-arrow.next { right: 18px; }

/* Indicators */
.memory-indicators {
    display: flex; gap: 8px; justify-content: center;
    margin-top: 16px;
}
.mi-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-card);
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: all 0.25s ease;
}
.mi-dot.active {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
    transform: scale(1.15);
}

/* =================================================
   DIALOGUE CARDS — changelog as VN exchange
   ================================================= */
.dialogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}
.dialogue-card {
    display: flex; gap: 14px;
    padding: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 0 160px;
}
.dialogue-card:hover { border-color: var(--border-hov); transform: translateY(-3px); }

.dialogue-portrait {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-rose);
    background: var(--bg-card);
    display: grid; place-items: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(200, 140, 200, 0.25);
}
.dialogue-portrait img { width: 100%; height: 100%; object-fit: cover; }

.dialogue-body { flex: 1; }
.dialogue-name {
    color: var(--accent-rose);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
    letter-spacing: 0.4px;
}
.dialogue-name .mood {
    font-family: var(--font-body);
    font-size: 0.76em;
    color: var(--ink-dim);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
}
.dialogue-text {
    color: var(--ink-mute);
    font-size: 0.95em;
    line-height: 1.58;
    font-style: italic;
}
.dialogue-text strong { color: var(--accent-gold); font-style: normal; font-weight: 600; }
.dialogue-text em     { color: var(--accent-rose); font-style: italic; }

/* =================================================
   ARCHIVE — Previous versions as chapter tomes
   ================================================= */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.tome {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px 20px 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 0 200px;
}
.tome::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-rose));
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.tome:hover { border-color: var(--border-hov); transform: translateY(-3px); }
.tome:hover::before { opacity: 1; }

.tome-label {
    font-family: var(--font-display);
    font-size: 1.55em;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.1;
    margin-bottom: 2px;
}
.tome-title {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.92em;
    color: var(--ink-mute);
    font-weight: 400;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.tome-links {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.tome-link {
    flex: 1 1 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--ink-mute);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.72em;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.25s ease;
}
.tome-link:hover {
    background: var(--dialogue-speaker);
    color: #fff;
    border-color: transparent;
}

.tome details { margin-top: 4px; }
.tome summary {
    font-family: var(--font-mono);
    font-size: 0.75em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-mute);
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
    transition: color 0.2s ease;
    list-style: none;
    position: relative;
    padding-left: 20px;
}
.tome summary::-webkit-details-marker { display: none; }
.tome summary::before {
    content: '▸';
    position: absolute; left: 0;
    color: var(--accent-gold);
    transition: transform 0.25s ease;
}
.tome details[open] summary::before { transform: rotate(90deg); }
.tome summary:hover { color: var(--accent-gold); }

.tome details ul {
    list-style: none;
    margin-top: 12px;
    padding-left: 20px;
    font-family: var(--font-body);
    font-size: 0.9em;
    color: var(--ink-mute);
    line-height: 1.55;
}
.tome details li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}
.tome details li::before {
    content: '✦';
    position: absolute;
    left: 0; top: 1px;
    color: var(--accent-rose);
    font-size: 0.8em;
}

/* =================================================
   FOOTER
   ================================================= */
.site-footer {
    margin-top: 50px;
    padding: 30px 0 20px;
    text-align: center;
    border-top: 1px solid var(--border-card);
    font-family: var(--font-body);
    color: var(--ink-dim);
}
.footer-stars {
    font-family: var(--font-display);
    color: var(--accent-gold);
    letter-spacing: 12px;
    font-size: 1.2em;
    margin-bottom: 10px;
    animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
.footer-heart { color: var(--accent-rose); }
.footer-links {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.76em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-dim);
}
.footer-links a { color: var(--ink-mute); text-decoration: none; transition: color 0.25s ease; }
.footer-links a:hover { color: var(--accent-gold); }

/* =================================================
   FLOATING MARES
   ================================================= */
.floating-mare {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    max-width: 180px;
    transition: opacity 0.5s ease;
}

/* =================================================
   ENTRANCE ANIMATIONS
   ================================================= */
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Only run fade-in when JS has marked the body ready. */
.js-ready .reveal {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.js-ready .reveal.d1 { animation-delay: 0.05s; }
.js-ready .reveal.d2 { animation-delay: 0.18s; }
.js-ready .reveal.d3 { animation-delay: 0.32s; }

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 760px) {
    .court-nav { margin-top: 72px; }
    .top-chrome { padding: 0 10px; }
    .preview-pill { font-size: 0.7em; padding: 7px 12px; }
    .mare-btn { font-size: 0.66em; padding: 8px 12px; }
    .tool-btn { width: 40px; height: 40px; }
    .tool-btn img { width: 20px; height: 20px; }

    .vn-sprites {
        height: auto;
        padding: 30px 18px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .vn-title-block {
        position: static;
        max-width: 100%;
        padding: 0;
        align-items: center;
        text-align: center;
    }
    .vn-title { font-size: 2.3em; text-align: center; }
    .vn-tagline { text-align: center; max-width: 36ch; }
    .vn-title-flourish { justify-content: center; }
    .vn-portrait-frame {
        position: static;
        width: 260px; height: 220px;
        display: grid; place-items: end center;
    }
    .vn-portrait { height: 200px; }
    .vn-celestial { width: 64px; height: 64px; top: 14px; right: 14px; }
    .vn-constellation { width: 120px; height: 120px; top: 12px; }
    .vn-dialogue { margin: 8px 14px 14px; padding: 18px 18px 16px; }
    .vn-dialogue::before { right: 50%; transform: translateX(50%) rotate(45deg); }
    .vn-line { font-size: 0.98em; }
    .vn-choice { padding: 9px 14px; font-size: 0.88em; }

    .memory-arrow { width: 40px; height: 40px; font-size: 1.15em; }
    .memory-arrow.prev { left: 10px; } .memory-arrow.next { right: 10px; }
}

/* =================================================
   CUSTOM CURSORS — quill (day) / shooting star (night)
   ================================================= */
html[data-theme="day"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M3 29 L10 22" stroke="%232b1820" stroke-width="2" stroke-linecap="round"/><path d="M10 22 C 14 10, 22 4, 29 3 C 27 10, 22 19, 12 24 Z" fill="%23f0d890" stroke="%23b8852c" stroke-width="1" stroke-linejoin="round"/><path d="M12 22 C 18 14, 24 10, 27 8" stroke="%23b8852c" stroke-width="0.6" fill="none" opacity="0.7"/></svg>') 3 29, auto;
}
html[data-theme="night"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path d="M14 4 L16 12 L24 14 L16 16 L14 24 L12 16 L4 14 L12 12 Z" fill="%23e6ebff" stroke="%23f0d890" stroke-width="0.8"/><circle cx="14" cy="14" r="2" fill="%23f0d890"/></svg>') 14 14, auto;
}

.cursor-sparkle {
    position: fixed;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(168,184,232,0.7) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: sparkle-fade 750ms ease-out forwards;
    mix-blend-mode: screen;
}
@keyframes sparkle-fade {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.25); }
}

/* =================================================
   A11Y
   ================================================= */
@supports (-moz-appearance: none) {
    .stars::before,
    .motes::before {
        animation: none;
        transform: none;
    }

    .vn-celestial,
    .vn-constellation::before,
    .vn-constellation::after,
    .vn-portrait-frame::before,
    .vn-portrait,
    .vn-sprite-aside,
    .footer-stars,
    .update-seal {
        animation: none;
    }

    .vn-portrait-frame::before {
        filter: none;
        opacity: 0.45;
    }

    .vn-portrait,
    .vn-sprite-aside {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
    }

    .cursor-sparkle {
        display: none;
    }
}

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

/* =======================================================
   VOLUME II — Godot rebuild announcement
   Additive layer; extends the existing royal-court system.
   ======================================================= */

/* --- Court nav: allow a third destination (Archive) --- */
.court-nav .nav-links { display: inline-flex; gap: 6px; align-items: center; }

/* --- Engine transition line in the hero title block --- */
.engine-line {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.7em; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink-mute);
    padding: 5px 12px;
    border: 1px solid var(--border-card);
    border-radius: 20px;
    background: var(--bg-soft);
}
.engine-line .from {
    color: var(--ink-dim);
    text-decoration: line-through;
    text-decoration-color: var(--accent-rose);
    text-decoration-thickness: 1.5px;
}
.engine-line .arrow { color: var(--accent-gold); font-size: 1.1em; transform: translateY(-1px); }
.engine-line .to { color: var(--accent-gold); font-weight: 700; letter-spacing: 2.5px; }

/* --- Corner wax-seal: "Rebuilt in Godot" --- */
.update-seal {
    position: absolute;
    right: 60px; top: 50%;
    margin-top: -75px;             /* half of height — centres it on the dialogue's right side */
    z-index: 5;
    pointer-events: none;          /* decorative — never block the dialogue choices */
    width: 150px; height: 150px;
    border-radius: 50%;
    display: grid; place-items: center;
    text-align: center;
    gap: 2px;
    border: 1.5px dashed var(--dialogue-border);
    background: var(--dialogue-bg);
    box-shadow: 0 8px 26px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
    transform: rotate(7deg);
    animation: sealFloat 6.5s ease-in-out infinite;
}
@keyframes sealFloat {
    0%,100% { transform: rotate(7deg) translateY(0); }
    50%     { transform: rotate(7deg) translateY(-6px); }
}
.update-seal .seal-top  { font-family: var(--font-mono); font-size: 0.6em; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-mute); }
.update-seal .seal-main { font-family: var(--font-display); font-weight: 800; font-size: 2.1em; line-height: 0.9; color: var(--accent-gold); text-shadow: 0 1px 12px rgba(240,216,144,0.45); }
.update-seal .seal-sub  { font-family: var(--font-mono); font-size: 0.56em; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 760px) {
    .update-seal { width: 96px; height: 96px; top: auto; bottom: 12px; right: 12px; margin-top: 0; }
    .update-seal .seal-main { font-size: 1.4em; }
}

/* --- Platform glyph inside save-slot ribbon --- */
.slot-label .plat { display: inline-grid; place-items: center; vertical-align: -3px; margin-right: 4px; }
.slot-label .plat svg { width: 14px; height: 14px; fill: currentColor; }

/* --- "What's New" feature herald --- */
.feature-herald {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 20px;
    margin: 6px 0 24px;
}
.feature-card {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 26px 22px 24px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 0 230px;
}
.feature-card::after {
    content: '';
    position: absolute; left: 22px; right: 22px; top: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    opacity: 0.75;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hov); box-shadow: 0 14px 40px rgba(100,120,220,0.18); }
html[data-theme="day"] .feature-card:hover { box-shadow: 0 14px 40px rgba(180,100,70,0.16); }

.feature-glyph {
    width: 56px; height: 56px;
    border-radius: 15px;
    display: grid; place-items: center;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--accent-gold);
    margin-bottom: 16px;
}
.feature-glyph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.feature-tag {
    position: absolute; top: 16px; right: 16px;
    font-family: var(--font-mono); font-size: 0.6em; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #1a1530;
    background: var(--accent-gold);
    padding: 3px 9px; border-radius: 20px;
}
.feature-name {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.2em; color: var(--accent-gold);
    letter-spacing: 0.4px; margin-bottom: 8px;
}
.feature-desc { font-family: var(--font-body); font-size: 0.94em; color: var(--ink-mute); line-height: 1.55; }

.feature-coda {
    text-align: center;
    margin: 2px 0 42px;
    font-family: var(--font-body); font-style: italic; font-size: 1.02em;
    color: var(--ink-mute);
}
.feature-coda strong { color: var(--accent-gold); font-style: normal; font-weight: 600; }

/* --- Legacy bridge callout (→ Ren'Py archive) --- */
.legacy-callout {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    justify-content: space-between;
    background: var(--bg-soft);
    border: 1px solid var(--border-card);
    border-left: 3px solid var(--accent-rose);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 8px 0 36px;
}
.legacy-callout .lc-text { flex: 1 1 320px; }
.legacy-callout h3 {
    font-family: var(--font-display); color: var(--accent-gold);
    font-size: 1.2em; font-weight: 600; letter-spacing: 0.4px; margin-bottom: 5px;
}
.legacy-callout p { font-family: var(--font-body); color: var(--ink-mute); font-size: 0.95em; line-height: 1.5; }

/* --- Archive page intro banner --- */
.archive-intro {
    text-align: center;
    max-width: 660px;
    margin: 18px auto 8px;
    font-family: var(--font-body);
    color: var(--ink-mute);
    font-size: 1.02em;
    line-height: 1.62;
}
.archive-intro strong { color: var(--accent-gold); font-weight: 600; }
