:root {
    --world-gold: #cdb779;
    --world-gold-dark: #7f6a3d;
    --world-cream: #eee8d7;
    --world-teal: #153e42;
    --world-deep: #071416;
    --world-red: #521519;
    --world-content-width: 1040px;
    --world-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body.world-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: var(--world-deep);
}

body.world-page {
    color: var(--world-cream);
}

.world-page .site-header {
    position: fixed;
    z-index: 900;
    top: 0;
    right: 0;
    left: 0;
}

.world-main {
    padding-top: var(--header-height);
    overflow: hidden;
}

.world-main h1,
.world-main h2,
.world-main h3,
.world-main p,
.world-main figure {
    margin-top: 0;
}

.world-hero {
    position: relative;
    height: min(840px, calc(100svh - var(--header-height)));
    min-height: 610px;
    overflow: hidden;
    background: #101819;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    background: #101819;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 51, 46, 0.68), transparent 40%, transparent 72%, rgba(0, 0, 0, 0.55)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 48%, rgba(0, 0, 0, 0.55));
}

.hero-title-card {
    position: absolute;
    z-index: 2;
    bottom: 8%;
    left: 5.5%;
    width: min(390px, 38vw);
    padding: 28px 34px;
    background: rgba(7, 45, 41, 0.62);
    border: 1px solid rgba(224, 210, 171, 0.3);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

.hero-title-card::before,
.hero-title-card::after {
    content: "";
    position: absolute;
    left: 22px;
    width: 90px;
    height: 1px;
    background: rgba(224, 210, 171, 0.42);
}

.hero-title-card::before { top: 18px; }
.hero-title-card::after { bottom: 18px; }

.hero-title-card p,
.hero-title-card span {
    color: rgba(238, 232, 215, 0.72);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}

.hero-title-card h1 {
    margin: 10px 0 8px;
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    font-weight: 500;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

.hero-copy {
    position: absolute;
    z-index: 2;
    top: 10%;
    right: 5.5%;
    writing-mode: vertical-rl;
    font-size: clamp(1.18rem, 2.2vw, 2rem);
    line-height: 2;
    letter-spacing: 0.11em;
    text-shadow: 0 3px 22px #000;
}

.hero-movie {
    position: absolute;
    z-index: 2;
    top: 28%;
    left: 6%;
    display: grid;
    place-items: center;
    width: clamp(170px, 23vw, 330px);
    aspect-ratio: 1.62;
    color: #fff;
    text-decoration: none;
    background: rgba(1, 62, 51, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(3px);
    transition: background 0.7s var(--world-ease), transform 0.7s var(--world-ease);
}

.hero-movie::before,
.hero-movie::after {
    content: "";
    position: absolute;
    width: 44%;
    height: 1px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-movie::before { top: 17%; left: 0; }
.hero-movie::after { right: 0; bottom: 17%; }

.hero-movie:hover {
    background: rgba(1, 62, 51, 0.42);
    transform: translateY(-4px);
}

.play-mark {
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 42px solid rgba(4, 91, 65, 0.9);
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.36));
}

.hero-movie > span:last-child {
    position: absolute;
    right: 10px;
    bottom: 7px;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
}

.hero-caption {
    position: absolute;
    z-index: 2;
    right: 4%;
    bottom: 2.5%;
    font-size: clamp(0.72rem, 1vw, 0.88rem);
    letter-spacing: 0.12em;
}

.storybook-divider {
    position: relative;
    height: clamp(210px, 28vw, 390px);
    overflow: hidden;
    background: #657184;
}

.storybook-divider > div {
    position: absolute;
    inset: -12%;
    background: url("/assets/images/world/legacy/storybook-divider.webp") center / cover no-repeat;
    transform: translate3d(0, var(--world-parallax-y, 0), 0) scale(1.07);
    will-change: transform;
}

.ornate-section {
    position: relative;
    padding:0.5vw;
    background-color: #101719;
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.60), rgba(26, 26, 26, 0.60)),
        url("/assets/images/backgrounds/news-background.svg");
    background-position: center, center top;
    background-size: auto, cover;
}

.ornate-panel {
    position: relative;
    isolation: isolate;
    width: min(var(--world-content-width), 100%);
    min-height: 700px;
    margin: 0 auto;
    padding: clamp(58px, 7vw, 9px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.46), inset 0 0 90px rgba(226, 198, 149, 0.035);
}

.ornate-panel > :not(.chapter-star-field):not(.corner) {
    position: relative;
    z-index: 1;
}

