.spell-game{isolation:isolate;min-height:100svh;padding:24px 28px 80px;position:relative}.spell-scenery{object-fit:cover;z-index:-1;width:100%;height:100%;position:fixed;inset:0}.spell-heading{justify-content:center;align-items:center;gap:12px;max-width:1300px;margin:auto;display:flex}.spell-heading h1{font:900 48px/1.1 var(--font-display);text-align:center;color:var(--sun);text-shadow:0 3px 0 var(--ink),0 6px 0 var(--correction-edge);flex:1}.spell-game button,.spell-editor button{border:2px solid var(--correction-edge);color:var(--correction-ink);background:linear-gradient(var(--correction-paper),var(--correction-soft));box-shadow:0 4px 0 var(--correction-edge);white-space:normal;border-radius:8px;height:auto;min-height:42px}.spell-game button:active{transform:translateY(2px)}.spell-hearts{justify-content:center;gap:8px;margin:18px 0;display:flex}.spell-hearts svg{width:32px;height:32px;stroke:var(--correction-red)}.spell-hearts .is-full{fill:var(--correction-red);filter:drop-shadow(0 3px 0 var(--correction-ink))}.spell-hearts .is-empty{fill:var(--correction-soft);opacity:.45}.spell-layout{grid-template-columns:170px minmax(0,700px) 180px;align-items:start;gap:22px;max-width:1120px;margin:auto;display:grid}.spell-panel{background:linear-gradient(var(--correction-paper),var(--correction-soft));border:6px solid var(--sun-deep);outline:3px solid var(--correction-edge);box-shadow:var(--correction-shadow);text-align:center;border-radius:8px;min-width:0;padding:22px}.spell-panel progress{width:100%;accent-color:var(--correction-button);height:10px}.spell-ribbon{font:800 15px/1.3 var(--font-display);margin:10px 0;display:block}.spell-picture{object-fit:contain;border:3px solid var(--correction-edge);background:var(--correction-paper);border-radius:8px;width:100%;height:180px;padding:8px}.spell-clue{margin:16px 0;font-size:20px;font-weight:700;line-height:1.3}.spell-slots{flex-wrap:wrap;justify-content:center;gap:6px;margin:15px 0 5px;display:flex}.spell-slot{width:43px;font-size:25px;font-weight:900;min-height:48px!important}.spell-reorder{justify-content:center;gap:6px;margin-bottom:14px;display:flex}.spell-reorder>*{width:43px;height:24px!important;min-height:24px!important}.spell-reorder svg{width:14px}.spell-bank{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;display:grid}.spell-bank button{min-height:49px;font:900 25px/1 var(--font-display)}.spell-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin-top:18px;display:flex}.spell-actions button{font-weight:900}.spell-feedback{min-height:26px;color:var(--correction-success);margin:16px 0;font-weight:900}.spell-navigation{justify-content:space-between;gap:12px;display:flex}.spell-stats{gap:16px;margin-top:110px;display:grid}.spell-stats>div,.spell-word-list{border:4px solid var(--correction-edge);background:linear-gradient(var(--correction-paper),var(--correction-soft));box-shadow:0 5px 0 var(--correction-edge);text-align:center;border-radius:8px;padding:16px}.spell-stats span{font-size:12px;font-weight:900;display:block}.spell-stats strong{font:900 30px/1.2 var(--font-display)}.spell-word-list{margin-top:40px}.spell-word-list h2{font:900 16px/1.3 var(--font-display)}.spell-word-list li{text-align:left;border-bottom:1px solid var(--correction-edge);padding:12px 0;font-size:16px;font-weight:800}.spell-footer{background:var(--correction-soft);border-radius:8px;flex-wrap:wrap;justify-content:center;align-items:center;gap:22px;max-width:1120px;margin:28px auto;padding:18px;display:flex}.spell-footer label{gap:8px;font-size:13px;display:flex}.spell-result h2{font:900 28px/1.2 var(--font-display);margin:30px 0}.spell-result p{margin:20px 0}.spell-game[data-celebrating=true] .spell-panel{animation:.8s ease-in-out spell-cheer}.spell-editor .saved-card{background:var(--correction-soft);border-color:var(--correction-edge)}@keyframes spell-cheer{0%,to{transform:translateY(0)}30%,65%{transform:translateY(-5px)}}@media (width<=900px){.spell-layout{grid-template-columns:minmax(0,1fr)}.spell-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.spell-stats>div{padding:10px 3px}.spell-stats strong{font-size:22px}.spell-stats span{font-size:9px}.spell-word-list{margin:0}.spell-word-list ol{flex-wrap:wrap;justify-content:center;gap:14px;display:flex}.spell-word-list li{font-size:13px}.spell-game{padding:16px 12px 80px}.spell-heading{gap:6px}.spell-heading h1{font-size:27px}.spell-heading button{min-width:32px;padding:6px}.spell-panel{padding:16px 12px}.spell-clue{font-size:18px}.spell-picture{height:150px}.spell-bank{gap:7px}.spell-slot,.spell-reorder>*{width:35px}.spell-bank button{font-size:23px}.spell-footer{padding:12px}}@media (prefers-reduced-motion:reduce){.spell-game *{animation:none!important}}.spell-panel{position:relative}.spell-clue,.spell-ribbon,.spell-letters,.spell-feedback,.spell-word-list{zoom:var(--game-text-scale,1)}.spell-hint-select{background:var(--correction-paper);border:2px solid var(--correction-edge);border-radius:8px;max-width:100%;padding:5px 10px;font-weight:700}.spell-hearts>span{position:relative}.spell-heart-loss .is-empty{animation:.65s both spell-shatter}.spell-heart-loss b{white-space:nowrap;color:var(--correction-glow);animation:.65s both spell-spark;position:absolute;inset:0}.spell-stars{color:var(--sun-deep);font-size:36px;animation:.8s ease-in-out spell-cheer}.spell-confetti{pointer-events:none;justify-content:space-around;display:flex;position:absolute;inset:0;overflow:hidden}.spell-confetti span{color:var(--correction-success);font-size:28px;animation:.9s both spell-fall}.spell-confetti span:nth-child(2n){color:var(--sun-deep);animation-delay:.1s}.spell-confetti span:nth-child(3n){color:var(--correction-red);animation-delay:.2s}.spell-panel:has(.spell-confetti){border-color:var(--correction-success)}.spell-game .correction-theme-preview[aria-pressed=true]{outline:3px solid var(--correction-ink);outline-offset:3px}@keyframes spell-shatter{0%{opacity:1;transform:scale(1.2)}to{opacity:.3;transform:scale(.3)}}@keyframes spell-spark{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes spell-fall{0%{opacity:1;transform:translateY(-30px)rotate(0)}to{opacity:0;transform:translateY(600px)rotate(180deg)}}.spell-mascot{object-fit:contain;width:150px;height:155px;filter:drop-shadow(0 6px 0 var(--correction-glow));margin:auto}.spell-game[data-celebrating=true] .spell-mascot{animation:spell-cheer .4s twice}@media (width<=900px){.spell-mascot{display:none}.spell-stats:before{content:"";grid-column:1/-1;height:0;display:block}}.spell-ref .spell-top{justify-content:space-between;align-items:center;gap:12px;max-width:1240px;margin:auto;display:flex}.spell-title{text-align:center;flex:1}.spell-title h1{font:900 56px/1 var(--font-display);color:var(--sun);-webkit-text-stroke:2px var(--correction-ink);text-shadow:0 4px 0 var(--correction-edge),0 8px 12px oklch(20% .05 60/.35);margin:0}.spell-title p{color:oklch(98% .02 90);font:800 15px/1.3 var(--font-display);background:linear-gradient(oklch(55% .11 60),oklch(42% .09 55));border-radius:10px;margin-top:6px;padding:8px 22px;display:inline-block;box-shadow:0 4px oklch(30% .06 50)}.spell-title em{color:var(--sun);font-style:normal}.spell-game .spell-pill{font:900 15px/1.1 var(--font-display);color:oklch(99% 0 0);border:3px solid oklch(99% 0 0/.7);border-radius:16px;align-items:center;gap:8px;padding:8px 16px;display:flex}.spell-pill span{flex-direction:column;display:flex}.spell-pill b{color:var(--sun)}.spell-pill svg{width:28px;height:28px}.spell-game .spell-pill-blue{background:linear-gradient(oklch(60% .17 250),oklch(45% .17 260));box-shadow:0 5px oklch(32% .12 260)}.spell-game .spell-pill-purple{background:linear-gradient(oklch(60% .2 300),oklch(45% .2 295));box-shadow:0 5px oklch(32% .14 295)}.spell-game .spell-gear{color:oklch(99% 0 0);background:linear-gradient(oklch(85% .17 80),oklch(72% .17 65));box-shadow:0 5px oklch(50% .13 55)}.spell-ref .spell-layout{grid-template-columns:230px minmax(0,760px);justify-content:center}.spell-ref .spell-panel{background:linear-gradient(oklch(97% .04 90),oklch(92% .06 85));border:10px solid oklch(62% .12 65);border-radius:28px;outline:4px solid oklch(42% .09 55);box-shadow:inset 0 0 0 4px oklch(85% .1 80),0 14px oklch(35% .07 50)}.spell-ref .spell-ribbon{color:oklch(99% 0 0);font:900 16px/1.2 var(--font-display);border-radius:12px;padding:6px 26px;display:inline-block;box-shadow:0 3px oklch(25% .08 270)}.spell-ribbon-blue{background:linear-gradient(oklch(55% .17 255),oklch(42% .16 260))}.spell-ribbon-purple{background:linear-gradient(oklch(55% .2 300),oklch(42% .18 295))}.spell-ref .spell-picture{object-fit:cover;background:var(--correction-paper);border:5px solid oklch(85% .1 80);border-radius:18px;height:210px;padding:0}.spell-ref .spell-slot{width:58px;height:62px;font:900 32px/1 var(--font-display);color:oklch(35% .03 60);background:oklch(99% .02 90);border:3px solid oklch(80% .1 75);border-radius:12px;place-items:center;display:grid;box-shadow:0 4px oklch(65% .1 70)}.spell-slot[data-filled=true]{color:oklch(55% .17 145)}.spell-ref .spell-bank{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin-top:8px}.spell-ref .spell-bank button{min-height:58px;font:900 28px/1 var(--font-display);color:oklch(30% .03 60);background:linear-gradient(oklch(99% .02 90),oklch(92% .05 85));border:3px solid oklch(80% .1 75);border-radius:10px;box-shadow:0 4px oklch(62% .1 70)}.spell-ref .spell-bank button[data-state=right]{color:oklch(99% 0 0);opacity:1;background:linear-gradient(oklch(68% .18 145),oklch(55% .17 145));border-color:oklch(45% .14 145)}.spell-ref .spell-bank button[data-state=wrong]{color:oklch(99% 0 0);opacity:1;background:linear-gradient(oklch(65% .22 27),oklch(55% .22 27));border-color:oklch(42% .17 27);animation:.35s spell-shake}.spell-game .spell-hint-btn,.spell-game .spell-check-btn{color:oklch(99% 0 0);min-height:58px;font:900 20px/1 var(--font-display);border:3px solid oklch(99% 0 0/.5);border-radius:16px;padding:0 28px}.spell-game .spell-hint-btn{background:linear-gradient(oklch(60% .2 300),oklch(45% .2 295));box-shadow:0 5px oklch(32% .14 295)}.spell-hint-btn i{background:var(--sun);color:oklch(30% .05 60);border-radius:999px;padding:3px 9px;font-size:15px;font-style:normal}.spell-game .spell-check-btn{background:linear-gradient(oklch(70% .19 145),oklch(55% .17 145));box-shadow:0 5px oklch(38% .12 145)}.spell-ref .spell-stats{margin-top:0}.spell-ref .spell-mascot{width:210px;height:220px}.spell-ref .spell-stats>div{color:oklch(99% 0 0);border:5px solid oklch(62% .12 65);border-radius:16px}.spell-ref .spell-stats span{font-size:16px}.spell-ref .spell-stats strong{color:var(--sun);font-size:38px}.spell-ref .spell-card-blue{background:linear-gradient(oklch(50% .15 255),oklch(38% .14 260))!important}.spell-ref .spell-card-purple{background:linear-gradient(oklch(50% .18 300),oklch(38% .16 295))!important}.spell-game .spell-restart{color:oklch(99% 0 0);font:900 20px/1 var(--font-display);background:linear-gradient(oklch(62% .13 60),oklch(48% .11 55));border-radius:14px;min-height:56px;box-shadow:0 5px oklch(32% .07 50)}.spell-ref .spell-footer{background:0 0;flex-direction:column;gap:12px}.spell-banner{color:oklch(99% 0 0);font:900 22px/1.2 var(--font-display);background:linear-gradient(oklch(55% .17 255),oklch(42% .16 260));border:3px dashed oklch(99% 0 0/.6);border-radius:16px;padding:12px 34px;box-shadow:0 5px oklch(30% .12 260)}.spell-ref .spell-footer label,.spell-ref .correction-theme-picker{background:oklch(97% .03 90/.9);border-radius:12px;padding:6px 10px}.spell-broken{font-size:64px;animation:.8s spell-cheer}.spell-game .spell-try{min-height:60px;font:900 24px/1 var(--font-display);color:oklch(99% 0 0);background:linear-gradient(oklch(70% .19 145),oklch(55% .17 145));border-radius:16px;padding:0 34px;box-shadow:0 5px oklch(38% .12 145)}.spell-ref .spell-feedback:not(:empty){color:var(--correction-red)}.spell-game[data-celebrating=true] .spell-feedback{color:var(--correction-success)}@keyframes spell-shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}@media (width<=900px){.spell-ref .spell-layout{grid-template-columns:minmax(0,1fr)}.spell-ref .spell-stats{grid-template-columns:1fr 1fr 1fr;align-items:stretch}.spell-ref .spell-stats strong{font-size:22px}.spell-ref .spell-stats span{font-size:11px}.spell-ref .spell-stats>div{border-width:3px;padding:8px 4px}.spell-game .spell-restart{min-height:0;font-size:14px}.spell-title h1{-webkit-text-stroke:1px var(--correction-ink);font-size:28px}.spell-title p{padding:5px 8px;font-size:10px}.spell-game .spell-pill{padding:6px}.spell-pill span{display:none}.spell-ref .spell-bank{grid-template-columns:repeat(5,minmax(0,1fr))}.spell-ref .spell-slot{width:40px;height:46px;font-size:24px}.spell-ref .spell-picture{height:150px}.spell-game .spell-hint-btn,.spell-game .spell-check-btn{min-height:48px;padding:0 14px;font-size:16px}.spell-banner{font-size:15px}}.spell-ref .spell-mascot{visibility:hidden}.spell-ref .spell-picture{object-fit:contain;height:170px}.spell-ref .spell-hearts{z-index:30;background:oklch(99% .02 90/.92);border:3px solid oklch(62% .12 65);border-radius:999px;width:max-content;margin:12px auto;padding:6px 14px;position:sticky;top:34px;box-shadow:0 4px oklch(42% .09 55)}.spell-ref .spell-hearts .is-empty{opacity:.35;fill:none}.spell-ref .spell-bank button{z-index:1;-webkit-user-select:none;user-select:none;position:relative}.spell-ref .spell-bank button:active{z-index:20}.spell-ref .spell-heart-loss svg{animation:.7s forwards spell-vanish}.spell-ref .spell-hearts{min-width:60px;min-height:52px}@keyframes spell-vanish{0%{opacity:1;transform:scale(1)}35%{opacity:1;transform:scale(1.5)rotate(-12deg)}to{opacity:0;transform:scale(0)rotate(25deg)}}.spell-ref .spell-title h1{color:#0000;-webkit-text-stroke:3px oklch(35% .1 50);filter:drop-shadow(0 5px oklch(35% .1 50))drop-shadow(0 10px 8px oklch(20% .05 50/.4));letter-spacing:.02em;background:linear-gradient(oklch(95% .17 100),oklch(82% .19 75));-webkit-background-clip:text;background-clip:text;font-size:64px}.spell-ref .spell-bank button,.spell-ref .spell-slot{text-shadow:0 2px oklch(100% 0 0/.8);background:linear-gradient(oklch(100% .01 95) 0%,oklch(96% .05 90) 55%,oklch(90% .08 82) 100%);border:3px solid oklch(78% .12 72);transition:transform .12s;box-shadow:inset 0 3px oklch(100% 0 0/.9),inset 0 -4px oklch(84% .09 78),0 6px oklch(60% .12 65),0 9px 10px oklch(30% .06 60/.3)}.spell-ref .spell-bank button:not(:disabled):hover{transform:translateY(-3px)}.spell-ref .spell-bank button:not(:disabled):active{transform:translateY(4px);box-shadow:inset 0 3px oklch(100% 0 0/.9),0 2px oklch(60% .12 65)}.spell-ref .spell-bank button[data-state=right],.spell-ref .spell-slot[data-filled=true]{color:oklch(100% 0 0);text-shadow:0 2px oklch(35% .12 145);background:linear-gradient(oklch(82% .2 145),oklch(62% .2 145));border-color:oklch(48% .16 145);animation:.3s spell-pop;box-shadow:inset 0 3px oklch(100% 0 0/.5),0 6px oklch(40% .14 145),0 9px 10px oklch(30% .1 145/.35)}.spell-ref .spell-bank button[data-state=wrong]{color:oklch(100% 0 0);text-shadow:0 2px oklch(30% .12 27);background:linear-gradient(oklch(72% .23 27),oklch(56% .23 27));border-color:oklch(42% .18 27);box-shadow:inset 0 3px oklch(100% 0 0/.45),0 6px oklch(38% .16 27),0 9px 10px oklch(30% .1 27/.35)}.spell-ref .spell-bank button[data-state=wrong]:after{content:"✕";color:oklch(35% .15 27/.55);place-items:center;font-size:44px;display:grid;position:absolute;inset:0}.spell-ref .spell-panel{background:radial-gradient(circle at 50% 20%,oklch(99% .03 95),oklch(93% .07 85));border-color:oklch(66% .14 62);box-shadow:inset 0 0 0 5px oklch(88% .11 80),inset 0 8px 18px oklch(100% 0 0/.7),0 14px oklch(38% .09 50),0 24px 30px oklch(20% .05 50/.35)}.spell-ref .spell-ribbon{text-shadow:0 2px oklch(25% .1 270/.6);border:2px solid oklch(100% 0 0/.55);box-shadow:inset 0 2px oklch(100% 0 0/.35),0 4px oklch(25% .1 270)}.spell-ref .spell-stats>div{box-shadow:inset 0 3px oklch(100% 0 0/.3),0 7px oklch(38% .09 50),0 12px 14px oklch(20% .05 50/.35)}.spell-ref .spell-hearts svg{filter:drop-shadow(0 3px oklch(40% .18 25));width:36px;height:36px}.spell-ref .spell-hearts .is-full{fill:oklch(63% .25 25);stroke:oklch(45% .2 25)}@keyframes spell-pop{0%{transform:scale(.7)}60%{transform:scale(1.15)}to{transform:scale(1)}}@media (width<=900px){.spell-ref .spell-title h1{-webkit-text-stroke:1.5px oklch(35% .1 50);font-size:32px}.spell-ref .spell-bank button[data-state=wrong]:after{font-size:34px}}.spell-ref .spell-title h1{color:oklch(88% .19 90);text-shadow:none;-webkit-text-stroke:0;paint-order:stroke fill;filter:drop-shadow(0 4px oklch(38% .1 50))drop-shadow(2px 0 oklch(38% .1 50))drop-shadow(-2px 0 oklch(38% .1 50))drop-shadow(0 -2px oklch(38% .1 50))drop-shadow(0 10px 8px oklch(20% .05 50/.4));background:0 0}.spell-ref .spell-bank button[data-state=wrong]:after{color:oklch(100% 0 0/.35);z-index:-1;font-size:52px}.spell-ref .spell-bank button[data-state=wrong]{isolation:isolate}
