/* ==========================================================================
   雲手木工 Season 1 — 官網樣式
   色票與字體見 docs/WEBSITE.md
   ========================================================================== */

:root {
	--ink: #1b1e46;
	--ink-2: #2b2f62;
	--paper: #f4f2ee;
	--paper-2: #ebe8e2;
	--paper-3: #ddd8cf;
	--wood: #a8744a;
	--wood-d: #7a5233;
	--amber: #e2a55b;
	--amber-l: #f1c88f;
	--night: #111219;
	--night-2: #1a1b26;
	--red: #d24b3c;
	--red-l: #f08a74;
	--text: #2a2830;
	--muted: #6f6a72;
	--line: rgba(27, 30, 70, .14);
	--line-light: rgba(255, 255, 255, .12);

	--serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
	--sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
	--latin: "Jost", "Noto Sans TC", system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 48px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--radius: 6px;
}

/* ---------- 基本 ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: .02em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(760px + var(--gutter) * 2); }
.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 18px;
	background: var(--ink); color: var(--paper); border-radius: 999px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.ys-icon { width: 1.15em; height: 1.15em; flex: none; }

/* 紙張顆粒（只在桌機開，手機省效能） */
@media (hover: hover) and (min-width: 1024px) {
	body::after {
		content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
		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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	}
}

/* ---------- 進場動畫 ---------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 按鈕、標籤 ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .1em; white-space: nowrap;
	cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn .ys-icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ys-icon:last-child { transform: translateX(3px); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #ecb877; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(226, 165, 91, .7); }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--line-light { border-color: rgba(255, 255, 255, .35); color: #fff; height: 46px; padding: 0 22px; font-size: 14px; }
.btn--line-light:hover { border-color: var(--amber); color: var(--amber-l); }
.btn--pill { height: 42px; padding: 0 20px; font-size: 14px; }
.btn.is-disabled { opacity: .62; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; box-shadow: none; background: var(--amber); }

.chip {
	display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
	border: 1px solid var(--line); border-radius: 999px; background: transparent;
	font-size: 14px; letter-spacing: .08em; color: var(--ink); cursor: pointer; white-space: nowrap;
	transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tag {
	display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
	background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em;
}
.tag--devlog { background: var(--wood); }
.tag--mv { background: #8e3d3a; }
.tag--event { background: var(--amber); color: var(--ink); }

.round-btn {
	width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
	display: grid; place-items: center; background: rgba(255, 255, 255, .45); cursor: pointer;
	transition: background .3s, color .3s, border-color .3s;
}
.round-btn .ys-icon { width: 20px; height: 20px; }
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.link-more {
	display: inline-flex; align-items: center; gap: 10px; color: var(--ink);
	font-size: 15px; letter-spacing: .12em; padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.link-more .ys-icon { transition: transform .3s var(--ease); }
.link-more:hover { color: var(--wood); }
.link-more:hover .ys-icon { transform: translateX(4px); }

/* ---------- 區塊標題 ---------- */

.eyebrow {
	display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
	font-family: var(--latin); font-size: 13px; font-weight: 500; letter-spacing: .34em; color: var(--wood);
}
.eyebrow span { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 600; letter-spacing: .1em; }
.eyebrow span::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow--light { color: var(--amber-l); }
.sec-title {
	font-family: var(--serif); font-weight: 700; color: var(--ink);
	font-size: clamp(34px, 4.6vw, 60px); line-height: 1.25; letter-spacing: .06em;
}
.sec-lead { margin-top: 18px; font-size: 16px; color: var(--muted); max-width: 34em; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head--light .sec-title { color: #fff; }
.sec-head--light .eyebrow { color: var(--amber-l); }
.sec-head--light .eyebrow span { color: #fff; }
.sec-head--light .sec-lead { color: rgba(255, 255, 255, .66); }

/* ---------- 頁首 ---------- */

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 60; color: var(--ink);
	background: rgba(244, 242, 238, .86); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: background .45s, color .45s, border-color .45s;
}
.site-header::before {
	content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; opacity: 0;
	background: linear-gradient(rgba(10, 10, 20, .55), rgba(10, 10, 20, 0)); transition: opacity .45s;
}
.has-hero .site-header:not(.is-solid),
.menu-open .site-header {
	background: transparent; border-color: transparent; color: #fff;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.has-hero .site-header:not(.is-solid)::before { opacity: 1; }
.menu-open .site-header::before { opacity: 0; }
.site-header__inner {
	height: var(--header-h); max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter);
	display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .14em; }
.brand__en { font-family: var(--latin); font-size: 10px; letter-spacing: .28em; opacity: .7; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; padding: 0; }
.site-nav a { position: relative; display: block; padding: 8px 0; font-size: 15px; font-weight: 500; letter-spacing: .12em; }
.site-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__cta { flex: none; }
.menu-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid currentColor; background: transparent; cursor: pointer; place-items: center; opacity: .9;
}
.menu-toggle__bars { position: relative; width: 18px; height: 8px; }
.menu-toggle__bars i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 6.5px; }
.menu-open .menu-toggle__bars i:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars i:last-child { top: 3.25px; transform: rotate(-45deg); }

