:root { --page-gradient: radial-gradient(ellipse at -8% 8%, rgba(147, 213, 255, .9) 0, transparent 48%), radial-gradient(ellipse at 105% 100%, rgba(255, 190, 125, .82) 0, transparent 49%), radial-gradient(circle at 88% 18%, rgba(214, 190, 255, .56) 0, transparent 29%), linear-gradient(135deg, #effaff, #fff9f1 52%, #f7f1ff); --screen-edge-padding: clamp(1rem, 3vw, 2rem); --header-top: clamp(1rem, 2.5vh, 1.5rem); --game-logo-width: min(9rem, 33vw); font-family: Arial, Helvetica, sans-serif; color: #111; background: #effaff; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page-gradient) fixed; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 4px solid #111; outline-offset: 4px; }
.analytics-consent { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 100; display: grid; width: min(31rem, calc(100vw - 2rem)); gap: 1rem; padding: 1.25rem; border: 1px solid rgba(102, 73, 165, .25); border-radius: 1.25rem; background: rgba(255, 255, 255, .96); box-shadow: 0 1rem 2.5rem rgba(48, 39, 77, .2); color: #2f254a; text-align: left; backdrop-filter: blur(.7rem); }
.analytics-consent h2 { margin: 0; font-size: 1.15rem; }
.analytics-consent p { margin: .45rem 0 0; color: #5a6474; font-size: .92rem; line-height: 1.45; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.analytics-consent-actions button { min-height: 2.6rem; padding: .5rem .85rem; border: 1px solid #6f48bf; border-radius: .75rem; background: #7650ca; color: #fff; font: inherit; font-size: .9rem; font-weight: 700; }
.analytics-consent-actions #analytics-consent-reject { border-color: rgba(102, 73, 165, .25); background: #f5f2fb; color: #503a78; }
.app { width: 100%; min-height: 100vh; }
.screen { position: relative; display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.screen.is-hidden, .is-hidden { display: none; }
.paid-access-dialog { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; background: rgba(29, 24, 48, .58); }
.paid-access-dialog.is-hidden { display: none; }
.paid-access-card { position: relative; width: min(100%, 31rem); padding: 2rem; border: 1px solid rgba(115, 79, 184, .25); border-radius: 1.5rem; background: #fff; box-shadow: 0 1.25rem 3rem rgba(25, 18, 45, .3); color: #30244d; text-align: center; }
.paid-access-close { position: absolute; top: .65rem; right: .75rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: #f2eef9; color: #4c3a70; font: inherit; font-size: 1.6rem; line-height: 1; }
.paid-access-icon { display: grid; width: 3.5rem; height: 3.5rem; margin: 0 auto .55rem; place-items: center; border-radius: 1.2rem; background: #f1eafd; font-size: 2rem; }
.paid-access-eyebrow { margin: 0; color: #7045bb; font-size: .8rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.paid-access-card h2 { margin: .45rem 0 .7rem; font-size: clamp(1.6rem, 5vw, 2.15rem); line-height: 1.1; }
.paid-access-card > p { line-height: 1.45; }
.paid-access-price { margin: 1rem 0; color: #4a317e; font-size: 1.05rem; }
.paid-access-price strong { font-size: 1.5rem; }
.paid-access-label { display: block; margin: 1.1rem 0 .35rem; color: #4d405e; font-size: .9rem; font-weight: 700; text-align: left; }
.paid-access-email { width: 100%; min-height: 3rem; box-sizing: border-box; padding: .55rem .75rem; border: 2px solid #d6c8ef; border-radius: .75rem; color: #30244d; font: inherit; }
.paid-access-email:focus { border-color: #7650ca; outline: 3px solid rgba(118, 80, 202, .18); }
.paid-access-primary, .paid-access-secondary { width: 100%; min-height: 3.1rem; margin-top: .8rem; border-radius: .8rem; font: inherit; font-weight: 800; }
.paid-access-primary { border: 1px solid #6941b3; background: linear-gradient(135deg, #9b72eb, #6c3cc4); color: #fff; }
.paid-access-secondary { border: 1px solid #d8cde9; background: #faf8fe; color: #563d83; }
.paid-access-account, .paid-access-message { margin: .8rem 0 0; font-size: .92rem; }
.paid-access-account { color: #3f6c51; font-weight: 700; }
.paid-access-message { min-height: 1.3em; color: #80521e; }
.paid-access-note { margin: 1rem 0 0; color: #687282; font-size: .78rem; }
h1, p { margin: 0; }
h1 { margin-bottom: 2.5rem; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.1; }
#menu-screen { overflow: hidden; isolation: isolate; background: transparent; }
#menu-screen > * { position: relative; z-index: 1; }
.library-screen { justify-content: flex-start; overflow: auto; padding: calc(var(--header-top) + .6rem) var(--screen-edge-padding) clamp(1.25rem, 3vw, 2.75rem); background: transparent; }
.library-header { position: relative; z-index: 1; display: flex; width: 100%; align-items: center; justify-content: space-between; }
.library-brand { display: inline-flex; align-items: center; gap: .22rem; color: #46576b; font-family: "Bradley Hand", "Chalkboard SE", "Segoe Print", cursive; font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 400; letter-spacing: -.075em; line-height: 1; text-decoration: none; transform: rotate(-1.5deg); }
.brand-logo { display: block; width: min(11rem, 33vw); max-height: 3.35rem; height: auto; }
.brand-bee { width: 1.72em; height: 1.72em; flex: 0 0 auto; margin: -.36em -.13em; overflow: visible; transform: translateY(.01em) rotate(4deg); }
.brand-bee-line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.25; }
.brand-bee-eye { fill: currentColor; }
.library-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.library-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.library-language-selector { flex: 0 0 auto; }
.parent-link, .library-back-button { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .76); color: #4b3574; font: inherit; font-weight: 700; text-decoration: none; }
.parent-link { padding: .7rem 1rem; }
.parent-account-button { cursor: pointer; }
.parent-account-button.is-signed-in { background: #e8f7ed; color: #276343; }
.parent-account-button.is-plus { background: #f1e7ff; color: #60369e; }
.library-content { position: relative; z-index: 1; width: min(100%, 72rem); margin: clamp(3rem, 8vh, 5.5rem) auto 0; }
.library-content h1 { max-width: 42rem; margin: 0 auto; color: #7a4bc6; font-family: ui-rounded, "Avenir Next", "Segoe UI", sans-serif; font-size: clamp(2.6rem, 5.4vw, 4.75rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.08; }
.library-intro { max-width: 44rem; margin: 1.1rem auto 0; color: #526071; font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 400; line-height: 1.55; }
.library-tiny-bees { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tiny-bee { position: absolute; display: block; width: 1.25rem; height: .78rem; border: .09rem solid #263047; border-radius: 52% 48% 50% 50%; background: repeating-linear-gradient(90deg, #ffc52b 0 .26rem, #263047 .26rem .42rem); box-shadow: .12rem .12rem 0 rgba(38, 48, 71, .12); }
.tiny-bee::before { position: absolute; bottom: .45rem; left: .08rem; width: .64rem; height: .45rem; border: .08rem solid rgba(54, 83, 110, .55); border-radius: 75% 25% 70% 30%; background: rgba(255, 255, 255, .7); box-shadow: .38rem .08rem 0 -.03rem rgba(255, 255, 255, .7), .38rem .08rem 0 .05rem rgba(54, 83, 110, .45); content: ""; transform: rotate(-20deg); }
.tiny-bee::after { position: absolute; top: .22rem; right: .12rem; width: .12rem; height: .12rem; border-radius: 50%; background: #263047; content: ""; }
.tiny-bee-one { top: 15rem; left: 7vw; animation: tiny-bee-fly-one 26s ease-in-out infinite alternate; }
.tiny-bee-two { top: 25rem; right: 8vw; animation: tiny-bee-fly-two 31s ease-in-out infinite alternate; }
.tiny-bee-three { top: 39rem; left: 12vw; animation: tiny-bee-fly-three 28s ease-in-out infinite alternate; }
.tiny-bee-four { top: 8rem; right: 15vw; animation: tiny-bee-fly-four 24s ease-in-out -7s infinite alternate; }
.tiny-bee-five { top: 33rem; right: 18vw; animation: tiny-bee-fly-five 29s ease-in-out -15s infinite alternate; }
.tiny-bee-six { top: 51rem; left: 5vw; animation: tiny-bee-fly-six 27s ease-in-out -4s infinite alternate; }
.tiny-bee-seven { top: 63rem; right: 9vw; animation: tiny-bee-fly-seven 32s ease-in-out -20s infinite alternate; }
.tiny-bee-eight { top: 78rem; left: 16vw; animation: tiny-bee-fly-eight 25s ease-in-out -11s infinite alternate; }
.tiny-bee-nine { top: 94rem; right: 14vw; animation: tiny-bee-fly-nine 30s ease-in-out -18s infinite alternate; }
.tiny-bee-ten { top: 19rem; left: 28vw; animation: tiny-bee-fly-four 23s ease-in-out -13s infinite alternate; }
.tiny-bee-eleven { top: 30rem; right: 31vw; animation: tiny-bee-fly-six 28s ease-in-out -8s infinite alternate; }
.tiny-bee-twelve { top: 45rem; left: 24vw; animation: tiny-bee-fly-nine 33s ease-in-out -22s infinite alternate; }
.tiny-bee-thirteen { top: 57rem; right: 27vw; animation: tiny-bee-fly-three 26s ease-in-out -16s infinite alternate; }
.tiny-bee-fourteen { top: 71rem; left: 7vw; animation: tiny-bee-fly-five 31s ease-in-out -5s infinite alternate; }
.tiny-bee-fifteen { top: 86rem; right: 23vw; animation: tiny-bee-fly-one 25s ease-in-out -19s infinite alternate; }
.tiny-bee-sixteen { top: 105rem; left: 13vw; animation: tiny-bee-fly-seven 29s ease-in-out -9s infinite alternate; }
.tiny-bee-seventeen { top: 119rem; right: 6vw; animation: tiny-bee-fly-eight 27s ease-in-out -14s infinite alternate; }
.tiny-bee-eighteen { top: 132rem; left: 30vw; animation: tiny-bee-fly-two 34s ease-in-out -24s infinite alternate; }
.tiny-bee-nineteen { top: 146rem; right: 18vw; animation: tiny-bee-fly-six 24s ease-in-out -17s infinite alternate; }
@keyframes tiny-bee-fly-one { 0% { transform: rotate(-18deg) scale(1.2); } 42% { transform: translate(16vw, 4rem) rotate(10deg) scale(1.18); } 100% { transform: translate(31vw, -2rem) rotate(-10deg) scale(1.2); } }
@keyframes tiny-bee-fly-two { 0% { transform: rotate(22deg) scale(.96); } 48% { transform: translate(-18vw, 5rem) rotate(-12deg) scale(.92); } 100% { transform: translate(-34vw, -4rem) rotate(16deg) scale(.96); } }
@keyframes tiny-bee-fly-three { 0% { transform: rotate(12deg) scale(.78); } 45% { transform: translate(23vw, -6rem) rotate(-14deg) scale(.82); } 100% { transform: translate(42vw, 3rem) rotate(8deg) scale(.78); } }
@keyframes tiny-bee-fly-four { 0% { transform: rotate(18deg) scale(.72); } 46% { transform: translate(-13vw, 5rem) rotate(-14deg) scale(.76); } 100% { transform: translate(-28vw, -3rem) rotate(10deg) scale(.72); } }
@keyframes tiny-bee-fly-five { 0% { transform: rotate(-12deg) scale(1.06); } 40% { transform: translate(-17vw, -4rem) rotate(14deg) scale(1.02); } 100% { transform: translate(-35vw, 4rem) rotate(-8deg) scale(1.06); } }
@keyframes tiny-bee-fly-six { 0% { transform: rotate(10deg) scale(.84); } 52% { transform: translate(18vw, -5rem) rotate(-16deg) scale(.88); } 100% { transform: translate(35vw, 3rem) rotate(12deg) scale(.84); } }
@keyframes tiny-bee-fly-seven { 0% { transform: rotate(-20deg) scale(.92); } 44% { transform: translate(-16vw, 3rem) rotate(9deg) scale(.88); } 100% { transform: translate(-31vw, -5rem) rotate(-13deg) scale(.92); } }
@keyframes tiny-bee-fly-eight { 0% { transform: rotate(16deg) scale(1.12); } 49% { transform: translate(14vw, 5rem) rotate(-11deg) scale(1.07); } 100% { transform: translate(29vw, -3rem) rotate(14deg) scale(1.12); } }
@keyframes tiny-bee-fly-nine { 0% { transform: rotate(-8deg) scale(.7); } 43% { transform: translate(-19vw, -4rem) rotate(15deg) scale(.75); } 100% { transform: translate(-37vw, 5rem) rotate(-11deg) scale(.7); } }
.game-library-grid { position: relative; display: grid; grid-template-columns: minmax(0, 36rem); justify-content: center; gap: 1.25rem; margin-top: clamp(2.5rem, 6vh, 4rem); text-align: left; }
.library-card-bee, .library-card-bee-hands { position: absolute; top: 50%; left: calc(50% - 19.5rem); width: 18rem; max-width: 28vw; height: 12rem; background: url("assets/images/syllabee-card-bee-v2.png") center / contain no-repeat; pointer-events: none; transform: translate(-50%, -50%); }
.library-card-bee { z-index: 0; }
.library-card-bee-hands { z-index: 2; clip-path: inset(0 0 0 70%); }
.game-library-card { position: relative; z-index: 1; display: grid; min-height: 19rem; align-content: start; gap: 1.15rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 3px solid transparent; border-radius: 1.75rem; box-shadow: 0 1rem 2.2rem rgba(49, 56, 84, .11); }
.game-library-card.is-available { grid-template-columns: auto 1fr; border-color: #8c69dc; background: linear-gradient(135deg, #f8f3ff, #fff 65%); }
.game-card-illustration { display: grid; width: 5.8rem; height: 5.8rem; place-items: center; border-radius: 1.5rem; background: #eef0f5; font-size: 3rem; line-height: 1; }
.reading-illustration { background: #eadfff; }
.game-card-copy h2 { margin: .5rem 0; color: #273449; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 500; }
.game-card-copy p { margin: 0; color: #586579; font-size: 1rem; font-weight: 400; line-height: 1.5; }
.game-card-tag { color: #7045bb; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.library-play-button { display: inline-flex; grid-column: 1 / -1; width: fit-content; min-height: 3.4rem; margin-top: auto; align-items: center; gap: .85rem; padding: .45rem .55rem .45rem 1.2rem; border: 1px solid rgba(255, 255, 255, .48); border-radius: 1.1rem; background: linear-gradient(135deg, #9b72eb, #6c3cc4); color: #fff; font: inherit; font-weight: 800; letter-spacing: .01em; box-shadow: 0 .7rem 1.4rem rgba(105, 60, 190, .25), inset 0 1px 0 rgba(255, 255, 255, .34); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.library-play-button-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .82rem; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.3rem; font-weight: 700; line-height: 1; transition: transform .2s ease, background .2s ease; }
.library-play-button:hover { box-shadow: 0 .95rem 1.75rem rgba(105, 60, 190, .32), inset 0 1px 0 rgba(255, 255, 255, .34); filter: saturate(1.08) brightness(1.04); transform: translateY(-.18rem); }
.library-play-button:hover .library-play-button-icon { background: rgba(255, 255, 255, .3); transform: translateX(.18rem); }
.library-play-button:active { box-shadow: 0 .35rem .8rem rgba(105, 60, 190, .23), inset 0 1px 0 rgba(255, 255, 255, .2); transform: translateY(.04rem); }

@media (prefers-reduced-motion: reduce) { .library-play-button, .library-play-button-icon { transition: none; } .tiny-bee { animation: none; } }
.parent-guide { max-width: 68rem; margin: clamp(2.5rem, 6vh, 4.5rem) auto 0; padding: clamp(1.35rem, 3vw, 2.25rem); border: 2px solid rgba(91, 117, 154, .2); border-radius: 1.5rem; background: rgba(255, 255, 255, .68); box-shadow: 0 .8rem 1.8rem rgba(54, 66, 91, .08); text-align: left; }
.parent-guide-header { max-width: 48rem; }
.parent-guide h2 { margin: 0; color: #27364a; font-size: clamp(2.15rem, 4.6vw, 3.35rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.parent-guide-preface { margin: .8rem 0 0; color: #526071; font-size: clamp(1.05rem, 2.1vw, 1.25rem); font-weight: 400; line-height: 1.55; }
.parent-level-accordions { display: grid; gap: .7rem; margin-top: 1.6rem; }
.parent-level-accordion { --guide-accent: #1677d2; --guide-tint: #eaf5ff; overflow: hidden; border: 2px solid color-mix(in srgb, var(--guide-accent) 42%, #fff); border-radius: 1rem; background: color-mix(in srgb, var(--guide-tint) 48%, #fff); }
.parent-level-accordion:nth-child(2) { --guide-accent: #d56815; --guide-tint: #fff1de; }
.parent-level-accordion:nth-child(3) { --guide-accent: #7a4bc6; --guide-tint: #f2eaff; }
.parent-level-accordion:nth-child(4) { --guide-accent: #178251; --guide-tint: #e4f7ec; }
.parent-level-accordion:nth-child(5) { --guide-accent: #bd3976; --guide-tint: #ffe8f1; }
.parent-level-accordion:nth-child(6) { --guide-accent: #b27a17; --guide-tint: #fff3cf; }
.parent-level-accordion-button { display: flex; width: 100%; min-height: 3.7rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 0; background: transparent; color: color-mix(in srgb, var(--guide-accent) 72%, #1f2937); font: inherit; font-size: 1.08rem; font-weight: 700; text-align: left; }
.parent-level-accordion-button:hover { background: color-mix(in srgb, var(--guide-tint) 78%, #fff); }
.parent-level-accordion-button:focus-visible { outline-color: var(--guide-accent); outline-offset: -4px; }
.parent-level-accordion-icon { display: grid; width: 1.7rem; height: 1.7rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--guide-accent) 12%, #fff); font-size: 1.35rem; font-weight: 400; line-height: 1; }
.parent-level-accordion-button[aria-expanded="true"] .parent-level-accordion-icon { font-size: 0; }
.parent-level-accordion-button[aria-expanded="true"] .parent-level-accordion-icon::after { content: "−"; font-size: 1.35rem; }
.parent-level-accordion-panel { padding: 0 1rem 1rem; border-top: 1px solid color-mix(in srgb, var(--guide-accent) 20%, transparent); }
.parent-level-accordion-panel p { margin: .65rem 0 0; color: #526071; font-size: .93rem; font-weight: 400; line-height: 1.48; }
.parent-level-accordion-panel strong { color: color-mix(in srgb, var(--guide-accent) 65%, #35465d); font-weight: 700; }
.parent-readiness { display: flex; gap: .85rem; margin-top: 1.35rem; padding: 1.15rem; border-radius: 1rem; background: #f1f8ef; color: #3f5d42; }
.parent-readiness > span { font-size: 1.55rem; line-height: 1.35; }
.parent-readiness h3, .parent-sources h3 { margin: 0; font-size: 1.1rem; font-weight: 500; }
.parent-readiness p { margin: .35rem 0 0; font-size: .98rem; font-weight: 400; line-height: 1.5; }
.parent-sources { margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid rgba(91, 117, 154, .22); color: #526071; }
.parent-sources p, .parent-sources li { font-size: .9rem; font-weight: 400; line-height: 1.5; }
.parent-sources p { margin: .35rem 0 0; }
.parent-sources ul { margin: .7rem 0 0; padding-left: 1.25rem; }
.parent-sources a { color: #4d5f92; text-decoration-thickness: .08em; text-underline-offset: .14em; }
.creator-note { display: grid; max-width: 52rem; grid-template-columns: auto 1fr; gap: 1.15rem; margin: clamp(2.5rem, 6vh, 4.5rem) auto 0; padding: clamp(1.25rem, 3vw, 2rem); border: 2px solid rgba(104, 80, 166, .22); border-radius: 1.35rem; background: rgba(255, 255, 255, .62); box-shadow: 0 .7rem 1.6rem rgba(62, 68, 96, .08); color: #46576b; text-align: left; }
.creator-note-photo { width: 6.25rem; height: 6.25rem; overflow: hidden; border: 3px solid #e1d7fa; border-radius: 1.35rem; background: #eee7ff; box-shadow: 0 .35rem .8rem rgba(62, 68, 96, .12); }
.creator-note-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.creator-note h2 { margin: 0; color: #27364a; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
.creator-note p { margin: .8rem 0 0; color: #526071; font-size: clamp(.98rem, 2vw, 1.08rem); font-weight: 400; line-height: 1.6; }
#menu-screen { --menu-edge-padding: var(--screen-edge-padding); --menu-header-top: calc(var(--header-top) + .6rem); --menu-logo-width: min(11rem, 33vw); }
#menu-screen .menu-brand { position: absolute; top: var(--menu-header-top); left: var(--menu-edge-padding); z-index: 2; }
#menu-screen .brand-logo { width: var(--menu-logo-width) !important; max-height: 3rem; object-fit: contain; }
#menu-screen .library-back-button { position: absolute; top: calc(var(--menu-header-top) + .175rem); left: calc(var(--menu-edge-padding) + var(--menu-logo-width) + 1rem); padding: .58rem .8rem; }
.home-menu-button { display: inline-flex; min-height: 2.65rem; align-items: center; gap: .38rem; border: 1px solid rgba(75, 53, 116, .14); box-shadow: 0 .2rem .55rem rgba(52, 42, 86, .08); font-size: .98rem; }
.home-menu-button:hover, .home-menu-button:focus-visible { background: rgba(255, 255, 255, .95); transform: translateY(-.08rem); }
#menu-screen .language-selector { position: absolute; top: calc(var(--menu-header-top) + .175rem); right: var(--menu-edge-padding); }
.language-selector select { min-height: 2.6rem; padding: .35rem 2rem .35rem .7rem; border: 2px solid #7a4bc6; border-radius: .65rem; background: rgba(255, 255, 255, .9); color: #2d2050; font: inherit; font-size: 1rem; font-weight: 700; }
#menu-screen #menu-title { position: absolute; top: clamp(5.35rem, 11vh, 7rem); left: 0; width: 100%; margin: 0; color: #1f2937; font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -.045em; }
.level-menu { display: grid; width: min(calc(100% - (2 * var(--screen-edge-padding))), 76rem); grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); margin-top: 3.5rem; }
.level-card, .primary-button { min-height: 7rem; border: 4px solid #111; border-radius: .75rem; background: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
.level-card { --card-accent: #1677d2; --card-tint: #eaf5ff; position: relative; display: grid; min-height: clamp(12rem, 27vw, 15rem); grid-template-rows: 3.4rem 2rem minmax(2.6rem, 1fr); place-items: center; gap: .55rem; padding: 1.15rem .75rem; border: 4px solid color-mix(in srgb, var(--card-accent) 36%, #fff); border-radius: 1.5rem; background: rgba(255, 255, 255, .88); box-shadow: 0 .6rem 1.5rem rgba(31, 41, 55, .09); color: #1f2937; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.1; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.level-card:nth-child(2) { --card-accent: #d56815; --card-tint: #fff1de; }
.level-card:nth-child(3) { --card-accent: #7a4bc6; --card-tint: #f2eaff; }
.level-card:nth-child(4) { --card-accent: #178251; --card-tint: #e4f7ec; }
.level-card:nth-child(5) { --card-accent: #bd3976; --card-tint: #ffe8f1; }
.level-card:nth-child(6) { --card-accent: #b27a17; --card-tint: #fff3cf; }
.level-card:nth-child(7) { --card-accent: #0c8f9b; --card-tint: #e1f8f7; }
.level-card:nth-child(8) { --card-accent: #d34273; --card-tint: #ffe7f0; }
.level-card-icon { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border-radius: 1.15rem; background: var(--card-tint); font-size: 2rem; line-height: 1; }
.level-card-label { color: #526071; font-size: .78em; font-weight: 600; }
.level-card-plus { background: rgba(236, 233, 243, .88); }
.level-card-plus > .level-card-icon, .level-card-plus > strong, .level-card-plus > .level-card-label { opacity: .8; }
.level-card-plus:hover { background: rgba(248, 245, 252, .96); }
.level-card-plus:hover > .level-card-icon, .level-card-plus:hover > strong, .level-card-plus:hover > .level-card-label { opacity: .9; }
.level-plus-badge { position: absolute; top: -.7rem; left: 50%; z-index: 2; display: inline-flex; min-height: 1.8rem; align-items: center; justify-content: center; gap: .5rem; padding: .28rem .45rem .28rem .75rem; border: 1px solid rgba(107, 66, 175, .35); border-radius: 999px; background: linear-gradient(135deg, #f6edff, #e8d8ff); box-shadow: 0 .35rem .7rem rgba(75, 49, 126, .18); color: #633b9c; font-size: .67rem; font-weight: 800; letter-spacing: .025em; line-height: 1; transform: translateX(-50%); white-space: nowrap; }
.level-plus-star { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ffe98c, #f3bb2e); color: #8b5b00; font-size: 1.05rem; line-height: 1; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.level-card:hover { transform: translateY(-.35rem); border-color: var(--card-accent); background: #fff; box-shadow: 0 1rem 2rem rgba(31, 41, 55, .14); color: #1f2937; }
.level-card:focus-visible { outline-color: var(--card-accent); }
.level-two-setup { display: grid; justify-items: center; gap: 1.25rem; padding: 2rem; }
.level-two-setup h1 { margin: 0; color: #1f2937; }
.level-two-setup p { color: #526071; font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 600; }
.level-two-setup-icon { width: 4.25rem; height: 4.25rem; font-size: 2.5rem; }
.setup-back-button { position: fixed !important; top: var(--header-top) !important; left: calc(var(--screen-edge-padding) + var(--game-logo-width) + 1rem) !important; z-index: 5; }
.word-count-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .75rem; }
.word-count-button { min-width: 5.5rem; min-height: 5.5rem; border: 3px solid #d56815; border-radius: 1rem; background: #fff1de; color: #8f4107; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; transition: transform .18s ease, background .18s ease; }
.word-count-button:hover { transform: translateY(-.2rem); background: #d56815; color: #fff; }
.syllable-filter-options { display: grid; grid-template-columns: repeat(2, minmax(10rem, 1fr)); gap: 1rem; width: min(100%, 28rem); margin-top: .75rem; }
.syllable-filter-button { min-height: 4.8rem; border: 3px solid #d56815; border-radius: 1rem; background: #fff1de; color: #8f4107; font: inherit; font-size: clamp(1.1rem, 3vw, 1.45rem); font-weight: 700; transition: transform .18s ease, background .18s ease; }
.syllable-filter-button:hover { transform: translateY(-.2rem); background: #d56815; color: #fff; }
.level-three-setup-icon { background: transparent; }
.level-three-count-button { border-color: #7a4bc6; background: #f2eaff; color: #593494; }
.level-three-count-button:hover { background: #7a4bc6; }
.level-five-setup-icon { background: transparent; }
.level-five-count-button { border-color: #bd3976; background: #ffe8f1; color: #922553; }
.level-five-count-button:hover { background: #bd3976; }
.level-six-setup-icon { background: transparent; }
.level-six-count-button { border-color: #b27a17; background: #fff3cf; color: #70500b; }
.level-six-count-button:hover { background: #b27a17; }
.level-seven-setup-icon { background: transparent; }
.level-seven-count-button { border-color: #0c8f9b; background: #e1f8f7; color: #07656d; }
.level-seven-count-button:hover { background: #0c8f9b; }
.level-eight-setup-icon { background: transparent; }
.level-eight-count-button { border-color: #d34273; background: #ffe7f0; color: #a22352; }
.level-eight-count-button:hover { background: #d34273; }
.letter-count-button { border-color: #1677d2; background: #eaf5ff; color: #125d9f; }
.letter-count-button:hover { background: #1677d2; }
#letter-setup-screen[data-level="4"] .letter-count-button { border-color: #178251; background: #e4f7ec; color: #11633e; }
#letter-setup-screen[data-level="4"] .letter-count-button:hover { background: #178251; }
.primary-button:hover, .syllable-choice:hover, .sentence-choice:hover { background: #111; color: #fff; }
.game-topbar { position: absolute; top: var(--header-top); left: 0; width: 100%; height: 3.75rem; }
.game-topbar .game-menu-button { position: absolute; top: 0; left: calc(var(--screen-edge-padding) + var(--game-logo-width) + 1rem); z-index: 1; }
.back-button { padding: .65rem .9rem; border: 2px solid #111; border-radius: .5rem; background: #fff; font-size: 1.1rem; font-weight: 700; }
.game-menu-button { position: relative; display: inline-flex; min-height: 2.65rem; align-items: center; gap: .38rem; padding: .58rem .8rem; border: 1px solid rgba(75, 53, 116, .14); border-radius: 999px; background: rgba(255, 255, 255, .76); color: #4b3574; box-shadow: 0 .2rem .55rem rgba(52, 42, 86, .08); font: inherit; font-size: .98rem; font-weight: 700; }
.game-menu-button::before { position: absolute; top: -.22rem; right: calc(100% + 1rem); display: block; width: var(--game-logo-width); height: 3rem; background: url("assets/images/syllabee-logo-new-bee.png") center / contain no-repeat; content: ""; }
.game-menu-button:hover, .game-menu-button:focus-visible { background: rgba(255, 255, 255, .95); color: #4b3574; transform: translateY(-.08rem); }
.setup-back-button:hover, .setup-back-button:focus-visible { transform: translateY(-.08rem); }
.game-hint { position: fixed; bottom: var(--screen-edge-padding); left: var(--screen-edge-padding); z-index: 10; }
.game-hint-button { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; padding: 0; border: 1px solid rgba(104, 80, 166, .3); border-radius: 50%; background: rgba(255, 255, 255, .64); color: #4f3a78; font: inherit; font-size: 1.55rem; box-shadow: 0 .25rem .65rem rgba(70, 58, 105, .1); backdrop-filter: blur(.45rem); }
.game-hint-button:hover, .game-hint-button:focus-visible { background: rgba(245, 240, 255, .92); transform: translateY(-.1rem); }
.game-hint-card { position: absolute; bottom: 4.1rem; left: 0; width: min(19rem, calc(100vw - 2rem)); margin: 0; padding: 1.55rem 1.2rem 1rem; border: 1px solid rgba(104, 80, 166, .25); border-radius: 1.25rem; background: rgba(255, 255, 255, .74); color: #40355c; font-family: "Bradley Hand", "Chalkboard SE", "Segoe Print", cursive; font-size: 1.2rem; font-weight: 700; line-height: 1.35; box-shadow: 0 .45rem 1.2rem rgba(70, 58, 105, .12); backdrop-filter: blur(.65rem); }
.game-hint-card.is-word-hint { min-width: 9rem; padding: 1.1rem 1.2rem .9rem; font-family: inherit; font-size: clamp(1.6rem, 5vw, 2.25rem); line-height: 1; text-align: center; }
.game-hint-card::after { position: absolute; bottom: -.55rem; left: 1.1rem; width: 1rem; height: 1rem; border-right: 1px solid rgba(104, 80, 166, .2); border-bottom: 1px solid rgba(104, 80, 166, .2); background: rgba(255, 255, 255, .74); content: ""; transform: rotate(45deg); }
.game-hint-card p { margin: 0; }
.game-hint-close { position: absolute; top: .25rem; right: .45rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: #4f3a78; font: inherit; font-size: 2rem; font-weight: 400; line-height: 1; }
.game-hint-close:hover, .game-hint-close:focus-visible { background: rgba(104, 80, 166, .12); }
.hint, .complete-text { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.progress-bar { position: absolute; top: 50%; left: 50%; display: grid; width: calc(100% - 14rem); max-width: 42rem; grid-template-columns: repeat(var(--segments), minmax(0, 1fr)); gap: .3rem; align-items: center; transform: translate(-50%, -50%); }
.progress-segment { display: block; height: .85rem; border-radius: .25rem; background: #e7e7e7; }
.progress-segment.is-active { background: #359b55; }
.word-layout { display: flex; width: 100%; align-items: center; justify-content: center; gap: clamp(2rem, 7vw, 5rem); }
.picture { flex: 0 0 auto; font-size: clamp(7rem, 16vw, 12rem); line-height: 1; }
.single-letter { display: flex; min-width: .9em; min-height: 1.2em; align-items: center; justify-content: center; font-size: clamp(9rem, 28vw, 18rem); font-weight: 700; line-height: 1; }
.single-letter.is-correct { color: #1769c2; }
.repeated-letter-slots { display: flex; min-height: 2.25em; align-items: center; justify-content: center; gap: clamp(.15rem, 1vw, .55rem); color: #8b8b8b; font-size: clamp(2.25rem, 7vw, 4.5rem); font-weight: 500; line-height: 1; }
.repeated-letter-slot { display: inline-flex; min-width: .72em; justify-content: center; opacity: .35; }
.repeated-letter-slot.is-filled { opacity: 1; }
.level-one-explosion { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.explosion-particle { position: absolute; top: 50%; left: 50%; width: var(--size); height: calc(var(--size) * 1.65); border-radius: .15rem 50% .15rem 50%; background: var(--color); box-shadow: 0 .12rem .6rem color-mix(in srgb, var(--color) 65%, transparent); opacity: 0; transform: translate(-50%, -50%) scale(.12); }
.level-one-explosion.is-active .explosion-particle { animation: letter-explosion 1.45s cubic-bezier(.1, .72, .27, 1) forwards; animation-delay: var(--delay); }
@keyframes letter-explosion { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.12); } 8% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(calc(var(--turns) * 360deg)) scale(.85); } }
@media (prefers-reduced-motion: reduce) { .level-one-explosion.is-active .explosion-particle { animation-duration: .01ms; } }
.written-letter { display: flex; min-width: .9em; min-height: 1.2em; align-items: center; justify-content: center; font-family: "Chalkboard SE", "Comic Sans MS", "Bradley Hand", cursive; font-size: clamp(10rem, 30vw, 19rem); font-weight: 700; line-height: 1; }
.written-letter.is-correct { color: #d22727; }
.letter-slots { display: flex; align-items: flex-end; justify-content: center; gap: clamp(3rem, 9vw, 6rem); }
.syllable-slots { display: flex; gap: .22em; }
.letter-slot { display: inline-flex; width: .78em; min-height: 1.22em; align-items: center; justify-content: center; border-bottom: .1em solid currentColor; font-size: clamp(4rem, 10vw, 8rem); font-weight: 700; line-height: 1; }
.letter-slot.syllable-one, .syllable-piece.syllable-one, .sentence-syllable.syllable-one { color: #d22727; }
.letter-slot.syllable-two, .syllable-piece.syllable-two, .sentence-syllable.syllable-two { color: #1769c2; }
.letter-slot.single-syllable { color: #111; }
.letter-word-game { display: grid; width: min(100% - 2rem, 48rem); justify-items: center; gap: clamp(.8rem, 2vw, 1.35rem); padding-top: clamp(1rem, 4vh, 3rem); text-align: center; }
.letter-word-instruction { margin: 0; color: #526071; font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; }
.letter-word-form { display: grid; width: min(100%, 38rem); justify-items: center; gap: 1.25rem; margin-top: .25rem; }
.missing-letter-word { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: .16em; color: #111; font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.missing-letter-known, .missing-letter-input { display: inline-flex; box-sizing: border-box; width: .95em; height: 1.2em; align-items: center; justify-content: center; border-bottom: .09em solid currentColor; }
.missing-letter-input { padding: 0; border: 0; border-bottom: .09em solid currentColor; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: inherit; font-weight: inherit; line-height: 1; text-align: center; text-transform: uppercase; }
.missing-letter-known.syllable-one, .missing-letter-input.syllable-one { color: #d22727; }
.missing-letter-known.syllable-two, .missing-letter-input.syllable-two { color: #1769c2; }
.missing-letter-input:focus-visible { outline: 0; box-shadow: 0 .08em 0 currentColor; }
.missing-letter-input:disabled { opacity: 1; }
.letter-word-submit { min-height: 3.5rem; align-self: end; padding: .55rem 1rem; border: 2px solid #111; border-radius: .5rem; background: #fff; color: #111; font: inherit; font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 800; }
.letter-word-submit:hover, .letter-word-submit:focus-visible { background: #111; color: #fff; }
.letter-word-skip-button { padding: .45rem .8rem; border: 0; border-bottom: 2px solid #7b6571; border-radius: 0; background: transparent; color: #705864; font: inherit; font-size: 1rem; font-weight: 700; }
.letter-word-skip-button:hover, .letter-word-skip-button:focus-visible { border-bottom-color: #111; color: #111; }
.letter-word-message { min-height: 1.6em; margin: 0; color: #745464; font-size: 1.1rem; font-weight: 700; }
.letter-word-message.is-error { color: #a12424; }
.letter-word-answers { display: grid; width: min(100%, 38rem); gap: .7rem; }
.letter-word-answer { display: flex; min-height: 3.3rem; align-items: center; justify-content: center; gap: .7rem; padding: .45rem .8rem; border: 2px solid #edb4c8; border-radius: 1rem; background: rgba(255, 255, 255, .8); font-size: clamp(1.6rem, 4vw, 2.35rem); font-weight: 800; line-height: 1.15; }
.letter-word-answer .syllable-one { color: #d22727; }
.letter-word-answer .syllable-two { color: #1769c2; }
.letter-word-answer .single-syllable { color: #111; }
.letter-word-emoji { font-size: 1.35em; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.hint { min-height: 2rem; margin-top: 2.5rem; }
.hint.is-error, .syllable-choice.is-error { color: #a12424; }
.success-panel { display: grid; justify-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.success-panel p { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
.primary-button { min-height: 4.5rem; padding: .75rem 1.5rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.built-word { display: flex; min-height: clamp(5rem, 10vw, 7rem); align-items: center; justify-content: center; gap: .3em; margin: 1.5rem 0; }
.syllable-piece { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 700; line-height: 1.05; }
.syllable-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 48rem; }
.syllable-choice { min-width: 5rem; min-height: 4.5rem; padding: .4rem .8rem; border: 3px solid #111; border-radius: .65rem; background: #fff; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
#level-five-screen { position: relative; width: 100%; }
#level-five-screen .picture { position: absolute; top: clamp(5rem, 12vh, 9rem); left: 50%; transform: translateX(-50%); }
#level-five-image.sentence-picture { display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 2vw, 1.5rem); white-space: nowrap; }
.sentence-prompt-emoji { line-height: 1; }
.sentence-prompt-word { font-size: .42em; font-weight: 800; letter-spacing: -.06em; }
.built-sentence { display: flex; min-height: clamp(6rem, 13vw, 9rem); align-items: center; justify-content: center; gap: clamp(3rem, 7vw, 5rem); }
.sentence-piece { color: #1f2937; font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 700; line-height: 1.05; }
.sentence-word { display: inline-flex; align-items: baseline; gap: .13em; white-space: nowrap; }
.sentence-syllable { display: inline-block; }
.sentence-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 68rem; }
.sentence-choice { min-width: 8rem; min-height: 6rem; padding: .4rem .8rem; border: 3px solid #111; border-radius: .8rem; background: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; }
#level-five-screen .built-sentence { position: absolute; top: 50%; left: 50%; width: 100%; margin: 0; transform: translate(-50%, -50%); }
#level-five-screen .sentence-choices { position: absolute; bottom: clamp(5.25rem, 11vh, 7rem); width: 100%; padding: 0 var(--screen-edge-padding); }
#level-six-screen { position: relative; width: 100%; }
#level-seven-screen { display: grid; width: 100%; grid-template-rows: auto minmax(7rem, 1fr) auto auto; align-content: stretch; justify-items: center; gap: clamp(1rem, 3vh, 2rem); padding: clamp(6rem, 12vh, 8.5rem) var(--screen-edge-padding) clamp(2rem, 5vh, 4rem); }
#level-seven-screen.is-hidden { display: none; }
.emoji-story-instruction { margin: 0; color: #46616b; font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; text-align: center; }
.emoji-story-sentence { display: flex; min-height: 7rem; align-items: center; justify-content: center; gap: clamp(.8rem, 2.6vw, 1.6rem); width: min(100%, 64rem); padding: clamp(1rem, 2vw, 1.5rem); border: 2px solid rgba(12, 143, 155, .18); border-radius: 1.4rem; background: rgba(255, 255, 255, .68); color: #1f2937; font-size: clamp(1.8rem, 4vw, 3.35rem); font-weight: 800; text-align: center; }
.emoji-story-sentence:empty { border-color: transparent; background: transparent; }
.emoji-story-piece { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; }
.emoji-story-piece-emoji { font-size: .88em; }
.emoji-story-choices { display: flex; align-items: center; justify-content: center; width: min(100%, 54rem); }
.emoji-story-group { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.emoji-story-card { display: grid; grid-template-columns: auto 1fr; min-height: 5.35rem; align-items: center; gap: .85rem; padding: .75rem 1rem; border: 2px solid rgba(12, 143, 155, .4); border-radius: 1.15rem; background: rgba(255, 255, 255, .9); color: #16454a; box-shadow: 0 .35rem .8rem rgba(37, 91, 98, .1); font: inherit; font-size: clamp(1.05rem, 2.5vw, 1.45rem); font-weight: 800; text-align: left; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.emoji-story-card:hover, .emoji-story-card:focus-visible { border-color: #0c8f9b; background: #e1f8f7; transform: translateY(-.14rem); }
.emoji-story-card-emoji { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .8rem; background: #e1f8f7; font-size: 1.65rem; line-height: 1; }
.emoji-story-read-panel { display: grid; justify-items: center; gap: .7rem; width: min(100%, 42rem); padding-top: .35rem; }
.emoji-story-read-panel p { margin: 0; color: #16454a; font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 800; text-align: center; }
.emoji-story-read-panel .primary-button { min-height: 4.25rem; padding: .7rem 1.6rem; border: 2px solid #0c8f9b; border-radius: 1rem; background: #0c8f9b; box-shadow: 0 .45rem .9rem rgba(12, 143, 155, .22); color: #fff; font-size: clamp(1.2rem, 2.7vw, 1.55rem); }
.emoji-story-read-panel .primary-button:hover, .emoji-story-read-panel .primary-button:focus-visible { background: #087983; transform: translateY(-.12rem); }
.emoji-story-parent-button { min-height: 3rem; padding: .5rem 1rem; border: 2px solid rgba(12, 143, 155, .35); border-radius: .85rem; background: #fff; color: #07656d; font: inherit; font-weight: 800; }
@media (max-width: 620px) { #level-seven-screen { grid-template-rows: auto minmax(5rem, 1fr) auto auto; gap: .8rem; padding-top: 5.4rem; padding-bottom: 1rem; } .emoji-story-sentence { min-height: 5.5rem; flex-wrap: wrap; gap: .35rem .75rem; padding: .65rem; font-size: clamp(1.4rem, 6vw, 2rem); } .emoji-story-group { grid-template-columns: 1fr; gap: .55rem; } .emoji-story-card { min-height: 3.8rem; padding: .45rem .65rem; font-size: 1rem; } .emoji-story-card-emoji { width: 2.15rem; height: 2.15rem; font-size: 1.4rem; } .emoji-story-read-panel { gap: .4rem; } .emoji-story-read-panel p { font-size: .95rem; } .emoji-story-read-panel .primary-button { min-height: 3.2rem; padding: .5rem 1rem; font-size: 1.1rem; } }
.movable-instruction { position: absolute; top: clamp(5rem, 11vh, 7rem); left: 0; width: 100%; color: #526071; font-size: clamp(1.05rem, 2.3vw, 1.35rem); font-weight: 700; }
#level-six-screen .picture { position: absolute; top: clamp(8rem, 18vh, 11rem); left: 50%; transform: translateX(-50%); }
.movable-built-word { position: absolute; top: 42%; left: 50%; display: flex; min-height: clamp(7rem, 13vw, 9rem); align-items: flex-end; justify-content: center; gap: clamp(2rem, 6vw, 4rem); width: 100%; padding: 0 var(--screen-edge-padding); transform: translate(-50%, -50%); }
/* W Montessori litery wpisuje się na kreskach: blisko w sylabie, z większą przerwą między sylabami. */
.montessori-syllable-slots { display: flex; align-items: flex-end; gap: .22em; }
.movable-built-letter, .movable-empty-slot, .montessori-typed-slot { display: inline-flex; width: .78em; min-height: 1.22em; align-items: center; justify-content: center; padding: 0; border: 0; border-bottom: .08em solid currentColor; border-radius: 0; background: transparent; font-family: inherit; font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 800; line-height: 1; }
.movable-built-letter { cursor: pointer; }
.movable-built-letter:hover, .movable-built-letter:focus-visible { background: rgba(255, 242, 189, .48); }
.movable-letter.is-vowel, .movable-built-letter.is-vowel, .movable-empty-slot.is-vowel, .montessori-typed-slot.is-vowel { border-color: #c8473e; color: #b5342d; }
.movable-letter.is-consonant, .movable-built-letter.is-consonant, .movable-empty-slot.is-consonant, .montessori-typed-slot.is-consonant { border-color: #2977b8; color: #1b609c; }
.movable-built-letter.is-mismatched, .montessori-typed-slot.is-mismatched { background: rgba(255, 225, 225, .62); color: #a12424; }
.movable-empty-slot { color: transparent; }
.movable-hint { position: absolute; top: calc(47% + clamp(3.4rem, 7vw, 4.8rem)); left: 0; width: 100%; min-height: 1.5rem; color: #a12424; font-size: 1rem; font-weight: 700; }
.movable-letter-bank { position: absolute; bottom: clamp(4.5rem, 10vh, 7rem); left: 50%; display: flex; max-width: min(calc(100% - (2 * var(--screen-edge-padding))), 54rem); flex-wrap: wrap; justify-content: center; gap: .7rem; transform: translateX(-50%); }
.movable-letter { min-width: clamp(3.3rem, 7vw, 4.7rem); min-height: clamp(3.8rem, 8vw, 5.2rem); padding: .25rem .65rem; border: 3px solid #b27a17; border-radius: .9rem; background: #fff; color: #5d4a26; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; box-shadow: 0 .35rem .7rem rgba(102, 76, 29, .11); }
.movable-letter:hover { background: #fff3cf; transform: translateY(-.15rem); }
.movable-letter:disabled { border-color: #d9ccb0; background: #f6f2e8; color: #b7aa91; box-shadow: none; cursor: default; transform: none; }
.movable-clear-button { position: absolute; bottom: clamp(1rem, 3vh, 2rem); left: 50%; padding: .55rem 1rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .8); color: #705d31; font: inherit; font-weight: 700; transform: translateX(-50%); }
.movable-clear-button:hover { background: #fff3cf; }
.montessori-backspace-button { min-height: 3.1rem; padding: .55rem 1rem; border: 2px solid #7b6533; border-radius: .85rem; background: #fff; color: #70500b; font: inherit; font-weight: 800; }
.montessori-backspace-button:hover, .montessori-backspace-button:focus-visible { background: #fff3cf; }
.montessori-typing { position: absolute; top: calc(47% + clamp(5.8rem, 9vw, 7.5rem)); left: 50%; display: flex; justify-content: center; gap: clamp(2rem, 6vw, 4rem); width: 100%; padding: 0 var(--screen-edge-padding); transform: translateX(-50%); }
.montessori-typing.is-hidden { display: none; }
.montessori-backspace-button { position: absolute; bottom: clamp(1rem, 3vh, 2rem); left: 50%; transform: translateX(-50%); }
.montessori-typed-slot.is-current { box-shadow: 0 .15em 0 -.06em rgba(57, 81, 67, .24); }
.movable-built-letter.is-complete { cursor: default; }
#level-three-screen { position: relative; width: 100%; }
#level-three-screen .picture { position: absolute; top: clamp(5rem, 12vh, 9rem); left: 50%; transform: translateX(-50%); }
#level-three-screen .built-word { position: absolute; top: 50%; left: 50%; width: 100%; min-height: clamp(6rem, 13vw, 9rem); margin: 0; transform: translate(-50%, -50%); }
#level-three-screen .syllable-piece { font-size: clamp(4.25rem, 10vw, 7.5rem); }
#level-three-screen .syllable-choices { position: absolute; bottom: clamp(5.25rem, 11vh, 7rem); width: 100%; max-width: 68rem; padding: 0 var(--screen-edge-padding); }
#level-three-screen .syllable-choice { min-width: 8rem; min-height: 6.5rem; font-size: clamp(3rem, 7vw, 5.5rem); }
.complete-text { margin-bottom: 2rem; }
@media (max-width: 900px) { .level-menu { width: min(calc(100% - (2 * var(--screen-edge-padding))), 42rem); grid-template-columns: repeat(2, minmax(0, 1fr)); } .level-card { min-height: 11rem; } }
@media (max-width: 620px) { :root { --screen-edge-padding: .75rem; --header-top: .55rem; } .screen { min-height: 100vh; } .library-screen { padding: calc(var(--header-top) + .45rem) var(--screen-edge-padding) 1.25rem; } .library-header { align-items: flex-start; } .library-links { max-width: 12.5rem; gap: .35rem; } .parent-link { padding: .55rem .7rem; font-size: .82rem; } .library-content { margin-top: 3.2rem; } .game-library-grid { grid-template-columns: 1fr; } .game-library-card { min-height: auto; } .game-library-card.is-available { grid-template-columns: auto 1fr; } .creator-note-photo { width: 5.25rem; height: 5.25rem; } .library-back-button { top: .15rem; padding: .55rem .65rem; font-size: .8rem; } .language-selector { top: .15rem; } .language-selector select { min-height: 2.3rem; padding-left: .5rem; font-size: .9rem; } #menu-screen #menu-title { top: 8.4rem; } .level-menu { width: min(calc(100% - (2 * var(--screen-edge-padding))), 26rem); grid-template-columns: 1fr; margin-top: 5.5rem; } .level-card { min-height: 7.5rem; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; text-align: left; } .level-card-icon { grid-row: span 2; } .level-card-label { align-self: start; } .syllable-filter-options { grid-template-columns: 1fr; width: min(100%, 19rem); } .word-layout { flex-direction: column; gap: 1.5rem; } .game-topbar .progress-bar { top: calc(100% + 1rem); width: 100%; } #level-three-screen .picture, #level-five-screen .picture { top: clamp(5rem, 14vh, 7rem); } #level-three-screen .built-word, #level-five-screen .built-sentence { top: 48%; } #level-three-screen .syllable-choices, #level-five-screen .sentence-choices { bottom: 5.25rem; } .movable-instruction { top: 5.2rem; } #level-six-screen .picture { top: 8rem; } .movable-built-word { top: 40%; gap: .6rem; } .movable-built-letter, .movessori-empty-slot, .montessori-typed-slot { font-size: clamp(3.5rem, 12vw, 4rem); } .movable-letter-bank { bottom: 4.2rem; gap: .45rem; } .movable-letter { min-width: 3rem; min-height: 3.6rem; } .progress-segment { height: .7rem; } }
@media (max-width: 620px) { #menu-screen { --menu-edge-padding: var(--screen-edge-padding); --menu-header-top: calc(var(--header-top) + .45rem); --menu-logo-width: min(7.25rem, 29vw); } #menu-screen .brand-logo { max-height: 2.2rem; } #menu-screen .library-back-button { top: calc(var(--menu-header-top) + .13rem); left: calc(var(--menu-edge-padding) + var(--menu-logo-width) + .55rem); right: auto; padding: .45rem .58rem; font-size: .82rem; } #menu-screen .language-selector { top: calc(var(--menu-header-top) + .13rem); right: var(--menu-edge-padding); } }
@media (max-width: 620px) { #menu-screen #menu-title { top: 5.75rem; } }
@media (max-width: 620px) { .montessori-typing { top: calc(46% + 4.2rem); gap: .6rem; } }
@media (max-width: 620px) { .movable-empty-slot { font-size: clamp(3.5rem, 12vw, 4rem); } }
@media (max-width: 620px) { .library-header { display: grid; grid-template-columns: 1fr; gap: .75rem; } .library-header-actions { justify-content: space-between; width: 100%; gap: .45rem; } .library-links { max-width: none; flex-wrap: nowrap; gap: .35rem; } }
