/*
 * 《秘書可芸，請指教》series page — "kawaii stationery" look matching the
 * drama's packaging: pink polka dots, lace edges, washi tape, sticky notes,
 * polaroids and star badges. Large type and high contrast for mature viewers.
 */

@font-face {
	font-family: "Keyun WenKai";
	src: url("../../fonts/keyun/lxgw-wenkai-tc-keyun.woff2") format("woff2");
	font-display: swap;
	font-weight: 400;
}

.keyun-page {
	--k-pink: #ff5f9b;
	--k-pink-deep: #c2185b;
	--k-rose: #ffd3e4;
	--k-blush: #fff0f6;
	--k-cream: #fffaf2;
	--k-ink: #4a2338;
	--k-lemon: #fff1a8;
	--k-mint: #c9f2e3;
	--k-sky: #d5ebff;
	--k-hand: "Keyun WenKai", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	color: var(--k-ink);
	font-size: 1.12rem;
	line-height: 1.75;
	background-color: var(--k-blush);
	background-image: radial-gradient(circle, rgba(255, 255, 255, .95) 3px, transparent 3.6px);
	background-size: 28px 28px;
	border-radius: 28px;
	padding: clamp(14px, 3vw, 36px);
	overflow: hidden;
	box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 13px var(--k-rose);
}