.chapter-star-field {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.chapter-star {
    position: absolute;
    display: block;
    opacity: 0.26;
    filter: drop-shadow(0 0 5px rgba(226, 198, 149, 0.12));
    animation: chapter-star-float var(--star-duration) cubic-bezier(0.45, 0, 0.2, 1) var(--star-delay) infinite alternate;
}

.corner {
    position: absolute;
    z-index: 3;
    width: clamp(58px, 8vw, 105px);
    opacity: 0.78;
    pointer-events: none;
}

.corner-tl { top: 14px; left: 14px; transform: scaleY(-1); }
.corner-tr { top: 14px; right: 14px; transform: scale(-1); }
.corner-bl { bottom: 14px; left: 14px; }
.corner-br { right: 14px; bottom: 14px; transform: scaleX(-1); }

.chapter-heading {
    text-align: center;
}

.chapter-heading > p,
.story-heading > p {
    margin-bottom: 2px;
    color: var(--world-gold);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
}

.chapter-heading h2,
.story-heading h2 {
    margin-bottom: 12px;
    color: var(--world-gold);
    font-size: clamp(1.5rem, 3vw, 2.55rem);
    font-weight: 500;
    letter-spacing: 0.2em;
}

.chapter-heading > img {
    width: min(500px, 78%);
    max-height: 38px;
}

.chapter-lead {
    margin: 30px 0 45px;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.26rem);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
    max-width: 820px;
    margin: 0 auto;
}

.portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 0.9;
}

.portrait-image {
    position: absolute;
    z-index: 1;
    top: 18%;
    left: 20%;
    width: 60%;
    height: 64%;
    object-fit: cover;
}

.portrait-frame-image {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.body-copy {
    font-size: 0.9rem;
    line-height: 2;
}

.body-copy p {
    margin-bottom: 17px;
}

.panel-ending {
    display: block;
    width: min(520px, 74%);
    max-height: 42px;
    margin: 58px auto 0;
}

.button-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.button-center {
    justify-content: center;
}

.world-detail-button {
    position: relative;
    display: block;
    width: 170px;
    aspect-ratio: 333.35 / 65.51;
    overflow: hidden;
    border-radius: 999px;
    isolation: isolate;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: transform 0.6s var(--world-ease), filter 0.6s var(--world-ease);
}

.world-detail-button img {
    position: absolute;
    display: block;
    pointer-events: none;
}

.world-detail-button .detail-base {
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
}

.world-detail-button .detail-orbit {
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 25%;
    aspect-ratio: 1;
    opacity: 0.62;
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: detail-orbit 14s linear infinite;
}

.world-detail-button .detail-icon {
    z-index: 3;
    top: 50%;
    width: 10%;
    opacity: 0.72;
    transform: translateY(-50%);
}

.world-detail-button .detail-icon-left {
    left: 8%;
}

.world-detail-button .detail-icon-right {
    right: 8%;
    max-width: 10%;
}

.world-detail-button .detail-label {
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 26%;
    transform: translate(-50%, -50%);
}

.world-detail-button:hover {
    filter: drop-shadow(0 0 14px rgba(150, 68, 221, 0.75));
    transform: translateY(-3px) scale(1.045);
}

.world-detail-button:hover .detail-icon {
    filter: drop-shadow(0 0 7px rgba(190, 106, 255, 0.95));
}

.invitation-band {
    --band-space-y: clamp(80px, 9vw, 120px);
    --band-side-gutter: max(0px, calc((100% - var(--world-content-width)) / 2));
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 430px;
    padding: var(--band-space-y) 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.6)),
        url("/assets/images/world/bg-pattern.svg") center 44% / 2000px auto repeat;
    border-top: 1px solid rgba(205, 183, 121, 0.14);
    border-bottom: 1px solid rgba(205, 183, 121, 0.14);
    scroll-margin-top: var(--header-height);
}

.invitation-band::before,
.invitation-band::after {
    content: "";
    position: absolute;
    z-index: 8;
    right: 0;
    left: 0;
    height: clamp(30px, 6vw, 52px);
    background: rgba(26, 26, 26, 1);
    pointer-events: none;
}

.invitation-band::before { top: 0; }
.invitation-band::after { bottom: 0; }

