.potion-shell{background:linear-gradient(#17132635,#17132620),url('assets/potions/classroom.webp') center/cover}.potion-shell .setup-panel{background:#1c192bef}.potion-field{position:relative;height:570px;overflow:hidden;touch-action:none;outline-offset:-4px}.recipe{position:absolute;top:12px;left:50%;transform:translateX(-50%);display:grid;gap:4px;min-width:200px;text-align:center;background:#171627e8;border:1px solid #b08f61;border-radius:16px;padding:10px 24px;pointer-events:none}.recipe span{font-size:12px;color:#dacaad}.recipe strong{font-size:clamp(23px,4vw,32px);white-space:nowrap}.falling{position:absolute;left:37.5%;top:110px;transform:translateX(-50%);width:128px;display:grid;justify-items:center;z-index:3;pointer-events:none;filter:drop-shadow(0 4px 7px #0009)}.falling svg{width:68px;height:68px;display:block}.falling b{border:2px solid #d8b675;border-radius:12px;padding:7px 12px;background:#fff5dc;color:#32243b;font-size:23px;white-space:nowrap}.cauldrons{position:absolute;bottom:0;left:1%;width:98%;display:grid;grid-template-columns:repeat(4,1fr);align-items:end}.potion-shell .cauldron{position:relative;width:100%;padding:0;background:transparent;border:0;border-radius:20px;min-height:0;aspect-ratio:543/724;max-height:250px;display:flex;align-items:end;justify-content:center;outline-offset:-5px}.cauldron img{height:100%;width:100%;object-fit:contain;pointer-events:none}.cauldron .answer{position:absolute;top:61%;left:19%;width:62%;color:#34223c;font-weight:850;font-size:clamp(18px,3.5vw,36px);line-height:1;text-shadow:0 1px #fff}.cauldron.selected{filter:drop-shadow(0 0 10px #ffe4a8)}.cauldron.selected:after{content:'▼';position:absolute;top:2%;left:42%;color:#fff0ba;font-size:24px;text-shadow:0 2px 5px #000}.cauldron.correct{filter:drop-shadow(0 0 14px #8affbd)}.cauldron.wrong{filter:drop-shadow(0 0 14px #ff8f9e)}.potion-feedback{position:absolute;z-index:5;top:34%;left:50%;transform:translateX(-50%);background:#201a2ef5;border:1px solid #d4b37c;border-radius:18px;padding:18px 26px;text-align:center;font-size:22px;max-width:90%;width:max-content;pointer-events:none}.potion-feedback:empty{display:none}.potion-controls{display:flex;justify-content:center;gap:12px;padding:12px;background:#171627e8}.potion-controls button{min-width:60px;font-size:21px}.potion-tip{margin:0;background:#171627e8;text-align:center;color:#decfe2;font-size:12px;padding:0 12px 15px}.potion-shell .result-panel{background:#201a2ef2;max-width:680px;margin:45px auto;border-radius:24px}.potion-shell #review{max-height:240px;overflow:auto;font-size:16px;text-align:left}.potion-shell #review p{padding:8px 12px;background:#ffffff0c;border-radius:8px}.potion-shell .game-toolbar{flex-wrap:wrap}.potion-shell #summary{font-size:23px;color:#f6d596}.potion-shell .pause-panel{z-index:8}.potion-shell button:focus-visible,.potion-field:focus-visible{outline:3px solid #fff0a6}.potion-shell .game-toolbar strong{font-size:19px}@media(max-width:600px){.ghost-main{padding:16px 10px 30px}.potion-field{height:490px}.potion-shell .cauldron{max-height:190px}.falling{width:102px}.falling svg{width:56px;height:56px}.falling b{font-size:19px;padding:6px 8px}.recipe{min-width:170px}.potion-shell .setup-panel{margin:16px 10px;padding:24px 18px}.potion-shell .settings-grid{gap:14px}.potion-controls{gap:8px}.potion-controls #drop{font-size:16px;padding:10px}.potion-feedback{font-size:18px}.potion-shell .game-toolbar{padding:12px;gap:8px}.potion-shell .game-toolbar button{font-size:13px;padding:8px 10px}.potion-shell .result-panel{margin:20px 10px;padding:25px 18px}}

@media(max-width:600px){.cauldron .answer.four{font-size:14px}}

body[data-game="spelling"] .recipe{width:min(80%,670px);min-width:0;padding:12px 18px}body[data-game="spelling"] .recipe strong{font-size:clamp(19px,3vw,27px);white-space:normal;line-height:1.4}body[data-game="spelling"] .falling{width:176px}body[data-game="spelling"] .falling b{font-size:21px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}body[data-game="spelling"] .cauldron{max-width:260px;justify-self:center}body[data-game="spelling"] .potion-feedback{font-size:20px;width:min(80%,640px);max-height:70%;overflow:auto}body[data-game="spelling"] .potion-feedback strong{display:block}body[data-game="spelling"] .potion-feedback small{display:block;font-size:15px;line-height:1.55;margin-top:10px;color:#e8d7e9}@media(max-width:600px){body[data-game="spelling"] .falling{width:120px}body[data-game="spelling"] .falling b{font-size:17px}body[data-game="spelling"] .potion-feedback{font-size:18px;padding:16px}body[data-game="spelling"] .cauldron{max-height:170px}body[data-game="spelling"] .cauldrons:has(>:nth-child(3)) .cauldron{max-height:none}body[data-game="spelling"] .potion-feedback small{font-size:13px}}

.potion-field.curriculum .recipe{max-width:80%;width:max-content;min-width:0}.potion-field.curriculum .recipe strong{white-space:normal;font-size:clamp(17px,2.2vw,26px);line-height:1.35}.potion-field.curriculum .falling{width:clamp(130px,22vw,260px)}.potion-field.curriculum .falling b{white-space:normal;font-size:clamp(14px,1.8vw,21px);overflow-wrap:anywhere}.potion-field.curriculum .potion-feedback{max-width:85%;font-size:clamp(15px,1.7vw,21px)}
