/* ==========================================================================
   小半官网 · 蝶翼纸感 / 文学手记
   零依赖静态站点。所有“截图感”内容均由 HTML/CSS 绘制。
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --paper: #f7f1e5;
    --paper-strong: #f1e7d5;
    --paper-soft: #fcf8ef;
    --ink: #221f1a;
    --ink-soft: #4c463c;
    --muted: #61584b;
    --muted-2: #6f6657;
    --coral: #e9603f;
    --coral-ink: #a63c24;
    --coral-soft: #fbe6dc;
    --teal: #4a969c;
    --teal-ink: #2b6b70;
    --teal-soft: #e2efee;
    --gold: #d5a24a;
    --night: #201e1a;
    --night-2: #2a2721;
    --cream: #f7f1e5;
    --cream-muted: #c8bda9;
    --line: rgba(34, 31, 26, 0.14);
    --line-strong: rgba(34, 31, 26, 0.26);
    --line-cream: rgba(247, 241, 229, 0.16);

    --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif CJK SC",
        "Source Han Serif SC", "SimSun", serif;
    --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
        "Noto Sans CJK SC", sans-serif;
    --font-hand: "Kaiti SC", "STKaiti", "KaiTi", "Kaiti", "Songti SC", serif;
    --font-mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

    --container: 1240px;
    --gutter: 40px;
    --header-h: 84px;
    --radius: 14px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow-paper: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 18px 40px -24px rgba(73, 52, 26, 0.34);
    --shadow-lift: 0 24px 60px -28px rgba(73, 52, 26, 0.45);
    --shadow-ink: 0 30px 70px -34px rgba(0, 0, 0, 0.65);

    color-scheme: light;
}

/* 2. Reset / base ---------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(120% 70% at 50% 0%, #fbf6ec 0%, var(--paper) 52%, #f2e9d8 100%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* 纸张颗粒：只做极轻的一层，避免脏灰 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
blockquote,
figure {
    margin: 0;
}

p {
    text-wrap: pretty;
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--coral);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}

/* 浏览器自带表面：滚动条、光标也属于设计 */
html {
    scrollbar-color: var(--muted-2) var(--paper-strong);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--paper-strong);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-2);
    border: 2px solid var(--paper-strong);
    border-radius: 99px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--cream);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
    transition:
        opacity 0.2s var(--ease-soft),
        clip-path 0.2s var(--ease-soft);
}

.skip-link:focus-visible {
    opacity: 1;
    pointer-events: auto;
    clip-path: inset(0);
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* 3. Utilities ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding: 132px 0;
    scroll-margin-top: calc(var(--header-h) + 18px);
}

#download {
    scroll-margin-top: calc(var(--header-h) + 18px);
}

.hand {
    font-family: var(--font-hand);
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--teal-ink);
    transform: rotate(-1.5deg);
}

.mark {
    position: relative;
    display: inline-block;
    padding-bottom: 0.08em;
    background-repeat: no-repeat;
    background-position: left 100%;
    background-size: 100% 0.1em;
}

.js .mark {
    animation: ink-draw 1.1s 0.55s var(--ease-out) both;
}

.mark--coral {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C38 2 92 2 138 6' fill='none' stroke='%23e9603f' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mark--teal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 12' preserveAspectRatio='none'%3E%3Cpath d='M2 6C42 10 96 9 138 4' fill='none' stroke='%234a969c' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition:
        transform 0.35s var(--ease-out),
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.35s var(--ease-out),
        border-color 0.25s ease;
}

.btn .icon {
    width: 18px;
    height: 18px;
}

.btn--ink {
    background: var(--ink);
    color: var(--cream);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 28px -18px rgba(34, 31, 26, 0.8);
}

.btn--ink:hover {
    background: var(--coral);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -20px rgba(166, 60, 36, 0.7);
}

.btn--small {
    min-height: 44px;
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 8px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 8px 2px;
    border-bottom: 1px solid var(--line-strong);
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.link-arrow .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.35s var(--ease-out);
}

.link-arrow:hover {
    color: var(--coral-ink);
    border-color: var(--coral);
}

.link-arrow:hover .icon {
    transform: translate(3px, -3px);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
}

.section-head h2 {
    max-width: 12em;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2.5rem, 4.2vw, 3.6rem);
    line-height: 1.12;
}

.section-head p {
    max-width: 44ch;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.85;
    padding-bottom: 6px;
}

