
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt{position:relative!important;inset:auto!important;width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;transform:none!important;padding:0!important;display:block!important;font-family:serif!important;overflow:clip!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-header{position:absolute!important;inset:0 0 auto!important;height:52px!important;padding:7px 16px!important;background:#081523bb;border-bottom:1px solid #a88d52;display:flex!important;gap:14px;align-items:center}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-header h1{font:22px serif!important;flex:1;margin:0;text-align:center}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt #world-back,html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt #world-progress{position:static!important;height:36px!important;width:auto!important;font:16px serif!important;padding:6px 14px!important;border:1px solid #a58c52!important;box-shadow:none!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt #content{position:absolute!important;left:18px!important;top:68px!important;width:27%!important;height:calc(100% - 128px)!important;display:flex!important;flex-direction:column;gap:14px!important;z-index:4}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-person{width:100%!important;height:50%!important;min-height:96px!important;flex:1;overflow:clip!important;border:1px solid #b5985d!important;box-shadow:inset 0 0 0 3px #0c1a26}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-person-art{width:62%!important;left:-10px!important;height:100%!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-nameplate{left:48%!important;right:0!important;bottom:0!important;height:100%!important;border:0!important;background:linear-gradient(90deg,transparent,#0a1728de);justify-content:center;gap:8px!important;align-items:center}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-nameplate strong{font:23px serif!important;line-height:1.2!important}.mobile-world-rebuilt .world-nameplate strong:before,.mobile-world-rebuilt .world-nameplate strong:after{display:none!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-nameplate small{font:15px serif!important;text-align:center}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-badge{writing-mode:horizontal-tb!important;left:7px!important;top:7px!important;width:auto!important;height:auto!important;font:12px serif!important;letter-spacing:0!important;padding:3px 6px!important;box-shadow:none!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-check{display:none!important}.mobile-world-rebuilt .world-person[aria-pressed=true]{border:2px solid #ffe6a3!important;box-shadow:0 0 10px #ebc47077!important}
.mobile-world-detail{position:absolute;left:31%;top:54px;right:0;bottom:42px;background:linear-gradient(90deg,#08142266,transparent);overflow:clip}
.mobile-world-detail .mobile-world-art{position:absolute!important;inset:0!important;width:65%!important;height:100%!important;filter:drop-shadow(0 5px 10px #0008)}
.mobile-world-info{position:absolute;left:60%;right:3%;top:14%;color:#f9e2b1}.mobile-world-info h2{font:38px serif;margin:10px 0 18px;text-shadow:0 2px 3px #000}.mobile-world-info small{font:17px serif}.mobile-world-info p{font:16px serif;color:#dac8a3}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-footer{position:absolute!important;left:72%!important;top:auto!important;bottom:62px!important;width:26%!important;height:auto!important;padding:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;z-index:5;border:0;background:none}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-footer #world-deck,html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-footer #world-reward{font:15px serif!important;width:100%!important;min-width:0!important;height:38px!important;padding:3px!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-footer #world-confirm{grid-column:1/-1;grid-row:2;height:48px!important;width:100%!important;font:23px serif!important;background:linear-gradient(#e0c48b,#a98a47)!important;color:#14202a!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-footer #expedition-entry{grid-column:1/-1;grid-row:3;height:44px!important;width:100%!important;font:17px serif!important;padding:3px!important}.mobile-world-rebuilt #expedition-entry small{display:none!important}
html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-tools{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:40px!important;width:100%!important;display:flex;align-items:center;justify-content:center;gap:24px!important;border-top:1px solid #a58c5255;background:#081421cc}
/* Story artwork fills the landscape screen; controls remain on its sides. */
html.mobile-story #storyApp:has(#sceneView:not([hidden])){position:relative!important;width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;max-width:none!important;padding:0!important;overflow:clip!important;transform:none!important}
html.mobile-story #storyApp:has(#sceneView:not([hidden]))>header{position:absolute!important;left:0;right:0;top:0;height:48px!important;padding:6px 14px!important;background:linear-gradient(#07121be8,#07121b55)!important;border:0!important;z-index:5}
html.mobile-story #sceneView:not([hidden]){position:absolute!important;inset:0!important;height:100%!important;display:block!important;border:0!important;margin:0!important}
html.mobile-story #sceneView .scene-art{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important}
html.mobile-story #sceneArt{width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 50%!important;display:block;filter:none!important}
html.mobile-story .scene-title{position:absolute!important;left:16px!important;top:66px!important;bottom:auto!important;background:#0916239e!important;padding:10px 16px!important;border-left:2px solid #d7b877}
html.mobile-story .scene-title h1{font:25px serif!important}.mobile-story .scene-title small{font-size:15px!important}
html.mobile-story #sceneView .dialogue{position:absolute!important;left:auto!important;right:16px!important;bottom:44px!important;top:auto!important;width:245px!important;max-width:calc(32 * var(--pc-layout-w, 1vw))!important;max-height:70%!important;padding:12px!important;border:1px solid #bba46b!important;background:#0a1d2bde!important;border-radius:3px!important;overflow:auto!important;display:flex!important;flex-direction:column;gap:8px;font-size:16px!important}
html.mobile-story .dialogue-top{font-size:16px!important}html.mobile-story #dialogueText{font-size:17px!important;line-height:1.5!important;margin:0!important}
html.mobile-story .dialogue #goal{position:static!important;transform:none!important;font:16px serif!important;padding:7px!important;min-height:36px!important;width:100%}
html.mobile-story .dialogue .actions{position:static!important;width:100%!important;display:flex!important;margin:0!important;gap:8px!important}
html.mobile-story .dialogue .actions button{font:17px serif!important;min-height:40px!important;padding:7px!important;flex:1!important}
html.mobile-story #storyApp:has(#sceneView:not([hidden]))>footer{position:absolute!important;bottom:0!important;left:0;right:0;height:32px!important;background:#071420bb;z-index:5;font-size:13px!important;text-align:center;padding:6px}
html.mobile-story #cinematicPanel>button{font-size:16px!important;padding:7px!important;min-height:36px!important}

.mobile-world-detail .mobile-world-art{object-fit:contain!important;object-position:center bottom!important;mask-image:linear-gradient(0deg,transparent,#000 10%)}
html.shenlu-mobile body.stage-landscape #app{position:relative!important;inset:auto!important;transform:none!important;width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;padding:10px 16px!important;grid-template-rows:1fr auto!important}
html.shenlu-mobile body.stage-landscape #content.challenge-landscape{grid-template-rows:36px minmax(0,1fr) auto 48px!important;gap:8px!important}
html.shenlu-mobile body.stage-landscape #content .challenge-top h1{font:24px serif!important}.challenge-top span{font-size:18px!important}
html.shenlu-mobile body.stage-landscape .challenge-scene{gap:36px!important}.challenge-versus{font-size:35px!important}.challenge-name{padding:15px 10px 8px!important}.challenge-name h2{font-size:25px!important}.challenge-name small,.challenge-name p{font-size:15px!important;margin:3px!important}
html.shenlu-mobile body.stage-landscape .challenge-info p{font-size:15px!important;line-height:1.3}.challenge-info{gap:6px 20px!important}.challenge-actions{gap:8px!important;padding-top:7px!important}
html.shenlu-mobile body.stage-landscape button{font-size:16px!important;min-height:40px!important;padding:6px 12px!important}.challenge-actions .primary{min-width:160px!important;font-size:20px!important}

html.shenlu-mobile #dialog{width:min(850px,calc(92 * var(--pc-layout-w, 1vw)))!important;padding:14px!important;border-radius:3px!important;background:linear-gradient(130deg,#102c3e,#061321)!important;border:1px solid #c6a971!important}
html.shenlu-mobile #dialog>header{display:flex!important;align-items:center;justify-content:space-between;position:sticky;top:-14px;background:#102739;z-index:3;padding:8px 0!important}
html.shenlu-mobile #dialogTitle{font:22px serif!important;color:#f8dda4!important}html.shenlu-mobile #dialog .action-choice{display:block!important;width:100%!important;text-align:left;min-height:46px!important;padding:9px 14px!important;margin:6px 0!important;font-size:17px!important;background:#153448;border:1px solid #987d4d;border-radius:3px}
html.shenlu-mobile #dialog .detailArt{max-height:220px!important;width:auto!important;max-width:35%!important;float:left;margin:0 16px 10px 0!important}html.shenlu-mobile #dialogBody{font-size:17px!important;line-height:1.6!important;overflow:auto}
html.shenlu-mobile #stage .mobile-ambush:before,html.shenlu-mobile #stage .discard-label,html.shenlu-mobile #stage .field-display:after{font-size:22px!important;width:75px!important;left:-10px!important;text-align:center!important;letter-spacing:0!important}

html.shenlu-mobile body.collection-landscape>main#app{position:relative!important;inset:auto!important;transform:none!important;width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;padding:6px 12px!important;grid-template-rows:28px 34px minmax(0,1fr) 18px!important;gap:5px!important}
html.shenlu-mobile body.collection-landscape #app>header strong{font-size:20px!important}.collection-landscape #app>header span{font-size:14px!important}
html.shenlu-mobile body.collection-landscape button,html.shenlu-mobile body.collection-landscape select,html.shenlu-mobile body.collection-landscape input{font-size:15px!important;min-height:34px!important;padding:5px 9px!important}.collection-landscape #nav{gap:6px!important}.collection-landscape #nav button{flex:0 1 auto!important}
html.shenlu-mobile body.collection-landscape #content.landscape-collection{grid-template-rows:34px 61px minmax(0,1fr) 38px!important;gap:5px!important}
html.shenlu-mobile body.collection-landscape .lc-top{gap:8px!important}.lc-top h1{font-size:20px!important;margin-right:5px!important}.lc-count{font-size:14px!important;white-space:nowrap}
html.shenlu-mobile body.collection-landscape .lc-filters{padding:4px 8px!important;gap:8px!important;overflow-x:auto!important;flex-wrap:nowrap!important}.lc-filters label{font-size:12px!important;gap:2px!important;flex:none}.lc-filters input{width:130px!important}.lc-filters select{width:110px!important}.lc-filters button{white-space:nowrap;flex:none}
html.shenlu-mobile body.collection-landscape .lc-body{grid-template-columns:48% 1fr!important;gap:8px!important}.collection-landscape .editing .lc-body{grid-template-columns:36% 24% 1fr!important}
html.shenlu-mobile body.collection-landscape .lc-library,html.shenlu-mobile body.collection-landscape .lc-deck{grid-template-rows:24px minmax(0,1fr) 34px!important;gap:4px!important;padding:6px!important}.lc-library h2{font-size:17px!important;line-height:23px!important}
html.shenlu-mobile body.collection-landscape .lc-grid{grid-template-columns:repeat(3,1fr)!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:5px!important}.lc-card strong,.lc-deck-grid .lc-card strong{font-size:15px!important;line-height:18px!important}.lc-card small{font-size:12px!important;line-height:14px!important}.lc-card{padding:3px!important;gap:1px!important}.lc-pager{font-size:14px!important;gap:6px!important}.lc-deck-grid .lc-card img{display:none!important}.lc-deck-grid .lc-card{justify-content:center!important}
html.shenlu-mobile body.collection-landscape .lc-detail.card-detail{grid-template-rows:auto minmax(0,1fr) auto!important}.lc-detail .detail-top{padding:3px 7px!important}.lc-detail .detail-top h1{font-size:22px!important;line-height:27px!important}.lc-detail .detail-tabs button{font-size:14px!important}.lc-detail .detail-copy{min-height:0!important;max-height:110px!important}.lc-detail .detail-copy p{font-size:17px!important;line-height:1.5!important}.lc-detail .detail-copy strong,.lc-detail .detail-stats,.lc-detail .detail-actions p{font-size:15px!important}.lc-detail .detail-overlay{padding:6px!important;gap:3px!important}.lc-detail .detail-actions .row{gap:5px!important}.lc-detail .pager{font-size:14px!important;gap:4px!important}
html.shenlu-mobile body.collection-landscape .browsing .lc-detail.card-detail{grid-template-columns:38% 1fr!important;grid-template-rows:auto minmax(0,1fr)!important}.browsing .lc-detail .detail-copy{min-height:0!important;max-height:140px!important}
html.shenlu-mobile body.collection-landscape .lc-footer{gap:9px!important;padding-top:4px!important}.lc-footer p{font-size:13px!important;line-height:1.3!important}.lc-footer button{min-height:32px!important}.collection-landscape #message{font-size:13px!important;line-height:18px!important}
html.shenlu-mobile.mobile-expedition #detail .stage-story-caption{width:100%!important;padding:10px!important;text-align:left!important;background:linear-gradient(transparent,#071321ee)!important}.mobile-expedition #detail .stage-story-caption h2{font:23px serif!important;letter-spacing:1px!important}.mobile-expedition #detail .stage-story-caption>small{font-size:14px!important}.mobile-expedition #detail .stage-story-caption p{font-size:15px!important;line-height:1.4!important;margin:4px 0 0!important}.mobile-expedition #detail .stage-story-hero>img{object-fit:cover!important}.mobile-expedition .stage-story-hero{min-height:100px!important}

html.shenlu-mobile.mobile-expedition #app{position:relative!important;inset:auto!important;transform:none!important;width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;padding:8px 12px!important;display:flex!important;flex-direction:column!important;font:16px serif!important;overflow:clip!important}
html.shenlu-mobile.mobile-expedition #app>header{display:flex!important;position:static!important;height:36px!important;min-height:36px!important;flex:none!important;gap:10px!important;border-bottom:1px solid #b3955d!important}html.shenlu-mobile.mobile-expedition #app>header h1{font:21px serif!important;letter-spacing:1px!important;flex:1;text-align:center!important;margin:0!important}html.shenlu-mobile.mobile-expedition #app>header button,html.shenlu-mobile.mobile-expedition #app>header a{font:16px serif!important;padding:5px 10px!important;min-height:32px!important}html.shenlu-mobile.mobile-expedition #expedition-progress{font-size:14px!important}
html.shenlu-mobile.mobile-expedition #notice{display:block!important;position:static!important;font:13px/1.3 serif!important;height:18px!important;min-height:18px!important;padding:0!important;margin:4px 0!important}
html.shenlu-mobile.mobile-expedition #app .layout{display:grid!important;grid-template-columns:35% 1fr!important;gap:12px!important;position:relative!important;flex:1!important;min-height:0!important;height:auto!important}
html.shenlu-mobile.mobile-expedition #app #stages{display:grid!important;height:100%!important;grid-template-columns:repeat(2,1fr)!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:7px!important;overflow:auto!important}
html.shenlu-mobile.mobile-expedition #app #stages .stage-card{min-height:0!important;border:1px solid #ae9058!important}.mobile-expedition .stage-plate{min-height:25px!important;padding:4px!important}.mobile-expedition .stage-plate strong{font:14px serif!important}.mobile-expedition .stage-status{font:12px serif!important;padding:2px 4px!important}
html.shenlu-mobile.mobile-expedition #app #detail{display:flex!important;flex-direction:column!important;height:100%!important;width:100%!important;min-height:0!important;padding:8px!important;gap:7px!important;overflow:clip!important;margin:0!important;position:relative!important;border:1px solid #ad9158!important;font:16px serif!important}
html.shenlu-mobile.mobile-expedition #app #detail>header{display:none!important}
html.shenlu-mobile.mobile-expedition #app .stage-story-hero{display:block!important;position:relative!important;flex:1!important;width:100%!important;min-height:100px!important;max-height:none!important;height:auto!important;grid-column:auto!important;grid-row:auto!important}
html.shenlu-mobile.mobile-expedition #app .detail-tabs{position:static!important;display:flex!important;flex:none!important;flex-wrap:wrap!important;gap:6px!important;margin:0!important;padding:0!important;width:100%!important;grid-template-columns:none!important}
html.shenlu-mobile.mobile-expedition #app .detail-tabs button{font:15px serif!important;min-height:36px!important;height:auto!important;width:auto!important;min-width:0!important;max-width:none!important;padding:7px 11px!important;border:1px solid #b4975a!important;border-radius:2px!important;flex:1 0 auto!important}
html.shenlu-mobile.mobile-expedition #app .stage-ready{position:static!important;display:block!important;font:14px serif!important;padding:0!important;background:none!important}
html.shenlu-mobile.mobile-expedition #app .detail-actions{display:block!important;position:static!important;flex:none!important;margin:0!important;padding:6px 0 0!important;grid-column:auto!important}html.shenlu-mobile.mobile-expedition #app .detail-actions>button{font:20px serif!important;height:42px!important;min-height:42px!important;padding:6px!important;margin:0!important;width:100%!important}
html.shenlu-mobile.mobile-expedition #app .stage-info-modal{position:fixed!important;inset:0!important;width:min(850px,calc(92 * var(--pc-layout-w, 1vw)))!important;height:auto!important;max-height:calc(88 * var(--pc-layout-h, 1dvh))!important;margin:auto!important;padding:16px!important}.mobile-expedition .stage-info-modal header{height:auto!important;display:flex!important}.mobile-expedition .detail-panel h3{font-size:21px!important}.mobile-expedition .detail-panel p,.mobile-expedition .detail-panel .source{font-size:17px!important}
html.shenlu-mobile.mobile-expedition #app .stage-story-hero>img{object-position:50% 0%!important}

html.shenlu-mobile body.collection-landscape #content .lc-grid{grid-template-columns:repeat(3,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
html.shenlu-mobile body.collection-landscape #content .lc-top h1{font-size:22px!important;line-height:28px!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-top{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-height:36px!important;height:auto!important;padding:3px 6px!important;gap:6px!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-top h1{font-size:20px!important;line-height:28px!important;white-space:nowrap!important;flex:none}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-tabs{display:flex!important;flex-direction:row!important;gap:3px!important;flex:1!important;justify-content:flex-end!important;width:auto!important;padding:0!important;margin:0!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-tabs button{font-size:13px!important;min-height:29px!important;padding:3px 5px!important;flex:none!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-overlay{justify-content:flex-start!important;align-items:stretch!important;overflow:auto!important;display:flex!important;flex-direction:column!important;padding:6px!important;gap:6px!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-overlay>*{flex-shrink:0!important;max-width:100%!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-copy{min-height:0!important;max-height:none!important;overflow:visible!important}.collection-landscape .lc-detail .detail-copy p{font:17px/1.5 sans-serif!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-actions .row{flex-direction:row!important}

html.shenlu-mobile body.collection-landscape #content.editing .lc-body{grid-template-columns:34% 23% minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:7px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-detail.card-detail{grid-template-columns:26% 1fr!important;grid-template-rows:34px minmax(0,1fr)!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-detail .detail-top{grid-column:1/-1!important;grid-row:1!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-detail .detail-background{grid-column:1!important;grid-row:2!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-detail .detail-overlay{grid-column:2!important;grid-row:2!important;min-height:0!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-deck-grid .lc-card{min-height:0!important;padding:2px!important}.editing .lc-deck-tabs{gap:3px!important}.editing .lc-deck-tabs button{padding:3px!important;font-size:14px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-detail .detail-tabs button{font-size:12px!important;padding:3px!important}

html.shenlu-mobile body.collection-landscape #content.editing .lc-deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:4px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-deck-grid .lc-card strong{font-size:14px!important;line-height:16px!important;flex:none!important}.editing .lc-deck-grid .lc-card small{font-size:12px!important;line-height:14px!important;flex:none!important}

/* Readable journey warning on mobile. */
html.shenlu-mobile #runtime-error p {background:#101a26!important;color:#f4ead4!important;padding:14px 18px!important;border-radius:4px;line-height:1.6!important;}
html.shenlu-mobile #runtime-error button {background:#172637!important;color:#f3d58f!important;border:1px solid #b79855!important;padding:10px 20px!important;border-radius:4px;}
html.shenlu-mobile #runtime-error form {margin-top:10px;}

html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-header h1{align-self:center!important;line-height:30px!important;padding-top:6px!important;}

html.shenlu-mobile.landscape-world #app.mobile-world-rebuilt .world-header h1{height:30px!important;min-height:0!important;max-height:30px!important;padding:0!important;line-height:30px!important;transform:translateY(3px)!important;}

html.mobile-story #storyApp>header #deckLink{position:static!important;display:inline-flex;align-items:center;justify-content:center;flex:none!important;min-height:34px!important;height:34px!important;padding:4px 10px!important;margin:0 8px 0 auto!important;font-size:17px!important;color:#f4d78c!important;background:#17212ae8!important;border:1px solid #b69753!important;border-radius:6px!important;text-decoration:none;white-space:nowrap;}
html.mobile-story #storyApp>header #deckLink[hidden]{display:none!important;}
/* S25 landscape deck editing: keep room for cards and persistent touch actions. */
html.shenlu-mobile body.collection-landscape #content.landscape-collection{grid-template-rows:38px 0 minmax(0,1fr) 44px!important;gap:5px!important}
html.shenlu-mobile body.collection-landscape #content:not(.filters-open) .lc-filters{display:none!important}
html.shenlu-mobile body.collection-landscape #content.filters-open{grid-template-rows:38px 62px minmax(0,1fr) 44px!important}
html.shenlu-mobile body.collection-landscape #content .lc-top h1{display:none!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-body{grid-template-columns:32% 24% minmax(0,1fr)!important}
html.shenlu-mobile body.collection-landscape #content .lc-card strong{white-space:normal!important;font-size:15px!important;line-height:19px!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-copy p{font:18px/1.5 sans-serif!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-actions{position:sticky!important;bottom:0;background:#0d2030!important;padding:6px 0!important;z-index:2}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-actions button{min-height:42px!important;font-size:16px!important}
html.shenlu-mobile body.collection-landscape #content .lc-footer button{min-height:40px!important;font-size:15px!important}
html.shenlu-mobile body.collection-landscape #content>.lc-top{grid-row:1!important}
html.shenlu-mobile body.collection-landscape #content>.lc-filters{grid-row:2!important}
html.shenlu-mobile body.collection-landscape #content>.lc-body{grid-row:3!important;min-height:0!important}
html.shenlu-mobile body.collection-landscape #content>.lc-footer{grid-row:4!important}

html.shenlu-mobile .challenge-hero>.challenge-figure{position:absolute;left:10%;bottom:9%;width:80%;height:88%;filter:drop-shadow(0 8px 18px #0009)}

/* S25 landscape: native-sized save controls. */
html.shenlu-mobile body.saves-landscape>main#app{position:relative!important;inset:auto!important;transform:none!important;width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;padding:8px 16px!important}
html.shenlu-mobile body.saves-landscape #content.save-landscape{grid-template-rows:44px 44px 24px minmax(0,1fr) 44px;gap:6px}
html.shenlu-mobile body.saves-landscape button,html.shenlu-mobile body.saves-landscape input{font-size:16px!important;min-height:44px;padding:6px 12px}
html.shenlu-mobile body.saves-landscape .sl-head{gap:24px}.shenlu-mobile body.saves-landscape .sl-head h1{font-size:24px!important}
html.shenlu-mobile body.saves-landscape .sl-tabs{gap:8px}.shenlu-mobile body.saves-landscape .sl-tabs button{min-width:140px}
html.shenlu-mobile body.saves-landscape .sl-status{font-size:16px!important;line-height:24px}
html.shenlu-mobile body.saves-landscape .sl-body{grid-template-columns:55% minmax(0,1fr);gap:12px}.shenlu-mobile body.saves-landscape .sl-list{gap:8px}
html.shenlu-mobile body.saves-landscape .sl-slot{gap:4px;padding:8px 12px}.shenlu-mobile body.saves-landscape .sl-slot strong{font-size:20px}.shenlu-mobile body.saves-landscape .sl-slot span,.shenlu-mobile body.saves-landscape .sl-slot small{font-size:16px}
html.shenlu-mobile body.saves-landscape .sl-preview{padding:10px;gap:6px}.shenlu-mobile body.saves-landscape .sl-preview h2{font-size:22px!important}.shenlu-mobile body.saves-landscape .sl-preview p{font-size:16px}
html.shenlu-mobile body.saves-landscape .sl-actions{gap:8px;flex:none}.shenlu-mobile body.saves-landscape .sl-footer{gap:10px;font-size:16px}
html.shenlu-mobile body.saves-landscape .sl-footer>button:first-child{margin-right:24px;border-color:#b47b67;color:#ffd5c4}
html.shenlu-mobile body.saves-landscape .sl-backups{grid-template-columns:1fr 1fr;overflow:auto}.shenlu-mobile body.saves-landscape .sl-backups>section{padding:12px;gap:8px}.shenlu-mobile body.saves-landscape .sl-backups p{font-size:16px}.shenlu-mobile body.saves-landscape .sl-reset{padding-top:8px;gap:6px}.shenlu-mobile body.saves-landscape h2{font-size:22px}
/* Card text scrolls independently of its title and editing controls. */
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-overlay{display:flex!important;overflow:hidden!important;min-height:0!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-stats{flex:none!important;margin:0!important}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-copy{flex:1 1 0!important;min-height:0!important;overflow:auto!important;max-height:none!important;white-space:pre-line}
html.shenlu-mobile body.collection-landscape #content .lc-detail .detail-actions{position:static!important;flex:none!important;margin:0!important}
/* Fill the phone viewport while positioning artwork and controls independently. */
html.shenlu-mobile body:has(.stage>.art) .stage,html.shenlu-mobile body:has(.hero-info) .stage{width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;aspect-ratio:auto!important}
html.shenlu-mobile .stage>.art{object-fit:cover!important;object-position:center!important}
html.shenlu-mobile body:has(.stage>.art) .menu{width:30%;left:35%;bottom:12px;gap:6px}
html.shenlu-mobile body:has(.stage>.art) .menu button,html.shenlu-mobile body:has(.stage>.art) .menu a{font-size:16px;min-height:44px;padding:6px}
html.shenlu-mobile body:has(.stage>.art) .save-note{font-size:14px}.shenlu-mobile body:has(.stage>.art) .eyebrow{font-size:16px}
html.shenlu-mobile body:has(.hero-info) .scene{top:0;left:0;width:70%;height:90%;object-fit:contain;object-position:center}
html.shenlu-mobile body:has(.hero-info) .hero-info{top:12px;bottom:58px;padding:12px;overflow:auto}
html.shenlu-mobile body:has(.hero-info) .summary{font-size:16px;line-height:1.45}.shenlu-mobile body:has(.hero-info) .hero-info h2{font-size:24px}.shenlu-mobile body:has(.hero-info) .confirm{min-height:44px;font-size:22px;padding:6px}
html.shenlu-mobile body:has(.hero-info) .back,html.shenlu-mobile body:has(.hero-info) .random{min-height:44px;font-size:16px}
html.shenlu-mobile body:has(.hero-info) .countries{height:48px}.shenlu-mobile body:has(.hero-info) .countries button{font-size:16px;min-height:44px}.shenlu-mobile body:has(.hero-info) .hero-picker{bottom:60px}
html.shenlu-mobile #otherworld{position:relative!important;inset:auto!important;width:calc(100 * var(--pc-layout-w, 1vw))!important;height:calc(100 * var(--pc-layout-h, 1dvh))!important;transform:none!important}
html.shenlu-mobile #otherworld>header{height:58px}.shenlu-mobile #otherworld #back{left:12px;top:8px;width:140px;height:44px;font-size:16px}.shenlu-mobile #otherworld h1{left:25%;top:6px;width:50%;font-size:26px;line-height:32px}.shenlu-mobile #otherworld .subtitle{left:25%;top:38px;width:50%;font-size:16px;line-height:20px}.shenlu-mobile #otherworld .logo{left:auto;right:12px;top:4px;width:80px;height:52px}
html.shenlu-mobile #otherworld .hero{left:0;top:58px;width:38%;height:calc(100% - 58px)}.shenlu-mobile #otherworld .hero>img{left:0;top:0;width:100%;height:100%;object-fit:contain;object-position:center top}.shenlu-mobile #otherworld .hero h2{left:10%;top:auto;bottom:44px;width:80%;height:40px;line-height:38px;font-size:26px}.shenlu-mobile #otherworld .hero p{left:5%;top:auto;bottom:8px;width:90%;height:30px;font-size:16px;line-height:24px}
html.shenlu-mobile #otherworld #opponents{left:40%;right:12px;top:68px;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,104px);gap:8px}
html.shenlu-mobile #otherworld .opponent{width:100%;height:104px}.shenlu-mobile #otherworld .opponent img,.shenlu-mobile #otherworld .opponent svg{width:100%;height:76px}.shenlu-mobile #otherworld .opponent strong{height:28px;font-size:16px;line-height:26px}.shenlu-mobile #otherworld .opponent .check{width:24px;height:24px;font-size:18px;line-height:24px}
html.shenlu-mobile #otherworld .info{left:40%;right:12px;top:292px;width:auto;height:calc(100% - 320px);padding:8px 12px;display:grid;grid-template-columns:1fr 200px;grid-template-rows:28px 24px minmax(0,1fr) 44px;gap:4px 10px}
html.shenlu-mobile #otherworld .info h2,html.shenlu-mobile #otherworld .info p,html.shenlu-mobile #otherworld #prize,html.shenlu-mobile #otherworld .actions{position:static!important;width:auto!important;height:auto!important;margin:0!important}
html.shenlu-mobile #otherworld .info h2{font-size:24px;line-height:28px}.shenlu-mobile #otherworld #theme{grid-column:1;font-size:16px;line-height:22px}.shenlu-mobile #otherworld #description{grid-column:1;font-size:16px;line-height:20px;overflow:auto}.shenlu-mobile #otherworld #prize{grid-column:2;grid-row:1/4;padding:6px}.shenlu-mobile #otherworld #prize strong{font-size:16px;line-height:24px}.shenlu-mobile #otherworld #prize small{font-size:16px;line-height:22px}.shenlu-mobile #otherworld #rules{display:none}.shenlu-mobile #otherworld .actions{grid-column:1/-1;grid-row:4;gap:8px}.shenlu-mobile #otherworld .actions button,.shenlu-mobile #otherworld .actions #confirm{flex:1;width:auto;height:44px;font-size:17px;letter-spacing:0}.shenlu-mobile #otherworld .all-cards{left:40%;top:auto;bottom:3px;font-size:16px}

html.shenlu-mobile body.saves-landscape button,html.shenlu-mobile body.saves-landscape input{min-height:44px!important;line-height:22px!important}
html.shenlu-mobile body.saves-landscape .sl-slot span,html.shenlu-mobile body.saves-landscape .sl-slot small,html.shenlu-mobile body.saves-landscape .sl-preview p{font-size:16px!important}
html.shenlu-mobile body.saves-landscape #app>#content{height:100%!important}
html.shenlu-mobile #otherworld .info #rules{display:block!important;position:fixed!important;left:12px!important;bottom:86px!important;width:calc(36 * var(--pc-layout-w, 1vw))!important;height:24px!important;font-size:16px!important;line-height:24px!important;text-align:center;background:#081420b8}

/* Mobile repair 02: preserve the entire landscape gallery composition. */
/* Reserve the confirmation row; only the summary can scroll. */
html.shenlu-mobile body:has(.hero-info) .hero-info{overflow:hidden!important;min-height:0!important;gap:6px!important}
html.shenlu-mobile body:has(.hero-info) .hero-info>*{flex-shrink:0!important}
html.shenlu-mobile body:has(.hero-info) .hero-info .summary{flex:1 1 0!important;min-height:0!important;overflow:auto!important;margin:0!important}
html.shenlu-mobile body:has(.hero-info) .hero-info .confirm{flex:0 0 48px!important;height:48px!important;margin:0!important;width:100%!important}
html.shenlu-mobile body:has(.hero-info) .hero-info h1.word-art{height:72px!important;min-height:0!important;margin:0!important}
html.shenlu-mobile body:has(.hero-info) .hero-info h1.word-art>svg{height:68px!important;max-width:100%!important}
html.shenlu-mobile body:has(.hero-info) .hero-info .country-heading{min-height:36px!important;height:36px!important}
html.shenlu-mobile body:has(.hero-info) .hero-info .divider{margin:4px 0!important}
html.shenlu-mobile body:has(.hero-info) .hero-info h2{margin:4px 0!important;flex-shrink:0!important}
/* The deck link uses the header, above the story controls. */
html.mobile-story #storyApp>header{gap:8px!important;min-height:48px!important;display:flex!important;align-items:center!important}
html.mobile-story #storyApp>header>strong{flex:1!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.mobile-story #storyApp>header #deckLink{margin:0!important;min-height:40px!important;height:40px!important;font-size:16px!important}
html.mobile-story #storyApp>header button,html.mobile-story #storyApp>header>a{flex:none!important;white-space:nowrap}
html.shenlu-mobile #heroSwitchDialog .hero-switch-country{grid-template-rows:minmax(0,1fr)!important}

/* Gallery viewing area stays clear of controls; detail view supports gestures. */

/* Shared deck editor: one full-width card workspace and a persistent detail panel. */
html.shenlu-mobile body.collection-landscape #content.editing .lc-body{grid-template-columns:minmax(0,48fr) minmax(0,52fr)!important;gap:8px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-workspace{display:grid;grid-template-rows:40px minmax(0,1fr);gap:4px;min-width:0;min-height:0;overflow:hidden}
html.shenlu-mobile body.collection-landscape #content.editing .lc-workspace-tabs{display:flex;gap:6px;min-height:0}
html.shenlu-mobile body.collection-landscape #content.editing .lc-workspace-tabs button{flex:1;min-width:0;min-height:40px!important;font-size:17px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-workspace>[hidden]{display:none!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-library{grid-template-rows:minmax(0,1fr) 38px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-library>h2{display:none!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-deck{grid-template-rows:36px minmax(0,1fr) 38px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-grid,html.shenlu-mobile body.collection-landscape #content.editing .lc-deck-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-deck-grid .lc-card{justify-content:flex-start!important;gap:1px!important;min-width:0!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-deck-grid .lc-card img{display:block!important;flex:1 1 0!important;min-height:0!important;max-width:100%!important;width:100%!important;object-fit:contain!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-card small{font-size:13px!important;line-height:16px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-detail.card-detail{grid-template-columns:36% minmax(0,1fr)!important}

html.shenlu-mobile body.collection-landscape #content.editing .lc-deck{grid-template-rows:minmax(0,1fr) 38px!important}
html.shenlu-mobile body.collection-landscape #content.editing .lc-deck-tabs{display:none!important}

/* Editing keeps its existing footer routes; reserve the freed row for cards. */
html.shenlu-mobile body.collection-landscape:has(#content.editing) #nav{display:none!important}
html.shenlu-mobile body.collection-landscape:has(#content.editing)>main#app{grid-template-rows:28px 0 minmax(0,1fr) 18px!important}

html.shenlu-mobile body.collection-landscape:has(#content.editing)>main#app>#content{grid-row:3!important;min-height:0!important}
html.shenlu-mobile body.collection-landscape:has(#content.editing)>main#app>#message{grid-row:4!important}