.keyun-page *, .keyun-page *::before, .keyun-page *::after { box-sizing: border-box; }
.keyun-page img { max-width: 100%; height: auto; display: block; }
.keyun-page a { color: var(--k-pink-deep); }
.keyun-page h2, .keyun-page h3 { font-family: var(--k-hand); color: var(--k-pink-deep); letter-spacing: .02em; line-height: 1.35; margin: 0 0 .4em; }
.keyun-page h3 small, .keyun-page h2 small { font-family: inherit; font-size: .62em; color: #8a5a70; font-weight: 400; margin-left: .3em; }
.keyun-en { color: #7a5266; font-size: .95rem; }
.keyun-label { display: inline-block; margin: 0 0 .5em; padding: .1em .7em; border-radius: 999px; background: #fff; color: var(--k-pink-deep); font-weight: 700; font-size: .9rem; box-shadow: 0 0 0 2px var(--k-rose); }

/* Buttons */
.keyun-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: .5em 1.4em; border-radius: 999px; background: #fff; color: var(--k-pink-deep) !important; font-weight: 800; font-size: 1.12rem; text-decoration: none; border: 3px solid var(--k-pink); box-shadow: 0 5px 0 var(--k-rose); transition: transform .15s ease; line-height: 1.3; }
.keyun-btn small { font-weight: 600; font-size: .78rem; opacity: .85; }
.keyun-btn--primary { background: linear-gradient(180deg, #ff7aad, var(--k-pink)); color: #fff !important; border-color: #fff; box-shadow: 0 5px 0 var(--k-pink-deep), 0 0 0 3px var(--k-pink); }
.keyun-btn--subscribe { background: var(--k-lemon); }
.keyun-btn:hover, .keyun-btn:focus-visible { transform: translateY(-2px) rotate(-1deg); }
.keyun-btn:focus-visible, .keyun-player:focus-visible, .keyun-place:focus-visible, .keyun-map__load:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }

/* Washi tape + section headings */
.keyun-washi { position: absolute; width: 120px; height: 30px; opacity: .9; z-index: 2; }
.keyun-washi--a { top: -12px; left: 28px; transform: rotate(-8deg); background: repeating-linear-gradient(45deg, #ffe58f 0 8px, #fff6c9 8px 16px); }
.keyun-washi--b { top: -12px; right: 28px; transform: rotate(7deg); background: repeating-linear-gradient(45deg, #b9d8ff 0 8px, #e6f1ff 8px 16px); }
.keyun-heading { text-align: center; margin: 0 0 1.2em; }
.keyun-heading h2 { display: inline-block; font-size: clamp(1.9rem, 4.6vw, 2.7rem); padding: .1em .9em .15em; background: #fff; border-radius: 22px; box-shadow: 0 0 0 4px var(--k-pink), 0 8px 0 4px var(--k-rose); text-shadow: 2px 2px 0 var(--k-rose); transform: rotate(-1.2deg); }
.keyun-heading__en { margin: .9em 0 0; font-weight: 700; letter-spacing: .14em; color: #a0637f; font-size: .85rem; text-transform: uppercase; }
.keyun-tape { display: inline-block; margin: 0 0 -.4em; padding: .15em 1.1em; background: repeating-linear-gradient(-45deg, #ffc1d8 0 9px, #ffe3ee 9px 18px); color: var(--k-pink-deep); font-weight: 800; font-size: .8rem; letter-spacing: .18em; transform: rotate(2deg); position: relative; z-index: 1; }
.keyun-section { margin: clamp(48px, 7vw, 84px) 0 0; position: relative; }
.keyun-note-text { text-align: center; max-width: 760px; margin: -.4em auto 1.4em; }

/* Hero: premiere-poster stage - wine-to-rose curtain, gold trim, the famous EP.01 scene under a spotlight
   (no text over any face), logo panel beside it, then a film strip of famous scenes. */
.keyun-hero { --k-gold: #f4cd7e; --k-gold-deep: #c9932f; --k-wine: #5c0d2e; position: relative; container-type: inline-size; }
.keyun-hero__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(22px, 3.4vw, 40px); border-radius: 30px; overflow: hidden; isolation: isolate;
	background: radial-gradient(60% 80% at 30% 45%, rgba(255, 214, 232, .45), transparent 70%), radial-gradient(circle at 85% 15%, rgba(244, 205, 126, .35), transparent 35%), linear-gradient(135deg, var(--k-wine) 0%, #9e1450 45%, #e2457f 100%);
	box-shadow: 0 0 0 3px var(--k-gold), 0 0 0 8px #fff, 0 0 0 11px var(--k-pink), 0 26px 50px rgba(92, 13, 46, .45); }
.keyun-hero__stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 1.2px, transparent 2px), radial-gradient(circle, rgba(244, 205, 126, .8) 1px, transparent 1.8px); background-size: 46px 46px, 70px 70px; background-position: 0 0, 23px 31px; }
.keyun-hero__scene { position: relative; margin: 0 0 54px; padding: 10px; border-radius: 18px; background: linear-gradient(135deg, #fff6dc, var(--k-gold) 40%, var(--k-gold-deep) 60%, #fff3cf); box-shadow: 0 0 40px rgba(255, 214, 232, .55), 0 18px 34px rgba(0, 0, 0, .35); transform: rotate(-1.2deg); }
.keyun-hero__scene img { width: 100%; border-radius: 10px; }
.keyun-page .keyun-hero__scene figcaption { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%) rotate(1.2deg); display: flex; align-items: center; gap: .5em; white-space: nowrap; padding: .35em 1.1em; border-radius: 999px; background: #fff; color: var(--k-pink-deep); box-shadow: 0 0 0 3px var(--k-gold), 0 8px 18px rgba(92, 13, 46, .35); font-size: clamp(.95rem, 1.8vw, 1.2rem); }
.keyun-hero__scene figcaption strong { font-family: var(--k-hand); font-weight: 400; }
.keyun-hero__scene-label { font-size: .72em; font-weight: 900; letter-spacing: .08em; color: var(--k-wine); background: var(--k-gold); padding: .1em .6em; border-radius: 999px; }
.keyun-hero__scene-ep { font-weight: 900; color: var(--k-pink); }
.keyun-hero__title { position: relative; text-align: center; color: #fff; }
.keyun-hero__logo { margin: .3em 0 .4em; }
.keyun-hero__logo img { width: 100%; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 18px rgba(255, 255, 255, .85)) drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.keyun-hero__onair { display: inline-block; margin: 0; font-family: var(--k-hand); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.2; color: var(--k-wine); background: linear-gradient(180deg, #fff8e6, var(--k-gold)); padding: .2em .9em .25em; border-radius: 16px; box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, .3); transform: rotate(-2deg); }
.keyun-hero__onair span { color: #fff; background: var(--k-pink-deep); border-radius: 10px; padding: 0 .3em; }
.keyun-hero__onair small { display: block; font-family: inherit; font-size: .42em; letter-spacing: .2em; color: var(--k-wine); font-weight: 700; }
.keyun-hero__tag { display: inline-block; line-height: 1.5; font-family: var(--k-hand); font-size: 1.25rem; color: #fff; background: var(--k-pink); padding: .1em .9em; border-radius: 12px; transform: rotate(-1.5deg); margin: 0 0 .8em; box-shadow: 0 0 0 3px #fff; }
.keyun-hero__facts { list-style: none; margin: 0 0 .4em; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.keyun-hero__facts li { color: #fff; font-weight: 800; font-size: .92rem; padding: .2em .8em; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(244, 205, 126, .9); }
.keyun-hero__facts li:first-child { background: var(--k-gold); color: var(--k-wine); }
.keyun-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.1em; }
.keyun-hero__sparkle { position: absolute; z-index: 1; color: var(--k-gold); text-shadow: 0 0 10px #fff, 0 0 20px var(--k-gold); font-size: clamp(1.1rem, 2.4vw, 2rem); animation: keyun-twinkle 2.8s ease-in-out infinite; pointer-events: none; }
.keyun-hero__sparkle--a { left: 2%; top: 4%; }
.keyun-hero__sparkle--b { right: 3%; top: 6%; animation-delay: .7s; color: #fff; }
.keyun-hero__sparkle--c { right: 36%; bottom: 5%; animation-delay: 1.4s; font-size: clamp(.9rem, 1.8vw, 1.4rem); }
.keyun-hero__sparkle--d { left: 46%; top: 3%; animation-delay: 2.1s; color: #fff; font-size: clamp(.9rem, 1.6vw, 1.3rem); }
@keyframes keyun-twinkle { 0%, 100% { opacity: .25; transform: scale(.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }

/* A narrow page column stacks the scene above the logo panel so the scene stays big */
@container (max-width: 980px) {
	.keyun-hero__stage { grid-template-columns: 1fr; }
	.keyun-hero__scene { max-width: 720px; width: 100%; margin: 0 auto 56px; }
	.keyun-hero__logo img { width: min(460px, 92%); margin: 0 auto; }
}

/* Film strip of famous scenes: scrolls sideways inside the strip, never the page */
.keyun-hero__reel { margin: 34px 0 0; padding: 14px 0 18px; border-radius: 18px; background: #24121b; box-shadow: 0 0 0 3px var(--k-gold), 0 14px 28px rgba(92, 13, 46, .35); position: relative; }
.keyun-hero__reel::before, .keyun-hero__reel::after { content: ""; position: absolute; left: 12px; right: 12px; height: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 12px, transparent 12px 26px); border-radius: 2px; }
.keyun-hero__reel::before { top: 8px; }
.keyun-hero__reel::after { bottom: 8px; }
.keyun-hero__reel-title { margin: 14px 0 6px; text-align: center; font-family: var(--k-hand); font-size: 1.35rem; color: var(--k-gold); }
.keyun-hero__reel-title small { font-family: inherit; font-size: .6em; letter-spacing: .2em; color: #f7dfe9; }
.keyun-hero__strip { list-style: none; margin: 0; padding: 8px 18px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--k-gold) transparent; }
.keyun-hero__strip li { scroll-snap-align: start; }
.keyun-hero__scene .keyun-zoom { margin-bottom: 0; border-radius: 10px; }
.keyun-hero__scene .keyun-zoom__hint { font-size: .9rem; }
.keyun-hero__frame { border-radius: 8px; overflow: hidden; background: #3a1d2b; box-shadow: 0 0 0 2px rgba(244, 205, 126, .55); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.keyun-hero__frame:hover, .keyun-hero__frame:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--k-gold), 0 0 18px rgba(244, 205, 126, .6); }
.keyun-hero__frame .keyun-zoom { margin: 0; border-radius: 0; }
.keyun-hero__frame .keyun-zoom img { aspect-ratio: 16 / 9; object-fit: cover; }
.keyun-hero__frame .keyun-zoom__hint { right: 6px; bottom: 6px; font-size: .8rem; padding: .15em .45em; }
.keyun-page .keyun-hero__frame-line { flex: 1; margin: 0; padding: 8px 10px 4px; font-family: var(--k-hand); font-size: 1.02rem; line-height: 1.4; color: #fff; }
.keyun-hero__frame-ep { display: inline-block; margin: 0 .45em 0 0; font-family: system-ui, sans-serif; font-size: .74rem; font-weight: 900; color: var(--k-wine); background: var(--k-gold); padding: .05em .55em; border-radius: 999px; vertical-align: .1em; }
.keyun-page a.keyun-hero__frame-watch { display: block; padding: 6px 10px 10px; font-size: .88rem; font-weight: 800; color: var(--k-gold); text-decoration: none; }
.keyun-page a.keyun-hero__frame-watch:hover, .keyun-page a.keyun-hero__frame-watch:focus-visible { text-decoration: underline; }

.keyun-hero__note { position: relative; margin: 30px auto 0; max-width: 860px; text-align: center; background: #fff; border-radius: 26px; padding: clamp(24px, 3.6vw, 36px); box-shadow: 0 0 0 4px var(--k-pink), 0 12px 0 4px var(--k-rose); background-image: repeating-linear-gradient(transparent 0 38px, #ffe1ec 38px 40px); }
.keyun-hero__lead { font-size: 1.18rem; margin: 0 0 .7em; }
.keyun-hero__lead:last-child { margin-bottom: 0; }

/* Polaroids (behind-the-scenes costumes, director's note) */
.keyun-polaroid { background: #fff; padding: 10px 10px 34px; box-shadow: 0 10px 24px rgba(120, 40, 80, .22); border-radius: 4px; margin: 0; position: relative; }
.keyun-page .keyun-polaroid figcaption { margin: 0; position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--k-hand); color: var(--k-pink-deep); font-size: 1.05rem; }
.keyun-polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 196, 220, .85); }

/* Video players (click to load) */
.keyun-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; }
.keyun-player img { width: 100%; height: 100%; object-fit: cover; }
.keyun-player__play { position: absolute; left: 12px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 95, 155, .92); color: #fff; font-size: 1.5rem; display: grid; place-items: center; box-shadow: 0 0 0 5px #fff; transition: transform .15s ease; }
.keyun-player:hover .keyun-player__play { transform: scale(1.08); }
.keyun-player__frame { width: 100%; height: 100%; border: 0; }

/* Episode grid */
/* Seasons fold so a long-running series keeps a short page; the newest season opens by default. */
.keyun-season { margin: 0 0 22px; }
.keyun-season > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 56px; padding: 10px 22px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px var(--k-rose), 0 6px 0 3px #ffe4ee; font-weight: 800; color: var(--k-ink); }
.keyun-season > summary::-webkit-details-marker { display: none; }
.keyun-season > summary:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }
.keyun-season[open] > summary { margin-bottom: 26px; }
.keyun-season__title { font-size: 1.35rem; color: var(--k-pink-deep); }
.keyun-season__title small { font-size: .8rem; letter-spacing: .08em; color: #7a5266; }
.keyun-season__count { font-size: .95rem; color: #7a5266; }
.keyun-season__toggle { margin-left: auto; font-size: .95rem; color: var(--k-pink-deep); }
.keyun-season__close, .keyun-season[open] .keyun-season__open { display: none; }
.keyun-season[open] .keyun-season__close { display: inline; }
.keyun-episode-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.keyun-episode { background: #fff; border-radius: 22px; padding: 12px 12px 16px; box-shadow: 0 0 0 3px var(--k-rose), 0 8px 0 3px #ffe4ee; position: relative; transition: transform .15s ease; }
.keyun-episode:nth-child(odd) { transform: rotate(-.8deg); }
.keyun-episode:nth-child(even) { transform: rotate(.8deg); }
.keyun-episode:hover { transform: rotate(0) translateY(-3px); }
.keyun-episode__body { padding: 12px 6px 0 6px; position: relative; }
.keyun-episode h3 { font-size: 1.3rem; padding-right: 64px; }
.keyun-episode__hook { font-family: var(--k-hand); font-size: 1.15rem; margin: 0 0 .4em; color: var(--k-ink); }
.keyun-episode__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0; font-size: .95rem; color: #7a5266; }
.keyun-pin { background: var(--k-lemon); padding: .05em .6em; border-radius: 8px; color: var(--k-ink); }
.keyun-star { position: absolute; top: 6px; right: 0; width: 58px; height: 58px; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; color: var(--k-pink-deep); background: #ffe36e; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 2px #fff); }
.keyun-more { text-align: center; margin-top: 30px; }
.keyun-binge { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px 28px; align-items: center; margin: 0 0 34px; }
.keyun-paper > .keyun-binge__body { margin: 0; }
.keyun-binge .keyun-player { margin-bottom: 0; }
.keyun-binge h3 { font-size: 1.7rem; margin: .2em 0 .4em; }
.keyun-binge h3 small { font-size: .95rem; color: #7a5266; white-space: nowrap; }

/* Paper cards, sticky notes */
.keyun-card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.keyun-paper { position: relative; background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 0 0 3px var(--k-rose), 0 8px 0 3px #ffe4ee; }
.keyun-paper--lined { background-image: repeating-linear-gradient(transparent 0 36px, #ffe1ec 36px 38px); padding: clamp(26px, 4vw, 46px); max-width: 860px; margin: 0 auto; text-align: center; }
.keyun-paper > .keyun-player, .keyun-actor > img { margin-bottom: 14px; border-radius: 16px; }
.keyun-song h3, .keyun-actor h3 { font-size: 1.55rem; }
.keyun-cast-grid, .keyun-story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 26px; }
.keyun-sticky { position: relative; padding: 26px 20px 22px; border-radius: 4px 4px 22px 4px; box-shadow: 0 10px 18px rgba(120, 40, 80, .16); }
.keyun-sticky:nth-child(3n+1) { transform: rotate(-1.6deg); }
.keyun-sticky:nth-child(3n+2) { transform: rotate(1.2deg); }
.keyun-sticky:nth-child(3n) { transform: rotate(-.6deg); }
.keyun-sticky--pink { background: #ffe0ec; }
.keyun-sticky--blue { background: var(--k-sky); }
.keyun-sticky--mint { background: var(--k-mint); }
.keyun-sticky--lemon { background: var(--k-lemon); }
.keyun-sticky::after { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 255, 255, .7); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.keyun-sticky h3 { font-size: 1.35rem; }
.keyun-sticky p { margin: 0 0 .5em; }
.keyun-sticky__photo { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; border: 5px solid #fff; box-shadow: 0 4px 10px rgba(120, 40, 80, .2); }
.keyun-cast .keyun-sticky { text-align: center; }
.keyun-quote { font-family: var(--k-hand); font-size: 1.2rem; color: var(--k-pink-deep); }
.keyun-pushpin { display: none; }
.keyun-costumes { display: flex; justify-content: center; gap: 30px; margin: 0 0 40px; flex-wrap: wrap; }
.keyun-costumes .keyun-polaroid { width: min(240px, 42vw); }
.keyun-costumes .keyun-zoom { display: block; position: relative; }
.keyun-costumes .keyun-zoom__hint { font-size: .85rem; }
.keyun-costumes .keyun-polaroid:first-child { transform: rotate(-4deg); }
.keyun-costumes .keyun-polaroid:last-child { transform: rotate(4deg); }

.keyun-sticky__more { font-weight: 800; }

/* Director's note: a handwritten-style letter on the lined paper; body text stays in the plain font for easy reading */
/* Rules are drawn on each text block rather than the whole sheet: every block is a whole number of
   38px lines (line-height 38px, gaps as 38px padding), so each text line sits on its own rule no matter
   how the title wraps or how tall the photo is. */
.keyun-paper--lined.keyun-letter { background-image: none; text-align: left; max-width: 760px; font-size: 1.2rem; line-height: 38px; }
.keyun-letter > h3, .keyun-letter > p { margin: 0; line-height: 38px; background-image: repeating-linear-gradient(transparent 0 36px, #ffe1ec 36px 38px); }
.keyun-letter > p { padding-bottom: 38px; }
.keyun-page .keyun-letter__title { text-align: center; font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 38px; }
.keyun-letter__quote { text-align: center; font-family: var(--k-hand); font-size: clamp(1.35rem, 3vw, 1.65rem); color: var(--k-pink); }
.keyun-letter__photo { max-width: 560px; margin: 18px auto 46px; transform: rotate(-1.5deg); }
.keyun-letter__photo .keyun-zoom { margin-bottom: 0; border-radius: 2px; }
.keyun-letter__photo .keyun-zoom__hint { font-size: .85rem; }
.keyun-letter > .keyun-letter__sign { text-align: right; font-family: var(--k-hand); font-size: 1.25rem; color: var(--k-pink-deep); padding-bottom: 38px; }
.keyun-letter__sign small { display: block; font-size: .9em; line-height: 38px; color: #7a5266; }
.keyun-letter > .keyun-letter__more { text-align: center; background-image: none; padding-bottom: 30px; }
.keyun-letter__en { font-size: 1.05rem; line-height: 1.7; }
.keyun-letter__en[open] { background: #fff; border-radius: 16px; padding: 4px 18px 8px; box-shadow: 0 0 0 2px var(--k-rose); }
.keyun-letter__en summary { cursor: pointer; font-weight: 800; color: var(--k-pink-deep); min-height: 48px; width: fit-content; margin: 0 auto; padding: .2em 1.4em; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px var(--k-pink); display: flex; align-items: center; }
.keyun-letter__en[open] summary { box-shadow: none; }
.keyun-letter__en summary:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }
.keyun-letter__en h4 { font-family: inherit; font-size: 1.2rem; color: var(--k-pink-deep); margin: .6em 0; }
.keyun-letter__en p { margin: 0 0 1em; line-height: 1.7; }

/* Map */
.keyun-map__layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.keyun-map__frame { aspect-ratio: 4 / 3; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 4px var(--k-pink), 0 8px 0 4px var(--k-rose); display: grid; place-items: center; }
.keyun-map__iframe { width: 100%; height: 100%; border: 0; }
.keyun-map__load { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--k-hand); font-size: 1.4rem; color: var(--k-pink-deep); background: var(--k-lemon); border: 3px dashed var(--k-pink); border-radius: 18px; padding: 22px 30px; cursor: pointer; }
.keyun-map__load small { font-family: inherit; font-size: .8rem; }
.keyun-place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.keyun-place { width: 100%; text-align: left; border: 0; cursor: pointer; padding: 10px 12px; border-radius: 4px 4px 14px 4px; background: var(--k-lemon); color: var(--k-ink); box-shadow: 0 4px 8px rgba(120, 40, 80, .14); font-size: 1rem; line-height: 1.35; transition: transform .12s ease; }
.keyun-place:nth-child(odd), .keyun-place-list li:nth-child(odd) .keyun-place { transform: rotate(-1deg); background: #ffe0ec; }
.keyun-place-list li:nth-child(3n) .keyun-place { background: var(--k-mint); }
.keyun-place strong { display: block; font-family: var(--k-hand); font-size: 1.12rem; }
.keyun-place small { color: #7a5266; }
.keyun-place.is-active { outline: 3px solid var(--k-pink); transform: scale(1.03); }

/* Origin + disclosure */
.keyun-origin h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.keyun-origin .flameblade-support-actions { margin: 26px 0 10px; }
.keyun-disclosure { font-size: .92rem; color: #7a5266; margin-top: 1.2em; }

/* Virtual actors: big profile cards, tap to enlarge */
.keyun-actor-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.keyun-actor { font-size: 1.15rem; }
.keyun-actor h3 { font-size: 1.7rem; }
.keyun-zoom { position: relative; display: block; margin-bottom: 14px; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.keyun-zoom img { width: 100%; height: auto; }
.keyun-zoom__hint { position: absolute; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .95); color: var(--k-pink-deep); font-weight: 800; font-size: 1rem; padding: .25em .8em; border-radius: 999px; box-shadow: 0 0 0 2px var(--k-pink); }
.keyun-zoom:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }
.keyun-actor-event { max-width: 980px; margin: 30px auto 0; }
.keyun-actor--event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.keyun-actor--event p { margin: 0 0 .7em; }
.keyun-actor--event > .keyun-player { margin-bottom: 0; }
.keyun-page .keyun-skit { max-width: 760px; margin: 30px auto 0; position: relative; padding: 24px 44px 48px; }
.keyun-skit h3 small { font-weight: 600; font-size: .7em; }

/* Festival entries: premiere night. Velvet stage, twinkling marquee bulbs, two spotlights,
   golden admission tickets and a gold timeline. Colours stay above WCAG AA on the dark velvet. */
.keyun-festival__stage { --gold: #f3cf72; --gold-deep: #b98a2c; --velvet: #3b0a20; position: relative; overflow: hidden; max-width: 940px; margin: 0 auto; padding: clamp(34px, 5vw, 56px) clamp(18px, 4vw, 48px) clamp(30px, 4vw, 44px); border-radius: 30px; color: #fff3df; text-align: center;
	background: radial-gradient(ellipse at 50% 0%, rgba(255, 196, 120, .28), transparent 60%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 3px, transparent 3px 34px), linear-gradient(180deg, #5c1230, var(--velvet) 55%, #1d0410);
	box-shadow: 0 0 0 4px var(--gold-deep), 0 0 0 9px #2a0715, 0 0 0 11px var(--gold), 0 18px 40px rgba(60, 10, 30, .35); }
.keyun-festival__stage::before { content: ""; position: absolute; inset: 0; padding: 12px; border-radius: inherit; pointer-events: none;
	background: radial-gradient(circle, #fff7d6 0 2.5px, rgba(255, 214, 120, .55) 3.5px, transparent 6px) 0 0 / 24px 24px;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: keyun-bulbs 1.6s steps(2) infinite; }
@keyframes keyun-bulbs { 50% { opacity: .55; } }
.keyun-festival__spot { position: absolute; top: -40px; width: 46%; height: 120%; pointer-events: none; background: linear-gradient(180deg, rgba(255, 236, 190, .26), transparent 75%); filter: blur(6px); }
.keyun-festival__spot--l { left: -6%; transform: rotate(-18deg); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transform-origin: top center; }
.keyun-festival__spot--r { right: -6%; transform: rotate(18deg); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transform-origin: top center; }
.keyun-page .keyun-festival__marquee { position: relative; margin: 0 auto 18px; font-family: var(--k-hand); font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 700; line-height: 1.25; letter-spacing: .06em;
	background: linear-gradient(180deg, #fff6cf 0%, var(--gold) 45%, #d29b34 70%, #ffe6a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 14px rgba(255, 200, 100, .25); }
.keyun-page .keyun-festival__marquee small { display: block; font-family: inherit; font-size: .36em; letter-spacing: .32em; color: var(--gold); -webkit-text-fill-color: var(--gold); margin: .3em 0; }
.keyun-festival__intro { position: relative; max-width: 640px; margin: 0 auto 30px; line-height: 1.8; }
.keyun-festival__intro span { color: #f1cfae; font-size: .92em; }
.keyun-festival__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; text-align: left; }
.keyun-ticket { position: relative; display: flex; flex-direction: column; padding: 0 16px 18px; border-radius: 14px; color: #4a2a12; background: linear-gradient(180deg, #fffbee, #fff3d6); box-shadow: 0 0 0 2px var(--gold-deep), 0 0 0 5px #fff3d6, 0 0 0 6px var(--gold), 0 12px 22px rgba(0, 0, 0, .4); transition: transform .2s ease; }
.keyun-ticket:nth-child(odd) { transform: rotate(-1deg); }
.keyun-ticket:nth-child(even) { transform: rotate(.8deg); }
.keyun-ticket:hover { transform: rotate(0) translateY(-4px); }
.keyun-page .keyun-ticket__band { display: flex; justify-content: space-between; margin: 0 -16px 14px; padding: .55em 22px; border-radius: 14px 14px 0 0; font-weight: 800; font-size: .78rem; letter-spacing: .16em; white-space: nowrap; color: #4a2a12;
	background: linear-gradient(90deg, #c8963a, #f7dc8c 30%, #fff1c2 50%, #f0cd78 70%, #b9852c); }
.keyun-ticket__shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #e5c06a; }
.keyun-ticket__no { position: absolute; left: 10px; top: 10px; z-index: 1; padding: .2em .8em; border-radius: 999px; font-weight: 800; font-size: .78rem; letter-spacing: .12em; color: #4a2a12; background: linear-gradient(180deg, #fff1c2, #e9bf5c); box-shadow: 0 0 0 2px #5a0f2c, 0 3px 8px rgba(0, 0, 0, .35); }
.keyun-ticket__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.keyun-ticket__shot:hover img { transform: scale(1.05); }
.keyun-ticket__tear { position: relative; display: block; margin: 16px -16px 12px; border-top: 2px dashed #d6b264; }
.keyun-ticket__tear::before, .keyun-ticket__tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #3b0a20; box-shadow: inset 0 0 0 2px var(--gold-deep); }
.keyun-ticket__tear::before { left: -11px; }
.keyun-ticket__tear::after { right: -11px; }
.keyun-page .keyun-ticket__kind { margin: 0 0 .4em; font-size: .85rem; font-weight: 800; letter-spacing: .12em; color: #8a5a12; }
.keyun-page .keyun-ticket h3 { margin: 0 0 .7em; font-size: 1.45rem; color: #6a1438; }
.keyun-page .keyun-ticket h3 small { display: block; margin: .2em 0 0; color: #7a5a3a; }
.keyun-page .keyun-ticket__go { margin: auto 0 0; }
.keyun-page .keyun-ticket__go a { display: inline-block; padding: .45em 1.1em; border-radius: 999px; font-weight: 800; text-decoration: none; color: #fff8e4; background: linear-gradient(180deg, #8c1d48, #5a0f2c); box-shadow: 0 0 0 2px var(--gold), 0 4px 0 #3b0a20; }
.keyun-page .keyun-ticket__go a:hover { background: linear-gradient(180deg, #a3245a, #6a1438); }
.keyun-page .keyun-ticket__go a:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }
.keyun-ticket__go small { font-weight: 600; font-size: .8em; opacity: .85; }
.keyun-festival__timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 38px auto 0; padding: 26px 0 0; list-style: none; max-width: 720px; }
.keyun-festival__timeline::before { content: ""; position: absolute; top: 8px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.keyun-festival__timeline li { position: relative; line-height: 1.5; }
.keyun-festival__timeline li::before { content: "★"; position: absolute; top: -27px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 1.1rem; text-shadow: 0 0 10px rgba(255, 210, 110, .8); }
.keyun-festival__timeline strong { display: block; color: var(--gold); font-size: 1.15rem; letter-spacing: .08em; }
.keyun-festival__timeline small { display: block; color: #f1cfae; font-size: .85em; }
.keyun-skit__script { margin-top: 14px; }
.keyun-skit__script p { margin: 0 0 .55em; line-height: 1.75; }
.keyun-skit__line { display: grid; grid-template-columns: 52px 1fr; gap: .7em; align-items: center; }
.keyun-skit__face { width: 52px; height: 52px; border-radius: 50%; background: #ffe0ec; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--k-pink); }
.keyun-skit__line--jue .keyun-skit__face { background: #dff3ea; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #7cc9a8; }
.keyun-skit__line span { background: #fff7fa; border-radius: 16px; padding: .45em .9em; }
.keyun-skit__line--jue span { background: #f2fbf7; }
.keyun-skit__cast { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin: 4px 0 6px; }
.keyun-page .keyun-skit__chibi { height: 180px !important; width: auto !important; max-width: none; filter: drop-shadow(0 4px 6px rgba(120, 40, 80, .2)); }
.keyun-page .keyun-skit__chibi:first-child { transform: rotate(-5deg); }
.keyun-page .keyun-skit__chibi:last-child { transform: rotate(5deg); }
.keyun-page .keyun-skit__face { width: 52px !important; height: 52px !important; max-width: none; }
.keyun-skit > .keyun-label, .keyun-skit > h3, .keyun-skit > .keyun-note-text { text-align: center; }
.keyun-skit > .keyun-label { display: table; margin-left: auto; margin-right: auto; }
.keyun-skit__stage { color: #6b5560; font-style: italic; font-size: .95rem; padding-left: 64px; }
.keyun-skit__end { text-align: center; color: #6b5560; margin-top: 1em !important; }
.keyun-skit__more > summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--k-pink-deep); min-height: 48px; width: fit-content; margin: .6em auto 1em; padding: .2em 1.4em; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px var(--k-pink); display: flex; align-items: center; gap: .4em; }
.keyun-skit__more[open] > summary { box-shadow: none; }
.keyun-skit__more > summary::-webkit-details-marker { display: none; }
.keyun-skit__more > summary:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.keyun-skit__close { display: none; }
.keyun-skit__more[open] .keyun-skit__open { display: none; }
.keyun-skit__more[open] .keyun-skit__close { display: inline; }
.keyun-skit__less { display: flex; align-items: center; gap: .4em; margin: .4em auto 0; padding: .2em 1.4em; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px var(--k-pink); color: var(--k-pink-deep); font: inherit; font-weight: 800; cursor: pointer; min-height: 48px; }
.keyun-skit__less:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
/* Full-size card: native 1200px width (or the whole screen width), scroll vertically to read the fine print. */
.keyun-lightbox { border: 0; padding: 0; background: transparent; width: fit-content; max-width: 96vw; max-height: 96vh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.keyun-lightbox::backdrop { background: rgba(74, 35, 56, .86); }
/* 100% = the dialog's inner width, so a tall photo's vertical scrollbar narrows the photo instead of adding a horizontal one */
.keyun-lightbox img { width: auto; max-width: min(96vw, 1200px, 100%); height: auto; border-radius: 14px; display: block; }
.keyun-lightbox button { position: fixed; top: 14px; right: 14px; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: var(--k-pink); color: #fff; font-size: 1.7rem; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }

/* Banner buttons to the original serial posts */
.keyun-banners { display: grid; gap: 16px; margin: 1.4em 0 .4em; text-align: left; }
.keyun-banner { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px 22px; border-radius: 18px; text-decoration: none; color: var(--k-ink) !important; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--k-pink), 0 7px 0 3px var(--k-rose); transition: transform .15s ease; background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .35) 0 10px, transparent 10px 20px); }
.keyun-banner--pink { background-color: #ffd0e1; }
.keyun-banner--lemon { background-color: var(--k-lemon); }
.keyun-banner:hover, .keyun-banner:focus-visible { transform: translateY(-2px) rotate(-.6deg); }
.keyun-banner:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }
.keyun-banner__date { flex: 0 0 auto; font-weight: 900; color: #fff; background: var(--k-pink); padding: .25em .7em; border-radius: 10px; transform: rotate(-4deg); }
.keyun-banner__face { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.keyun-banner__text { flex: 1; display: flex; flex-direction: column; }
.keyun-banner__text strong { font-family: var(--k-hand); font-size: 1.25rem; color: var(--k-pink-deep); }
.keyun-banner__text small { font-size: .92rem; color: #7a5266; }
.keyun-banner__go { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--k-pink-deep); font-weight: 900; font-size: 1.3rem; }

/* Cute stickers (decorative SVGs with a white die-cut edge) */
.keyun-sticker { position: absolute; width: 60px; height: 60px; z-index: 6; pointer-events: none; filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 4px 4px rgba(120, 40, 80, .25)); }
.keyun-sticker--s { width: 52px; height: 52px; opacity: 0; transition: opacity .25s ease; }
.keyun-sticker--s.is-placed { opacity: 1; }
.keyun-heading h2 { position: relative; }
.keyun-sticker--hl { left: -46px; top: -18px; width: 52px; height: 52px; transform: rotate(-14deg); }
.keyun-sticker--hr { right: -44px; bottom: -14px; width: 46px; height: 46px; transform: rotate(16deg); }
.keyun-map__wrap { position: relative; }

/* Making-of page (/secretary-keyun/making-of/) */
.keyun-mo-head { text-align: center; padding: clamp(10px, 2vw, 20px) 0 0; }
.keyun-mo-back { text-align: left; margin: 0 0 1em; font-weight: 800; }
.keyun-mo-title { font-family: var(--k-hand); color: var(--k-pink-deep); font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.3; margin: .3em 0 .4em; text-shadow: 2px 2px 0 var(--k-rose); }
.keyun-mo-lead { font-size: 1.22rem; max-width: 720px; margin: 0 auto .6em; }
.keyun-mo-head .keyun-en { max-width: 720px; margin: 0 auto 1em; }
.keyun-mo-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 1.2em 0 0; }
.keyun-mo-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: .2em 1.1em; border-radius: 999px; background: #fff; color: var(--k-pink-deep); font-weight: 800; text-decoration: none; box-shadow: 0 0 0 3px var(--k-pink), 0 5px 0 var(--k-rose); }
.keyun-mo-toc a:focus-visible, .keyun-mo-back a:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }
.keyun-mo-note { max-width: 860px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); background-color: #fff; background-image: linear-gradient(#ffe8f1 1px, transparent 1px), linear-gradient(90deg, #ffe8f1 1px, transparent 1px); background-size: 24px 24px; }
.keyun-mo-note__title { font-family: var(--k-hand); font-size: clamp(1.4rem, 3.4vw, 1.8rem); color: var(--k-pink-deep); text-align: center; margin: 0 0 1em; }
.keyun-mo-note__title small { display: block; font-size: .62em; color: #8a5a70; }
.keyun-mo-points { list-style: none; margin: 0; padding: 0; counter-reset: mo; display: grid; gap: 18px; }
.keyun-mo-points li { counter-increment: mo; position: relative; padding: 14px 16px 14px 62px; background: rgba(255, 255, 255, .92); border-radius: 14px; box-shadow: 0 0 0 2px var(--k-rose); }
.keyun-mo-points li::before { content: counter(mo); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--k-pink); color: #fff; font-weight: 900; }
.keyun-mo-points strong { display: block; font-size: 1.15rem; color: var(--k-pink-deep); margin-bottom: .2em; }
.keyun-mo-points p { margin: 0; }
.keyun-mo-step { position: relative; max-width: 900px; margin: 0 auto 30px; padding: clamp(22px, 3.6vw, 36px); }
.keyun-mo-step h3 { font-size: clamp(1.35rem, 3vw, 1.65rem); padding-right: 64px; }
.keyun-mo-step p { margin: 0 0 .8em; }
.keyun-mo-step__no { position: absolute; top: -14px; right: 22px; margin: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--k-hand); font-size: 1.5rem; color: #fff; background: var(--k-pink); box-shadow: 0 0 0 4px #fff, 0 6px 12px rgba(194, 24, 91, .3); }
.keyun-mo-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 1em 0 0; }
.keyun-mo-figs--wide { grid-template-columns: 1fr; }
.keyun-mo-figure { margin: 0; }
.keyun-mo-figure .keyun-zoom { margin-bottom: 6px; border-radius: 12px; box-shadow: 0 0 0 2px var(--k-rose); }
.keyun-mo-figure .keyun-zoom__hint { font-size: .85rem; padding: .15em .5em; }
.keyun-page .keyun-mo-figure figcaption { font-size: .95rem; color: #7a5266; text-align: center; }
.keyun-mo-doc { margin: 1em 0 0; padding: 14px; border-radius: 14px; background: var(--k-cream); box-shadow: 0 0 0 2px var(--k-rose); }
.keyun-mo-doc__title { margin: 0 0 .6em; font-weight: 900; color: var(--k-pink-deep); }
.keyun-mo-scroll { overflow-x: auto; }
.keyun-mo-table { width: 100%; border-collapse: collapse; font-size: 1rem; background: #fff; }
.keyun-mo-table th, .keyun-mo-table td { padding: 8px 10px; border: 1px solid #f3c6d8; text-align: left; vertical-align: top; }
.keyun-mo-table thead th { background: var(--k-rose); color: var(--k-pink-deep); }
.keyun-mo-table tbody th { color: var(--k-pink-deep); white-space: nowrap; }
.keyun-mo-flow { list-style: none; margin: 1em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; counter-reset: flow; }
.keyun-mo-flow li { counter-increment: flow; position: relative; padding: 16px 14px 14px; border-radius: 14px; background: var(--k-sky); }
.keyun-mo-flow li::before { content: counter(flow); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: #fff; color: var(--k-pink-deep); font-weight: 900; }
.keyun-mo-flow strong { color: var(--k-ink); }
.keyun-mo-flow span { display: block; margin-top: .3em; font-size: .95rem; color: #4b5b73; }
.keyun-mo-timeline { position: relative; height: 34px; border-radius: 10px; background: repeating-linear-gradient(90deg, #f6e9ef 0 1px, #fff 1px 8.2%); box-shadow: inset 0 0 0 2px var(--k-rose); }
.keyun-mo-cue { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; }
.keyun-mo-cue--pink { background: var(--k-pink); }
.keyun-mo-cue--gray { background: #b9a9b1; }
.keyun-mo-cue--rose { background: #f48fb1; }
.keyun-mo-cue--lemon { background: #f6d55c; }
.keyun-mo-cue--sky { background: #7fb3f0; }
.keyun-mo-legend { list-style: none; margin: .8em 0 0; padding: 0; display: grid; gap: 4px; font-size: .95rem; }
.keyun-mo-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.keyun-mo-chips { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keyun-mo-chips li { padding: .2em .9em; border-radius: 999px; background: var(--k-blush); color: var(--k-pink-deep); font-weight: 800; box-shadow: 0 0 0 2px var(--k-rose); }
.keyun-mo-pitfalls { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 22px; }
.keyun-mo-pit { padding: 20px 22px; border-radius: 4px 4px 22px 4px; background: #fff7d6; box-shadow: 0 10px 18px rgba(120, 40, 80, .14); }
.keyun-mo-pit:nth-child(even) { background: #ffe9f2; }
.keyun-mo-pit h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.keyun-mo-pit__no { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--k-pink-deep); color: #fff; font-family: system-ui, sans-serif; font-size: 1rem; font-weight: 900; }
.keyun-mo-pit dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.keyun-mo-pit dt { font-weight: 900; color: var(--k-pink-deep); }
.keyun-mo-pit dd { margin: 0; }
.keyun-mo-small { font-size: .95rem; color: #7a5266; margin-top: .6em; }
.keyun-mo-closing { text-align: left; font-size: 1.15rem; line-height: 38px; margin: 0 0 38px; }
.keyun-mo-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 1.4em 0 0; }
.keyun-mo-deco { width: 56px; height: 56px; z-index: 4; }
.keyun-mo-deco--tl { top: -22px; left: -16px; transform: rotate(-12deg); }
.keyun-mo-deco--tr { top: -20px; right: -14px; transform: rotate(12deg); }
.keyun-mo-deco--br { bottom: -18px; right: -14px; transform: rotate(10deg); }
.keyun-mo-deco--bl { bottom: -18px; left: -14px; transform: rotate(-10deg); }
.keyun-mo-deco--ml { top: 28%; left: -40px; transform: rotate(-14deg); }
.keyun-mo-deco--mr { top: 52%; right: -40px; transform: rotate(12deg); }
.keyun-mo-deco--ml2 { top: 78%; left: -40px; transform: rotate(8deg); }
.keyun-mo-note, .keyun-mo-pit { position: relative; }
.keyun-mo-map { list-style: none; margin: 0 auto 34px; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.keyun-mo-map li { position: relative; }
.keyun-mo-map a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 18px; background: #fff; color: var(--k-ink); text-decoration: none; font-weight: 800; box-shadow: 0 0 0 3px var(--k-rose), 0 6px 0 var(--k-rose); transition: transform .15s ease; }
.keyun-mo-map li:nth-child(odd) a { transform: rotate(-1.5deg); }
.keyun-mo-map li:nth-child(even) a { transform: rotate(1.5deg); }
.keyun-mo-map a:hover, .keyun-mo-map a:focus-visible { transform: translateY(-3px) rotate(0); box-shadow: 0 0 0 3px var(--k-pink), 0 6px 0 var(--k-rose); }
.keyun-mo-map a:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }
.keyun-mo-map__icon { font-size: 1.8rem; line-height: 1.2; }
.keyun-mo-map__no { font-size: .75rem; font-weight: 900; color: #fff; background: var(--k-pink); border-radius: 999px; padding: 0 .55em; }
.keyun-mo-step__icon { margin-right: .3em; }
.keyun-mo-labelled strong { display: inline-block; margin-right: .5em; padding: 0 .6em; border-radius: 999px; background: var(--k-pink); color: #fff; font-size: .9rem; vertical-align: .1em; }
.keyun-mo-tip { position: relative; margin: 1.2em 0 0 !important; padding: 12px 16px; border-radius: 16px; background: #ffe0ec; color: var(--k-ink); font-weight: 700; }
.keyun-mo-tip::before { content: ""; position: absolute; top: -10px; left: 28px; border: 10px solid transparent; border-top: 0; border-bottom-color: #ffe0ec; }
.keyun-mo-tip strong { color: var(--k-pink-deep); margin-right: .4em; }
.keyun-mo-pit dt span { margin-right: .3em; }
.keyun-mo-pit dt.keyun-mo-pit__fix, .keyun-mo-pit dd.keyun-mo-pit__fix { color: #1f6b4f; }
.keyun-mo-pit dd.keyun-mo-pit__fix { font-weight: 700; }
@media (max-width: 560px) {
	.keyun-mo-points li { padding-left: 54px; }
	.keyun-mo-map { gap: 6px; }
	.keyun-mo-map a { padding: 8px 2px 6px; font-size: .85rem; border-radius: 12px; }
	.keyun-mo-map__icon { font-size: 1.3rem; }
	.keyun-mo-map__no { font-size: .65rem; }
	.keyun-mo-deco { width: 44px; height: 44px; }
	.keyun-mo-pit dl { grid-template-columns: 1fr; gap: 2px; }
	.keyun-mo-pit dd { margin-bottom: 8px; }
	.keyun-mo-step h3 { padding-right: 52px; }
	.keyun-mo-step__no { width: 48px; height: 48px; font-size: 1.25rem; right: 14px; }
}

/* Hero news ribbon (0.6.19) */
.keyun-news { margin: 18px 0 0; padding: 12px 14px 10px; border-radius: 18px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(244, 205, 126, .75); text-align: left; }
.keyun-news__title { margin: 0 0 6px; color: var(--k-gold); font-weight: 800; font-size: .95rem; letter-spacing: .08em; }
.keyun-news__title small { font-size: .75em; letter-spacing: .18em; }
.keyun-news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.keyun-page .keyun-news a { display: block; color: #fff; font-weight: 700; text-decoration: none; line-height: 1.45; padding: 6px 4px; border-radius: 10px; }
.keyun-page .keyun-news a:hover, .keyun-page .keyun-news a:focus-visible { background: rgba(255, 255, 255, .14); }
.keyun-news a small { color: #ffd9e8; font-weight: 600; }
.keyun-news__tag { display: inline-block; margin-right: .5em; padding: 0 .55em; border-radius: 999px; background: var(--k-gold); color: var(--k-wine); font-size: .82em; }

/* Season fold footer (0.6.19) */
.keyun-season__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin: 22px 0 6px; font-weight: 700; }
.keyun-season__collapse { min-height: 44px; padding: .3em 1.2em; border: 2px solid var(--k-pink); border-radius: 999px; background: #fff; color: var(--k-pink-deep); font: inherit; font-weight: 800; cursor: pointer; }
.keyun-season__collapse:focus-visible { outline: 4px solid #1d4ed8; outline-offset: 3px; }

/* Chasing the Stars: Flameblade Star Theater night-sky panel (0.6.19) */
.keyun-zhuxing { --z-night: #0f1a33; --z-deep: #1c2b52; --z-gold: #f2cf7a; --z-cream: #fbf3df; }
.keyun-zhuxing__screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px; border-radius: 26px; color: var(--z-cream);
	background: radial-gradient(circle at 15% 10%, rgba(242, 207, 122, .22), transparent 30%), radial-gradient(circle at 85% 0%, rgba(160, 190, 255, .25), transparent 35%), linear-gradient(160deg, var(--z-deep), var(--z-night) 70%);
	box-shadow: 0 0 0 3px var(--z-gold), 0 0 0 8px #fff, 0 0 0 11px var(--k-rose), 0 22px 40px rgba(15, 26, 51, .35); }
.keyun-zhuxing__poster { width: 100%; max-width: 760px; margin: 0 auto; }
.keyun-zhuxing__poster .keyun-player { border-radius: 16px; box-shadow: 0 0 0 2px rgba(242, 207, 122, .7), 0 14px 30px rgba(0, 0, 0, .45); }
.keyun-zhuxing__series { margin: 0 0 .3em; color: var(--z-gold); font-weight: 800; letter-spacing: .12em; }
.keyun-zhuxing__series small { display: block; font-size: .72rem; letter-spacing: .22em; opacity: .85; }
.keyun-page .keyun-zhuxing__body h3 { color: var(--z-cream); font-family: "Noto Serif TC", "Source Han Serif TC", serif; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.keyun-zhuxing__body h3 small { display: block; font-size: .5em; letter-spacing: .14em; color: var(--z-gold); }
.keyun-zhuxing__logline { margin: 0 0 .8em; font-family: "Noto Serif TC", "Source Han Serif TC", serif; font-size: 1.2rem; color: var(--z-gold); }
.keyun-zhuxing__facts { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keyun-zhuxing__facts li { padding: .15em .8em; border-radius: 999px; font-size: .9rem; font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(242, 207, 122, .85); }
.keyun-zhuxing__body > p { line-height: 1.85; }
.keyun-zhuxing__body .keyun-en { color: #c9d4ee; }
.keyun-zhuxing__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
.keyun-btn--star { background: linear-gradient(180deg, #ffe6a3, var(--z-gold)); color: var(--z-night) !important; border-color: #fff; box-shadow: 0 5px 0 #b38a2e; }
.keyun-zhuxing__cast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 20px; margin: 28px 0 0; }
.keyun-zhuxing__role, .keyun-zhuxing__credits { margin: 0; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 3px #d9e2f5, 0 8px 0 3px #eef2fb; }
.keyun-zhuxing__actor { margin: 0; color: #4a5a85; font-weight: 800; letter-spacing: .06em; }
.keyun-page .keyun-zhuxing__role h3 { color: var(--z-deep); font-family: "Noto Serif TC", "Source Han Serif TC", serif; font-size: 1.6rem; }
.keyun-zhuxing__credits div { padding: 6px 0; }
.keyun-zhuxing__credits div + div { border-top: 1px dashed #d9e2f5; }
.keyun-zhuxing__credits dt { color: #4a5a85; font-weight: 700; }
.keyun-zhuxing__credits dd { margin: 0; font-weight: 800; color: var(--z-deep); }
.keyun-zhuxing__stills { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.keyun-zhuxing__stills img { display: block; width: 100%; height: auto; border-radius: 14px; }
.keyun-zhuxing__stills p { margin: .5em 0 0; text-align: center; font-weight: 700; color: var(--z-deep); }
.keyun-page .keyun-zhuxing__note { margin-top: 24px; }
@media (max-width: 900px) {
	.keyun-zhuxing__cast { grid-template-columns: 1fr 1fr; }
	.keyun-zhuxing__credits { grid-column: 1 / -1; }
	.keyun-zhuxing__stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.keyun-zhuxing__screen { padding: 16px; gap: 18px; }
	.keyun-zhuxing__cast { grid-template-columns: 1fr; }
	.keyun-zhuxing__actions .keyun-btn { width: 100%; }
}

/* Responsive */
@media (max-width: 900px) {
	.keyun-map__layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.keyun-actor-row, .keyun-actor--event { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.keyun-page .keyun-skit { padding: 18px 16px 40px; }
	.keyun-mo-deco--ml, .keyun-mo-deco--mr, .keyun-mo-deco--ml2 { display: none; }
	.keyun-page .keyun-skit__chibi { height: 110px !important; }
	.keyun-skit__line { grid-template-columns: 44px 1fr; }
	.keyun-page .keyun-skit__face { width: 44px !important; height: 44px !important; }
	.keyun-skit__stage { padding-left: 0; }
	.keyun-sticker--s { width: 44px; height: 44px; }
	.keyun-sticker--hl, .keyun-sticker--hr { width: 38px; height: 38px; }
	.keyun-sticker--hl { left: -30px; }
	.keyun-sticker--hr { right: -28px; }
	.keyun-page { font-size: 1.08rem; border-radius: 18px; }
	.keyun-episode-grid, .keyun-binge { grid-template-columns: 1fr; }
	.keyun-season > summary { border-radius: 26px; padding: 12px 20px; }
	.keyun-season__title { flex-basis: 100%; }
	.keyun-festival__grid { grid-template-columns: 1fr; }
	.keyun-festival__timeline { grid-template-columns: 1fr; gap: 30px; }
	.keyun-festival__timeline::before { display: none; }
	.keyun-festival__spot { display: none; }
	.keyun-place-list { grid-template-columns: 1fr; }
	.keyun-hero__actions .keyun-btn { width: 100%; }
	.keyun-letter { padding: 30px 14px; font-size: 1.12rem; }
	.keyun-hero__stage { padding: 16px; border-radius: 22px; }
	.keyun-page .keyun-hero__scene figcaption { font-size: .9rem; padding: .3em .8em; flex-wrap: wrap; justify-content: center; gap: .2em .5em; width: max-content; max-width: 92%; white-space: normal; text-align: center; bottom: auto; top: calc(100% - 14px); }
	.keyun-hero__strip { grid-auto-columns: 72%; }
	.keyun-letter__en[open] { padding: 4px 12px 8px; }
	.keyun-page .keyun-letter__photo figcaption { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
	.keyun-page * { transition: none !important; }
	.keyun-festival__stage::before { animation: none; }
	.keyun-ticket, .keyun-ticket:hover, .keyun-ticket__shot:hover img { transform: none; }
	.keyun-hero__sparkle { animation: none; opacity: .8; }
}
