.ghost-main{max-width:1120px;margin:auto;padding:24px 24px 45px}.back-link{color:#654364}.ghost-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 24px;gap:16px}.ghost-heading h1{font:500 clamp(32px,5vw,48px)/1.1 Georgia,serif;color:#39203f;margin:7px 0 12px}.ghost-heading p{margin:0;color:#77647b}.ghost-eyebrow{font-size:12px;letter-spacing:2px}.heading-moon{font-size:55px;color:#98739e}.ghost-shell{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;background:radial-gradient(ellipse at 75% 0,#70495888,transparent 45%),linear-gradient(#201e3a,#34283f 60%,#1a2735);color:#fff8e7;border:1px solid #6d566c;min-height:600px;box-shadow:0 20px 55px #30213324}.ghost-shell [hidden]{display:none!important}.night-decoration{position:absolute;z-index:-1;inset:0;overflow:hidden;pointer-events:none}.moon{position:absolute;right:7%;top:40px;width:110px;height:110px;border-radius:50%;background:#ecd9ac;box-shadow:0 0 75px #e9d7ad2b}.moon:after{content:'';position:absolute;inset:13px 18px 62px 55px;background:#d0b58d3d;border-radius:50%}.spark{position:absolute;color:#f7dca0;opacity:.55}.s1{left:7%;top:7%;font-size:21px}.s2{left:49%;top:4%;font-size:32px}.s3{right:9%;top:41%;font-size:17px}.hill{position:absolute;border-radius:50% 50% 0 0;width:110%;height:40%;bottom:-20%;background:#152b33;transform:rotate(-10deg)}.h1{left:-40%}.h2{right:-40%;background:#111f2b;transform:rotate(12deg);height:45%}.pine{position:absolute;bottom:-25px;width:115px;height:320px;background:#101e2a;clip-path:polygon(48% 0,65% 25%,57% 25%,80% 50%,65% 50%,100% 83%,55% 83%,55% 100%,44% 100%,44% 83%,0 83%,32% 50%,16% 50%,41% 25%,32% 25%)}.p1{left:-15px}.p2{right:-28px;height:260px}.p3{right:60px;height:170px;width:75px}.setup-panel{position:relative;max-width:650px;margin:34px auto;padding:34px 42px;background:#201a2deb;border:1px solid #af8c7959;border-radius:24px;box-shadow:0 20px 60px #0003}.gold-label{color:#e1bd7e;letter-spacing:1.8px;font-size:11px;font-weight:700;margin:0 0 12px}.setup-panel h2,.result-panel h2{font:500 clamp(27px,4vw,36px)/1.2 Georgia,serif;margin:0 0 14px}.setup-intro{color:#d2c3d5;margin:0 0 24px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid label{display:grid;gap:7px;font-size:14px;color:#e4d8e6}.settings-grid .wide{grid-column:1/-1}.settings-grid select{font:inherit;color:#fff8e7;background:#342a42;border:1px solid #796280;border-radius:11px;padding:12px;min-width:0;min-height:49px;width:100%;color-scheme:dark}.setting-note{font-size:12px;line-height:1.6;color:#c7b5cd;margin:18px 0}.ghost-shell button{font:inherit;border-radius:12px;border:1px solid #8f7697;color:#fff8e7;background:#392c47;min-height:46px;padding:10px 18px;touch-action:manipulation}.ghost-shell .gold-button{background:#e5be7a;color:#302335;font-weight:750;border-color:#f5dba6;box-shadow:0 4px 0 #8e6944;min-height:54px}.gold-button:hover{background:#f3d49f}.start{width:100%;font-size:18px!important;display:flex;justify-content:space-between;align-items:center}.controls-note{font-size:12px;color:#bdaec4;text-align:center;margin:18px 0 0}.game-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:20px 24px;background:#201b2eb8;border-bottom:1px solid #b39ab533}.game-toolbar>div:first-child{display:flex;gap:15px;align-items:center}.game-toolbar span{font-size:13px;color:#cfbfd4}.game-toolbar strong{font-variant-numeric:tabular-nums;font-size:22px}.toolbar-actions{display:flex;gap:8px}.toolbar-actions button{font-size:12px;padding:8px 13px}.boards{display:grid;grid-template-columns:1fr}.boards.two{grid-template-columns:1fr 1fr}.board{min-width:0;position:relative;padding:20px 24px 12px}.board+.board{border-left:1px solid #ac8dac55}.board-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:8px}.board-top h2{font:500 21px Georgia,serif;margin:0;color:#e5c89a}.board-score{color:#d3c7db;font-variant-numeric:tabular-nums}.equation{background:#1c192cbf;border:1px solid #ad899b63;border-radius:16px;text-align:center;font-size:clamp(30px,5vw,48px);font-weight:750;letter-spacing:1px;padding:12px;margin:16px auto 0;max-width:500px;box-shadow:0 5px 30px #1112}.equation span{color:#e5be7a}.ghost-field{position:relative;height:390px;max-width:660px;margin:auto}.ghost-shell .ghost{--dx:0px;--dy:0px;position:absolute;width:100px;height:122px;padding:0;background:none;border:0;border-radius:40px 40px 22px 22px;filter:drop-shadow(0 8px 14px #06071055);transform:translate(var(--dx),var(--dy));transition:filter .15s;animation:ghost-float var(--drift,7s) ease-in-out infinite;animation-delay:var(--delay,0s)}.ghost:nth-child(1){left:calc(20% - 50px);top:6px}.ghost:nth-child(2){left:calc(80% - 50px);top:6px}.ghost:nth-child(3){left:calc(50% - 50px);top:132px}.ghost:nth-child(4){left:calc(20% - 50px);top:258px}.ghost:nth-child(5){left:calc(80% - 50px);top:258px}.ghost svg{display:block;width:100%;height:100%;overflow:visible}.ghost text{font-family:system-ui,sans-serif;font-size:27px;font-weight:850;fill:#352b49}.ghost:hover{filter:drop-shadow(0 0 12px #e9d2a39c)}.ghost:focus-visible{outline:3px solid #f3d293;outline-offset:5px}.ghost.correct{filter:drop-shadow(0 0 18px #a5e2b9)}.ghost.correct .ghost-body{fill:#c4ecd1}.ghost.wrong{filter:drop-shadow(0 0 14px #f3acb5)}.ghost.wrong .ghost-body{fill:#eac2d5}.ghost:disabled{opacity:1}.ghost-field.still .ghost{animation:none}.ghost-field.paused .ghost{animation-play-state:paused}.feedback{min-height:54px;text-align:center;font-size:15px;margin:10px auto 0;max-width:510px;color:#e5d8e7}.feedback.ok{color:#c4ecd1}.feedback.no{color:#f3c3c8}.game-instruction{text-align:center;font-size:12px;margin:5px 0 12px;color:#b7a9c3}.board.finished .ghost-field{opacity:.25}.pause-panel{position:absolute;inset:0;background:#1b1729f5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;z-index:5;text-align:center;padding:28px}.pause-panel>span{font-size:70px;color:#e4c790}.pause-panel h2{font:36px Georgia,serif;margin:0}.pause-panel p{color:#d0c0d7}.result-panel{position:relative;max-width:680px;margin:80px auto;padding:40px;background:#211b2fee;border:1px solid #ac869c66;border-radius:22px;text-align:center}.result-note{color:#ccbad3;font-size:14px}.score-card{margin:20px 0;padding:20px;border:1px solid #a483a25c;background:#3a2d444f;border-radius:15px}.score-card h3{margin:0;color:#dfc08c}.score-card strong{display:block;font-size:42px;color:#f3debb}.score-card p{margin:5px 0;color:#d3c3db}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px}.below-game{font-size:13px;line-height:1.6;color:#78657e;margin-top:20px;max-width:800px}.ghost-main footer{text-align:center;color:#89758d;font:15px Georgia,serif;margin:35px 0 0}.ghost-shell :focus-visible{outline:3px solid #f0d29b;outline-offset:4px}@keyframes ghost-float{0%,100%{transform:translate(-8px,3px) rotate(-3deg)}50%{transform:translate(8px,-5px) rotate(3deg)}}@media(prefers-reduced-motion:reduce){.ghost-shell .ghost{animation:none!important}}@media(max-width:720px){.ghost-main{padding:18px 12px 30px}.ghost-heading{margin:24px 0 20px}.heading-moon{font-size:34px}.ghost-heading p:not(.ghost-eyebrow){font-size:14px}.ghost-shell{border-radius:22px}.setup-panel{padding:25px 20px;margin:18px 14px}.settings-grid{gap:15px 12px}.settings-grid label{font-size:12px}.settings-grid select{padding:10px 6px;font-size:14px}.game-toolbar{flex-wrap:wrap;padding:14px}.toolbar-actions{margin-left:auto}.boards.two{grid-template-columns:1fr}.board{padding:18px 16px 10px}.board+.board{border-left:0;border-top:1px solid #ac8dac55}.ghost-field{height:365px}.ghost-shell .ghost{width:88px;height:108px}.ghost:nth-child(1){left:calc(20% - 44px)}.ghost:nth-child(2){left:calc(80% - 44px)}.ghost:nth-child(3){left:calc(50% - 44px);top:125px}.ghost:nth-child(4){left:calc(20% - 44px);top:246px}.ghost:nth-child(5){left:calc(80% - 44px);top:246px}.result-panel{margin:30px 14px;padding:30px 20px}.board-top{font-size:12px}.equation{font-size:34px}.moon{right:-30px}.game-toolbar span{font-size:12px}}@media(max-width:350px){.settings-grid{grid-template-columns:1fr}.settings-grid .wide{grid-column:auto}.ghost-heading h1{font-size:29px}.heading-moon{display:none}}
.ghost-shell h2{color:#fff4df}.ghost-shell .board-top h2{color:#e5c89a}
.ghost-shell .feedback{background:transparent;border:0;padding:8px 6px;color:#e5d8e7}.ghost-shell .feedback.ok{color:#c4ecd1}.ghost-shell .feedback.no{color:#f3c3c8}.board-score{padding:5px 9px;background:#241c30e8;border:1px solid #a68ba246;border-radius:10px}


.ghost-shell .ghost-field.flying .ghost{animation:none;transform:none;will-change:left,top}.spelling-equation{font-size:clamp(22px,2.7vw,31px);line-height:1.45;letter-spacing:0;overflow-wrap:anywhere}.ghost-field.two-choices .ghost:nth-child(1){left:calc(25% - 50px);top:125px}.ghost-field.two-choices .ghost:nth-child(2){left:calc(75% - 50px);top:125px}[data-game="spelling"] .feedback{min-height:105px}[data-game="spelling"] .game-instruction{font-size:14px}@media(max-width:720px){.ghost-field.two-choices .ghost:nth-child(1){left:calc(25% - 44px)}.ghost-field.two-choices .ghost:nth-child(2){left:calc(75% - 44px)}.spelling-equation{font-size:23px}}

.board.curriculum .lesson-answer{position:absolute;left:50%;top:68%;transform:translate(-50%,-50%);width:135%;font-size:clamp(12px,1.5vw,17px);line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-align:center;background:#fff5dd;color:#312537;border:1px solid #dbc58a;border-radius:10px;padding:5px}.board.curriculum .feedback{min-height:100px;font-size:16px}
