:root{font-family:-apple-system,BlinkMacSystemFont,'Avenir Next','Segoe UI',sans-serif;color:#363346;background:#dedbe9;font-synthesis:none;--ink:#363346;--muted:#8a859e;--purple:#7661c9}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;border:0}button:focus-visible{outline:3px solid #9b7ce1;outline-offset:3px}button:disabled{opacity:.4;cursor:default}#game{position:relative;width:100%;max-width:500px;height:100svh;min-height:660px;margin:auto;overflow:hidden;background:linear-gradient(160deg,#f5f3fb,#e9e5f3 63%,#f4f0f8);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);box-shadow:0 0 100px #4d3c651a}header{padding:17px 24px 8px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.icon-button{position:relative;width:42px;height:42px;border-radius:16px;background:#ffffff8c;box-shadow:0 3px 0 #dcd7e34d;display:grid;place-items:center;font-size:28px}.icon-button svg{width:19px;height:19px}.off{position:absolute;right:7px;top:6px;font-size:13px}.wordmark{font-weight:850;font-size:27px;letter-spacing:-1.7px}.wordmark span{color:#8971cb}.wordmark i{color:#e8ac64;font-style:normal;margin-left:2px}.level-head{text-align:center;z-index:1;pointer-events:none}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.9px;color:#9b94ae}h1{font-size:25px;letter-spacing:-.9px;margin:6px 0 12px;font-weight:750}.objective{display:flex;gap:7px;align-items:center;justify-content:center;font-size:11px;color:#8c829f;flex-wrap:wrap;max-width:280px;margin:0 auto}.objective strong{font-size:14px;color:#5f527c}.parcel-icon{color:#a997cd;font-size:20px}.progress{width:100%;display:flex;justify-content:center;gap:5px;margin-top:1px}.progress i{width:21px;height:4px;background:#dcd5e9;border-radius:4px}.progress i.done{background:#8bbda1}#scene-wrap{position:relative;flex:1;min-height:220px;margin-top:-5px}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.ambient-label{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:8px;font-weight:700;letter-spacing:1.6px;color:#aaa0bc;white-space:nowrap;pointer-events:none}.ambient-label i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#90bda6;margin:0 5px 1px 0}#shipment{position:absolute;top:34%;width:100%;text-align:center;pointer-events:none;font-weight:800;font-size:23px;color:#655b85;text-shadow:0 2px white;opacity:0;transform:translateY(10px);transition:.25s}#shipment.show{opacity:1;transform:translateY(0)}#loading{position:absolute;inset:0;display:grid;place-items:center;color:#80758f;font-size:14px}.packing{position:relative;padding:8px 23px 0;z-index:2}.tray-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.tray-heading .eyebrow{font-size:9px;letter-spacing:1.5px}.tray-heading p{font-size:11px;color:#8d849b;line-height:1.4;margin:6px 0 12px;min-height:16px}.rotate{background:#fff9;border-radius:13px;display:flex;align-items:center;gap:5px;padding:7px 10px;font-size:24px;box-shadow:0 2px 1px #d1c9dc66;flex-shrink:0}.rotate span{font-size:10px;font-weight:700}.tray{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.piece-card{position:relative;height:93px;border-radius:20px;background:linear-gradient(160deg,#fff9,#f9f7fc);box-shadow:inset 0 1px 0 #fff,0 5px 0 #d8d1e244,0 9px 20px #73638808;border:2px solid #ffffff30;transition:border-color .15s,transform .15s;touch-action:none;display:grid;place-items:center;padding:12px 17px}.piece-card.selected{border-color:#ab96d7;background:#fffafc;transform:translateY(-3px);box-shadow:0 5px 0 #b7a4d52b,0 8px 20px #73638813}.piece-card.empty{background:#e2dce940;border:1px dashed #d6cfdf;box-shadow:none;color:#c2b9cd;font-size:25px}.piece-card svg{width:100%;height:100%;overflow:visible;pointer-events:none}.piece-number{position:absolute;left:9px;bottom:7px;font-size:8px;font-weight:700;color:#b4a9c2}.next{display:flex;align-items:center;gap:10px;height:43px;color:#afa5bd;font-size:8px;font-weight:750;letter-spacing:1px}.next #upcoming{display:flex;gap:9px;align-items:center;flex:1}.next svg{width:24px;height:22px;opacity:.72}.next #remaining{font-weight:500;font-size:9px;letter-spacing:0}footer{display:flex;justify-content:space-evenly;border-top:1px solid #dcd6e75c;padding:10px 20px max(13px,env(safe-area-inset-bottom));background:#f8f5fb75}footer button{background:none;display:flex;align-items:center;gap:6px;color:#8e809f;font-size:10px;font-weight:600;padding:6px 12px}footer button span{font-size:23px;line-height:20px}#toast{position:absolute;bottom:228px;left:50%;transform:translate(-50%,10px);background:#4d4165ef;color:white;padding:12px 18px;border-radius:15px;max-width:88%;width:max-content;font-size:12px;text-align:center;opacity:0;pointer-events:none;transition:.2s;z-index:4}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;background:#faf7ff;border-radius:30px;padding:30px 26px;width:calc(100% - 44px);max-width:360px;box-shadow:0 22px 90px #33234f44;color:var(--ink);text-align:center}dialog::backdrop{background:#43324b44;backdrop-filter:blur(8px)}dialog h2{font-size:29px;letter-spacing:-1px;margin:13px 0}dialog p{color:#92869d;line-height:1.6;font-size:13px}.medal{margin:0 auto 13px;width:85px;height:85px;border-radius:28px;background:linear-gradient(135deg,#ffdf9b,#f1b758);box-shadow:inset 0 2px 2px #fff8,0 7px 0 #c48c3c24;display:grid;place-items:center;color:#fff9e7;font-size:48px;transform:rotate(-6deg)}.primary{width:100%;padding:15px;border-radius:16px;background:#8c72c9;color:white;box-shadow:0 4px 0 #6b51ab;font-weight:700;font-size:14px;margin-top:17px}.secondary{background:transparent;color:#9988ad;padding:14px 5px 0;font-size:12px}.level-list{display:flex;flex-direction:column;gap:8px;margin-top:18px}.level-option{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:14px 16px;background:#eee8f6;border-radius:15px;font-size:13px}.level-option span{color:#aa98bc}#game.error #loading{padding:40px;text-align:center;line-height:1.6;background:#f0eaf8}.error .packing,.error footer{display:none}@media(min-width:650px){body{padding:20px}#game{height:calc(100svh - 40px);max-height:1000px;border-radius:32px}}@media(max-height:740px){header{padding-top:8px}.level-head h1{font-size:22px;margin:4px 0 8px}.piece-card{height:78px}.packing{padding-top:0}.tray-heading p{font-size:10px;margin-bottom:8px}.next{height:34px}footer{padding-top:5px;padding-bottom:max(6px,env(safe-area-inset-bottom))}#scene-wrap{min-height:210px}.ambient-label{bottom:1px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.piece-card svg{position:absolute;inset:12px 15px;width:calc(100% - 30px);height:calc(100% - 24px);overflow:visible}