/* 4. Header ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    border-bottom: 1px solid transparent;
    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 14px 30px -28px rgba(73, 52, 26, 0.65);
}

.site-header__inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.brand__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(34, 31, 26, 0.08),
        0 8px 16px -10px rgba(73, 52, 26, 0.55);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand__tag {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.site-nav a {
    position: relative;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover {
    color: var(--ink);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.site-header__cta {
    flex: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition:
        transform 0.3s var(--ease-out),
        opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    padding: 16px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -36px rgba(73, 52, 26, 0.6);
    display: flex;
    flex-direction: column;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    padding: 14px 2px;
    border-bottom: 1px dashed var(--line);
    font-family: var(--font-display);
    font-size: 22px;
}

.mobile-nav__download {
    margin-top: 18px;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 8px;
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    font-weight: 600;
}

body.nav-open {
    overflow: hidden;
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding: 72px 0 38px;
    overflow: hidden;
}

.hero__wash {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero__wash--coral {
    width: 760px;
    height: 760px;
    top: -320px;
    left: -220px;
    background: radial-gradient(circle, rgba(233, 96, 63, 0.22) 0%, rgba(233, 96, 63, 0.08) 42%, transparent 70%);
}

.hero__wash--teal {
    width: 900px;
    height: 900px;
    right: -360px;
    bottom: -420px;
    background: radial-gradient(circle, rgba(74, 150, 156, 0.2) 0%, rgba(74, 150, 156, 0.07) 45%, transparent 70%);
}

.hero__butterfly {
    position: absolute;
    width: 560px;
    height: auto;
    right: 2%;
    top: 4%;
    opacity: 0.11;
    z-index: 0;
    transform: rotate(-10deg);
    animation: butterfly-drift 14s ease-in-out infinite alternate;
}

.hero__butterfly .stroke-coral {
    stroke: var(--coral);
}

.hero__butterfly .stroke-teal {
    stroke: var(--teal);
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 56px;
    align-items: center;
}

.hero__copy h1 {
    font-size: clamp(3rem, 4.55vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.04em;
}

.hero__line > span {
    display: inline-block;
}

.js .hero__line > span {
    transform: translateY(112%);
    animation: line-in 1s var(--ease-out) both;
}

.js .hero__line:nth-child(2) > span {
    animation-delay: 0.12s;
}

.hero__lede {
    max-width: 46ch;
    margin-top: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 36px;
}

.hero__platforms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
}

.hero__platforms i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--coral);
}

.hero__platforms em {
    margin-left: 8px;
    font-family: var(--font-hand);
    font-size: 15px;
    font-style: normal;
    letter-spacing: 0.02em;
    color: var(--muted-2);
}

.hero__foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 54px;
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--muted);
    transition: color 0.2s ease;
}

.scroll-cue .icon {
    width: 15px;
    height: 15px;
    transform: rotate(90deg);
    animation: cue-nudge 2.4s var(--ease-soft) infinite;
}

.scroll-cue:hover {
    color: var(--coral-ink);
}

.hero__edition {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted-2);
}

/* Journal artifact --------------------------------------------------------- */
.hero__artifact {
    position: relative;
    width: 100%;
    max-width: 570px;
    justify-self: end;
    padding: 10px 10px 0;
}

.js .hero__artifact {
    animation: artifact-in 1.1s 0.22s var(--ease-out) both;
}

.artifact-shadow {
    position: absolute;
    inset: 22px 2px 10px 26px;
    border-radius: 18px;
    background: #e7dac4;
    transform: rotate(-0.6deg);
    box-shadow: 0 40px 80px -40px rgba(34, 31, 26, 0.45);
}

.journal {
    position: relative;
    z-index: 1;
    transform: rotate(-2.4deg);
    border: 1px solid rgba(80, 60, 36, 0.16);
    border-radius: 4px 16px 16px 4px;
    background: var(--paper-soft);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 0 rgba(80, 60, 36, 0.05),
        0 34px 70px -34px rgba(34, 31, 26, 0.45);
    overflow: visible;
}

.journal__binding {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30px;
    border-radius: 4px 0 0 4px;
    border-right: 1px dashed rgba(80, 60, 36, 0.24);
    background:
        linear-gradient(90deg, rgba(80, 60, 36, 0.12), transparent 32%),
        linear-gradient(180deg, #eadcc4, #f2e6d2 50%, #e8d9c0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 26px 0;
}

.journal__binding i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #b9a483, #7d6a4e 70%);
    box-shadow:
        0 1px 1px rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(60, 40, 20, 0.4) inset;
}

.journal__page {
    position: relative;
    padding: 30px 34px 30px 56px;
    border-radius: 4px 16px 16px 4px;
}

.journal__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.journal__cast {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 14px;
}

.medallion {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #b8422a, #9e3520);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 25px;
    box-shadow:
        0 0 0 3px var(--paper-soft),
        0 0 0 4px rgba(233, 96, 63, 0.35),
        0 10px 18px -12px rgba(34, 31, 26, 0.38);
}

.journal__cast-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid rgba(74, 150, 156, 0.4);
    border-radius: 99px;
    background: rgba(74, 150, 156, 0.08);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--teal-ink);
}