.band-emblem-stack {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: clamp(500px, 56vw, 840px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.band-emblem {
    position: absolute;
    display: block;
    object-fit: contain;
}

.band-emblem-secondary {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    filter: brightness(0.42) saturate(0.65);
    animation: band-emblem-clockwise 100s linear infinite;
}

.band-emblem-primary {
    inset: 18%;
    width: 64%;
    height: 64%;
    opacity: 0.72;
    filter: drop-shadow(0 0 18px rgba(226, 198, 149, 0.1));
    animation: band-emblem-counterclockwise 72s linear infinite;
}

.band-side {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: clamp(190px, 16vw, 280px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.band-side-left {
    left: max(55px, calc(var(--band-side-gutter) / 2));
    transform: translate(-50%, -50%);
}

.band-side-right {
    right: max(55px, calc(var(--band-side-gutter) / 2));
    transform: translate(50%, -50%);
}

.band-sigil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 12px rgba(226, 198, 149, 0.08));
    z-index: 10;
}

.band-tarot {
    position: relative;
    z-index: 11;
    width: 60%;
    max-height: 215px;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
    animation: band-tarot-float 7.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.band-side-right .band-tarot {
    animation-delay: -3.7s;
    animation-direction: reverse;
}

.band-copy {
    position: relative;
    z-index: 4;
    width: min(var(--world-content-width), 100%);
    margin: 0 auto;
    padding: 34px clamp(28px, 5vw, 72px);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.band-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(-1 * var(--band-space-y));
    right: 0;
    bottom: calc(-1 * var(--band-space-y));
    left: 0;
    background: rgba(0, 0, 0, 0.7);
}

.band-copy > p:first-child {
    color: var(--world-gold);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
}

.band-copy h2 {
    margin-bottom: 25px;
    color: var(--world-gold);
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 500;
    letter-spacing: 0.17em;
}

.band-body {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.band-body p {
    margin-bottom: 12px;
    font-size: 0.86rem;
    line-height: 1.9;
}

.story-section {
    --story-cinema-bar: clamp(48px, 7svh, 82px);
    position: relative;
    min-height: 100svh;
    padding: var(--story-cinema-bar) 0;
    overflow: hidden;
    background: #0b0809;
}

.story-section::before,
.story-section::after {
    content: "";
    position: absolute;
    z-index: 6;
    right: 0;
    left: 0;
    height: var(--story-cinema-bar);
    background: #000;
    pointer-events: none;
}

.story-section::before { top: 0; }
.story-section::after { bottom: 0; }

.story-background {
    position: absolute;
    z-index: 0;
    inset: calc(var(--story-cinema-bar) - 4%) -4%;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(25, 7, 31, 0.2), rgba(0, 0, 0, 0.58)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 42%, rgba(0, 0, 0, 0.28)),
        var(--story-background-image) center / cover no-repeat;
    filter: blur(6px) brightness(1) saturate(0.88);
    opacity: 1;
    transform: scale(1.05);
    transition: opacity 0.68s var(--world-ease), filter 0.9s var(--world-ease), transform 1.25s var(--world-ease);
}

.story-background.is-changing {
    opacity: 0.15;
    filter: blur(18px) brightness(0.28) saturate(0.5);
    transform: scale(1.1);
}

.story-background-video {
    position: absolute;
    z-index: 0;
    inset: calc(var(--story-cinema-bar) - 4%) -4%;
    width: 108%;
    height: calc(108% - (var(--story-cinema-bar) * 2));
    object-fit: cover;
    opacity: 0;
    filter: blur(6px) brightness(0.55) saturate(0.82);
    transform: scale(1.05);
    pointer-events: none;
    transition: opacity 1.8s var(--world-ease), filter 2.1s var(--world-ease), transform 2.4s var(--world-ease);
}

.story-background-video.is-visible {
    opacity: 0.9;
    filter: blur(6px) brightness(0.62) saturate(0.88);
    transform: scale(1.025);
}

.story-ghost-title {
    position: absolute;
    z-index: 1;
    top: 19%;
    left: clamp(22px, 3.2vw, 64px);
    max-width: 92vw;
    margin: 0;
    color: #c10000;
    font-size: clamp(4.5rem, 11vw, 11rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 0;
    filter: blur(7px);
    text-shadow:
        0 0 22px rgba(193, 0, 0, 0.35),
        0 0 46px rgba(106, 0, 17, 0.46);
    transform: translateX(-120px);
    pointer-events: none;
    transition:
        opacity 1.5s var(--world-ease),
        filter 1.8s var(--world-ease),
        transform 1.8s var(--world-ease);
}

.story-section.is-visible .story-ghost-title.is-visible {
    animation: story-title-arrive 1.8s var(--world-ease) both;
}

.story-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(var(--world-content-width), calc(100% - 40px));
    min-height: calc(100svh - (var(--story-cinema-bar) * 2));
    margin: 0 auto;
    padding: clamp(24px, 3.6svh, 44px) 0;
}

.story-heading {
    width: min(310px, 100%);
    text-align: left;
}

.story-heading span {
    color: rgba(205, 183, 121, 0.6);
    font-size: 0.64rem;
    letter-spacing: 0.34em;
}

.story-intro {
    width: min(640px, 100%);
    margin: 15px 0 22px;
    color: rgba(238, 232, 215, 0.72);
    font-size: 0.76rem;
    line-height: 1.9;
}

.story-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 18px max(18px, calc((100vw - var(--world-content-width)) / 2)) 26px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(185, 101, 255, 0.45) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.story-tab {
    position: relative;
    flex: 0 0 clamp(158px, 17vw, 184px);
    min-height: clamp(236px, 28vw, 282px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(205, 183, 121, 0.52);
    border-radius: 5px;
    color: var(--world-cream);
    font-family: inherit;
    text-align: center;
    background: #0c0a0e;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.48);
    scroll-snap-align: center;
    cursor: pointer;
    isolation: isolate;
    transform: translateY(0) rotate(0);
    transition:
        transform 0.95s var(--world-ease),
        border-color 0.75s var(--world-ease),
        box-shadow 0.95s var(--world-ease),
        filter 0.75s var(--world-ease),
        opacity 0.75s var(--world-ease);
}

.story-tab:nth-child(3n + 1) { transform: rotate(-1.2deg); }
.story-tab:nth-child(3n + 2) { transform: translateY(5px) rotate(0.8deg); }
.story-tab:nth-child(3n) { transform: rotate(0.45deg); }

.story-tab::before,
.story-tab::after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 7px;
    border: 1px double rgba(205, 183, 121, 0.44);
    pointer-events: none;
    transition: border-color 0.75s var(--world-ease), box-shadow 0.75s var(--world-ease), opacity 0.75s var(--world-ease);
}

.story-tab::after {
    z-index: 2;
    inset: -35%;
    border: 0;
    background: radial-gradient(circle, rgba(185, 101, 255, 0.36), transparent 54%);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.9s var(--world-ease), transform 1.1s var(--world-ease);
}

.story-card-image {
    position: absolute;
    z-index: 0;
    inset: 24px 18px 78px;
    overflow: hidden;
    border-radius: 50% 50% 43% 43%;
    background-image: var(--story-card-art);
    background-position: center;
    background-size: cover;
    filter: grayscale(0.82) sepia(0.18) brightness(0.34) saturate(0.56);
    transform: scale(1.07);
    transition: filter 0.95s var(--world-ease), transform 1.2s var(--world-ease);
}

.story-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 5, 9, 0.94));
}

