/*
 * 《台股除魔小隊》universe page — cinematic "franchise hub" look: near-black stage,
 * purple storm light, crimson and gold accents, big title cards, parallax key art,
 * angular buttons. Everything is scoped to .tx-page; the body class only stretches
 * the content to full width on this page.
 */

@font-face {
	font-family: "TX Display";
	src: url("../../fonts/taiex/dela-gothic-one-taiex.woff2") format("woff2");
	font-display: swap;
	font-weight: 400;
}

body.flameblade-taiex-page { overflow-x: clip; }
body.flameblade-taiex-page .wp-block-post-content,
body.flameblade-taiex-page .entry-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }
/* WordPress' constrained layout caps direct children at the content width and re-centres them; the universe page owns its width. */
body.flameblade-taiex-page .wp-site-blocks > main { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
body.flameblade-taiex-page .tx-page { width: 100%; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

.tx-page {
	--tx-bg: #05040a;
	--tx-bg2: #0c0a16;
	--tx-panel: rgba(255, 255, 255, .05);
	--tx-line: rgba(255, 255, 255, .14);
	--tx-ink: #ece9f5;
	--tx-mute: #a7a1bd;
	--tx-gold: #f0c77a;
	--tx-red: #d4232f;
	--tx-red2: #ff4b55;
	--tx-violet: #8a5cff;
	--tx-blue: #4aa3ff;
	--tx-disp: "TX Display", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--tx-bg);
	color: var(--tx-ink);
	font-size: 1.06rem;
	line-height: 1.8;
	overflow-x: clip;
}
.tx-page *, .tx-page *::before, .tx-page *::after { box-sizing: border-box; }
.tx-page img { max-width: 100%; display: block; }
/* zero-specificity default so every component rule can set its own height */
:where(.tx-page) img { height: auto; }
.tx-page a { color: var(--tx-gold); }
.tx-page h1, .tx-page h2, .tx-page h3, .tx-page h4 { margin: 0; color: #fff; line-height: 1.25; }
/* The display font ships only in its regular weight: never let the browser fake a bold (it smears CJK strokes). */
.tx-page h1, .tx-page h2, .tx-page h3, .tx-page h4 { font-weight: 400; font-synthesis: none; }
.tx-hero__zh, .tx-hero__en, .tx-bar__brand, .tx-heading__no, .tx-chain__no, .tx-map__code, .tx-battle li span, .tx-laws li span, .tx-skills span, .tx-origin__tabs span, .tx-emotion__en, .tx-card__en, .tx-card__wname, .tx-rift strong, .tx-boss blockquote p { font-weight: 400; font-synthesis: none; }
.tx-page small { font-weight: 400; }
.tx-page button { font: inherit; color: inherit; cursor: pointer; }
.tx-page :focus-visible { outline: 3px solid var(--tx-gold); outline-offset: 3px; }

/* reveal (only when the script runs) */
.tx-js .tx-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.tx-js .tx-reveal.is-in { opacity: 1; transform: none; }
.tx-js .tx-in { opacity: 0; transform: translateY(24px); animation: tx-rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.tx-js .tx-in:nth-child(1) { animation-delay: .15s; } .tx-js .tx-in:nth-child(2) { animation-delay: .35s; } .tx-js .tx-in:nth-child(3) { animation-delay: .6s; }
.tx-js .tx-in:nth-child(4) { animation-delay: .72s; } .tx-js .tx-in:nth-child(5) { animation-delay: .86s; } .tx-js .tx-in:nth-child(6) { animation-delay: 1s; }
@keyframes tx-rise { to { opacity: 1; transform: none; } }

/* chapter bar */
.tx-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.4rem; padding: .55rem clamp(14px, 3vw, 40px); background: rgba(5, 4, 10, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--tx-line); overflow-x: auto; scrollbar-width: none; }
.tx-bar::-webkit-scrollbar { display: none; }
.tx-bar__brand { flex: none; font-family: var(--tx-disp); color: #fff !important; text-decoration: none; letter-spacing: .06em; font-size: 1.05rem; }
.tx-bar ul { display: flex; gap: .2rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.tx-bar li a { display: block; padding: .35rem .8rem; border-radius: 3px; color: var(--tx-mute); text-decoration: none; font-size: .92rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; transition: color .2s, background .2s; }
.tx-bar li a:hover, .tx-bar li a.is-active { color: #fff; background: rgba(212, 35, 47, .28); }

/* buttons: angular */
.tx-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: .45rem 1.6rem; color: #fff !important; text-decoration: none; font-weight: 800; letter-spacing: .06em; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform .2s, background .2s, border-color .2s; }
.tx-btn small { font-size: .72rem; letter-spacing: .12em; opacity: .8; text-transform: uppercase; }
.tx-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.tx-btn--primary { background: linear-gradient(180deg, var(--tx-red2), var(--tx-red)); border-color: var(--tx-red2); box-shadow: 0 0 28px rgba(212, 35, 47, .55); }
.tx-btn--primary:hover { background: linear-gradient(180deg, #ff6670, #e0303b); }
.tx-btn--ghost { border-color: rgba(240, 199, 122, .6); color: var(--tx-gold) !important; }

/* hero */
.tx-hero { position: relative; min-height: min(120svh, 1100px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.tx-hero__art { position: absolute; inset: -4% -2% -2%; z-index: -3; will-change: transform; }
.tx-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 38%; animation: tx-drift 26s ease-in-out infinite alternate; }
@keyframes tx-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }
.tx-hero__shade { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 50% 30%, transparent 30%, rgba(5, 4, 10, .55) 78%), linear-gradient(180deg, rgba(5, 4, 10, .2) 0%, rgba(5, 4, 10, .05) 35%, rgba(5, 4, 10, .78) 78%, var(--tx-bg) 100%); }
.tx-hero__sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(2px 2px at 12% 70%, #ffb25a, transparent), radial-gradient(2px 2px at 28% 40%, #ff7a4a, transparent), radial-gradient(1.5px 1.5px at 44% 80%, #ffd28a, transparent), radial-gradient(2px 2px at 63% 55%, #ff9150, transparent), radial-gradient(1.5px 1.5px at 78% 30%, #ffc27a, transparent), radial-gradient(2px 2px at 90% 72%, #ff6a4a, transparent); background-size: 100% 100%; animation: tx-spark 5s linear infinite; opacity: .8; }
@keyframes tx-spark { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-90px); opacity: 0; } }
.tx-hero__copy { padding: clamp(100px, 24vh, 260px) clamp(18px, 6vw, 96px) clamp(40px, 7vh, 72px); max-width: 1500px; width: 100%; margin: 0 auto; }
.tx-hero__kicker { margin: 0 0 .6rem; color: var(--tx-gold); letter-spacing: .38em; font-size: .8rem; font-weight: 800; }
.tx-hero__title { display: flex; flex-direction: column; gap: .2rem; }
.tx-hero__zh { font-family: var(--tx-disp); font-size: clamp(2.6rem, 7.2vw, 6.4rem); line-height: 1.02; letter-spacing: .02em; background: linear-gradient(180deg, #fff 30%, #d9d2ff 62%, #8f7ad8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 26px rgba(138, 92, 255, .55)) drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }
.tx-hero__en { font-family: var(--tx-disp); font-size: clamp(.9rem, 2vw, 1.6rem); letter-spacing: .32em; color: var(--tx-red2); text-shadow: 0 0 22px rgba(212, 35, 47, .8); }
.tx-hero__tag { margin: 1.1rem 0 0; font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 700; text-shadow: 0 2px 14px #000; }
.tx-hero__tag--en { margin-top: .1rem; font-size: clamp(.9rem, 1.5vw, 1.1rem); color: var(--tx-mute); font-weight: 500; }
.tx-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.tx-hero__cast { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; list-style: none; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--tx-line); max-width: 860px; font-weight: 800; letter-spacing: .06em; }
.tx-hero__cast li { display: flex; flex-direction: column; font-size: 1.1rem; }
.tx-hero__cast span { color: var(--tx-gold); font-size: .74rem; letter-spacing: .24em; font-weight: 700; }
.tx-hero__cast small { color: var(--tx-mute); font-size: .78rem; letter-spacing: .1em; }
.tx-hero__scroll { position: absolute; right: clamp(14px, 3vw, 40px); bottom: 24px; writing-mode: vertical-rl; color: var(--tx-mute) !important; letter-spacing: .4em; font-size: .7rem; text-decoration: none; padding-bottom: 54px; background: linear-gradient(var(--tx-mute), var(--tx-mute)) no-repeat 50% 100% / 1px 40px; }

/* sections + headings */
.tx-section { position: relative; padding: clamp(64px, 10vw, 130px) clamp(16px, 5vw, 80px); max-width: 1480px; margin: 0 auto; }
.tx-heading { position: relative; margin: 0 0 clamp(30px, 5vw, 58px); max-width: 920px; }
.tx-heading__no { position: absolute; top: -.62em; left: -.04em; margin: 0; font-family: var(--tx-disp); font-size: clamp(3.4rem, 12vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16); letter-spacing: .02em; z-index: 0; pointer-events: none; white-space: nowrap; }
.tx-heading h2 { position: relative; z-index: 1; font-family: var(--tx-disp); font-size: clamp(2rem, 6vw, 4.2rem); letter-spacing: .03em; }
.tx-heading h2::after { content: ""; display: block; width: 90px; height: 5px; margin-top: .55rem; background: linear-gradient(90deg, var(--tx-red2), transparent); transform: skewX(-30deg); }
.tx-heading__en { position: relative; margin: .6rem 0 0; z-index: 1; color: var(--tx-gold); letter-spacing: .26em; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.tx-heading__lead { position: relative; z-index: 1; margin: 1rem 0 0; color: #d4cfe6; font-size: 1.12rem; }
.tx-sub { font-family: var(--tx-disp); font-size: clamp(1.4rem, 3.2vw, 2.1rem); margin: clamp(44px, 7vw, 80px) 0 1rem; padding-left: .8rem; border-left: 5px solid var(--tx-red); }
.tx-sub small { display: block; margin-top: .2rem; font-family: inherit; font-size: .7rem; letter-spacing: .24em; color: var(--tx-gold); text-transform: uppercase; }
.tx-note { color: #cfc9e2; max-width: 820px; }
.tx-fine { color: var(--tx-mute); font-size: .86rem; margin-top: 1rem; }

/* player */
.tx-player { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; overflow: hidden; aspect-ratio: 16 / 9; }
.tx-player img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.tx-player:hover img { transform: scale(1.04); filter: brightness(1.12); }
.tx-player__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.tx-player__play svg { width: clamp(54px, 9vw, 92px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7)); transition: transform .25s; }
.tx-player:hover .tx-player__play svg { transform: scale(1.12); }
.tx-player iframe, .tx-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tx-player video { background: #000; object-fit: contain; }
.tx-trailer__screen { position: relative; box-shadow: 0 0 0 1px var(--tx-line), 0 30px 90px rgba(138, 92, 255, .28); }
.tx-trailer__screen::before, .tx-trailer__screen::after { content: ""; position: absolute; width: 38px; height: 38px; border: 3px solid var(--tx-gold); z-index: 2; pointer-events: none; }
.tx-trailer__screen::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.tx-trailer__screen::after { right: -9px; bottom: -9px; border-left: 0; border-top: 0; }
.tx-shorts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.tx-short { display: flex; flex-direction: column; gap: .6rem; }
.tx-player--short { aspect-ratio: 9 / 16; border: 1px solid var(--tx-line); }
.tx-player--short .tx-player__play svg { width: clamp(46px, 5vw, 70px); }
.tx-short p { margin: 0; }
.tx-short strong { display: block; color: #fff; font-size: 1.02rem; line-height: 1.3; }
.tx-short small { display: block; margin-top: .15rem; color: var(--tx-gold); font-size: .74rem; line-height: 1.4; letter-spacing: .08em; }

/* chain */
.tx-chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: tx; position: relative; }
.tx-chain::before { content: ""; position: absolute; left: 4%; right: 4%; top: 25%; height: 2px; background: linear-gradient(90deg, var(--tx-blue), var(--tx-gold), var(--tx-red2), var(--tx-violet)); opacity: .55; z-index: 0; }
.tx-chain__step { position: relative; z-index: 1; padding: 0 0 1rem; background: var(--tx-panel); border: 1px solid var(--tx-line); overflow: hidden; }
.tx-chain__step:nth-child(5) { border-color: rgba(212, 35, 47, .7); box-shadow: 0 0 36px rgba(212, 35, 47, .3); }
.tx-chain__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: .9rem; }
.tx-chain__media img { width: 100%; height: 100%; object-fit: cover; }
.tx-chain__no { position: absolute; left: 10px; bottom: 4px; font-family: var(--tx-disp); font-size: 2.6rem; line-height: 1; color: #fff; text-shadow: 0 2px 14px #000; }
.tx-chain__step h3 { padding: 0 1rem; font-family: var(--tx-disp); font-size: 1.7rem; }
.tx-chain__step h3 small { display: block; font-family: inherit; font-size: .66rem; letter-spacing: .22em; color: var(--tx-gold); text-transform: uppercase; }
.tx-chain__tag { margin: .35rem 1rem; color: var(--tx-red2); font-weight: 800; font-size: .86rem; }
.tx-chain__step p:last-child { margin: 0; padding: 0 1rem; color: #cbc5de; font-size: .95rem; line-height: 1.65; }
.tx-emotions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tx-emotion { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: var(--tx-panel); border: 1px solid var(--tx-line); overflow: hidden; }
.tx-emotion img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.tx-emotion > div { padding: 1.2rem 1.4rem; }
.tx-emotion__en { margin: 0; font-family: var(--tx-disp); letter-spacing: .12em; font-size: .95rem; }
.tx-emotion--fear .tx-emotion__en { color: #a58bff; } .tx-emotion--greed .tx-emotion__en { color: #f3b947; } .tx-emotion--panic .tx-emotion__en { color: #58b2ff; } .tx-emotion--fomo .tx-emotion__en { color: #ff5a64; }
.tx-emotion h3 { font-family: var(--tx-disp); font-size: 1.8rem; margin: .1rem 0 .4rem; }
.tx-emotion p { margin: 0; color: #cbc5de; }
.tx-rifts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.tx-rift { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #000; border: 1px solid var(--tx-line); }
.tx-rift img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tx-rift:hover img { transform: scale(1.08); }
.tx-rift::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(5, 4, 10, .92)); }
.tx-rift div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem; }
.tx-rift::after, .tx-rift div { pointer-events: none; } /* 11-03：漸層與地點文字蓋在圖上，手機卡片小時點不到放大連結，只觸發 hover 拉伸 */
.tx-rift strong { display: block; font-family: var(--tx-disp); font-size: 1.35rem; color: #fff; }
.tx-rift span { color: #d6d0ea; font-size: .9rem; line-height: 1.5; display: block; }

/* day / night compare */
.tx-compare { position: relative; aspect-ratio: 3 / 2; max-height: 78vh; width: 100%; overflow: hidden; background: #000; border: 1px solid var(--tx-line); box-shadow: 0 30px 90px rgba(212, 35, 47, .18); user-select: none; }
.tx-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tx-compare__day { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tx-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 18px #fff; pointer-events: none; }
.tx-compare__handle::after { content: "⇄"; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 1.4rem; font-weight: 900; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
.tx-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tx-compare__label { position: absolute; top: 14px; padding: .35rem .9rem; font-weight: 800; letter-spacing: .1em; font-size: .85rem; z-index: 2; pointer-events: none; }
.tx-compare__label--day { left: 14px; background: #f0b94a; color: #2a1a00; }
.tx-compare__label--night { right: 14px; background: var(--tx-red); color: #fff; }
.tx-map { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.tx-map__stage { position: relative; background: #02030a; border: 1px solid var(--tx-line); overflow: hidden; }
.tx-map__img { width: 100%; aspect-ratio: 1536 / 770; object-fit: cover; object-position: 0 51.2%; opacity: .92; }
.tx-pin { position: absolute; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--tx-violet); box-shadow: 0 0 0 0 rgba(138, 92, 255, .7); animation: tx-pulse 2.2s ease-out infinite; }
.tx-pin span { display: none; position: absolute; top: 26px; left: 50%; transform: translateX(-50%); padding: .1rem .5rem; background: rgba(5, 4, 10, .88); border: 1px solid var(--tx-line); font-size: .7rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; color: #fff; }
.tx-pin.is-home span, .tx-pin.is-active span, .tx-pin:hover span, .tx-pin:focus-visible span { display: block; }
.tx-pin.is-home { background: var(--tx-red2); width: 30px; height: 30px; box-shadow: 0 0 0 0 rgba(255, 75, 85, .8); }
.tx-pin.is-active { background: var(--tx-gold); border-color: #fff; z-index: 3; }
.tx-pin.is-active.is-home { background: var(--tx-red2); }
@keyframes tx-pulse { 70% { box-shadow: 0 0 0 16px rgba(138, 92, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(138, 92, 255, 0); } }
.tx-map__panel { padding: 1.3rem 1.4rem; background: linear-gradient(135deg, rgba(212, 35, 47, .22), rgba(138, 92, 255, .16)); border: 1px solid var(--tx-line); border-left: 5px solid var(--tx-red); min-height: 190px; }
.tx-map__code { margin: 0; font-family: var(--tx-disp); font-size: 2.3rem; color: var(--tx-gold); letter-spacing: .08em; }
.tx-map__panel h4 { font-family: var(--tx-disp); font-size: 1.5rem; margin: .1rem 0 .3rem; }
.tx-map__panel p { margin: .2rem 0; color: #d4cfe6; }
.tx-squad-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tx-squad-item { width: 100%; text-align: left; padding: .6rem 1rem; background: var(--tx-panel); border: 1px solid var(--tx-line); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; transition: background .2s, border-color .2s; }
.tx-squad-item small { color: var(--tx-mute); }
.tx-squad-item:hover, .tx-squad-item.is-active { background: rgba(212, 35, 47, .2); border-color: var(--tx-red2); }

/* cast cards */
.tx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 30px); }
.tx-card { --tone: var(--tx-red); position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 20px 60px color-mix(in srgb, var(--tone) 22%, transparent); overflow: hidden; }
.tx-card--blue { --tone: #3d8fe0; } .tx-card--red { --tone: #d4232f; } .tx-card--gold { --tone: #d9a441; }
.tx-card__stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--tone) 40%, #05040a), #05040a); }
.tx-card__layer { position: absolute; inset: 0; transition: opacity .6s ease, transform .8s ease; }
.tx-card__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.tx-card__layer--anime { opacity: 0; transform: scale(1.06); }
.tx-card__layer--anime img { object-position: 50% 30%; }
.tx-card.is-anime .tx-card__layer--anime { opacity: 1; transform: none; }
.tx-card.is-anime .tx-card__layer--live { opacity: 0; transform: scale(.96); }
.tx-card__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(5, 4, 10, .9)); pointer-events: none; }
.tx-card__switch { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tx-card__switch button { padding: .45rem .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; background: rgba(5, 4, 10, .78); border: 1px solid var(--tx-line); }
.tx-card__switch button.is-on { background: var(--tone); border-color: #fff; color: #fff; }
.tx-card__body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; }
.tx-card__en { margin: 0; color: var(--tone); font-family: var(--tx-disp); letter-spacing: .14em; font-size: .78rem; filter: brightness(1.5); }
.tx-card h3 { font-family: var(--tx-disp); font-size: 2rem; }
.tx-card h3 small { font-family: "Noto Sans TC", sans-serif; font-size: .9rem; color: var(--tx-gold); margin-left: .3rem; }
.tx-card__role { margin: 0; color: var(--tx-gold); font-weight: 800; }
.tx-card__actor { margin: 0; font-weight: 800; }
.tx-card__actor small { display: block; color: var(--tx-mute); font-weight: 500; font-size: .78rem; }
.tx-card__quote { margin: .5rem 0; padding: .6rem 1rem; border-left: 4px solid var(--tone); background: rgba(255, 255, 255, .05); font-weight: 700; }
.tx-card p { margin: 0; }
.tx-card__weapon { margin-top: .6rem; padding: 1rem; background: rgba(0, 0, 0, .35); border: 1px solid var(--tx-line); }
.tx-card__wlabel { color: var(--tx-mute); font-size: .7rem; letter-spacing: .24em; font-weight: 800; }
.tx-card__wname { font-family: var(--tx-disp); font-size: 1.5rem; color: #fff; }
.tx-card__weapon p:not(.tx-card__wlabel):not(.tx-card__wname) { color: #cbc5de; font-size: .93rem; line-height: 1.65; }
.tx-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; margin: .8rem 0 0; padding: 0; }
.tx-skills li { padding: .35rem .6rem; background: color-mix(in srgb, var(--tone) 28%, #0c0a16); border: 1px solid color-mix(in srgb, var(--tone) 60%, transparent); font-weight: 700; font-size: .92rem; }
.tx-skills span { color: var(--tx-gold); font-family: var(--tx-disp); margin-right: .5rem; font-size: .8rem; }
.tx-card__colors { display: flex; gap: 8px; margin-top: .5rem; }
.tx-card__colors i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); }
.tx-battle ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.tx-battle li { position: relative; padding: 1.2rem 1.2rem 1.2rem 4.2rem; background: var(--tx-panel); border: 1px solid var(--tx-line); }
.tx-battle li span { position: absolute; left: 1rem; top: .7rem; font-family: var(--tx-disp); font-size: 2.4rem; color: var(--tx-red2); }
.tx-battle strong { display: block; font-size: 1.2rem; }
.tx-battle em { font-style: normal; color: #cbc5de; font-size: .95rem; }
.tx-ultimate { display: grid; gap: clamp(20px, 3vw, 34px); margin-top: clamp(34px, 5vw, 60px); padding: clamp(20px, 3.4vw, 46px); background: radial-gradient(90% 120% at 0% 0%, rgba(212, 35, 47, .35), transparent 60%), #0e0710; border: 1px solid rgba(212, 35, 47, .6); box-shadow: 0 0 60px rgba(212, 35, 47, .25); }
.tx-ultimate__copy { max-width: 900px; }
.tx-ultimate__label { margin: 0; color: var(--tx-red2); font-weight: 800; letter-spacing: .28em; font-size: .8rem; }
.tx-ultimate h3 { font-family: var(--tx-disp); font-size: clamp(1.9rem, 4.6vw, 3.4rem); margin: .3rem 0; }
.tx-ultimate__en { margin: 0 0 .8rem; color: var(--tx-gold); letter-spacing: .2em; font-size: .78rem; text-transform: uppercase; font-weight: 700; }
.tx-ultimate__copy p:last-child { margin: 0; font-size: 1.12rem; color: #e3dff0; }
/* one big stage, three beats: 1 collect the blade, 2 the golden line, 3 walk away without looking back */
.tx-beats__stage { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid rgba(255, 255, 255, .18); overflow: hidden; }
.tx-beats__item { position: relative; margin: 0; aspect-ratio: 16 / 9; }
.tx-beats__item .tx-zoom { position: absolute; inset: 0; }
.tx-beats__item img { width: 100%; height: 100%; object-fit: cover; }
.tx-beats__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 70%, rgba(5, 4, 10, .85)); pointer-events: none; }
.tx-beats__item figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: .7rem; font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: .08em; text-shadow: 0 2px 14px #000; pointer-events: none; }
.tx-beats__item figcaption span { display: grid; place-items: center; width: 1.9em; height: 1.9em; background: var(--tx-red); font-family: var(--tx-disp); font-size: .9em; }
.tx-js .tx-beats__item { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.tx-js .tx-beats__item.is-on { opacity: 1; pointer-events: auto; }
.tx-beats__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.tx-beats__tabs button { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: var(--tx-panel); border: 1px solid var(--tx-line); font-weight: 800; letter-spacing: .06em; transition: background .2s, border-color .2s; }
.tx-beats__tabs button span { display: grid; place-items: center; width: 1.9em; height: 1.9em; background: rgba(255, 255, 255, .14); font-family: var(--tx-disp); }
.tx-beats__tabs button.is-on { background: rgba(212, 35, 47, .28); border-color: var(--tx-red2); }
.tx-beats__tabs button.is-on span { background: var(--tx-red); }

/* zoomable images */
.tx-zoom { position: relative; display: block; overflow: hidden; cursor: zoom-in; text-decoration: none; }
.tx-zoom img { transition: transform .5s ease; }
.tx-zoom:hover img { transform: scale(1.04); }
.tx-zoom__hint { position: absolute; right: 8px; bottom: 8px; padding: .2rem .7rem; background: rgba(5, 4, 10, .82); border: 1px solid var(--tx-line); border-radius: 999px; font-size: .78rem; font-weight: 800; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.tx-zoom:hover .tx-zoom__hint, .tx-zoom:focus-visible .tx-zoom__hint { opacity: 1; transform: none; }
@media (hover: none) { .tx-zoom__hint { opacity: .95; transform: none; } }
.tx-emotion .tx-zoom, .tx-rift .tx-zoom { height: 100%; } .tx-rift .tx-zoom { position: absolute; inset: 0; }
.tx-rift .tx-zoom img { position: static; }
.tx-boss__zoom { position: absolute; inset: 0; z-index: 0; } .tx-boss__zoom img { position: static; }
.tx-fiend__tag { margin: 0 0 .3rem; color: var(--tx-red2); font-weight: 800; letter-spacing: .16em; font-size: .78rem; }
.tx-fiend .tx-zoom img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 20%; }
.tx-lightbox[data-single] .tx-lightbox__prev, .tx-lightbox[data-single] .tx-lightbox__next { display: none; }

/* fiends */
.tx-fiend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tx-fiend { display: flex; flex-direction: column; background: var(--tx-panel); border: 1px solid var(--tx-line); overflow: hidden; }
.tx-fiend img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 20%; }
.tx-fiend > div { padding: 1rem 1.2rem 1.3rem; }
.tx-fiend h3 { font-family: var(--tx-disp); font-size: 1.5rem; }
.tx-fiend__en { margin: .1rem 0 .5rem; color: var(--tx-gold); letter-spacing: .14em; font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.tx-fiend p:last-child { margin: 0; color: #cbc5de; font-size: .95rem; }
.tx-fiend--boss { grid-row: span 1; border-color: rgba(212, 35, 47, .8); box-shadow: 0 0 46px rgba(212, 35, 47, .35); }
.tx-boss { position: relative; margin-top: clamp(40px, 6vw, 80px); min-height: 520px; display: grid; align-items: end; overflow: hidden; border: 1px solid var(--tx-line); }
.tx-boss img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tx-boss::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(5, 4, 10, .92)); z-index: 1; }
.tx-boss blockquote { position: relative; z-index: 2; margin: 0; padding: clamp(20px, 4vw, 48px); max-width: 900px; }
.tx-boss blockquote p { margin: 0; font-family: var(--tx-disp); font-size: clamp(1.4rem, 3.6vw, 2.5rem); line-height: 1.4; text-shadow: 0 4px 24px #000; }
.tx-boss cite { display: block; margin-top: .6rem; color: var(--tx-red2); font-style: normal; font-weight: 800; letter-spacing: .12em; }
.tx-boss span { display: inline-block; margin-top: .8rem; padding: .3rem .9rem; border: 1px solid var(--tx-gold); color: var(--tx-gold); font-weight: 700; font-size: .9rem; }
.tx-laws ol { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tx-laws li { display: flex; gap: 1rem; align-items: center; padding: .9rem 1.2rem; background: var(--tx-panel); border: 1px solid var(--tx-line); font-size: 1.12rem; font-weight: 700; }
.tx-laws li span { font-family: var(--tx-disp); font-size: 2rem; color: var(--tx-gold); }

/* origin reader */
.tx-origin__reader { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.tx-origin__tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tx-origin__tabs button { width: 100%; text-align: left; padding: .7rem 1rem; background: var(--tx-panel); border: 1px solid var(--tx-line); font-weight: 700; display: flex; gap: .7rem; align-items: center; transition: background .2s, border-color .2s; }
.tx-origin__tabs span { font-family: var(--tx-disp); color: var(--tx-red2); font-size: 1.3rem; }
.tx-origin__tabs button.is-active, .tx-origin__tabs button:hover { background: rgba(212, 35, 47, .22); border-color: var(--tx-red2); }
.tx-origin__stage { position: relative; max-width: 760px; width: 100%; margin: 0 auto; }
.tx-origin__page { display: none; margin: 0; }
.tx-origin__page.is-on { display: block; animation: tx-rise .5s ease both; }
.tx-origin__page img { width: 100%; height: auto; border: 1px solid var(--tx-line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.tx-origin__page figcaption { margin-top: .8rem; color: #cfc9e2; }
.tx-origin__page figcaption strong { display: block; margin-bottom: .2rem; font-family: inherit; font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; color: #fff; }
.tx-origin__nav button { position: absolute; top: 45%; width: 48px; height: 64px; background: rgba(5, 4, 10, .75); border: 1px solid var(--tx-line); font-size: 2rem; line-height: 1; }
.tx-origin__nav button:first-child { left: -24px; } .tx-origin__nav button:last-child { right: -24px; }
.tx-origin__nav button:hover { background: var(--tx-red); }

/* the founder's note: the origin story is a real one */
.tx-maker { max-width: 860px; margin: clamp(40px, 6vw, 80px) auto 0; padding: clamp(24px, 4vw, 44px); background: linear-gradient(160deg, rgba(232, 195, 106, .1), rgba(212, 35, 47, .08)); border: 1px solid var(--tx-line); border-left: 4px solid var(--tx-gold); }
.tx-maker__eyebrow { margin: 0 0 .5rem; color: var(--tx-gold); font-size: .78rem; font-weight: 800; letter-spacing: .3em; }
.tx-maker h3 { margin: 0 0 1.2rem; font-family: inherit; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .04em; color: #fff; }
.tx-maker p { margin: 0 0 1rem; color: #e2dcef; font-size: 1.05rem; line-height: 1.95; }
.tx-maker .tx-maker__lead { color: #fff; font-size: 1.2rem; font-weight: 700; }
.tx-maker .tx-maker__en { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--tx-line); color: #a99fbb; font-size: .9rem; line-height: 1.7; }
.tx-maker__frame {
	position: relative;
	max-width: 620px;
	margin: 2.2rem auto 1.8rem;
	padding: 34px clamp(14px, 3vw, 26px) 18px;
	border: 2px solid var(--tx-gold);
	border-radius: 22px;
	background: linear-gradient(160deg, rgba(240, 199, 122, .12), rgba(212, 35, 47, .09));
	box-shadow: 0 0 0 6px rgba(240, 199, 122, .1), 0 24px 54px rgba(0, 0, 0, .5), inset 0 0 40px rgba(240, 199, 122, .06);
}

.tx-maker .tx-maker__frame-title {
	position: absolute;
	top: -15px;
	left: 50%;
	margin: 0;
	padding: 5px 18px;
	border: 1px solid var(--tx-gold);
	border-radius: 999px;
	background: #1a1020;
	color: var(--tx-gold);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.4;
	white-space: nowrap;
	transform: translateX(-50%);
}

.tx-maker__frame-title span { margin-left: .5em; opacity: .75; font-weight: 700; letter-spacing: .08em; }
.tx-maker .tx-maker__videos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin: 0; gap: 18px; justify-items: center; }
.tx-maker .tx-maker__videos .tx-short { width: 100%; }
.tx-maker .tx-maker__videos p { margin: 0; font-size: .95rem; line-height: 1.5; text-align: center; }
.tx-maker .tx-maker__sign { margin: 1.2rem 0 0; color: #cfc9e2; font-size: .92rem; }
.tx-maker__sign strong { display: block; color: #fff; font-size: 1.15rem; letter-spacing: .12em; }

/* works */
.tx-work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tx-work { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--tx-panel); border: 1px solid var(--tx-line); align-items: stretch; }
.tx-work .tx-player { aspect-ratio: auto; min-height: 220px; height: 100%; }
.tx-work > div { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.tx-work__kind { margin: 0; color: var(--tx-gold); font-size: .72rem; letter-spacing: .2em; font-weight: 800; }
.tx-work h3 { font-family: var(--tx-disp); font-size: 1.5rem; }
.tx-work h3 small { display: block; font-family: "Noto Sans TC", sans-serif; color: var(--tx-mute); font-size: .78rem; letter-spacing: .06em; margin-top: .15rem; }
.tx-work p { margin: 0; color: #cbc5de; font-size: .95rem; }
.tx-work a { margin-top: auto; font-weight: 800; }
.tx-more { margin-top: 28px; text-align: center; }

/* art book */
.tx-art__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tx-art__filters button { padding: .45rem 1.1rem; background: var(--tx-panel); border: 1px solid var(--tx-line); font-weight: 800; letter-spacing: .06em; }
.tx-art__filters button.is-on { background: var(--tx-red); border-color: var(--tx-red2); }
.tx-art__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tx-art__grid li[hidden] { display: none; }
.tx-art__item { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--tx-line); background: #000; overflow: hidden; aspect-ratio: 1; }
.tx-art__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.tx-art__item:hover img { transform: scale(1.07); filter: brightness(1.1); }
.tx-art__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .6rem; font-size: .78rem; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.tx-lightbox { width: min(96vw, 1180px); max-height: 96vh; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.tx-lightbox::backdrop { background: rgba(2, 1, 6, .92); backdrop-filter: blur(6px); }
.tx-lightbox figure { margin: 0; text-align: center; }
.tx-lightbox img { width: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; box-shadow: 0 30px 90px #000; }
.tx-lightbox figcaption { margin-top: .6rem; font-weight: 800; letter-spacing: .06em; }
.tx-lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--tx-line); background: rgba(5, 4, 10, .85); font-size: 1.8rem; line-height: 1; }
.tx-lightbox__close { top: -10px; right: -10px; z-index: 2; } .tx-lightbox__prev { top: 45%; left: -10px; } .tx-lightbox__next { top: 45%; right: -10px; }
.tx-lightbox button:hover { background: var(--tx-red); }

/* universe */
.tx-universe { max-width: none; min-height: clamp(640px, 52vw, 1000px); display: grid; align-items: end; overflow: hidden; padding: clamp(64px, 10vw, 130px) clamp(16px, 5vw, 80px) clamp(48px, 6vw, 90px); }
.tx-universe__bg { position: absolute; inset: 0; z-index: 0; }
.tx-universe__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: .8; }
/* darken only the lower-left text zone; the heroes' heads stay in the clear at the top */
.tx-universe__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 80% at 0% 100%, var(--tx-bg) 4%, rgba(5, 4, 10, .78) 38%, rgba(5, 4, 10, .2) 70%, transparent 86%), linear-gradient(0deg, var(--tx-bg) 0%, transparent 32%), linear-gradient(var(--tx-bg), transparent 4%); }
.tx-universe__copy { position: relative; z-index: 1; max-width: 700px; margin-left: max(0px, calc((100% - 1320px) / 2)); }
.tx-universe__copy .tx-heading__no { position: static; font-size: .9rem; -webkit-text-stroke: 0; color: var(--tx-gold); letter-spacing: .3em; }
.tx-universe h2 { font-family: var(--tx-disp); font-size: clamp(2rem, 5.4vw, 4rem); margin: .3rem 0 1rem; }
.tx-foot { padding: 28px clamp(16px, 5vw, 80px) 44px; border-top: 1px solid var(--tx-line); color: var(--tx-mute); font-size: .85rem; text-align: center; }
.tx-foot p { max-width: 960px; margin: .3rem auto; }

/* responsive */
@media (max-width: 1100px) {
	.tx-chain { grid-template-columns: repeat(3, 1fr); } .tx-chain::before { display: none; }
	.tx-cards { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
	.tx-card { display: grid; grid-template-columns: 1fr 1.1fr; } .tx-card__stage { aspect-ratio: auto; min-height: 100%; }
	.tx-fiend-grid { grid-template-columns: repeat(2, 1fr); }
	.tx-art__grid { grid-template-columns: repeat(4, 1fr); }
	.tx-map { grid-template-columns: 1fr; }
	.tx-shorts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
	.tx-universe { min-height: 660px; }
	.tx-universe__bg img { object-position: 52% 0; }
	.tx-page { font-size: 1rem; }
	.tx-bar ul { margin-left: 0; }
	.tx-hero { min-height: 92svh; }
	.tx-hero__copy { padding-top: 120px; }
	.tx-hero__scroll { display: none; }
	.tx-hero__img { object-position: 60% 30%; }
	.tx-chain { grid-template-columns: 1fr 1fr; }
	.tx-emotions { grid-template-columns: 1fr; } .tx-emotion { grid-template-columns: 1fr 1fr; }
	.tx-rifts__grid { grid-template-columns: repeat(2, 1fr); }
	.tx-card { display: flex; }
	/* 11-03 手機：1100px 斷點的 min-height:100% 會留下來，把照片撐成整張卡高（約 1100px），名字、台詞、武器全被裁掉 */
	.tx-card__stage { aspect-ratio: 3 / 4; min-height: 0; flex: none; }
	.tx-battle ol { grid-template-columns: 1fr; }
	.tx-beats__tabs { grid-template-columns: 1fr; }
	/* 11-03 手機：圖改為上方滿寬、文字在下，避免左右並排時文字欄只剩約 140px、每行三四個字 */
	.tx-fiend-grid { grid-template-columns: 1fr; }
	.tx-fiend .tx-zoom img, .tx-fiend img { width: 100%; aspect-ratio: 3 / 4; object-position: 50% 20%; } /* 海報是 2:3 直式，橫裁會切掉妖魔本體 */
	.tx-rift .tx-zoom__hint { top: 8px; bottom: auto; } /* 「點我放大」移到右上，不再壓住地點說明文字 */
	.tx-pin::before { content: ""; position: absolute; inset: -11px; } /* 地圖標記觸控範圍放大到約 44px */
	.tx-origin__reader { grid-template-columns: 1fr; }
	.tx-origin__tabs { display: flex; overflow-x: auto; gap: 6px; } .tx-origin__tabs li { flex: none; }
	.tx-origin__tabs button { white-space: nowrap; }
	.tx-origin__nav button:first-child { left: -6px; } .tx-origin__nav button:last-child { right: -6px; }
	.tx-work-grid { grid-template-columns: 1fr; } .tx-work { grid-template-columns: 1fr; } .tx-work .tx-player { aspect-ratio: 16 / 9; min-height: 0; }
	.tx-art__grid { grid-template-columns: repeat(2, 1fr); }
	.tx-shorts { grid-template-columns: repeat(2, 1fr); }
	.tx-maker .tx-maker__videos { grid-template-columns: minmax(0, 260px); justify-content: center; } /* 11-03：兩欄時影片只剩約 115px 寬，控制列點不到 */
	.tx-compare { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
	.tx-page *, .tx-page *::before, .tx-page *::after { animation: none !important; transition: none !important; }
	.tx-js .tx-reveal, .tx-js .tx-in { opacity: 1; transform: none; }
}