.journal__cast-meta {
    margin-top: 5px;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.journal__dialogue {
    margin-top: 8px;
}

.line {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-top: 1px dashed rgba(34, 31, 26, 0.12);
}

.line__who {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-top: 4px;
}

.line--you .line__who {
    color: var(--coral-ink);
}

.line--ta .line__who {
    color: var(--teal-ink);
}

.line p {
    font-size: 15.5px;
    line-height: 1.75;
}

.line__action {
    grid-column: 2;
    margin-top: 6px !important;
    font-family: var(--font-hand);
    font-size: 14px !important;
    font-style: italic;
    color: var(--muted);
}

.journal__memory {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 11px 0;
    border-top: 1px dashed rgba(74, 150, 156, 0.42);
    border-bottom: 1px dashed rgba(74, 150, 156, 0.42);
}

.journal__memory .icon {
    width: 19px;
    height: 19px;
    color: var(--teal-ink);
}

.journal__memory div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.journal__memory b {
    font-size: 12.5px;
    font-weight: 600;
}

.journal__memory span {
    font-size: 11px;
    color: var(--muted);
}

.journal__memory-state {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--teal-ink);
    color: var(--cream) !important;
    font-size: 11px !important;
    letter-spacing: 0.06em;
}

.journal__note {
    margin-top: 24px;
    padding-right: 86px;
    font-family: var(--font-hand);
    font-size: 21px;
    line-height: 1.35;
    color: var(--teal-ink);
    transform: rotate(-2deg);
    text-align: right;
}

.journal__stamp {
    position: absolute;
    right: -30px;
    bottom: 30px;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: var(--coral);
    color: var(--ink);
    transform: rotate(8deg);
    box-shadow:
        0 0 0 5px var(--paper-soft),
        0 0 0 6px rgba(233, 96, 63, 0.45),
        0 16px 30px -18px rgba(34, 31, 26, 0.42);
}

.journal__stamp span {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.journal__stamp strong {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
}

/* 6. Tape band ------------------------------------------------------------- */
.tape-band {
    position: relative;
    z-index: 3;
    padding: 26px 0 14px;
    overflow: hidden;
}

.tape {
    position: relative;
    width: 104%;
    left: -2%;
    overflow: hidden;
    white-space: nowrap;
    padding: 11px 18px;
    border-top: 1px solid rgba(34, 31, 26, 0.14);
    border-bottom: 1px solid rgba(34, 31, 26, 0.14);
    background: var(--coral);
    color: var(--ink);
    transform: rotate(-1.6deg);
    box-shadow: 0 10px 24px -20px rgba(34, 31, 26, 0.4);
}

.tape--teal {
    margin-top: -4px;
    background: var(--teal-ink);
    color: var(--paper-soft);
    transform: rotate(1.1deg);
}

.tape__track {
    display: flex;
    align-items: center;
    gap: 30px;
    width: max-content;
    padding-inline: 20px;
}

.tape__track--reverse {
    padding-inline: 20px;
}

.tape__track span {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

.tape__track i {
    font-style: normal;
    font-size: 13px;
    opacity: 0.55;
}

/* 7. How ------------------------------------------------------------------- */
.how {
    padding-top: 128px;
}

.how::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--gutter);
    right: var(--gutter);
    border-top: 1px dashed var(--line);
}

.how__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 100px;
    align-items: start;
}

.how__intro {
    position: sticky;
    top: 132px;
}

.how__intro h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.12;
}

.how__intro > p {
    max-width: 34ch;
    margin-top: 24px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.9;
}

.how__aside {
    margin-top: 30px;
    color: var(--coral-ink);
}

.how__arrow {
    width: 76px;
    height: auto;
    margin: 28px 0 0 26px;
    color: var(--teal);
    opacity: 0.55;
}

.steps {
    position: relative;
}

.step {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 22px;
    padding: 38px 0 42px;
    border-top: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 1px solid var(--line);
}

.step__num {
    font-family: var(--font-display);
    font-size: 46px;
    line-height: 1;
    color: var(--coral);
    letter-spacing: -0.05em;
}

.step:nth-child(2) .step__num {
    color: var(--teal);
}

.step:nth-child(3) .step__num {
    color: var(--gold);
}

.step__body h3 {
    font-size: 28px;
    line-height: 1.25;
}

.step__body > p {
    max-width: 46ch;
    margin-top: 10px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.85;
}

.mini {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-soft);
    box-shadow: var(--shadow-paper);
}

.mini__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mini__row + .mini__row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.mini__label {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    white-space: nowrap;
}

.mini__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.mini__chips i {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-style: normal;
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
    background: var(--paper);
}

.mini__chips i.is-on {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--cream);
}

.mini__toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 99px;
    overflow: hidden;
}

.mini__toggle i {
    padding: 4px 12px;
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
}

