.cg-game-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;margin:28px 0 65px}.cg-game-card{border:1px solid #d6e3df;background:white;overflow:hidden;border-radius:18px}.cg-game-card img{width:100%;height:auto;display:block;aspect-ratio:3/2;object-fit:cover}.cg-game-card>div{padding:25px}.cg-game-card h3{font:700 28px/1.15 Georgia,serif;margin:10px 0 15px}.cg-game-card p{line-height:1.6}.cg-skill{color:#426760;font-weight:700;font-size:14px;margin:0}.cg-game-card .btn{margin-top:12px}.cg-intro{display:flex;align-items:center;gap:27px;margin-bottom:30px}.cg-intro>img{width:170px;height:113px;object-fit:cover;border-radius:12px}.cg-intro p{margin:5px 0 12px}.cg-links{display:flex;gap:22px;flex-wrap:wrap}.cg-links a{color:#173f3b;text-underline-offset:4px}.cg-workshop{border:1px solid #d2e0dc;background:white;border-radius:20px;padding:30px}.cg-levels{display:flex;gap:8px;margin-bottom:28px}.cg-levels button{border:1px solid #b2c9c1;background:#f8fbfa;color:#173f3b;padding:10px 18px;border-radius:24px;min-height:44px;cursor:pointer}.cg-levels button[aria-pressed=true]{background:#173f3b;color:white;border-color:#173f3b}.cg-game-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:38px;align-items:start}.cg-controls h2,.cg-rhyme-copy h2,.cg-welcome h2{font-size:28px;margin:0 0 14px}.cg-controls>p{margin:0 0 22px;line-height:1.65}.cg-board-meta{display:flex;flex-direction:column;gap:5px;font-size:14px;margin-bottom:15px}.cg-board-meta strong{font-size:17px}.cg-flight-grid{display:grid;grid-template-columns:repeat(var(--cg-cols),minmax(0,1fr));gap:5px;background:#cfe3e9;padding:10px;border:2px solid #b8d1db;border-radius:20px;aspect-ratio:1}.cg-flight-cell{position:relative;min-width:0;display:grid;place-items:center;background:#f4fafc;border-radius:10px;aspect-ratio:1}.cg-flight-cell.cloud{background:#8cabb9;color:white;font-size:clamp(22px,4vw,49px);line-height:1}.cg-flight-cell small{position:absolute;bottom:2px;right:4px;font-weight:800;font-size:12px;background:white;border-radius:5px;padding:0 4px;color:#173f3b}.cg-broom{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(22px,3.4vw,40px);filter:drop-shadow(0 2px 1px #fff)}.cg-broom b{font:800 26px/1 sans-serif;background:#173f3b;color:#fff;border-radius:50%;padding:2px 5px;margin-left:-9px;align-self:end;z-index:1}.cg-flight-cell.player{outline:3px solid #ae343e;outline-offset:-3px}.cg-start{font-size:11px;color:#517679}.cg-small{font-size:14px;line-height:1.65;color:#4c6965}.cg-command-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cg-command-buttons button{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #b2c9c1;border-radius:10px;background:#f8fbfa;color:#173f3b;cursor:pointer;min-height:50px}.cg-command-buttons b{font-size:27px;line-height:1}.cg-program-title{display:flex;justify-content:space-between;margin:23px 0 10px;font-size:14px}.cg-program{list-style:none;display:flex;align-content:start;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding:12px;min-height:98px;max-height:245px;overflow:auto;background:#eaf2f1;border-radius:10px}.cg-program li{margin:0;flex:none}.cg-program li button{border:1px solid #c2d4ce;border-radius:7px;background:white;color:#173f3b;min-height:44px;padding:8px;cursor:pointer;font-size:13px}.cg-program li button>span:first-child{font-size:10px;color:#536c67;margin-right:3px}.cg-program li.current button{background:#f3d296;border-color:#976a16;color:#173f3b}.cg-empty{font-size:14px;color:#4c6965;padding:10px}.cg-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.cg-actions .btn{min-height:46px}.cg-controls>.link-button{min-height:44px}.cg-feedback{margin-top:25px;padding:15px 19px;border-left:4px solid #ae343e;background:#f8fbfa;line-height:1.6;min-height:55px}.cg-feedback:empty{display:none}.cg-hint{padding:14px 18px;background:#fff7e1;line-height:1.6;border-radius:8px}.cg-success{margin-top:24px;background:#eaf2f1;border-radius:12px;padding:22px}.cg-success strong{font:700 25px/1.25 Georgia,serif}.cg-success p{line-height:1.6;margin:10px 0 18px}.cg-story-note{margin-top:20px}.cg-creature-link{margin:22px 0 4px;align-self:flex-start}.cg-workshop button:disabled{cursor:default;opacity:.5}.cg-workshop button:focus-visible,.cg-game-card a:focus-visible{outline:3px solid #ae343e;outline-offset:4px}.cg-rhyme-progress{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.cg-door-lights{display:flex;gap:10px;font-size:25px;color:#c7d4d0}.cg-door-lights .lit{color:#94611a}.cg-rhyme-layout{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:48px;align-items:center;padding:20px 15px 35px}.cg-poem{font:25px/1.9 Georgia,serif;margin:22px 0 28px}.cg-blank{border-bottom:2px dashed #ae343e;display:inline-block;min-width:48px;text-align:center;color:#8d2733}.cg-rhyme-choices{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.cg-rhyme-choices button{background:#f8fbfa;border:2px solid #b2c9c1;border-radius:12px;min-width:98px;min-height:54px;padding:10px 20px;color:#173f3b;font-size:22px;font-family:Georgia,serif;cursor:pointer}.cg-rhyme-choices button.correct:disabled{opacity:1;background:#173f3b;color:white;border-color:#173f3b}.cg-rhyme-choices button.tried{border-style:dashed;color:#4c6965}.cg-welcome{display:grid;grid-template-columns:.7fr 1.3fr;align-items:center;gap:50px;padding:30px 15px}.cg-welcome p{line-height:1.75}.cg-cave-frame{padding:27px 20px 20px;background:#7d8583;border-radius:48% 48% 15px 15px;border:8px solid #626d68;box-shadow:inset 0 9px 0 #6d7772}.cg-packing-grid{display:grid;grid-template-columns:repeat(var(--cg-cols),minmax(0,1fr));gap:4px}.cg-cave-cell{aspect-ratio:1;min-width:0;min-height:0;border:1px solid #cad3cf;background:#edf0eb;color:#173f3b;border-radius:5px;padding:5px;display:grid;place-items:center;cursor:pointer;position:relative}.cg-cave-cell>span{font-size:30px;line-height:1}.cg-cave-cell.rock:disabled{background:#515b57;color:#b6c3bc;opacity:1;border-color:#515b57}.cg-color-pine{background:#37675c!important;color:white!important}.cg-color-red{background:#ae454e!important;color:white!important}.cg-color-gold{background:#eac775!important;color:#4f3919!important}.cg-color-blue{background:#45758d!important;color:white!important}.cg-color-purple{background:#826283!important;color:white!important}.cg-color-orange{background:#c47d48!important;color:#fff!important}.cg-piece-bank{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cg-piece{display:flex;flex-direction:column;align-items:start;justify-content:space-between;gap:14px;padding:12px;min-height:130px;background:#f8fbfa;color:#173f3b;border:2px solid #d2e0dc;border-radius:12px;cursor:grab;text-align:left}.cg-piece[aria-pressed=true]{border-color:#173f3b;background:#eaf2f1;box-shadow:0 0 0 2px #173f3b}.cg-piece.placed{border-style:dashed}.cg-piece-name{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px}.cg-piece-name small{display:block;font-size:11px;font-weight:500;margin-top:4px}.cg-mini{display:grid;grid-template-columns:repeat(var(--mini-cols),16px);gap:2px;align-self:center;min-height:34px;align-content:center}.cg-mini i{width:16px;height:16px;border-radius:2px}.cg-selected{min-height:47px;padding:15px 0 5px;font-size:15px}.cg-cave-cell.preview-good{box-shadow:inset 0 0 0 4px #173f3b;background:#cee2d4}.cg-cave-cell.preview-bad{box-shadow:inset 0 0 0 4px #ae343e;background:#f7dfe0}.cg-cave-cell.cg-hint-cell:after{content:'✦';position:absolute;inset:0;display:grid;place-items:center;font-size:30px;color:#173f3b;background:#f3d296c9;border:3px solid #94611a;border-radius:5px}.cg-cave-cell:focus-visible{z-index:3}.cg-game-cards+h2{margin-top:50px}
@media(max-width:850px){.cg-game-cards{grid-template-columns:1fr;gap:20px}.cg-game-card{display:grid;grid-template-columns:.7fr 1fr}.cg-game-card>a{height:100%}.cg-game-card img{height:100%;object-fit:cover}.cg-game-layout{gap:25px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cg-workshop{padding:23px}.cg-rhyme-layout{gap:28px;padding:10px 0 25px}.cg-poem{font-size:23px}.cg-command-buttons button{gap:7px;font-size:14px;padding:10px}.cg-cave-frame{padding:20px 12px 12px;border-width:6px}.cg-piece-bank{gap:8px}.cg-piece{padding:10px}}
@media(max-width:650px){.cg-game-layout{grid-template-columns:1fr;gap:26px}.cg-game-card{display:block}.cg-game-card img{height:auto}.cg-game-card>div{padding:22px}.cg-workshop{padding:16px;border-radius:15px}.cg-intro{gap:16px;align-items:start}.cg-intro>img{width:100px;height:100px}.cg-intro p{font-size:14px}.cg-links{gap:12px;font-size:14px}.cg-levels{gap:6px;margin-bottom:23px}.cg-levels button{padding:9px 14px}.cg-flight-grid{gap:4px;padding:8px}.cg-broom{font-size:32px}.cg-broom b{font-size:22px}.cg-flight-cell small{font-size:10px}.cg-rhyme-layout,.cg-welcome{grid-template-columns:1fr;gap:28px;padding:5px 0 20px}.cg-poem{font-size:22px;line-height:1.8}.cg-door-lights{font-size:21px;gap:5px}.cg-rhyme-progress{font-size:14px}.cg-rhyme-choices{gap:8px}.cg-rhyme-choices button{min-width:69px;padding:8px 15px}.cg-piece-bank{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-cave-frame{padding:25px 16px 16px}.cg-controls h2{font-size:26px}.cg-feedback{padding:12px;margin-top:18px;font-size:15px}.cg-page .btn{white-space:normal;text-align:center}.cg-story-note{font-size:13px}}
.cg-piece,.cg-cave-cell[data-cg-drag-piece]{touch-action:none;user-select:none}
@media(max-width:400px){.cg-cave-frame{padding:22px 4px 8px;border-width:4px}.cg-packing-grid{gap:3px}}