.story-tab > small,
.story-tab > strong,
.story-tab > span,
.story-tab > em {
    position: absolute;
    z-index: 5;
    right: 17px;
    left: 17px;
    display: block;
}

.story-tab > small {
    top: 20px;
    color: rgba(205, 183, 121, 0.74);
    font-size: 0.48rem;
    letter-spacing: 0.22em;
}

.story-tab > strong {
    bottom: 47px;
    color: #f1e8d2;
    font-size: clamp(0.72rem, 1.1vw, 0.9rem);
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 14px #000;
}

.story-tab > span {
    bottom: 18px;
    overflow: hidden;
    color: rgba(238, 232, 215, 0.54);
    font-size: 0.51rem;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-tab > em {
    top: 19px;
    right: 11px;
    left: auto;
    color: #e5c8ff;
    font-size: 0.4rem;
    font-style: normal;
    letter-spacing: 0.18em;
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity 0.65s var(--world-ease), transform 0.75s var(--world-ease);
}

.story-tab:hover {
    border-color: rgba(205, 183, 121, 0.82);
    transform: translateY(-10px) rotate(0);
}

.story-tab:hover .story-card-image,
.story-tab.is-active .story-card-image {
    filter: grayscale(0.16) sepia(0.04) brightness(0.58) saturate(0.92);
    transform: scale(1.01);
}

.story-tab.is-active {
    z-index: 3;
    border-color: rgba(225, 194, 255, 0.94);
    box-shadow:
        0 0 0 1px rgba(185, 101, 255, 0.3),
        0 0 18px rgba(185, 101, 255, 0.68),
        0 0 52px rgba(111, 47, 163, 0.5),
        0 24px 52px rgba(0, 0, 0, 0.68);
    transform: translateY(-13px) rotate(0) scale(1.035);
}

.story-tab.is-active::before {
    border-color: rgba(226, 198, 255, 0.58);
    box-shadow: inset 0 0 22px rgba(185, 101, 255, 0.2);
}

.story-tab.is-active::after {
    opacity: 1;
    transform: scale(1);
}

.story-tab.is-active > em {
    opacity: 1;
    transform: translateY(0);
}

.story-paper {
    position: relative;
    width: 100%;
    min-height: 286px;
    margin: 0;
    padding: 28px 34px;
    text-align: center;
    background: rgba(7, 7, 8, 0.9);
    border: 1px solid rgba(205, 183, 121, 0.36);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.54), inset 0 0 50px rgba(205, 183, 121, 0.035);
}