.mini__toggle i.is-on {
    background: var(--teal-ink);
    color: var(--cream);
}

.mini__chips--wrap {
    justify-content: flex-start;
}

.story-slip {
    position: relative;
    margin-top: 14px;
    padding: 12px 2px 2px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.story-slip span {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--teal-ink);
}

.story-slip b {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.3;
}

.story-slip em {
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.mini--chat p {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    font-size: 14px;
    line-height: 1.7;
}

.mini--chat p + p {
    margin-top: 6px;
}

.mini--chat p span {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    padding-top: 3px;
}

.mini--chat p:nth-child(1) span {
    color: var(--coral-ink);
}

.mini--chat p:nth-child(2) span {
    color: var(--teal-ink);
}

.mini__memory {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 99px;
    background: rgba(74, 150, 156, 0.1);
    color: var(--teal-ink);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.mini__memory .icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    stroke: none;
}

/* 8. Night / MBTI ---------------------------------------------------------- */
.night {
    background: var(--night);
    color: var(--cream);
    padding: 132px 0 96px;
    overflow: hidden;
}

.night__head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 64px;
    align-items: end;
}

.night__head h2 {
    font-size: clamp(2.7rem, 4.4vw, 3.8rem);
    line-height: 1.1;
}

.night__intro > p {
    max-width: 46ch;
    color: var(--cream-muted);
    font-size: 16px;
    line-height: 1.9;
}

.night__intro .hand {
    margin-top: 20px;
    color: #f4a48b;
}

.mbti {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 56px;
    align-items: stretch;
    margin-top: 54px;
}

.mbti__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    align-content: start;
}

.mbti__chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 13px;
    border: 1px solid var(--line-cream);
    border-radius: 7px;
    color: var(--cream);
    text-align: left;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.3s var(--ease-out);
}

.mbti__chip b {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mbti__chip span {
    font-size: 11px;
    color: #b2a794;
    transition: color 0.2s ease;
}

.mbti__chip:hover {
    border-color: rgba(244, 164, 139, 0.7);
    background: rgba(247, 241, 229, 0.06);
    transform: translateY(-2px);
}

.mbti__chip.is-active {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--ink);
    transform: translateY(-2px);
}

.mbti__chip.is-active span {
    color: var(--ink);
    font-weight: 500;
}

.mbti__card {
    position: relative;
    overflow: hidden;
    padding: 30px 30px 26px;
    border-radius: 5px 20px 20px 5px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-ink);
    display: flex;
    flex-direction: column;
    min-height: 410px;
}

.mbti__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mbti__code {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 6vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--coral-ink);
    transition:
        opacity 0.18s ease,
        transform 0.25s ease;
}

.mbti__index {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-top: 4px;
}

.mbti__card h3 {
    margin-top: 14px;
    font-size: 29px;
    line-height: 1.2;
    transition:
        opacity 0.18s ease,
        transform 0.25s ease;
}

.mbti__traits {
    margin-top: 8px;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: var(--muted);
    transition:
        opacity 0.18s ease,
        transform 0.25s ease;
}

.mbti__line {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.65;
    letter-spacing: -0.01em;
    transition:
        opacity 0.18s ease,
        transform 0.25s ease;
}

.mbti__note {
    margin-top: auto;
    padding-top: 22px;
    font-family: var(--font-hand);
    font-size: 15px;
    color: var(--teal-ink);
    transition:
        opacity 0.18s ease,
        transform 0.25s ease;
}

.mbti__butterfly {
    position: absolute;
    right: -34px;
    bottom: -30px;
    width: 190px;
    height: auto;
    color: var(--teal);
    opacity: 0.14;
    pointer-events: none;
}

.mbti__card.is-swapping .mbti__code,
.mbti__card.is-swapping h3,
.mbti__card.is-swapping .mbti__traits,
.mbti__card.is-swapping .mbti__line,
.mbti__card.is-swapping .mbti__note {
    opacity: 0;
    transform: translateY(7px);
}

.night__foot {
    position: relative;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-cream);
    color: #b2a794;
    font-size: 12px;
    letter-spacing: 0.03em;
}

/* 9. Features -------------------------------------------------------------- */
.features {
    padding-bottom: 128px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 52px;
}

.bento__item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper-soft);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.bento__item--memory {
    grid-column: span 7;
    min-height: 464px;
    background:
        radial-gradient(110% 90% at 100% 0%, rgba(233, 96, 63, 0.16), transparent 58%),
        var(--paper-soft);
}

.bento__item--themes {
    grid-column: span 5;
    min-height: 464px;
    background:
        radial-gradient(110% 90% at 100% 0%, rgba(74, 150, 156, 0.18), transparent 60%),
        var(--paper-soft);
}

