@import"https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap";:root{font-family:Noto Sans KR,sans-serif;color:#594b3b;font-synthesis:none;background:#eee9dd;font-weight:500;--ink:#67513b;--paper:#fffae9;--green:#7f9e77;--line:#8b7358}*{box-sizing:border-box}html,body{margin:0;height:100%;overscroll-behavior:none}body{display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at 20% 20%,#fcf7e9,transparent 60%),#e7e8d9}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid #3e857e;outline-offset:3px}button:disabled{cursor:default}button svg{width:24px;height:24px;vertical-align:middle}button:active:not(:disabled){transform:translateY(2px)}.game{width:100%;max-width:540px;height:100dvh;max-height:1160px;position:relative;overflow:hidden;background:#f8e6c8;box-shadow:0 0 100px #6a735e24;isolation:isolate}.topbar{height:80px;padding:12px 23px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(115deg,#f8d185,#f8c56a);border-bottom:3px solid #e0ab56;position:relative;z-index:5;padding-top:max(12px,env(safe-area-inset-top))}.icon-button{width:42px;height:42px;background:#fff9e7;border:2px solid var(--ink);border-radius:14px;box-shadow:0 3px #c89b52;display:grid;place-items:center}.brand{text-align:center}.brand>span{font-size:10px;letter-spacing:2.5px;font-weight:800;opacity:.66}.brand>strong{display:block;font-family:Gowun Dodum,sans-serif;font-size:23px;line-height:1.5;letter-spacing:-1px}.chapter{text-align:center;width:42px}.chapter span{display:block;letter-spacing:1px;font-size:8px;font-weight:800}.chapter strong{font-size:23px;line-height:1.15}.playfield{height:calc(100% - 80px);position:relative;background:#f8e8cd;overflow:hidden}.hud{position:absolute;top:0;left:0;right:0;padding:15px 20px 0;z-index:4;background:linear-gradient(#fcebd3e6 0%,#fcebd39a 75%,transparent)}.objectives{height:120px;display:grid;grid-template-columns:repeat(3,1fr);gap:15px;align-items:start}.bin{height:107px;position:relative;border:2px solid var(--ink);border-top:0;border-radius:1px 1px 7px 7px;margin-top:12px;background:linear-gradient(100deg,#fffced,#eee9d5);box-shadow:2px 4px #594b3b18;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;transition:transform .2s}.bin:before{content:"";position:absolute;left:-7px;right:-7px;height:18px;top:-13px;border:2px solid var(--ink);background:linear-gradient(#ebe5cf 30%,#c3baa5 31%,#d1cbb8 70%,#f9f5e3 71%);border-radius:5px 5px 2px 2px;transform:perspective(70px) rotateX(18deg)}.bin-name{font-family:Gowun Dodum,sans-serif;font-weight:700;font-size:21px;line-height:1.2;white-space:nowrap}.bin-counter{background:#a9d7c6;border:2px solid var(--ink);border-radius:4px;position:absolute;bottom:-9px;min-width:65px;height:28px;text-align:center;font-weight:800;font-size:20px;line-height:24px;letter-spacing:1px}.bin-counter small{font-size:15px;opacity:.8}.bin-progress{position:absolute;bottom:15px;left:9px;right:9px;height:3px;border-radius:5px;background:#ded9c5;overflow:hidden}.bin-progress i{display:block;height:100%;background:#8bb4a0;transition:width .3s}.locked-bin{width:100%;background:#665c50;color:#fffae9;border:2px solid #423e34;box-shadow:0 4px #423e3420;gap:4px}.locked-bin:before{background:linear-gradient(#524a3f 25%,#37352e 26%,#37352e 75%,#665c50 76%);border-color:#423e34}.locked-bin>span{font-family:Gowun Dodum,sans-serif;line-height:1.25;font-size:17px}.locked-bin>small{font-size:9px;background:#ffffff15;border-radius:5px;padding:3px 7px}.ad-play{width:24px;height:18px;border-radius:4px;background:#f6ebc6;display:grid;place-items:center;font-size:10px;color:#665c50}.empty-bin{height:105px;display:grid;place-content:center;text-align:center;font-size:12px;opacity:.65}.empty-bin strong{font-size:24px}.reserve-wrap{margin:15px 8px 0}.reserve-label{display:flex;justify-content:space-between;padding:0 3px 5px;font-size:10px;letter-spacing:.3px;color:#7f705c}.reserve-label>span:last-child{font-weight:800}.reserve{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:8px;border:2px solid #927c62;border-radius:9px;background:#d3ccbb;box-shadow:0 3px #705c3e1c}.slot{aspect-ratio:1;min-width:0;border:1.5px solid #927c62;border-radius:4px;background:#fffbea;display:grid;place-items:center;position:relative;padding:0}.slot img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 1px #0003)}.slot.lock{background:#665f53;border-color:#4b453d;color:#f3e6c2}.slot.lock .ad-play{width:20px;height:16px;font-size:9px;background:#c8bfaa;color:#625a4d}.slot.lock:disabled{opacity:.65}.slot.lock small{position:absolute;bottom:1px;right:2px;font-size:7px;color:#e7ddc7}.slot.filled{background:#f6edcf}.reserve.danger{border-color:#b77758;animation:tray-warn 1s infinite}.board{position:absolute;top:219px;bottom:60px;left:0;right:0;touch-action:none;overflow:hidden}.board canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.board canvas:active{cursor:grabbing}.bottom-bar{position:absolute;bottom:20px;left:22px;right:22px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 13px;border:1px solid #fff9e78a;border-radius:14px;background:#fff5e3de;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:3}.progress{flex:1}.progress>span{font-size:10px;color:#796a53;display:flex;justify-content:space-between;gap:18px}.progress b{font-size:10px;color:#65805a}.progress-track{height:4px;background:#dcd9c2;border-radius:8px;margin-top:6px;overflow:hidden}.progress-track i{display:block;height:100%;width:0;background:#8ca878;transition:width .4s;border-radius:8px}.view-tools{display:flex;align-items:center;gap:2px}.view-tools button{border:0;background:transparent;width:28px;height:28px;font-size:23px;line-height:28px;padding:0}.view-tools svg{width:18px;height:18px}.view-tools button:hover{background:#d9d9bd66;border-radius:6px}.version{position:absolute;bottom:3px;right:7px;z-index:20;color:#000;font-size:11px;line-height:15px;font-weight:900;-webkit-text-stroke:2.5px white;paint-order:stroke fill;pointer-events:none;font-family:Arial,sans-serif;letter-spacing:.1px}.flying-item{position:fixed;z-index:50;pointer-events:none;object-fit:contain;filter:drop-shadow(0 5px 5px #6b503d44);transform-origin:center}.bin.bump{animation:bin-bump .35s ease}.sparkle{position:absolute;pointer-events:none;color:#fffce0;font-size:20px;text-shadow:0 0 10px #b5a04c;z-index:6;animation:sparkle .7s both}#toast{position:absolute;left:50%;bottom:40px;transform:translate(-50%,10px);max-width:90%;padding:11px 18px;border-radius:12px;background:#5a4b3eea;color:#fffae9;font-size:12px;text-align:center;z-index:9;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;white-space:nowrap}#toast.show{opacity:1;transform:translate(-50%)}#loading{position:absolute;top:80px;right:0;bottom:0;left:0;background:#fff4df;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}#loading strong{font-family:Gowun Dodum,sans-serif;font-size:23px}#loading>span:last-child{font-size:12px;color:#9b8870}.loading-house{font-size:70px;color:#88a580;animation:bin-bump 1.5s infinite}#loading.hidden{display:none}dialog{border:2px solid #8f7757;border-radius:24px;background:#fff9e9;color:#655039;padding:0;width:min(345px,88vw);box-shadow:0 20px 90px #403d3a55;max-height:85dvh;overflow:auto}dialog::backdrop{background:#443a2d77;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#modal-content{padding:30px 25px 24px;text-align:center}#modal-content>small{font-size:10px;letter-spacing:2px;color:#9b8869;font-weight:800}#modal-content h2{font-family:Gowun Dodum,sans-serif;font-size:26px;margin:9px 0 14px}#modal-content p{font-size:13px;line-height:1.9;color:#8a765d;margin:0 0 20px;word-break:keep-all}.modal-icon{display:block;font-size:45px;line-height:1.5;color:#9aad77}.modal-actions{display:flex;flex-direction:column;gap:9px;margin-top:20px}.primary,.secondary{width:100%;padding:13px;border-radius:12px;font-weight:700;font-size:13px}.primary{border:1.5px solid #6c8b5e;background:#8fa77b;color:#fff;box-shadow:0 3px #6c8b5e}.primary:disabled{opacity:.6}.secondary{border:1.5px solid #d5c7ad;background:#fff9e9;color:#816b50}.help-list{text-align:left;display:grid;gap:14px;font-size:12px;line-height:1.7}.help-list b{color:#6b895f}.ad-badge{display:inline-block;font-size:10px;background:#f3e6c8;padding:6px 12px;border-radius:20px;margin-bottom:14px}.ad-circle{width:75px;height:75px;border-radius:50%;background:#eceddb;display:grid;place-items:center;font-size:30px;color:#8ba073;margin:8px auto 18px}.result-stats{display:flex;gap:16px;justify-content:center;padding:15px;background:#f3efdc;border-radius:12px;font-size:12px}.result-stats b{display:block;font-size:24px;color:#7c9768}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.confetti{position:absolute;top:-20px;width:8px;height:12px;border-radius:2px;z-index:20;pointer-events:none;animation:fall 2.8s ease-in forwards}@keyframes tray-warn{50%{box-shadow:0 0 0 3px #b7775833}}@keyframes bin-bump{0%,to{transform:translateY(0)}40%{transform:translateY(-5px) rotate(-2deg)}70%{transform:translateY(1px) rotate(2deg)}}@keyframes sparkle{to{transform:translateY(-45px) scale(.3);opacity:0}}@keyframes fall{to{transform:translateY(1100px) rotate(600deg);opacity:0}}@media(min-width:700px){.game{border-left:1px solid #e1d1b2;border-right:1px solid #e1d1b2}.topbar{height:90px}.playfield{height:calc(100% - 90px)}}@media(max-height:740px){.topbar{height:65px;padding-top:8px;padding-bottom:8px}.playfield{height:calc(100% - 65px)}.hud{padding-top:8px}.objectives{height:104px}.bin{height:93px}.bin-name{font-size:18px}.reserve-wrap{margin-top:12px}.board{top:200px;bottom:56px}.bottom-bar{bottom:18px;padding:6px 10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.board{top:0;right:0;bottom:0;left:0}@media(max-height:740px){.board{top:0;right:0;bottom:0;left:0}}.hud{padding-top:10px;background:linear-gradient(#fcebd3ed,#fcebd3ba 76%,transparent)}.objectives{height:80px;gap:14px}.bin{height:66px;margin-top:12px;justify-content:center;padding-bottom:11px}.bin-name{font-size:19px}.bin-progress{bottom:12px}.bin-counter{bottom:-10px;height:26px;min-width:61px;font-size:18px;line-height:23px}.locked-bin{gap:3px;padding:3px 0 1px}.locked-bin>span{font-size:13px}.locked-bin>small{padding:1px 5px;font-size:9px}.locked-bin .ad-play{width:20px;height:14px;font-size:9px}.empty-bin{height:66px}.reserve-wrap{margin-top:11px}.reserve-label{padding-bottom:4px}.playfield{background:#f8e8cd}.game.layout-edit .hud,.game.layout-edit .bottom-bar{visibility:hidden;pointer-events:none}.layout-panel{position:absolute;z-index:10;left:12px;right:12px;bottom:22px;padding:12px;border:1.5px solid #9d8968;border-radius:13px;background:#fffaedf5;font-size:12px;box-shadow:0 3px 18px #594d3d22}.layout-panel label{font-size:11px;display:block;margin-bottom:5px}.layout-panel select{font:inherit;width:100%;border:1px solid #cab99a;border-radius:6px;padding:6px;background:#fffaf0;color:#655039}.layout-panel p{font-size:10px;margin:6px 0;color:#806c51}.layout-actions{display:flex;gap:6px}.layout-actions button{font-size:11px;padding:7px 8px;border:1px solid #c7b897;border-radius:6px;background:#fff7e4;flex:1}.layout-actions button:last-child{background:#87a17a;color:#fff;border-color:#718a65}@media(max-height:740px){.objectives{height:75px}.bin{height:62px}.bin-name{font-size:17px}.hud{padding-top:6px}.reserve-wrap{margin-top:11px}.locked-bin>span{font-size:12px}}.topbar{height:52px;padding:6px 14px;padding-top:max(6px,env(safe-area-inset-top))}.icon-button{width:34px;height:34px;border-radius:11px;box-shadow:0 2px #c89b52}.icon-button svg{width:19px;height:19px}.brand>span{font-size:8px;letter-spacing:2px}.brand>strong{font-size:17px;line-height:1.25}.chapter span{font-size:7px}.chapter strong{font-size:17px;line-height:1.1}.playfield{height:calc(100% - 52px)}#loading{top:52px;right:0;bottom:0;left:0}.hud{padding:10px 0 0}.objectives{height:auto;padding:0 6.5%;gap:5%;grid-template-columns:repeat(3,1fr)}.bin{height:clamp(62px,19vw,92px);margin-top:10px}.bin:before{height:14px;top:-10px;left:-5px;right:-5px}.bin-name{font-size:clamp(14px,4.4vw,20px)}.bin-counter{min-width:48px;height:22px;font-size:15px;line-height:18px;bottom:-8px}.bin-counter small{font-size:12px}.bin-progress{bottom:12px;left:8px;right:8px}.locked-bin{gap:2px}.locked-bin>span{font-size:clamp(12px,3.6vw,16px)}.locked-bin>small{font-size:8px;padding:2px 6px}.locked-bin .ad-play{width:20px;height:15px;font-size:9px}.empty-bin{height:clamp(62px,19vw,92px);font-size:11px}.empty-bin strong{font-size:20px}.reserve-wrap{width:72%;margin:14px auto 0}.reserve-label{display:none}.reserve{gap:3px;padding:5px;border-radius:7px}.slot.lock .ad-play{width:16px;height:13px;font-size:8px}@media(min-width:700px){.topbar{height:58px}.playfield{height:calc(100% - 58px)}#loading{top:58px;right:0;bottom:0;left:0}}@media(max-height:740px){.topbar{height:48px}.playfield{height:calc(100% - 48px)}#loading{top:48px;right:0;bottom:0;left:0}.objectives{height:auto}.bin,.empty-bin{height:clamp(58px,17vw,84px)}.reserve-wrap{margin-top:12px}}.version{z-index:50;color:#fff;-webkit-text-stroke:0;text-shadow:none;font-size:16px;line-height:18px;font-weight:900;letter-spacing:.3px;bottom:calc(5px + env(safe-area-inset-bottom,0px));right:calc(8px + env(safe-area-inset-right,0px));isolation:isolate}.version:before{content:attr(data-label);position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;color:#000;-webkit-text-stroke:4px #000}.reserve{grid-template-columns:repeat(7,minmax(0,1fr))}.slot{overflow:hidden}.slot img{position:absolute;top:12%;right:12%;bottom:12%;left:12%;width:76%;height:76%;object-fit:contain}
