/* 屿爱主页 (islove.app 根地址给游客看的那页) —— 模板 templates/islove_home.html, 数据 islove_home.py, 脚本 home.js。
   拉丁字体自托管 (SIL OFL 1.1, 见 fonts/OFL.txt); 中文走系统字体。CSP script-src 'self', 所以没有内联脚本。 */
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Michroma"; src: url(fonts/michroma.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-style: normal; font-weight: 100 800; font-display: swap; }
/* 版式: 夜海上的一座小岛 —— 深紫夜色铺满, 细线分隔的章节, 每章左文右「真东西」(来电 / 篇章环 / 粒子画像 / 舞台 / 卡片), 收尾回到海平线 */
:root {
  color-scheme: dark;
  --ink: #07060c;          /* 夜海底色 */
  --ink-2: #0f0d18;        /* 抬起的面 */
  --ink-3: #171427;
  --line: rgba(214, 205, 255, .11);
  --text: #eeebf7;
  --mute: #8f8aa6;
  --dim: #5e5a74;
  --violet: #9277ff;       /* 屿爱紫 */
  --rose: #ff74ab;
  --sky: #78d6ff;
  --gold: #e9c47e;         /* 图鉴金边 */
  --green: #3ed39a;
  --red: #ff5a5f;
  --f-cjk: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Songti SC", "Noto Serif SC", serif;
  --f-wide: "Michroma", "PingFang SC", "Noto Sans SC", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --navw: 1320px;          /* 导航栏容器宽: 首屏那两行和它左右对齐 (左对图标, 右对「下载 App」) */
  --maxw: 1180px;
  --grad: linear-gradient(100deg, var(--violet), var(--rose) 55%, var(--gold));
  --grad-cool: linear-gradient(100deg, var(--sky), var(--violet));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font: 300 16px/1.7 var(--f-cjk); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.label { font: 400 10.5px/1.4 var(--f-wide); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.mono { font-family: var(--f-mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font: 300 clamp(34px, 4.6vw, 58px)/1.18 var(--f-cjk); letter-spacing: .01em; margin: 0; text-wrap: balance; white-space: pre-line; }
.latin { font: italic 400 clamp(19px, 1.9vw, 24px)/1.3 var(--f-serif); color: #cfc9e6; margin: 0; }
.lead { color: #b9b3cf; font-size: 15.5px; max-width: 34em; margin: 0; }

/* ---------- nav ---------- */
.bar { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: transparent; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(7,6,12,.82), rgba(7,6,12,.35)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; max-width: var(--navw); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font: 400 9.5px var(--f-wide); letter-spacing: .25em; color: var(--dim); padding-left: 10px; border-left: 1px solid var(--line); }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; color: var(--mute); }
.links a { display: flex; gap: 7px; align-items: baseline; transition: color .2s; }
.links a b { font: 400 10px var(--f-mono); color: var(--dim); font-weight: 400; }
.links a:hover, .links a.on { color: var(--text); }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  font-size: 13.5px; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn-pill:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* 11-19 创始人对照心屿截图「图标以及图标下面的位置」: 以前贴着屏幕边, 宽屏上和图标 / 下载按钮错开一大截 */
.hero-meta { position: absolute; top: calc(84px + env(safe-area-inset-top, 0px));
  left: max(var(--gutter), calc(50% - var(--navw) / 2 + var(--gutter))); right: max(var(--gutter-r), calc(50% - var(--navw) / 2 + var(--gutter-r))); display: flex; justify-content: space-between; gap: 20px; }
.hero-meta .label { line-height: 1.9; }
.hero-meta .live { color: var(--text); }
.hero-meta .live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 10px var(--green); vertical-align: 2px; }
.hero-center { place-self: center; text-align: center; padding: 110px var(--gutter-r) 210px var(--gutter); }
.hero-center .label { color: #b8b1d6; }
.hero h1 { margin: 22px 0 18px; font: italic 400 clamp(40px, 6.4vw, 88px)/1.02 var(--f-serif); letter-spacing: -.01em; text-wrap: balance; }
.hero .cn { font: 300 clamp(20px, 2.3vw, 28px)/1.6 var(--f-cjk); letter-spacing: .28em; color: #d9d4ee; margin: 0; }
.hero-foot { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mute); font-size: 12.5px; letter-spacing: .2em; }
.hero-foot .line { width: 1px; height: 34px; background: linear-gradient(var(--mute), transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
.tap-hint { position: absolute; left: 50%; top: 82%; transform: translateX(-50%); font-size: 12px; letter-spacing: .3em; color: rgba(214,205,255,.42); pointer-events: none; white-space: nowrap; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- manifesto ---------- */
.manifesto { padding-block: 140px 110px; }
.manifesto .label::before, .chapter-head .label::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--dim); margin-right: 14px; vertical-align: middle; }
.mf-text { margin: 34px 0 0; font: 300 clamp(26px, 3.6vw, 46px)/1.55 var(--f-cjk); max-width: 22em; text-wrap: pretty; }
.mf-text span { color: #5a5570; transition: color .25s; }
.mf-text span.lit { color: var(--text); }
.mf-text em { font-style: normal; }
.mf-text em.k1.lit { background: linear-gradient(100deg, var(--rose), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-text em.k2.lit { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-text em.k3.lit { background: linear-gradient(100deg, var(--gold), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-text em.lit span { color: transparent; }
.mf-after { margin-top: 46px; display: grid; gap: 4px; color: var(--mute); font-size: 15px; }

/* ---------- day strip ---------- */
.day { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 34px 40px; }
.day-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.day-track { position: relative; margin-top: 30px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.day-track::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line); }
.slot { position: relative; padding-top: 26px; padding-right: 16px; }
.slot::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--dim); }
.slot .t { font: 400 11px var(--f-mono); color: var(--dim); letter-spacing: .08em; }
.slot .n { font-size: 15px; margin: 6px 0 4px; color: #cfcae2; font-weight: 400; }
.slot .d { font-size: 13px; color: var(--mute); line-height: 1.6; }
.slot.now::before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 5px rgba(255,116,171,.16), 0 0 18px var(--rose); }
.slot.now .t { color: var(--rose); }
.slot.now .n { color: var(--text); }
.slot.now .d { color: #d8d3ea; }

/* ---------- chapter common ---------- */
.chapter { position: relative; padding-block: 130px; }
.chapter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.badge { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 400 11px var(--f-mono); color: #cfcae2; background: var(--ink-2); flex: none; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.copy { display: grid; gap: 22px; align-content: start; }
.rows { margin-top: 10px; border-top: 1px solid var(--line); }
.rows div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.rows b { font-weight: 500; font-size: 15px; }
.rows span { color: var(--mute); font-size: 14px; }

/* ---------- 01 call ---------- */
.phone { position: relative; width: min(340px, 82vw); aspect-ratio: 9 / 19.2; margin: 0 auto; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2b2838, #121019 40%, #26232f); box-shadow: 0 50px 120px -30px rgba(146,119,255,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #000; isolation: isolate; }
.screen .bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.1); transform: scale(1.05); z-index: -1; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 5; }
.incoming { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 70px 22px 46px; text-align: center; transition: opacity .35s; }
.incoming .av { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid rgba(255,255,255,.4); box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 22px rgba(255,255,255,.03); animation: halo 2.2s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.22), 0 0 0 0 rgba(255,255,255,.1); } 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0), 0 0 0 34px rgba(255,255,255,0); } }
.incoming .who { margin-top: 22px; font-size: 28px; font-weight: 400; letter-spacing: .06em; }
.incoming .what { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 2px; }
.incoming .ring { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.88); }
.incoming .ring::after { content: "…"; display: inline-block; animation: dots 1.2s steps(4) infinite; width: 1.1em; overflow: hidden; vertical-align: bottom; text-align: left; }
@keyframes dots { from { width: 0; } to { width: 1.1em; } }
.actions { margin-top: auto; display: flex; justify-content: space-around; width: 100%; }
.act { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.8); }
.act i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.act.no i { background: var(--red); }
.act.yes i { background: var(--green); animation: nudge 1.6s ease-in-out infinite; }
.act svg { width: 28px; height: 28px; fill: #fff; }
@keyframes nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(0); } }
.connected { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .35s; }
.connected video { width: 100%; height: 100%; object-fit: cover; }
.connected .top { position: absolute; top: 48px; left: 0; right: 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.connected .top b { display: block; font-size: 17px; font-weight: 500; }
.sub { position: absolute; left: 16px; right: 16px; bottom: 116px; text-align: center; font-size: 15px; line-height: 1.5; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.me-pip { position: absolute; right: 14px; top: 92px; width: 74px; height: 104px; border-radius: 14px; background: linear-gradient(160deg, #3a3550, #1b1828); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 11px; color: rgba(255,255,255,.6); }
.hang { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
.screen.on .incoming { opacity: 0; pointer-events: none; }
.screen.on .connected { opacity: 1; pointer-events: auto; }
.toast { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; padding: 9px 16px; border-radius: 999px; background: rgba(20,18,30,.85); border: 1px solid var(--line); opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.show { opacity: 1; }
.phone-cap { text-align: center; margin-top: 22px; font-size: 13px; color: var(--mute); letter-spacing: .08em; }

/* ---------- 02 chapters (sticky) ---------- */
.chapters { padding-block: 0; height: 330vh; }
.sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
.sticky > .wrap { width: 100%; }
.ring-box { position: relative; width: min(440px, 74%); aspect-ratio: 1; margin: 0 auto; }
.ring-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-box .core { position: absolute; left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%); text-align: center; }
.ring-box .core img { width: 100%; border-radius: 10px; box-shadow: 0 20px 60px -10px rgba(233,196,126,.35); }
.ring-box .num { position: absolute; left: 50%; bottom: -26%; transform: translateX(-50%); font: 400 clamp(40px, 6vw, 64px)/1 var(--f-wide); color: var(--text); text-shadow: 0 0 30px rgba(146,119,255,.6); white-space: nowrap; }
.ring-box .num small { display: block; font: 400 10px var(--f-wide); letter-spacing: .3em; color: var(--mute); margin-bottom: 6px; }
.rl { font: 400 17px var(--f-cjk); fill: var(--dim); transition: fill .3s; }
.rl.on { fill: var(--text); }
.rl.done { fill: #a49fbd; }
.rd { fill: var(--ink); stroke: var(--dim); stroke-width: 1; transition: all .3s; }
.rd.done { fill: var(--violet); stroke: var(--violet); }
.rd.on { fill: var(--rose); stroke: var(--rose); filter: drop-shadow(0 0 8px var(--rose)); }
.pill { display: inline-flex; gap: 12px; align-items: baseline; padding: 12px 16px; border: 1px solid rgba(62,211,154,.35); border-radius: 14px; background: rgba(62,211,154,.06); font-size: 13.5px; color: #b9e9d6; }
.pill b { color: var(--green); font-weight: 500; white-space: nowrap; }
.scene { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--ink-2); display: grid; gap: 6px; min-height: 132px; }
.scene .k { font: 400 11px var(--f-mono); color: var(--rose); letter-spacing: .06em; }
.scene .t { font-size: 20px; font-weight: 400; }
.scene .p { font-size: 14px; color: var(--mute); }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stages span { font-size: 12px; padding: 7px 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); text-align: center; transition: all .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stages span.done { color: #b5b0cb; border-color: rgba(146,119,255,.35); }
.stages span.on { color: #fff; border-color: var(--rose); background: rgba(255,116,171,.12); }
.foot-mono { font: 400 11px var(--f-mono); color: var(--dim); letter-spacing: .08em; }

/* ---------- 03 create (sticky particles) ---------- */
.create { padding-block: 0; height: 280vh; }
.pcv-box { position: relative; width: min(460px, 100%); aspect-ratio: 3 / 4; margin: 0 auto; }
.pcv-box canvas { width: 100%; height: 100%; }
.pcv-box .tag { position: absolute; top: -26px; right: 0; text-align: right; }
.pcv-box .pct { font: 400 12px var(--f-mono); color: var(--sky); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 5.6em 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); opacity: .38; transition: opacity .35s; }
.step.on { opacity: 1; }
.step .s { font: 400 10.5px var(--f-wide); letter-spacing: .14em; color: var(--sky); padding-top: 4px; }
.step b { display: block; font-weight: 500; font-size: 16px; }
.step span { color: var(--mute); font-size: 14px; }

/* ---------- 04 live ---------- */
.stage-row { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.room { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 9 / 15; background: var(--ink-3); border: 1px solid var(--line); transition: transform .35s; }
.room:hover { transform: translateY(-6px); }
.room img { width: 100%; height: 100%; object-fit: cover; }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,6,12,.92), transparent 55%); }
.room .live-b { position: absolute; top: 12px; left: 12px; z-index: 2; font: 500 10.5px var(--f-mono); letter-spacing: .1em; padding: 4px 9px; border-radius: 6px; background: var(--red); }
.room .meta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; }
.room .meta b { display: block; font-weight: 500; font-size: 15px; }
.room .meta span { font-size: 12px; color: #cfc9e3; }
.songs { margin-top: 26px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.songs-in { display: flex; gap: 10px; width: max-content; animation: slide 40s linear infinite; }
.songs-in span { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: #cbc6de; white-space: nowrap; }
.songs-in span::before { content: "♪"; color: var(--rose); margin-right: 7px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 05 match ---------- */
.deck { position: relative; width: min(360px, 84vw); aspect-ratio: 3 / 4.45; margin: 0 auto; touch-action: pan-y; user-select: none; }
.card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--ink-3); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px -24px rgba(0,0,0,.8);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; will-change: transform; cursor: grab; }
.card.drag { transition: none; cursor: grabbing; }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,6,12,.96) 8%, rgba(7,6,12,.4) 42%, transparent 62%); }
.card .info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; display: grid; gap: 5px; }
.card .where { font: 400 11.5px var(--f-mono); color: var(--sky); }
.card .nm { font-size: 30px; font-weight: 400; line-height: 1.15; }
.card .nm small { font: 400 15px var(--f-mono); color: #d6d1ea; margin-inline-start: 8px; }
.card .now { font-size: 13.5px; color: #e9e5f5; }
.card .now b { color: var(--green); font-weight: 400; }
.card .hk { font-size: 12.5px; color: #a9a4c0; }
.card .stamp { position: absolute; top: 26px; z-index: 3; font: 400 18px var(--f-wide); letter-spacing: .12em; padding: 6px 12px; border-radius: 8px; border: 2px solid; opacity: 0; }
.card .stamp.like { left: 22px; color: var(--green); transform: rotate(-12deg); }
.card .stamp.skip { right: 22px; color: var(--red); transform: rotate(12deg); }
.deck-btns { display: flex; justify-content: center; gap: 26px; margin-top: 26px; }
.deck-btns button { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); display: grid; place-items: center; transition: transform .2s, border-color .2s; }
.deck-btns button:hover { transform: scale(1.08); border-color: rgba(255,255,255,.35); }
.deck-btns svg { width: 24px; height: 24px; }
.deck-cap { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--dim); letter-spacing: .1em; }

/* ---------- 06 six ways ---------- */
.ways-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.ways { margin-top: 54px; display: flex; gap: 10px; height: 560px; }
.way { position: relative; flex: 1; min-width: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); transition: flex .6s cubic-bezier(.2,.8,.2,1); cursor: pointer; text-align: left; padding: 0; }
.way.on { flex: 4.2; cursor: default; }
.way img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.75) brightness(.7); transition: filter .5s; }
.way.on img { filter: none; }
.way::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,6,12,.95) 10%, rgba(7,6,12,.25) 55%, rgba(7,6,12,.1)); }
.way .no { position: absolute; top: 16px; left: 16px; z-index: 2; font: 400 11px var(--f-mono); color: #d6d1ea; }
.way .en { position: absolute; top: 16px; right: 16px; z-index: 2; font: 400 9.5px var(--f-wide); letter-spacing: .2em; color: #d6d1ea; opacity: 0; transition: opacity .4s; }
.way .vt { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; writing-mode: vertical-rl; font-size: 17px; letter-spacing: .3em; white-space: nowrap; transition: opacity .3s; }
.way .body { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2; display: grid; gap: 10px; opacity: 0; transform: translateY(12px); transition: opacity .4s .15s, transform .4s .15s; max-width: 30em; }
.way .body h3 { margin: 0; font: 300 34px/1.2 var(--f-cjk); }
.way .body p { margin: 0; font-size: 14.5px; color: #d2cde4; }
.way .body q { font: italic 400 18px/1.4 var(--f-serif); color: #fff; quotes: "「" "」"; }
.way .body q::before, .way .body q::after { font-family: var(--f-cjk); font-style: normal; color: var(--rose); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #e4e0f2; background: rgba(7,6,12,.35); }
.way.on .vt { opacity: 0; }
.way.on .body, .way.on .en { opacity: 1; transform: none; }

/* ---------- 07 bento ---------- */
.bento { margin-top: 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(170deg, var(--ink-2), #0b0a12); padding: 24px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.tile h3 { margin: 0; font: 300 23px/1.3 var(--f-cjk); }
.tile p { margin: 0; color: var(--mute); font-size: 14px; }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 3; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.lock { margin-top: 6px; border-radius: 26px; padding: 26px 14px 16px; background: linear-gradient(170deg, #2a2142, #120f1c 60%); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 10px; }
.lock .clock { text-align: center; font: 200 54px/1 var(--f-cjk); letter-spacing: .02em; }
.lock .date { text-align: center; font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.note { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); font-size: 13px; line-height: 1.5; }
.note img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.note b { font-weight: 500; font-size: 13px; display: flex; justify-content: space-between; }
.note b i { font: 400 11px var(--f-mono); color: var(--mute); font-style: normal; }
.note .call { color: var(--green); }
.wave { height: 70px; display: flex; align-items: center; gap: 3px; }
.wave i { flex: 1; border-radius: 3px; background: var(--grad-cool); height: 20%; transition: height .12s; }
.voices { display: flex; flex-wrap: wrap; gap: 8px; }
.voices button { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: #c9c4dc; transition: all .2s; }
.voices button.on { background: #fff; color: #120f1c; border-color: #fff; }
.gifts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gift { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 11.5px; color: #c9c4dc; transition: transform .2s, border-color .2s; }
.gift:hover { transform: translateY(-3px); border-color: rgba(255,116,171,.5); }
.gift img { width: 42px; height: 42px; object-fit: contain; }
.thanks { font-size: 13.5px; padding: 10px 14px; border-radius: 14px; background: rgba(146,119,255,.12); border: 1px solid rgba(146,119,255,.3); color: #e1dbff; min-height: 44px; }
.fan { position: relative; height: 190px; margin-top: 4px; }
.fan img { position: absolute; bottom: 0; left: 50%; width: 112px; border-radius: 8px; transform-origin: 50% 120%; box-shadow: 0 12px 30px -8px rgba(0,0,0,.8); transition: transform .4s; }
.tile:hover .fan img { transform: translateX(-50%) rotate(var(--r2)) translateY(-6px) !important; }
.shield { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--ink-3); font: 400 15px var(--f-wide); color: var(--gold); }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px; overflow: hidden; }
.marquee-in { display: flex; gap: 34px; width: max-content; animation: slide 46s linear infinite; font: 300 clamp(20px, 2.4vw, 30px)/1 var(--f-cjk); color: #bdb7d4; }
.marquee-in span:nth-child(odd) { font: italic 400 clamp(22px, 2.6vw, 33px)/1 var(--f-serif); color: #8f8aa6; }
.marquee-in b { color: var(--violet); font-weight: 400; }

/* ---------- finale ---------- */
.finale { position: relative; min-height: min(100svh, 860px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding-block: 120px; }
.finale canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.finale h2 { font-size: clamp(34px, 5vw, 64px); }
.finale .latin { margin-top: 18px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.store { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px; border-radius: 14px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.28); text-align: left; transition: background .2s, border-color .2s, transform .2s; }
.store:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font: 400 9.5px var(--f-wide); letter-spacing: .14em; color: #bdb7d4; }
.store b { display: block; font-size: 17px; font-weight: 500; line-height: 1.2; }
.fine { margin-top: 26px; font-size: 12.5px; color: var(--mute); letter-spacing: .06em; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--mute); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .two, .ways-head { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .stage-row { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter-r)); }
  .room { scroll-snap-align: start; }
  .ways { height: auto; flex-direction: column; }
  .way { flex: none; height: 92px; }
  .way.on { flex: none; height: 460px; }
  .way .vt { writing-mode: horizontal-tb; left: 56px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.tall { grid-row: auto; }
  .tile.wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .chapters { height: 280vh; }
  .create { height: 240vh; }
  .chapters .two, .create .two { gap: 22px; }
  .chapters .sticky .copy > .lead, .chapters .sticky .pill, .chapters .foot-mono, .create .sticky .lead, .create .sticky .latin { display: none; }
  .rl { display: none; }
  .chapter { padding-block: 96px; }
  .chapters, .create { padding-block: 0; }
  .ring-box { width: min(230px, 58vw); }
  .pcv-box { width: min(220px, 56vw); }
  .step span { display: none; }
  .step { padding: 10px 0; }
  .chapters .ring-box { margin-bottom: 62px; }
  .ring-box .num { font-size: 44px; }
  .create .foot-mono { display: none; }
  .pcv-box { margin-top: 34px; }
}
@media (max-width: 640px) {
  .hero-meta { flex-direction: column; gap: 4px; }
  .hero-meta > div:last-child { display: none; }
  .day-track { grid-template-columns: repeat(6, 74%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter-r)); }
  .slot { scroll-snap-align: start; }
  .rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stages span { font-size: 11px; padding: 5px 2px; }
  .brand small { display: none; }
  .gifts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-pill { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .lang-pick summary { padding: 0 6px; }
  .lang-pick summary span { display: none; }
  .store { width: 100%; max-width: 320px; }
  .step { grid-template-columns: 4.6em 1fr; padding: 11px 0; }
  .chapters .h2-s, .create .h2-s { font-size: 28px; }
}
@media (max-width: 380px) {   /* 360 宽的安卓: 品牌 + 语言 + 两颗按钮挤一行 */
  .nav .wrap { gap: 10px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand img { width: 26px; height: 26px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn-pill { padding: 0 9px; font-size: 12px; }
  .lang-pick summary { padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .songs-in, .marquee-in, .hero-foot .line, .incoming .av, .act.yes i { animation: none; }
  .card, .way, .way .body { transition: none; }
}

html:lang(zh-Hant) { --f-cjk: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif; }
html:lang(en) .hero .cn { letter-spacing: .04em; }
html:lang(en) h2 { letter-spacing: -.005em; }
html:lang(en) .brand small { display: none; }
.btn-pill.ghost { border-color: transparent; color: var(--mute); }
.btn-pill.ghost:hover { color: var(--text); background: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
/* 语言切换 (「登录网页版」左边): 地球 + 当前语言, 点开三种 */
.lang-pick { position: relative; }
.lang-pick summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 999px; color: var(--mute); font-size: 13.5px; cursor: pointer; user-select: none; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover, .lang-pick[open] summary { color: var(--text); background: rgba(255,255,255,.06); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 132px; display: grid; grid-template-columns: repeat(2, auto); gap: 2px; padding: 6px; border-radius: 14px; background: #121020; border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); max-height: min(72vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 9px; font-size: 13.5px; color: #cfcae2; white-space: nowrap; }
.lang-menu a:hover { background: rgba(255,255,255,.07); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current]::after { content: "✓"; color: var(--violet); }
.hl { display: flex; gap: 12px; font-size: 12.5px; }
.hl a[aria-current] { color: var(--text); }

/* 其余语言 (11-19 起 32 种): 字体按文字走系统字, 别让 PingFang SC 去排日文汉字 / 越南语声调; 连写的文字不加字距 */
:root:lang(ja) { --f-cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; --f-serif: "Instrument Serif", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
:root:lang(ko) { --f-cjk: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; --f-serif: "Instrument Serif", "AppleMyungjo", "Noto Serif KR", serif; }
:root:lang(ko) body { word-break: keep-all; }   /* 韩语按词换行, 别把 영상 拆成两行 */
:root:not(:lang(zh)):not(:lang(en)):not(:lang(ja)):not(:lang(ko)) { --f-cjk: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; --f-wide: "Michroma", system-ui, -apple-system, "Segoe UI", sans-serif; --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif; }
:root:not(:lang(zh)):not(:lang(en)):not(:lang(ja)) .way .body q { quotes: auto; }
:root:is(:lang(ar), :lang(fa), :lang(ur), :lang(he), :lang(hi), :lang(ne), :lang(th)) body * { letter-spacing: 0 !important; }
:root:is(:lang(th), :lang(hi), :lang(ne)) h2 { line-height: 1.42; }
:root:lang(ur) h2, :root:lang(ur) .mf-text { line-height: 1.9; }
@media (max-width: 520px) {   /* 别的语言按钮字长 (德 / 芬 / 俄…): 手机上品牌只留图标, 按钮再长也只省略、不出屏 */
  :root:not(:lang(zh)) .nav .brand .brand-name { display: none; }
  /* 语言菜单: 手机上从地球图标往左展开放不下两列 (左列出屏), 改成导航下面整宽展开 (导航有 backdrop-filter, fixed 以导航为准) */
  .lang-menu { position: fixed; top: calc(60px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - 84px - env(safe-area-inset-top, 0px)); }
  [dir="rtl"] .lang-menu { left: 12px; right: 12px; }
  .lang-menu a { overflow: hidden; text-overflow: ellipsis; }
  :root:not(:lang(zh)) .nav-actions { min-width: 0; }
  :root:not(:lang(zh)) .nav-actions .btn-pill { display: block; line-height: 32px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* 从右往左的页面里夹着的英文装饰句: 按英文排, 句号别跑到最左边 */
[dir="rtl"] .hero h1, [dir="rtl"] .latin, [dir="rtl"] .marquee-in span:nth-child(odd) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .latin { text-align: right; }