.bento__item--cast {
    grid-column: span 4;
    min-height: 330px;
    background: var(--night-2);
    color: var(--cream);
    border-color: rgba(247, 241, 229, 0.12);
}

.bento__item--custom {
    grid-column: span 4;
    min-height: 330px;
}

.bento__item--private {
    grid-column: span 4;
    min-height: 330px;
    background:
        radial-gradient(120% 100% at 0% 100%, rgba(213, 162, 74, 0.2), transparent 62%),
        #f1e6d3;
}

.bento__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--teal-ink);
}

.bento__label .icon {
    width: 16px;
    height: 16px;
}

.bento__item--memory .bento__label {
    color: var(--coral-ink);
}

.bento__item--cast .bento__label {
    color: #8ac9cc;
}

.bento__item h3 {
    margin-top: 16px;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    line-height: 1.25;
}

.bento__item > p {
    max-width: 42ch;
    margin-top: 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.bento__item--cast > p {
    color: #bdb3a2;
}

.cast-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
    padding-top: 20px;
}

.cast-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(247, 241, 229, 0.12);
}

.cast-row:first-child {
    padding-top: 4px;
    border-top: 0;
}

.cast-row:last-child {
    padding-bottom: 4px;
}

.cast-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1;
    color: var(--ink);
}

.cast-avatar--ta {
    background: var(--coral);
}

.cast-avatar--you {
    background: var(--teal);
    color: var(--ink);
}

.cast-avatar--npc {
    background: var(--gold);
}

.cast-row div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.cast-row b {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cast-row em {
    margin-top: 2px;
    overflow: hidden;
    font-style: normal;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #b0a596;
}

.cast-tag {
    padding: 3px 7px;
    border: 1px solid rgba(247, 241, 229, 0.16);
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: #c9bfae;
}

.cast-meta {
    margin-top: 12px !important;
    font-family: var(--font-mono);
    font-size: 12px !important;
    letter-spacing: 0.12em;
    color: #b0a596 !important;
}

.memory-slip {
    position: relative;
    align-self: flex-end;
    width: min(86%, 370px);
    margin-top: 24px;
    padding: 12px 16px 11px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--paper);
    transform: rotate(-1.3deg);
    box-shadow: 0 10px 20px -18px rgba(73, 52, 26, 0.6);
}

.memory-slip::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 64px;
    height: 16px;
    transform: translateX(-50%) rotate(1.5deg);
    background: rgba(226, 197, 142, 0.65);
}

.memory-slip span {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.memory-slip p {
    margin-top: 5px;
    font-family: var(--font-hand);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.thread {
    position: relative;
    margin-top: auto;
    padding-top: 30px;
    color: var(--teal-ink);
}

.thread svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.thread__path {
    opacity: 0.5;
}

.thread__path--solid {
    opacity: 1;
    stroke: var(--coral);
}

.thread__knot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--paper-soft);
    font-size: 11px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: var(--muted);
    box-shadow: 0 5px 12px -10px rgba(73, 52, 26, 0.5);
}

.thread__knot.is-live {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--cream);
}

.swatch-note {
    margin-top: auto !important;
    padding-top: 22px;
    font-family: var(--font-hand);
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--teal-ink) !important;
    transform: rotate(-1.2deg);
}

.swatch-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-top: 18px;
    height: 190px;
}

.swatch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.swatch i {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 5px 5px 3px 3px;
    background: var(--paper);
    box-shadow: 0 8px 16px -14px rgba(60, 45, 25, 0.6);
}

.swatch--white-tea i {
    background: linear-gradient(180deg, #f7f4ee 0 56%, #ffffff 56% 78%, #a85d07 78% 90%, #2b2620 90%);
}

.swatch--neon i {
    background: linear-gradient(180deg, #0a0e17 0 56%, #131c30 56% 78%, #00e5ff 78% 90%, #e8f1fb 90%);
}

.swatch--mist i {
    background: linear-gradient(180deg, #f5f1f9 0 56%, #fdfbff 56% 78%, #7a57b5 78% 90%, #322a40 90%);
}

.swatch--forest i {
    background: linear-gradient(180deg, #f3f6f0 0 56%, #fbfdf8 56% 78%, #35784b 78% 90%, #26302a 90%);
}

.swatch em {
    writing-mode: vertical-rl;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--muted);
    height: 80px;
}

.profile-slip {
    margin-top: auto;
    padding: 10px 0 0;
}

.profile-slip div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--line-strong);
}

.profile-slip div:last-child {
    border-bottom: 0;
}

.profile-slip span {
    width: 34px;
    flex: none;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.profile-slip b {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
}

.folded-note {
    position: relative;
    margin: auto 0 4px;
    padding: 22px 20px 18px;
    border: 1px dashed rgba(120, 90, 40, 0.4);
    border-radius: 4px;
    background: rgba(252, 248, 239, 0.8);
    transform: rotate(1.4deg);
    box-shadow: 0 12px 24px -20px rgba(73, 52, 26, 0.6);
}

.folded-note::after {
    content: "私";
    position: absolute;
    right: 14px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--coral);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 15px;
    transform: rotate(-8deg);
    opacity: 0.9;
}

.folded-note span {
    display: block;
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: 0.06em;
}

.folded-note i {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
}

/* 10. FAQ ------------------------------------------------------------------ */
.faq {
    padding: 132px 0;
    background: var(--paper-strong);
}

.faq::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--gutter);
    right: var(--gutter);
    border-top: 1px dashed var(--line-strong);
}

