/* CSS-only interface drawings. Vocabulary pictures will arrive separately. */
/* Centre each complete group in the space beneath the toolbar; tall menus scroll naturally. */
.background{background:#d9e5cc var(--background) center/cover no-repeat}.background:after{display:none}
.topbar{position:relative;z-index:5}
.launch-screen{position:relative;isolation:isolate;display:flex;align-items:flex-start;justify-content:center;min-height:calc(100svh - 76px);padding:20px 20px 120px}
.landing-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}.scene-layer{position:absolute;inset:0;pointer-events:none}.scene-animals{z-index:1}.scene-effects{z-index:2}.scene-foreground{z-index:3}
.welcome{position:relative;z-index:1;width:min(390px,88vw);margin:0;text-align:center;padding:38px 32px 32px;background:linear-gradient(145deg,#fffcedf7,#f6f3e3f5);border:2px solid #fffdf0;border-radius:180px 180px 42px 42px;box-shadow:0 12px 35px #18392933,inset 0 0 0 7px #e5e7c957}
.welcome .eyebrow{display:block;font-size:10px;letter-spacing:.22em;margin:18px 0 14px;color:#557052}.welcome-rule{width:54px;border-top:2px solid #9dad80;margin:18px auto}.welcome h1{font-size:46px;line-height:1.04;color:#214b38;margin:20px auto;max-width:320px;text-wrap:balance}.welcome>p{font-size:15px;line-height:1.45;max-width:280px;margin:18px auto;color:#4d644e}.welcome .button{border-radius:35px;padding:16px 28px;min-height:55px;background:linear-gradient(#3e7451,#285a41);border:2px solid #a2b88a;box-shadow:0 4px 0 #1b442f33;font-size:17px}.welcome-footnote{display:block;font:italic 12px Georgia,serif;margin-top:20px;color:#667353}
.menu-heading{width:fit-content;max-width:90%;padding:12px 30px}.menu-heading h1{font-size:36px}.mode-grid{gap:16px}.mode-card{align-items:center;text-align:center;min-height:186px;gap:0;padding:15px 12px 18px;background:#fffbeeef}.mode-card strong{font-size:18px;margin:7px 0}.mode-description{font-size:12px;text-align:center}.mode-number{position:absolute;top:14px;left:14px;font:10px inherit}.mode-card:before{display:block;position:absolute;content:"";width:108px;height:80px;left:calc(50% - 54px);top:13px;background:var(--card);border-radius:50% 45% 48% 38%;z-index:0}.locked-tag{position:absolute;right:10px;top:10px}.mode-card>*{position:relative}.mode-card .mode-number,.mode-card .locked-tag{position:absolute}
.css-icon{position:relative;display:block;width:88px;height:72px;margin:0 auto 6px;z-index:1;--line:#38654e}.css-icon i,.css-icon b,.css-icon em{position:absolute;display:block;font-style:normal}
.icon-learn i{width:60px;height:45px;left:14px;top:15px;background:linear-gradient(90deg,#fff8de 47%,#b5bc91 49%,#fff8de 52%);border:3px solid var(--line);border-radius:8px 8px 4px 4px;transform:rotate(-7deg);box-shadow:0 4px 0 #7c997166}.icon-learn b,.icon-learn em{width:15px;height:3px;background:#95a77c;top:28px;left:23px;box-shadow:0 8px #95a77c,0 16px #95a77c}.icon-learn em{left:50px;top:25px}
.icon-sort i{width:64px;height:37px;left:12px;top:30px;background:repeating-linear-gradient(0deg,#c99a59 0 5px,#a7794277 5px 7px);border:3px solid #755e3a;border-radius:4px 4px 15px 15px;transform:perspective(80px) rotateX(-10deg)}.icon-sort b{width:38px;height:31px;left:25px;top:8px;border:5px solid #755e3a;border-bottom:0;border-radius:22px 22px 0 0}
.icon-sound i{width:39px;height:51px;left:25px;top:10px;border:5px solid var(--line);border-radius:55% 50% 50% 20%;transform:rotate(12deg)}.icon-sound b{width:18px;height:27px;left:36px;top:21px;border:4px solid var(--line);border-bottom:0;border-radius:50%}.icon-sound em{width:12px;height:12px;left:26px;top:53px;border:4px solid var(--line);border-top:0;border-radius:0 0 12px 12px}
.icon-identify i{width:42px;height:42px;border:5px solid #477461;border-radius:50%;left:14px;top:6px;background:#d6ece88a;box-shadow:inset 3px 2px #fff9}.icon-identify b{height:32px;width:12px;background:#b78548;border:3px solid #775a37;transform:rotate(-43deg);left:52px;top:41px;border-radius:4px}
.icon-knowledge i{width:49px;height:55px;left:20px;top:9px;background:#6e9871;border:3px solid #365d43;border-radius:12px 12px 28px 28px;transform:rotate(-7deg)}.icon-knowledge b{width:23px;height:13px;border-left:5px solid #fff8de;border-bottom:5px solid #fff8de;transform:rotate(-45deg);left:34px;top:27px}
.icon-spelling i{width:47px;height:58px;left:16px;top:6px;background:repeating-linear-gradient(#fff9dc 0 10px,#cdd2aa 11px 12px);border:3px solid #6b8055;border-radius:6px;transform:rotate(-8deg)}.icon-spelling b{width:11px;height:56px;left:58px;top:11px;background:linear-gradient(90deg,#d59538 50%,#f4ce73 50%);border:2px solid #8f6937;border-radius:3px;transform:rotate(30deg)}
.icon-flip i,.icon-flip b{width:37px;height:49px;border:3px solid #6b8460;border-radius:7px;top:13px;background:#fff8dc;transform:rotate(-12deg);left:9px;box-shadow:0 3px #8ba67955}.icon-flip b{left:44px;transform:rotate(12deg);background:#a7bf83}.icon-flip em{width:15px;height:15px;background:#4e7653;border-radius:50%;top:29px;left:20px;box-shadow:34px -1px #fff7d5}
.icon-wheel i{width:59px;height:59px;top:6px;left:15px;border:4px solid #5e7654;border-radius:50%;background:conic-gradient(#e4b658 0 60deg,#a9c887 60deg 120deg,#87bac1 120deg 180deg,#dab49a 180deg 240deg,#b6a6cf 240deg 300deg,#ecd997 300deg);box-shadow:0 3px #31523a33}.icon-wheel b{width:15px;height:15px;left:37px;top:28px;border-radius:50%;background:#fff7d2;border:3px solid #5e7654}.icon-wheel em{width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:17px solid #ba5841;right:5px;top:28px}
@media(min-width:800px) and (max-height:750px){.launch-screen{min-height:calc(100svh - 60px);padding:10px 20px 90px}.welcome{width:350px;padding:22px 26px 24px}.welcome h1{font-size:42px;margin:14px auto}.welcome>p{font-size:14px;margin:14px auto}.welcome-rule{margin:12px auto}.welcome-footnote{margin-top:16px}.mode-card{min-height:175px}.menu-heading h1{font-size:34px}}
@media(max-width:700px){.launch-screen{min-height:calc(100svh - 64px);padding:35px 14px 140px}.welcome{width:min(320px,90vw);padding:27px 24px}.welcome h1{font-size:38px}.welcome>p{font-size:14px}.menu-heading{max-width:100%;padding:14px 18px}.menu-heading h1{font-size:28px}.mode-card{min-height:185px;padding:14px 9px}.mode-card strong{font-size:16px}.mode-description{font-size:11px}.mode-grid{gap:12px}.css-icon{transform:scale(.9)}}

/* Keep the title, cards and footer together, centred below the toolbar. */
:root{--toolbar-height:76px}
.launch-screen{min-height:calc(100svh - var(--toolbar-height));padding:24px 20px;align-items:center}
.menu-screen{min-height:calc(100svh - var(--toolbar-height));display:flex;flex-direction:column;justify-content:center;padding:24px 28px}
.mode-grid{width:100%;flex-shrink:0}
@media(min-width:800px) and (max-height:750px){:root{--toolbar-height:60px}.launch-screen,.menu-screen{padding-top:18px;padding-bottom:18px}}
@media(max-width:700px){:root{--toolbar-height:64px}.launch-screen,.menu-screen{padding:24px 14px}}
@media(min-width:800px) and (max-height:650px){.menu-screen{padding-top:12px;padding-bottom:12px}.menu-screen .mode-card{min-height:160px;padding:10px 12px 14px}.menu-screen .mode-card strong{font-size:16px;margin:5px 0}.menu-screen .mode-description{font-size:11px}}