.mobile-menu {
	position: fixed; inset: 0; z-index: 55; background: var(--night); color: #fff;
	display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 60px; overflow: hidden;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { display: flex; flex-direction: column; padding: 10px 0; }
.mobile-menu li { opacity: 0; transform: translateY(16px); animation: menu-in .6s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
.mobile-menu__en { font-family: var(--latin); font-size: 11px; letter-spacing: .3em; color: var(--amber-l); }
.mobile-menu__label { font-family: var(--serif); font-size: clamp(28px, 8vw, 40px); font-weight: 700; letter-spacing: .1em; line-height: 1.4; }
.mobile-menu__mark { position: absolute; right: -18%; bottom: -12%; width: 75vw; max-width: 460px; color: rgba(255, 255, 255, .05); }
.mobile-menu__mark g { stroke-width: 4; }
@keyframes menu-in { to { opacity: 1; transform: none; } }

/* ---------- 主視覺 ---------- */

.hero {
	position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
	color: #fff; background: #16141a; overflow: hidden; isolation: isolate;
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -3; }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__shade {
	position: absolute; inset: 0; z-index: -2;
	background:
		linear-gradient(180deg, rgba(14, 13, 24, .3) 0%, rgba(14, 13, 24, 0) 14%, rgba(14, 13, 24, 0) 66%, rgba(14, 13, 24, .45) 82%, rgba(14, 13, 24, .85) 100%),
		radial-gradient(48% 46% at 14% 86%, rgba(14, 13, 24, .55) 0%, rgba(14, 13, 24, 0) 72%);
}
.hero__content { position: relative; padding-top: 160px; padding-bottom: clamp(48px, 7vh, 96px); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero__badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 22px;
	border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: 13px; letter-spacing: .2em;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--amber); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.hero__title { display: flex; flex-direction: column; gap: 14px; }
.hero__title-zh {
	font-family: var(--serif); font-weight: 900; font-size: clamp(56px, 7.4vw, 120px); line-height: 1;
	letter-spacing: .08em; text-shadow: 0 4px 28px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .4);
}
.hero__title-en { font-family: var(--latin); font-weight: 500; font-size: clamp(12px, 1.15vw, 15px); letter-spacing: .52em; opacity: .85; }
.hero__lead { margin-top: 24px; max-width: 30em; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.8; opacity: .95; }
.hero__sub { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 38px; font-size: 13px; letter-spacing: .14em; opacity: .7; }
.hero__sub span { white-space: nowrap; }
.hero__sub i { font-style: normal; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__vertical {
	position: absolute; right: clamp(24px, 5vw, 80px); top: 50%; transform: translateY(-50%);
	writing-mode: vertical-rl; font-family: var(--serif); font-weight: 600; font-size: clamp(16px, 1.4vw, 21px);
	letter-spacing: .6em; color: rgba(255, 255, 255, .88); text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
	display: flex; align-items: center; gap: 22px;
}
.hero__vertical::before { content: ""; width: 1px; height: 80px; background: rgba(255, 255, 255, .6); }
.hero__scroll {
	position: absolute; right: var(--gutter); bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px;
	font-family: var(--latin); font-size: 10px; letter-spacing: .3em; color: rgba(255, 255, 255, .75);
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { position: relative; width: 1px; height: 64px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes scroll-line { to { top: 100%; } }

/* 跑馬燈 */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee span { font-family: var(--serif); font-size: clamp(16px, 1.6vw, 21px); font-weight: 600; letter-spacing: .2em; padding: 0 28px; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--amber); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 故事 ---------- */

.story { background: var(--paper); overflow: hidden; }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.story__text { position: relative; }
.story__p { margin-top: 22px; font-size: 17px; line-height: 2.05; max-width: 31em; }
.story__p:first-of-type { margin-top: 32px; }
.story__vertical {
	position: absolute; right: -8px; top: 4px; writing-mode: vertical-rl;
	font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .7em; color: var(--wood); opacity: .85;
}
.story__collage { position: relative; aspect-ratio: 1 / .95; }
.story__collage::before {
	content: ""; position: absolute; width: 78%; aspect-ratio: 1; right: -12%; top: 4%;
	border: 1px solid var(--line); border-radius: 50%;
}
.story__img { position: absolute; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); box-shadow: 0 30px 60px -24px rgba(27, 30, 70, .4); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.story__img:hover img { transform: scale(1.05); }
.story__img figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; font-size: 13px; color: #fff;
	background: linear-gradient(transparent, rgba(10, 10, 20, .7)); opacity: 0; transition: opacity .4s;
}
.story__img:hover figcaption { opacity: 1; }
.story__img--1 { left: 10%; top: 0; width: 66%; aspect-ratio: 3 / 2; }
.story__img--2 { left: 0; bottom: 2%; width: 44%; aspect-ratio: 4 / 5; z-index: 1; }
.story__img--3 { right: 0; bottom: 8%; width: 50%; aspect-ratio: 3 / 2; }

.features { margin-top: clamp(88px, 11vw, 150px); }
.features__head {
	display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 0; padding-bottom: 22px;
	font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: var(--ink); letter-spacing: .06em;
}
.features__head span { font-family: var(--latin); font-size: 12px; font-weight: 500; letter-spacing: .32em; color: var(--wood); }
.features__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature { position: relative; padding: 38px 34px 44px 0; border-bottom: 1px solid var(--line); transition: background .4s; }
.feature:not(:nth-child(3n + 1)) { padding-left: 34px; border-left: 1px solid var(--line); }
.feature__no {
	display: block; margin-bottom: 24px; font-family: var(--latin); font-size: 58px; font-weight: 300; line-height: 1;
	color: transparent; -webkit-text-stroke: 1px var(--wood); transition: color .4s;
}
.feature:hover .feature__no { color: var(--wood); }
.feature__title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: .06em; margin-bottom: 10px; }
.feature__text { font-size: 15px; line-height: 1.95; color: var(--muted); }

/* ---------- 遊戲個性（台灣味） ---------- */

.spirit {
	background:
		radial-gradient(720px 480px at 88% 6%, rgba(210, 75, 60, .17), transparent 62%),
		radial-gradient(820px 540px at 0% 92%, rgba(226, 165, 91, .1), transparent 62%),
		var(--night-2);
	color: #e9e6ef; overflow: hidden;
}
.spirit .eyebrow { color: var(--red-l); }
.spirit .eyebrow span { color: #fff; }
.spirit .sec-title { color: #fff; }
.spirit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.spirit__side { position: sticky; top: calc(var(--header-h) + 40px); }
.spirit__lead { margin-top: 22px; max-width: 28em; font-size: 16px; line-height: 2; color: rgba(255, 255, 255, .74); }
.spirit__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.spirit__img { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.spirit__img--1 { grid-column: 1 / -1; }
.spirit__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s var(--ease); }
.spirit__img:hover img { transform: scale(1.05); }
.spirit__img figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 10px; font-size: 12.5px; color: #fff;
	background: linear-gradient(transparent, rgba(10, 10, 20, .75)); opacity: 0; transition: opacity .4s;
}
.spirit__img:hover figcaption { opacity: 1; }
.spirit__list { list-style: none; padding: 0; border-top: 1px solid var(--line-light); }
.spirit-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; padding: 30px 0 32px; border-bottom: 1px solid var(--line-light); }
.spirit-item__no {
	grid-row: span 2; font-family: var(--latin); font-size: 38px; font-weight: 300; line-height: 1;
	color: transparent; -webkit-text-stroke: 1px var(--red-l); transition: color .4s;
}
.spirit-item:hover .spirit-item__no { color: var(--red-l); }
.spirit-item__title { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; color: #fff; letter-spacing: .05em; line-height: 1.5; }
.spirit-item__text { margin-top: 10px; font-size: 15px; line-height: 1.95; color: rgba(255, 255, 255, .7); }

/* ---------- 最新消息 ---------- */

.news { background: var(--paper-2); }
.news__grid { display: grid; gap: 28px; }
.news__grid--3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.news__grid--3 .news-card--featured { grid-row: span 2; }
.news__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news__grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
.news-card {
	background: var(--paper); border-radius: var(--radius); overflow: hidden;
	box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(27, 30, 70, .05);
	transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(27, 30, 70, .45), 0 0 0 1px rgba(27, 30, 70, .05); }
.news-card__link { display: flex; flex-direction: column; height: 100%; }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.news-card__meta { display: flex; align-items: center; gap: 12px; font-family: var(--latin); font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.news-card__meta--light { color: rgba(255, 255, 255, .82); }
.news-card__title { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.55; color: var(--ink); letter-spacing: .03em; transition: color .3s; }
.news-card:hover .news-card__title { color: var(--wood-d); }
.news-card__excerpt { font-size: 14.5px; line-height: 1.85; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .16em; color: var(--wood); }
.news-card__more .ys-icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.news-card:hover .news-card__more .ys-icon { transform: translateX(4px); }
.news-card--featured .news-card__media { aspect-ratio: 16 / 11; }
.news-card--featured .news-card__title { font-size: clamp(22px, 2.2vw, 28px); }
.news-card--featured .news-card__body { padding: 30px 34px 34px; }
.news__grid--3 .news-card:not(.news-card--featured) .news-card__link { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
.news__grid--3 .news-card:not(.news-card--featured) .news-card__media { aspect-ratio: auto; height: 100%; min-height: 200px; }
.news__empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- 角色 ---------- */

.chars {
	--c: var(--wood);
	background: var(--paper);
	background: radial-gradient(1100px 760px at 28% 58%, color-mix(in srgb, var(--c) 16%, var(--paper)) 0%, var(--paper) 72%);
	overflow: hidden; transition: background .8s;
}
.chars__bigname {
	position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
	font-family: var(--latin); font-weight: 600; font-size: clamp(90px, 17vw, 270px); line-height: 1; white-space: nowrap; letter-spacing: .04em;
	color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 40%, transparent);
	transition: opacity .4s;
}
.chars .wrap { position: relative; z-index: 1; }
.chars__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.chars__visual { position: relative; height: clamp(500px, 74vh, 780px); display: flex; justify-content: center; align-items: flex-end; }
.chars__ring {
	position: absolute; left: 50%; top: 44%; width: min(96%, 620px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
	background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c) 34%, #fff) 0%, color-mix(in srgb, var(--c) 14%, transparent) 58%, transparent 71%);
	transition: background .8s;
}
.chars__mark { position: absolute; left: 50%; top: 44%; width: min(84%, 540px); transform: translate(-50%, -50%); color: color-mix(in srgb, var(--c) 55%, transparent); opacity: .55; transition: color .8s; }
.chars__mark g { stroke-width: 2.2; }
.chars__portrait {
	position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
	-webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
	filter: drop-shadow(0 30px 40px rgba(27, 30, 70, .22));
	transition: opacity .45s var(--ease), transform .7s var(--ease);
}
.chars__portrait.is-out { opacity: 0; transform: translateX(-28px); }
.chars__portrait.is-exp { opacity: .4; }
.chars__info { position: relative; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.chars__info.is-out { opacity: 0; transform: translateY(10px); }
.chars__count { font-family: var(--latin); font-size: 14px; letter-spacing: .24em; color: var(--muted); }
.chars__count span { color: var(--ink); font-weight: 600; }
.chars__role { margin-top: 20px; font-size: 15px; letter-spacing: .14em; color: var(--wood-d); }
.chars__name { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; font-family: var(--serif); font-weight: 900; color: var(--ink); font-size: clamp(56px, 7vw, 104px); line-height: 1.05; letter-spacing: .1em; }
.chars__name small { font-family: var(--latin); font-size: 14px; font-weight: 500; letter-spacing: .44em; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.chars__keywords { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.chars__keywords li { padding: 5px 14px; border-radius: 999px; font-size: 13.5px; letter-spacing: .08em; color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.chars__bio { font-size: 16px; line-height: 2.05; max-width: 31em; }
.chars__quote {
	position: relative; margin-top: 24px; padding: 4px 0 4px 22px; max-width: 30em;
	border-left: 2px solid var(--c); font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.8; color: var(--ink);
}
.chars__song { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.chars__song[hidden] { display: none; }
.chars__song span { font-size: 12px; letter-spacing: .14em; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.chars__song b { font-family: var(--serif); font-weight: 600; }
.chars__song b::before { content: "〈"; }
.chars__song b::after { content: "〉"; }
.chars__exps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.chars__exps-label { font-size: 12px; letter-spacing: .24em; color: var(--muted); }
.chars__exps-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chars__exps .chip { height: 34px; padding: 0 15px; font-size: 13.5px; }
.chars__arrows { display: flex; gap: 12px; margin-top: 34px; }
.chars__roster { list-style: none; padding: 0; margin-top: 56px; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(10px, 2.2vw, 30px); }
.roster-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; letter-spacing: .12em; }
.roster-btn__face {
	display: block; width: 78px; height: 78px; border-radius: 50%; overflow: hidden;
	background: color-mix(in srgb, var(--c) 28%, var(--paper));
	outline: 2px solid transparent; outline-offset: 4px; filter: grayscale(.55) brightness(.98);
	transition: outline-color .35s, transform .45s var(--ease), filter .35s;
}
.roster-btn__face img { width: 100%; height: 100%; object-fit: cover; }
.roster-btn:hover .roster-btn__face { filter: none; transform: translateY(-3px); }
.roster-btn.is-active { color: var(--ink); font-weight: 700; }
.roster-btn.is-active .roster-btn__face { outline-color: var(--c); filter: none; transform: translateY(-5px); }

/* ---------- MV ---------- */

.mv {
	background:
		radial-gradient(800px 420px at 85% 0%, rgba(226, 165, 91, .13), transparent 62%),
		radial-gradient(760px 520px at 0% 100%, rgba(70, 80, 160, .22), transparent 62%),
		var(--night);
	color: #e9e6ef; overflow: hidden;
}
.mv__layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.mv-main {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
	background: #000; color: #fff; text-align: left; cursor: pointer;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.mv-main__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.mv-main:hover .mv-main__media img { transform: scale(1.04); }
.mv-main__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 14, .92) 0%, rgba(8, 8, 14, .2) 55%, rgba(8, 8, 14, .1) 100%); }
.mv-main__text { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 8px; }
.mv-main__kicker, .mv-item__kicker { font-family: var(--latin); font-size: 13px; letter-spacing: .22em; color: var(--amber-l); }
.mv-main__title { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: .06em; line-height: 1.3; }
.mv-main__desc { font-size: 15px; line-height: 1.8; opacity: .8; max-width: 36em; }
.play-btn {
	position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
	width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .55); color: #fff;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease);
}
.play-btn::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.play-btn .ys-icon { width: 30px; height: 30px; margin-left: 4px; }
.mv-main:hover .play-btn, .mv-item:hover .play-btn { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: translate(-50%, -50%) scale(1.06); }
.mv__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mv-item {
	display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 18px; align-items: center; width: 100%;
	padding: 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04);
	color: inherit; text-align: left; cursor: pointer; transition: background .3s, border-color .3s;
}
.mv-item:hover { background: rgba(255, 255, 255, .08); border-color: rgba(226, 165, 91, .5); }
.mv-item__media { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.mv-item__media img { width: 100%; height: 100%; object-fit: cover; }
.play-btn--sm { top: 50%; width: 46px; height: 46px; }
.play-btn--sm .ys-icon { width: 16px; height: 16px; margin-left: 2px; }
.play-btn--sm::before { display: none; }
.mv-item__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mv-item__kicker { font-size: 11px; }
.mv-item__title { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.mv-item__desc { font-size: 13px; line-height: 1.7; opacity: .68; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soon-badge { display: inline-block; width: fit-content; margin-top: 6px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: 12px; letter-spacing: .1em; }
.is-soon { cursor: default; }
.is-soon .play-btn { display: none; }

/* ---------- 遊戲畫面 ---------- */

.gallery { background: var(--paper); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery__grid {
	list-style: none; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: clamp(44px, 5.2vw, 66px); grid-auto-flow: dense; gap: 14px;
}
/* 格子：l 大圖 8×6（約 16:9）、r 大圖旁邊 4×3、m 4×4、w 6×5；照「l+r+r／m×3／w×2／m×3」排會剛好填滿 */
.gallery__item { grid-column: span 4; grid-row: span 4; }
.gallery__item--l { grid-column: span 8; grid-row: span 6; }
.gallery__item--r { grid-column: span 4; grid-row: span 3; }
.gallery__item--w { grid-column: span 6; grid-row: span 5; }
.gallery__item--s { grid-column: span 3; grid-row: span 3; }
.gallery__item.is-hidden { display: none; }
.gallery__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__btn:hover img { transform: scale(1.06); }
.gallery__cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px; text-align: left; color: #fff; font-size: 14px; line-height: 1.6;
	background: linear-gradient(transparent, rgba(10, 10, 20, .78)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease);
}
.gallery__btn:hover .gallery__cap, .gallery__btn:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__type { display: block; font-family: var(--latin); font-size: 10px; letter-spacing: .24em; color: var(--amber-l); }
.gallery.is-collapsed .gallery__item.is-more { display: none; }
.gallery__foot { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.gallery__note { align-self: flex-end; font-size: 13px; color: var(--muted); }
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; padding-top: 30px; font-size: 12.5px; } }

/* ---------- 開發進度 ---------- */

.roadmap {
	background: radial-gradient(900px 520px at 8% 18%, rgba(226, 165, 91, .11), transparent 62%), var(--ink);
	color: #e8e6f0; overflow: hidden;
}
.roadmap .sec-title { color: #fff; }
.roadmap .eyebrow { color: var(--amber-l); }
.roadmap .eyebrow span { color: #fff; }
.roadmap__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.roadmap__summary { position: sticky; top: calc(var(--header-h) + 40px); }
.ring { position: relative; width: 230px; aspect-ratio: 1; margin: 40px 0 26px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 5; }
.ring__bar { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.ring.is-in .ring__bar, html:not(.js) .ring__bar { stroke-dashoffset: calc(100 - var(--p)); }
.ring__num { position: absolute; inset: 0 0 12%; display: flex; align-items: center; justify-content: center; font-family: var(--latin); font-weight: 300; color: #fff; }
.ring__num b { font-weight: 300; font-size: 68px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__num small { font-size: 22px; margin: 18px 0 0 4px; }
.ring__label { position: absolute; left: 0; right: 0; top: 63%; text-align: center; font-size: 13px; letter-spacing: .2em; color: rgba(255, 255, 255, .62); }
.roadmap__note { font-size: 15px; line-height: 1.95; color: rgba(255, 255, 255, .74); max-width: 26em; }
.roadmap__updated { margin-top: 16px; font-family: var(--latin); font-size: 13px; letter-spacing: .18em; color: var(--amber-l); }
.roadmap__list { list-style: none; padding: 0; border-top: 1px solid var(--line-light); }
.milestone { padding: 28px 0 30px; border-bottom: 1px solid var(--line-light); }
.milestone__head { display: flex; align-items: center; gap: 16px; }
.milestone__status { flex: none; padding: 3px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
.milestone--done .milestone__status { background: rgba(226, 165, 91, .16); color: var(--amber-l); }
.milestone--doing .milestone__status { background: var(--amber); color: var(--ink); }
.milestone--todo .milestone__status { border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .72); }
.milestone__name { flex: 1; min-width: 0; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 23px); font-weight: 700; color: #fff; letter-spacing: .05em; }
.milestone__pct { font-family: var(--latin); font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
.milestone--todo .milestone__pct { color: rgba(255, 255, 255, .5); }
.milestone__text { margin: 10px 0 16px; font-size: 14.5px; line-height: 1.85; color: rgba(255, 255, 255, .66); }
.milestone__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.milestone__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--wood), var(--amber)); transition: width 1.8s var(--ease) calc(var(--d, 0s) + .2s); }
.milestone.is-in .milestone__bar i, html:not(.js) .milestone__bar i { width: var(--p); }
.milestone--todo .milestone__bar i { background: rgba(255, 255, 255, .35); }

/* ---------- 願望清單 ---------- */

.cta { position: relative; padding: clamp(110px, 15vw, 190px) 0; background: var(--night); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(17, 18, 25, .55), rgba(17, 18, 25, .92)); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__mark { width: 62px; height: 62px; color: var(--amber-l); margin-bottom: 30px; }
.cta__title { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 54px); font-weight: 700; letter-spacing: .08em; line-height: 1.4; }
.cta__text { max-width: 32em; margin: 18px auto 38px; font-size: 16px; line-height: 2; opacity: .85; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- 頁尾 ---------- */

.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 84px 0 36px; font-size: 14px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.site-footer__brand { display: flex; align-items: center; gap: 18px; }
.site-footer__mark { width: 58px; height: 58px; color: #fff; }
.site-footer__name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; letter-spacing: .16em; line-height: 1.3; }
.site-footer__en { font-family: var(--latin); font-size: 11px; letter-spacing: .3em; opacity: .6; }
.site-footer__tagline { font-family: var(--serif); font-size: 18px; color: rgba(255, 255, 255, .86); letter-spacing: .08em; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; padding-block: 48px; }
.site-footer__h { margin-bottom: 16px; font-size: 13px; font-weight: 500; letter-spacing: .22em; color: var(--amber-l); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.site-footer a .ys-icon { width: 13px; height: 13px; opacity: .6; }
.site-footer__wish p:not(.site-footer__h) { line-height: 1.9; margin-bottom: 20px; max-width: 26em; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 12.5px; opacity: .6; }
.site-footer__ai { flex-basis: 100%; font-size: 12px; line-height: 1.8; opacity: .8; }

/* ---------- 彈出視窗（MV 播放、看大圖） ---------- */

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 64px var(--gutter); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 14, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade-in .35s var(--ease); }
.modal__dialog { position: relative; width: min(1200px, 100%); animation: zoom-in .45s var(--ease); }
.modal__body { position: relative; display: grid; place-items: center; }
.modal__body video, .modal__body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; background: #000; }
.modal__body img { max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100svh - 160px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.modal__caption { margin-top: 14px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; letter-spacing: .06em; }
.modal__close, .modal__nav {
	position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .3s, border-color .3s;
}
.modal__close:hover, .modal__nav:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.modal__close .ys-icon, .modal__nav .ys-icon { width: 22px; height: 22px; }
.modal__close { right: 0; top: -58px; }
.modal__nav { top: 50%; transform: translateY(-50%); z-index: 2; }
.modal__nav--prev { left: -64px; }
.modal__nav--next { right: -64px; }
.modal:not(.is-gallery) .modal__nav { display: none; }
.is-modal-open { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } }

/* ---------- 背景音樂鍵 ---------- */

.bgm {
	position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
	display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px;
	border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; cursor: pointer;
	background: rgba(17, 18, 25, .72); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); font-size: 13px; letter-spacing: .06em;
	transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.bgm:hover { background: rgba(17, 18, 25, .88); border-color: var(--amber); transform: translateY(-2px); }
.bgm__text small { font-family: var(--latin); font-size: 10px; letter-spacing: .2em; color: var(--amber-l); margin-right: 6px; }
.bgm__bars { display: flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.bgm__bars i { flex: 1; height: 30%; background: var(--amber); border-radius: 1px; transition: height .3s; }
.bgm.is-playing .bgm__bars i { animation: bgm-bar 1s ease-in-out infinite; }
.bgm.is-playing .bgm__bars i:nth-child(2) { animation-delay: -.3s; }
.bgm.is-playing .bgm__bars i:nth-child(3) { animation-delay: -.6s; }
.bgm.is-playing .bgm__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bgm-bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.bgm__tip {
	position: absolute; left: 0; bottom: calc(100% + 10px); padding: 6px 12px; border-radius: 8px; white-space: nowrap;
	background: var(--amber); color: var(--ink); font-size: 12.5px; font-weight: 500; pointer-events: none;
	opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease);
}
.bgm__tip::after { content: ""; position: absolute; left: 20px; top: 100%; border: 6px solid transparent; border-top-color: var(--amber); }
.bgm.show-tip .bgm__tip { opacity: 1; transform: none; }
.is-modal-open .bgm { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
	.bgm { height: 40px; padding: 0 12px; }
	.bgm__text { display: none; }
}

/* ---------- 列表頁、文章頁 ---------- */

.page-hero { position: relative; padding: calc(var(--header-h) + clamp(72px, 9vw, 120px)) 0 clamp(56px, 7vw, 88px); background: var(--ink); color: #fff; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero__mark { position: absolute; right: -6%; top: 50%; width: min(64vw, 640px); transform: translateY(-46%); color: rgba(255, 255, 255, .06); }
.page-hero__mark g, .article__hero .page-hero__mark g { stroke-width: 3; }
.page-hero__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: .08em; line-height: 1.3; }
.tabs--links { margin-bottom: 8px; }

.article__hero { position: relative; display: flex; align-items: flex-end; padding: calc(var(--header-h) + clamp(80px, 10vw, 140px)) 0 clamp(48px, 6vw, 72px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.article__hero.has-image { min-height: min(72vh, 680px); }
.article__hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.article__hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 13, 24, .92) 0%, rgba(14, 13, 24, .25) 60%, rgba(14, 13, 24, .5) 100%); }
.article__head { position: relative; }
.article__title { margin-top: 18px; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.article__foot { padding-bottom: clamp(80px, 10vw, 120px); }

.prose { padding-block: clamp(48px, 7vw, 88px); font-size: 17px; line-height: 2.05; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { margin-top: 2.2em; padding-bottom: .5em; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(23px, 2.4vw, 28px); font-weight: 700; color: var(--ink); line-height: 1.5; letter-spacing: .04em; }
.prose h3 { margin-top: 1.8em; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.prose a { color: var(--wood-d); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.prose blockquote { margin-block: 2em; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.prose blockquote p + p { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 3em; }
.prose strong { color: var(--ink); }
.prose .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 30px 0; margin-bottom: 34px; border-block: 1px solid var(--line); }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.post-nav__link small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.post-nav__link small .ys-icon { width: 14px; height: 14px; }
.post-nav__link span { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.6; transition: color .3s; }
.post-nav__link:hover span { color: var(--wood-d); }
.post-nav__link--next { grid-column: 2; align-items: flex-end; text-align: right; }

.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-family: var(--latin); color: var(--ink); transition: background .3s, color .3s; }
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination .page-numbers.dots { border: 0; }

.notfound { min-height: 86vh; display: grid; place-items: center; padding: calc(var(--header-h) + 80px) 0 100px; text-align: center; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; }
.notfound__cat { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: var(--paper-3); margin-bottom: 28px; }
.notfound .eyebrow { justify-content: center; }
.notfound__title { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.notfound__text { margin: 14px 0 34px; color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 響應式 ---------- */

@media (max-width: 1180px) {
	.site-nav, .site-header__cta { display: none; }
	.menu-toggle { display: grid; }
	.modal__nav--prev { left: 8px; }
	.modal__nav--next { right: 8px; }
	.modal__nav { background: rgba(8, 8, 14, .5); }
}

@media (max-width: 960px) {
	.story__grid { grid-template-columns: 1fr; }
	.story__vertical { display: none; }
	.story__collage { width: 100%; max-width: 640px; margin-inline: auto; }
	.features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
	.feature:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
	.feature { padding-right: 28px; }
	.news__grid--3, .news__grid--2 { grid-template-columns: 1fr; }
	.news__grid--3 .news-card--featured { grid-row: auto; }
	.news__grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chars__stage { grid-template-columns: 1fr; }
	.chars__visual { height: clamp(420px, 62vh, 600px); }
	.chars__bigname { top: 34%; }
	.mv__layout { grid-template-columns: 1fr; }
	.spirit__grid { grid-template-columns: 1fr; }
	.spirit__side { position: static; }
	.roadmap__grid { grid-template-columns: 1fr; }
	.roadmap__summary { position: static; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.site-footer__wish { grid-column: 1 / -1; }
	.gallery__item--l { grid-column: span 12; grid-row: span 7; }
	.gallery__item, .gallery__item--r, .gallery__item--w, .gallery__item--s { grid-column: span 6; grid-row: span 4; }
}

@media (max-width: 640px) {
	:root { --header-h: 64px; }
	body { font-size: 15px; }
	.brand__mark { width: 32px; height: 32px; }
	.brand__name { font-size: 18px; }
	.hero__vertical, .hero__scroll { display: none; }
	.hero__media img { object-position: 50% 24%; }
	.hero__title-en { letter-spacing: .32em; }
	.hero__actions .btn { flex: 1 1 auto; }
	.btn { height: 50px; padding: 0 22px; }
	.story__p { font-size: 16px; }
	.story__collage { aspect-ratio: 1 / 1.05; }
	.features__list { grid-template-columns: 1fr; }
	.feature, .feature:nth-child(even) { padding: 30px 0 34px; border-left: 0; }
	.feature__no { font-size: 46px; margin-bottom: 16px; }
	.news__grid--list { grid-template-columns: 1fr; }
	.news__grid--3 .news-card:not(.news-card--featured) .news-card__link { grid-template-columns: 38% minmax(0, 1fr); }
	.news__grid--3 .news-card:not(.news-card--featured) .news-card__media { min-height: 0; }
	.news__grid--3 .news-card:not(.news-card--featured) .news-card__body { padding: 16px 16px 18px; gap: 6px; }
	.news__grid--3 .news-card:not(.news-card--featured) .news-card__title { font-size: 16px; }
	.news__grid--3 .news-card:not(.news-card--featured) .news-card__excerpt,
	.news__grid--3 .news-card:not(.news-card--featured) .news-card__more { display: none; }
	.news-card--featured .news-card__body { padding: 22px 20px 24px; }
	.chars__visual { height: clamp(380px, 56vh, 500px); }
	.chars__name { font-size: 56px; }
	.chars__arrows { position: absolute; top: 0; right: 0; margin: 0; }
	.round-btn { width: 44px; height: 44px; }
	.chars__roster { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 6px; scrollbar-width: none; }
	.chars__roster::-webkit-scrollbar { display: none; }
	.roster-btn__face { width: 64px; height: 64px; }
	.mv-item { grid-template-columns: 40% minmax(0, 1fr); gap: 14px; }
	.mv-item__desc { display: none; }
	.play-btn { width: 68px; height: 68px; }
	.play-btn .ys-icon { width: 24px; height: 24px; }
	.mv-main { aspect-ratio: 4 / 3.4; }
	.mv-main__desc { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.gallery__grid { gap: 10px; grid-auto-rows: 40px; }
	.gallery__item, .gallery__item--r, .gallery__item--w, .gallery__item--s { grid-column: span 6; grid-row: span 3; }
	.gallery__item--l { grid-column: span 12; grid-row: span 5; }
	.spirit-item { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; padding: 24px 0 26px; }
	.spirit-item__no { font-size: 28px; }
	.spirit-item__text { font-size: 14.5px; }
	.ring { width: 190px; }
	.ring__num b { font-size: 56px; }
	.milestone__head { flex-wrap: wrap; gap: 10px; }
	.milestone__name { flex-basis: 100%; order: 3; }
	.milestone__pct { margin-left: auto; }
	.site-footer__cols { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
	.modal { padding: 64px 0; }
	.modal__close { right: 12px; }
	.modal__body video, .modal__body iframe { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.marquee__track { animation: none; }
}
