.sg-game{font-family:Poppins,system-ui,sans-serif;color:#243351;width:min(100%,850px);margin:auto;--sg-violet:#7254d8;--sg-cream:#fffdf7}.sg-game *{box-sizing:border-box}.sg-game button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.sg-game button:focus-visible{outline:3px solid #7254d8;outline-offset:4px}.sg-game button:disabled{cursor:default}.sg-story-heading{text-align:center;max-width:660px;margin:0 auto 20px}.sg-step{display:block;color:#796a99;font-weight:600;font-size:14px;letter-spacing:.04em;margin-bottom:8px}.sg-story-heading h2,.sg-story-ending h2{font-family:Grandstander,Poppins,sans-serif;font-size:clamp(26px,4vw,38px);line-height:1.16;margin:0 0 10px}.sg-story-heading p{font-size:16px;line-height:1.65;margin:0 auto}.sg-room{position:relative;width:100%;max-width:700px;margin:0 auto;border:2px solid #243351;border-radius:28px;overflow:hidden;background:#e7eef0;box-shadow:0 5px 0 #24335112}.sg-room-art{display:block;width:100%;height:auto}.sg-mackery{position:absolute;top:24%;left:45%;width:15%;height:auto;pointer-events:none;animation:sg-float 4s ease-in-out infinite}.sg-mackery--peek{width:11%;top:25%;left:49%}.sg-hotspot{position:absolute;left:var(--spot-x);top:var(--spot-y);transform:translate(-50%,-50%);min-height:44px;min-width:44px;max-width:170px;padding:9px 14px;border:2px solid #536280;background:#fffdf7ed;color:#243351;border-radius:20px;box-shadow:0 3px 0 #2433511a;font-size:14px!important;font-weight:600;line-height:1.2}.sg-hotspot:hover:not(:disabled){background:#ffe58d;box-shadow:0 5px 0 #24335124}.sg-hotspot.is-found{background:#d6eccb;border-color:#6e9978}.sg-swatch{background:var(--swatch);min-width:100px}.sg-prompt{text-align:center;font-size:16px;font-weight:600;margin:20px auto 10px}.sg-feedback{padding:14px 18px;background:#f0ebfa;border-radius:16px;text-align:center;line-height:1.6;font-size:16px;min-height:54px;margin:12px auto 18px;max-width:700px}.sg-story-actions{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}.sg-primary,.sg-soft-button{min-height:48px;border:1.5px solid #243351;border-radius:24px;padding:11px 20px;font-size:16px!important;font-weight:600;line-height:1.35}.sg-primary{background:#7254d8;color:#fff;box-shadow:0 3px 0 #243351}.sg-primary:disabled{background:#d5cee5;color:#6e6580;border-color:#b7adc9;box-shadow:none}.sg-soft-button{background:#fffdf7;color:#243351}.sg-soft-button:hover{background:#ffe58d}.sg-source-note{text-align:center;color:#706983;font-size:13px;line-height:1.6;margin:20px 0 0}.sg-story-ending{text-align:center;background:#eaf1e6;border:1.5px solid #c3d4c1;border-radius:30px;padding:28px 20px}.sg-story-ending img{display:block;width:180px;height:auto;margin:0 auto 18px;animation:sg-float 4s ease-in-out infinite}.sg-story-ending p{font-size:16px;line-height:1.6}.sg-puzzle{max-width:720px}.sg-puzzle-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0}.sg-puzzle-count{font-size:16px;font-weight:600}.sg-puzzle-board{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);width:100%;aspect-ratio:1100/680;gap:5px;background:#e5e1ee;border:2px solid #243351;border-radius:22px;padding:7px;overflow:hidden}.sg-puzzle-cell{min-width:0;position:relative;display:flex;align-items:center;justify-content:center;background:#fffdf7;border:1.5px dashed #a99fbd;border-radius:10px;padding:8px;color:#81748f;font-size:14px!important;line-height:1.4;text-transform:capitalize}.sg-puzzle-cell.is-placed,.sg-puzzle-piece{background-image:url('./map-world.svg');background-size:300% 200%;background-position:var(--piece-position);background-repeat:no-repeat}.sg-puzzle-cell.is-placed{border-color:#d0e0c6;border-style:solid;border-radius:4px}.sg-piece-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px auto}.sg-puzzle-piece{position:relative;width:100%;aspect-ratio:11/10;min-height:70px;border:2px solid #243351;border-radius:14px;box-shadow:0 4px 0 #24335115;transition:transform .16s}.sg-puzzle-piece:hover{transform:translateY(-3px)}.sg-puzzle-piece.is-selected{outline:4px solid #7254d8;outline-offset:3px;transform:translateY(-3px)}.sg-selection-badge{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);padding:3px 8px;border-radius:20px;background:#7254d8;color:white;font-size:12px;font-weight:600}.sg-reference{display:block;width:min(100%,330px);margin:0 auto 18px;border:2px solid #d0c7e4;border-radius:16px}.sg-puzzle-done{text-align:center;background:#e7efdc;border-radius:18px;padding:16px;margin:14px auto}.sg-puzzle-done h3{font-family:Grandstander,Poppins,sans-serif;font-size:26px;margin:0 0 8px}.sg-puzzle-done p{font-size:16px;margin:0}.sg-puzzle-reset{display:block;margin:22px auto}.sg-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes sg-float{0%,100%{translate:0 0}50%{translate:0 -5px}}@media(max-width:520px){.sg-story-heading p,.sg-prompt,.sg-feedback{font-size:15px}.sg-hotspot{font-size:14px!important;padding:8px;max-width:28%;min-height:44px;border-radius:15px}.sg-swatch{min-width:75px;max-width:110px}.sg-puzzle-board{gap:3px;padding:5px}.sg-puzzle-cell{font-size:12px!important;padding:5px}.sg-piece-tray{gap:10px}.sg-puzzle-tools .sg-soft-button{font-size:14px!important;padding:8px 12px}.sg-story-actions>*{width:100%}.sg-story-actions{gap:10px}.sg-feedback{padding:12px 14px}}@media(prefers-reduced-motion:reduce){.sg-game *{animation:none!important;transition:none!important}}

.sg-room[data-scene="2"] .sg-hotspot,.sg-room[data-scene="3"] .sg-hotspot{width:28%;max-width:180px}.sg-room[data-scene="2"] .sg-hotspot{min-height:52px}
