.games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;text-align:left}.game-card{display:flex;flex-direction:column;overflow:hidden;border:3px solid #e3d2f3;border-radius:30px;background:#fffaf3;color:#43205f;text-decoration:none;box-shadow:0 8px 0 #ddc8ed;transition:transform .15s}.game-card:hover{transform:translateY(-4px)}.game-card:focus-visible,.game-page button:focus-visible,.game-page a:focus-visible,.game-page input:focus-visible{outline:4px solid #cf2479;outline-offset:4px}.game-card-dash{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;background:#ffedaa;border-color:#edc35a}.game-card-art{height:230px;display:flex;justify-content:center;gap:10px;position:relative;background:radial-gradient(ellipse at center,#fff8df,#e5d5f6);overflow:hidden}.game-card-art img{height:100%;width:auto;max-width:49%;object-fit:cover;object-position:center 25%;border-radius:80px 80px 0 0}.game-card-dash .game-card-art{height:100%;min-height:290px}.game-sparkle{position:absolute;right:18px;top:10px;font-size:40px;color:#6b329b}.game-card-copy{padding:25px}.game-card h3{font-family:Fredoka,sans-serif;font-size:29px;line-height:1.15;margin:12px 0}.game-card p{font-size:18px;line-height:1.55;margin:0 0 20px}.game-badge{font-size:13px;font-weight:900;letter-spacing:.02em}.game-go{display:inline-block;background:#633293;color:#fff;padding:12px 22px;border-radius:99px;font-family:Fredoka,sans-serif;font-size:19px}.offline-heading{margin-top:85px}.game-page{background:radial-gradient(circle at 10% 20%,#f7deef 0,transparent 35%),#f4ecfb;min-height:100vh;color:#43205f}.game-header{position:relative;padding:12px 5%;display:flex;align-items:center;justify-content:space-between;background:#43205f;gap:20px}.game-header nav{display:flex;gap:22px;flex-wrap:wrap}.game-header nav a{color:#fff;font-weight:800;text-decoration:none}.game-welcome{max-width:1050px;margin:auto;padding:30px 24px 20px;text-align:center}.game-back{display:block;text-align:left;font-weight:900;color:#633293;margin-bottom:25px}.game-welcome h1{font-family:Bangers,sans-serif;font-size:clamp(44px,6vw,80px);line-height:1.05;margin:10px 0 15px;letter-spacing:1px;color:#633293}.game-welcome>p:not(.eyebrow){max-width:650px;margin:10px auto;font-size:20px;line-height:1.5}.game-hosts{display:flex;justify-content:center;gap:20px;margin:20px 0 0}.game-hosts a{text-decoration:none;color:#43205f;font-family:Fredoka,sans-serif;font-size:20px;display:flex;align-items:center;gap:10px}.game-hosts img{height:95px;width:80px;object-fit:cover;object-position:center 20%;border:4px solid #fff;border-radius:25px;box-shadow:0 4px 0 #dbc3ed}.game-app{max-width:1120px;margin:20px auto 30px;padding:30px;background:#fffdf8;border:3px solid #e1cef0;border-radius:35px;box-shadow:0 9px 0 #ddc8ed;text-align:center}.game-app button,.game-app input{font:inherit}.game-button,.answer-button,.direction-button{background:#633293;border:2px solid transparent;border-radius:22px;color:#fff;padding:15px 24px;font-family:Fredoka,sans-serif!important;font-size:22px!important;cursor:pointer;min-height:54px;box-shadow:0 4px 0 #43205f}.game-button.secondary{background:#f0e4fb;color:#43205f;box-shadow:0 3px 0 #d5b9e7;border-color:#d5b9e7}.game-button.small{font-size:17px!important;padding:10px 18px;min-height:46px}.game-app button:disabled{opacity:.48;cursor:default;box-shadow:none}.game-toolbar{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}.game-directions{max-width:750px;margin:25px auto 10px;font-size:20px;line-height:1.6}.game-level,.race-mode{border:0;margin:25px 0;padding:0;display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.game-level legend,.race-mode legend{font-family:Fredoka,sans-serif;font-size:21px;margin:0 auto 14px}.game-level label,.race-mode label{background:#f4ecfb;border:2px solid #decaed;border-radius:18px;padding:14px;text-align:left;font-weight:800;cursor:pointer}.game-level label:has(input:checked),.race-mode label:has(input:checked){background:#ffedaa;border-color:#bb8d21}.game-level input,.race-mode input{width:20px;height:20px;vertical-align:middle;accent-color:#633293;margin-right:8px}.game-level span{display:block;padding-left:32px;font-size:14px}.round-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0;font-weight:900}.game-app h2{font-family:Fredoka,sans-serif;font-size:clamp(25px,4vw,38px);line-height:1.2;margin:20px 0}.honey-row,.answer-row,.pattern-row{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:15px;margin:24px auto}.honey-counter{font-size:42px!important;background:#fff1bf;border:3px solid #d4a03e;border-radius:18px;width:70px;height:70px;cursor:pointer}.honey-counter.counted{background:#dcc4f5;border-color:#633293;transform:scale(.92)}.answer-button{min-width:78px;min-height:78px;font-size:36px!important;background:#633293}.answer-button.correct{background:#4d6d28}.pattern-symbol{font-size:55px;line-height:1.2;display:inline-block}.pattern-symbol.missing{color:#633293;border:3px dashed #ba96d5;padding:0 13px;border-radius:16px}.symbol-answer{background:#fff6df;border-color:#d6b4e9;box-shadow:0 4px 0 #c7a0de}.word-picture{font-size:95px;line-height:1.3}.word-clue,.word-guide,.operation-help{font-size:21px}.word-guide{font-weight:900}.word-slots{display:flex;justify-content:center;gap:12px;margin:24px}.word-slots span{font-family:Fredoka,sans-serif;font-size:42px;padding:8px 14px;background:#ffedaa;border-radius:14px;border-bottom:4px solid #d4a03e}.game-app #feedback{font-size:22px;font-weight:900;min-height:35px}.pair-guide{padding:15px;background:#f2e7fb;border-radius:20px;margin:20px auto;max-width:700px;line-height:1.7}.pair-guide summary{cursor:pointer;font-weight:900}.memory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;max-width:800px;margin:25px auto}.memory-card{border:3px solid #bb91d9;border-radius:22px;background:#633293;color:#ffdc76;min-height:150px;padding:8px;font:36px Fredoka,sans-serif!important;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}.memory-card:has(img),.memory-card:has(.crystal-glyph){color:#43205f}.memory-card img{width:80px;height:85px;object-fit:cover;object-position:center 15%;border-radius:16px}.memory-card span:not(.crystal-glyph){font-size:17px;line-height:1.2}.memory-card:disabled{opacity:1!important;border:4px solid #628237}.crystal-glyph{font-size:45px}.race-toolbar{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}.race-toolbar #clock{font:64px Fredoka,sans-serif;background:#ffedaa;border:3px solid #d8ad41;border-radius:25px;min-width:105px}.race-keys{font-size:17px;line-height:1.6}.race-boards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.race-panel{background:#efe2fb;padding:15px;border-radius:25px;min-width:0}.race-panel h2{margin:0;font-size:26px}.race-score{font:22px Fredoka,sans-serif;margin:8px 0 14px}.race-panel canvas{display:block;width:100%;height:auto;aspect-ratio:15/13;border-radius:15px;border:3px solid #43205f}.direction-pad{display:grid;grid-template-columns:repeat(3,58px);grid-template-rows:repeat(2,54px);gap:8px;justify-content:center;margin:16px 0 4px}.direction-button{padding:4px;min-height:54px;font-size:30px!important;border-radius:15px;touch-action:none;user-select:none}.direction-button.up{grid-area:1/2}.direction-button.left{grid-area:2/1}.direction-button.down{grid-area:2/2}.direction-button.right{grid-area:2/3}#race-status{font-size:20px;font-weight:800}#race-result:not(:empty){margin-top:25px;background:#ffedaa;border-radius:22px;padding:25px;font:26px Fredoka,sans-serif}.game-grownups{max-width:700px;margin:40px auto;padding:0 22px;text-align:center;line-height:1.7}.game-page footer{margin-top:50px}.game-page footer a{color:inherit;font-weight:900}
@media(max-width:700px){.game-header{flex-direction:column;gap:0;padding-bottom:20px}.game-header nav{gap:18px}.game-app{margin:15px 10px;padding:20px 12px;border-radius:25px}.games-grid{grid-template-columns:1fr}.game-card-dash{display:flex}.game-card-dash .game-card-art{height:230px;min-height:0}.game-welcome{padding:25px 18px 5px}.race-boards{gap:10px}.race-panel{padding:7px}.race-panel h2{font-size:19px}.direction-pad{grid-template-columns:repeat(3,42px);gap:4px}.direction-button{min-width:42px}.memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.memory-card{min-height:135px}.game-page footer{flex-wrap:wrap;gap:20px}.game-hosts img{width:60px;height:75px}.game-hosts{gap:12px}.game-hosts a{font-size:18px}.pattern-row{gap:8px}.pattern-symbol{font-size:39px}.answer-button{min-width:64px;min-height:64px}.game-toolbar .game-button{font-size:17px!important;padding:12px}.race-toolbar{gap:12px}.game-level,.race-mode{gap:10px}.game-level label,.race-mode label{flex:1;min-width:180px}}@media(prefers-reduced-motion:reduce){.game-card{transition:none}}
.game-hosts>div{display:flex;flex-direction:column;align-items:center;gap:8px}.game-hosts>div>a{display:flex;flex-direction:column;gap:3px}.model-host-canvas{width:150px;height:150px;background:radial-gradient(ellipse,#ffedaa,#e4d0f4);border-radius:30px}.model-turn{font:16px Fredoka,sans-serif;color:#43205f;background:#ffedaa;border:2px solid #d2aa45;border-radius:99px;padding:9px 15px;cursor:pointer;min-height:44px}
@media(max-width:420px){.race-boards{grid-template-columns:1fr}.direction-pad{grid-template-columns:repeat(3,58px);gap:8px}.race-panel h2{font-size:24px}}

#level-hint{font-size:17px;line-height:1.5;margin:0 auto 18px}#race-result .game-button{display:block;margin:20px auto 0}.race-difficulty{margin-bottom:14px}

.maths-results{max-width:720px;margin:25px auto;padding:25px;border:3px solid #eac05f;border-radius:30px;background:#fff0b9}.maths-results>img{width:120px;height:140px;object-fit:cover;border:4px solid white;border-radius:25px}.maths-final-score{font:clamp(28px,5vw,44px) Fredoka,sans-serif;color:#633293}.maths-appreciation{font-size:22px;line-height:1.6}.maths-results .game-button{margin:10px}.maths-results h2:focus{outline:none}

.memory-card:has(.crystal-picture){color:#43205f}.memory-card .crystal-picture{width:105px;height:105px;object-fit:contain;border-radius:15px}.memory-card{min-height:170px}.memory-card img:not(.crystal-picture){height:105px;width:85px}@media(max-width:700px){.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:420px}.memory-card{min-height:165px}}

.word-hint{margin:16px auto;max-width:400px;padding:12px 18px;background:#f1e5fb;border-radius:18px}.word-hint summary{cursor:pointer;font-weight:800}.word-hint .word-guide{margin:12px 0 3px}

/* Comfortable touch play on phones and iPads. */
.game-app,.game-hosts>div{min-width:0}
.game-hosts{flex-wrap:wrap}
.model-host-canvas{max-width:100%;height:auto;aspect-ratio:1}
.word-slots{margin:24px 0;gap:8px}
.word-slots span{min-width:0;flex:0 1 64px;padding:8px 5px}
.round-heading{flex-wrap:wrap}
.game-app button{touch-action:manipulation}
.game-app .direction-button{touch-action:none;min-width:48px;min-height:54px;-webkit-user-select:none}
.direction-pad{grid-template-columns:repeat(3,58px)}
@media(max-width:600px){
 .race-boards{grid-template-columns:1fr;gap:20px}
 .race-panel{padding:12px}
 .race-panel h2{font-size:24px}
 .direction-pad{grid-template-columns:repeat(3,58px);gap:8px}
 .game-app .game-button{max-width:100%;white-space:normal}
 .game-hosts>div{max-width:44%}
 .game-level label,.race-mode label{min-width:0;flex-basis:100%}
 .maths-results{padding:20px 12px}
 .maths-results .game-button{margin:10px 0}
 .game-welcome>.crystal-crest{float:none;transform:none;margin:0 auto 18px}
}
@media(max-width:360px){
 .game-app{margin-inline:8px;padding-inline:10px}
 .answer-row{gap:8px}
 .answer-button{padding:10px;min-width:56px}
 .word-slots span{font-size:36px}
 .memory-card .crystal-picture{width:90px;height:90px}
}

/* Crystal Arcade shares the existing character artwork and brand typography. */
.arcade-library{padding-top:28px}.arcade-rally{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:3px solid #dab056;border-radius:32px;background:#fff5d8;box-shadow:0 18px 55px #41255818;margin-bottom:56px}.arcade-rally-art{display:flex;align-items:center;justify-content:center;gap:0;min-height:390px;padding:35px 20px;background:radial-gradient(ellipse at center,#fff4bc,#dcc5ee);overflow:hidden}.arcade-rally-art img{width:34%;height:auto;aspect-ratio:4/5;object-fit:cover;border:5px solid #fff9e6;border-radius:45% 45% 24px 24px;box-shadow:0 12px 25px #42205325;transform:rotate(-7deg)}.arcade-rally-art img:nth-child(2){width:38%;z-index:1;transform:translateY(-18px)}.arcade-rally-art img:last-child{transform:rotate(7deg)}.arcade-rally-copy{padding:38px;color:#43205f}.arcade-rally-copy h2{font-family:Bangers,sans-serif;font-size:clamp(42px,6vw,70px);line-height:1.05;margin:15px 0}.arcade-rally-copy p,.arcade-rally-copy li{font-size:18px;line-height:1.6}.arcade-rally-copy ul{padding-left:22px;margin:18px 0 26px}.arcade-rally-copy .arcade-preview-note{font-size:14px;line-height:1.5;margin:18px 0 0;max-width:440px}.arcade-games-title{font:clamp(30px,4vw,44px) Fredoka,sans-serif;color:#43205f;margin-bottom:26px}.arcade-home-link{text-align:center;margin:0 0 32px}header nav{flex-wrap:wrap}.arcade-rally a:focus-visible{outline:3px solid #673196;outline-offset:5px}@media(max-width:800px){.arcade-rally{grid-template-columns:1fr}.arcade-rally-art{min-height:0;padding:42px 25px 20px}.arcade-rally-art img{max-width:180px}.arcade-rally-copy{padding:25px}.arcade-rally-copy .button{white-space:normal}.arcade-games-title{text-align:center}}

.game-card-flight .game-card-art,.game-card-garden .game-card-art{height:auto;aspect-ratio:3/2}.game-card-flight .game-card-art img,.game-card-garden .game-card-art img{width:100%;max-width:100%;height:100%;object-fit:contain;border-radius:0}.game-card-flight .game-sparkle,.game-card-garden .game-sparkle{display:none}

.arcade-return-bar{position:sticky;top:0;z-index:30;padding:8px 16px;background:#fff8eaf5;text-align:center;box-shadow:0 2px 8px #33224418}.arcade-return-bar a{display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border-radius:14px;background:#593975;color:white;text-decoration:none;font:600 16px Fredoka,sans-serif}.arcade-return-bar a:focus-visible{outline:3px solid #efbd42;outline-offset:3px}

.game-card-colouring .game-card-art{background:white}.game-card-colouring .game-card-art img{object-fit:contain}

.arcade-rally-art{padding:0;min-height:0;background:#d7ebda}.arcade-rally-art img,.arcade-rally-art img:last-child{width:100%;max-width:none;height:auto;aspect-ratio:auto;object-fit:contain;border:0;border-radius:0;box-shadow:none;transform:none}
