/* 莉耶伊的魔物娘地牢 官网
   视觉沿用游戏里的手绘手账风：深紫书桌、纸片、纸胶带、便签、贴纸。
   字体：霞鹜文楷（正文）、站酷快乐体（标题），均为 SIL OFL，子集化后随站点提供。 */

@font-face { font-family: "Wenkai"; src: url("../assets/fonts/body.woff") format("woff"); font-display: swap; }
@font-face { font-family: "KuaiLe"; src: url("../assets/fonts/title.woff") format("woff"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #2b2742;
  --bg-2: #1f1b33;
  --paper: #fdf3e1;
  --paper-2: #f4e6cb;
  --ink: #4b3550;
  --ink-2: #6f5873;
  --light: #f6edf8;
  --light-2: #cbbfe0;
  --coral: #f04e45;
  --sakura: #fcd1c9;
  --gold: #f4cf6a;
  --lav: #b7a4e4;
  --blue: #a5cde9;
  --font-body: "Wenkai", "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-title: "KuaiLe", "Wenkai", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --head-h: 58px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--light); background: var(--bg-2);
  font: 17px/1.85 var(--font-body); letter-spacing: .02em;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--bg) url("../assets/ui/bg_desk.webp") center / cover no-repeat;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.small { font-size: 14px; line-height: 1.7; opacity: .86; }
.role { font: 15px/1.4 var(--font-body); color: var(--coral); letter-spacing: .06em; }

/* ---------- 顶栏 ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(18px, 2.6vw); padding-top: env(safe-area-inset-top);
  background: rgba(31, 27, 51, .84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(203, 191, 224, .28);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 20px/1 var(--font-title); letter-spacing: .06em; white-space: nowrap; }
.brand img { border-radius: 10px; }
#nav { display: flex; align-items: center; gap: 4px; }
#nav a {
  text-decoration: none; padding: 5px 14px; border-radius: 12px 6px 14px 7px; font-size: 16px; line-height: 1.5;
  transition: background .2s, transform .2s var(--ease);
}
#nav a:hover { background: rgba(244, 207, 106, .22); transform: rotate(-1.5deg); }
#nav a.on { background: rgba(244, 207, 106, .3); }
.nav-toggle { display: none; border: 0; background: var(--paper); color: var(--ink); padding: 4px 16px; border-radius: 12px 6px 14px 7px; box-shadow: 2px 3px 0 rgba(10, 8, 20, .4); }

/* ---------- 纸胶带 / 纸片 ---------- */
.tape { position: absolute; z-index: 2; width: 128px; height: 42px; top: -18px; left: 24px; background: center / 100% 100% no-repeat; transform: rotate(-4deg); pointer-events: none; }
.tape-star { background-image: url("../assets/ui/tape_star.png"); }
.tape-dot { background-image: url("../assets/ui/tape_dot.png"); }
.tape-heart { background-image: url("../assets/ui/tape_heart.png"); }
.tape-stripe { background-image: url("../assets/ui/tape_stripe.png"); }
.tape-wave { background-image: url("../assets/ui/tape_wave.png"); }
.tape-flower { background-image: url("../assets/ui/tape_flower.png"); }
.tape-check { background-image: url("../assets/ui/tape_check.png"); }
.tape-drop { background-image: url("../assets/ui/tape_drop.png"); }

.page {
  position: relative; color: var(--ink); background-color: var(--paper);
  border-radius: 7px 3px 9px 4px; padding: 34px clamp(22px, 3.4vw, 44px) 30px;
  box-shadow: 5px 7px 0 rgba(10, 8, 20, .38);
  transform: rotate(var(--tilt, 0deg));
}
.page.ruled {
  --lh: 34.4px;
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(224, 112, 120, .55) 38px, rgba(224, 112, 120, .55) 40px, transparent 40px),
    repeating-linear-gradient(transparent 0, transparent 33.4px, rgba(112, 160, 208, .3) 33.4px, rgba(112, 160, 208, .3) var(--lh));
  background-position: 0 0, 0 0; padding: var(--lh) clamp(22px, 3.4vw, 44px) calc(var(--lh) - 4px) clamp(54px, 6vw, 70px);
}
.page.ruled h2 { line-height: calc(var(--lh) * 2); margin: 0; }
.page.ruled p { line-height: var(--lh); }
.page.ruled p + p { margin-top: 0; text-indent: 2em; }
.page h2, .page h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: .08em; }
.page h2 { font-size: 34px; line-height: 1.2; margin-bottom: 8px; }
.page p + p { margin-top: .6em; }