.story-selected-heading {
    width: min(720px, calc(100% - 116px));
    margin: 9px auto 11px;
    text-align: center;
}

.story-selected-heading h3 {
    margin: 6px 0 0;
    color: var(--world-gold);
    font-size: clamp(1rem, 2vw, 1.32rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.12em;
}

.story-paper-stage {
    display: grid;
    grid-template-columns: 58px minmax(0, 720px) 58px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(872px, 100%);
    margin: 0 auto;
}

.story-paper.is-updating .story-paper-copy {
    animation: story-copy-arrive 0.95s var(--world-ease) both;
}

.story-paper-corner {
    position: absolute;
    z-index: 2;
    width: 48px;
    opacity: 0.76;
    pointer-events: none;
}

.story-paper-corner.corner-tl { top: 8px; left: 8px; transform: scaleY(-1); }
.story-paper-corner.corner-tr { top: 8px; right: 8px; transform: scale(-1); }
.story-paper-corner.corner-bl { bottom: 8px; left: 8px; }
.story-paper-corner.corner-br { right: 8px; bottom: 8px; transform: scaleX(-1); }

.story-paper-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.story-paper-copy::-webkit-scrollbar { display: none; }

.story-label {
    margin-bottom: 8px;
    color: rgba(205, 183, 121, 0.55);
    font-size: 0.54rem;
    letter-spacing: 0.25em;
}

.story-paper p:last-child {
    width: max-content;
    max-width: 100%;
    height: clamp(190px, 23svh, 235px);
    margin: 0 auto;
    overflow-x: auto;
    font-size: 0.73rem;
    line-height: 2;
    text-align: left;
    white-space: pre-line;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-break: strict;
}

.story-paper-arrow {
    display: grid;
    width: 52px;
    aspect-ratio: 1;
    padding: 9px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.6s var(--world-ease), filter 0.6s var(--world-ease), transform 0.8s var(--world-ease);
}

.story-paper-arrow img {
    width: 100%;
    filter: sepia(0.3);
}

.story-paper-arrow-prev img { transform: scaleX(-1); }
.story-paper-arrow:hover {
    background: rgba(185, 101, 255, 0.12);
    filter: drop-shadow(0 0 9px rgba(185, 101, 255, 0.72));
    transform: scale(1.08);
}

.story-view-button {
    position: relative;
    display: block;
    width: clamp(230px, 29vw, 320px);
    aspect-ratio: 333.35 / 65.51;
    margin: 14px auto 0;
    overflow: hidden;
    border-radius: 999px;
    isolation: isolate;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.52));
    transition: filter 0.75s var(--world-ease), transform 0.85s var(--world-ease);
}

.story-view-button img {
    position: absolute;
    display: block;
    pointer-events: none;
}

.story-view-base {
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
}

.story-view-orbit {
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 25%;
    aspect-ratio: 1;
    opacity: 0.58;
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: story-view-orbit-spin 14s linear infinite;
    transition: opacity 0.8s ease, filter 1s var(--world-ease);
}

.story-view-icon {
    z-index: 3;
    top: 50%;
    width: 10%;
    opacity: 0.78;
    transform: translateY(-50%);
    transition: opacity 0.8s ease, filter 1s var(--world-ease), transform 1s var(--world-ease);
}

.story-view-icon-left { left: 8%; }
.story-view-icon-right { right: 8%; }

.story-view-label {
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 48%;
    max-height: 74%;
    transform: translate(-50%, -50%);
    transition: filter 1s var(--world-ease), transform 1s var(--world-ease);
}

.story-view-button:hover {
    filter:
        drop-shadow(0 0 9px rgba(185, 101, 255, 0.82))
        drop-shadow(0 0 22px rgba(111, 47, 163, 0.55));
    transform: translateY(-4px) scale(1.025);
}

