:root {
    color-scheme: dark;
    --bg: #130908;
    --panel: #271210;
    --text: #fff0d7;
    --muted: #dfbdad;
    --accent: #ff9b72;
    --gold: #f1c47e;
    --line: #f1c47e3d;
    --serif: "Noto Serif TC", "Songti TC", serif;
    --sans: "Noto Sans TC", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.75 var(--sans); }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-nav {
    padding: .75rem 0;
    background: #130908eb;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand-seal {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font: 700 1.4rem var(--serif);
}
.brand b { display: block; font: 700 1rem var(--serif); letter-spacing: .12em; }
.brand small, .eyebrow, .social-label {
    display: block;
    color: var(--gold);
    font: .75rem/1.5 var(--sans);
    letter-spacing: .16em;
}
.site-nav .nav-link { color: var(--text); font-size: .9rem; }
.site-nav .nav-link:hover { color: var(--accent); }
.site-nav .nav-download { padding: .5rem .9rem; background: #731c17; border: 1px solid #e8896177; }

.hero-poster {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-items: end;
    text-align: center;
    min-height: clamp(650px, 89svh, 960px);
    padding: 8rem 1rem clamp(3rem, 8vh, 6rem);
}
.hero-art {
    position: absolute;
    z-index: -2;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: max(100%, 940px);
    height: auto;
    filter: saturate(.92);
    mask-image: linear-gradient(#000 0 31%, transparent 44%);
}
.hero-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, #13090850, transparent 25%, #13090828 40%, var(--bg) 82%),
                radial-gradient(ellipse at 50% 30%, transparent 30%, #130908a6 95%);
}
.hero-copy { text-shadow: 0 3px 20px #120d12; }
.hero-kicker { color: var(--gold); font-size: .88rem; letter-spacing: .17em; }
.hero-copy h1 {
    margin: .55rem 0 .4rem;
    color: var(--text);
    font: 900 clamp(3.15rem, 7vw, 6.75rem)/1.2 var(--serif);
    letter-spacing: .08em;
    text-indent: .08em;
}
.hero-tagline { font: 700 clamp(1.1rem, 2.5vw, 1.6rem)/1.6 var(--serif); letter-spacing: .16em; margin-bottom: .5rem; }
.hero-meta { color: var(--muted); margin-bottom: 1.5rem; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; }
.hero-actions .btn { padding: .8rem 1.35rem; border-radius: 0; font-weight: 700; }
.btn-fire { color: #fff3dd; background: linear-gradient(115deg, #c33d21, #811b12); border: 1px solid #f0bd7b; text-shadow: none; }
.btn-fire:hover { background: #a93020; color: #fff3dd; border-color: #f0bd7b; }
.hero-actions .btn-outline-light { color: var(--text); border-color: #f1c47e75; background: #27121096; }
.hero-actions .btn-outline-light:hover { background: #69251b; }

.server-rates { border-block: 1px solid var(--line); background: #30130f; padding: 1.75rem 0; }
.rates-layout { display: grid; grid-template-columns: minmax(9rem, .65fr) 3fr; align-items: center; }
.rates-layout h2 { margin: 0; font: 700 1.35rem var(--serif); color: var(--text); }
.rates-layout dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; text-align: center; }
.rates-layout dl div { border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: .3rem; }
.rates-layout dt { font-weight: 400; color: var(--muted); font-size: .875rem; }
.rates-layout dd { margin: 0; color: var(--accent); font: 700 clamp(1.3rem, 3vw, 2.2rem)/1.2 var(--serif); }

.section-pad { padding: clamp(3.75rem, 8vw, 7rem) 0; }
.feature-section, .community-section { background: radial-gradient(ellipse at 50% 0%, #4b1a12, var(--bg) 65%); }
.section-heading { margin: 0 auto 2rem; }
.section-heading h2, .download-banner h2 {
    margin: .4rem 0 .65rem;
    font: 700 clamp(2rem, 5vw, 3.75rem)/1.3 var(--serif);
    letter-spacing: .07em;
}
.section-heading h2::after, .download-banner h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    background: var(--gold);
    margin: 1rem auto;
}
.section-heading p, .download-banner p { color: var(--muted); }
.feature-card, .detail-box, .social-card {
    height: 100%;
    border: 1px solid var(--line);
    background: linear-gradient(140deg, #421b15, var(--panel));
}
.feature-card { padding: 1.35rem .8rem; text-align: center; }
.feature-symbol { display: block; color: var(--accent); font-size: 1.55rem; margin-bottom: .65rem; }
.feature-card h3, .detail-box h3, .social-card h3 { font: 700 1.15rem/1.45 var(--serif); margin: 0 0 .5rem; }
.feature-card p, .social-card p { color: var(--muted); margin-bottom: 0; }
.details-row { margin-top: 1.5rem !important; }
.detail-box { padding: 1.45rem; }
.detail-box ul { padding-left: 1.15rem; margin: 0; color: var(--muted); }
.detail-box li::marker { color: var(--accent); }
.trailer-section { background: #100807; border-block: 1px solid var(--line); }
.video-frame { aspect-ratio: 16/9; max-width: 920px; margin: auto; background: #090709; border: 1px solid var(--line); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.social-card { padding: 1.15rem; }
.social-icon { color: var(--accent); font-size: 1.75rem; line-height: 1; margin-bottom: .85rem; }
.social-label { margin-bottom: .3rem; }
.social-card p { margin-bottom: .75rem; }
.contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .6rem;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: .45rem 0;
    font-size: .875rem;
}
.contact-line code { color: var(--gold); margin-left: auto; overflow-wrap: anywhere; }
.copy-btn {
    min-width: 38px;
    min-height: 38px;
    background: #130908;
    color: var(--accent);
    border: 1px solid var(--line);
}
.copy-btn:hover, .social-link:hover { color: var(--text); border-color: var(--accent); }
.social-card .contact-hint { font-size: .875rem; margin: .5rem 0 0; }
.compact-card { display: flex; flex-direction: column; }
.social-link { display: block; margin-top: auto; padding: .55rem .65rem; border: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: .875rem; }
.download-banner {
    padding: clamp(4rem, 9vw, 7.5rem) 0;
    border-top: 1px solid var(--line);
    background: radial-gradient(ellipse at 50% 0%, #691d14, #1c0c09 75%);
}
.download-banner h2 em { font-style: normal; color: var(--accent); }
.site-footer { padding: 1.5rem 0; background: #100807; border-top: 1px solid var(--line); }
.footer-brand { color: var(--text); font: 700 1.1rem var(--serif); }
.footer-brand small, .back-top { color: var(--gold); font-size: .875rem; }
.site-footer span, .copyright { color: var(--muted); font-size: .875rem; }
.copyright { border-top: 1px solid var(--line); padding-top: .75rem; }
.toast-message {
    position: fixed;
    z-index: 1100;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: .6rem 1rem;
    background: var(--text);
    color: var(--bg);
    opacity: 0;
    pointer-events: none;
}
.toast-message.show { opacity: 1; }

@media (max-width: 991.98px) {
    .site-nav .nav-download { display: inline-block; }
    .site-nav .navbar-collapse { padding-top: .7rem; }
}
@media (max-width: 575.98px) {
    .hero-poster { min-height: max(580px, 85svh); padding-inline: .85rem; }
    .hero-art { top: 3.5rem; }
    .hero-copy h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero-kicker, .hero-meta { font-size: .875rem; }
    .rates-layout { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
    .rates-layout dl div:first-child { border-left: 0; }
    .rates-layout dt { padding-inline: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.hero-petals {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
}
.hero-petals span { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .hero-art { animation: hero-art-in 4.8s ease-out both; }
    .hero-copy { position: relative; z-index: 2; }
    .hero-copy > * { animation: rise-in .75s cubic-bezier(.2,.65,.3,1) both; }
    .hero-copy h1 { animation-delay: .08s; }
    .hero-tagline { animation-delay: .17s; }
    .hero-meta { animation-delay: .24s; }
    .hero-copy .hero-actions { animation-delay: .32s; }
    .hero-actions:focus-within { animation: none; }

    .hero-petals span {
        display: block;
        position: absolute;
        top: 0;
        left: var(--x);
        width: var(--size, 11px);
        height: calc(var(--size, 11px) * .67);
        border-radius: 50%;
        background: linear-gradient(135deg, #fff4c1, #f36932 72%, #a42914);
        box-shadow: 0 0 12px #ff6c2755;
        opacity: 0;
        animation: petal-fall 4.8s linear var(--delay) both;
    }
    .hero-petals span:nth-child(1) { --x: 7%; --delay: -1s; --drift: 80px; }
    .hero-petals span:nth-child(2) { --x: 18%; --delay: -.5s; --drift: -65px; --size: 8px; }
    .hero-petals span:nth-child(3) { --x: 30%; --delay: -.9s; --drift: 135px; --size: 15px; }
    .hero-petals span:nth-child(4) { --x: 43%; --delay: -.3s; --drift: -100px; --size: 8px; }
    .hero-petals span:nth-child(5) { --x: 59%; --delay: -1.25s; --drift: 110px; }
    .hero-petals span:nth-child(6) { --x: 73%; --delay: -.2s; --drift: -105px; --size: 14px; }
    .hero-petals span:nth-child(7) { --x: 86%; --delay: -.75s; --drift: -95px; }
    .hero-petals span:nth-child(8) { --x: 93%; --delay: -.35s; --drift: -120px; --size: 8px; }

    .scroll-reveal { animation: rise-in .65s cubic-bezier(.2,.65,.3,1) both; }
    .scroll-reveal:focus-within { animation: none; }
    .hero-actions .btn, .social-link {
        transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    }
    .hero-actions .btn:hover, .social-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px #ff6c2730;
    }
}

@keyframes hero-art-in {
    from { transform: translateX(-50%) scale(1); }
    to { transform: translateX(-50%) scale(1.11); }
}
@keyframes rise-in {
    from { opacity: .25; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes petal-fall {
    0% { opacity: 0; transform: translate(0, -18px) rotate(-25deg); }
    24% { opacity: .68; }
    65% { opacity: .72; }
    100% { opacity: 0; transform: translate(var(--drift), 85svh) rotate(240deg); }
}

.entry-gate {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: max(1.25rem, env(safe-area-inset-top)) 1rem;
    border: 0;
    background: linear-gradient(#16080666, #160806ee 70%),
                url("../assets/tianan-tower.jpg") center top / cover;
    color: var(--text);
    text-align: center;
}
.entry-gate[open] { display: grid; place-items: center; }
.entry-gate::backdrop { background: #130706; }
body:has(.entry-gate[open]) { overflow: hidden; }
.gate-panel {
    position: relative;
    isolation: isolate;
    width: min(100%, 37rem);
    padding: clamp(1.25rem, 5vw, 3rem);
    border: 1px solid var(--gold);
    background: radial-gradient(ellipse at top, #621d15ee, #170b09f5 76%);
    box-shadow: 0 0 4rem #a22d1d88, inset 0 0 2rem #080302;
}
.gate-seal {
    display: grid;
    place-items: center;
    margin: 0 auto .75rem;
    width: 4rem;
    aspect-ratio: 1;
    border: 2px solid #ff9b72;
    color: #ffbc96;
    background: #8b241a;
    font: 900 2.25rem var(--serif);
    transform: rotate(-8deg);
}
.gate-panel h2 {
    margin: 0;
    font: 900 clamp(2.45rem, 9vw, 5rem)/1.3 var(--serif);
    color: var(--text);
    text-shadow: 0 3px #771b13, 0 0 26px #ff742e80;
}
.gate-panel p { color: var(--gold); margin: .4rem 0 1.25rem; }
.gate-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gate-options button, .chapter-nav a, .chapter-nav button, .reopen-gate {
    border: 1px solid var(--line);
    background: #21100e;
    color: var(--text);
    font: 700 .9rem var(--serif);
    padding: .65rem .5rem;
}
.gate-options .gate-primary {
    grid-column: 1 / -1;
    color: #fff0d7;
    background: linear-gradient(110deg, #911d12, #c33921, #791a12);
    border-color: var(--gold);
    font-size: 1.15rem;
}
.gate-options button:hover, .chapter-nav a:hover, .chapter-nav button:hover:not(:disabled), .reopen-gate:hover {
    border-color: var(--gold);
    background-color: #7d2119;
}
.chapter-curtain {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    transform: scaleX(0);
    background: linear-gradient(110deg, #180705 5%, #66140e 40%, #a02b19 78%, #f2bc74 99%);
    box-shadow: inset 0 0 8rem #120604;
}
.chapter-nav:not([hidden]) {
    display: flex;
    gap: .25rem;
    position: fixed;
    z-index: 1029;
    right: max(.55rem, env(safe-area-inset-right));
    bottom: max(.55rem, env(safe-area-inset-bottom));
    padding: .3rem;
    background: #1c0b09f5;
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px #0008;
}
.chapter-nav a, .chapter-nav button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
}
.chapter-nav a[aria-current] { background: #942419; border-color: var(--gold); }
.chapter-nav button:disabled { opacity: .35; }
body:has(.chapter-nav:not([hidden])) .site-footer { padding-bottom: 4.5rem; }
body:has(.chapter-nav:not([hidden])) .toast-message { bottom: 4.25rem; }
[data-chapter] h1:focus, [data-chapter] h2:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
    .entry-gate[open] .gate-panel { animation: gate-open .8s cubic-bezier(.24,.7,.26,1) both; }
    .entry-gate[open] .gate-seal { animation: seal-strike .75s cubic-bezier(.18,.7,.27,1.3) both; }
    .entry-gate[open] .gate-options button { animation: rise-in .55s .22s both; }
    .entry-gate[open] .gate-options button:nth-child(n+2) { animation-delay: .34s; }
    .entry-gate[open] .gate-options button:nth-child(n+4) { animation-delay: .45s; }
    .gate-options button, .chapter-nav a, .feature-card, .detail-box, .social-card, .copy-btn {
        transition: translate .25s ease, background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    .gate-options button:hover, .feature-card:hover, .detail-box:hover, .social-card:hover {
        translate: 0 -4px;
        box-shadow: 0 10px 28px #c6342444, inset 0 0 14px #c634242c;
        border-color: var(--gold);
    }
    .copy-btn:active { translate: 0 3px; }
    .chapter-enter.hero-poster .hero-art { animation-name: hero-reentry; }
    .chapter-enter.hero-poster .hero-copy { animation: gate-open 1s .35s both; }
    .chapter-enter.hero-poster .hero-petals span { animation-name: ember-reentry; }
    body:has(.entry-gate[open]) .hero-poster * { animation: none; }
    .chapter-enter > .container { animation: chapter-opening 1s .32s cubic-bezier(.19,.72,.29,1) both; }
    .scroll-reveal { animation-name: chapter-opening; animation-duration: .85s; }
    .row > div:nth-child(even) > .scroll-reveal { animation-delay: .09s; }
    .row > div:nth-child(3n) > .scroll-reveal { animation-delay: .17s; }
    .feature-symbol, .social-icon { transition: transform .35s cubic-bezier(.22,.75,.35,1.45); }
    .feature-card:hover .feature-symbol, .social-card:hover .social-icon { transform: scale(1.3) rotate(-9deg); }
}
@keyframes gate-open {
    from { opacity: 0; transform: perspective(850px) rotateX(12deg) scale(.86); }
    to { opacity: 1; transform: perspective(850px) rotateX(0) scale(1); }
}
@keyframes seal-strike {
    from { opacity: 0; transform: translateY(-34px) rotate(13deg) scale(2); }
    72% { opacity: 1; transform: translateY(0) rotate(-13deg) scale(.93); }
    to { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes chapter-opening {
    from { opacity: .32; transform: translateY(30px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-reentry {
    from { transform: translateX(-50%) scale(1); }
    to { transform: translateX(-50%) scale(1.11); }
}
@keyframes ember-reentry {
    0% { opacity: 0; transform: translate(0, -18px) rotate(-25deg); }
    24% { opacity: .8; }
    65% { opacity: .8; }
    100% { opacity: 0; transform: translate(var(--drift), 85svh) rotate(240deg); }
}

.highlight-gallery { max-width: 920px; margin: 0 auto 2.75rem; }
.highlight-stage { border: 1px solid var(--gold); box-shadow: 0 0 28px #86231960; overflow: hidden; }
.highlight-slide { position: relative; margin: 0; }
.highlight-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1.89; object-fit: cover; }
.highlight-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1rem .65rem;
    background: linear-gradient(transparent, #130908ed);
    color: var(--text);
    font: 700 clamp(1rem, 3vw, 1.45rem) var(--serif);
}
.highlight-controls:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.highlight-controls button {
    padding: .5rem 1rem;
    border: 1px solid var(--line);
    background: #271210;
    color: var(--text);
}
.highlight-controls button:hover, .highlight-controls button[aria-pressed="true"] { border-color: var(--gold); background: #8b241a; }

@media (prefers-reduced-motion: no-preference) {
    .highlight-slide:not([hidden]) { animation: highlight-in .58s ease-out both; }
    .chapter-enter#trailer > .container { animation-name: highlight-in; }
    .chapter-enter#community > .container { animation-name: gate-open; }
    .chapter-enter#download h2 { animation: seal-strike .85s .45s both; }
}
@keyframes highlight-in {
    from { opacity: .35; clip-path: inset(8% 12%); }
    to { opacity: 1; clip-path: inset(0); }
}

.gate-audio {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--gold);
}
.gate-audio input { width: 1rem; height: 1rem; accent-color: #c84927; }

.ambience-controls:not([hidden]) {
    position: fixed;
    z-index: 1029;
    right: max(.55rem, env(safe-area-inset-right));
    bottom: calc(max(.55rem, env(safe-area-inset-bottom)) + 3.4rem);
    display: flex;
    gap: .35rem;
}
.ambience-controls button {
    min-height: 40px;
    padding: .4rem .75rem;
    border: 1px solid var(--line);
    background: #1c0b09f5;
    color: var(--text);
    font: 700 .875rem var(--serif);
}
.ambience-controls button[aria-pressed="true"] { background: #942419; border-color: var(--gold); }
.ambience-controls button:hover { border-color: var(--gold); }
body:has(.ambience-controls:not([hidden])) .toast-message { bottom: 7rem; }
body:has(.ambience-controls:not([hidden])) .site-footer { padding-bottom: 7rem; }

.sakura-field {
    display: none;
    position: fixed;
    z-index: 1020;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.entry-gate .sakura-field { position: absolute; z-index: 0; }
.gate-panel { z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
    :root:not(.sakura-paused) .sakura-field { display: block; }
    body:has(.entry-gate[open]) > .sakura-field { display: none; }
    .sakura-field span {
        position: absolute;
        top: -1.5rem;
        left: var(--x);
        width: var(--size);
        height: calc(var(--size) * .72);
        border-radius: 78% 26% 70% 24%;
        background: radial-gradient(ellipse at 23% 24%, #ffe2ce, #f2a6a3 42%, #b63148 92%);
        animation: sakura-fall var(--duration) var(--delay) linear infinite;
    }
    .sakura-field span:nth-child(3n) { filter: blur(1px); }
    .sakura-field span:nth-child(4n) { background: radial-gradient(ellipse at 25% 25%, #fff2ca, #ff946d 55%, #a02a20); }
    .scroll-reveal.section-heading h2::after,
    .chapter-enter .section-heading h2::after {
        animation: ink-line .9s .15s cubic-bezier(.2,.65,.3,1) both;
    }
    .ambience-controls button { transition: background-color .24s, box-shadow .24s; }
    .ambience-controls button:hover { box-shadow: 0 0 17px #f36b4b55; }
    .site-nav .brand:hover .brand-seal { animation: seal-flare .6s ease-out; }
}

@keyframes sakura-fall {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
    12% { opacity: .86; }
    32% { transform: translate3d(calc(var(--drift) * -.3), 37dvh, 0) rotate(155deg) scaleX(.55); }
    68% { opacity: .72; transform: translate3d(calc(var(--drift) * .8), 72dvh, 0) rotate(330deg); }
    100% { opacity: 0; transform: translate3d(var(--drift), calc(100dvh + 3rem), 0) rotate(540deg) scaleX(.65); }
}
@keyframes ink-line {
    from { transform: scaleX(0); box-shadow: 0 0 16px #f86b3d; }
    to { transform: scaleX(1); box-shadow: 0 0 0 transparent; }
}
@keyframes seal-flare {
    50% { box-shadow: 0 0 1.15rem #f86b3d; transform: rotate(-8deg) scale(1.08); }
}

/* Tianan Tower's daylight, plaster, roof tile and timber palette. */
:root {
    color-scheme: light;
    --bg: #f7f1e5;
    --panel: #fffaf0;
    --text: #2c2a24;
    --muted: #615444;
    --accent: #9b3020;
    --gold: #805426;
    --line: #9e784b66;
}
.site-nav { background: #302f28f2; border-color: #d4a56c88; }
.site-nav .brand, .site-nav .nav-link { color: #fff7e7; }
.site-nav .brand small, .site-nav .brand-seal { color: #f0c48b; border-color: #f0c48b; }
.site-nav .nav-link:hover { color: #ffd4a4; }
.site-nav .nav-download { background: #a53b27; border-color: #e5ab76; }

.hero-poster {
    min-height: clamp(560px, 94svh, 1100px);
    padding-bottom: clamp(1.8rem, 5vh, 4.5rem);
    background: #567f9e;
}
.hero-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 52%;
    transform: none;
    mask-image: none;
    filter: none;
}
.hero-shade { background: linear-gradient(transparent 55%, #29180b25 67%, #25170ce8 100%); }
.hero-copy { color: #fff8e9; }
.hero-copy h1 { color: #fff8e9; font-size: clamp(2.6rem, 6vw, 5rem); text-shadow: 0 3px 16px #211208; }
.hero-kicker, .hero-meta { color: #fff0d2; }
.hero-actions .btn-outline-light { color: #fff7e7; background: #372a20df; border-color: #edc18b; }
.hero-actions .btn-outline-light:hover { background: #59402c; }
.btn-fire { background: linear-gradient(110deg, #a43923, #842919); border-color: #d7a069; color: #fff8ea; }
.btn-fire:hover { background: #722316; color: #fff8ea; border-color: #ddb380; }

.server-rates { background: #f0dcc0; }
.feature-section { background: linear-gradient(#f9e9dc, #fbf5ea 42%, #f4e8d8); }
.trailer-section { background: linear-gradient(#e0edf7, #f1f4f2); }
.community-section { background: linear-gradient(#fae8e3, #faf5e8); }
.download-banner { background: radial-gradient(ellipse at 50% 0%, #f7ddb4, #edc89e 86%); }
.feature-card, .detail-box, .social-card {
    background: linear-gradient(135deg, #fffdf7, #f7ecd8);
    border-top: 3px solid #c18a55;
    box-shadow: 0 6px 16px #73512d14;
}
.copy-btn { background: #fffaf0; }
.social-link:hover, .copy-btn:hover { color: #7d2619; }
.highlight-stage { box-shadow: 0 9px 23px #344a5c33; }
.highlight-slide figcaption { color: #fff7e9; }
.highlight-controls button { background: #fffaf0; color: var(--text); }
.highlight-controls button:hover {
    background: #f0dcc0;
    border-color: #9b673b;
    color: #542e1d;
}
.highlight-controls button[aria-pressed="true"] {
    background: #913820;
    border-color: #913820;
    color: #fff8ea;
}
.highlight-controls button[aria-pressed="true"]:hover {
    background: #73301e;
    border-color: #73301e;
}
.video-frame + .video-frame { margin-top: 1.5rem; }
.site-footer { background: #36322a; }
.site-footer .footer-brand, .site-footer .back-top { color: #fff0d7; }
.site-footer span, .site-footer small, .copyright { color: #ead6b6; }
.toast-message { background: #433225; color: #fff4df; }

.entry-gate {
    padding: 0;
    background: url("../assets/tianan-tower.jpg") 50% 50% / cover no-repeat #61a2dd;
}
.entry-gate[open] { display: block; }
.gate-panel {
    display: grid;
    justify-items: center;
    align-content: end;
    gap: .55rem;
    width: 100%;
    min-height: 100%;
    padding: 6rem .75rem max(1rem, env(safe-area-inset-bottom));
    border: 0;
    background: linear-gradient(transparent 72%, #21160ad9);
    box-shadow: none;
}
.gate-panel h2 {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top));
    font-size: clamp(1.65rem, 4vw, 3.1rem);
    color: #fff9ec;
    text-shadow: 0 2px 10px #173d6f;
}
.gate-panel h2 small { display: block; font-size: .48em; letter-spacing: .25em; }
.gate-door {
    position: absolute;
    z-index: 2;
    top: 76%;
    left: 49.5%;
    transform: translate(-50%, -50%);
    min-width: 8rem;
    padding: .72rem 1.15rem;
    border: 1px solid #f7d7a3;
    color: #fff4dd;
    background: linear-gradient(135deg, #a54322, #6c2816);
    box-shadow: 0 0 0 4px #55281380, 0 0 24px #ffb04da0;
    font: 700 1.05rem var(--serif);
}
.gate-door:hover { background: #9d3d20; box-shadow: 0 0 0 4px #ab6739a0, 0 0 28px #ffd78cc0; }
.gate-options { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 31rem); }
.gate-options button, .chapter-nav a, .chapter-nav button, .ambience-controls button, .reopen-gate {
    background: #47382bed;
    color: #fff5df;
    border-color: #c69a69;
}
.chapter-nav:not([hidden]) { background: #39312ae8; }
.chapter-nav a[aria-current], .ambience-controls button[aria-pressed="true"] {
    background: #932d1d;
    border-color: #eab77c;
}
.gate-audio { color: #fff1d5; margin-top: 0; text-shadow: 0 1px 4px #241509; }
.chapter-curtain { background: linear-gradient(110deg, #352c26, #795134 51%, #d19960 98%); }
.door-transition:not([hidden]) {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    z-index: 1201;
    pointer-events: none;
}
.door-transition span {
    position: relative;
    background: repeating-linear-gradient(90deg, #65381d 0 2px, #a46737 3px, #b97c45 11%, #905128 19%);
    border: clamp(5px, 1vw, 15px) solid #75421f;
    box-shadow: inset 0 0 4rem #4b2515;
    animation: tower-door 1.12s .025s cubic-bezier(.65,.15,.28,1) both;
    --exit: -103%;
}
.door-transition span:last-child { --exit: 103%; }
.door-transition span::after {
    content: "";
    position: absolute;
    top: 53%;
    right: 1rem;
    width: clamp(1.3rem, 4vw, 3rem);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid #d5a265;
    background: #5d331b;
}
.door-transition span:last-child::after { left: 1rem; right: auto; }
@keyframes tower-door { to { transform: translateX(var(--exit)); } }
@keyframes tower-scene-in { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
    .hero-art, .chapter-enter.hero-poster .hero-art { animation-name: tower-scene-in; }
    .entry-gate[open] .gate-panel { animation: none; }
    .entry-gate[open] .gate-door { animation: door-glow 1.25s ease-out both; }
}
@keyframes door-glow {
    from { opacity: .4; box-shadow: 0 0 0 4px #55281380, 0 0 48px #ffd285; }
    to { opacity: 1; }
}
@media (max-width: 575.98px) {
    .entry-gate { background-position: 50% 52%; }
    .gate-options { gap: .3rem; }
    .gate-options button { padding-inline: .2rem; font-size: .8rem; }
    .gate-door { top: 74%; }
    .hero-art { object-position: 50% 50%; }
}
@media (max-height: 500px) {
    .gate-door { top: 58%; }
    .gate-panel { padding-top: 4rem; }
}