.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 100px;
    align-items: start;
}

.faq__intro {
    position: sticky;
    top: 132px;
}

.faq__intro h2 {
    font-size: clamp(2.4rem, 3.8vw, 3.3rem);
    line-height: 1.14;
}

.faq__intro .hand {
    max-width: 26ch;
    margin-top: 26px;
}

.faq__item {
    border-top: 1px solid var(--line);
}

.faq__item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: 17.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary:hover {
    color: var(--coral-ink);
}

.faq__icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex: none;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.35s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--ink-soft);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon {
    background: var(--ink);
    border-color: var(--ink);
    transform: rotate(90deg);
}

.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
    background: var(--cream);
}

.faq__item[open] .faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq__panel {
    padding: 0 32px 24px 0;
    animation: panel-in 0.35s var(--ease-out) both;
}

.faq__panel p {
    max-width: 62ch;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

/* 11. Back cover / download ------------------------------------------------ */
.backcover {
    position: relative;
    padding: 116px 0 96px;
    background:
        radial-gradient(90% 80% at 88% 0%, rgba(74, 150, 156, 0.28), transparent 62%),
        radial-gradient(80% 80% at 0% 100%, rgba(233, 96, 63, 0.16), transparent 60%),
        #12383a;
    color: var(--cream);
    overflow: hidden;
}

.backcover__butterfly {
    position: absolute;
    right: -90px;
    top: -80px;
    width: 660px;
    height: auto;
    color: rgba(247, 241, 229, 0.07);
    pointer-events: none;
}

.backcover__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 80px;
    align-items: center;
}

.backcover__copy h2 {
    font-size: clamp(3rem, 4.8vw, 4.2rem);
    line-height: 1.08;
}

.backcover__copy > p {
    max-width: 42ch;
    margin-top: 22px;
    color: #e6dccb;
    font-size: 16.5px;
    line-height: 1.9;
}

.tickets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
    margin-top: 36px;
}

.ticket {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(247, 241, 229, 0.2);
    border-radius: 9px;
    background: rgba(247, 241, 229, 0.055);
    color: var(--cream);
    overflow: hidden;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.35s var(--ease-out);
}

.ticket::before {
    content: "";
    position: absolute;
    left: 68px;
    top: 8px;
    bottom: 8px;
    border-left: 1px dashed rgba(247, 241, 229, 0.22);
}

.ticket:hover {
    background: rgba(247, 241, 229, 0.1);
    border-color: rgba(247, 241, 229, 0.5);
    transform: translateX(5px);
}

.ticket__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #f2a48d;
}

.ticket--android .ticket__label {
    color: #f2c882;
}

.ticket--web .ticket__label {
    color: #8fd0c8;
}