.story-view-button:hover .story-view-orbit,
.story-view-button:focus-visible .story-view-orbit,
.story-view-button:hover .story-view-icon,
.story-view-button:focus-visible .story-view-icon,
.story-view-button:hover .story-view-label,
.story-view-button:focus-visible .story-view-label {
    opacity: 1;
    filter:
        drop-shadow(0 0 4px #b665ff)
        drop-shadow(0 0 12px rgba(182, 101, 255, 0.9))
        drop-shadow(0 0 24px rgba(182, 101, 255, 0.55));
}

.story-view-button:hover .story-view-icon-left,
.story-view-button:focus-visible .story-view-icon-left {
    transform: translateY(-50%) scale(1.16) rotate(-10deg);
}

.story-view-button:hover .story-view-icon-right,
.story-view-button:focus-visible .story-view-icon-right {
    transform: translateY(-50%) scale(1.16) rotate(10deg);
}

.story-view-button:hover .story-view-orbit,
.story-view-button:focus-visible .story-view-orbit {
    animation-duration: 4.5s;
}

@keyframes story-view-orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes story-title-arrive {
    0% {
        opacity: 0;
        filter: blur(14px);
        transform: translateX(-120px);
    }
    100% {
        opacity: 1;
        filter: blur(7px);
        transform: translateX(0);
    }
}

@keyframes story-copy-arrive {
    from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.live-section,
.archive-section {
    position: relative;
    padding: clamp(80px, 9vw, 135px) 5vw;
    background-color: #174e60;
    background-image:
        linear-gradient(rgba(12, 61, 73, 0.8), rgba(12, 61, 73, 0.8)),
        url("/assets/images/world/bg-pattern.svg");
    background-size: auto, 520px auto;
}

.live-shell {
    width: min(var(--world-content-width), 100%);
    margin: 0 auto;
}

.live-heading {
    width: min(430px, 100%);
    margin: 0 auto;
}

.live-intro {
    display: grid;
    grid-template-columns: 1fr 210px;
    align-items: end;
    gap: 50px;
    width: min(820px, 100%);
    margin: 35px auto 30px;
    font-size: 0.86rem;
    line-height: 1.9;
}

.live-intro .chapter-lead {
    margin: 0 0 18px;
    text-align: left;
}

.live-intro img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.38));
}

.experience-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    width: min(820px, 100%);
    margin: 25px auto 0;
}

.experience-row article {
    text-align: center;
}

.experience-row img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    opacity: 0.78;
    transition: transform 0.8s var(--world-ease), filter 0.8s var(--world-ease);
}

.experience-row article:hover img {
    filter: drop-shadow(0 0 18px rgba(205, 183, 121, 0.5));
    transform: rotate(18deg) scale(1.08);
}

.experience-row h3 {
    margin: 12px 0 8px;
    color: var(--world-gold);
    font-size: 1rem;
    letter-spacing: 0.16em;
}

.experience-row p {
    font-size: 0.74rem;
    line-height: 1.7;
}

.archive-section {
    min-height: 900px;
    background-color: #123f4c;
}

.archive-heading {
    position: relative;
    z-index: 3;
    width: min(620px, 100%);
    margin: 0 auto 50px;
}

.archive-heading > p:last-child {
    margin-top: 24px;
    color: var(--world-cream);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.archive-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: min(920px, 100%);
    margin: 0 auto;
}

.archive-grid a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 25px;
    overflow: hidden;
    color: var(--world-cream);
    text-align: center;
    text-decoration: none;
    background: rgba(7, 22, 25, 0.78);
    border: 1px solid rgba(205, 183, 121, 0.42);
    box-shadow: inset 0 0 0 6px rgba(205, 183, 121, 0.025);
    transition: transform 0.7s var(--world-ease), background 0.7s var(--world-ease), box-shadow 0.7s var(--world-ease);
}

.archive-grid a::before,
.archive-grid a::after {
    content: "";
    position: absolute;
    width: 38px;
    height: 1px;
    background: var(--world-gold);
    opacity: 0.5;
}

.archive-grid a::before { top: 17px; left: 17px; }
.archive-grid a::after { right: 17px; bottom: 17px; }

.archive-grid a:hover {
    background: rgba(57, 18, 37, 0.88);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.32), inset 0 0 30px rgba(205, 183, 121, 0.06);
    transform: translateY(-7px);
}

.archive-grid span,
.archive-grid small {
    color: rgba(205, 183, 121, 0.55);
    font-size: 0.61rem;
    letter-spacing: 0.25em;
}

.archive-grid strong {
    margin: 9px 0;
    color: var(--world-gold);
    font-size: 1.22rem;
    font-weight: 500;
    letter-spacing: 0.16em;
}

.final-invitation {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: #130609;
}

.final-photo {
    position: absolute;
    inset: -8%;
    background: url("/assets/images/world/shiroai.webp") center 30% / cover no-repeat;
    transform: translate3d(0, var(--world-parallax-y, 0), 0) scale(1.08);
    filter: saturate(0.65);
}

.final-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 2, 4, 0.96) 0%, rgba(23, 4, 8, 0.74) 48%, rgba(0, 0, 0, 0.2) 100%);
}

