/* Shadopia game-canvas theme: full-window on desktop, compact on phones. */
html:has(body.phone-design){min-height:100%;background:#241443}
body.phone-design{--game-bg:#341e5f;--game-deep:#241443;--game-shelf:#4f2c92;--game-card:#43256f;--game-ink:#fff;--game-muted:#c7b8df;--game-gap:clamp(12px,2vw,28px);width:100%;max-width:none;min-height:100dvh;margin:0;position:relative;overflow-x:clip;background:radial-gradient(ellipse at 50% -18%,#56358b 0,transparent 48%),var(--game-bg);color:var(--game-ink);padding:0 0 105px;box-shadow:none;isolation:isolate}
body.phone-design:before{content:"";position:fixed;inset:-12px 0;z-index:-1;pointer-events:none;opacity:.34;background-image:url('icons/dock-star.png'),url('icons/dock-star.png'),url('icons/dock-star.png'),url('icons/dock-star.png');background-repeat:no-repeat;background-size:23px 23px,15px 15px,12px 12px,18px 18px;background-position:16% 66%,30% 87%,77% 64%,56% 80%;filter:brightness(0) saturate(100%) invert(79%) sepia(12%) saturate(1054%) hue-rotate(216deg) brightness(91%);animation:sky-stars-drift 6.2s ease-in-out infinite alternate,sky-stars-twinkle 3.8s ease-in-out infinite alternate}
@keyframes sky-stars-drift{from{transform:translate3d(0,9px,0)}to{transform:translate3d(0,-15px,0)}}
@keyframes sky-stars-twinkle{from{opacity:.2}to{opacity:.52}}
@media(prefers-reduced-motion:reduce){body.phone-design:before{animation:none;opacity:.3}}
body.phone-design[data-mode="animation"]{--game-bg:#b121d1;--game-deep:#7e1796;--game-shelf:#8f20aa;--game-card:#a425bd;--game-muted:#f4cafa;background:radial-gradient(ellipse at 50% -18%,#dc59e9 0,transparent 48%),var(--game-bg)}
body.phone-design[data-mode="book"]{--game-bg:#1b994f;--game-deep:#10793a;--game-shelf:#138443;--game-card:#168d47;--game-muted:#c8f0d7;background:radial-gradient(ellipse at 50% -18%,#36bd70 0,transparent 48%),var(--game-bg)}

body.phone-design .site-header,body.phone-design .education-header,body.phone-design .member-header{position:relative;width:100%;max-width:none;min-height:76px;margin:0;padding:12px clamp(18px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:20px;border:0;border-radius:0;background:linear-gradient(180deg,var(--game-deep),color-mix(in srgb,var(--game-deep) 92%,transparent));color:#fff;box-sizing:border-box}
body.phone-design .site-header:after,body.phone-design .education-header:after{content:"";position:absolute;bottom:0;left:3%;right:3%;height:1px;background:linear-gradient(90deg,transparent,#ffffff28,transparent)}
body.phone-design .header-inner{position:relative;width:100%;max-width:1600px;min-height:50px;margin:auto;padding:0;display:flex;align-items:center;justify-content:space-between;gap:24px;background:transparent;direction:ltr}
body.phone-design .site-header .brand,body.phone-design .education-header .brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;z-index:1;max-width:42%;justify-content:center;text-align:center}
body.phone-design .brand-name,body.phone-design .education-header .brand-name,body.phone-design .member-header .brand-name{color:#fff}
body.phone-design .brand-name small{color:var(--game-muted)}
body.phone-design .brand-icon{background:linear-gradient(145deg,#ffd366,#ff8a00);color:#fff;box-shadow:0 5px 0 #bd5600,0 9px 20px #ff8a0033}
body.phone-design .header-left{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0;z-index:2;direction:rtl}
body.phone-design .header-left>.btn,body.phone-design .education-account{min-height:42px;padding:9px 17px;border:1px solid #ffffff24;border-radius:24px;background:linear-gradient(145deg,#6944ad,var(--game-shelf));color:#fff;font-size:12px;font-weight:800;box-shadow:0 4px 0 #1e103b}
body.phone-design .header-left>.btn:hover,body.phone-design .education-account:hover{transform:translateY(-2px);filter:brightness(1.08)}
body.phone-design .header-left>.btn .icon{width:17px;height:17px}
body.phone-design .site-search{width:min(21vw,290px);min-width:175px;padding:8px 12px;border:1px solid #ffffff20;border-radius:24px;background:#ffffff12;color:#fff}
body.phone-design .site-search input{color:#fff}.phone-design .site-search input::placeholder{color:#d5c8e6}
body.phone-design .site-header .family-nav,body.phone-design .education-header .family-nav{width:auto;max-width:none;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
body.phone-design .family-nav{display:flex;align-items:center;justify-content:center;gap:5px}
body.phone-design .family-nav>:not(:last-child){display:none}
body.phone-design .family-nav>:last-child{min-height:42px;padding:8px 17px;border:1px solid #ffffff23;border-radius:24px;background:linear-gradient(145deg,#6944ad,var(--game-shelf));color:#fff;font-size:12px;font-weight:800;box-shadow:0 4px 0 #1e103b}
body.phone-design .family-nav>:last-child .icon{width:18px;height:18px}
body.phone-design .site-header .family-nav{position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:2}
body.phone-design .play-main,body.phone-design .family-main,body.phone-design .member-main{width:min(100%,1600px);max-width:1600px;margin:0 auto;padding:clamp(16px,2vw,32px) clamp(18px,4vw,64px) 32px;box-sizing:border-box}
body.phone-design .appearance-preview-note{position:relative;z-index:3;margin:0 auto 14px}
body.phone-design .site-announcement{max-width:100%;border-color:#ffffff30;background:#ffffff13;color:#fff}
body.phone-design .catalog-subscription{display:flex;align-items:center;gap:9px;width:fit-content;max-width:100%;margin:0 auto 18px;padding:9px 17px;border:1px solid #ffffff38;border-radius:30px;background:linear-gradient(90deg,#ffffff13,#ffffff20);color:#f5efff;font-size:12px;box-shadow:0 5px 18px #1d103525}
body.phone-design .catalog-subscription .icon{width:17px;height:17px;color:#81efbf}
body.phone-design .catalog-subscription time{font-weight:800;direction:rtl}
body.phone-design .welcome-banner{display:none}
body.phone-design .library-navigation{display:flex;align-items:center;justify-content:flex-start;gap:12px;overflow:visible;margin:2px 0 22px;padding:0 0 12px;border-bottom:1px solid #ffffff21}
body.phone-design .collection-tabs{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:none}
body.phone-design .collection-tabs::-webkit-scrollbar{display:none}
body.phone-design .collection-tab{flex:0 0 auto;min-height:40px;padding:8px 16px;border:1px solid #ffffff15;border-radius:24px;background:#ffffff10;color:#eee5fc;font-size:12px;font-weight:700;white-space:nowrap}
body.phone-design .collection-tab.selected,body.phone-design .collection-tab.active{background:linear-gradient(135deg,#7049b4,#4f2c92);color:#fff;border-color:#ffffff2c;box-shadow:0 4px 0 #20113c}
body.phone-design .layout-switch{display:none}
body.phone-design .game-section{position:relative;margin:0 0 clamp(22px,3vw,42px);min-width:0}
body.phone-design .section-heading{margin-bottom:12px;gap:12px}
body.phone-design .section-name{gap:11px;min-width:0}
body.phone-design .section-name h2{font-size:clamp(15px,1.5vw,21px);line-height:1.6;color:#fff;font-weight:900}
body.phone-design .section-name p,body.phone-design .section-count{color:var(--game-muted)}
body.phone-design .section-name p{font-size:11px}
body.phone-design .section-count{background:#ffffff18;border-radius:20px;padding:3px 9px}
body.phone-design .section-symbol{width:40px;height:40px;border-radius:14px;background:linear-gradient(145deg,#7650bb,var(--game-shelf));color:#fff;box-shadow:0 4px 0 #20113c}
body.phone-design .section-symbol img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
body.phone-design .section-controls{gap:12px}
body.phone-design .see-all{font-size:11px;color:#e7d9fa;font-weight:700}
body.phone-design .row-arrows{display:flex;gap:7px}
body.phone-design .scroll-arrow{width:34px;height:34px;border:1px solid #ffffff28;border-radius:12px;background:#ffffff12;color:#fff}
body.phone-design .scroll-arrow:hover{background:#ffffff25;color:#fff}
body.phone-design .game-row{grid-auto-columns:clamp(150px,18vw,265px);gap:clamp(10px,1.5vw,20px);padding:5px 4px 14px;scrollbar-width:none;scroll-snap-type:x mandatory}
body.phone-design .game-row::-webkit-scrollbar{display:none}
body.phone-design[data-layout="grid"] .game-row{grid-auto-flow:row;grid-template-columns:repeat(auto-fill,minmax(clamp(145px,16vw,240px),1fr));grid-auto-columns:auto;overflow:visible;row-gap:clamp(12px,1.8vw,24px)}
body.phone-design .game-card{position:relative;border:2px solid #ffffffb8;border-radius:clamp(16px,1.5vw,24px);background:#fff;box-shadow:0 6px 0 #21113f,0 12px 26px #170b2a3d;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
body.phone-design .game-card:hover,body.phone-design .game-card:focus-visible{transform:translateY(-5px) scale(1.015);box-shadow:0 9px 0 #21113f,0 18px 32px #170b2a55}
body.phone-design .game-cover{aspect-ratio:1.2;background:var(--game-card)}
body.phone-design .game-cover>img{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
body.phone-design .game-card:hover .game-cover>img{transform:scale(1.06)}
body.phone-design .game-caption{min-height:44px;padding:9px 12px;background:#fff}
body.phone-design .game-caption:before{background:#fff}
body.phone-design .game-caption h3{font-size:clamp(10px,.9vw,13px);font-weight:800;color:#382153}
body.phone-design .game-caption>span{color:#8864b1}
body.phone-design .card-badge{top:9px;right:9px;font-size:9px;padding:4px 8px;border-radius:10px;background:#fff;color:#59398a}
body.phone-design .card-hover{background:#ffffffed;color:#613c9b}
body.phone-design .section-empty{border-color:#ffffff45;color:#edddff;background:#ffffff0d}
body.phone-design .site-footer{display:none}

body.phone-design .education-hero{position:relative;min-height:0;margin:0 0 18px;padding:17px 20px;border:1px solid #ffffff35;border-radius:24px;background:linear-gradient(115deg,#ffffff1c,#ffffff08);box-shadow:inset 0 1px #ffffff28,0 10px 28px #180c2e26}
body.phone-design .education-hero:after{display:none}
body.phone-design .education-hero h1,body.phone-design .education-hero p,body.phone-design .education-hero .member-kicker{color:#fff}
body.phone-design .education-hero h1{font-size:clamp(20px,2.5vw,30px);line-height:1.5}
body.phone-design .education-hero p{color:var(--game-muted)}
body.phone-design .education-symbol{width:52px;height:52px;border-radius:17px;background:linear-gradient(145deg,#ffffff38,#ffffff15);color:#fff}
body.phone-design .education-filter{margin:0 0 17px;padding:16px 18px;border:1px solid #ffffff2c;border-radius:20px;background:#ffffff11}
body.phone-design .education-filter h2{font-size:16px;color:#fff}
body.phone-design .learning-tabs{gap:8px}
body.phone-design .learning-tabs>a{padding:9px 15px;border:1px solid #ffffff28;border-radius:22px;background:#ffffff13;color:#fff;font-size:12px}
body.phone-design .learning-tabs>a.active{background:#fff;color:var(--game-deep);border-color:#fff}
body.phone-design .learning-grid{grid-template-columns:repeat(auto-fill,minmax(clamp(190px,27vw,340px),1fr));gap:clamp(14px,2vw,24px)}
body.phone-design .learning-card{padding:8px;border:2px solid #ffffffb8;border-radius:22px;background:#fff;box-shadow:0 6px 0 #21113f,0 12px 26px #170b2a3d}
body.phone-design .learning-cover{padding:0}
body.phone-design .learning-cover>img{border-radius:15px 15px 10px 10px}
body.phone-design .learning-card-copy{padding:12px 13px}
body.phone-design .learning-card-copy h2{font-size:14px;color:#382153}
body.phone-design .learning-card-copy p{font-size:11px;min-height:36px;color:#806e92}
body.phone-design .learning-card .btn{min-height:40px;padding:8px 12px;border-radius:14px;font-size:11px}
body.phone-design .mobile-dock{position:fixed;z-index:30;display:flex;left:50%;right:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(520px,calc(100% - 32px));max-width:520px;padding:9px 12px;border:1px solid #ffffff30;border-radius:25px;background:linear-gradient(145deg,#5d369bfa,#321d5bf7);box-shadow:0 9px 0 #1b0d36,0 16px 35px #10071f70;box-sizing:border-box;backdrop-filter:blur(14px)}
body.phone-design .mobile-dock>a{flex:1;min-width:0;color:#dfd1f4;font-size:10px;font-weight:700}
body.phone-design .mobile-dock>a[aria-current="page"]{color:#fff;background:linear-gradient(145deg,#9165d4,#643ba7);border-radius:17px;box-shadow:0 3px 0 #2a164b}
body.phone-design .mobile-dock .icon{width:21px;height:21px}
body.phone-design .mobile-dock>button{display:none}
body.phone-design .has-mobile-dock{padding-bottom:110px}

body.phone-design.book-reader-body{width:100%;max-width:none;min-height:100dvh;margin:0;background:#f7efe3;color:#432b22;box-shadow:none}
body.phone-design.book-reader-body .book-reader{max-width:1250px;padding:clamp(14px,3vw,36px);margin:auto}
body.phone-design.book-reader-body .book-stage{width:min(100%,1100px);height:min(64vh,720px)}

@media(min-width:1500px){body.phone-design .game-row{grid-auto-columns:clamp(230px,17vw,290px)}body.phone-design .play-main,body.phone-design .family-main,body.phone-design .member-main{padding-left:70px;padding-right:70px}}
@media(max-width:900px){body.phone-design .site-header,body.phone-design .education-header{min-height:68px;padding:10px 20px}body.phone-design .header-inner{gap:12px}body.phone-design .site-search{min-width:0;width:190px}body.phone-design .header-left>.btn{padding:8px 12px}body.phone-design .play-main,body.phone-design .family-main,body.phone-design .member-main{padding:18px 22px 28px}body.phone-design .game-row{grid-auto-columns:clamp(155px,25vw,220px)}body.phone-design[data-layout="grid"] .game-row{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}}
@media(max-width:640px){html:has(body.phone-design){background:var(--game-deep)}body.phone-design{padding-bottom:100px}body.phone-design .site-header,body.phone-design .education-header{min-height:60px;padding:9px 13px}body.phone-design .header-inner{min-height:40px}body.phone-design .site-header .brand,body.phone-design .education-header .brand{max-width:38%}body.phone-design .brand-name{font-size:16px}body.phone-design .brand-name small{font-size:6px}body.phone-design .brand-icon{width:32px;height:32px;border-radius:11px}body.phone-design .site-header .family-nav{left:0}body.phone-design .family-nav>:last-child{min-height:36px;padding:6px 10px;font-size:10px}body.phone-design .family-nav>:last-child .icon{width:15px;height:15px}body.phone-design .header-left>.btn,body.phone-design .education-account{min-height:36px;padding:7px 10px;font-size:10px}body.phone-design .header-left>.btn .icon{width:15px;height:15px}body.phone-design .site-search{display:none}body.phone-design .play-main,body.phone-design .family-main,body.phone-design .member-main{padding:14px 14px 24px}body.phone-design .catalog-subscription{margin-bottom:14px;padding:8px 12px;font-size:10px}body.phone-design .library-navigation{margin:0 0 17px;padding-bottom:10px}body.phone-design .collection-tab{min-height:36px;padding:7px 12px;font-size:10px}body.phone-design .game-section{margin-bottom:22px}body.phone-design .section-heading{margin-bottom:9px}body.phone-design .section-name{gap:7px}body.phone-design .section-symbol{width:32px;height:32px;border-radius:11px}body.phone-design .section-name h2{font-size:14px}body.phone-design .section-name p{font-size:9px;max-width:45vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.phone-design .section-count{font-size:8px;padding:2px 6px}body.phone-design .section-controls{gap:6px}body.phone-design .see-all{font-size:9px}body.phone-design .row-arrows{display:none}body.phone-design .game-row{grid-auto-columns:clamp(130px,38vw,190px);gap:10px;padding-bottom:12px}body.phone-design[data-layout="grid"] .game-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}body.phone-design .game-card{border-width:1px;border-radius:16px;box-shadow:0 4px 0 #21113f,0 8px 18px #170b2a35}body.phone-design .game-cover{aspect-ratio:1.05}body.phone-design .game-caption{min-height:34px;padding:7px 5px}body.phone-design .game-caption h3{font-size:9px}body.phone-design .card-badge{top:6px;right:6px;font-size:7px;padding:3px 6px}body.phone-design .education-hero{padding:13px 14px;border-radius:18px}body.phone-design .education-symbol{width:42px;height:42px;border-radius:14px}body.phone-design .education-hero h1{font-size:19px}body.phone-design .education-filter{padding:12px;border-radius:16px}body.phone-design .learning-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.phone-design .learning-card{padding:5px;border-radius:17px}body.phone-design .learning-cover>img{border-radius:12px 12px 8px 8px}body.phone-design .learning-card-copy{padding:8px}body.phone-design .learning-card-copy h2{font-size:11px}body.phone-design .learning-card-copy p{font-size:9px;min-height:31px}body.phone-design .learning-card .btn{min-height:34px;padding:6px;font-size:9px}body.phone-design .mobile-dock{bottom:max(7px,env(safe-area-inset-bottom));width:calc(100% - 22px);padding:6px 7px;border-radius:20px}body.phone-design .mobile-dock>a{font-size:8px}body.phone-design .mobile-dock .icon{width:18px;height:18px}body.phone-design .has-mobile-dock{padding-bottom:96px}}
@media(max-width:370px){body.phone-design .brand-name{font-size:14px}body.phone-design .family-nav>:last-child{padding-inline:8px}body.phone-design .header-left>.btn{padding-inline:8px}body.phone-design .game-row{grid-auto-columns:43vw}body.phone-design[data-layout="grid"] .game-row{grid-template-columns:repeat(2,minmax(0,1fr))}body.phone-design .mobile-dock>a{font-size:7px}}
@media(prefers-reduced-motion:reduce){body.phone-design *,body.phone-design *:before,body.phone-design *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Match the landscape Figma canvas: parent left, page title centered, plan right. */
body.phone-design .site-header,body.phone-design .education-header{height:76px;min-height:76px;padding:0 clamp(18px,3vw,42px);background:linear-gradient(180deg,var(--game-deep) 0 47%,var(--game-shelf) 47% 100%);box-shadow:0 4px 0 #170d2a}
body.phone-design .site-header:after,body.phone-design .education-header:after{left:0;right:0;bottom:0;height:1px;background:#ffffff2b}
body.phone-design .header-inner{width:100%;max-width:none;height:100%;min-height:0}
body.phone-design .site-header .family-nav,body.phone-design .education-header .family-nav{left:0;top:50%;transform:translateY(-50%)}
body.phone-design .family-nav>:last-child{min-height:38px;padding:7px 14px;border:0;border-radius:24px;background:linear-gradient(140deg,#6030a8,#48207f);box-shadow:none;font-size:12px}
body.phone-design .brand-custom{justify-content:center;gap:7px}
body.phone-design .site-header .brand-custom .brand-icon,body.phone-design .site-header .brand-custom .brand-logo,body.phone-design .education-header .brand-custom .brand-icon,body.phone-design .education-header .brand-custom .brand-logo{display:none}
body.phone-design .site-header .brand-name,body.phone-design .education-header .brand-name{display:block;max-width:none;margin:0;color:#fff;font-size:0;line-height:1.25;white-space:nowrap}
body.phone-design .site-header .brand-name small,body.phone-design .education-header .brand-name small{display:none}
body.phone-design[data-mode="games"] .site-header .brand-name:after,body.phone-design[data-mode="games"] .education-header .brand-name:after{content:"بازی‌های شادوبیا"}
body.phone-design[data-mode="animation"] .site-header .brand-name:after,body.phone-design[data-mode="animation"] .education-header .brand-name:after{content:"فیلم‌های شادوبیا"}
body.phone-design[data-mode="book"] .site-header .brand-name:after,body.phone-design[data-mode="book"] .education-header .brand-name:after{content:"کتاب‌های شادوبیا"}
body.phone-design .site-header .brand-name:after,body.phone-design .education-header .brand-name:after{font-size:clamp(17px,2vw,24px);font-weight:900;letter-spacing:-.3px}
body.phone-design .header-left,body.phone-design .education-header>.education-account{position:absolute;right:clamp(18px,3vw,42px);top:50%;transform:translateY(-50%);display:flex;align-items:center;z-index:2;margin:0}
body.phone-design .header-left>.btn,body.phone-design .education-account{min-height:40px;padding:7px 15px;border:0;border-radius:24px;background:linear-gradient(135deg,#7143b6,#542c91);box-shadow:none;font-size:12px;font-weight:900}
body.phone-design .header-left>.btn:hover,body.phone-design .education-account:hover{transform:translateY(calc(-50% - 2px))}
body.phone-design .play-main{padding-top:14px}
body.phone-design .library-navigation{display:none}
body.phone-design .catalog-subscription{margin:0 0 9px auto;width:max-content;max-width:100%;padding:5px 12px;border-radius:20px;background:#ffffff12;border-color:#ffffff20;font-size:10px;box-shadow:none}
body.phone-design .game-section{margin-bottom:clamp(22px,3vw,36px)}
body.phone-design .section-heading{margin-bottom:9px}
body.phone-design .section-name{flex-direction:row-reverse;justify-content:flex-start}
body.phone-design .section-name h2{font-size:clamp(14px,1.2vw,18px)}
body.phone-design .section-name p{font-size:10px}
body.phone-design .section-symbol{width:32px;height:32px;border-radius:10px;box-shadow:none}
body.phone-design .section-count{order:-1}
body.phone-design .game-row{grid-auto-columns:clamp(190px,27vw,340px);gap:clamp(14px,2vw,24px);padding:4px 2px 12px}
body.phone-design .game-card{border:0;border-radius:24px;box-shadow:0 5px 0 #20113b,0 9px 16px #180d2b30}
body.phone-design .game-card:hover,body.phone-design .game-card:focus-visible{transform:translateY(-3px);box-shadow:0 7px 0 #20113b,0 13px 22px #180d2b40}
body.phone-design .game-cover{aspect-ratio:1.2}
body.phone-design .game-caption{min-height:36px;padding:6px 12px}
body.phone-design .game-caption:before{width:55%;height:17px;top:-9px;border-radius:26px 26px 0 0}
body.phone-design .game-caption h3{font-size:12px}
body.phone-design .card-badge{top:7px;right:7px;font-size:8px}
body.phone-design .mobile-dock{width:min(clamp(300px,42vw,430px),calc(100% - 32px));max-width:430px;padding:6px 12px;border:1px solid #ffffff22;border-radius:22px;background:linear-gradient(180deg,#59318f,#492578);box-shadow:0 5px 0 #170c2b,0 9px 18px #160b283b;backdrop-filter:none}
body.phone-design .mobile-dock>a{font-size:9px;gap:3px}
body.phone-design .mobile-dock .icon{width:22px;height:22px}
body.phone-design .mobile-dock>a[aria-current="page"]{background:transparent;box-shadow:none;color:#fff}
body.phone-design .mobile-dock>a:hover{background:#ffffff15}
body.phone-design .mobile-dock>a .icon{padding:4px;box-sizing:content-box;border-radius:10px;filter:drop-shadow(0 3px 1px #21103a55)}
body.phone-design .mobile-dock>a:nth-child(1) .icon{color:#d8ff45;background:linear-gradient(145deg,#9ced49,#27b85e)}
body.phone-design .mobile-dock>a:nth-child(2) .icon{color:#fff;background:linear-gradient(145deg,#ff88e5,#dc3cc5)}
body.phone-design .mobile-dock>a:nth-child(3) .icon{color:#fff;background:linear-gradient(145deg,#72ffe0,#19caa3)}
body.phone-design .mobile-dock>a:nth-child(4) .icon{color:#fff;background:linear-gradient(145deg,#ffe47a,#ff9d38)}
body.phone-design .mobile-dock>a:nth-child(5) .icon{color:#fff;background:linear-gradient(145deg,#75e8ff,#4486f2)}
body.phone-design .education-header{position:relative}
body.phone-design .education-account{right:clamp(18px,3vw,42px)}
body.phone-design .education-header>.brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}
body.phone-design .education-header>.family-nav{position:absolute;left:clamp(18px,3vw,42px);top:50%;transform:translateY(-50%)}
body.phone-design .family-main{padding-top:clamp(14px,2vw,26px)}

@media(max-width:900px){body.phone-design .game-row{grid-auto-columns:clamp(175px,28vw,260px)}body.phone-design .play-main,body.phone-design .family-main{padding-inline:clamp(16px,3vw,28px)}}
@media(max-width:640px){body.phone-design .site-header,body.phone-design .education-header{height:66px;min-height:66px;padding:0 12px;background:linear-gradient(180deg,var(--game-deep) 0 48%,var(--game-shelf) 48% 100%)}body.phone-design .site-header .family-nav,body.phone-design .education-header>.family-nav{left:12px}body.phone-design .family-nav>:last-child{min-height:33px;padding:5px 9px;font-size:10px}body.phone-design .header-left,body.phone-design .education-header>.education-account{right:12px}body.phone-design .header-left>.btn,body.phone-design .education-account{min-height:33px;padding:5px 9px;font-size:10px}body.phone-design .site-header .brand-name:after,body.phone-design .education-header .brand-name:after{font-size:16px}body.phone-design .play-main,body.phone-design .family-main{padding:12px 12px 24px}body.phone-design .game-row{grid-auto-columns:clamp(145px,47vw,210px);gap:10px}body.phone-design .game-card{border-radius:17px}body.phone-design .game-cover{aspect-ratio:1.12}body.phone-design .game-caption{min-height:32px;padding:5px 8px}body.phone-design .game-caption h3{font-size:10px}body.phone-design .mobile-dock{width:min(400px,calc(100% - 24px));padding:5px 8px}body.phone-design .mobile-dock .icon{width:19px;height:19px;padding:3px}body.phone-design .mobile-dock>a{font-size:8px}}
@media(max-width:370px){body.phone-design .site-header .brand-name:after,body.phone-design .education-header .brand-name:after{font-size:14px}body.phone-design .mobile-dock{width:calc(100% - 20px)}}
/* Clean Figma category layout: clear headings, breathing room, compact landscape cards. */
body.phone-design .site-header,
body.phone-design .education-header {
  background: var(--game-bg);
  box-shadow: none;
}
body.phone-design .site-header:after,
body.phone-design .education-header:after { display: none; }
body.phone-design .game-section { margin-bottom: clamp(32px, 4vw, 52px); }
body.phone-design .section-heading { margin: 0 0 clamp(18px, 2.2vw, 26px); min-height: 34px; }
body.phone-design .section-name { flex-direction: row; justify-content: flex-start; gap: 0; }
body.phone-design .section-name h2 { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; }
body.phone-design .section-name p,
body.phone-design .section-symbol,
body.phone-design .section-count,
body.phone-design .section-controls { display: none !important; }
body.phone-design .game-row { grid-auto-columns: clamp(190px, 27vw, 340px); gap: clamp(16px, 2vw, 26px); padding: 2px 2px 14px; }
body.phone-design .game-card { aspect-ratio: 1.34; border: 0; border-radius: 22px; background: transparent; overflow: hidden; }
body.phone-design .game-cover { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
body.phone-design .game-cover > img { width: 100%; height: 100%; object-fit: cover; }
body.phone-design .game-caption { position: absolute; z-index: 2; right: 0; bottom: 0; width: max-content; max-width: 82%; min-height: 0; padding: 9px 16px 8px; border-radius: 24px 0 0 0; background: #fff; }
body.phone-design .game-caption:before { display: none; }
body.phone-design .game-caption h3 { font-size: clamp(11px, .9vw, 13px); line-height: 1.5; }
body.phone-design .card-badge { top: 9px; right: 9px; }

body.phone-design .education-hero,
body.phone-design .education-banner,
body.phone-design .education-filter { display: none !important; }
body.phone-design .family-main { padding-top: clamp(22px, 3vw, 38px); }
body.phone-design .learning-section { margin: 0 0 clamp(34px, 4vw, 52px); }
body.phone-design .learning-section-heading { margin: 0 0 clamp(18px, 2.2vw, 26px); text-align: right; }
body.phone-design .learning-section-heading h2 { margin: 0; color: #fff; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; font-weight: 900; }
body.phone-design .learning-grid { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 27vw, 340px); grid-template-columns: none; gap: clamp(16px, 2vw, 26px); overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
body.phone-design .learning-grid::-webkit-scrollbar { display: none; }
body.phone-design .learning-card { position: relative; aspect-ratio: 1.34; min-width: 0; padding: 0; border: 0; border-radius: 22px; background: transparent; box-shadow: 0 5px 0 #20113b, 0 9px 16px #180d2b30; overflow: hidden; scroll-snap-align: start; }
body.phone-design .learning-cover { position: absolute; z-index: 1; inset: 0; display: block; padding: 0; }
body.phone-design .learning-cover > img { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
body.phone-design .learning-cover-icon { display: none; }
body.phone-design .learning-card-copy { position: absolute; z-index: 2; inset: 0; padding: 0; pointer-events: none; }
body.phone-design .learning-meta,
body.phone-design .learning-card-copy p,
body.phone-design .learning-card .btn { display: none !important; }
body.phone-design .learning-card-copy h2 { position: absolute; right: 0; bottom: 0; width: max-content; max-width: 82%; margin: 0; padding: 9px 16px 8px; border-radius: 24px 0 0 0; background: #fff; color: #382153; font-size: clamp(11px, .9vw, 13px); line-height: 1.5; font-weight: 800; }

/* Keep a cinema banner visible on phones and contain its full artwork. */
@media (max-width: 640px) {
  body.phone-design .education-banner {
    display: block !important;
    width: 100%;
    height: auto;
    max-height: 240px;
    margin: 0 auto 22px;
    border-radius: 18px;
    object-fit: contain;
    background: var(--game-shelf);
  }
  body.phone-design .learning-card { background: var(--game-shelf); }
  body.phone-design .learning-cover > img {
    object-fit: contain;
    object-position: center;
    background: var(--game-shelf);
  }
  body.phone-design .game-row.is-centered,
  body.phone-design .learning-grid.is-centered { justify-content: center; }
}

@media (max-width: 900px) {
  body.phone-design .game-row,
  body.phone-design .learning-grid { grid-auto-columns: clamp(175px, 28vw, 260px); gap: clamp(12px, 2vw, 20px); }
}
@media (max-width: 640px) {
  body.phone-design .section-heading,
  body.phone-design .learning-section-heading { margin-bottom: 17px; }
  body.phone-design .section-name h2,
  body.phone-design .learning-section-heading h2 { font-size: 15px; }
  body.phone-design .game-section,
  body.phone-design .learning-section { margin-bottom: 30px; }
  body.phone-design .game-row,
  body.phone-design .learning-grid { grid-auto-columns: clamp(145px, 47vw, 210px); gap: 11px; }
  body.phone-design .game-card,
  body.phone-design .learning-card { border-radius: 17px; }
  body.phone-design .game-caption,
  body.phone-design .learning-card-copy h2 { padding: 7px 11px 6px; font-size: 10px; }
}

/* Playful premium dock interaction inspired by the supplied Figma assets. */
body.phone-design .mobile-dock.dock-has-star {
  padding-left: 58px;
  overflow: visible;
}
body.phone-design .mobile-dock.dock-has-star > a {
  position: relative;
  z-index: 1;
  transform: scale(.86);
  transform-origin: center bottom;
  opacity: .78;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, color .2s ease;
}
body.phone-design .mobile-dock.dock-has-star > a[aria-current="page"] {
  z-index: 2;
  transform: translateY(-4px) scale(1.16);
  opacity: 1;
  background: linear-gradient(145deg,#7143b6,#512c8d);
  box-shadow: 0 4px 0 #2a164b,0 8px 18px #170c2d70;
}
body.phone-design .mobile-dock.dock-has-star > a:hover,
body.phone-design .mobile-dock.dock-has-star > a:focus-visible {
  z-index: 3;
  transform: translateY(-5px) scale(1.12);
  opacity: 1;
  outline: none;
}
body.phone-design .mobile-dock.dock-has-star > a[aria-current="page"] .icon {
  width: 27px;
  height: 27px;
}
body.phone-design .mobile-dock.dock-has-star .dock-star {
  position: absolute;
  z-index: 4;
  left: 7px;
  top: 50%;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff35;
  border-radius: 50%;
  color: #ffe15e;
  background: radial-gradient(circle at 35% 25%,#8960d6 0,#5c369f 56%,#392064 100%);
  box-shadow: inset 0 2px 6px #ffffff30,0 4px 0 #251342,0 7px 16px #13092370;
  transform: translateY(calc(-50% + var(--star-drag-y,0px)));
  pointer-events: none;
}
body.phone-design .mobile-dock.dock-has-star .dock-star-core {
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 2px 0 #b97713,0 0 10px #ffe15e90;
  animation: dock-star-bob 1.6s ease-in-out infinite;
}
body.phone-design .mobile-dock.dock-has-star .dock-star i,
body.phone-design .mobile-dock.dock-has-star .dock-star b {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd84b;
  box-shadow: 0 0 7px #ffe56a;
}
body.phone-design .mobile-dock.dock-has-star .dock-star i { top: 8px; right: 10px; }
body.phone-design .mobile-dock.dock-has-star .dock-star b { bottom: 8px; left: 10px; width: 4px; height: 4px; }
@keyframes dock-star-bob { 0%,100% { margin-top: -3px; } 50% { margin-top: 3px; } }
@media (max-width:640px) {
  body.phone-design .mobile-dock.dock-has-star { padding-left: 51px; }
  body.phone-design .mobile-dock.dock-has-star .dock-star { left: 5px; width: 39px; height: 39px; }
  body.phone-design .mobile-dock.dock-has-star > a { transform: scale(.82); }
  body.phone-design .mobile-dock.dock-has-star > a[aria-current="page"] { transform: translateY(-3px) scale(1.12); }
  body.phone-design .mobile-dock.dock-has-star > a:hover,
  body.phone-design .mobile-dock.dock-has-star > a:focus-visible { transform: translateY(-4px) scale(1.08); }
}
@media (prefers-reduced-motion:reduce) {
  body.phone-design .mobile-dock.dock-has-star > a,
  body.phone-design .mobile-dock.dock-has-star .dock-star-core { transition:none; animation:none; }
}
/* Use the supplied Figma artwork directly in the game dock. */
body.phone-design .mobile-dock.dock-has-star > a .dock-art {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #170b2b65);
  transition: width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1), filter .2s ease;
}
body.phone-design .mobile-dock.dock-has-star > a[aria-current="page"] .dock-art {
  width: 39px;
  height: 39px;
  filter: drop-shadow(0 5px 3px #170b2b75);
}
body.phone-design .mobile-dock.dock-has-star .dock-star-art {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(87%) sepia(69%) saturate(937%) hue-rotate(2deg) brightness(104%) contrast(103%);
  animation: dock-star-bob 1.6s ease-in-out infinite;
}
@media (max-width:640px) {
  body.phone-design .mobile-dock.dock-has-star > a .dock-art { width: 28px; height: 28px; }
  body.phone-design .mobile-dock.dock-has-star > a[aria-current="page"] .dock-art { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion:reduce) {
  body.phone-design .mobile-dock.dock-has-star .dock-star-art { animation:none; }
}

/* Keep Parent inside the dock; the top bar only carries the brand/account. */
body.phone-design .site-header .family-nav,
body.phone-design .education-header .family-nav { display: none !important; }
/* Selected dock item stays clean: icon and label on the shared dock surface. */
body.phone-design .mobile-dock.dock-has-star > a[aria-current="page"],
body.phone-design .mobile-dock.dock-has-star > a[aria-current="page"]:hover {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Header: parent on the left, subscription on the right. */
body.phone-design .site-header .family-nav,
body.phone-design .education-header .family-nav {
  display: flex !important;
  position: absolute;
  left: clamp(18px,3vw,42px);
  top: 50%;
  right: auto;
  z-index: 3;
  transform: translateY(-50%);
}
body.phone-design .site-header .family-nav > :not(:last-child),
body.phone-design .education-header .family-nav > :not(:last-child) { display: none !important; }
body.phone-design .site-header .family-nav > :last-child,
body.phone-design .education-header .family-nav > :last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 15px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg,#7143b6,#542c91);
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
body.phone-design .mobile-dock.dock-game-ui { padding: 6px 12px; }
body.phone-design .mobile-dock.dock-game-ui > a { transform: scale(.86); }
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] {
  transform: scale(1.12);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
body.phone-design .mobile-dock.dock-game-ui > a:hover,
body.phone-design .mobile-dock.dock-game-ui > a:focus-visible {
  transform: scale(1.08);
  background: transparent;
  box-shadow: none;
}
body.phone-design .mobile-dock.dock-game-ui > a .dock-art {
  width: 32px;
  height: 32px;
  filter: none;
  object-fit: contain;
}
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
  width: 39px;
  height: 39px;
}
body.phone-design .mobile-dock.dock-game-ui .dock-star { display: none !important; }
@media (max-width:640px) {
  body.phone-design .site-header .family-nav,
  body.phone-design .education-header .family-nav { left: 12px; }
  body.phone-design .site-header .family-nav > :last-child,
  body.phone-design .education-header .family-nav > :last-child { min-height: 33px; padding: 5px 9px; font-size: 10px; }
  body.phone-design .mobile-dock.dock-game-ui > a .dock-art { width: 28px; height: 28px; }
  body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art { width: 34px; height: 34px; }
}

/* Compact category bar with the account action separated at the lower left. */
body.phone-design .mobile-dock.dock-game-ui {
  width: min(315px,calc(100% - 100px));
  max-width: 315px;
  padding: 5px 10px;
  gap: 2px;
}
body.phone-design .mobile-dock.dock-game-ui > a {
  flex: 1 1 0;
  gap: 1px;
  min-height: 56px;
  transform: scale(.94);
  opacity: .9;
}
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] {
  transform: scale(1.08);
  background: transparent;
  box-shadow: none;
}
body.phone-design .mobile-account-float {
  position: fixed;
  z-index: 31;
  left: max(18px,env(safe-area-inset-left));
  bottom: max(17px,env(safe-area-inset-bottom));
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 800 10px/1.35 Shadopia,Tahoma,sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
body.phone-design .mobile-account-float .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  box-sizing: content-box;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg,#ffd66a,#ff9e22);
  box-shadow: none;
}
body.phone-design .mobile-account-float[aria-current="page"] { color: #fff; }
body.phone-design .mobile-account-float:hover,
body.phone-design .mobile-account-float:focus-visible { color: #fff; background: transparent; box-shadow: none; }
@media (max-width:640px) {
  body.phone-design .mobile-dock.dock-game-ui {
    left: 82px;
    right: max(12px,env(safe-area-inset-right));
    width: auto;
    max-width: none;
    transform: none;
  }
  body.phone-design .mobile-account-float {
    left: max(9px,env(safe-area-inset-left));
    bottom: max(12px,env(safe-area-inset-bottom));
    gap: 4px;
    font-size: 9px;
  }
  body.phone-design .mobile-account-float .icon { width: 21px; height: 21px; padding: 4px; }
}
@media (max-width:360px) {
  body.phone-design .mobile-dock.dock-game-ui { left: 76px; right: 9px; }
  body.phone-design .mobile-account-float { font-size: 8px; }
}

/* Straight, evenly spaced three-item dock using the supplied Figma track. */
body.phone-design .mobile-dock.dock-game-ui {
  width: min(430px,calc(100% - 100px));
  max-width: 430px;
  height: 70px;
  padding: 0 15px;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: url('icons/dock-track.png') center / 100% 100% no-repeat;
  box-shadow: none;
  overflow: visible;
}
body.phone-design .mobile-dock.dock-game-ui > a {
  height: 56px;
  min-height: 56px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: scale(.94);
  opacity: .94;
}
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] {
  transform: scale(1.06);
  opacity: 1;
  background: transparent;
  box-shadow: none;
}
body.phone-design .mobile-dock.dock-game-ui > a .dock-art {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  filter: none;
}
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
  width: 39px;
  height: 39px;
  flex-basis: 39px;
}
body.phone-design .mobile-dock.dock-game-ui > a > span {
  display: block;
  min-height: 12px;
  margin: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 12px;
}
body.phone-design .mobile-account-float { bottom: max(23px,env(safe-area-inset-bottom)); }
@media (max-width:640px) {
  body.phone-design .mobile-dock.dock-game-ui {
    height: 66px;
    padding: 0 10px;
    background-size: 100% 100%;
  }
  body.phone-design .mobile-dock.dock-game-ui > a { height: 54px; min-height: 54px; }
  body.phone-design .mobile-dock.dock-game-ui > a .dock-art { width: 32px; height: 32px; flex-basis: 32px; }
  body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art { width: 35px; height: 35px; flex-basis: 35px; }
  body.phone-design .mobile-dock.dock-game-ui > a > span { font-size: 9px; line-height: 11px; min-height: 11px; }
  body.phone-design .mobile-account-float { bottom: max(18px,env(safe-area-inset-bottom)); }
}

/* Final aligned footer artwork: exact supplied track and category sprites. */
body.phone-design .mobile-dock.dock-game-ui {
  width: min(460px,calc(100% - 104px));
  max-width: 460px;
  height: 77px;
  padding: 0 18px;
  background-image: url('icons/footer-track-games.png');
  background-position: center;
  background-size: 100% 100%;
}
body.phone-design[data-mode="animation"] .mobile-dock.dock-game-ui { background-image: url('icons/footer-track-animation.png'); }
body.phone-design[data-mode="book"] .mobile-dock.dock-game-ui { background-image: url('icons/footer-track-books.png'); }
body.phone-design .mobile-dock.dock-game-ui > a { height: 64px; min-height: 64px; }
body.phone-design .mobile-dock.dock-game-ui > a .dock-art { width: 42px; height: 42px; flex-basis: 42px; }
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art { width: 45px; height: 45px; flex-basis: 45px; }
body.phone-design .mobile-dock.dock-game-ui > a > span { font-size: 11px; line-height: 14px; min-height: 14px; }
body.phone-design .mobile-account-float { bottom: max(26px,env(safe-area-inset-bottom)); }
@media (max-width:640px) {
  body.phone-design .mobile-dock.dock-game-ui { width: calc(100% - 100px); height: 60px; padding: 0 12px; }
  body.phone-design .mobile-dock.dock-game-ui > a { height: 56px; min-height: 56px; justify-content: flex-start; padding-top: 3px; }
  body.phone-design .mobile-dock.dock-game-ui > a .dock-art { width: 43px; height: 43px; flex-basis: 43px; }
  body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art { width: 46px; height: 46px; flex-basis: 46px; }
  body.phone-design .mobile-dock.dock-game-ui > a > span { font-size: 10px; line-height: 12px; min-height: 12px; }
  body.phone-design .mobile-account-float { bottom: max(17px,env(safe-area-inset-bottom)); }
}

/* Blend the header into the page; keep only a soft dark glow above it. */
body.phone-design .site-header,
body.phone-design .education-header {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.phone-design .site-header::before,
body.phone-design .education-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -34px;
  left: -12vw;
  right: -12vw;
  height: 172px;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 88% at 50% 0%, color-mix(in srgb,var(--game-deep) 78%,transparent), transparent 100%);
}
body.phone-design .site-header::after,
body.phone-design .education-header::after { display: none !important; }
/* Fade carousel edges on both sides so clipped neighboring cards blend away. */
body.phone-design .game-row,
body.phone-design .learning-grid {
  -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%);
  mask-image: linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%);
}
@media (max-width:640px) {
  body.phone-design .game-row,
  body.phone-design .learning-grid {
    -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
    mask-image: linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
  }
}

/* Let the category artwork rise above the dock while keeping labels seated. */
body.phone-design .mobile-dock.dock-game-ui > a .dock-art {
  width: 52px;
  height: 52px;
  flex-basis: 43px;
  margin-bottom: -8px;
  transform: translateY(-8px);
}
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
  width: 56px;
  height: 56px;
  flex-basis: 43px;
  margin-bottom: -12px;
  transform: translateY(-10px);
}
@media (max-width:640px) {
  body.phone-design .mobile-dock.dock-game-ui > a .dock-art {
    width: 49px;
    height: 49px;
    flex-basis: 38px;
    margin-bottom: -7px;
    transform: translateY(-7px);
  }
  body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
    width: 53px;
    height: 53px;
    flex-basis: 38px;
    margin-bottom: -10px;
    transform: translateY(-9px);
  }
}

/* Use the supplied parent and subscription artwork in the wide app header. */
@media (min-width:641px) {
  body.phone-design .site-header .family-nav > a:last-child {
    width: 190px;
    height: 72px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url('icons/header-parent-art.png') center / 100% 100% no-repeat;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design .site-header .family-nav > a:last-child .icon,
  body.phone-design .site-header .header-left > .header-subscription-buy .icon { display: none; }
  body.phone-design .site-header .header-left > .header-subscription-buy {
    width: 190px;
    height: 72px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url('icons/header-subscription-art.png') center / 100% 100% no-repeat;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design .section-controls { display: flex !important; align-items: center; gap: 10px; }
  body.phone-design .row-arrows { display: flex !important; align-items: center; gap: 8px; }
  body.phone-design .scroll-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #ffffff45;
    border-radius: 14px;
    background: #3b205f;
    color: #fff;
    box-shadow: 0 4px 0 #1b1031;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
  }
  body.phone-design .scroll-arrow:hover:not(:disabled) { transform: translateY(-2px); background: #613a98; }
  body.phone-design .scroll-arrow:disabled { opacity: .4; cursor: default; box-shadow: none; }
}
@media (max-width:640px) {
  body.phone-design .site-header .family-nav > a:last-child {
    width: 116px;
    height: 44px;
    min-height: 0;
    padding: 0;
    background: url('icons/header-parent-art.png') center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design .site-header .family-nav > a:last-child .icon { display: none; }
  body.phone-design .site-header .header-left > .header-subscription-buy {
    width: 116px;
    height: 44px;
    min-height: 0;
    padding: 0;
    background: url('icons/header-subscription-art.png') center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design .site-header .header-left > .header-subscription-buy .icon { display: none; }
  body.phone-design .section-controls,
  body.phone-design .row-arrows { display: none !important; }
}

/* Color matched header artwork for animation and book pages. */
@media (min-width:641px) {
  body.phone-design .education-header .family-nav > a:last-child {
    width: 190px;
    height: 72px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url('icons/header-parent-animation.png') center / 100% 100% no-repeat;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design .education-header .family-nav > a:last-child .icon { display: none; }
  body.phone-design .education-header > .education-subscription-buy {
    width: 190px;
    height: 72px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url('icons/header-subscription-animation.png') center / 100% 100% no-repeat;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design[data-mode="book"] .education-header .family-nav > a:last-child { background-image: url('icons/header-parent-books.png'); }
  body.phone-design[data-mode="book"] .education-header > .education-subscription-buy { background-image: url('icons/header-subscription-books.png'); }
}
@media (max-width:640px) {
  body.phone-design .education-header .family-nav > a:last-child {
    width: 116px;
    height: 44px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url('icons/header-parent-animation.png') center / 100% 100% no-repeat;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design .education-header .family-nav > a:last-child .icon { display: none; }
  body.phone-design .education-header > .education-subscription-buy {
    width: 116px;
    height: 44px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url('icons/header-subscription-animation.png') center / 100% 100% no-repeat;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.phone-design[data-mode="book"] .education-header .family-nav > a:last-child { background-image: url('icons/header-parent-books.png'); }
  body.phone-design[data-mode="book"] .education-header > .education-subscription-buy { background-image: url('icons/header-subscription-books.png'); }
  body.phone-design .education-header > .education-subscription-buy .icon { display: none; }
}
/* Keep the newly cropped category sprites crisp at carousel edges. */
body.phone-design .game-row,
body.phone-design .learning-grid {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
body.phone-design .game-card[href*="third-"] { aspect-ratio: 660 / 576 !important; }

/* Give the active footer tab a little more visual emphasis. */
body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
  width: 62px;
  height: 62px;
  transform: translateY(-13px);
}
@media (max-width:640px) {
  body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
    width: 58px;
    height: 58px;
    transform: translateY(-12px);
  }
}

/* A fixed app shell: the viewport stays still while only the content panel moves. */
html.phone-app-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--game-deep);
  touch-action: pan-x pan-y;
}
html.phone-app-shell body.phone-design {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}
html.phone-app-shell body.phone-design > .site-header,
html.phone-app-shell body.phone-design > .education-header {
  z-index: 5;
  flex: 0 0 auto;
  width: 100%;
}
html.phone-app-shell body.phone-design > .site-footer { display: none !important; }
html.phone-app-shell body.phone-design > .play-main,
html.phone-app-shell body.phone-design > .family-main,
html.phone-app-shell body.phone-design > .member-main {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}
html.phone-app-shell body.phone-design.has-mobile-dock > .play-main,
html.phone-app-shell body.phone-design.has-mobile-dock > .family-main,
html.phone-app-shell body.phone-design.has-mobile-dock > .member-main {
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}
html.phone-app-shell body.phone-design > .play-main::-webkit-scrollbar,
html.phone-app-shell body.phone-design > .family-main::-webkit-scrollbar,
html.phone-app-shell body.phone-design > .member-main::-webkit-scrollbar { display: none; }
html.phone-app-shell body.phone-design .game-row,
html.phone-app-shell body.phone-design .learning-grid {
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
/* Keep the scroll viewport full-height; the fixed dock itself stays over content. */
@media (max-width:900px) {
  html.phone-app-shell body.phone-design.has-mobile-dock > .play-main,
  html.phone-app-shell body.phone-design.has-mobile-dock > .family-main,
  html.phone-app-shell body.phone-design.has-mobile-dock > .member-main { margin-bottom: 0; }
  html.phone-app-shell body.phone-design .mobile-dock { z-index: 1000; }
  html.phone-app-shell body.phone-design .mobile-account-float { z-index: 1001; }
}

/* Keep the phone login focused on the number field with no page or footer scroll. */
html.phone-app-shell body.phone-design > .member-footer { display: none !important; }
html.phone-app-shell body.phone-design.phone-login-screen > .member-header {
  flex: 0 0 38px;
  min-height: 38px;
  padding: 3px 10px;
  gap: 8px;
}
html.phone-app-shell body.phone-design.phone-login-screen > .member-header .brand-name { font-size: 13px; }
html.phone-app-shell body.phone-design.phone-login-screen > .member-header .brand-name small { font-size: 6px; }
html.phone-app-shell body.phone-design.phone-login-screen > .member-header .brand-icon { width: 25px; height: 25px; }
html.phone-app-shell body.phone-design.phone-login-screen > .member-header .btn {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 9px;
}
html.phone-app-shell body.phone-design.phone-login-screen > .member-main {
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  overflow: hidden !important;
  padding: 6px 12px max(6px,env(safe-area-inset-bottom));
}
body.phone-design.phone-login-screen .login-grid {
  display: block;
  width: min(100%,430px);
  margin: 0 auto;
  padding: 0;
}
body.phone-design.phone-login-screen .member-story { display: none !important; }
body.phone-design.phone-login-screen .login-panel {
  width: 100%;
  max-width: none;
  padding: 12px 16px;
  border-radius: 20px;
}
body.phone-design.phone-login-screen .login-panel .panel-symbol {
  width: 34px;
  height: 34px;
  margin: 0 0 4px;
  border-radius: 11px;
}
body.phone-design.phone-login-screen .login-panel .panel-symbol .icon { width: 18px; height: 18px; }
body.phone-design.phone-login-screen .login-panel h2 { margin: 0 0 2px; font-size: 17px; }
body.phone-design.phone-login-screen .login-panel > .muted { margin: 0; font-size: 10px; }
body.phone-design.phone-login-screen .login-panel .member-field { gap: 5px; margin: 8px 0; font-size: 10px; }
body.phone-design.phone-login-screen .login-panel .member-field input { min-height: 42px; padding: 8px 11px; }
body.phone-design.phone-login-screen .login-panel .btn { min-height: 42px; padding: 8px 12px; font-size: 12px; }
body.phone-design.phone-login-screen .login-panel .login-footnote { margin-top: 7px; font-size: 8px; }
body.phone-design.phone-login-screen.keyboard-open .login-panel .panel-symbol,
body.phone-design.phone-login-screen.keyboard-open .login-panel > h2,
body.phone-design.phone-login-screen.keyboard-open .login-panel > .muted,
body.phone-design.phone-login-screen.keyboard-open .login-panel .login-footnote { display: none !important; }

/* Compact the phone header and dock while keeping the supplied art recognizable. */
@media (max-width:640px) {
  html.phone-app-shell body.phone-design > .site-header,
  html.phone-app-shell body.phone-design > .education-header {
    min-height: 29px;
    padding: 2px 6px;
  }
  html.phone-app-shell body.phone-design .site-header .brand,
  html.phone-app-shell body.phone-design .education-header .brand { max-width: 36%; }
  html.phone-app-shell body.phone-design .brand-name { font-size: 12px; }
  html.phone-app-shell body.phone-design .brand-name small { font-size: 5px; }
  html.phone-app-shell body.phone-design .brand-icon { width: 21px; height: 21px; border-radius: 7px; }
  html.phone-app-shell body.phone-design .site-header .family-nav > a:last-child,
  html.phone-app-shell body.phone-design .site-header .header-left > .header-subscription-buy,
  html.phone-app-shell body.phone-design .education-header .family-nav > a:last-child,
  html.phone-app-shell body.phone-design .education-header > .education-subscription-buy {
    width: 50px;
    height: 20px;
  }
  html.phone-app-shell body.phone-design .mobile-dock.dock-game-ui {
    height: 30px;
    min-height: 30px;
    width: calc(100% - 92px);
    padding: 0 7px;
    border-radius: 11px;
    box-shadow: 0 4px 0 #1b0d36,0 7px 16px #10071f55;
  }
  html.phone-app-shell body.phone-design .mobile-dock.dock-game-ui > a {
    height: 27px;
    min-height: 27px;
    gap: 0;
    padding: 0;
  }
  html.phone-app-shell body.phone-design .mobile-dock.dock-game-ui > a .dock-art,
  html.phone-app-shell body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
    width: 25px;
    height: 25px;
    flex-basis: 22px;
    margin: 0 0 -4px;
    transform: translateY(-4px);
  }
  html.phone-app-shell body.phone-design .mobile-dock.dock-game-ui > a > span {
    font-size: 6px;
    line-height: 8px;
    min-height: 8px;
  }
  html.phone-app-shell body.phone-design .has-mobile-dock > .play-main,
  html.phone-app-shell body.phone-design .has-mobile-dock > .family-main {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}
@media (max-height:560px) {
  body.phone-design.phone-login-screen .login-panel { padding: 9px 13px; }
  body.phone-design.phone-login-screen .login-panel .panel-symbol,
  body.phone-design.phone-login-screen .login-panel > h2,
  body.phone-design.phone-login-screen .login-panel > .muted,
  body.phone-design.phone-login-screen .login-panel .login-footnote { display: none !important; }
}

/* Landscape catalog: tighten the vertical rhythm so the sections sit together. */
@media (max-width:900px) and (orientation:landscape) {
  html.phone-app-shell body.phone-design > .play-main,
  html.phone-app-shell body.phone-design > .family-main {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  html.phone-app-shell body.phone-design .game-section { margin-bottom: 8px; }
  html.phone-app-shell body.phone-design .section-heading,
  html.phone-app-shell body.phone-design .learning-section-heading { margin-bottom: 5px; }
  html.phone-app-shell body.phone-design .game-row,
  html.phone-app-shell body.phone-design .learning-grid { padding-top: 0; padding-bottom: 4px; }
}

/* Portrait catalog: keep the composition centered and cards in a tidy grid. */
@media (max-width:640px) and (orientation:portrait) {
  body.phone-design > .site-header,
  body.phone-design > .education-header { height: 29px; }
  body.phone-design > .play-main,
  body.phone-design > .family-main {
    width: min(100%,560px);
    margin-inline: auto;
    padding-inline: 12px;
  }
  body.phone-design .game-row,
  body.phone-design .learning-grid {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    overflow: visible;
    padding: 2px 1px 8px;
    scroll-snap-type: none;
    touch-action: pan-x pan-y;
  }
  body.phone-design .game-card,
  body.phone-design .learning-card { width: 100%; min-width: 0; aspect-ratio: 1.12; }
}

/* Halve the wide artwork bars and keep taps from shifting their covers. */
@media (min-width:641px) {
  body.phone-design .site-header .family-nav > a:last-child,
  body.phone-design .site-header .header-left > .header-subscription-buy,
  body.phone-design .education-header .family-nav > a:last-child,
  body.phone-design .education-header > .education-subscription-buy {
    width: 95px;
    height: 36px;
  }
  body.phone-design .mobile-dock.dock-game-ui { width: min(230px,calc(100% - 104px)); height: 39px; }
  body.phone-design .mobile-dock.dock-game-ui > a .dock-art,
  body.phone-design .mobile-dock.dock-game-ui > a[aria-current="page"] .dock-art {
    width: 27px;
    height: 27px;
    flex-basis: 24px;
    margin: 0 0 -4px;
    transform: translateY(-4px);
  }
  body.phone-design .mobile-dock.dock-game-ui > a > span { font-size: 7px; line-height: 9px; min-height: 9px; }
}
html.phone-app-shell body.phone-design .game-card,
html.phone-app-shell body.phone-design .game-card:hover,
html.phone-app-shell body.phone-design .game-card:focus,
html.phone-app-shell body.phone-design .game-card:focus-visible,
html.phone-app-shell body.phone-design .game-card:active,
html.phone-app-shell body.phone-design .learning-card,
html.phone-app-shell body.phone-design .learning-card:hover,
html.phone-app-shell body.phone-design .learning-card:focus,
html.phone-app-shell body.phone-design .learning-card:focus-visible,
html.phone-app-shell body.phone-design .learning-card:active {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
html.phone-app-shell body.phone-design .game-card:hover,
html.phone-app-shell body.phone-design .game-card:focus-visible { box-shadow: 0 5px 0 #20113b,0 9px 16px #180d2b30; }
html.phone-app-shell body.phone-design .game-cover > img,
html.phone-app-shell body.phone-design .game-card:hover .game-cover > img,
html.phone-app-shell body.phone-design .game-card:active .game-cover > img,
html.phone-app-shell body.phone-design .learning-cover > img,
html.phone-app-shell body.phone-design .learning-card:hover .learning-cover > img,
html.phone-app-shell body.phone-design .learning-card:active .learning-cover > img {
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}
html.phone-app-shell body.phone-design .game-card,
html.phone-app-shell body.phone-design .learning-card { -webkit-tap-highlight-color: transparent; }

/* Ask for landscape once on entry, while keeping portrait as a clear option. */
.landscape-turn-active { overflow: hidden !important; }
.landscape-turn-prompt[hidden] { display: none !important; }
.landscape-turn-prompt {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(22px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  direction: rtl;
  color: #fff;
  font-family: Tahoma,Arial,sans-serif;
  background: radial-gradient(ellipse at 50% 18%,#543481 0,#38225f 52%,#211438 100%);
  animation: landscape-prompt-in .35s ease both;
}
.landscape-turn-card {
  position: relative;
  width: min(100%,420px);
  padding: clamp(24px,6vw,42px);
  text-align: center;
  border: 1px solid #ffffff30;
  border-radius: 30px;
  background: linear-gradient(145deg,#ffffff19,#ffffff09);
  box-shadow: 0 24px 80px #120a2180,inset 0 1px #ffffff30;
  backdrop-filter: blur(18px);
  animation: landscape-card-in .5s cubic-bezier(.2,.8,.2,1) both;
}
.landscape-turn-art {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 15px;
  border: 1px solid #ffffff30;
  border-radius: 32px;
  background: linear-gradient(145deg,#8b63c7,#56348f);
  box-shadow: 0 0 0 9px #a880ed16,0 16px 38px #160c2e55;
}
.landscape-turn-art svg { width: 88px; height: 88px; overflow: visible; }
.landscape-phone { fill: #fff; stroke: #d8c7f2; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: phone-to-landscape 2.6s ease-in-out infinite; }
.landscape-screen { fill: #eee8fb; stroke: #b59bd9; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: screen-to-landscape 2.6s ease-in-out infinite; }
.landscape-arrow { fill: none; stroke: #f9d889; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 180; stroke-dashoffset: 180; animation: landscape-arrow 2.6s ease-in-out infinite; }
.landscape-turn-spark { position: absolute; top: 33px; right: calc(50% - 82px); color: #ffdf91; font-size: 25px; animation: landscape-spark 1.8s ease-in-out infinite; }
.landscape-turn-card h2 { margin: 12px 0 8px; color: #fff; font-size: clamp(21px,5.5vw,28px); line-height: 1.65; }
.landscape-turn-card p { max-width: 320px; margin: 0 auto; color: #e4d9f1; font-size: 13px; line-height: 2; }
.landscape-turn-continue { width: 100%; min-height: 48px; margin-top: 22px; border: 1px solid #ffffff38; border-radius: 15px; background: #fff; color: #4c2b78; font: 700 14px Tahoma,Arial,sans-serif; cursor: pointer; box-shadow: 0 5px 0 #cab6e5; }
.landscape-turn-card small { display: block; margin-top: 15px; color: #d3c2e8; font-size: 10px; }
@keyframes landscape-prompt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes landscape-card-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes phone-to-landscape { 0%,18% { transform: rotate(0); } 65%,100% { transform: rotate(90deg); } }
@keyframes screen-to-landscape { 0%,18% { transform: rotate(0) scale(1); } 65%,100% { transform: rotate(-90deg) scale(.72); } }
@keyframes landscape-arrow { 0%,18% { stroke-dashoffset: 180; opacity: .4; } 65%,88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -180; opacity: .3; } }
@keyframes landscape-spark { 50% { transform: translateY(-6px) rotate(35deg) scale(1.12); } }
@media (max-width:420px) {
  body.phone-design .site-header .header-inner,
  body.phone-design .education-header {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
    align-items: center;
    gap: 4px !important;
    width: 100%;
    padding: 6px 8px !important;
    box-sizing: border-box;
  }
  body.phone-design .site-header .brand,
  body.phone-design .education-header > .brand { grid-column: 2; grid-row: 1; justify-self: center; max-width: min(34vw,128px); }
  body.phone-design .site-header .family-nav,
  body.phone-design .education-header > .family-nav { position: static !important; grid-column: 3; grid-row: 1; justify-self: start; width: auto; min-width: 0; margin: 0; }
  body.phone-design .site-header .header-left,
  body.phone-design .education-header > .education-account { grid-column: 1; grid-row: 1; justify-self: end; min-width: 0; margin: 0; }
  body.phone-design .site-header .family-nav > a:last-child,
  body.phone-design .site-header .header-left > .header-subscription-buy,
  body.phone-design .education-header .family-nav > a:last-child,
  body.phone-design .education-header > .education-subscription-buy { width: clamp(78px,24vw,94px); height: clamp(32px,10vw,38px); }
  body.phone-design .brand-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; font-size: clamp(13px,4vw,16px); }
}
@media (prefers-reduced-motion:reduce) {
  .landscape-turn-prompt,.landscape-turn-card,.landscape-phone,.landscape-screen,.landscape-arrow,.landscape-turn-spark { animation: none !important; }
}

/* Portrait headers use normal flow: no absolute controls over the title. */
@media(max-width:700px) and (orientation:portrait){
body.phone-design .site-header,body.phone-design .education-header{height:auto;min-height:104px;padding:12px 14px!important;padding-top:max(12px,env(safe-area-inset-top))!important}
body.phone-design .site-header .header-inner,body.phone-design .education-header{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;direction:rtl;height:auto}
body.phone-design .site-header .brand,body.phone-design .education-header>.brand{position:static!important;transform:none!important;grid-column:1 / -1!important;grid-row:1!important;justify-self:center;max-width:100%!important;width:auto}
body.phone-design .site-header .brand-name,body.phone-design .education-header .brand-name{max-width:none!important;overflow:visible;white-space:normal}
body.phone-design .site-header .brand-name:after,body.phone-design .education-header .brand-name:after{font-size:20px}
body.phone-design .site-header .header-left,body.phone-design .education-header>.education-account{position:static!important;transform:none!important;grid-column:1!important;grid-row:2!important;justify-self:start;max-width:100%;min-width:0}
body.phone-design .site-header .family-nav,body.phone-design .education-header>.family-nav{position:static!important;transform:none!important;grid-column:2!important;grid-row:2!important;justify-self:end;max-width:100%;width:auto}
body.phone-design .header-left>.btn,body.phone-design .family-nav>:last-child,body.phone-design .education-account{min-height:42px;max-width:100%;font-size:12px}
body.phone-design .game-row,body.phone-design[data-layout="grid"] .game-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
body.phone-design .mobile-dock{width:calc(100% - 28px);max-width:430px;bottom:calc(10px + env(safe-area-inset-bottom))}
body.phone-design .play-main{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
}