.paper-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 190px; height: 58px; padding: 0 34px;
  background: url("../assets/ui/title_btn.png") center / 100% 100% no-repeat; color: var(--ink);
  font: 21px/1 var(--font-title); letter-spacing: .12em; text-decoration: none; border: 0;
  filter: drop-shadow(3px 4px 0 rgba(10, 8, 20, .35)); transition: transform .2s var(--ease);
}
.paper-btn:hover { background-image: url("../assets/ui/title_btn_hover.png"); transform: rotate(-1.5deg) translateY(-1px); }
.paper-btn.disabled { opacity: .62; filter: grayscale(.5) drop-shadow(3px 4px 0 rgba(10, 8, 20, .3)); cursor: not-allowed; }
.paper-btn.disabled:hover { transform: none; background-image: url("../assets/ui/title_btn.png"); }

/* ---------- 首屏 ---------- */
.hero { position: relative; height: clamp(560px, 100svh, 1000px); overflow: hidden; background: var(--bg); }
.hero-stage { position: absolute; inset: 0; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.hero-stage canvas.hw-in { opacity: 1; }
.hero-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(43, 39, 66, .85)); pointer-events: none; }
.hero-copy {
  position: relative; z-index: 2; height: 100%; width: min(600px, 48vw);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  padding: calc(var(--head-h) + 20px) 0 56px max(24px, 5vw);
}
.hero h1 img { display: block; width: min(440px, 100%); height: auto; aspect-ratio: 2 / 1; filter: drop-shadow(4px 6px 0 rgba(43, 22, 60, .4)); }
.foot .credit { font: 15px/1.4 var(--font-title); letter-spacing: .3em; color: var(--light-2); margin: 4px 0 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.motion-btn {
  position: absolute; right: max(16px, 2vw); bottom: 18px; z-index: 3; border: 0; padding: 3px 14px; font-size: 14px;
  color: var(--ink); background: rgba(253, 243, 225, .9); border-radius: 12px 5px 13px 6px; box-shadow: 2px 3px 0 rgba(10, 8, 20, .35);
}
.motion-btn[hidden] { display: none; }

/* ---------- 通用段落 ---------- */
.section { padding: 84px 0 40px; }
.sec-title { text-align: center; margin-bottom: 40px; font: 44px/1.2 var(--font-title); letter-spacing: .3em; padding-left: .3em; }
.sec-title span { position: relative; display: inline-block; z-index: 0; transform: rotate(-1.5deg); }
.sec-title span::after { content: ""; position: absolute; z-index: -1; left: -12px; right: -6px; bottom: 2px; height: 16px; border-radius: 8px 3px 11px 4px; background: rgba(244, 207, 106, .62); transform: rotate(1.2deg); }
.sec-title::before, .sec-title::after { content: ""; display: inline-block; width: 46px; height: 46px; vertical-align: middle; background: center / contain no-repeat; filter: drop-shadow(1px 2px 0 rgba(10, 8, 20, .3)); }
.sec-title::before { background-image: url("../assets/ui/st_sparkle.png"); margin-right: 20px; transform: rotate(-10deg); }
.sec-title::after { background-image: url("../assets/ui/st_star.png"); margin-left: 14px; transform: rotate(12deg); }
.sub-title { font: 28px/1.3 var(--font-title); letter-spacing: .18em; margin: 56px 0 22px; text-align: center; }
.lead-note { text-align: center; margin: -18px 0 28px; color: var(--light-2); }

/* 简介 */

/* 玩法 */
.slip {
  position: relative; padding: 44px 30px 38px; color: var(--ink); transform: rotate(var(--tilt, 0deg));
  background: url("../assets/ui/cat_slip_plain.png") center / 100% 100% no-repeat; filter: drop-shadow(4px 6px 0 rgba(10, 8, 20, .32));
}
.slip.yellow { background-image: url("../assets/ui/cat_slip_attack.png"); }
.slip.green { background-image: url("../assets/ui/cat_slip_skill.png"); }
.slip > .tape { display: none; }
.slip h3 { font: 24px/1.3 var(--font-title); letter-spacing: .1em; margin-bottom: 6px; }
.slip p { font-size: 16px; line-height: 1.75; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; }
.shot { position: relative; transform: rotate(var(--tilt, 0deg)); }
.shot button, .gallery button {
  position: relative; display: block; width: 100%; padding: 10px 10px 12px; border: 0; background: #fffaf0; border-radius: 3px;
  box-shadow: 4px 6px 0 rgba(10, 8, 20, .36); transition: transform .25s var(--ease);
}
.shot button:hover, .gallery button:hover { transform: rotate(-.8deg) translateY(-3px); }
.shot img, .gallery img { display: block; width: 100%; height: auto; border-radius: 2px; background: #3a3350; }
.shot .tape, .gallery .tape { top: -16px; left: 50%; margin-left: -64px; width: 120px; height: 38px; }
.shot p, .gallery li > p { margin-top: 8px; font-size: 15px; text-align: center; color: var(--light-2); }

/* 角色：莉耶伊 */
.riei { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); gap: 54px; align-items: start; }
.riei-stage { display: flex; justify-content: center; position: sticky; top: calc(var(--head-h) + 24px); align-self: start; }
.riei-side { display: grid; gap: 38px; }
.riei-picker { padding: 62px 36px 36px; }
.riei-picker h4 { font: 22px/1.4 var(--font-title); letter-spacing: .14em; margin-bottom: 8px; }
.riei-picker .riei-tabs { margin-bottom: 14px; }
.riei-frame {
  position: relative; width: min(100%, 420px); aspect-ratio: 9 / 16; padding: 0; transform: rotate(var(--tilt, 0deg));
  background: radial-gradient(120% 90% at 50% 20%, #5a4a86, #352d56 70%); border: 10px solid #fffaf0; border-radius: 3px; box-shadow: 5px 7px 0 rgba(10, 8, 20, .38);
}
.riei-frame img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; transition: opacity .25s ease; }
.riei-frame img.swap { opacity: 0; }
.riei-tabs { display: flex; gap: 10px; }
.riei-tabs button[aria-selected="true"] { background: var(--gold); transform: rotate(-1.5deg) translateY(-2px); }
.riei-poses { display: flex; flex-wrap: wrap; gap: 10px; }
.riei-poses button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 5px 4px 4px; border: 0; color: var(--ink);
  background: #fffaf0; border-radius: 3px; font-size: 13px; line-height: 1.3; box-shadow: 2px 3px 0 rgba(10, 8, 20, .34);
  transition: transform .2s var(--ease);
}
.riei-poses button img { width: 100%; height: 68px; object-fit: cover; object-position: 50% 8%; border-radius: 2px; background: #3a3350; }
.riei-poses button[aria-pressed="true"] { transform: rotate(-2deg) translateY(-3px); background: var(--gold); }
.riei-info { padding-bottom: 112px; }
.riei-info h3 { font-size: 46px; line-height: 1.2; letter-spacing: .14em; }
.riei-info h4 { font: 22px/1.4 var(--font-title); letter-spacing: .14em; margin: 18px 0 4px; color: var(--coral); }
.riei-info .role { margin-bottom: 2px; }
.plain { display: grid; gap: 8px; }
.plain li { padding-left: 1.2em; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .82em; width: .5em; height: .5em; border-radius: 50%; background: var(--coral); }
.plain b { font-weight: 400; color: var(--coral); }
.info-sticker { position: absolute; right: 14px; bottom: -58px; width: 168px; height: 168px; object-fit: contain; filter: drop-shadow(2px 3px 0 rgba(10, 8, 20, .3)); transform: rotate(5deg); }

/* 其他角色 */

/* 画廊 */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 22px; }
.gallery li { grid-column: span 2; }
.gallery li { position: relative; transform: rotate(var(--tilt, 0deg)); }
.gallery .g-big { grid-column: span 3; }

