/* SANCHINA STORY - approved mobile game look, 2026-11-03 */
.sc-story-mode .topbar,
.sc-story-mode #authUserBar {display:none!important}
.sc-story-mode main{padding-top:0!important}
#storyView.story-page{--sc-gold:#d99b29;--sc-line:#06c755; --sc-ink:#633719; padding:10px 11px 32px!important;background:linear-gradient(180deg,#fff8ed,#fffdf8 52%,#fff8ee);color:#4c2e24}
#storyView .story-top-nav{display:flex;align-items:center;gap:7px;width:100%;margin:0 0 12px;padding:4px 2px;background:transparent;border:0;box-shadow:none;min-height:45px;border-radius:0}
#storyView .story-nav-header{display:block;flex:0 0 auto;margin:0;padding:0}
#storyView .story-back-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1.5px solid #dcb57f;background:linear-gradient(#fffdf8,#fff0d9);color:#744424;font-size:13px;font-weight:850;height:37px;min-height:37px;padding:0 10px;white-space:nowrap;box-shadow:0 3px 7px #8e5a2123}
#storyView .story-nav-header-deco{display:none!important}
#storyView .story-nav-controls{display:flex;flex:1;align-items:center;min-width:0}
#storyView .story-nav-arrow.story-nav-hidden{display:none!important}
#storyView .story-chapter-tabs{display:flex;flex:1;gap:5px;min-width:0;margin:0;padding:4px 1px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity}
#storyView .story-chapter-tabs::-webkit-scrollbar{display:none}
#storyView .story-chapter-tabs button{position:relative;flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border:1.5px solid #d4a75f;border-radius:50%;background:linear-gradient(160deg,#fffdf8,#fff3e1);box-shadow:0 2px 5px #9870322b;color:#663715;font-size:15px;font-weight:900;scroll-snap-align:center}
#storyView .story-chapter-tabs button.selected{color:#fff;background:linear-gradient(180deg,#19aa65,#078647);border:2px solid #eac05a;box-shadow:0 0 0 2px #fff3ce,0 3px 10px #00834a42}
#storyView .story-chapter-tabs button::before,#storyView .story-chapter-tabs button::after{display:none!important}
#storyView .story-chapter-tabs button:focus-visible,#storyView .story-back-pill:focus-visible{outline:3px solid #008f50;outline-offset:2px}
#storyView .story-chapter-cover{position:relative;isolation:isolate;min-height:210px;aspect-ratio:2.28/1;margin:0 0 13px;border-radius:22px;border:3px solid #e2af3a;overflow:hidden;background:#c39d67;box-shadow:0 5px 0 #a873201f,0 10px 22px #856b5136}
#storyView .story-chapter-cover::after{background:linear-gradient(to top,#1b1d26e3 0%,#171b2488 35%,transparent 72%);pointer-events:none;z-index:1}
#storyView .story-cover-images,#storyView .story-ai-cover-image{inset:0;width:100%;height:100%}
#storyView .story-cover-content{z-index:3;left:14px;right:14px;bottom:12px;gap:3px}
#storyView .story-cover-content span:not(.sr-only){font-size:10px;padding:4px 10px;background:linear-gradient(180deg,#ffe19a,#f4be59);color:#6b3d14;box-shadow:0 2px 6px #0003}
#storyView .story-cover-content strong{font-size:clamp(25px,7.2vw,43px);line-height:1.14;letter-spacing:.005em;white-space:normal;color:#fff;text-shadow:0 2px 4px #000b,0 0 1px #000}
#storyView .story-cover-content small{display:none!important}
#storyView .story-cover-progress{z-index:4;right:10px;top:10px;display:inline-flex;align-items:center;gap:8px;border:1px solid #d6a750;border-radius:999px;background:linear-gradient(135deg,#fff9e8e8,#fff4e5d9);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 3px 12px #241a1240;padding:7px 12px;color:#794719}
#storyView .story-cover-progress-label{font-size:11px;color:#764815;font-weight:850;white-space:nowrap}
#storyView .story-cover-progress strong{font-size:18px;color:#764013;font-weight:950;white-space:nowrap}
#storyView .story-cover-progress-check{display:none!important}
#storyView .story-synopsis{position:relative;overflow:hidden;margin:0 0 11px;padding:13px 16px 15px;background:linear-gradient(105deg,#fff9f7f7,#fffef9e8),radial-gradient(ellipse at bottom right,#f8e4dc,#fff);border:1px solid #f0c9c9;border-radius:17px;box-shadow:0 3px 11px #cc7c7230;color:#583325;line-height:1.65}
#storyView .story-synopsis::after{content:'';position:absolute;right:-20px;bottom:-24px;width:150px;height:95px;opacity:.22;background:radial-gradient(ellipse at 78% 80%,#e7a2a2 0%,transparent 65%),linear-gradient(145deg,transparent 50%,#dca8a8 51%,transparent 52%);pointer-events:none}
#storyView .story-synopsis strong{position:relative;z-index:1;display:block;margin:0 0 6px;color:#c31f20;font-size:18px;font-weight:900}
#storyView .story-synopsis p{position:relative;z-index:1;margin:0;font-size:12px;line-height:1.65;white-space:pre-line;font-weight:700}
#storyView .story-synopsis small{display:none!important}
#storyView .story-list-heading-festival{display:flex;align-items:center;justify-content:center;margin:14px 0 15px;padding:0 12px}
#storyView .story-list-heading-festival::before,#storyView .story-list-heading-festival::after{content:'';height:2px;background:linear-gradient(90deg,transparent,#e1b351);flex:1;min-width:12px}
#storyView .story-list-heading-festival::after{transform:scaleX(-1)}
#storyView .story-list-heading-festival h3{flex:0 0 auto;position:relative;display:flex;align-items:center;justify-content:center;min-height:43px;margin:0 8px;padding:2px 21px;border:2px solid #e1ae3a;border-radius:10px;background:linear-gradient(180deg,#fffdf8,#ffedc5);color:#854a1e;box-shadow:0 3px 7px #b98b422e;font-size:clamp(17px,4.6vw,24px);font-weight:950}
#storyView .story-list-heading-festival h3::before,#storyView .story-list-heading-festival h3::after{content:'✦';position:absolute;top:50%;transform:translateY(-50%);width:auto;height:auto;border:0;background:none;box-shadow:none;color:#d59b31;font-size:12px}
#storyView .story-list-heading-festival h3::before{left:6px;margin:0}#storyView .story-list-heading-festival h3::after{right:6px;margin:0}
#storyView .story-list-heading-festival>span{display:none}
#storyView .story-scene-list{display:flex;flex-direction:column;gap:9px;padding:0;margin:0 0 15px;list-style:none}
#storyView .story-scene{display:grid;grid-template-columns:28px 75px minmax(0,1fr) 91px;grid-template-rows:auto;gap:7px;align-items:start;padding:10px 8px 11px;border:1px solid #e6c395;border-radius:17px;background:linear-gradient(180deg,#fffefa,#fffaf4);box-shadow:0 2px 5px #b18b5532;min-height:0}
#storyView .story-scene-number{grid-area:auto;width:27px;height:27px;flex:none;margin-top:2px;border-radius:50%;background:linear-gradient(#19a45e,#087b45);font-size:15px;font-weight:900;box-shadow:0 3px 6px #186f3b24;color:#fff}
#storyView .story-scene-art{grid-area:auto;width:75px;height:92px;flex:none;max-width:none;border-radius:12px;border:2px solid #e2b563;overflow:hidden;background:#fff3e1;box-shadow:0 3px 7px #7b623132}
#storyView .story-scene-art img{width:100%;height:100%;object-fit:cover}
#storyView .story-scene-body{grid-area:auto;display:flex;flex-direction:column;gap:3px;min-width:0}
#storyView .story-scene-body h4{order:0;margin:0;color:#71321a;font-size:clamp(14px,3.8vw,18px);font-weight:900;line-height:1.3;overflow-wrap:anywhere}
#storyView .story-scene-body .story-unlocked-label,#storyView .story-scene-body .story-pending-label{display:none}
#storyView .story-zh{order:1;margin:0;color:#006b42;font-size:clamp(12px,3.3vw,16px);line-height:1.42;font-weight:850;overflow-wrap:anywhere}
#storyView .story-py{order:2;margin:0;color:#8b8e92;font-size:clamp(10px,2.7vw,12px);line-height:1.42;overflow-wrap:anywhere}
#storyView .story-jp{order:3;margin:0;color:#596267;font-size:clamp(10px,2.7vw,12px);line-height:1.5;overflow-wrap:anywhere}
#storyView .story-own-card{order:4;margin:1px 0 0;color:#97968e;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
#storyView .story-scene-action{grid-area:auto;display:flex;justify-content:flex-end;align-self:start;margin-top:15px;min-width:0}
#storyView .story-listen{display:flex;align-items:center;justify-content:center;gap:3px;width:91px;min-width:0;min-height:32px;height:auto;padding:8px 5px;border:0;border-radius:999px;background:linear-gradient(180deg,#09c457,#06a84b);color:#fff;font-size:clamp(9px,2.55vw,12px);font-weight:900;white-space:nowrap;box-shadow:0 3px 7px #066a3430;cursor:pointer}
#storyView .story-listen .story-volume-icon{display:block;width:15px;height:15px;flex:0 0 15px;fill:none;stroke:#fff;stroke-width:2.3}
#storyView .story-listen:active{transform:translateY(1px);background:#089b47}
#storyView .story-listen:focus-visible{outline:3px solid #055b38;outline-offset:2px}
#storyView .story-find{display:flex;align-items:center;justify-content:center;width:91px;min-width:0;min-height:40px;padding:5px;border-radius:12px;font-size:10px;line-height:1.4;white-space:normal;text-align:center;color:#076241;border:1px solid #a1d6b6;background:#fff}
#storyView .story-scene.locked{border-style:dashed;background:#f6faf7}
#storyView .story-scene.locked .story-scene-body .story-lock-label{display:block;color:#6d8276;font-size:11px;order:0}
#storyView .story-scene.locked .story-scene-body h4{order:1}
#storyView .story-scene.locked .story-scene-body p{order:2}
#storyView .story-complete{position:relative;isolation:isolate;overflow:hidden;text-align:left;margin:0 0 10px;padding:16px 13px 14px 115px;min-height:180px;border:3px double #dba635;border-radius:20px;background:radial-gradient(ellipse at 22% 25%,#ffdd88b8,transparent 55%),linear-gradient(145deg,#fffdf7,#fff1c9 60%,#ffe6a5);box-shadow:0 5px 13px #b487383d}
#storyView .story-complete::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.38;background:repeating-conic-gradient(from 0deg at 20% 22%,#fff6c3 0 8deg,transparent 9deg 21deg);mask-image:radial-gradient(circle at 20% 22%,#000 0%,transparent 46%);-webkit-mask-image:radial-gradient(circle at 20% 22%,#000 0%,transparent 46%)}
#storyView .story-complete-top{display:contents}
#storyView .story-complete-icon{position:absolute;top:15px;left:5px;width:103px;height:133px;display:block;border:0;border-radius:0;background:transparent url('./assets/story_trophy_gold_20261103.svg') center/contain no-repeat;box-shadow:none;font-size:0}
#storyView .story-complete-headings{display:block;min-width:0;position:relative}
#storyView .story-complete-headings strong{display:block;color:#a23a1a;font-size:clamp(19px,5.5vw,30px);line-height:1.2;font-weight:950;margin:0 0 8px;word-break:normal}
#storyView .story-complete-headings p{display:none}
#storyView .story-complete-progress{position:relative;display:block;padding:9px 10px;margin:0 0 9px;border:1px solid #e4b874;border-radius:999px;background:#fffaf0dd;box-shadow:none}
#storyView .story-complete-progress-top{display:flex;gap:7px;align-items:center;width:100%;margin:0;color:#805022}
#storyView .story-complete-progress-top span{white-space:nowrap;font-size:9px;font-weight:900}
#storyView .story-complete-progress-top strong{white-space:nowrap;font-size:17px;line-height:1;color:#6f401b;font-weight:950}
#storyView .story-complete-progress-top em{white-space:nowrap;margin-left:auto;font-size:11px;color:#078747;font-weight:900;font-style:normal}
#storyView .story-complete-progress-bar{margin-top:7px;height:9px;border-radius:999px;background:#e6efdf;overflow:hidden}
#storyView .story-complete-progress-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#08b75a,#039747)}
#storyView .story-badge{display:flex;width:max-content;max-width:100%;align-items:center;justify-content:center;min-height:40px;margin:0 auto;border:2px solid #dba734;border-radius:13px;background:linear-gradient(180deg,#fff5c4,#ffe08b);color:#97521a;font-size:clamp(12px,3.5vw,17px);font-weight:950;line-height:1.3;padding:7px 9px;box-shadow:0 3px 5px #af7e2b38}
#storyView .story-complete>small{display:none}
#storyView .story-catalog-bottom,#storyView .story-hidden-action{display:none!important}
@media (max-width:360px){
 #storyView.story-page{padding:8px 8px 24px!important}
 #storyView .story-back-pill{font-size:12px;padding:0 8px}
 #storyView .story-chapter-tabs button{flex-basis:32px;width:32px;min-width:32px;height:32px;min-height:32px}
 #storyView .story-scene{grid-template-columns:23px 66px minmax(0,1fr) 80px;gap:5px;padding:8px 5px}
 #storyView .story-scene-number{width:23px;height:23px;font-size:13px}
 #storyView .story-scene-art{width:66px;height:79px}
 #storyView .story-scene-body h4{font-size:13px}
 #storyView .story-zh{font-size:11px}
 #storyView .story-py,#storyView .story-jp{font-size:10px}
 #storyView .story-listen{width:80px;font-size:9px;padding:7px 2px}
 #storyView .story-listen .story-volume-icon{width:13px;height:13px;flex-basis:13px}
 #storyView .story-complete{padding-left:89px}
 #storyView .story-complete-icon{width:83px;height:118px}
}
@media (min-width:560px){
 #storyView.story-page{max-width:850px;margin:0 auto;padding:15px 18px 42px!important}
 #storyView .story-top-nav{gap:14px}
 #storyView .story-chapter-tabs button{flex-basis:41px;width:41px;min-width:41px;height:41px;font-size:17px}
 #storyView .story-scene{grid-template-columns:40px 120px minmax(0,1fr) 143px;gap:14px;padding:13px 18px}
 #storyView .story-scene-art{width:120px;height:142px}
 #storyView .story-scene-number{width:36px;height:36px;font-size:18px}
 #storyView .story-scene-body h4{font-size:20px}
 #storyView .story-zh{font-size:16px}
 #storyView .story-py,#storyView .story-jp{font-size:13px}
 #storyView .story-listen{width:140px;min-height:42px;font-size:13px}
 #storyView .story-listen .story-volume-icon{width:19px;height:19px;flex-basis:19px}
 #storyView .story-complete{padding:25px 28px 25px 185px;min-height:220px}
 #storyView .story-complete-icon{width:155px;height:190px;left:16px;top:14px}
 #storyView .story-complete-headings strong{font-size:31px}
 #storyView .story-complete-progress-top strong{font-size:20px}
 #storyView .story-complete-progress-top span{font-size:14px}
 #storyView .story-badge{font-size:21px}
}
@media (prefers-reduced-motion:reduce){#storyView *{scroll-behavior:auto!important;transition:none!important}}
/* Final mobile geometry corrections */
#storyView .story-chapter-cover{aspect-ratio:auto;min-width:0;width:100%;height:auto;min-height:210px}
#storyView .story-synopsis strong::before{content:none!important;display:none!important}
#storyView .story-scene{grid-template-areas:none!important}
@media (min-width:560px){#storyView .story-chapter-cover{min-height:292px}}
/* Small-screen fidelity: one-line episode strip and completion headline */
@media (min-width:361px) and (max-width:559px){
 #storyView .story-chapter-tabs{gap:4px}
 #storyView .story-chapter-tabs button{flex:0 0 30px;width:30px;min-width:30px;height:30px;min-height:30px;font-size:14px}
 #storyView .story-complete-headings strong{font-size:clamp(17px,4.5vw,20px);letter-spacing:-.02em;white-space:nowrap}
}
#storyView .story-list-heading-festival::before,#storyView .story-list-heading-festival::after{content:'🏮';display:flex;justify-content:center;align-items:center;flex:0 0 22px;min-width:22px;height:27px;font-size:19px;line-height:1;opacity:.85;background:none}
#storyView .story-list-heading-festival::after{transform:none}


/*
 SANCHINA 2026-11-03 – scene-page-only visual match (r5)
 Everything below is intentionally scoped to #storyView. No home changes.
*/
#storyView.story-page{padding:10px 10px 32px!important;background:linear-gradient(180deg,#fff8ed,#fffefa 52%,#fff7ec);}
#storyView .story-top-nav{margin-bottom:10px;}
#storyView .story-back-pill{height:39px;min-height:39px;padding:0 13px;border:1.5px solid #dbad70;font-size:14px;box-shadow:0 4px 8px #a66c3833;}
#storyView .story-chapter-tabs{gap:6px;}
#storyView .story-chapter-tabs button{width:34px;min-width:34px;flex-basis:34px;height:34px;min-height:34px;font-size:15px;}
#storyView .story-cover-progress{right:12px;top:11px;border:1px solid #eac483;padding:8px 12px;background:rgba(255,249,230,.82);backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px);box-shadow:0 4px 12px #43231628;}
#storyView .story-cover-progress-label{font-size:11px;letter-spacing:.01em;}
#storyView .story-cover-progress strong{font-size:18px;}
#storyView .story-synopsis{position:relative;isolation:isolate;min-height:100px;padding:13px 15px 17px;margin:0 0 7px;border:1px solid #efc5c2;border-radius:16px;background:linear-gradient(105deg,rgba(255,251,249,.98),rgba(255,246,241,.95));box-shadow:0 4px 11px #cc7c7227;}
#storyView .story-synopsis::after{content:"";display:block;position:absolute;right:0;bottom:0;width:48%;max-width:210px;height:100%;opacity:.42;z-index:0;background:url('./assets/story_synopsis_pastel_mountains_20261103.svg') right bottom/contain no-repeat;pointer-events:none;}
#storyView .story-synopsis strong,#storyView .story-synopsis p{z-index:1;position:relative;}
#storyView .story-synopsis strong{font-size:18px;color:#ba141c;text-shadow:0 1px 0 #fff;}
#storyView .story-synopsis p{font-size:12px;line-height:1.72;font-weight:700;color:#572b25;}
#storyView .story-list-heading-festival{position:relative;display:flex;justify-content:center;align-items:center;padding:0;min-height:78px;height:78px;margin:5px 0 5px;background:url('./assets/story_heading_butterflies_clouds_20261103.svg') center/100% 100% no-repeat;}
#storyView .story-list-heading-festival::before,#storyView .story-list-heading-festival::after{content:none!important;display:none!important;}
#storyView .story-list-heading-festival h3{display:flex;align-items:center;justify-content:center;min-width:190px;height:46px;margin:0 auto;padding:0 22px 0;border:2px solid #dba535;border-radius:11px;background:linear-gradient(180deg,#fffaf0,#ffe6a6);font-size:clamp(18px,5.1vw,25px);color:#7d3f16;box-shadow:0 2px 0 #fff5d1 inset,0 5px 10px #bf8b332b;z-index:2;line-height:1.1;white-space:nowrap;}
#storyView .story-list-heading-festival h3::before,#storyView .story-list-heading-festival h3::after{content:'❖';top:50%;font-size:10px;color:#ca8c28;}
#storyView .story-list-heading-festival h3::before{left:7px}#storyView .story-list-heading-festival h3::after{right:7px}
/* Put image and audio in a vertical side rail; give text the rest of the entire row. */
#storyView .story-scene-list{gap:11px;margin:0 0 13px;}
#storyView .story-scene{
 position:relative;display:grid;grid-template-columns:111px minmax(0,1fr);grid-template-rows:106px auto;
 grid-template-areas:"art body" "action body"!important;column-gap:11px;row-gap:7px;
 align-items:start;min-height:0;max-width:100%;padding:10px 11px 12px 10px;
 border:1px solid #e3bf8e;border-radius:20px;
 background:linear-gradient(140deg,#fffefa,#fffaf3 65%,#fffdf8);
 box-shadow:0 2px 0 #fffbec inset,0 5px 10px #9c734028;
 overflow:hidden;
}
#storyView .story-scene::after{content:"";position:absolute;top:-10px;right:-10px;pointer-events:none;width:48px;height:48px;opacity:.19;background:conic-gradient(from -20deg at 100% 0%,transparent 0 55%,#e8ae56 56% 59%,transparent 60% 100%);}
#storyView .story-scene-number{position:absolute;z-index:4;left:5px;top:10px;grid-area:unset!important;display:grid;place-items:center;width:32px;height:32px;margin:0;border-radius:50%;font-size:17px;box-shadow:0 3px 6px #09693a35;}
#storyView .story-scene-art{grid-area:art!important;display:block;width:92px;height:106px;max-width:none;margin-left:17px;overflow:hidden;border:2px solid #e1ae59;border-radius:14px;box-shadow:0 3px 7px #735b3a35;background:#fff0d8;}
#storyView .story-scene-art img{width:100%;height:100%;object-fit:cover;}
#storyView .story-scene-body{grid-area:body!important;display:flex;flex-direction:column;gap:4px;min-width:0;align-self:stretch;padding:0;max-width:100%;}
#storyView .story-scene-body h4{order:0;margin:0 0 1px;color:#773617;font-size:clamp(16px,4.45vw,22px);font-weight:950;line-height:1.22;overflow-wrap:anywhere;}
#storyView .story-zh{order:1;margin:0;color:#006d43;font-size:clamp(13px,3.6vw,18px);line-height:1.42;font-weight:900;overflow-wrap:anywhere;word-break:normal;}
#storyView .story-py{order:2;margin:0;color:#838a8e;font-size:clamp(10px,2.72vw,12.8px);line-height:1.43;font-weight:450;overflow-wrap:anywhere;}
#storyView .story-jp{order:3;margin:0;color:#50575d;font-size:clamp(11px,3vw,14px);line-height:1.48;overflow-wrap:anywhere;}
#storyView .story-own-card{order:4;margin:0;color:#979086;font-size:10px;line-height:1.4;overflow-wrap:anywhere;}
#storyView .story-scene-action{grid-area:action!important;display:flex;justify-content:center;align-items:flex-start;min-width:0;width:110px;max-width:100%;margin:0;align-self:start;}
#storyView .story-listen{width:109px;min-height:37px;padding:8px 5px;display:inline-flex;align-items:center;justify-content:center;gap:3px;background:linear-gradient(#19ca68,#05a74e);border:1px solid #07964b;border-radius:999px;color:#fff;font-weight:900;font-size:clamp(10px,2.66vw,12px);line-height:1.1;white-space:nowrap;box-shadow:0 4px 8px #08683d2f;}
#storyView .story-listen .story-volume-icon{flex:0 0 15px;width:15px;height:15px;stroke:#fff;stroke-width:2.5;fill:none;}
#storyView .story-find{max-width:110px;width:100%;min-height:39px;padding:5px 7px;line-height:1.32;border-radius:12px;text-align:center;white-space:normal;}
#storyView .story-scene.locked .story-scene-body .story-lock-label{order:0;}
#storyView .story-scene.locked .story-scene-body h4{order:1;}
#storyView .story-scene.locked .story-scene-body p{order:2;}
#storyView .story-complete{background:radial-gradient(ellipse at 22% 25%,#ffe5a6ac,transparent 55%),linear-gradient(135deg,#fffdf1,#fff0bf 65%,#ffe7a4);border:2px solid #e5af40;box-shadow:0 4px 2px #fdf2d3 inset,0 8px 16px #bd90364c;}
#storyView .story-complete::before{content:"";display:block;position:absolute;inset:0;background:url('./assets/story_completion_ornaments_20261103.svg') center/100% 100% no-repeat;pointer-events:none;z-index:0;}
#storyView .story-complete::after{z-index:0;}
#storyView .story-complete-headings,#storyView .story-complete-progress,#storyView .story-badge{z-index:2;position:relative;}
#storyView .story-complete-headings strong{color:#9a3018;text-shadow:0 1px 0 #fff;}
#storyView .story-complete-progress{border-color:#e1af60;background:#fff9e9e8;box-shadow:0 2px 5px #aa7e3522;}
#storyView .story-badge{background:linear-gradient(180deg,#fff3c2,#f9d778);border-color:#d79d27;box-shadow:0 1px 0 #fff7d6 inset,0 3px 5px #8f63262b;}
/* Wider screens keep the same illustration/audio rail but increase artwork and readable copy. */
@media(min-width:560px){
 #storyView .story-scene{grid-template-columns:160px minmax(0,1fr);grid-template-rows:148px auto;gap:9px 18px;padding:14px 17px 16px;}
 #storyView .story-scene-art{margin-left:27px;width:130px;height:148px;border-radius:15px;}
 #storyView .story-scene-number{left:9px;top:17px;width:37px;height:37px;font-size:20px;}
 #storyView .story-scene-action{width:155px;}
 #storyView .story-listen{width:147px;min-height:41px;font-size:13px;}
 #storyView .story-listen .story-volume-icon{flex-basis:18px;width:18px;height:18px;}
 #storyView .story-scene-body h4{font-size:22px;}
 #storyView .story-zh{font-size:17px;}
 #storyView .story-py,#storyView .story-jp{font-size:13px;}
 #storyView .story-own-card{font-size:11px;}
 #storyView .story-list-heading-festival{height:92px;}
 #storyView .story-list-heading-festival h3{height:55px;font-size:25px;}
 #storyView .story-synopsis::after{max-width:295px;}
}
@media(max-width:360px){
 #storyView .story-scene{grid-template-columns:90px minmax(0,1fr);grid-template-rows:88px auto;column-gap:8px;row-gap:7px;padding:10px 8px 11px;}
 #storyView .story-scene-art{margin-left:12px;width:76px;height:88px;}
 #storyView .story-scene-number{width:27px;height:27px;font-size:15px;left:4px;top:10px;}
 #storyView .story-scene-action{width:90px;}
 #storyView .story-listen{width:90px;font-size:9px;padding:7px 3px;min-height:33px;}
 #storyView .story-listen .story-volume-icon{flex-basis:13px;width:13px;height:13px;}
 #storyView .story-scene-body h4{font-size:14px;}
 #storyView .story-zh{font-size:12px;}
 #storyView .story-py{font-size:10px;}
 #storyView .story-jp{font-size:10.5px;}
 #storyView .story-list-heading-festival{height:69px;min-height:69px;}
 #storyView .story-list-heading-festival h3{min-width:180px;font-size:17px;height:43px;}
}
@media(prefers-reduced-motion:reduce){#storyView *{transition:none!important;}}