.ticket__body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.ticket__body b {
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ticket__body small {
    margin-top: 4px;
    font-size: 12px;
    color: #b7cfca;
    letter-spacing: 0.02em;
}

.ticket .icon {
    width: 17px;
    height: 17px;
    color: #9fb9b5;
    transition: transform 0.3s var(--ease-out);
}

.ticket:hover .icon {
    transform: translate(2px, -2px);
    color: var(--cream);
}

.ticket.is-unavailable {
    opacity: 0.68;
}

.ticket.is-unavailable:hover {
    transform: none;
    border-color: rgba(247, 241, 229, 0.2);
    background: rgba(247, 241, 229, 0.055);
}

.backcover__fine {
    max-width: 54ch;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.8;
    color: #a9c4bf;
}

.backcover__visual {
    display: flex;
    justify-content: center;
    perspective: 900px;
}

.book-cover {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 4px 14px 14px 4px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='40'%3E%3Cpath d='M0 39.5H8' stroke='%23221f1a' stroke-opacity='.045'/%3E%3C/svg%3E"),
        var(--paper-soft);
    color: var(--ink);
    transform: rotate(3deg);
    box-shadow:
        -10px 0 0 -5px #e4d5bd,
        -12px 0 0 -4px rgba(80, 60, 36, 0.2),
        0 50px 90px -34px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.book-cover::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(34, 31, 26, 0.18);
    border-radius: 2px 8px 8px 2px;
    pointer-events: none;
}

.book-cover__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.book-cover__logo {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    box-shadow:
        0 0 0 1px rgba(34, 31, 26, 0.08),
        0 18px 30px -18px rgba(73, 52, 26, 0.55);
}

.book-cover__name {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

.book-cover__tag {
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.book-cover__rule {
    width: 44px;
    height: 1px;
    margin: 22px 0;
    background: var(--line-strong);
}

.book-cover__vol {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.book-cover__butterfly {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 108px;
    height: auto;
    color: rgba(233, 96, 63, 0.28);
}

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
    background: #1b1a17;
    color: var(--cream);
    padding: 52px 0 28px;
}

.site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand--footer .brand__name {
    color: var(--cream);
}

.brand--footer .brand__tag {
    color: #8e8576;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
    color: #b8ae9d;
}

.site-footer__nav a {
    transition: color 0.2s ease;
}

.site-footer__nav a:hover {
    color: var(--cream);
}

.site-footer__line {
    font-family: var(--font-hand);
    font-size: 17px;
    color: #c8bda9;
    transform: rotate(-1deg);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px dashed rgba(247, 241, 229, 0.14);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #9a9183;
}

/* 13. Motion --------------------------------------------------------------- */
@keyframes line-in {
    to {
        transform: translateY(0);
    }
}

@keyframes artifact-in {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ink-draw {
    from {
        background-size: 0 0.1em;
    }
    to {
        background-size: 100% 0.1em;
    }
}

@keyframes butterfly-drift {
    from {
        transform: translate3d(0, 0, 0) rotate(-10deg);
    }
    to {
        transform: translate3d(-18px, 16px, 0) rotate(-6deg);
    }
}

@keyframes cue-nudge {
    0%,
    100% {
        transform: rotate(90deg) translateX(0);
    }
    50% {
        transform: rotate(90deg) translateX(4px);
    }
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动入场：只有 main.js 正常运行时才隐藏内容 */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.85s var(--ease-out),
        transform 0.85s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-ready .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* 14. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
    :root {
        --gutter: 32px;
    }

    .hero__grid {
        gap: 40px;
    }

    .hero__butterfly {
        width: 460px;
        right: -4%;
    }

    .hero__copy h1 {
        font-size: clamp(2.9rem, 4.6vw, 3.85rem);
    }

    .journal__page {
        padding-right: 26px;
    }

    .how__grid,
    .faq__grid {
        gap: 64px;
    }

    .mbti {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 36px;
    }
}

@media (max-width: 1000px) {
    .site-nav {
        gap: 20px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 0;
        padding-top: 56px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .hero__copy {
        max-width: 640px;
    }

    .hero__artifact {
        justify-self: center;
        max-width: 560px;
    }

    .hero__butterfly {
        width: 420px;
        right: -8%;
        top: 2%;
        opacity: 0.08;
    }

    .hero__foot {
        padding-top: 40px;
    }

    .how__grid,
    .faq__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .how__intro,
    .faq__intro {
        position: static;
    }

    .how__intro > p {
        max-width: 52ch;
    }

    .how__arrow {
        display: none;
    }

    .night__head {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .night__head h2 {
        max-width: 12em;
    }

    .mbti {
        grid-template-columns: 1fr;
    }

    .mbti__card {
        min-height: 360px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .section-head p {
        max-width: 56ch;
    }

    .bento__item--memory,
    .bento__item--themes {
        grid-column: span 6;
        min-height: 420px;
    }

    .bento__item--cast,
    .bento__item--custom,
    .bento__item--private {
        grid-column: span 6;
    }

    .backcover__grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .backcover__visual {
        order: 2;
    }

    .book-cover {
        width: min(300px, 78vw);
    }

    .site-footer__top {
        flex-wrap: wrap;
    }

    .site-footer__line {
        width: 100%;
        order: 3;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 22px;
        --header-h: 72px;
    }

    body {
        font-size: 16px;
    }

    .section {
        padding: 88px 0;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .brand__tag {
        display: none;
    }

    .brand__icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .brand__name {
        font-size: 20px;
    }

    .hero {
        padding-top: 36px;
        padding-bottom: 24px;
    }

    .hero__copy h1 {
        font-size: clamp(2.6rem, 10.2vw, 3.4rem);
        line-height: 1.14;
    }

    .hero__lede {
        margin-top: 22px;
        font-size: 15.5px;
        line-height: 1.9;
    }

    .hero__actions {
        margin-top: 28px;
        gap: 18px;
    }

    .hero__platforms {
        margin-top: 26px;
        gap: 8px;
        font-size: 12px;
    }

    .hero__platforms em {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .hero__artifact {
        padding: 0;
        max-width: 440px;
    }

    .journal {
        transform: rotate(-1.2deg);
    }

    .journal__page {
        padding: 24px 18px 24px 44px;
    }

    .journal__head {
        font-size: 11px;
    }

    .journal__cast {
        margin-top: 18px;
    }

    .medallion {
        width: 46px;
        height: 46px;
        font-size: 21px;
    }

    .journal__cast-name {
        font-size: 17px;
    }

    .journal__cast-meta {
        font-size: 12px;
    }

    .line {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 10px 0;
    }

    .line p {
        font-size: 14px;
    }

    .line__action {
        font-size: 12.5px !important;
    }

    .journal__note {
        font-size: 18px;
        margin-top: 18px;
    }

    .journal__stamp {
        width: 74px;
        height: 74px;
        right: -8px;
        bottom: 24px;
    }

    .journal__stamp strong {
        font-size: 23px;
    }

    .journal__stamp span {
        font-size: 11px;
    }

    .journal__memory {
        padding: 9px 10px;
    }

    .journal__memory b {
        font-size: 12px;
    }

    .hero__foot {
        display: none;
    }

    .tape-band {
        padding-top: 16px;
    }

    .tape__track span {
        font-size: 16px;
        letter-spacing: 0.12em;
    }

    .how::before {
        left: var(--gutter);
        right: var(--gutter);
    }

    .how__intro h2,
    .section-head h2,
    .faq__intro h2 {
        font-size: clamp(2.1rem, 8.4vw, 2.7rem);
    }

    .how__intro > p,
    .section-head p {
        font-size: 15px;
    }

    .step {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
        padding: 30px 0 34px;
    }

    .step__num {
        font-size: 36px;
    }

    .step__body h3 {
        font-size: 23px;
    }

    .step__body > p {
        font-size: 14.5px;
    }

    .mini {
        padding: 13px 14px;
    }

    .mini__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mini__chips {
        justify-content: flex-start;
    }

    .mbti__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .mbti__chip {
        padding: 9px 8px;
    }

    .mbti__chip b {
        font-size: 12px;
    }

    .mbti__chip span {
        font-size: 11px;
    }

    .mbti__card {
        padding: 26px 22px 22px;
        min-height: 340px;
    }

    .mbti__code {
        font-size: 4.2rem;
    }

    .mbti__line {
        font-size: 19px;
    }

    .night {
        padding: 88px 0 72px;
    }

    .night__foot {
        font-size: 12px;
        line-height: 1.7;
    }

    .bento {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 34px;
    }

    .bento__item--memory,
    .bento__item--themes,
    .bento__item--cast,
    .bento__item--custom,
    .bento__item--private {
        grid-column: span 1;
        min-height: 0;
        padding: 24px;
    }

    .bento__item--memory,
    .bento__item--themes {
        min-height: 380px;
    }

    .bento__item h3 {
        font-size: 26px;
    }

    .bento__item > p {
        font-size: 14px;
    }

    .swatch-stack {
        height: 150px;
    }

    .thread {
        padding-top: 22px;
    }

    .thread__knot {
        font-size: 11px;
        padding: 4px 8px;
    }

    .faq {
        padding: 88px 0;
    }

    .faq__grid {
        gap: 32px;
    }

    .faq__item summary {
        padding: 20px 0;
        font-size: 16px;
        gap: 16px;
    }

    .faq__panel {
        padding-right: 10px;
    }

    .backcover {
        padding: 88px 0 72px;
    }

    .backcover__copy h2 {
        font-size: clamp(2.6rem, 11vw, 3.4rem);
    }

    .backcover__copy > p {
        font-size: 15.5px;
    }

    .tickets {
        margin-top: 28px;
    }

    .ticket {
        grid-template-columns: 58px minmax(0, 1fr) 20px;
        gap: 13px;
        padding: 13px 14px;
    }

    .ticket::before {
        left: 58px;
    }

    .ticket__body b {
        font-size: 15px;
    }

    .book-cover {
        width: min(270px, 74vw);
        padding: 26px;
    }

    .book-cover__name {
        font-size: 38px;
    }

    .book-cover__logo {
        width: 78px;
        height: 78px;
        border-radius: 19px;
    }

    .site-footer {
        padding-top: 40px;
    }

    .site-footer__nav {
        gap: 18px;
        flex-wrap: wrap;
        font-size: 12px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        line-height: 1.7;
    }
}

@media (max-width: 420px) {
    .hero__copy h1 {
        font-size: 2.45rem;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__actions .link-arrow {
        margin-inline: auto;
    }

    .btn {
        min-height: 50px;
    }

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

    .mbti__chip {
        padding: 8px 6px;
    }

    .mbti__chip b {
        font-size: 11px;
    }

    .mbti__chip span {
        font-size: 11px;
    }

    .journal__page {
        padding-left: 40px;
    }
}

/* 15. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .js .hero__line > span {
        transform: none;
    }

    .reveal-ready .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__butterfly {
        animation: none;
    }
}