/* 音乐 */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 920px; margin-inline: auto; }
.track { display: flex; align-items: center; gap: 22px; padding: 38px 34px 30px; }
.track .play {
  flex: none; width: 66px; height: 66px; border: 0; border-radius: 50%; background: var(--coral); display: grid; place-items: center;
  box-shadow: 3px 4px 0 rgba(10, 8, 20, .32); transition: transform .2s var(--ease);
}
.track .play:hover { transform: scale(1.06) rotate(-4deg); }
.track .ico { width: 0; height: 0; margin-left: 5px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.track.playing .ico { width: 18px; height: 22px; margin: 0; border: 0; background: linear-gradient(90deg, #fff 0 36%, transparent 36% 64%, #fff 64%); }
.track .meta { flex: 1; min-width: 0; }
.track h3 { font: 24px/1.3 var(--font-title); letter-spacing: .06em; }
.bar { position: relative; height: 10px; margin: 10px 0 2px; border-radius: 6px; background: rgba(75, 53, 80, .22); cursor: pointer; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: var(--coral); }
.time { font-size: 14px; color: var(--ink-2); }

/* 页脚 */
.foot-sticker { width: 120px; height: 120px; object-fit: contain; margin: -90px auto 6px !important; filter: drop-shadow(2px 3px 0 rgba(10, 8, 20, .3)); }
.riei-picker { position: relative; }
.picker-sticker { position: absolute; right: 14px; bottom: -26px; width: 118px; height: 118px; object-fit: contain; transform: rotate(-6deg); filter: drop-shadow(2px 3px 0 rgba(10, 8, 20, .3)); pointer-events: none; }
.foot { margin-top: 70px; padding: 44px 0 56px; text-align: center; background: rgba(31, 27, 51, .78); border-top: 2px dashed rgba(203, 191, 224, .28); }
.foot img { display: block; margin: 0 auto 10px; opacity: .95; }
.foot a { text-decoration: underline dotted; text-underline-offset: 3px; }

/* 大图查看 */
.lightbox { border: 0; padding: 0; background: transparent; color: var(--light); max-width: none; max-height: none; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(18, 14, 30, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { max-width: min(94vw, 1500px); max-height: 92vh; display: grid; gap: 8px; justify-items: center; }
.lightbox figure img { max-width: 100%; max-height: calc(92vh - 40px); width: auto; height: auto; border: 8px solid #fffaf0; border-radius: 3px; box-shadow: 6px 8px 0 rgba(0, 0, 0, .4); background: #3a3350; }
.lightbox figcaption { font-size: 16px; }
.lb-close, .lb-nav { position: absolute; border: 0; color: var(--ink); background: var(--paper); box-shadow: 2px 3px 0 rgba(0, 0, 0, .4); }
.lb-close { top: 16px; right: 16px; padding: 3px 18px; border-radius: 12px 6px 14px 7px; }
.lb-nav { top: 50%; width: 48px; height: 56px; margin-top: -28px; border-radius: 8px; font-size: 32px; line-height: 1; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }

/* ---------- 进场（只有 JS 可用时才隐藏，避免无脚本看不到内容）---------- */
.js .reveal { opacity: 0; transform: translateY(18px) rotate(var(--tilt, 0deg)); transition: opacity .6s ease, transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }


/* ---------- 人物：基本信息 ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin-top: 18px; padding-top: 16px; border-top: 2px dashed rgba(75, 53, 80, .25); }
.facts dt { font: 15px/1.4 var(--font-title); color: var(--coral); letter-spacing: .12em; }
.facts dd { line-height: 1.55; font-size: 15.5px; }

/* ---------- 设定 ---------- */
.design-grid { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: 54px; align-items: start; }
.design-side { display: grid; gap: 40px; }
.design-art { position: relative; margin: 0; padding: 12px 12px 10px; background: #fffaf0; border-radius: 3px; box-shadow: 5px 7px 0 rgba(10, 8, 20, .38); transform: rotate(var(--tilt, 0deg)); position: sticky; top: calc(var(--head-h) + 24px); }
.design-art button { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.design-art img { display: block; width: 100%; height: auto; }
.design-art figcaption { margin-top: 8px; text-align: center; font-size: 15px; color: var(--ink-2); }
.design-art .tape { top: -16px; left: 50%; margin-left: -64px; }
.design-grid .page h3 { font-size: 28px; }
.palette-card { position: relative; padding: 38px 28px 30px; color: var(--ink); transform: rotate(var(--tilt, 0deg)); background: linear-gradient(180deg, #fbe9a2, #f6dc86); border-radius: 3px 3px 22px 3px; box-shadow: 5px 7px 0 rgba(10, 8, 20, .38); }
.palette-card h3 { font: 24px/1.3 var(--font-title); letter-spacing: .12em; margin-bottom: 12px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 16px 12px; }
.swatches li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.swatches i { flex: none; width: 58px; height: 58px; border-radius: 50% 46% 52% 44%; border: 2px solid var(--ink); box-shadow: 2px 3px 0 rgba(75, 53, 80, .3); }
.swatches span { line-height: 1.3; }
.swatches small { display: block; font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }

/* ---------- 战斗 ---------- */
.phase-grid .slip { padding-top: 66px; }
.phase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.moves { display: grid; gap: 6px; margin-top: 6px; }
.moves b { display: inline-block; min-width: 5.6em; margin-right: .6em; font-weight: 400; font-family: var(--font-title); color: var(--coral); letter-spacing: .06em; }
.phase-grid .small { margin-top: 12px; }
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.pledge { position: relative; padding: 50px 22px 26px; color: var(--ink); background: var(--paper); border-radius: 4px 7px 5px 8px; box-shadow: 4px 6px 0 rgba(10, 8, 20, .36); transform: rotate(var(--tilt, 0deg)); }
.pledge h4 { font: 26px/1.3 var(--font-title); letter-spacing: .12em; margin-bottom: 4px; }
.pledge p { font-size: 15.5px; line-height: 1.7; }
.tips { max-width: 860px; margin-inline: auto; }
.tips .plain li { padding-right: 70px; }
.tips-icon { position: absolute; right: 26px; top: 28px; width: 64px; height: 64px; transform: rotate(8deg); filter: drop-shadow(1px 2px 0 rgba(10, 8, 20, .3)); }

/* ---------- 画廊：贴纸 ---------- */
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; }
.stickers li { transform: rotate(var(--tilt, 0deg)); }
.stickers button { display: block; width: 210px; padding: 0; border: 0; background: transparent; filter: drop-shadow(3px 5px 0 rgba(10, 8, 20, .3)); transition: transform .25s var(--ease); }
.stickers button:hover { transform: rotate(-3deg) translateY(-5px) scale(1.04); }
.stickers img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .design-grid, .phase-grid { grid-template-columns: minmax(0, 1fr); }
  .design-art { position: relative; top: auto; max-width: 420px; margin-inline: auto; }
  .pledges { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .stickers button { width: 150px; }
  .tips .plain li { padding-right: 0; }
  .tips-icon { position: static; display: block; margin: 8px 0 0 auto; }
}


/* ---------- 游戏介绍页（/）---------- */
#nav a.nav-cta { margin-left: 6px; background: var(--paper); color: var(--ink); transform: rotate(-1.5deg); box-shadow: 2px 3px 0 rgba(10, 8, 20, .4); }
#nav a.nav-cta:hover { background: #fff; transform: rotate(1deg); }
.foot-game { display: inline-block; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 40px; align-items: start; }
.note-card { position: relative; padding: 38px 28px 70px; color: var(--ink); transform: rotate(var(--tilt, 0deg)); background: linear-gradient(180deg, #fbe9a2, #f6dc86); border-radius: 3px 3px 22px 3px; box-shadow: 5px 7px 0 rgba(10, 8, 20, .38); }
.note-card dl { display: grid; gap: 12px; }
.note-card dt { font: 15px/1.4 var(--font-title); color: var(--coral); letter-spacing: .12em; }
.note-card dd { line-height: 1.6; }
.note-sticker { position: absolute; right: 8px; bottom: -34px; width: 104px; height: 104px; transform: rotate(8deg); filter: drop-shadow(2px 3px 0 rgba(10, 8, 20, .3)); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 26px; }
.forms { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.forms img { display: block; }
.shots.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot.wide { grid-column: span 2; }

/* 莉耶伊入口（角色段最前面）*/
.spot { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 7fr); gap: 46px; align-items: center; margin-bottom: 64px; }
.spot-photo { display: block; position: relative; width: min(100%, 380px); margin-inline: auto; padding: 10px; background: #fffaf0; border-radius: 3px; box-shadow: 5px 7px 0 rgba(10, 8, 20, .38); transform: rotate(var(--tilt, 0deg)); }
.spot-photo .inner { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #5a4a86, #352d56 70%); }
.spot-photo img.main { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; display: block; }
.spot-info h3 { font-size: 40px; line-height: 1.2; letter-spacing: .14em; }
.spot-info .paper-btn { margin-top: 18px; }
.spot-info .info-sticker { right: 22px; bottom: -48px; width: 150px; height: 150px; }
.spot-info { padding-bottom: 60px; }

.cast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; }
.cast-card { position: relative; padding: 14px 14px 18px; color: var(--ink); background: var(--paper); border-radius: 4px; box-shadow: 4px 6px 0 rgba(10, 8, 20, .36); transform: rotate(var(--tilt, 0deg)); display: flex; flex-direction: column; }
.cast-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: radial-gradient(110% 90% at 50% 15%, #5a4a86, #352d56 75%); margin-bottom: 10px; }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; display: block; }
.cast-q { position: absolute; right: 8px; top: 170px; width: 58px; height: 58px; transform: rotate(8deg); filter: drop-shadow(1px 2px 0 rgba(10, 8, 20, .3)); }
.cast-card h3 { font: 26px/1.3 var(--font-title); letter-spacing: .12em; }
.cast-card .role { font-size: 13px; }
.cast-card p:last-of-type { font-size: 14.5px; line-height: 1.7; margin-top: 4px; }
.flip { border: 0; padding: 1px 14px; margin-top: 10px; align-self: flex-start; font: 15px/1.5 var(--font-title); letter-spacing: .12em; color: var(--ink); background: #f1e3c6; border-radius: 12px 6px 14px 7px; box-shadow: 2px 3px 0 rgba(10, 8, 20, .36); }
.flip[hidden] { display: none; }
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about-grid, .spot { grid-template-columns: minmax(0, 1fr); }
  #nav a.nav-cta { margin: 4px 0 0; text-align: center; background: var(--coral); color: #fff; }
  .spot-info .info-sticker { right: 8px; }
}
@media (max-width: 620px) {
  .feature-grid, .shots.many { grid-template-columns: minmax(0, 1fr); }
  .shot.wide { grid-column: auto; }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .cast-q { top: 106px; width: 46px; height: 46px; }
  .cast-card h3 { font-size: 22px; }
  .spot-info h3 { font-size: 32px; }
}


/* 下载 */
.dl-card { max-width: 860px; margin-inline: auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.dl-main { flex: 1; min-width: 0; }
.dl-main h3 { font-size: 34px; }
.dl-list { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 16px 0 14px; }
.dl-list .paper-btn { min-width: 200px; height: 56px; font-size: 18px; letter-spacing: .06em; padding: 0 28px; }
.dl-notes { font-size: 15px; line-height: 1.7; }
.dl-notes b { font-weight: 400; font-family: var(--font-title); color: var(--coral); letter-spacing: .04em; }
.dl-sticker { flex: none; width: 230px; height: 230px; object-fit: contain; transform: rotate(4deg); filter: drop-shadow(3px 4px 0 rgba(10, 8, 20, .28)); }
@media (max-width: 860px) {
  .dl-card { flex-direction: column-reverse; align-items: flex-start; }
  .dl-sticker { width: 150px; height: 150px; align-self: flex-end; margin-bottom: -20px; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1020px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery li, .gallery .g-big { grid-column: auto; }
  .gallery .g-big { grid-column: span 2; }
  .riei { gap: 34px; }
}
@media (max-width: 860px) {
  :root { --head-h: 54px; }
  .nav-toggle { display: inline-block; }
  #nav {
    position: absolute; top: calc(var(--head-h) + 6px); right: 12px; flex-direction: column; align-items: stretch; gap: 2px; min-width: 150px; padding: 12px;
    background: var(--paper); color: var(--ink); border-radius: 8px 4px 10px 5px; box-shadow: 4px 6px 0 rgba(10, 8, 20, .4);
    transform-origin: 100% 0; transform: scale(.92) rotate(2deg); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  #nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  #nav a { padding: 7px 14px; }
  #nav a:hover { background: rgba(244, 207, 106, .35); }
  .brand span { font-size: 17px; }
  .riei { grid-template-columns: minmax(0, 1fr); }
  .riei-info { padding-bottom: 112px; }
  .riei-stage { position: static; }
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .hero { height: auto; }
  .hero-stage { position: relative; height: clamp(400px, 118vw, 700px); }
  .hero-copy { width: auto; height: auto; padding: 0 20px 44px; margin-top: -76px; align-items: center; text-align: center; }
  .hero h1 img { width: min(360px, 82vw); margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .motion-btn { bottom: auto; top: calc(var(--head-h) + 10px); }
  .hero-stage::after { height: 130px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding-top: 64px; }
  .sec-title { font-size: 36px; margin-bottom: 32px; }
  .sec-title::before, .sec-title::after { width: 34px; height: 34px; }
  .sec-title::before { margin-right: 12px; } .sec-title::after { margin-left: 8px; }
  .gallery { gap: 24px 12px; }
  .page { padding: 30px 20px 26px; }
  .page.ruled { padding-left: 48px; }
  .track { padding: 32px 22px 26px; gap: 16px; }
  .track .play { width: 56px; height: 56px; }
  .riei-poses button { width: 66px; }
  .lb-nav { width: 40px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: rotate(var(--tilt, 0deg)); transition: none; }
  * { transition-duration: .01ms !important; }
}