.final-copy {
    position: relative;
    z-index: 2;
    width: min(690px, 90%);
    padding: 115px 0 105px 9vw;
}

.final-copy > p:first-child {
    color: rgba(205, 183, 121, 0.58);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
}

.final-copy h2 {
    margin-bottom: 18px;
    color: var(--world-gold);
    font-size: clamp(1.6rem, 3.3vw, 3rem);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.08em;
}

.final-copy > p:nth-of-type(2) {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.final-copy a {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    color: var(--world-cream);
    text-decoration: none;
    letter-spacing: 0.12em;
}

.final-copy a img {
    width: 72px;
    transition: transform 0.6s var(--world-ease);
}

.final-copy a:hover img { transform: translateX(10px); }

.world-footer {
    padding: 70px 5vw 30px;
    color: var(--world-gold);
    text-align: center;
    background: #041518;
}

.world-footer > img {
    width: min(450px, 70%);
    max-height: 40px;
    margin-bottom: 22px;
}

.world-footer > p {
    font-size: 1rem;
    letter-spacing: 0.15em;
}

.world-footer nav {
    display: flex;
    justify-content: center;
    gap: 38px;
    margin: 30px 0 55px;
}

.world-footer a {
    color: var(--world-cream);
    font-size: 0.76rem;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.world-footer small {
    color: rgba(238, 232, 215, 0.4);
    font-size: 0.65rem;
}

.reveal-section {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1.2s var(--world-ease), transform 1.2s var(--world-ease);
}

.reveal-section.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes hero-glitch-a {
    0%, 84%, 100% { transform: translateX(0) scale(1.045); }
    86% { transform: translateX(-13px) scale(1.045); }
    88% { transform: translateX(9px) scale(1.045); }
    90% { transform: translateX(-4px) scale(1.045); }
}

@keyframes hero-glitch-b {
    0%, 76%, 100% { transform: translateX(0) scale(1.045); }
    78% { transform: translateX(14px) scale(1.045); }
    80% { transform: translateX(-8px) scale(1.045); }
    82% { transform: translateX(3px) scale(1.045); }
}

@keyframes chapter-star-float {
    0% {
        opacity: 0.16;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.94);
    }
    55% {
        opacity: 0.28;
    }
    100% {
        opacity: 0.2;
        transform: translate3d(var(--star-drift-x), var(--star-drift-y), 0) rotate(var(--star-rotation)) scale(1.08);
    }
}

@keyframes band-emblem-clockwise {
    to { transform: rotate(360deg); }
}

@keyframes band-emblem-counterclockwise {
    to { transform: rotate(-360deg); }
}

@keyframes band-tarot-float {
    0%, 100% { transform: translate3d(-7px, -16px, 0) rotate(-3deg) scale(0.99); }
    25% { transform: translate3d(8px, -5px, 0) rotate(1.5deg) scale(1.015); }
    50% { transform: translate3d(4px, 15px, 0) rotate(3deg) scale(1.025); }
    75% { transform: translate3d(-9px, 5px, 0) rotate(-1.8deg) scale(1.005); }
}

@keyframes detail-orbit {
    from { transform: translate(-50%, -50%) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 900px) {
    .world-hero { min-height: 560px; }
    .hero-title-card { width: min(410px, 48vw); }
    .invitation-band {
        padding-inline: 0;
    }
    .band-copy {
        width: min(var(--world-content-width), 100%);
        padding-inline: 3vw;
    }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .world-main { padding-top: var(--header-height); }
    .world-hero {
        height: calc(100svh - var(--header-height));
        min-height: 580px;
    }
    .hero-video { object-position: 54% center; }
    .hero-shade {
        background:
            linear-gradient(180deg, rgba(0, 27, 26, 0.25), transparent 35%, rgba(0, 20, 18, 0.9)),
            linear-gradient(90deg, rgba(0, 39, 35, 0.36), transparent 65%);
    }
    .hero-copy {
        top: 7%;
        right: 6%;
        font-size: 1.05rem;
        line-height: 1.75;
    }
    .hero-movie {
        top: 31%;
        left: 5%;
        width: 42vw;
        min-width: 150px;
    }
    .hero-title-card {
        right: 5%;
        bottom: 5%;
        left: 5%;
        width: auto;
        padding: 23px 26px;
    }
    .hero-title-card h1 { font-size: 1.55rem; }
    .hero-caption { display: none; }
    .storybook-divider { height: 190px; }
    .storybook-divider > div { background-size: auto 150%; }
    .ornate-section { padding: 48px 16px; }
    .ornate-panel {
        min-height: 0;
        padding: 62px 26px 48px;
    }
    .corner { width: 70px; }
    .chapter-star { max-width: 34px; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .portrait-frame {
        width: min(220px, 72%);
        margin: 0 auto;
    }
    .body-copy { font-size: 0.82rem; }
    .chapter-lead { margin: 26px 0 30px; }
    .button-wrap { justify-content: center; }
    .world-detail-button { width: 160px; }
    .panel-ending { margin-top: 42px; }
    .invitation-band {
        --band-space-y: 64px;
        min-height: 390px;
        padding: var(--band-space-y) 0;
    }
    .band-emblem-stack { width: 560px; opacity: 0.78; }
    .band-side {
        display: none;
    }
    .band-copy {
        width: calc(100% - 32px);
        min-width: 0;
        padding: 34px 26px;
        text-align: center;
    }
    .band-copy h2 {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }
    .band-body { max-width: 100%; }
    .band-body p { font-size: 0.75rem; }
    .story-section {
        --story-cinema-bar: clamp(34px, 5.5svh, 48px);
        min-height: 100svh;
        padding: var(--story-cinema-bar) 0;
    }
    .story-background,
    .story-background-video {
        inset-inline: -12%;
        width: 124%;
    }
    .story-ghost-title {
        top: 16%;
        left: 14px;
        max-width: none;
        font-size: clamp(3.2rem, 18vw, 6.2rem);
    }
    .story-shell {
        width: calc(100% - 24px);
        min-height: calc(100svh - (var(--story-cinema-bar) * 2));
        padding: 16px 0;
    }
    .story-heading { width: 230px; }
    .story-heading h2 { font-size: 1.1rem; }
    .story-heading span { font-size: 0.5rem; }
    .story-intro {
        margin: 9px 0 10px;
        font-size: 0.69rem;
        line-height: 1.65;
    }
    .story-tabs {
        gap: 12px;
        padding: 11px 14px 19px;
    }
    .story-tab {
        flex-basis: 142px;
        min-height: 208px;
    }
    .story-card-image {
        inset: 20px 15px 64px;
    }
    .story-tab > small {
        top: 17px;
        font-size: 0.42rem;
    }
    .story-tab > strong {
        right: 12px;
        bottom: 38px;
        left: 12px;
        font-size: 0.68rem;
    }
    .story-tab > span {
        right: 12px;
        bottom: 14px;
        left: 12px;
        font-size: 0.43rem;
    }
    .story-tab > em {
        top: 15px;
        font-size: 0.34rem;
    }
    .story-paper {
        width: 100%;
        min-height: 265px;
        margin: 0;
        padding: 24px 9px;
    }
    .story-selected-heading {
        width: calc(100% - 68px);
        margin: 6px auto 7px;
    }
    .story-selected-heading h3 {
        margin-top: 4px;
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }
    .story-paper-stage {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 4px;
        width: 100%;
    }
    .story-paper-corner { width: 34px; }
    .story-paper-arrow {
        width: 35px;
        padding: 5px;
    }
    .story-label { font-size: 0.44rem; }
    .story-paper p:last-child {
        display: block;
        width: max-content;
        max-width: 100%;
        height: 205px;
        overflow-x: auto;
        font-size: 0.56rem;
        line-height: 1.72;
        white-space: pre-line;
        writing-mode: vertical-rl;
        -webkit-line-clamp: initial;
    }
    .story-view-button {
        width: 220px;
        margin-top: 7px;
    }
    .live-section,
    .archive-section { padding: 65px 18px 78px; }
    .live-intro {
        grid-template-columns: 1fr 115px;
        gap: 18px;
        font-size: 0.76rem;
    }
    .experience-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .experience-row img { width: 63px; height: 63px; }
    .experience-row h3 { font-size: 0.78rem; letter-spacing: 0.08em; }
    .experience-row p { font-size: 0.62rem; }
    .archive-grid { gap: 12px; }
    .archive-grid a { min-height: 120px; padding: 17px 10px; }
    .archive-grid strong { font-size: 0.95rem; }
    .final-invitation { min-height: 480px; }
    .final-photo { background-position: 57% center; }
    .final-shade { background: linear-gradient(180deg, rgba(8, 2, 4, 0.16), rgba(8, 2, 4, 0.96) 72%); }
    .final-copy {
        width: 100%;
        padding: 260px 24px 60px;
        text-align: center;
    }
    .final-copy h2 { font-size: 1.45rem; }
    .final-copy > p:nth-of-type(2) { font-size: 0.76rem; }
    .world-footer { padding-top: 55px; }
    .world-footer nav { gap: 24px; margin-bottom: 45px; }
}

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