/* Isolated Homepage welcome scene, responsive across phone, tablet and desktop. */
.mobile-cloud-welcome:not([open]){display:none;}
.mobile-cloud-welcome{display:none;}
@media all{
 html.mobile-cloud-locked{overflow:hidden;overscroll-behavior:none;}
 .mobile-cloud-welcome[open]{display:flex;}
 .mobile-cloud-welcome{
  position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;border:0;padding:0;
  flex-direction:column;justify-content:center;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  color:#0f2a38;background:radial-gradient(ellipse at 65% 23%,#dff5f4b3,transparent 50%),linear-gradient(180deg,#f6f8f3,#fbf6eb 65%,#fffdf7);
  font-family:'IBM Plex Sans Thai',sans-serif;
 }
 .mobile-cloud-welcome::backdrop{background:#f8f6eff2;}
 .mobile-cloud-welcome *{box-sizing:border-box;}
 .mobile-cloud-close{
  position:absolute;z-index:5;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));
  min-width:64px;min-height:44px;padding:8px 14px;border:1px solid #b9d9dd;border-radius:14px;
  background:#fffdf8eb;color:#0f5268;font:600 16px/1.6 'IBM Plex Sans Thai',sans-serif;cursor:pointer;
  box-shadow:inset 0 1px #fff,0 3px 0 #d8e7e5;
 }
 .mobile-cloud-layout{
  flex:none;display:flex;flex-direction:column;align-items:center;gap:0;width:100%;max-width:500px;margin:auto;
  padding:calc(72px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
 }
 .mobile-cloud-art{
  position:relative;isolation:isolate;flex:none;width:calc(100% + 24px);max-width:460px;
  aspect-ratio:960/723;
 }
 .mobile-cloud-rider{position:absolute;inset:0;animation:mobile-cloud-arrive .75s cubic-bezier(.2,.7,.25,1) both;}
 .mobile-cloud-rider>img{display:block;width:100%;height:100%;object-fit:contain;}
 .mobile-cloud-bank{
  position:absolute;z-index:-1;left:0;right:0;bottom:-9%;height:43%;border-radius:50%;
  background:radial-gradient(ellipse at 16% 57%,#fffefa 0 19%,transparent 39%),radial-gradient(ellipse at 42% 35%,#fffefa 0 22%,transparent 45%),radial-gradient(ellipse at 73% 46%,#fffefa 0 24%,transparent 48%),radial-gradient(ellipse at 52% 84%,#ecede5 0 33%,transparent 68%);
  filter:drop-shadow(0 10px 12px #c9dcd440);opacity:.98;
 }
 .mobile-cloud-copy{position:relative;z-index:2;align-self:stretch;text-align:center;padding:25px 0 28px;}
 .mobile-cloud-copy::before{
  content:"";position:absolute;z-index:-1;inset:-12px -12px -8px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150'%3E%3Cdefs%3E%3ClinearGradient id='c' x2='0' y2='1'%3E%3Cstop stop-color='%23fffefb'/%3E%3Cstop offset='1' stop-color='%23fffaf0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M42 123C8 124 0 85 28 69C17 40 52 21 79 35C93 2 142 2 163 23C192 0 238 5 253 30C283 12 321 26 326 50C365 35 401 65 381 90C403 115 372 139 339 133C294 151 246 143 212 140C163 151 127 142 99 137C76 143 55 137 42 123Z' fill='url(%23c)'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  filter:drop-shadow(0 7px 7px #d0dace33) blur(.7px);
 }
 .mobile-cloud-enter{
  position:relative;z-index:3;display:block;width:100%;min-height:56px;padding:14px 16px;border:1px solid #69b7c5;border-radius:15px;
  background:linear-gradient(180deg,#438fa3,#286f85);color:#fff;font:600 16px/1.7 'IBM Plex Sans Thai',sans-serif;
  box-shadow:inset 0 1px 0 #eaffff99,0 5px 0 #194e60,0 12px 20px -10px #0f3e4e50;cursor:pointer;
 }
 .mobile-cloud-enter:active{transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffff70,0 2px 0 #194e60;}
 .mobile-cloud-welcome button:focus-visible{outline:3px solid #0f6f8c;outline-offset:4px;}
 .mobile-cloud-magic{
  position:absolute;left:17%;top:40%;width:15%;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;
  background:radial-gradient(ellipse,#fffbd3b8,#c2eee66b 35%,transparent 70%);border-radius:50%;animation:mobile-cloud-glow 3.8s ease-in-out infinite alternate;
 }
 .mobile-cloud-magic i{position:absolute;width:10%;height:23%;background:linear-gradient(#fffef0,#e2bd6c);clip-path:polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%);}
 .mobile-cloud-magic i:nth-child(1){left:36%;top:20%;}
 .mobile-cloud-magic i:nth-child(2){left:61%;top:45%;width:8%;height:18%;background:#80d2cf;}
 .mobile-cloud-magic i:nth-child(3){left:20%;top:60%;width:6%;height:15%;}
 @media(max-width:374px){.mobile-cloud-layout{padding-inline:16px;}}
 @media(max-height:620px){.mobile-cloud-layout{padding-top:64px;padding-bottom:max(20px,env(safe-area-inset-bottom));}.mobile-cloud-art{width:min(100%,calc((100dvh - 250px)*1.328));}.mobile-cloud-copy{padding-top:16px;padding-bottom:20px;}}
 @media(prefers-reduced-motion:reduce){.mobile-cloud-rider,.mobile-cloud-magic{animation:none;}.mobile-cloud-enter:active{transform:none;}}
}
@keyframes mobile-cloud-arrive{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:translateY(0);}}
@keyframes mobile-cloud-glow{from{opacity:.35;}to{opacity:.85;}}
@layer jane-reading-standard{
 @media all{
  body.jane-reading-standard .mobile-cloud-welcome #mobile-cloud-title{
   font-family:'IBM Plex Sans Thai',sans-serif!important;font-size:clamp(18px,5vw,23px)!important;font-weight:600!important;
   line-height:1.65!important;text-align:center!important;white-space:nowrap!important;margin:0 0 6px;
  }
  body.jane-reading-standard .mobile-cloud-welcome #mobile-cloud-message{font:400 17px/1.75 'IBM Plex Sans Thai',sans-serif!important;white-space:nowrap!important;text-align:center!important;margin:0;}
 }
}

@media(min-width:768px){
 .mobile-cloud-layout{max-width:760px;padding-inline:40px;}
 .mobile-cloud-art{width:min(680px,calc((100dvh - 310px)*1.328),100%);max-width:680px;}
 .mobile-cloud-copy{align-self:center;width:min(100%,560px);}
 .mobile-cloud-enter{width:min(100%,420px);}
 .mobile-cloud-close{top:max(24px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right));}
}
@layer jane-reading-standard{
 @media(min-width:768px){
  body.jane-reading-standard .mobile-cloud-welcome #mobile-cloud-title{font-size:28px!important;}
  body.jane-reading-standard .mobile-cloud-welcome #mobile-cloud-message{font-size:20px!important;}
 }
}

/* Welcome route chooser: confined to this dialog. */
.mobile-cloud-close{position:fixed;}
.mobile-cloud-layout{max-width:560px;gap:12px;padding-top:68px;padding-bottom:max(20px,env(safe-area-inset-bottom));}
.mobile-cloud-art{width:min(calc(100% + 16px),420px,calc((100dvh - 416px)*1.328));min-width:180px;}
.mobile-cloud-copy{padding:10px 0 12px;}
.mobile-cloud-routes{position:relative;z-index:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;padding:0;margin:0;}
.mobile-cloud-route{
 position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:74px;
 padding:12px 10px;border:1px solid #7ab8c2;border-radius:16px;text-align:center;text-decoration:none;
 background:linear-gradient(180deg,#448fa0,#286d82);color:#fff;
 font:600 16px/1.55 'IBM Plex Sans Thai',sans-serif;word-break:normal;overflow-wrap:normal;
 box-shadow:inset 0 1px 0 #ecffffa6,inset 0 -1px 0 #23657c,0 4px 0 #174e61,0 9px 14px -9px #174e6166;
}
.mobile-cloud-route>span:last-child{min-width:0;}
.mobile-cloud-route-icon{
 display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;color:#fff9e8;
 background:linear-gradient(145deg,#ffffff35,#ffffff08);border:1px solid #b8e5e866;
 box-shadow:inset 0 1px 1px #ffffff70,0 2px 3px #123e5050;
}
.mobile-cloud-route-icon svg{width:21px;height:21px;}
.mobile-cloud-nowrap{white-space:nowrap;}
.mobile-cloud-route--about{grid-column:1/-1;min-height:48px;padding:8px 16px;}
.mobile-cloud-route--about .mobile-cloud-route-icon{width:30px;height:30px;}
.mobile-cloud-enter{
 min-height:48px;width:auto;min-width:150px;padding:9px 24px;border:1px solid #acc6c9;border-radius:14px;
 background:#fffdf7;color:#24586a;box-shadow:inset 0 1px #fff,0 3px 0 #d3e0dd;
}
.mobile-cloud-enter:active{box-shadow:0 1px 0 #d3e0dd;}
.mobile-cloud-route:active{transform:translateY(2px);box-shadow:inset 0 1px #ffffff70,0 2px 0 #174e61;}
.mobile-cloud-welcome a:focus-visible{outline:3px solid #bc8729;outline-offset:4px;}
@media(hover:hover){.mobile-cloud-route:hover{background:linear-gradient(180deg,#4f9aab,#307b90);}}
@media(max-width:599px){
 .mobile-cloud-route:not(.mobile-cloud-route--about){padding:16px 8px 10px;gap:0;}
 .mobile-cloud-route:not(.mobile-cloud-route--about) .mobile-cloud-route-icon{position:absolute;left:10px;top:-9px;width:26px;height:26px;background:linear-gradient(145deg,#538d9c,#245d71);}
 .mobile-cloud-route:not(.mobile-cloud-route--about) .mobile-cloud-route-icon svg{width:16px;height:16px;}
}
@media(max-height:680px) and (max-width:599px){
 .mobile-cloud-layout{gap:10px;padding-top:60px;padding-bottom:max(16px,env(safe-area-inset-bottom));}
 .mobile-cloud-art{width:min(100%,calc((100dvh - 408px)*1.328));min-width:160px;}
 .mobile-cloud-copy{padding:0;}
 .mobile-cloud-route{min-height:68px;padding-top:12px;}
 .mobile-cloud-route--about{min-height:48px;}
}
@media(min-width:600px) and (max-width:1023px){
 .mobile-cloud-art{width:min(440px,calc((100dvh - 440px)*1.328),100%);}
 .mobile-cloud-copy{width:100%;}
}
@media(min-width:1024px) and (min-height:621px){
 .mobile-cloud-layout{
  display:grid;grid-template-columns:220px minmax(0,1fr) 220px;
  grid-template-areas:'copy copy copy' '. about .' 'courses art trial' 'mini art ebooks' '. home .';
  gap:16px 24px;align-items:center;max-width:1180px;padding:68px 32px 24px;
 }
 .mobile-cloud-copy{grid-area:copy;justify-self:center;width:100%;padding:0 0 4px;}
 .mobile-cloud-routes{display:contents;}
 .mobile-cloud-art{grid-area:art;justify-self:center;width:min(100%,560px,calc((100dvh - 310px)*1.328));min-width:0;max-width:none;}
 .mobile-cloud-route{min-height:90px;padding:16px;flex-direction:column;gap:10px;}
 .mobile-cloud-route--courses{grid-area:courses;}
 .mobile-cloud-route--trial{grid-area:trial;}
 .mobile-cloud-route--mini{grid-area:mini;}
 .mobile-cloud-route--ebooks{grid-area:ebooks;}
 .mobile-cloud-route--about{grid-area:about;flex-direction:row;min-height:48px;padding:8px 24px;justify-self:center;width:220px;}
 .mobile-cloud-enter{grid-area:home;justify-self:center;}
}
/* Wide, short screens keep the picture beside the controls, rather than tiny. */
@media(min-width:600px) and (max-height:620px){
 .mobile-cloud-layout{display:grid;grid-template-columns:minmax(200px,1fr) minmax(300px,1fr);grid-template-areas:'art copy' 'art routes' 'art home';gap:12px 24px;max-width:1060px;padding:64px 24px 20px;}
 .mobile-cloud-art{grid-area:art;justify-self:center;min-width:0;width:min(100%,calc((100dvh - 100px)*1.328));max-width:none;}
 .mobile-cloud-copy{grid-area:copy;padding:0;width:100%;}
 .mobile-cloud-routes{grid-area:routes;}
 .mobile-cloud-enter{grid-area:home;justify-self:center;}
 .mobile-cloud-route{min-height:64px;padding:10px 8px;gap:6px;}
 .mobile-cloud-route-icon{width:26px;height:26px;}
 .mobile-cloud-route-icon svg{width:17px;height:17px;}
 .mobile-cloud-route--about{min-height:48px;}
}
@layer jane-reading-standard{
 @media(min-width:600px) and (max-height:620px){
  body.jane-reading-standard .mobile-cloud-welcome #mobile-cloud-title{font-size:20px!important;}
  body.jane-reading-standard .mobile-cloud-welcome #mobile-cloud-message{font-size:17px!important;}
 }
}
@media(prefers-reduced-motion:reduce){.mobile-cloud-route:active{transform:none;}}
/* Auto margins center a fitting scene; long/zoomed scenes start at the top. */
.mobile-cloud-welcome{justify-content:flex-start;}
@media(min-width:1024px) and (min-height:621px){
 .mobile-cloud-route:not(.mobile-cloud-route--about){height:132px;}
}
@media(max-height:680px) and (max-width:599px){
 .mobile-cloud-art{width:min(100%,calc((100dvh - 432px)*1.328));}
 .mobile-cloud-route:not(.mobile-cloud-route--about){min-height:64px;padding:10px 8px 8px;}
 .mobile-cloud-route--about{padding:8px 16px;}
}
.mobile-cloud-welcome:focus{outline:none;}
@media(min-width:600px) and (max-height:440px){
 .mobile-cloud-layout{grid-template-columns:minmax(160px,.7fr) minmax(390px,1.6fr);gap:10px 12px;padding:64px 12px 16px;}
 .mobile-cloud-routes{grid-template-columns:repeat(3,minmax(0,1fr));}
 .mobile-cloud-route:not(.mobile-cloud-route--about){padding:10px 6px;}
 .mobile-cloud-route:not(.mobile-cloud-route--about) .mobile-cloud-route-icon{position:absolute;left:8px;top:-8px;width:24px;height:24px;background:linear-gradient(145deg,#538d9c,#245d71);}
 .mobile-cloud-route--about{grid-column:2/4;}
}
