/* Brain Playground: picture-led puzzles with stable hit areas and optional decoration. */
.brainLobby{padding:28px;border:1px solid #c9d6e8;border-radius:30px;background:linear-gradient(130deg,#e8effb,#f3e8f7 60%,#fdf0df);margin:30px 0}.brainLobbyTitle{display:flex;align-items:center;justify-content:space-between;gap:18px}.brainLobbyTitle h3{font-size:32px;margin:10px 0;letter-spacing:-.8px}.brainLobbyTitle p{color:#738098;font-size:14px;line-height:1.6;margin:0}.brainLobbySpark{font-size:68px;color:#b296cc;text-shadow:3px 3px 0 #ffffffa0;animation:brainTwinkle 4s ease-in-out infinite}.brainChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:25px 0 10px}.brainChoice{min-width:0;padding:20px;border:1px solid #c5d4e8;border-radius:24px;background:#ffffffc9;text-align:left;display:grid;gap:12px;box-shadow:0 5px 0 #cdd9ed;color:var(--ink)}.brainChoice.changes{border-color:#bfd9cc;box-shadow:0 5px 0 #d1e4d9}.brainChoice.rhythm{border-color:#d9c3df;box-shadow:0 5px 0 #e7d5e9}.brainChoice strong{font-size:21px;letter-spacing:-.6px}.brainChoice>span:not(.brainChoiceArt){color:#748198;font-size:13px;line-height:1.6}.brainChoice b{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#837094;margin-top:4px}.brainChoiceArt{height:105px;display:grid;place-items:center;position:relative}.miniMosaic{display:grid;grid-template-columns:1fr 1fr;gap:5px;transform:rotate(-8deg)}.miniMosaic i{font-style:normal;width:46px;height:46px;border-radius:9px;display:grid;place-items:center;font-size:27px;border:1px solid #91b6d4;background:#acd5f5;color:#315d88;box-shadow:0 3px 0 #b6abc74d}.miniMosaic i:nth-child(2){background:#f2b4ce;color:#964368;border-color:#cf8ba6}.miniMosaic i:nth-child(3){background:#f2d284;color:#88641b;border-color:#c8ad6c}.miniMosaic i:nth-child(4){background:#b3dfc9;color:#326b54;border-color:#8ab9a3}.miniWindow{font-size:33px;background:#ecf6f0;padding:13px 16px;border:1px solid #c5ddcc;border-radius:18px;position:relative;white-space:nowrap}.miniWindow i{position:absolute;right:15px;top:-10px;font-style:normal;font-size:24px;animation:brainTwinkle 3s ease-in-out infinite}.miniPads{font-size:36px;color:#638aaa;display:flex;align-items:center;gap:5px;background:#f4eefa;border:1px solid #dcc6e9;padding:15px;border-radius:21px;white-space:nowrap}.miniPads i{font-style:normal;color:#b083a6;font-size:30px;animation:brainNote 2.5s ease-in-out infinite}.brainLobbyFoot{text-align:center;color:#83718f;font-size:12px;line-height:1.6;margin:23px 0 0}.brainEarnedBadge{max-width:360px;display:flex;align-items:center;justify-content:center;gap:16px;margin:24px auto;padding:18px 23px;border:1px solid #dac795;border-radius:22px;background:linear-gradient(130deg,#fff6dc,#f6e9fd);text-align:left;box-shadow:0 4px 0 #eadac555}.brainEarnedBadge>span{font-size:40px}.brainEarnedBadge>div{display:grid;gap:7px}.brainEarnedBadge small{font-size:9px;letter-spacing:1.5px;color:#968051}.brainEarnedBadge strong{font-size:21px}.brainEarnedBadge div>span{font-size:12px;color:#877691}
.gamesIsPlaying .brainGame{padding:17px 24px;overflow:auto}.brainGame .gameTop{margin-bottom:15px}.brainGameTitle{display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;max-width:870px;margin:0 auto 18px}.brainGameTitle small{font-size:9px;letter-spacing:1.8px;color:#94819c}.brainGameTitle h2{font-size:29px;margin:8px 0 5px}.brainGameTitle p{font-size:14px;color:#78859a;margin:0;line-height:1.5}.brainHelp{min-height:45px;font-size:12px;white-space:nowrap}.brainDemo{max-width:770px;margin:auto}.brainDemoCaption{display:flex;align-items:center;justify-content:center;gap:12px;min-height:105px;text-align:left}.brainDoodle{width:105px;height:98px;flex-shrink:0;animation:brainDoodleBob 4s ease-in-out infinite}.brainDemoCaption small{font-size:9px;letter-spacing:1.3px;color:#9a80ac}.brainDemoCaption h3{font-size:22px;line-height:1.4;margin:9px 0 12px}.demoStepDots{display:flex;gap:7px}.demoStepDots i{width:7px;height:7px;border-radius:50%;background:#d8cbe4}.demoStepDots .current{background:#9980b7;width:20px;border-radius:7px}.patternExample,.changeDemo{display:flex;justify-content:center;align-items:center;gap:22px;margin:16px auto 10px}.patternExample small,.changeDemo small{font-size:10px;letter-spacing:1.2px;color:#837294;display:block;margin-bottom:10px}.exampleArrow{font-size:30px;color:#ba9ed0}.patternGrid{display:grid;gap:7px;grid-template-columns:repeat(2,minmax(0,1fr));margin:auto;width:100%}.patternGrid.size3{grid-template-columns:repeat(3,minmax(0,1fr))}.patternGrid.size4{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.patternGrid.demoGrid{width:170px;gap:7px}.patternTile{aspect-ratio:1;border:1px solid var(--tile-ink,#d8cadf);border-radius:14px;min-height:44px;min-width:0;background:var(--tile,#f2edf6);color:var(--tile-ink,#b8a6c9);box-shadow:inset 3px 3px 0 #ffffff65,0 3px 0 #af9fbc35;padding:0;display:grid;place-items:center;touch-action:manipulation;font-size:clamp(22px,3.5vw,46px);transition:background .12s}.patternTile:disabled{opacity:1;cursor:default}.patternTile.empty{border:1px dashed #c4b2d4;box-shadow:none}.patternTile.checkTile{outline:3px dotted #aa8cc3;outline-offset:2px}.patternHidden .patternTile{background:repeating-linear-gradient(135deg,#eee4f7,#eee4f7 8px,#e8ddef 8px,#e8ddef 16px);border:1px solid #cfbfdc}.patternHidden .patternTile span{visibility:hidden}.demoFocus{outline:3px solid #8a6aaa!important;outline-offset:4px;box-shadow:0 0 0 7px #d9c5ee80!important}.demoPalette{display:flex;justify-content:center;gap:16px;margin:19px 0}.demoPalette span{height:38px;width:38px;border-radius:12px;background:var(--tile);color:var(--tile-ink);display:grid;place-items:center;font-size:23px}.brainLevels{display:flex;justify-content:center;gap:10px;margin:24px 0 18px}.brainLevels button{font-size:12px;padding:10px 18px;min-height:44px}.brainLevels [aria-pressed=true]{background:#e7d9f4;border-color:#a087b9;color:#765397}.brainActions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.brainActions button{min-height:48px;font-size:14px;padding:12px 22px}.brainGentleNote{font-size:11px;line-height:1.6;color:#92849d;margin:16px auto 0;max-width:520px}.brainFeedback{font-size:15px;line-height:1.5;min-height:30px;margin:15px 0 13px;color:#816593;align-content:center}.patternPanels{display:grid;grid-template-columns:1fr 1fr;gap:30px;max-width:760px;margin:0 auto}.patternPanel{padding:16px;border:1px solid #d5c7e4;background:#f6f1fa;border-radius:22px;min-width:0}.patternPanelLabel{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;margin-bottom:10px}.patternPanelLabel strong{font-size:10px;letter-spacing:1.6px;color:#856b9b}.patternPanelLabel>span{font-size:11px;color:#9e8bb0}.patternPanelLabel .quiet{background:transparent;border:0;color:#826897;font-size:11px;min-height:32px;padding:3px}.patternPanel .patternGrid{width:min(100%,29dvh,300px)}.brainPanelNote{font-size:11px;line-height:1.4;margin:13px 0 0;color:#9a83a6}.patternPalette{display:flex;gap:13px;justify-content:center;margin:18px auto 0}.patternSwatch{position:relative;display:grid;place-items:center;gap:5px;min-width:71px;min-height:68px;padding:9px 14px;border:2px solid transparent;border-radius:17px;background:var(--tile);color:var(--tile-ink);touch-action:manipulation}.patternSwatch b{font-size:27px}.patternSwatch span{font-size:11px}.patternSwatch i{position:absolute;right:4px;top:2px;font-size:12px;font-style:normal}.patternSwatch[aria-pressed=true]{border-color:var(--tile-ink);box-shadow:0 0 0 3px #ffffff,0 0 0 5px var(--tile-ink)}
.changeDemoScene{display:flex;gap:10px;padding:20px;background:#ebf4ef;border:1px solid #c8dccf;border-radius:20px}.changeDemoScene span{font-size:37px;border-radius:13px}.changeScene{width:min(100%,600px);height:min(46dvh,380px);min-height:250px;position:relative;margin:auto;border-radius:27px;border:1px solid #c4d7d8;background:linear-gradient(#d9eafb 0%,#f1eef9 68%,#d8ebdc 68%,#bad4c5 100%);overflow:hidden;padding:65px 25px 45px}.sceneScenery{position:absolute;top:14px;left:0;width:100%;display:flex;justify-content:space-around;color:white;font-size:40px;line-height:1}.sceneScenery span:nth-child(2){color:#d3b571;font-size:30px}.sceneShelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;position:relative;height:100%;align-content:center;margin:auto;max-width:510px}.sceneShelf.count6{grid-template-columns:repeat(3,minmax(0,1fr));max-width:410px}.sceneSpot{position:relative;min-width:0;min-height:64px;aspect-ratio:1.15;border:2px solid var(--tile-ink,#b3bfba);border-radius:23px;background:var(--tile,#e2e9e4);box-shadow:inset 3px 4px 0 #ffffff5e,0 5px 0 #83958b30;display:grid;place-items:center;padding:0;touch-action:manipulation}.sceneSpot:disabled{opacity:1;cursor:default}.sceneObject{font-size:clamp(28px,4.5vw,51px);line-height:1}.sceneSpot small{position:absolute;bottom:5px;right:8px;color:var(--tile-ink,#7a9188);font-size:16px;line-height:1}.sceneSpot.missingSpot{background:#e4ece5;border-style:dashed;color:#9aa99e}.sceneSpot.foundSpot{outline:4px solid #80ad93;outline-offset:4px}.sceneGarden{position:absolute;bottom:7px;left:0;width:100%;font-size:30px;color:#669c7c;display:flex;justify-content:space-around}.sceneGarden span{color:#e3a8c2}.changeDemo{gap:15px}.changeDemoScene{gap:8px}
.rhythmDemo{display:flex;align-items:center;justify-content:center;gap:24px;margin:45px 0 40px}.demoBeat{width:135px;height:140px;border:1px solid var(--tile-ink);background:var(--tile);color:var(--tile-ink);border-radius:25px;display:grid;place-items:center;padding:15px}.demoBeat b{font-size:56px}.demoBeat small{font-size:12px}.demoNotes{font-size:50px;color:#b49bc8}.rhythmStage{max-width:420px;margin:auto;padding:16px 25px;border:1px solid #d7c4e4;border-radius:30px;background:linear-gradient(140deg,#f2eaf9,#e6edf9);box-shadow:0 5px 0 #d9cce650}.rhythmStageLabel{font-size:10px;letter-spacing:2px;color:#8e719f;display:block;margin:0 0 13px}.rhythmPads{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rhythmPad{position:relative;background:var(--tile);color:var(--tile-ink);border:2px solid var(--tile-ink);border-radius:24px;aspect-ratio:1.15;min-height:66px;padding:13px;display:grid;place-items:center;gap:9px;touch-action:manipulation;box-shadow:inset 4px 4px 0 #ffffff65,0 5px 0 #b7a5c340}.rhythmPad b{font-size:48px;line-height:1}.rhythmPad span{font-size:12px}.rhythmPad:disabled{opacity:1;cursor:default}.rhythmPad.lit{outline:5px solid #fff;outline-offset:-8px;box-shadow:0 0 0 4px var(--tile-ink),0 0 18px 8px #fff,inset 0 0 15px 8px #ffffffa0}.rhythmPad.lit i{position:absolute;right:10px;top:9px;font-style:normal;font-size:21px;color:#fff}.rhythmBeats{display:flex;justify-content:center;gap:10px;margin:16px 0 0}.rhythmBeats span{width:26px;height:26px;border-radius:50%;background:#e0d6e9;border:1px solid #cec0db;color:#a08cb0;font-size:11px;display:grid;place-items:center}.rhythmBeats .filled{background:#a892c3;color:white;border-color:#9b84b6}
@keyframes brainTwinkle{0%,100%{transform:rotate(-8deg) scale(.97)}50%{transform:rotate(8deg) scale(1.04)}}@keyframes brainNote{0%,100%{transform:translateY(2px)}50%{transform:translateY(-4px)}}@keyframes brainDoodleBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(max-width:850px){.brainChoices{gap:12px}.brainChoice{padding:17px}.brainChoice strong{font-size:19px}.brainChoiceArt{height:95px}.miniWindow{font-size:26px;padding:12px}.miniPads{font-size:29px;padding:11px}.brainLobby{padding:23px}.patternPanels{gap:20px}.changeScene{height:min(46dvh,400px)}}
@media(max-height:850px) and (min-width:651px){.brainGame .gameTop{margin-bottom:9px}.brainGameTitle{margin-bottom:12px}.brainGameTitle h2{font-size:25px;margin:6px 0}.brainDemoCaption{min-height:80px}.brainDoodle{height:76px;width:83px}.brainDemoCaption h3{font-size:19px}.patternGrid.demoGrid{width:145px}.brainLevels{margin:18px 0 14px}.brainGentleNote{margin-top:12px}.rhythmDemo{margin:27px 0}.rhythmStage{max-width:340px;padding:13px 20px}.rhythmPad b{font-size:38px}.rhythmPad{gap:5px;padding:10px}.rhythmStageLabel{margin-bottom:10px}.brainFeedback{font-size:14px;margin:12px 0}.patternSwatch{min-height:62px}.patternPanel .patternGrid{width:min(100%,27dvh,260px)}}
@media(max-width:650px){.brainChoices{grid-template-columns:1fr}.brainChoice{grid-template-columns:94px 1fr;column-gap:18px;padding:17px}.brainChoiceArt{grid-column:1;grid-row:1/4;height:96px}.brainChoice strong,.brainChoice>span:not(.brainChoiceArt),.brainChoice b{grid-column:2}.miniMosaic{gap:4px}.miniMosaic i{width:32px;height:32px;font-size:19px}.miniWindow{font-size:21px;padding:12px 7px}.miniWindow i{font-size:17px;right:0}.miniPads{font-size:24px;padding:9px;gap:0}.miniPads i{font-size:20px}.brainLobbyTitle h3{font-size:28px}.brainLobbyTitle .eyebrow{font-size:8px;letter-spacing:1px}.brainLobbySpark{font-size:48px}.gamesIsPlaying .brainGame{padding:14px}.brainGameTitle{gap:10px;margin-bottom:16px}.brainGameTitle h2{font-size:23px;margin-top:7px}.brainGameTitle small{font-size:8px;letter-spacing:1px}.brainGameTitle p{font-size:12px}.brainHelp{font-size:10px;padding:9px 11px;min-height:42px}.brainDemoCaption h3{font-size:18px}.brainDoodle{height:82px;width:86px}.patternExample{gap:16px}.patternGrid.demoGrid{width:130px}.patternTile{border-radius:10px}.brainActions button{font-size:13px;padding:11px 18px;min-height:46px}.brainLevels{gap:8px}.brainLevels button{padding:10px 14px}.patternPanels{gap:12px}.patternPanel{padding:10px;border-radius:17px}.patternPanelLabel{gap:4px;min-height:40px;flex-wrap:wrap;margin-bottom:8px}.patternPanelLabel strong{font-size:8px;letter-spacing:.8px}.patternPanelLabel .quiet{font-size:10px;min-height:28px}.patternPanel .patternGrid{width:100%}.patternPanel .patternGrid.size4{gap:4px}.patternPanel .patternGrid.size4 .patternTile{min-height:32px;font-size:18px;border-radius:6px}.patternPanel .patternGrid.size3 .patternTile{min-height:35px;font-size:22px}.brainPanelNote{font-size:10px;margin-top:10px}.patternSwatch{min-width:57px;min-height:65px;padding:9px 10px}.patternPalette{gap:10px;margin-top:20px}.patternSwatch b{font-size:25px}.patternSwatch span{font-size:10px}.brainFeedback{font-size:13px;margin-top:18px;min-height:38px}.changeScene{padding:55px 15px 40px;height:min(42dvh,360px);min-height:250px}.sceneShelf{gap:10px}.sceneShelf.count4{grid-template-columns:repeat(2,minmax(0,1fr));max-width:240px}.sceneSpot{min-height:64px}.sceneShelf.count8 .sceneSpot{min-height:53px;border-radius:15px}.sceneShelf.count8 .sceneObject{font-size:27px}.changeDemo{gap:9px}.changeDemoScene{display:grid;grid-template-columns:1fr 1fr;padding:15px 12px}.changeDemoScene span{font-size:32px}.changeDemoScene span:last-child{grid-column:1/-1}.exampleArrow{font-size:23px}.rhythmDemo{gap:16px;margin:35px 0}.demoBeat{width:115px;height:125px}.demoBeat b{font-size:47px}.demoNotes{font-size:28px}.rhythmStage{max-width:360px;padding:17px}.rhythmPad{min-height:80px}.rhythmPad b{font-size:43px}.brainGentleNote{font-size:10px}.brainGame .gameTop>span{font-size:11px}.brainGame .gameTop{gap:8px}.brainGame .gameTop .secondary{min-width:75px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.brainLobby *,.brainGame *{animation:none!important;transition:none!important}}.noMotion .brainLobby *,.noMotion .brainGame *{animation:none!important;transition:none!important}
@media(max-width:450px){.patternPanels:has(.size4){grid-template-columns:1fr;gap:12px}.patternPanels:has(.size4) .patternPanel:first-child{display:grid;grid-template-columns:1fr 145px;column-gap:15px;align-items:center}.patternPanels:has(.size4) .patternPanel:first-child .patternPanelLabel{grid-column:1;grid-row:1;display:grid;justify-content:start;gap:8px}.patternPanels:has(.size4) .patternPanel:first-child .patternGrid{grid-column:2;grid-row:1/3;width:145px}.patternPanels:has(.size4) .patternPanel:first-child .brainPanelNote{grid-column:1;grid-row:2;text-align:left}.patternPanels:has(.size4) .patternPanel:last-child .patternGrid{width:224px}.patternPanels:has(.size4) .patternPanel:last-child .patternTile{min-height:50px}.patternPanels:has(.size4) .patternPanel:last-child .patternPanelLabel{min-height:20px;margin-bottom:8px}.patternPanels:has(.size4) .patternPanel:last-child .brainPanelNote{margin-top:8px}}
.brainJump{display:inline-block;margin:12px 0 0 10px;min-height:44px;padding:10px 14px;font-size:12px;background:#ffffffa8;color:#7c648e}.sceneGarden,.sceneScenery{pointer-events:none}

@media(max-width:450px){.patternPanels:has(.size4) .patternPanel:first-child{grid-template-columns:1fr 115px}.patternPanels:has(.size4) .patternPanel:first-child .patternGrid{width:115px}.patternPanels:has(.size4) .patternPanel:last-child .patternGrid{width:212px}.patternPlay:has(.size4) .patternPalette{margin-top:14px}.patternPlay:has(.size4) .patternSwatch{min-height:57px}.patternPlay:has(.size4) .patternPanels{gap:8px}.patternPlay:has(.size4) .brainFeedback{margin-top:12px}}
@media(max-width:450px) and (max-height:850px){.patternGame .gameTop{margin-bottom:9px}.patternGame .brainGameTitle{margin-bottom:10px}.patternPlay:has(.size4) .brainFeedback{min-height:30px;margin:8px 0}}
