/* V1.68.4: every presentation rule is scoped to the explicit mobile mode. */
#mpApp,#mpTop,#mpBottom,#mpFullNav,.vanxOriginalVideo{display:none}
.mp-mobile{--mp-gold:#e8c685;--mp-ink:#eef3fb;--mp-muted:#9aadc5;--mp-panel:#102239;background:#071322;color:var(--mp-ink);color-scheme:dark}
.mp-mobile body{margin:0;background:#071322;padding:0 0 calc(82px + env(safe-area-inset-bottom));font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.mp-mobile #ssaAppShell{width:100%;max-width:none;margin:0;padding:0;background:none}
.mp-mobile .ssaBeachBackground,.mp-mobile .ssaTopbar,.mp-mobile .ssaInstallArea{display:none!important}
.mp-mobile main{width:100%;max-width:780px;min-width:0;margin:0 auto;padding:0 16px;box-sizing:border-box}
.mp-mobile main>.ssaPage{min-width:0;max-width:100%;padding:16px 0 24px;margin:0 auto}
.mp-mobile #premiumHome{padding:0;margin:0;width:100%;max-width:none;background:none}
/* Only the legacy landing-page siblings are parked. All tools retain their own page. */
.mp-mobile #premiumHome>:not(#mpApp){display:none!important}
.mp-mobile #mpApp{display:block;padding-bottom:12px}
.mp-mobile #mpApp [hidden],.mp-mobile #mpFullNav[hidden]{display:none!important}
.mp-mobile #mpApp *,.mp-mobile #mpTop *,.mp-mobile #mpBottom *{box-sizing:border-box}
.mp-mobile #mpTop{display:flex;justify-content:space-between;align-items:center;gap:16px;position:sticky;top:0;z-index:100;padding:10px max(16px,env(safe-area-inset-left));background:#071322f5;border-bottom:1px solid #e8c68526;backdrop-filter:blur(16px)}
.mp-mobile #mpTop button{border:0;background:none;color:var(--mp-gold);padding:6px;min-height:44px}
.mp-mobile #mpTop .mp-brand{display:flex;align-items:center;gap:10px;text-align:left;color:var(--mp-ink);font-size:18px;font-weight:750;letter-spacing:1.5px;padding:0}
.mp-mobile .mp-brand img{width:42px;height:42px;object-fit:cover;border:1px solid #e8c68565;border-radius:12px}
.mp-mobile .mp-brand b{color:var(--mp-gold)}
.mp-mobile .mp-brand small{display:block;margin-top:4px;color:var(--mp-muted);font-size:8px;letter-spacing:1.8px;font-weight:500}
.mp-mobile #mpTop svg{width:23px;height:23px}
.mp-mobile #mpBottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:110;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));background:#09182bf5;border-top:1px solid #e8c68538;backdrop-filter:blur(16px)}
.mp-mobile #mpBottom button{display:grid;justify-items:center;gap:5px;min-height:53px;min-width:0;border:0;border-radius:10px;background:none;color:#91a5bf;font:600 11px system-ui}
.mp-mobile #mpBottom svg{width:23px;height:23px}
.mp-mobile #mpBottom button[aria-current=page]{color:var(--mp-gold);background:#e8c6850b}
.mp-mobile #mpFullNav{display:flex;gap:5px;position:sticky;top:66px;z-index:90;padding:8px 16px;background:#0b1b2e;overflow:auto}
.mp-mobile #mpFullNav button{flex:1;white-space:nowrap;min-height:42px;border:1px solid #34465c;border-radius:8px;background:#102239;color:#e8c685}
.mp-mobile .mp-hero{isolation:isolate;position:relative;min-height:174px;margin:0 0 14px;border-radius:18px;overflow:hidden;border:1px solid #e8c68540;background:#10243b;display:flex;align-items:center;padding:22px 19px}
.mp-mobile .mp-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0a1b30 0%,#0a1b30ec 25%,#0a1b3050 100%)}
.mp-mobile .mp-hero>div{max-width:70%}
.mp-mobile .mp-hero>img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% center}
.mp-mobile .mp-hero small{font-size:8px;letter-spacing:1.7px;color:var(--mp-gold);font-weight:750}
.mp-mobile .mp-hero h1{font:700 clamp(21px,6vw,29px)/1.2 system-ui;color:#fff;margin:10px 0}
.mp-mobile .mp-hero p{font-size:11px;line-height:1.5;color:#bed0e3;margin:0}
.mp-mobile .mp-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mp-mobile .mp-shortcuts button{display:grid;grid-template-columns:27px 1fr 12px;align-items:center;gap:10px;min-height:76px;padding:14px 12px;border:1px solid #e8c68535;border-radius:14px;background:linear-gradient(140deg,#1a304b,#102137);color:#f4f5fb;text-align:left;font:650 13px system-ui}
.mp-mobile .mp-shortcuts svg{width:25px;height:25px;color:var(--mp-gold)}
.mp-mobile .mp-shortcuts button>span:last-child{color:var(--mp-gold);font-size:12px}
.mp-mobile .mp-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:24px 0 12px}
.mp-mobile .mp-title h2{font:650 17px/1.3 system-ui;color:#f0f4fc;margin:0}
.mp-mobile .mp-title button{border:0;background:none;color:var(--mp-gold);font-size:11px;min-height:44px;padding:4px}
.mp-mobile #mpFeatured .hpGate{position:relative;display:flex;flex-direction:column;min-height:235px;width:100%;margin:0;border:1px solid #e8c68540;border-radius:16px;overflow:hidden;background:#102239}
.mp-mobile #mpFeatured .hpGate>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mp-mobile #mpFeatured .hpGate:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#081626fa,#0816268a 55%,transparent);pointer-events:none}
.mp-mobile #mpFeatured .hpPanelHeading{display:none}
.mp-mobile #mpFeatured .hpNewsCopy{position:relative;z-index:1;display:flex;align-items:flex-start;flex-direction:column;justify-content:flex-end;width:100%;padding:95px 17px 17px;min-height:235px;gap:5px;inset:auto;max-width:none;background:none}
.mp-mobile #mpFeatured h3{font:650 20px/1.3 system-ui;margin:0;color:white}
.mp-mobile #mpFeatured p{font-size:12px;color:#c3d0df;margin:0;line-height:1.5}
.mp-mobile #mpFeatured time{font-size:10px;color:var(--mp-gold);order:-1}
.mp-mobile #mpApp .hpOutline{min-height:42px;border:1px solid #e8c68560;border-radius:9px;background:#12263b;color:var(--mp-gold);padding:9px 12px;font:600 12px system-ui;white-space:normal}
.mp-mobile #mpCommunity .vanxCommunity{margin:24px 0 0;padding:0;background:none;border:0;box-shadow:none}
.mp-mobile #mpCommunity header{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.mp-mobile #mpCommunity h2{font:650 17px/1.4 system-ui;color:white}
.mp-mobile #mpCommunity header p{font-size:11px;color:var(--mp-muted);margin:4px 0}
.mp-mobile #mpCommunity header button{margin-left:auto}
.mp-mobile #mpCommunity .vanxCommunityGrid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.mp-mobile #mpCommunity .vanxMatch{padding:9px;border:1px solid #e8c68530;background:#102239;border-radius:14px}
.mp-mobile #mpCommunity .vanxMatch h3{font-size:14px;color:white;line-height:1.4}
.mp-mobile .vanxVideoThumb,.mp-mobile .vanxMatch iframe{width:100%;max-width:none!important;aspect-ratio:16/9;height:auto;border-radius:9px}
.mp-mobile .mp-cn-preview{display:flex;align-items:center;gap:13px;width:100%;padding:10px;border:1px solid #e8c68530;border-radius:14px;background:#102239;color:white;text-align:left}
.mp-mobile .mp-cn-preview img{width:95px;height:74px;object-fit:cover;border-radius:8px}
.mp-mobile .mp-cn-preview span{flex:1;min-width:0}
.mp-mobile .mp-cn-preview small{font-size:8px;color:var(--mp-gold);letter-spacing:1px}
.mp-mobile .mp-cn-preview strong{display:block;font-size:13px;line-height:1.5;margin-top:7px}
.mp-mobile .mp-cn-preview b{color:var(--mp-gold)}
.mp-mobile .mp-version{text-align:center;color:#72849c;font-size:9px;letter-spacing:2px;margin:27px 0 8px}
.mp-mobile .mp-heading{padding:9px 0 23px}
.mp-mobile .mp-heading small{font-size:9px;letter-spacing:2px;color:var(--mp-gold)}
.mp-mobile .mp-heading h1{font:700 28px/1.2 system-ui;margin:9px 0;color:white}
.mp-mobile .mp-heading p{font-size:12px;color:var(--mp-muted);margin:0}
.mp-mobile .mp-menu{display:grid;gap:9px}
.mp-mobile .mp-item{display:flex;align-items:center;gap:13px;min-height:61px;min-width:0;width:100%;padding:13px 15px;border:1px solid #e8c68525;border-radius:13px;background:#102239;text-align:left;color:#eaf1fc;text-decoration:none;font:550 14px/1.4 system-ui}
.mp-mobile .mp-item svg{flex:none;width:23px;height:23px;color:var(--mp-gold)}
.mp-mobile .mp-item b{margin-left:auto;color:#b39d78;font-size:20px}
.mp-mobile .mp-language{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:14px;color:#d9e4f4}
.mp-mobile .mp-language select{max-width:60%;padding:12px;border:1px solid #536078;border-radius:10px;background:#102239;color:white;font-size:16px}
.mp-mobile #mpVideo .hpVideo{width:100%;margin:0;min-width:0;display:block;border:1px solid #e8c68535;border-radius:14px;background:#102239;overflow:hidden}
.mp-mobile #mpVideo .hpVideo img{width:100%;max-width:100%;height:auto;object-fit:contain}
.mp-mobile #mpVideo .hpNewsCopy{position:relative;inset:auto;padding:15px;background:#102239;max-width:none}
.mp-mobile #mpVideo .hpNewsCopy h3{font-size:18px}
.mp-mobile #mpCN{scroll-margin-top:85px;margin-top:24px}
.mp-mobile #mpCN .hpTeaser{padding:14px;margin:0;background:#102239;border:1px solid #e8c68530;border-radius:14px}
.mp-mobile #mpCN .hpTeaser>header,.mp-mobile #mpCN .hpTeaserVideo{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.mp-mobile #mpCN .hpTeaserThumb{width:100%;height:auto;aspect-ratio:16/9;min-height:0}
.mp-mobile #mpCN img{max-width:100%}
.mp-mobile #mpCN .hpTeaserCopy{padding:0}
.mp-mobile #mpCN .hpTeaserCopy h3{font-size:18px;line-height:1.4}
.mp-mobile #mpCN .hpEditorial{padding:12px 0 0;border:0}
.mp-mobile #mpCN h2{font-size:17px}
.mp-mobile #mpCN .hpXTimeline{max-width:100%;overflow-x:auto}
.mp-mobile #mpCN .hpXFeedFooter{flex-wrap:wrap}
.mp-mobile #mpApp button:focus-visible,.mp-mobile #mpBottom button:focus-visible,.mp-mobile #mpTop button:focus-visible{outline:2px solid var(--mp-gold);outline-offset:3px}
/* Tool layouts: retain inputs, IDs, event handlers, and calculation engine. */
.mp-mobile .ssaPage input,.mp-mobile .ssaPage select,.mp-mobile .ssaPage textarea{box-sizing:border-box;max-width:100%;font-size:16px}
.mp-mobile .ssaPage input:not([type=checkbox]):not([type=radio]):not([type=range]),.mp-mobile .ssaPage select{min-height:44px}
.mp-mobile .ssaPage button{touch-action:manipulation}
.mp-mobile .ssaPage h1{font-size:26px;line-height:1.25}
.mp-mobile .ssaSimpleGrid,.mp-mobile .ssaWorkspaceGrid,.mp-mobile .buildsBox>.grid,.mp-mobile .bkLayout,.mp-mobile .atkpenLayout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.mp-mobile .ssaSimpleFields,.mp-mobile .litchiGrid,.mp-mobile .atkpenFields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mp-mobile .ssaSimpleBox,.mp-mobile .ssaSimpleResults,.mp-mobile .box{min-width:0;padding:15px;border-radius:14px}
.mp-mobile .ssaSimpleHeader{padding:14px;min-height:150px}
.mp-mobile .ssaSimpleHeaderCopy{max-width:100%;padding:12px 0}
.mp-mobile .ssaSimpleHeaderCopy h1{font-size:26px}
.mp-mobile .ssaSimpleHeroArt{opacity:.15}
.mp-mobile .ssaSimpleHeaderCopy p{font-size:12px}
.mp-mobile .ssaSimpleOpenAdvanced{position:relative;inset:auto;font-size:12px;min-height:42px}
.mp-mobile .ssaSimpleResultGrid{grid-template-columns:minmax(0,1fr)}
.mp-mobile .ssaPageHead{flex-wrap:wrap;gap:12px}
.mp-mobile .ssaPageHead h2{font-size:23px}
.mp-mobile .ssaPageHead button{width:100%;min-height:46px}
.mp-mobile .build{width:auto;min-width:0}
.mp-mobile .build .grid,.mp-mobile .buildGrid{grid-template-columns:minmax(0,1fr)}
.mp-mobile .ssaMeta{min-width:0;padding:17px 12px;border-radius:16px;max-width:100%}
.mp-mobile .metaHead{min-height:0!important;flex-direction:row!important;gap:8px!important;margin:10px 0 22px!important}
.mp-mobile .metaHead>div:first-child{max-width:68%!important}
.mp-mobile .metaHead h1{font-size:28px!important}
.mp-mobile .metaSeal{width:28%!important;height:100px!important;margin:0!important}
.mp-mobile .metaPodium{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.mp-mobile .metaChampion{min-width:0;padding:15px 5px}
.mp-mobile .metaChampion img,.mp-mobile .metaChampion.first img{width:min(100%,76px);height:auto;aspect-ratio:1}
.mp-mobile .metaChampion h2{font-size:11px;overflow-wrap:anywhere}
.mp-mobile .metaChampion strong,.mp-mobile .metaChampion.first strong{font-size:24px}
.mp-mobile .metaRow,.mp-mobile .metaListHead{grid-template-columns:26px minmax(0,1fr) 70px;padding:12px 2px}
.mp-mobile .metaPerson{gap:8px}.mp-mobile .metaPerson span{font-size:12px;overflow-wrap:anywhere}
.mp-mobile .metaPerson img{width:38px;height:38px}
.mp-mobile .metaToolbar input{min-width:0;width:100%}
.mp-mobile .metaCompareScroll{max-width:100%;overflow:auto}
.mp-mobile .tbHeader{flex-direction:column;align-items:stretch;gap:12px}
.mp-mobile .tbHeader h1{font-size:25px}
.mp-mobile .tbSlots{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:9px}
.mp-mobile .tbSlot{min-width:0;padding:9px}
.mp-mobile .tbPortrait img{height:125px;object-fit:contain}
.mp-mobile .tbPortrait strong{min-height:42px;overflow-wrap:anywhere}
.mp-mobile .tbLevels{grid-template-columns:repeat(2,minmax(0,1fr))}
.mp-mobile .tbSlotSettings input{width:100%;min-width:0}
.mp-mobile .tbContributionColumns,.mp-mobile .tbEffectColumns{grid-template-columns:minmax(0,1fr)}
.mp-mobile .tbCosmoBtn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.mp-mobile .tbContributionColumn{min-width:0}
.mp-mobile .hpArchiveFilters{display:flex;flex-direction:column}
.mp-mobile .hpArchiveFilters input,.mp-mobile .hpArchiveFilters select{width:100%;min-width:0}
.mp-mobile #hpArchiveList{min-width:0}
.mp-mobile .vanxMediaGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.mp-mobile .vanxMediaTabs{gap:7px}
.mp-mobile .vanxMediaTabs button{flex:1;padding:10px;font-size:12px}
.mp-mobile #musicPanel{bottom:calc(80px + env(safe-area-inset-bottom));max-height:calc(100dvh - 165px);overflow:auto;max-width:calc(100vw - 24px);z-index:200}
.mp-mobile .atkpenTableWrap,.mp-mobile .resultsTableWrap{max-width:100%;overflow:auto}
.mp-mobile .ssaPage img{max-width:100%}
.mp-mobile .ssaPage canvas{max-width:100%}
@media(max-width:350px){.mp-mobile main{padding:0 10px}.mp-mobile .mp-shortcuts button{font-size:12px;gap:5px;padding:10px}.mp-mobile .ssaSimpleFields{grid-template-columns:minmax(0,1fr)}}
@media(orientation:landscape) and (max-height:600px){.mp-mobile #mpTop{padding-top:5px;padding-bottom:5px}.mp-mobile #mpBottom{padding-top:3px;padding-bottom:calc(3px + env(safe-area-inset-bottom))}.mp-mobile #mpBottom button{min-height:42px;grid-template-columns:23px auto;justify-content:center;align-items:center}.mp-mobile .mp-hero{min-height:155px}.mp-mobile .mp-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-mobile .tbSlots{grid-template-columns:repeat(6,minmax(0,1fr))}.mp-mobile .tbPortrait strong{font-size:10px}.mp-mobile .tbPortrait img{height:78px}.mp-mobile #mpFullNav{top:55px}}
@media(prefers-reduced-motion:no-preference){.mp-mobile [data-mp-screen]:not([hidden]){animation:mp-enter .18s ease-out}@keyframes mp-enter{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}
.mp-mobile #ssaAppShell #premiumHome #mpApp{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
.mp-mobile #ssaAppShell #premiumHome #mpApp h1,.mp-mobile #ssaAppShell #premiumHome #mpApp h2,.mp-mobile #ssaAppShell #premiumHome #mpApp h3,.mp-mobile #ssaAppShell #premiumHome #mpApp p,.mp-mobile #ssaAppShell #premiumHome #mpApp button{font-family:inherit!important}
.mp-mobile #ssaAppShell #premiumHome #mpApp .mp-hero h1{font-size:25px!important;font-weight:700!important;line-height:1.2!important}
.mp-mobile #ssaAppShell #premiumHome #mpApp .mp-title h2{font-size:17px!important;font-weight:650!important}
.mp-mobile #ssaAppShell main>.ssaPage[data-ssa-page=home]{padding:16px 0 24px!important}
.mp-mobile #mpApp #mpParking{display:none!important}
.mp-mobile #mpApp #ssaSeoInfo{margin:20px 0 0;width:100%;padding:14px;max-width:100%;box-sizing:border-box}
#mpParking{display:none!important}
.mp-mobile body::after{display:none}
.mp-mobile .ssaSimplePage .ssaSimpleFields label{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0}
.mp-mobile .ssaSimplePage .ssaSimpleFields label>span{min-height:30px;line-height:1.35;font-size:12px;font-weight:600;overflow-wrap:normal}
.mp-mobile .ssaSimplePage .ssaSimpleFields input,.mp-mobile .ssaSimplePage .ssaSimpleFields select{width:100%;min-width:0}
.mp-mobile .ssaSimplePage .ssaSimpleGrid{grid-template-columns:minmax(0,1fr)}
.mp-mobile .ssaSimplePage .ssaSimpleBoxHead h2,.mp-mobile .ssaSimplePage .ssaSimpleResultsHead h2{font:650 18px/1.4 system-ui}
.mp-mobile .ssaSimplePage .ssaSimpleResults{position:static}
.mp-mobile .vanxOriginalVideo{display:block;text-align:center;color:var(--mp-gold);font-size:12px;padding:10px;min-height:40px}
.mp-mobile #ssaAppShell #premiumHome #mpApp .mp-hero>div{max-width:75%}
.mp-mobile #ssaAppShell #premiumHome #mpApp .mp-hero p{font-size:11px!important}
.mp-mobile .tbSlots{align-items:start}
.mp-mobile #mpApp .hpThanks{margin:18px 0 0;display:flex;flex-wrap:wrap;padding:14px;border:1px solid #e8c68525;background:#102239;border-radius:13px}
.mp-mobile #mpApp .hpThanks strong{font-size:13px}
.mp-mobile #mpApp .hpThanks p{font-size:12px}
.mp-mobile #mpApp .hpSocials{display:flex;justify-content:center;gap:18px;margin:24px 0}
.mp-mobile #mpApp #mpVideo .hpPanelHeading{display:none}
.mp-mobile #mpApp #mpVideo .hpVideo{min-height:0;height:auto}
.mp-mobile #mpApp #mpVideo .hpNewsCopy{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;min-height:0!important;padding:16px!important;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.mp-mobile #mpApp #mpVideo h3{font:650 18px/1.35 system-ui!important;margin:0!important}
.mp-mobile #mpApp #mpVideo .hpTag{display:block;font:600 9px/1.4 system-ui;color:var(--mp-gold)}
.mp-mobile #mpApp #mpVideo time{font-size:11px;color:var(--mp-muted)}
.mp-mobile #musicPanel{position:fixed;right:12px;color:#edf3ff}
.mp-mobile #musicPanel button{min-width:44px;min-height:44px;border:1px solid #61738c;border-radius:9px;background:#142a43;color:white;font:inherit}
.mp-mobile #musicPanel button:disabled{opacity:.4}
.mp-mobile #musicPanel button[aria-pressed=true]{background:#886b22}
.mp-mobile body #musicPanel{top:auto;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));max-height:calc(100dvh - 165px)}
/* V1.68.5: the YouTube cover occupies its own row on mobile. */
.mp-mobile #mpApp #mpVideo .hpVideo>img{position:relative!important;inset:auto!important;display:block;width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover;z-index:auto;opacity:1;mask-image:none}
.mp-mobile #mpApp #mpVideo .hpVideo:after{display:none}
