/* One language-card design shared by game and editorial pages. */
.language-trigger{width:48px;height:48px;min-width:48px;display:grid;place-items:center;border:1px solid #cfddc7;border-bottom:4px solid #b9cbae;border-radius:14px;background:linear-gradient(#fff,#edf4e6);color:#28573e;cursor:pointer}
.language-trigger svg{width:23px;height:23px}.language-trigger[aria-expanded=true]{border-color:#57825b;background:#e5efdf}
.language-cards{display:grid;gap:13px;margin:24px 0 4px;direction:ltr}html[dir=rtl] .language-cards{direction:rtl}
.language-option{display:flex;align-items:center;gap:18px;min-height:90px;padding:18px 20px;border:1px solid #d7e2ce;border-bottom:4px solid #c8d7bb;border-radius:17px;background:linear-gradient(120deg,#fff,#f4f8ed);color:#254c36;text-decoration:none;transition:transform .15s,border-color .15s}
.language-option:hover{border-color:#80a26d;transform:translateY(-2px)}.language-option[aria-current=page]{background:linear-gradient(120deg,#edf5e5,#e1edda);border-color:#80a26d}
.language-flag{width:48px;height:35px;object-fit:cover;border-radius:7px;border:1px solid #ccd7c2;flex-shrink:0}.language-option>span{display:grid;gap:4px;flex:1;line-height:1.4}.language-option strong{font-size:20px;font-weight:700}.language-option .language-check{width:27px;height:27px;padding:4px;background:#2f6544;color:#fff;border-radius:50%;flex-shrink:0}.language-option:not([aria-current=page]) .language-check{visibility:hidden}
@media(max-width:600px){.language-trigger{width:44px;height:44px;min-width:44px;border-radius:12px}.language-option{min-height:82px;padding:16px;gap:14px}.language-option strong{font-size:18px}.language-flag{width:43px;height:31px}.language-option .language-check{width:24px;height:24px}}
/* Editorial sheets use the same fixed header/body geometry as the game shell. */
.learn-shell .shared-sheet{color:#244f36;border:1px solid #bfd0af;border-top:2px solid #cfddc0;border-bottom:6px solid #9bb486;border-radius:30px;background:linear-gradient(150deg,#fffef8,#f0f6e8);box-shadow:0 28px 90px #153b2a40,inset 0 2px 0 #fff;width:min(720px,calc(100vw - 64px));max-width:calc(100vw - 64px);max-height:calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;margin:auto;overflow:hidden;overscroll-behavior:contain}
.learn-shell .shared-sheet[open]{display:flex;flex-direction:column;animation:read-sheet-enter .22s ease-out}
.learn-shell .shared-sheet::backdrop{background:#153c2d91;backdrop-filter:blur(7px)}
.learn-shell .sheet-header{position:relative;display:flex;align-items:center;gap:14px;flex-shrink:0;width:100%;padding:30px 36px 18px;border-bottom:1px solid #d8e3cd;background:linear-gradient(145deg,#fffef8,#edf4e4);z-index:2}
.learn-shell .sheet-heading{display:flex;align-items:center;gap:14px;flex:1;min-width:0}.learn-shell .sheet-title{margin:0;padding:0;font-size:21px;line-height:1.4;text-align:start;font-weight:700}
.learn-shell .sheet-header .dialog-symbol{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;margin:0;padding:0;border-radius:15px;background:linear-gradient(145deg,#f6f7df,#dfeacc);border:1px solid #bfd0a8;border-bottom:4px solid #9eb580;color:#41683d}.learn-shell .dialog-symbol svg{width:25px;height:25px}
.learn-shell .dialog-close{display:grid;place-items:center;position:static;width:44px;height:46px;min-height:44px;margin:0;padding:0;flex-shrink:0;border:1px solid #bfd0ae;border-bottom:4px solid #a8bd94;border-radius:14px;background:linear-gradient(#fbfdef,#e7efdc);color:#41683d;cursor:pointer}.learn-shell .dialog-close svg{width:21px;height:21px}
.learn-shell .sheet-handle{position:absolute;inset:8px 64px auto;height:14px;display:flex;justify-content:center;align-items:center;touch-action:none;cursor:grab}.learn-shell .sheet-handle span{display:block;width:44px;height:5px;border:1px solid #adbf9a;border-bottom:2px solid #9aaf85;border-radius:99px;background:linear-gradient(#d5e0c9,#bacda8)}
.learn-shell .sheet-body{flex:1 1 auto;min-height:0;width:100%;padding:24px 36px 30px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b5c8a4 transparent}.learn-shell .sheet-body>p{font-size:15px;line-height:1.8;margin:0}
.learn-shell .learn-menu-cards{display:grid;gap:12px}.learn-menu-cards a{display:flex;align-items:center;gap:14px;min-height:64px;padding:15px 18px;border:1px solid #c5d5b6;border-bottom:4px solid #a4bb8d;border-radius:16px;background:linear-gradient(145deg,#fffef7,#e7f0dc);text-decoration:none;font-size:16px;font-weight:650}.learn-menu-cards svg{width:27px;height:27px}
.learn-profile-chip{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:225px;min-height:46px;padding:5px 10px 5px 6px;border:1px solid #c7d8b9;border-bottom:3px solid #a9c093;border-radius:15px;background:linear-gradient(#fffef8,#eff5e6);color:#345d3e;cursor:pointer;font:inherit;font-size:13px}.learn-profile-chip img{width:34px;height:34px;flex-shrink:0;object-fit:contain}.learn-profile-chip span{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.learn-profile-chip svg{width:14px;height:14px}
.learn-profile-summary{display:grid;justify-items:center;gap:15px;padding:15px 0 24px}.learn-profile-summary img{width:110px;height:110px}.learn-profile-summary strong{font-size:23px;color:#315b3c;max-width:100%;overflow-wrap:anywhere}
.learn-menu-trigger{display:none}
@keyframes read-sheet-enter{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
@media(max-width:900px){.learn-menu-trigger{display:grid}.learn-header{gap:8px}.learn-header-tools{gap:7px}}
@media(max-width:600px){.learn-shell .shared-sheet{inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;max-height:calc(100dvh - max(20px,env(safe-area-inset-top)));border-radius:28px 28px 0 0;border-bottom:0}.learn-shell .sheet-header{padding:26px 20px 14px;gap:10px}.learn-shell .sheet-heading{gap:10px}.learn-shell .sheet-title{font-size:17px;line-height:1.4}.learn-shell .sheet-header .dialog-symbol{width:44px;height:46px;border-radius:14px}.learn-shell .sheet-body{padding:20px 22px calc(24px + env(safe-area-inset-bottom))}.learn-profile-chip{max-width:132px;padding-inline:4px 7px;gap:5px}.learn-profile-chip span{max-width:76px;font-size:11px}.learn-profile-chip svg{display:none}.learn-header-tools{gap:5px}.learn-profile-chip img{width:30px;height:30px}.learn-header .learn-brand{font-size:20px;gap:3px}.learn-header .learn-brand img{width:32px;height:39px}.learn-header{padding-inline:10px}}
@media(max-width:350px){.learn-profile-chip{max-width:108px}.learn-profile-chip span{max-width:55px}.learn-header{gap:5px}.learn-header-tools{gap:4px}.learn-profile-chip img{width:27px;height:27px}.learn-profile-chip{min-height:44px}}
@media(prefers-reduced-motion:reduce){.learn-shell .shared-sheet[open]{animation:none}.language-option{transition:none}}

.learn-shell .language-option{color:#254c36}
.learn-mobile-dock button{display:flex;flex:1;min-width:0;min-height:55px;align-items:center;justify-content:center;flex-direction:column;gap:4px;font:inherit;font-size:10px;text-decoration:none;border:1px solid #c5d6b6;border-bottom:4px solid #a9c093;border-radius:13px;background:#f7faee;color:#315e40;cursor:pointer}

/* Desktop navigation uses the same quiet tabs as the game lobby. */
@media(min-width:901px){
.learn-desktop-nav.main-nav{align-self:stretch;align-items:stretch;gap:25px}
.learn-desktop-nav.main-nav a,.main-nav a.learning-nav-link{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0;height:100%;padding:0;background:none;border:0;border-radius:0;color:#929c87;font-size:14px;font-weight:600;line-height:1.8;text-decoration:none;box-shadow:none;white-space:nowrap}
.main-nav a.learning-nav-link svg{display:none}
.learn-desktop-nav.main-nav a:hover,.main-nav a.learning-nav-link:hover,.learn-desktop-nav.main-nav a.nav-active{color:#214c3c}
.learn-desktop-nav.main-nav a.nav-active:after{content:'';position:absolute;inset-inline:0;bottom:-12px;height:3px;border-radius:4px;background:#8b9f6c}
.learn-desktop-nav.main-nav a:focus-visible,.main-nav a.learning-nav-link:focus-visible{outline:3px solid #c09a45;outline-offset:4px}
}

/* The actual lobby header is shared across game and editorial templates. */
html body .site-header{box-sizing:border-box;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:24px;height:86px;min-height:86px;padding:0 4%;background:#fff;border-bottom:1px solid #dfebda;backdrop-filter:none;font-family:'DM Sans',Arial,sans-serif;line-height:1.5;color:#123f32}
html body .site-header *{box-sizing:border-box}
html body .site-header .wordmark{display:flex;align-items:center;flex-shrink:0;gap:9px;padding:0;color:#123f32;text-decoration:none;font-weight:800}
html body .site-header .wordmark>.brand-logo{display:block;width:58px;height:62px;object-fit:contain}
html body .site-header .wordmark>.brand-name{font:900 34px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:-.7px;color:#214f37}
html body .site-header .main-nav{display:flex;align-items:stretch;align-self:stretch;height:auto;margin:0;gap:25px}
html body .site-header .main-nav>a,html body .site-header .main-nav>button{position:relative;display:flex;align-items:center;justify-content:center;height:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#929c87;font:600 14px/1.5 'DM Sans',Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
html body .site-header .main-nav .nav-active,html body .site-header .main-nav>a:hover,html body .site-header .main-nav>button:hover{color:#214c3c}
html body .site-header .main-nav .nav-active:after{content:'';position:absolute;bottom:0;inset-inline:0;height:3px;border-radius:4px;background:#8b9f6c}
html body .site-header .top-actions{display:flex;align-items:center;gap:20px;margin:0}
html body .site-header .profile-chip{display:flex;align-items:center;gap:9px;min-width:0;max-width:245px;height:48px;min-height:48px;padding:5px 10px 5px 5px;border:1px solid #d3e2ce;border-radius:13px;background:#f4f8ee;color:#244d32;font:400 13px/1.5 'DM Sans',Arial,sans-serif;cursor:pointer}
html body .site-header .profile-chip>img{display:block;width:36px;height:36px;flex-shrink:0;border-radius:10px;object-fit:contain}
html body .site-header .profile-chip>[data-user-text]{display:block;min-width:0;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .site-header .profile-chip>svg{display:block;width:17px;height:17px;flex-shrink:0}
html body .site-header .header-country{display:flex;align-items:center;flex-shrink:0}
html body .site-header .country-flag{display:block;width:23px;height:18px;object-fit:contain;border-radius:3px}
html body .site-header [hidden]{display:none!important}
html body .site-header .install-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:8px 12px;border:1px solid #cddfbf;border-radius:9px;background:#ecf5e4;color:#3b6b2e;font:400 12px/1.5 'DM Sans',Arial,sans-serif;cursor:pointer}
html body .site-header .install-button svg{width:20px;height:20px}
html body .site-header .connection{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px}
html body .site-header .dot{display:block;width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#86a76d}
html body .site-header .dot.offline{background:#bd6a54}
html body .site-header .learn-menu-trigger{display:none}
@media(max-width:1200px) and (min-width:901px){html body .site-header{gap:16px;padding-inline:3%}html body .site-header .main-nav{gap:17px}html body .site-header .top-actions{gap:12px}html body .site-header .connection{display:none}html body .site-header .profile-chip>[data-user-text]{max-width:95px}}
@media(max-width:900px){html body .site-header{height:73px;min-height:73px;padding-inline:14px!important;gap:12px!important;direction:ltr!important}html body .site-header .main-nav{display:none!important}html body .site-header .top-actions{gap:10px!important;direction:ltr}html body .site-header .wordmark{min-width:0;gap:6px;flex-shrink:1}html body .site-header .wordmark>.brand-logo{width:42px!important;height:46px!important}html body .site-header .wordmark>.brand-name{font-size:27px}html body .site-header .install-button,html body .site-header .connection{display:none!important}html body .site-header .profile-chip{order:3;width:auto!important;min-width:46px!important;max-width:80px!important;height:46px!important;min-height:46px!important;padding:4px!important;gap:7px!important}html body .site-header .profile-chip>[data-user-text],html body .site-header .profile-chip>svg{display:none!important}html body .site-header .profile-chip>img{width:34px;height:34px}html body .site-header .language-trigger{order:2;min-width:44px;width:44px;height:46px}html body .site-header .learn-menu-trigger{display:grid;order:4}}
@media(max-width:350px){html body .site-header{gap:6px!important;padding-inline:10px!important}html body .site-header .top-actions{gap:6px!important}html body .site-header .wordmark>.brand-name{font-size:23px}html body .site-header .wordmark>.brand-logo{width:35px!important;height:42px!important}}

html body .site-header .wordmark{font:800 35px/1.5 'DM Sans',Arial,sans-serif}
html body .site-header .wordmark>.brand-logo{font-size:35px}
html body .site-header .wordmark>.brand-name{font-size:34px!important;line-height:1.2!important}
html body .site-header .language-trigger{font:400 16px/1.5 'DM Sans',Arial,sans-serif}
@media(max-width:900px){html body .site-header .wordmark>.brand-name{font-size:27px!important}}
@media(max-width:350px){html body .site-header .wordmark>.brand-name{font-size:23px!important}}

html body .site-header button:focus-visible,html body .site-header a:focus-visible{outline:3px solid #c09a45;outline-offset:4px}

#mobile-menu-dialog .learn-menu-cards{display:grid;gap:12px}#mobile-menu-dialog .learn-menu-cards a{display:flex;align-items:center;gap:13px;min-height:64px;padding:14px 18px;border:1px solid #c5d6b7;border-bottom:4px solid #a4bd8e;border-radius:17px;background:linear-gradient(145deg,#fffef7,#eaf2df);color:#315e40;font-weight:700;text-decoration:none}#mobile-menu-dialog .learn-menu-cards svg{width:24px;height:24px;flex-shrink:0}

/* Unified garden palette and restrained, dimensional artwork interaction. */
.learn-shell{background:#fcfdf9;color:#123e2f;font-family:'DM Sans','Noto Kufi Arabic',Arial,sans-serif}
.learn-shell a:hover{color:#214f37}
.learn-card,.learn-section,.learn-related-card{background:linear-gradient(145deg,#fffef7,#f0f6e8);border-color:#c9d9bd;border-bottom-color:#a6bf91}
.learn-card-art{background:linear-gradient(145deg,#f3f6dc,#deebcf)}
.game-challenge-art,.learn-card-art img,.learn-article-art,.learn-figure img{transition:transform .35s cubic-bezier(.2,.8,.2,1),filter .35s;transform-origin:50% 60%}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.game-card:hover .game-challenge-art,.learn-card:hover .learn-card-art img{transform:translateY(-5px) rotate(-2deg) scale(.97);filter:drop-shadow(0 10px 8px #315a3926)}.learn-figure:hover img,.learn-article-art:hover{transform:translateY(-4px) scale(.98);filter:drop-shadow(0 8px 6px #315a3920)}}
@media(prefers-reduced-motion:reduce){.game-challenge-art,.learn-card-art img,.learn-article-art,.learn-figure img{transition:none;transform:none}}

/* Footer resource links share the raised, daylight controls of the lobby. */
.site-footer .footer-learning-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 32px 26px;padding-top:24px;border-top:1px solid #d5e0c9}
.site-footer .footer-learning-links a{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:56px;padding:13px 16px;border:1px solid #cadabc;border-bottom:4px solid #a9c095;border-radius:14px;background:linear-gradient(145deg,#fffef7,#eaf2df);color:#355e3f;text-decoration:none;font-size:13px;font-weight:600;line-height:1.6;transition:background .15s,border-color .15s,transform .15s}
.site-footer .footer-learning-links a span{min-width:0;overflow-wrap:anywhere}
.site-footer .footer-learning-links svg{display:block;width:21px;height:21px;flex-shrink:0;color:#5c8050}
.site-footer .footer-learning-links a:hover{background:#e4eedb;border-color:#8eae7c;color:#244e36}
.site-footer .footer-learning-links a:focus-visible{outline:3px solid #568242;outline-offset:3px}
.site-footer .footer-learning-links a:active{transform:translateY(2px)}
@media(max-width:900px){.site-footer .footer-learning-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.site-footer .footer-learning-links{gap:10px;margin:0 20px 22px;padding-top:20px}.site-footer .footer-learning-links a{gap:8px;padding:11px 10px;min-height:58px;font-size:12px;border-radius:12px}.site-footer .footer-learning-links svg{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){.site-footer .footer-learning-links a{transition:none}}
