.mgf-game{width:min(100% - 32px,1180px);margin:28px auto 0;color:#173b46}.mgf-game *,.mgf-success *{text-shadow:none!important}.mgf-game button,.mgf-success button{filter:none!important}.mgf-heading{margin:0 0 17px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;text-align:center}.mgf-heading p{margin:0 0 3px;color:#147d87;font-size:.78rem;font-weight:900;letter-spacing:.14em}.mgf-heading h1{margin:0;color:#175c73;font-size:clamp(2rem,4.5vw,3.4rem);font-weight:1000;line-height:1.06}.mgf-heading span{display:block;margin-top:8px;color:#315a6b;font-size:clamp(.95rem,1.7vw,1.12rem);font-weight:650}.mgf-stage{position:relative;isolation:isolate;display:grid;grid-template-rows:auto 1fr;min-height:850px;overflow:hidden;border:5px solid white;border-radius:30px;background:#d18c68;box-shadow:0 20px 50px #19455827}.mgf-background{z-index:-2;object-fit:cover;object-position:center}.mgf-stage:before{position:absolute;z-index:-1;inset:0;background:linear-gradient(#70492b20,#c0875d0a 30%,#6b381d19);content:"";pointer-events:none}.mgf-top{justify-content:space-between;align-items:flex-start;padding:22px 26px 0}.mgf-prompt,.mgf-top{display:flex;gap:12px}.mgf-prompt{align-items:center;min-width:0}.mgf-prompt>div{padding:9px 15px;border-radius:17px;background:#fff9e9ec}.mgf-prompt small{display:block;color:#16827f;font-size:.76rem;font-weight:900;letter-spacing:.12em}.mgf-prompt h2{margin:1px 0;color:#164b5e;font-size:clamp(1.4rem,2.9vw,2.3rem);font-weight:950;line-height:1.13}.mgf-prompt p{margin:0;color:#3e626b;font-size:clamp(.9rem,1.45vw,1rem);font-weight:750}.mgf-prompt button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:48px;border:2px solid white;border-radius:15px;background:#fff8e9;color:#15576b;padding:8px 14px;font-size:.98rem;font-weight:900;cursor:pointer}.mgf-prompt button svg{width:20px;height:20px}.mgf-hud{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;color:#164d63;font-weight:950}.mgf-hud span,.mgf-hud strong{display:inline-flex;align-items:center;min-height:40px;gap:3px;padding:5px 9px;border-radius:13px;background:#fff8e9ef}.mgf-hud svg{width:18px;height:18px;fill:#eeb94b;color:#a96e0c}.mgf-play{flex-direction:column;align-items:center;gap:17px;padding:22px 15px 35px}.mgf-play,.mgf-previews{display:flex;justify-content:center}.mgf-previews{align-items:flex-start;gap:clamp(10px,3vw,36px);width:100%}.mgf-preview{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:120px;padding:7px 10px;border-radius:14px;background:#fffaf0e8}.mgf-preview strong{color:#18636d;font-size:.78rem;font-weight:950;letter-spacing:.08em}.mgf-preview span{color:#234e5a;font-size:.78rem;font-weight:900}.mgf-mini-grid{display:grid;grid-template-columns:repeat(5,15px);gap:2px}.mgf-mini-grid i{width:15px;height:15px;border-radius:3px;background:#e7dac4}.mgf-mini-grid i.filled{background:linear-gradient(135deg,#9ee9da,#249c98);box-shadow:inset -2px -2px 0 #1b6f74}.mgf-workspace{position:relative;display:grid;place-items:center;width:100%;min-height:365px}.mgf-build{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:8px}.mgf-build-label{margin:0;padding:5px 11px;border-radius:11px;background:#fff9e9f0;color:#164e5c;font-size:1.05rem;font-weight:950}.mgf-build-label span{color:#446671;font-size:.83rem}.mgf-grid{display:grid;grid-template-columns:repeat(5,56px);gap:4px;padding:9px;border:4px solid #e9f8e8;border-radius:20px;background:#66412ecf;box-shadow:0 13px 0 #4c2e238a}.mgf-grid button{position:relative;width:56px;height:56px;border:2px solid #f8e9c9;border-radius:9px;background:#fff4dfde;cursor:pointer;transition:transform .15s ease,background .15s ease}.mgf-grid button:hover:not(:disabled){transform:scale(1.06);background:#ffffff}.mgf-grid button.is-existing{border-color:#9de8d8;background:linear-gradient(135deg,#a7f0dc 0 22%,#4fc4b6 23% 75%,#209b99 76%);box-shadow:inset -4px -4px 0 #167a83;opacity:1}.mgf-grid button.is-placed{border-color:#fff6c1;background:linear-gradient(135deg,#fff3ab 0 22%,#ffc65b 23% 75%,#e29a36 76%);box-shadow:inset -4px -4px 0 #b77525}.mgf-grid button.is-missing{border:4px solid #ffd145;background:#fff1a7;box-shadow:inset 0 0 0 2px #8b5314}.mgf-grid button.is-misplaced{border:4px solid #b43e35;background:#ffd8c9;box-shadow:inset 0 0 0 2px #743126}.mgf-grid button.is-misplaced:after,.mgf-grid button.is-missing:after{position:absolute;inset:0;display:grid;place-items:center;color:#6c4a12;font-size:1.7rem;font-weight:950;line-height:1;pointer-events:none;content:"+"}.mgf-grid button.is-misplaced:after{color:#8e211c;content:"×"}.mgf-forge{position:absolute;right:3%;bottom:-18px;width:clamp(145px,20%,230px);height:auto;pointer-events:none}.mgf-mascot{position:absolute!important;z-index:1;left:1%;bottom:-9px;width:clamp(149.5px,20.8%,221px)!important;pointer-events:none}.mgf-check{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:58px;padding:10px 23px;border:3px solid white;border-radius:18px;background:#a9f0d4;color:#145561;box-shadow:0 5px 0 #328e82;font-size:1.18rem;font-weight:950;cursor:pointer;transition:transform .15s ease}.mgf-check:hover:not(:disabled){transform:translateY(-2px)}.mgf-check svg{width:22px;height:22px}.mgf-feedback{min-height:28px;max-width:min(100%,720px);margin:0;padding:6px 12px;border-radius:11px;background:#fff9e9f0;color:#164e5c;text-align:center;font-size:clamp(.9rem,1.4vw,1rem);font-weight:850}.mgf-feedback.wrong{color:#a04033}.mgf-feedback.correct{color:#19715b}.mgf-game button:focus-visible{outline:4px solid #164f99;outline-offset:3px}.mgf-game button:disabled{cursor:default;opacity:.5}.mgf-grid button.is-existing:disabled{opacity:1}.mgf-success #success-title{text-shadow:none!important;filter:none!important;-webkit-text-stroke:0!important;color:#a45408}@media (max-width:780px){.mgf-heading{padding-top:52px}.mgf-stage{min-height:820px}.mgf-top{flex-direction:column;align-items:stretch;padding:16px 18px 0}.mgf-hud{justify-content:flex-end}.mgf-play{gap:14px}.mgf-workspace{min-height:345px}.mgf-forge{right:-13px;width:150px}.mgf-mascot{left:-13px;width:156px!important}}@media (max-width:540px){.mgf-game{width:min(100% - 16px,1180px);margin-top:18px}.mgf-stage{min-height:875px;border-width:3px;border-radius:23px}.mgf-top{gap:7px;padding:58px 10px 0}.mgf-prompt{gap:5px}.mgf-prompt>div{flex:1;padding:8px 9px}.mgf-prompt button{min-width:48px;width:48px;overflow:hidden;padding:0;font-size:0}.mgf-hud{gap:5px;font-size:.85rem}.mgf-hud span,.mgf-hud strong{min-height:35px;padding:4px 7px}.mgf-play{gap:11px;padding:14px 4px 28px}.mgf-previews{gap:5px}.mgf-preview{min-width:0;flex:1;padding:6px 2px}.mgf-preview span,.mgf-preview strong{font-size:.66rem}.mgf-mini-grid{grid-template-columns:repeat(5,10px);gap:1px}.mgf-mini-grid i{width:10px;height:10px;border-radius:2px}.mgf-workspace{min-height:460px;place-items:start center}.mgf-build-label{font-size:.9rem}.mgf-build-label span{display:block;font-size:.72rem;text-align:center}.mgf-grid{grid-template-columns:repeat(5,48px);gap:2px;padding:4px;border-width:3px;border-radius:13px}.mgf-grid button{width:48px;height:48px;border-radius:6px}.mgf-forge{right:0;bottom:0;width:115px;opacity:.92}.mgf-mascot{left:0;bottom:0;width:136.5px!important}.mgf-check{min-height:52px;padding:8px 17px;font-size:1rem}}@media (prefers-reduced-motion:reduce){.mgf-game button{transition:none}.mgf-check:hover:not(:disabled),.mgf-grid button:hover:not(:disabled){transform:none}}