@charset "UTF-8";
/* v0.6: local courier journal, shared delivery and explicitly fictional league. */
.game-shell{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
.courier-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 10px 10px;background:#fff6e4;border-top:2px solid #dbbfa4;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);z-index:5;box-shadow:0 -5px 18px #183f6620}
.courier-nav button{min-height:58px;background:transparent;border-radius:14px;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:2px solid transparent}
.courier-nav button>span{font-size:25px;line-height:25px}.courier-nav button[aria-current=page]{color:#fff;background:linear-gradient(140deg,#7555be,#4a378b);border-color:#ab87db;box-shadow:0 3px #302664}.courier-nav button svg{width:26px;height:26px}
#ranking-screen{padding:24px 20px;background:radial-gradient(ellipse at 100% 0,#d9c6f2,transparent 44%),linear-gradient(#f7eedf,#e6efdf);min-height:630px}.ranking-heading{margin-bottom:20px}.ranking-heading h1{font-size:28px;line-height:1.1;letter-spacing:-1px;margin:6px 0 8px;color:#443566}.ranking-heading p{font-size:13px;color:#62657b;line-height:1.5}.ranking-heading .overline{color:#776392}
.ranking-caption{font-size:11px;line-height:1.6;color:#52656d;margin:15px 0}.record-summary{display:flex;justify-content:space-around;align-items:center;padding:20px 10px;border-radius:23px;background:linear-gradient(130deg,#56428a,#8261b9);color:#fff5dc;border:2px solid #b09ad1;box-shadow:0 5px #4d3e70}.record-summary>div{display:flex;flex-direction:column;gap:5px;text-align:center}.record-summary strong{font-size:34px}.record-summary small{font-size:14px;color:#dbcbf5}.record-summary span{font-size:11px}.summary-trophy{width:70px;height:70px;flex-shrink:0}
.record-list{display:grid;gap:14px}.delivery-card{background:#fffaf0;border:1px solid #dbcdb3;border-radius:18px;box-shadow:0 3px #d5c9b5;overflow:hidden}.delivery-card-heading{display:flex;align-items:center;gap:10px;padding:13px;border-bottom:1px dashed #dacbb7}.delivery-card-heading>div{flex:1;min-width:0}.delivery-card-heading h2{font-size:15px;margin:3px 0 0}.delivery-number{width:36px;height:38px;display:grid;place-items:center;background:#e2d8ee;border-radius:11px;font-size:17px;font-weight:800;color:#675285}.record-play{width:44px;height:44px;padding:12px;border:1px solid #c7d9c4;border-radius:12px;background:#e5f1dd;flex-shrink:0}.record-columns{display:grid;grid-template-columns:1fr 1fr;padding:14px 10px}.record-columns>div{display:flex;align-items:center;flex-direction:column;gap:6px}.record-columns>div+div{border-left:1px solid #e5d9c5}.record-columns>div>span:first-child{font-size:10px;color:#627278}.record-columns strong{font-size:21px}.record-columns small{font-size:10px;font-weight:400}.record-stars{display:flex;gap:3px}.record-stars svg{width:18px;height:18px;color:#c9c5b3}.record-stars .earned svg{color:#edb527;filter:drop-shadow(0 1px #a97a2d)}
.demo-pill{display:inline-block;font-size:9px;font-weight:800;letter-spacing:.6px;border:1px solid #9884b6;border-radius:20px;padding:6px 9px;background:#f0e9fc;color:#59497c}.challenge-ticket{position:relative;padding:20px;border-radius:22px;background:#fffbef;border:2px solid #dfc99c;box-shadow:0 6px #c0ac89}.ticket-top{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:13px}.ticket-stamp{font-size:24px;font-weight:900;color:#bc885d;border:2px dashed #c5a780;border-radius:7px;transform:rotate(7deg);padding:5px}.challenge-ticket h2{font-size:22px;color:#4f3e71;line-height:1.15}.challenge-ticket>p{font-size:12px;margin:9px 0 17px;color:#5f6d6c}.ticket-preview{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:12px;background:#286b83;border:4px solid #9bb7bb;border-radius:17px;max-width:238px;margin:18px auto;box-shadow:0 5px #1f5669;transform:rotate(-3deg)}.preview-parcel{aspect-ratio:1;border-radius:5px;display:grid;place-items:center;color:#4d5570;background:#d5ced6;box-shadow:inset 0 2px #ffffff77,0 2px #183f6644}.preview-parcel svg{width:65%;height:65%}.preview-parcel.color-0{background:#ffce4d}.preview-parcel.color-1{background:#55dcbe}.preview-parcel.color-2{background:#ef8ac4}.preview-parcel.color-3{background:#8fbdff}.preview-parcel.color-4{background:#ffb47a}.monochrome .preview-parcel{background:#ddd8cb}
.attempt-meter{display:flex;align-items:center;gap:7px;padding:17px 0;border-top:1px dashed #c9b990}.attempt-meter>span{display:grid;place-items:center;width:28px;height:28px;border:2px solid #bbd6c4;border-radius:50%;font-size:12px;color:#437069;background:#e5f2dc}.attempt-meter>span.used{background:#d2c4e3;color:#594773;border-color:#ab94bf}.attempt-meter>span.current{outline:2px solid #6b47a0;outline-offset:2px}.attempt-meter b{font-size:11px;margin-left:auto}.ticket-best{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px}.ticket-best>span:first-child{font-size:10px;color:#5e7173}.ticket-best strong{display:block;font-size:23px;color:#1e6972;margin-top:5px}.challenge-ticket>.primary,.full-width{width:100%}.rank-rules{margin:25px 0 20px}.rank-rules h2,.attempt-history h2{font-size:16px;margin-bottom:10px}.rank-rules p{font-size:12px;line-height:1.65;margin:8px 0}.attempt-history{background:#ffffff77;border-radius:15px;padding:16px;margin:20px 0}.attempt-history>div{display:flex;justify-content:space-between;font-size:12px;gap:10px;padding:9px 0;border-top:1px solid #d8dbc9}
.league-hero{text-align:center;position:relative;color:#fff4d3;background:radial-gradient(ellipse at 50% 30%,#ad82dd,#6c4eaa 60%,#493a78);border:2px solid #b997e1;border-radius:25px;padding:16px 16px 21px;box-shadow:0 6px #47366c;overflow:hidden}.league-emblem{width:117px;height:117px;margin:13px auto 4px;filter:drop-shadow(0 5px 6px #39274b88)}.league-hero h2{font-size:24px;margin:5px 0 18px}.league-path{display:flex;justify-content:center;gap:14px}.league-path>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:2px solid #c9addc;color:#d7c5eb;background:#58428a;font-size:11px;font-weight:800}.league-path>span.reached{background:#ffda6b;color:#62457d;border-color:#ffe7a7}.league-podium{display:flex;gap:8px;align-items:flex-end;padding:26px 5px 0;margin-bottom:15px}.podium-step{flex:1;min-width:0;text-align:center;border-radius:17px 17px 9px 9px;background:linear-gradient(#fdf5db,#e9d4a8);border:1px solid #cfb997;box-shadow:0 4px #c3aa8b;padding:16px 3px 12px;position:relative;display:flex;flex-direction:column;align-items:center;gap:5px}.podium-1{padding-top:30px;background:linear-gradient(#ffed9e,#f6c74c);border-color:#d2a13c}.podium-2{padding-top:9px}.podium-medal{background:#fff8de;border:2px solid #c1a06a;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:900}.podium-step strong{font-size:11px}.podium-step small{font-size:8px;letter-spacing:.4px}.podium-step>b{font-size:16px}.rank-notice{padding:14px 15px;border-radius:14px;background:#e1f0d5;border:1px solid #afc999;font-size:12px;font-weight:700;line-height:1.5;margin:17px 0}.league-table{display:grid;gap:8px;position:relative}.league-row{min-height:68px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d7d8cb;border-radius:15px;background:#fffaf0;box-shadow:0 2px #c8c9bd}.rank-number{font-size:17px;font-weight:900;width:24px;text-align:center;flex-shrink:0;color:#7c7a80}.promotion-zone .rank-number{color:#886214}.rank-avatar{width:36px;height:38px;display:grid;place-items:center;border-radius:12px;font-weight:900;background:#e2d5ee;color:#78528c;flex-shrink:0}.league-row:nth-child(3n) .rank-avatar{background:#c7e4e2;color:#356f7a}.league-row:nth-child(3n+1) .rank-avatar{background:#efd7c0;color:#945a51}.your-row{background:#fff0a3;border:2px solid #e7b84b;position:relative;z-index:2}.rank-name{flex:1;min-width:0}.rank-name strong{font-size:13px;display:block}.rank-name small{font-size:8px;letter-spacing:.5px;display:block;margin-top:4px;color:#65777a}.rank-score{font-size:18px;text-align:right;white-space:nowrap}.rank-score small{display:block;font-size:9px;font-weight:400;margin-top:2px}.league-actions{margin-top:22px;display:grid;gap:12px}.league-actions .ranking-caption{margin-top:0}.challenge-game-badge{font-size:11px;background:#eee5ff;color:#56417a;padding:10px 12px;border:1px solid #ad97d4;border-radius:11px;margin:0 0 12px;text-align:center;font-weight:700}
.promotion-art{height:155px;position:relative;display:grid;place-items:center;margin:16px 0}.promotion-badge{width:137px;height:137px;filter:drop-shadow(0 5px 3px #b48c7066)}.promotion-spark{position:absolute;left:calc(50% - 10px);top:calc(50% - 10px);font-size:25px;color:#d09825;opacity:0;pointer-events:none}.promotion-route{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;background:#e7d8f4;border-radius:15px;padding:78px 15px 15px;margin:20px 0;font-size:10px;min-height:112px}.promotion-route>span,.promotion-route>strong{width:80px}.promotion-route .courier-avatar{position:absolute;top:10px;left:calc(50% - 22px);width:44px;height:58px;transform:translateX(58px)}.promotion-route:before{content:"";position:absolute;left:22px;right:22px;top:68px;border-bottom:2px dashed #b7a0cc}.promotion-result p{font-size:13px}.promotion-result .quiet{font-size:12px}.promotion-result .demo-pill{margin-top:18px}
@media(max-width:560px){#ranking-screen{padding:22px 16px;min-height:calc(100dvh - 185px)}.courier-nav{padding-bottom:max(10px,env(safe-area-inset-bottom))}body .map-viewport{height:calc(100dvh - 342px);min-height:280px}}
@media(max-width:350px){#ranking-screen{padding:20px 12px}.ranking-heading h1{font-size:26px}.challenge-ticket{padding:15px}.ticket-top{gap:6px}.demo-pill{font-size:8px;letter-spacing:0}.league-row{gap:7px;padding:9px}.rank-score{font-size:16px}.rank-name strong{font-size:12px}.league-path{gap:12px}.record-summary strong{font-size:29px}.summary-trophy{width:56px}.ticket-best strong{font-size:20px}.courier-nav button{font-size:10px}}
@media(max-width:560px){.shelves[data-count="3"] .slot{height:clamp(60px,8.1dvh,76px);aspect-ratio:auto}.shelves[data-count="3"] .slot .parcel{height:100%;aspect-ratio:auto}.shelves[data-count="3"] .stamp{width:min(60%,53px);padding:10%}}
.icon-button{color:#194d5d}
.result-stars .earned svg,.tile-stars .earned svg{color:#efb520;filter:drop-shadow(0 2px #af7f1a)}
.result-stars .earned:nth-child(2) svg{width:49px;height:49px}
:root{font-family:"Trebuchet MS","Segoe UI",sans-serif;color:#194d5d;background:#164f60;font-synthesis:none;--ink:#194d5d;--gold:#ffcf44}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 20% 12%,#348b91,transparent 60%),radial-gradient(ellipse at 90% 70%,#256c77,transparent 65%),#164f60;padding:24px 12px}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;color:inherit;touch-action:manipulation;border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #1174a5;outline-offset:4px}button:hover:not(:disabled){filter:brightness(1.04)}button:active:not(:disabled){translate:0 2px}button svg{pointer-events:none}svg{display:block;width:100%;height:100%;overflow:visible}[hidden]{display:none!important}h1,h2,p{margin:0}ol{list-style:none;margin:0;padding:0}
.game-shell{max-width:520px;margin:auto;background:#d4eadc;border:2px solid #95c9ba;border-radius:30px;box-shadow:0 15px 0 #113f50,0 28px 60px #082b4466;overflow:hidden}.masthead{height:91px;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:linear-gradient(140deg,#fff9e8,#eddbb9);box-shadow:inset 0 3px 1px #fff,0 4px 0 #bda985;position:relative;z-index:3;border-radius:27px 27px 18px 18px}.brand{display:flex;align-items:center;gap:10px;text-align:left;background:none;font-size:20px;font-weight:700;line-height:1.03;letter-spacing:-.7px;text-shadow:0 1px white}.brand strong{font-size:26px}.brand-emblem{font-family:Arial,sans-serif;width:43px;height:43px;display:grid;place-items:center;font-size:29px;background:linear-gradient(145deg,#65d8c6,#20758b);color:#ffe09b;border-radius:13px;box-shadow:inset 1px 2px 1px #d0ffe4,0 4px #17556b;transform:rotate(-6deg)}.header-actions{display:flex;gap:9px}.icon-button{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;padding:11px;background:linear-gradient(140deg,#fff8e6,#e7d0a8);border:1px solid #d5b991;border-radius:13px;box-shadow:inset 0 2px 1px #fff,0 3px 0 #b79d78}.overline{font-size:10px;font-weight:800;letter-spacing:1.3px;display:block}.primary,.secondary{border-radius:17px;min-height:48px;padding:12px 19px;font-weight:800;display:inline-flex;justify-content:center;align-items:center;gap:10px}.primary{background:linear-gradient(150deg,#ffe98a,#ffd044 55%,#f4b820);border:1px solid #dfac25;box-shadow:inset 0 3px 1px #fff5bd,0 5px 0 #c69119,0 8px 12px #806d3526;color:#174959}.primary svg{width:23px;height:23px}.secondary{background:#e6f1e6;border:1px solid #b5d4c5;box-shadow:0 3px #a6c6b5}.quiet{background:transparent;text-decoration:underline;text-underline-offset:4px;padding:12px;min-height:44px}.save-line{display:flex;justify-content:space-between;gap:12px;background:#e9f0de;padding:11px 17px;font-size:10px;color:#4a6c6c;line-height:1.4}.save-error{color:#963f27;font-weight:700}
/* The map is a real scrollable scene, not a background screenshot. */
.route-heading{display:flex;justify-content:space-between;align-items:center;padding:17px 21px 12px;background:#d4eadc}.route-heading h1{font-size:15px;letter-spacing:-.4px;margin-top:4px}.total-stars{background:#fff2c8;border:1px solid #b7c898;border-radius:20px;display:flex;gap:4px;align-items:center;padding:7px 10px;white-space:nowrap;font-size:13px;font-weight:800}.total-stars svg{width:18px;height:18px;color:#e5ad20;filter:drop-shadow(0 1px #aa8417)}.map-viewport{height:clamp(365px,65dvh,610px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7db5a6 #c8e7d6;background:linear-gradient(#bfe4da,#d5e9c4);position:relative;box-shadow:inset 0 4px 12px #316e6620}.map-canvas{position:relative;height:1480px;isolation:isolate}.map-road{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.map-tile{position:absolute;transform:translate(-50%,-50%);width:68px;height:62px;border-radius:21px;background:linear-gradient(145deg,#e7f0dc,#9abbb2);border:2px solid #92b2aa;box-shadow:inset 0 3px 1px #f8ffed,0 6px #7a9e9b,0 12px 12px #174c4522;font-size:27px;font-weight:900}.tile-lock{position:absolute;right:-5px;bottom:-5px;width:23px;height:23px;background:#eff0df;border-radius:8px;padding:4px;box-shadow:0 2px #74938c}.map-tile[aria-disabled=true]{color:#527d81;cursor:default}.map-tile.done{background:linear-gradient(145deg,#98eee0,#36b4b0 60%,#278b95);border-color:#3d9e9f;box-shadow:inset 0 3px #d3fff0,0 6px #237384,0 12px 12px #174c4530}.map-tile.selected{background:linear-gradient(145deg,#ffeaa0,#ffd044 65%,#e8ae1c);border-color:#ffd146;box-shadow:inset 0 3px #fff8c9,0 6px #c79420,0 0 0 4px #fff8c9,0 0 27px #ffdb60}.tile-number{display:block;background:#fff4d6;border-radius:12px;margin:0px 5px 4px;box-shadow:0 2px #b6b99777;line-height:37px}.tile-stars{position:absolute;bottom:-19px;left:50%;translate:-50%;display:flex;padding:3px 5px;background:#f6e9ca;border-radius:9px;box-shadow:0 2px #b3a783}.tile-stars svg{width:15px;height:15px;color:#bcbba1}.tile-stars .earned{color:#eaae1c;filter:drop-shadow(0 1px #aa7c14)}.map-character{position:absolute;width:78px;height:100px;transform:translateX(-50%);pointer-events:none;z-index:2;filter:drop-shadow(0 3px 2px #2c635244)}.walking .robot-leg{transform-box:fill-box;transform-origin:50% 0%;animation:step .24s ease-in-out infinite alternate}.walking .right-leg{animation-delay:-.24s}.walking .robot-body{animation:bob .24s ease-in-out infinite alternate}.map-prop{position:absolute;pointer-events:none;filter:drop-shadow(0 3px 1px #32644818)}.map-label{position:absolute;font-size:10px;font-weight:900;letter-spacing:2px;color:#4f8474;text-transform:uppercase}.map-dock{display:flex;align-items:center;gap:12px;padding:15px;background:linear-gradient(135deg,#fff4db,#ecd7b2);box-shadow:0 -3px #b2c9aa,inset 0 3px #fff8e5;position:relative;z-index:3;min-height:91px}.dock-index{width:43px;min-height:49px;padding:3px;background:none;flex-shrink:0}.dock-index svg{height:26px;margin:auto}.dock-index span{display:block;font-size:9px;font-weight:700;margin-top:3px}.map-selection{flex:1;min-width:0}.map-selection strong{display:block;font-size:15px;line-height:1.2;margin:3px 0}.map-selection small{font-size:10px}.map-dock>.primary{min-width:90px;font-size:20px;padding:12px 16px}.map-message{text-align:center;background:#d7eacb;font-size:12px;line-height:1.5;padding:0 14px}.map-message:not(:empty){padding-block:8px}
/* Paper parcels, with a redundant pattern and a large physical stamp. */
#game-screen{padding:16px 20px 18px;background:radial-gradient(ellipse at 20% 20%,#3e9b9b,transparent 70%),#236c7a;color:#fff4d8}.game-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.game-heading>div{flex:1;min-width:0}.game-heading h1{font-size:20px;letter-spacing:-.5px;margin-top:2px}.game-heading .overline{color:#c4e6d9}.game-heading .icon-button{width:37px;height:37px;padding:9px;border-radius:11px}.score-panel{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(130deg,#174c5d,#226170);border:1px solid #174c5b;border-radius:17px;padding:10px 15px;box-shadow:inset 0 2px 3px #0e354d55,0 1px #60ada7}.score-main .overline{color:#a7d8cf;font-size:9px}.score-main strong{font-size:29px;line-height:1.1;color:#fff0ba;text-shadow:0 2px #113b4a}.score-targets{display:flex;gap:13px}.score-target{display:flex;flex-direction:column;align-items:center;font-size:10px;color:#b4d4cd;gap:2px}.score-target svg{width:22px;height:22px;color:#4d7c83;filter:drop-shadow(0 1px #123b4b)}.score-target.earned svg{color:#ffcf44;filter:drop-shadow(0 2px #ae7b18)}.score-target.earned{color:#fff2cb}.puzzle-note{font-size:12px;line-height:1.4;margin:11px 2px;color:#e3f3df;min-height:17px}.delivery{display:flex;gap:18px;align-items:center;min-height:115px;padding:4px 7px 19px;position:relative}.delivery:after{content:"";position:absolute;height:13px;bottom:4px;left:0;right:0;background:linear-gradient(#f8e8c4,#d7bb8d);border-radius:8px;box-shadow:0 4px #aa9270,0 7px 8px #113e4933}.current-wrap{width:81px;flex-shrink:0;position:relative;padding-top:24px}.current-label{position:absolute;top:0;left:50%;translate:-50%;white-space:nowrap;border-radius:6px;background:#ffe17c;color:#1d5260;font-size:10px;font-weight:900;letter-spacing:1px;padding:3px 7px;box-shadow:0 2px #c99e39}.current-label:after{content:"";position:absolute;top:100%;left:45%;border:4px solid transparent;border-top-color:#ffe17c}#current{filter:drop-shadow(0 0 7px #ffcf4466)}.queue-wrap{flex:1;min-width:0}.queue-heading{display:flex;justify-content:space-between;color:#c8e7dd;font-size:10px;margin-bottom:8px;gap:8px}.queue-heading .overline{font-size:9px}#queue{display:flex;flex-wrap:wrap;gap:6px;align-content:center;min-height:34px}#queue li{width:31px;flex-shrink:0}#queue .empty-queue{width:auto;color:#d8ece1;font-size:11px}.parcel{aspect-ratio:1.06;position:relative;display:grid;place-items:center;border-radius:13px;border:1px solid var(--edge);background-color:var(--paper);background-image:var(--pattern);box-shadow:inset 2px 3px 2px #ffffff78,inset -3px -4px 2px #00000018,0 4px 0 var(--edge),0 6px 5px #0d3e4c2b;isolation:isolate;color:#1b4b59;overflow:hidden}.family-A{--paper:#f9c74c;--edge:#c8942d;--pattern:repeating-linear-gradient(135deg,#fff1a64d 0 12px,#e6a32333 12px 23px)}.family-B{--paper:#48bdb0;--edge:#298b8b;--pattern:radial-gradient(circle at center,#b7eadb 21%,transparent 25%);background-size:17px 17px}.family-C{--paper:#b789c8;--edge:#805fa2;--pattern:repeating-linear-gradient(0deg,transparent 0 14px,#f4d5eb77 14px 16px),repeating-linear-gradient(90deg,transparent 0 14px,#f4d5eb77 14px 16px)}.parcel:before{content:"";position:absolute;top:0;bottom:0;left:43%;width:18%;background:linear-gradient(90deg,#f7e4b6ba,#fff1ccbb 20%,#d8bb80bb);border-inline:1px solid #fff5d988;z-index:-1}.parcel:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 2px 1px #fff8,inset -2px -3px 2px #0001;pointer-events:none}.stamp{width:60%;aspect-ratio:1;border-radius:50%;background:linear-gradient(145deg,#fff6d7,#f0d9a6);padding:12%;box-shadow:0 2px 1px #87692d33,inset 0 1px #fff7e6;display:grid;place-items:center}.small.parcel{border-radius:6px;box-shadow:inset 1px 2px 1px #fff7,0 2px var(--edge);background-size:10px 10px}.small.family-A{background-size:auto}.small.family-C{--pattern:repeating-linear-gradient(0deg,transparent 0 6px,#f4d5ebaa 6px 7px),repeating-linear-gradient(90deg,transparent 0 6px,#f4d5ebaa 6px 7px)}.small .stamp{width:70%;padding:10%}
/* Larger levels have two rows of three-slot trays, keeping the entire board visible. */
.machine{position:relative;padding:12px 12px 19px;margin-top:9px;border-radius:23px;background:linear-gradient(130deg,#fff2d7,#e9d3ad);border:2px solid #e3cda7;box-shadow:inset 0 4px 1px #fff9e7,0 7px 0 #b49a74,0 12px 14px #0d354934;color:var(--ink)}.board-heading{font-size:10px;font-weight:800;display:flex;justify-content:space-between;gap:8px;margin:0 3px 10px}.board-heading #shipped{font-weight:400}.shelves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shelf{padding:9px 8px 7px;min-width:0;border-radius:16px;background:linear-gradient(130deg,#c6af8e,#ead8b4 55%,#f4e7cd);border:2px solid #c5ad8b;box-shadow:inset 2px 4px 7px #755d3f40,0 2px #fff7e6;display:flex;flex-direction:column;position:relative}.shelf.available:hover,.shelf.available:focus-visible{border-color:#ecc146;box-shadow:inset 0 0 0 2px #ffefab,0 0 0 2px #ffdf6d}.shelf.available{border-color:#b6aa7b}.shelf-label{font-size:9px;font-weight:800;line-height:1.2;margin-bottom:5px;opacity:.7}.shelf-slots{display:flex;flex-direction:column;gap:7px}.slot{display:block;aspect-ratio:1.06;position:relative;min-width:0;border-radius:10px}.slot:not(.filled){background:#c7b69422;border:1px solid #baaa8750}.slot:not(.filled):after{content:"";width:6px;height:6px;border-radius:50%;background:#b09f7b77;position:absolute;left:50%;top:50%;translate:-50% -50%}.shelf-foot{font-size:9px;height:12px;margin-top:8px;display:flex;justify-content:center;align-items:center;gap:3px}.shelf-foot svg{width:10px;height:10px}.shelf[aria-disabled=true] .shelf-foot{color:#827359}.shelves[data-count="4"],.shelves[data-count="5"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shelves[data-count="4"] .shelf-slots,.shelves[data-count="5"] .shelf-slots{flex-direction:row-reverse;gap:5px}.shelves[data-count="4"] .slot,.shelves[data-count="5"] .slot{flex:1}.shelves[data-count="4"] .shelf,.shelves[data-count="5"] .shelf{padding:7px 7px 6px}.shelves[data-count="4"] .parcel,.shelves[data-count="5"] .parcel{border-radius:7px;box-shadow:inset 1px 2px 1px #fff7,0 3px var(--edge)}.shelves[data-count="4"] .shelf-label,.shelves[data-count="5"] .shelf-label{margin-bottom:7px}.shelves[data-count="5"] .shelf:last-child{grid-column:1/-1;width:calc(50% - 6px);justify-self:center}.machine-rivet{position:absolute;bottom:6px;width:7px;height:7px;background:linear-gradient(140deg,#fff,#ad997a);border-radius:50%;border:1px solid #bda786}.rivet-left{left:9px}.rivet-right{right:9px}.actions{display:flex;gap:12px;align-items:center;margin-top:20px}.undo-button{flex:1;font-size:17px}.actions .secondary{font-size:11px;padding:8px;min-height:44px;background:#287584;color:#e6f1dd;border-color:#4a9195;box-shadow:0 3px #174b60}.actions .icon-button{width:47px;height:47px}#feedback{font-size:11px;line-height:1.5;color:#e4f0d7;margin:13px 3px 0;min-height:33px}#feedback.warning{background:#fff0c9;color:#744322;padding:8px 10px;border-radius:10px}#completed{margin-top:10px;text-align:center}.parcel-flight{position:fixed;z-index:20;pointer-events:none;transform-origin:top left}.parcel-flight .parcel{width:100%;height:100%}.point-pop{position:fixed;z-index:21;pointer-events:none;transform:translate(-50%,-50%);text-align:center;color:#fff8d9;background:#215d67;border:2px solid #ffdf74;padding:8px 15px;border-radius:14px;box-shadow:0 6px 15px #0d3d4b44;font-size:25px;font-weight:900}.point-pop small{display:block;font-size:9px;letter-spacing:1px}.monochrome .parcel{filter:grayscale(1)}.monochrome .family-A{--paper:#d6d6d6;--edge:#707070;--pattern:repeating-linear-gradient(135deg,#c9c9c9 0 9px,#999 9px 14px)}.monochrome .family-B{--paper:#d8d8d8;--edge:#777;--pattern:radial-gradient(circle,#777 22%,transparent 25%)}.monochrome .family-C{--paper:#d8d8d8;--edge:#777;--pattern:repeating-linear-gradient(0deg,transparent 0 12px,#888 12px 14px),repeating-linear-gradient(90deg,transparent 0 12px,#888 12px 14px)}
dialog{border:2px solid #e1c89e;border-radius:25px;background:linear-gradient(145deg,#fff9e8,#f0e0bf);color:var(--ink);padding:30px 24px 25px;width:min(440px,calc(100% - 28px));max-height:90dvh;overflow:auto;box-shadow:0 9px 0 #a58f6b,0 25px 80px #08293f66}dialog::backdrop{background:#103f51ad;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:10px;top:10px;width:33px;height:33px;padding:9px;min-height:33px}#dialog-content h2{font-size:24px;line-height:1.15;padding-right:18px;margin:10px 0 15px}#dialog-content p{line-height:1.6;font-size:14px;margin:12px 0}#dialog-content ul{font-size:14px;line-height:1.6;padding-left:21px}#dialog-content>.primary,#dialog-content>.secondary{width:100%;margin-top:12px}.setting{display:flex;align-items:center;gap:12px;padding:16px 0;font-size:15px;border-bottom:1px solid #d9c9a9}.setting input{width:23px;height:23px;accent-color:#267c82}.points-table{width:100%;border-collapse:collapse;font-size:13px;margin:16px 0}.points-table th,.points-table td{padding:11px 4px;border-bottom:1px solid #d9c9a9;text-align:left}.points-table td:last-child{text-align:right;font-weight:900}.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.level-button{background:#f8efd9;border:1px solid #d1be98;border-radius:13px;min-height:85px;padding:8px;font-size:11px;box-shadow:0 3px #c1ad87}.level-button strong{display:block;font-size:21px;margin-bottom:4px}.level-button.done{background:#c3e5d7;border-color:#8fc2b3}.result-robot{width:86px;height:108px;margin:-10px auto 0}.result-stars{display:flex;justify-content:center;gap:9px;margin:9px auto 15px}.result-stars svg{width:39px;height:39px;color:#b6b6a0;filter:drop-shadow(0 3px #8e8f8033)}.result-stars .earned{color:#efb520;filter:drop-shadow(0 3px #b77f1c)}.result-stars .earned:nth-child(2){width:49px;height:49px;margin-top:-7px}.result{text-align:center}.result h2{padding:0!important}.result-score{font-size:47px;font-weight:900;line-height:1;color:#1d6471}.result-breakdown{display:flex;gap:8px;justify-content:space-between;margin:18px 0;font-size:11px}.result-breakdown>span{flex:1;background:#e5e2c8;padding:10px 4px;border-radius:10px}.result-breakdown b{display:block;font-size:18px;margin-top:4px}.result .primary,.result .secondary{width:100%;margin-top:12px}.result small{display:block;color:#607a78;font-size:11px;margin-top:8px}.legend{display:flex;gap:15px;width:80%;margin:20px auto}.legend>.parcel{flex:1}.score-explainer{font-size:12px!important;color:#557777}
@keyframes step{from{transform:rotate(-15deg)}to{transform:rotate(15deg)}}@keyframes bob{from{transform:translateY(0)}to{transform:translateY(-3px)}}
@media(max-width:560px){body{padding:0;background:#236c7a}.game-shell{width:100%;border:0;border-radius:0;box-shadow:none;min-height:100dvh}.masthead{border-radius:0 0 17px 17px;height:77px;padding:11px 18px}.brand{font-size:17px}.brand strong{font-size:23px}.brand-emblem{width:38px;height:38px;font-size:26px}.header-actions{gap:8px}.header-actions .icon-button{width:39px;height:39px;padding:9px}.route-heading{padding:14px 18px 12px}.route-heading h1{font-size:13px}.map-viewport{height:calc(100dvh - 264px);min-height:330px;max-height:none}.map-dock{gap:9px;padding:13px 14px}.map-selection strong{font-size:13px}.map-dock>.primary{font-size:18px;min-width:81px;padding-inline:11px}#game-screen{padding:14px 16px 16px}.game-heading h1{font-size:19px}.shelves{gap:8px}.shelf{padding-inline:6px}.delivery{gap:13px}.current-wrap{width:75px}.parcel{border-radius:11px}.machine{padding:10px 10px 18px}.score-targets{gap:12px}.save-line{font-size:9px;padding-inline:15px}.actions{gap:10px}.shelves[data-count="4"],.shelves[data-count="5"]{gap:11px}.shelves[data-count="5"] .shelf:last-child{width:calc(50% - 5.5px)}}
@media(max-width:350px){#game-screen{padding-inline:11px}.brand{gap:7px}.brand-emblem{width:33px;height:36px}.brand strong{font-size:21px}.header-actions{gap:6px}.masthead{padding-inline:13px}.game-heading{gap:9px}.game-heading h1{font-size:17px}.current-wrap{width:68px}#queue li{width:27px}#queue{gap:5px}.shelf{padding-inline:4px}.shelves{gap:6px}.board-heading{font-size:9px}.shelf-foot{font-size:8px}.shelves[data-count="4"] .shelf,.shelves[data-count="5"] .shelf{padding-inline:5px}.map-selection strong{font-size:11px}.score-targets{gap:10px}.actions .secondary{font-size:10px}.undo-button{font-size:15px}.map-dock{gap:7px;padding-inline:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important}

/* v0.3: brighter toy materials; the parcel patterns remain redundant cues. */
body{background:radial-gradient(ellipse at 12% 8%,#35d5c7,transparent 53%),radial-gradient(ellipse at 95% 90%,#8d5add,transparent 60%),#206aab}
.game-shell{border-color:#84eee2;box-shadow:0 12px 0 #174976,0 28px 70px #18255655}
.masthead{background:linear-gradient(125deg,#fffbed,#fff0cf 68%,#ffe3e0);box-shadow:inset 0 3px #fff,0 4px #dda969}
.brand-emblem{background:linear-gradient(145deg,#43f3cd,#159bbe);box-shadow:inset 1px 2px 1px #d0fff4,0 4px #2175a4}
#game-screen{background:radial-gradient(ellipse at 0 5%,#44d2cf,transparent 58%),radial-gradient(ellipse at 100% 92%,#9276dd,transparent 65%),linear-gradient(155deg,#159caf,#3a71bd)}
.score-panel{background:linear-gradient(120deg,#443a91,#6c3ca5 65%,#a33d9f);border-color:#67439e;box-shadow:inset 0 2px 2px #c49aff66,0 3px #225394,0 7px 14px #184c8b33}
.score-main strong{color:#fff36b;text-shadow:0 2px #774582}
.score-main .overline,.score-target{color:#f3dcff}.score-target svg{color:#a395cd}
.score-target.earned svg{color:#ffdb35;filter:drop-shadow(0 2px #b56a11)}.score-target.earned{color:#fff4b1}
.game-heading .overline{color:#e5ffeb}.puzzle-note{color:#fffce5;text-shadow:0 1px #276d9877}
.family-A{--paper:#ffca28;--edge:#db8e19;--pattern:repeating-linear-gradient(135deg,#fff49e99 0 12px,#ffac2266 12px 23px)}
.family-B{--paper:#1bd9b1;--edge:#098d91;--pattern:radial-gradient(circle at center,#a1ffe3 21%,transparent 25%)}
.family-C{--paper:#e47ee5;--edge:#a84cb7;--pattern:repeating-linear-gradient(0deg,transparent 0 14px,#ffd6ff99 14px 16px),repeating-linear-gradient(90deg,transparent 0 14px,#ffd6ff99 14px 16px)}
.stamp{background:linear-gradient(145deg,#fffef0,#fff0ba);box-shadow:0 2px 2px #8f641f55,inset 0 2px #fff}
.machine{background:linear-gradient(140deg,#fff9dd,#ffe6b6);border-color:#ffe3a2;box-shadow:inset 0 4px #fffefa,0 7px #d5a465,0 12px 18px #30449344}
.shelf{background:linear-gradient(140deg,#d6b982,#f5dfac 55%,#fff0cd);border-color:#cdb16f}.shelf.available{border-color:#cfb372}
.shelf.available:hover,.shelf.available:focus-visible{border-color:#ffb826;box-shadow:inset 0 0 0 2px #fff1a4,0 0 0 3px #ffdb54,0 0 18px #ffdb5488}
.primary{background:linear-gradient(150deg,#fff68d,#ffcf28 50%,#ffb72a);border-color:#f2b51e;box-shadow:inset 0 3px #fffbbf,0 5px #d68c13,0 8px 13px #8b6b4933}
.actions .secondary{background:#4162ad;border-color:#89c2ee;box-shadow:0 3px #334c8f;color:#fff9e5}
.route-heading{background:linear-gradient(110deg,#c7f6cf,#aeeae7)}.game-shell{background:#c6f3cf}
.map-viewport{background:radial-gradient(ellipse at 12% 30%,#e4fba8,transparent 60%),linear-gradient(#9edfdc,#c6ed9c)}
.map-tile.done{background:linear-gradient(140deg,#8bffe4,#21d4b1 55%,#11a5a4);border-color:#48c7ad;box-shadow:inset 0 3px #ddfff3,0 6px #118b95,0 12px 15px #28736933}
.map-tile.selected{background:linear-gradient(145deg,#fff394,#ffd333 60%,#ffb928);border-color:#ffdc4c;box-shadow:inset 0 3px #fffbc4,0 6px #d7911a,0 0 0 4px #fff3be,0 0 24px #ffdb60}
.map-prop{filter:saturate(1.35) drop-shadow(0 3px 1px #32644818)}.map-dock{background:linear-gradient(135deg,#fff6d6,#ffe2ae)}
.result-score{color:#8440a9}.result-stars .earned svg{color:#ffce27}
.delivery-effects{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:30;contain:strict}
.fx-parcel{position:absolute;transform-origin:top left}.fx-parcel .parcel{width:100%;height:100%}
.fx-bit{position:absolute;border-radius:3px;box-shadow:0 1px 3px #fff8}.fx-bit.star-bit{clip-path:polygon(50% 0,61% 34%,100% 38%,70% 61%,80% 100%,50% 78%,20% 100%,30% 61%,0 38%,39% 34%);border-radius:0}
.fx-ring{position:absolute;width:92px;height:92px;border:4px solid #fff4a0;border-radius:50%;box-shadow:0 0 20px #ffea7a88,inset 0 0 12px #fff5}
.fx-ring.jackpot{border:6px solid #fff4a5;box-shadow:0 0 25px #ffd52eaa,inset 0 0 18px #ffed86}
.reward-toast{position:absolute;width:190px;padding:10px 14px 12px;border:2px solid #fff4ba;border-radius:23px;background:linear-gradient(135deg,#286ba9,#4d4aad);box-shadow:0 5px #263d8655,0 12px 25px #32257744;text-align:center;color:#fff9de}
.reward-toast span{font-size:11px;font-weight:900;letter-spacing:1px;white-space:nowrap}.reward-toast strong{display:block;font-size:45px;line-height:1.1;color:#fff48a;text-shadow:0 3px #a65086}
.reward-toast small{font-size:11px;font-weight:700;color:#fff5e0}
.reward-toast.jackpot{width:216px;background:linear-gradient(135deg,#a352e7,#d748bb 60%,#f7839d);border:3px solid #fff49a;box-shadow:0 5px #8f409c,0 0 24px #ffd34a66,0 12px 28px #42257e44}
.reward-toast.jackpot strong{font-size:61px;color:#ffec45;text-shadow:0 3px #be5c59,0 0 15px #fff36c77}
@media(max-width:560px){.game-shell{box-shadow:none}body{background:#337bbc}}

/* v0.4: original tool badges and a visible, entirely free test wallet. */
.power-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:4px 0 8px}.power-heading>.overline{font-size:9px;color:#eafff6}
.coin-wallet{display:flex;align-items:center;gap:7px;min-height:44px;padding:5px 10px;border:1px solid #ffdf71;border-radius:16px;background:linear-gradient(135deg,#fff1ac,#ffd36e);color:#4b3a29;box-shadow:0 3px #c58b37;font-size:16px}.coin-wallet small{font-size:8px;font-weight:900;letter-spacing:.5px}.coin-wallet>span:first-child{color:#ad660c;text-shadow:1px 1px #fff4bf}.coin-wallet>span:last-child{display:grid;place-items:center;background:#fff6d7;width:24px;height:24px;border-radius:8px;font-weight:900}
.power-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:13px}.power-button{display:grid;grid-template-columns:28px 1fr;align-items:center;column-gap:6px;row-gap:2px;min-height:64px;padding:9px 7px;border-radius:16px;background:linear-gradient(135deg,#c1fff1,#62e2d1);border:1px solid #caffee;box-shadow:inset 0 2px #ffffff88,0 4px #187f9e;color:#174b67;text-align:left}.power-button svg{grid-row:1/3;width:27px;height:27px}.power-button b{font-size:11px;overflow-wrap:anywhere}.power-button small{font-size:10px}.power-button:nth-child(2){background:linear-gradient(135deg,#f6d4ff,#d8a0ff);border-color:#f6d2ff;box-shadow:inset 0 2px #ffffff88,0 4px #6d58b6}.power-button:nth-child(3){background:linear-gradient(135deg,#ffdfd5,#ffb4be);border-color:#ffe1d5;box-shadow:inset 0 2px #ffffff88,0 4px #b75992}
.power-mode{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff4c9;color:#244c69;padding:8px 10px;border-radius:13px;font-size:12px;line-height:1.4;margin:9px 0}.power-mode .secondary{font-size:11px;padding:8px;min-height:44px;flex-shrink:0}
.pocket-tray{display:flex;align-items:center;gap:10px;background:#29478480;padding:8px 10px;border:1px dashed #ffe2a7;border-radius:15px;margin:12px 0}.pocket-tray #pocket-parcel{width:34px;flex-shrink:0}.pocket-tray>span{flex:1;min-width:0}.pocket-tray b{font-size:12px;display:block}.pocket-tray small{font-size:10px;display:block;margin-top:3px}.pocket-tray .secondary{font-size:11px;min-height:44px;padding:8px}
.shelf.power-source{border-color:#9751bd;box-shadow:inset 0 0 0 2px #dfbcff}.shelf.power-hint{border-color:#1378a4;box-shadow:inset 0 0 0 3px #fff99e,0 0 0 3px #2ddac1,0 0 16px #3bdedc}.shelf.power-hint .shelf-label{font-weight:900;color:#005a81}
.wallet-balance{font-size:38px;font-weight:900;color:#8440a9}.wallet-balance small{font-size:13px}.power-guide li{margin:10px 0}.assisted-result{font-size:12px!important;font-weight:700;color:#8452a3}
.coin-wallet,.power-mode .secondary,.pocket-tray .secondary{min-height:46px}
.pocket-tray .secondary{color:#194d5d;background:#fff1c9;border-color:#e2c58d;box-shadow:0 3px #bc9e63}
@media(max-width:420px){.power-button{grid-template-columns:1fr;justify-items:center;text-align:center;padding:7px 3px;gap:3px}.power-button svg{grid-row:auto;width:23px;height:23px}.power-button b{font-size:11px}.power-button small{font-size:10px}.puzzle-note{margin-block:8px}.shelves[data-count="3"] .slot{height:clamp(51px,6.8dvh,65px)}}

/* v0.5: original match-3 parcel board. Symbols remain visible in every mode. */
#game-screen{padding:14px 16px 8px}
.goal-panel{display:flex;align-items:center;gap:12px;margin:12px 0 8px;padding:9px 12px;border-radius:19px;background:linear-gradient(140deg,#fffae2,#ffe9ba);box-shadow:0 4px #ce9d65;color:#194d5d}
.move-counter{min-width:55px;text-align:center;border-right:2px solid #dfc697;padding-right:12px}
.move-counter strong{font-size:31px;line-height:1;display:block;color:#744bb4}.move-counter span{font-size:9px;letter-spacing:1px;font-weight:900}.move-counter.low strong{color:#a72b58}
.goals{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.goal-chip{display:grid;grid-template-columns:34px auto;align-items:center;gap:6px;font-size:14px}.goal-chip.done b{color:#14745e}.goal-chip.done b:after{content:' ✓'}.goal-chip .package{width:34px;height:35px}.goal-tape{font-size:30px;color:#976325;text-align:center}
.score-panel{margin:10px 0;padding:8px 12px;min-height:65px}.score-main strong{font-size:28px}.score-targets{gap:12px}.score-target b{font-size:11px}
.match-machine{position:relative;padding:10px 9px 13px;background:linear-gradient(135deg,#fff6d9,#f1d7a2);border:2px solid #fff3c6;border-radius:23px;box-shadow:inset 0 3px #fffdf1,0 7px #ba8650,0 13px 19px #21486f44}
.match-machine .board-heading{padding:0 4px 9px;font-size:10px;color:#68583d}
.match-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:6px;background:#718ca6;border:2px solid #5a748f;border-radius:13px;position:relative;touch-action:none;user-select:none;isolation:isolate}
.match-cell{position:relative;aspect-ratio:1;min-width:0;padding:3px;background:#91a9bc;border-radius:8px;box-shadow:inset 0 2px 3px #3b607744;isolation:isolate}
.match-cell:nth-child(even){background:#a2b9c9}.match-cell:disabled{opacity:1}.match-cell:active{translate:none}
.match-cell{contain:layout style}
.incoming-impact{will-change:transform,opacity}
.match-cell.selected{outline:3px solid #fff799;outline-offset:0;z-index:2;background:#ffd454}
.match-cell.hinted{box-shadow:inset 0 0 0 2px #fff6a1,0 0 0 1px #fffecf}
.package{--face:#ffc93f;--edge:#b67e13;display:block;position:relative;width:100%;height:100%;aspect-ratio:1;border-radius:21%;background:linear-gradient(140deg,#ffffff6e,transparent 50%),var(--face);border:1px solid #fff8;box-shadow:inset 0 2px 1px #ffffff9c,inset -2px -4px 1px #00000012,0 3px var(--edge),0 4px 3px #1b345c55;color:#63461c}
.package-tape{position:absolute;top:1px;left:39%;width:24%;height:96%;background:#fff4;opacity:.8}
.package-symbol{position:absolute;inset:22%;background:#fff6dc;color:#554630;border-radius:30%;padding:11%;box-shadow:0 2px 1px #0002;z-index:1}
.color-1{--face:#36dfbe;--edge:#128f88}.color-2{--face:#fa7bc0;--edge:#b1448d}.color-3{--face:#68b7ff;--edge:#356bbf}.color-4{--face:#ffa861;--edge:#bc6329}
.special-badge{position:absolute;z-index:3;right:-3px;bottom:-4px;min-width:19px;height:19px;display:grid;place-items:center;background:#fff6bd;color:#503371;border:1px solid #805591;border-radius:6px;font-size:16px;line-height:1;box-shadow:0 1px 3px #382e6966}
.special-h:after,.special-v:after{content:'';position:absolute;inset:44% -3px;background:#fffbeb;height:4px;z-index:2;box-shadow:0 1px #855dab55}.special-v:after{inset:-3px 44%;height:auto;width:4px}
.special-bomb{outline:2px solid #fff4b0;outline-offset:-4px}.special-color{background:conic-gradient(#ffda44,#67efcf,#74bfff,#ed8be8,#ffda44);--edge:#875ac1}.special-color .package-symbol{inset:25%;padding:8%}
.special-cargo{--face:#fff6d8;--edge:#ac8e61;border:2px solid #deb34c}.special-cargo .package-symbol{inset:17%;padding:0;background:none;color:#365270;box-shadow:none}
.taped{background:repeating-linear-gradient(135deg,#e8c977 0 5px,#fae7b6 5px 10px)!important}
.floor-tape{position:absolute;bottom:-1px;left:0;right:0;height:10px;line-height:10px;font-size:9px;font-weight:900;background:#ffdf6e;color:#61491e;border-radius:3px;z-index:3;pointer-events:none}.tape-2 .floor-tape{background:#e8ad43}
.ramps{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:5px 8px 0;color:#a76b2a;font-weight:900;text-align:center}
.combo-toast{position:absolute;z-index:7;pointer-events:none;top:30%;left:15%;width:70%;padding:8px 14px;border:3px solid #fff7a0;border-radius:23px;background:linear-gradient(135deg,#7357c8,#c44daf);box-shadow:0 5px #6e3f8e77,0 0 24px #fff48c66;color:#fffbea;text-align:center;text-shadow:0 2px #68385b}
.combo-toast small{font-size:11px;font-weight:900}.combo-toast strong{display:block;font-size:38px;line-height:1.15;color:#fff48a}.combo-toast.big strong{font-size:50px}
.match-burst{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:6}.match-burst i{position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:3px}
#pocket-parcel{height:34px}.puzzle-note{font-size:11px;line-height:1.45;margin:13px 0 8px;min-height:30px}
.power-heading{margin:9px 0}.power-heading>.overline{letter-spacing:.6px;font-size:8px}.power-bar{margin-bottom:13px}.actions{margin-top:8px}
body.monochrome .match-machine .package,body.monochrome .goal-chip .package,body.monochrome #pocket-parcel .package{filter:grayscale(1)}
body.monochrome .special-color{background:repeating-conic-gradient(#fff2cb 0 45deg,#647d88 45deg 90deg)}
@media(max-width:560px){#game-screen{padding:10px 11px 8px}.masthead{height:77px}.game-heading h1{font-size:21px}.match-board{gap:3px;padding:5px}.match-cell{padding:3px}.score-targets{gap:10px}.score-panel{margin:9px 0}.power-button{min-height:63px}.puzzle-note{margin:12px 0 6px}}
@media(max-width:350px){#game-screen{padding-inline:7px}.match-machine{padding:9px 5px 11px}.match-board{gap:2px;padding:4px}.match-cell{padding:2px}.special-badge{font-size:13px;min-width:16px;height:16px}.goals{gap:5px}.goal-chip{grid-template-columns:28px auto;gap:3px;font-size:12px}.goal-chip .package{width:28px;height:30px}.move-counter{min-width:43px;padding-right:8px}.goal-panel{padding:8px;gap:8px}.score-targets{gap:8px}.board-heading{font-size:9px!important}}

/* v0.5.1: localized match feedback and separate silhouettes for each special. */
.match-fx-layer{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:6}
.match-fx-layer i,.match-score-flight-layer i{position:absolute;display:block;font-style:normal;pointer-events:none}
.fx-cell-flash,.fx-spark-star,.fx-score-star,.fx-spark-chip{background-image:url(assets/impact-sprites.png);background-size:800% 300%;background-position:var(--sprite-x,100%) var(--sprite-y,0%);background-repeat:no-repeat}
.fx-cell-flash{--sprite-y:50%;z-index:1}
.fx-spark-chip{--sprite-y:100%}
.fx-spark-chip,.fx-spark-star{z-index:4}
.fx-beam{z-index:2;border-radius:50%;background:linear-gradient(0deg,transparent,#ffec7d 25%,#fffef5 45% 55%,#ffec7d 75%,transparent);box-shadow:0 0 15px #fff5ac;transform-origin:center}
.fx-beam.vertical{background:linear-gradient(90deg,transparent,#ffec7d 25%,#fffef5 45% 55%,#ffec7d 75%,transparent)}
.fx-shockwave{z-index:2;border:4px double var(--fx-color);border-radius:23%;background:radial-gradient(ellipse,transparent 40%,#fff5b522)}
.fx-sorter-fan{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.fx-points{z-index:5;width:auto!important;height:auto!important;white-space:nowrap;font-size:30px;font-weight:900;color:#fffdf1;letter-spacing:-1px;text-shadow:0 2px #a34d8c,2px 0 #a34d8c,-2px 0 #a34d8c,0 -2px #a34d8c,0 4px 0 #672b72,0 5px 12px #35245899}
.fx-points.big{font-size:42px;color:#fff486;text-shadow:0 2px #b35b72,2px 0 #b35b72,-2px 0 #b35b72,0 -2px #b35b72,0 4px #833e82,0 7px 14px #49297599}
.match-score-flight-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:20;contain:strict}
#score{display:block;transform-origin:left center;font-variant-numeric:tabular-nums}
.combo-toast{top:4px;left:12%;width:76%;border-width:2px;border-radius:15px;padding:6px 10px;box-shadow:0 3px #6e3f8e66,0 0 15px #ffe88955}
.combo-toast small{display:block;font-size:11px;letter-spacing:.6px;line-height:1.2}
.combo-toast strong,.combo-toast.big strong{font-size:12px;line-height:1.2;margin-top:2px}
.combo-toast.big{background:linear-gradient(115deg,#a34dcc,#e356a8)}
@media(max-width:420px){.fx-points{font-size:25px}.fx-points.big{font-size:34px}.combo-toast small{font-size:10px}.combo-toast strong,.combo-toast.big strong{font-size:10px}.combo-toast{padding:5px 8px}}

/* v0.5.2: held parcel follows the pointer, adjacent target previews the swap. */
.match-cell{touch-action:none;-webkit-touch-callout:none;cursor:grab}
.match-board.dragging,.match-board.dragging .match-cell{cursor:grabbing}
.match-cell.drag-source{z-index:5;translate:none!important;outline:2px solid #fff2a0;outline-offset:0;background:#fff3a333}
.match-cell.drag-source .package{filter:brightness(1.14) drop-shadow(0 8px 5px #13374388);will-change:transform}
.match-cell.drag-target{outline:3px solid #fff4a5;outline-offset:-2px;background:#fff2a455;z-index:4}
.match-cell.drag-source .package,.match-cell.drag-target .package{pointer-events:none;transition:none}
.drag-help{margin:14px 0 0;text-align:center;font-size:11px;color:#fff1bc;line-height:1.4}
.setting-slider{display:flex;flex-direction:column;align-items:stretch;gap:9px}
.setting-slider>span{display:flex;justify-content:space-between;gap:16px}
.setting-slider input[type=range]{width:100%;min-height:32px;accent-color:#227a89}
.setting-slider select{font:inherit;border:1px solid #b5b29e;border-radius:10px;padding:10px;background:#fff8e8;color:#245464;min-height:44px}

/* Gameplay v0.8: the delivery stays beside the board; navigation follows play. */
body.game-mode .game-shell{padding-bottom:0}
body.game-mode .masthead{height:58px;min-height:58px;padding:5px 12px;gap:8px}
body.game-mode .brand-avatar{width:36px;height:42px}
body.game-mode .brand-avatar img{width:36px}
body.game-mode .total-stars{font-size:17px;padding:4px 8px}
body.game-mode .total-stars svg{width:25px;height:28px}
body.game-mode .map-wallet{min-height:44px}
body.game-mode .courier-nav{position:static;transform:none;width:100%;height:70px;margin-top:12px;padding:5px 8px;border-radius:22px 22px 0 0}
body.game-mode .courier-nav button span{width:28px;height:28px}
body.game-mode .game-heading{margin:4px 0;gap:8px}
body.game-mode .game-heading .icon-button{width:44px;height:44px}
body.game-mode .game-heading h1{font-size:19px;margin:2px 0}
body.game-mode .game-heading .overline{font-size:10px}
body.game-mode .goal-panel{display:flex;align-items:stretch;gap:10px;margin:6px 0;padding:8px 10px;border-radius:19px}
.goal-content{flex:1;min-width:0}
.goal-heading{color:#466c64;font-size:9px;font-weight:900;letter-spacing:1.1px;margin:0 0 4px}
body.game-mode #goals{display:grid;grid-template-columns:repeat(var(--goal-count),minmax(0,1fr));gap:7px;flex:1}
body.game-mode .goal-chip{display:grid;grid-template-columns:30px auto;grid-template-rows:25px 13px 4px;gap:0 5px;align-items:center;padding:4px 6px;background:#fff8e6;border:1px solid #e5d2a8;border-radius:11px;min-width:0}
.goal-symbol{display:grid;place-items:center;grid-row:1/3;width:30px;height:35px}
.goal-symbol .package{width:30px;height:35px}
.goal-tape{font-size:27px;color:#a66321;font-weight:900}
body.game-mode .goal-chip b{font-size:23px;line-height:1.1;white-space:nowrap;color:#215346}
body.game-mode .goal-chip small{font-size:9px;color:#547266;line-height:1}
body.game-mode .goal-chip.done{background:#e4f2d7;border-color:#8bb673}
body.game-mode .goal-chip.done b:after{content:none}
.goal-track{grid-column:1/-1;width:100%;height:4px;overflow:hidden;background:#dfdec7;border-radius:5px;margin-top:4px}
.goal-track i{display:block;width:100%;height:100%;background:#4ca978;border-radius:5px;transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.goal-hit{animation:delivery-hit .45s ease-out}
@keyframes delivery-hit{30%{transform:scale(1.08)}100%{transform:none}}
body.game-mode .move-counter{display:flex;flex-direction:column;justify-content:center;min-width:45px;padding-right:9px}
body.game-mode .move-counter b{font-size:30px;line-height:1}
body.game-mode .score-panel{display:grid;grid-template-columns:1fr auto;gap:3px 8px;min-height:44px;margin:6px 0 8px;padding:5px 11px;border-radius:14px}
body.game-mode .score-main{display:flex;align-items:baseline;gap:8px}
body.game-mode .score-main .overline{font-size:8px;letter-spacing:.8px}
body.game-mode .score-main strong{font-size:23px;line-height:1.1}
body.game-mode .score-targets{gap:10px;font-size:9px}
body.game-mode .score-targets svg{width:20px;height:22px}
.score-track{height:4px;grid-column:1/-1;background:#c7d7cf;border-radius:6px;overflow:hidden}
.score-track span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#ffc83d,#f2a31b);border-radius:6px;transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
body.game-mode .match-machine{padding:4px 8px 10px}
body.game-mode .board-heading{display:flex;justify-content:space-between;align-items:center;margin:0;padding:0 1px 5px;gap:8px;font-size:11px}
#combo-guide{display:flex;align-items:center;gap:7px;min-height:44px;min-width:72px;padding:4px 8px;border:0;border-radius:10px;background:#fff1cf;color:#325e60;font:inherit;font-weight:800;cursor:pointer}
#combo-guide b{display:grid;place-items:center;border-radius:50%;width:20px;height:20px;background:#267c88;color:#fff}
body.game-mode .drag-help{margin:6px 0 0;font-size:10px}
body.game-mode .puzzle-note{font-size:12px;line-height:1.4;min-height:28px;margin:7px 2px}
body.game-mode .puzzle-note.special-tip{background:#fff2c8;color:#29545a;padding:8px 10px;border-radius:12px}
body.game-mode .power-heading{margin:5px 0}
body.game-mode .power-heading>.overline{font-size:9px}
body.game-mode .power-button{min-height:57px;padding:5px 3px}
body.game-mode .power-button svg{width:23px;height:23px}
body.game-mode .power-button strong{font-size:11px}
body.game-mode .actions{margin-top:8px;gap:7px}
body.game-mode .actions button{min-height:44px}
body.game-mode #feedback{font-size:12px;line-height:1.45;min-height:24px;margin:8px 0}
.fx-goal-token{display:grid;place-items:center;width:36px;height:38px;padding:3px;background:#fff5d9;border:2px solid #fff;border-radius:12px;box-shadow:0 4px 10px #15454a55;z-index:4}
.fx-goal-token .goal-symbol{grid-row:auto;width:30px;height:32px}
.fx-goal-token .package{width:30px;height:32px}
.fx-goal-token b{position:absolute;right:-9px;bottom:-5px;background:#287955;color:#fff;font-size:12px;font-weight:900;padding:2px 4px;border-radius:7px;white-space:nowrap}
.combo-guide h2{font-size:25px;margin:12px 0 6px}
.guide-tag{font-size:10px;font-weight:900;letter-spacing:1px;color:#287d69}
.combo-recipe{display:grid;grid-template-columns:auto 1fr;gap:8px 10px;align-items:center;margin:12px 0;padding:12px 10px;border-radius:14px;background:#f8edcf}
.combo-recipe h3{grid-column:1/-1;margin:0;font-size:15px}
.combo-recipe p{font-size:12px;line-height:1.45;margin:0}
.recipe-visual{display:flex;align-items:center;gap:4px;min-width:150px}
.recipe-pattern{display:flex;gap:1px}
.recipe-pattern .package{width:18px;height:23px}
.recipe-pattern.pattern-t{display:grid;grid-template-columns:repeat(3,18px);grid-template-rows:repeat(3,18px);margin:0 17px}
.recipe-pattern.pattern-t .package{height:21px}
.recipe-result .package{width:34px;height:40px}
.combo-pairs{padding:12px 14px;list-style:none;border:1px solid #c4dacb;border-radius:14px;background:#edf5e8}
.combo-pairs li{display:flex;flex-direction:column;gap:2px;margin:9px 0;font-size:12px}
.combo-pairs h3{margin:0 0 9px;font-size:16px}
.combo-pairs p{font-size:12px;margin:7px 0;line-height:1.45}
.guide-note{font-size:12px;color:#536b60;line-height:1.5}
@media(max-width:370px){body.game-mode .masthead{padding-inline:8px;gap:4px}body.game-mode .total-stars{font-size:15px;padding:4px}body.game-mode .game-heading h1{font-size:17px}body.game-mode .goal-panel{gap:7px;padding:7px}body.game-mode #goals{gap:4px}body.game-mode .goal-chip{grid-template-columns:23px auto;padding:3px;gap:0 3px}body.game-mode .goal-chip b{font-size:18px}body.game-mode .goal-chip small{font-size:8px}.goal-symbol,.goal-symbol .package{width:23px}.combo-recipe{grid-template-columns:1fr;gap:7px}.recipe-visual{justify-self:center}body.game-mode .score-targets{gap:7px}body.game-mode .board-heading{font-size:10px}}
body.reduce-motion .goal-hit{animation:none}
body.reduce-motion .goal-track i,body.reduce-motion .score-track span{transition:none}
@media(prefers-reduced-motion:reduce){.goal-hit{animation:none}.goal-track i,.score-track span{transition:none}}
.test-panel-link{margin:10px 0 18px!important;background:#c4eee4}
.test-panel{font-size:14px}
.test-filters{display:grid;gap:12px;margin:18px 0}
.test-filters label{display:grid;gap:6px;font-weight:700}
.test-filters select{width:100%;min-width:0;min-height:44px;border:1px solid #95b9ae;border-radius:10px;background:#fffaf0;color:#174959;padding:9px;font:inherit}
.test-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.test-metrics>div{border:1px solid #a4caba;border-radius:14px;padding:12px;background:#e3f2e4}
.test-metrics dt{font-size:12px;line-height:1.35;min-height:32px}
.test-metrics dd{font-size:28px;font-weight:900;margin:5px 0 0}
.test-stars{background:#fff0b6;border:1px solid #e2bc65;border-radius:12px;padding:12px}
.test-definitions{margin:18px 0;border-bottom:1px solid #d1be98}
.test-definitions summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}
.test-warning{background:#fff0c9;border-left:4px solid #b37622;padding:10px}
.test-panel h3{font-size:18px;margin:24px 0 10px}
.test-panel h3 small{font-size:12px;font-weight:400}
.test-history article,.test-levels article{border:1px solid #c5d8c1;border-radius:12px;background:#fff9eb;padding:12px;margin:10px 0;overflow-wrap:anywhere}
.test-panel h4{font-size:14px;margin:0;line-height:1.6}
.test-outcome{display:inline-block;border-radius:6px;padding:1px 6px;background:#e6e3d5;font-size:12px}
.test-outcome.won{background:#c2edcf}.test-outcome.lost{background:#f5d5c6}
.test-history small{font-size:11px;color:#476665}
.test-panel>.primary{width:100%;margin-top:14px}
.test-effect-grid{display:grid;gap:10px;margin:12px 0}
.test-effect-grid .test-effect-card{margin:0;padding:12px;border:1px solid #9fcbbc;border-radius:12px;background:#edf8f2;min-width:0}
.test-effect-card p{margin:3px 0 10px;font-size:12px}
.test-effect-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.test-effect-card dt{font-size:11px;line-height:1.4;min-height:4.2em;overflow-wrap:anywhere}
.test-effect-card dd{margin:5px 0 0;font-size:23px;font-weight:900;color:#17564b}
.test-effect-missing{display:block;margin-top:10px;color:#76541d}
.test-effect-line{border-top:1px solid #d9dfca;padding-top:8px;font-size:12px}
.test-effect-details summary{min-height:44px;padding:12px 0;font-weight:700;cursor:pointer;font-size:13px}
.power-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
.power-button b{font-size:13px}.power-button small{font-size:11px}
.power-button:nth-child(4){background:linear-gradient(135deg,#fff1ab,#ffc85a);border-color:#fff2bd;box-shadow:inset 0 2px #ffffff88,0 4px #b17b21}
.power-mode{flex-wrap:wrap}.power-mode>span{flex:1 0 100%}
.power-mode .primary{flex:1;min-height:46px;font-size:12px;padding:10px}
.pocket-tray #pocket-parcel{position:relative;width:52px;height:52px;min-height:52px;border:2px solid #ffe1a0;border-radius:12px;padding:5px;background:#fff4cf;color:#316b79;touch-action:none;user-select:none;cursor:grab}
#pocket-parcel>svg{width:30px;height:30px}
#pocket-parcel .package{width:100%;height:100%}
.pocket-tray small{font-size:11px;line-height:1.5}
.pocket-drag-ghost{position:fixed!important;z-index:1000;pointer-events:none;width:48px!important;height:48px!important;transform:translate(-50%,-50%) rotate(-8deg);box-shadow:0 7px 14px #123c5866}
.match-cell.power-target,.match-cell.pocket-drop-hover{outline:3px solid #ffe76c;outline-offset:-3px;z-index:2}
.match-cell.power-hit{box-shadow:inset 0 0 0 3px #fd9b55}
.pocket-placement{position:absolute;inset:3px;pointer-events:none;opacity:.8;transform:scale(.82);z-index:3}
.pocket-placement .package{width:100%;height:100%;outline:2px dashed #fff6aa}
.fx-stamp{display:grid;place-items:center;color:#fffaf0;background:#db5c65;border:3px solid #fff2b4;border-radius:12px;font-size:30px;font-weight:900;box-shadow:0 4px 0 #913d5c}

/* Courier drone: own vector, static target preview and bounded flight effects. */
.special-drone{outline:2px solid #c4fff6;outline-offset:-4px}
.special-drone .special-badge{width:29px;height:25px;color:#075c6a;background:#e7fffa;border-color:#008b98;border-radius:9px}
.special-drone .special-badge svg{width:25px;height:23px}
.match-cell.drone-aim{outline:3px dashed #fff8ad;outline-offset:-3px;box-shadow:inset 0 0 0 5px #117e89}
.recipe-pattern.pattern-square{display:grid;grid-template-columns:repeat(2,18px);gap:2px;margin:0 14px}
.fx-drone{position:absolute;z-index:8;display:grid;place-items:center;color:#075d70;background:linear-gradient(#f3fff0,#82f0d2);border:2px solid #fff9bd;border-radius:35%;box-shadow:0 4px 8px #12485155;pointer-events:none}
.fx-drone svg{width:90%;height:90%;filter:drop-shadow(0 2px 0 #fff8)}
.fx-drone-target{position:absolute;border:3px dashed #fff6a6;border-radius:50%;box-shadow:0 0 0 3px #168a9a;pointer-events:none}

/* Conveyor is an optional paid assist; arrows and confirmation remain native controls. */
#power-conveyor{grid-column:1/-1;grid-template-columns:38px 1fr;justify-items:start;text-align:left;padding:8px 13px;background:linear-gradient(135deg,#d6f5ff,#88d4ff);border-color:#e5faff;box-shadow:inset 0 2px #fff9,0 4px #3278ab}
#power-conveyor svg{grid-row:1/3;width:29px;height:29px}
.conveyor-directions{flex:1 0 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.conveyor-directions[hidden]{display:none}
.conveyor-directions button{min-width:0;min-height:52px;padding:4px;border:2px solid #86adb4;border-radius:10px;color:#164d66;background:#e8faff;font-size:12px;display:grid;place-items:center}
.conveyor-directions b{font-size:23px;line-height:1}
.conveyor-directions button[aria-pressed=true]{background:#ffdb58;border-color:#996224}
.conveyor-preview>.package{opacity:.22}
.conveyor-placement{position:absolute;inset:3px;z-index:3;pointer-events:none}
.conveyor-placement>.package{width:100%;height:100%;transform:scale(.82)}
.conveyor-placement>b{position:absolute;right:1px;bottom:0;color:#063b63;background:#fff8b9;border-radius:4px;min-width:15px;font-size:16px;line-height:1;box-shadow:0 1px 3px #163c6777}
.fx-conveyor-parcel{z-index:4;position:absolute;pointer-events:none}
.fx-conveyor-parcel>.package{display:block;width:100%;height:100%}

/* Device-only economy observations use the existing test-panel dialog. */
.test-economy{margin:18px 0 24px;padding:14px;border:1px solid #b6cfbd;border-radius:18px;background:#f2f7ec}.test-economy>p{font-size:12px;line-height:1.5;margin:8px 0 14px}.economy-cards{display:grid;gap:12px}.economy-cards article,.economy-time{padding:12px;border-radius:13px;background:#fffaf0;border:1px solid #e0d3b8}.test-economy h4{margin:0 0 10px;font-size:15px}.test-economy dl{margin:0}.test-economy dl>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid #e3e7da;font-size:12px;line-height:1.4}.test-economy dt{min-width:0;overflow-wrap:anywhere}.test-economy dd{margin:0;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.economy-time{margin:12px 0}.economy-time dd{color:#267272}.test-economy .test-definitions p{font-size:12px}
@media(max-width:360px){.test-economy{padding:10px}.economy-cards article,.economy-time{padding:9px}}

/* Visible-state previews; symbols also work without colors. */
.power-preview-details{display:block;flex-basis:100%;padding:9px 11px;background:#fff9df;border:1px solid #cbb970;border-radius:10px;font-size:12px;line-height:1.5;color:#384b40}
.match-cell.preview-match{box-shadow:inset 0 0 0 3px #ffe64a,0 0 0 2px #6c5005}
.match-cell.preview-tape{box-shadow:inset 0 0 0 3px #ffe270}
.match-cell.preview-send{box-shadow:inset 0 0 0 3px #c7ffed}
.match-cell.preview-activate{box-shadow:inset 0 0 0 3px #e5c2ff}
.preview-badge{position:absolute;z-index:8;bottom:0;left:50%;transform:translateX(-50%);border:1px solid #78643c;background:#fff4ac;color:#3d381a;border-radius:5px;font-size:11px;font-weight:900;line-height:1.2;padding:1px 4px;white-space:nowrap;pointer-events:none}
.practice-link{width:100%;margin:7px 0 14px;min-height:44px;font-size:13px;color:var(--ink)}
.pocket-practice>.primary,.pocket-practice>.secondary{width:100%;margin-top:10px;min-height:44px}
.practice-steps{display:flex;gap:5px;padding:0;list-style:none;margin:18px 0 10px;font-size:12px;font-weight:800}
.practice-steps li{flex:1;border-radius:8px;padding:8px 4px;text-align:center;background:#e1d6bf;color:#534b39}
.practice-steps [aria-current=step]{background:#ffe28b;outline:2px solid #8a6d1f}
.practice-steps .done{background:#bce8d3}
.practice-tray{display:flex;gap:9px;align-items:center;background:#fffbef;border:1px solid #cfbd92;border-radius:12px;padding:8px;font-size:13px}
.practice-tray>span{display:block;position:relative;flex:0 0 44px;height:44px}
.practice-tray>span>svg{width:100%;height:100%}
.practice-tray small{display:block;font-size:11px;line-height:1.5;margin-top:3px}
.practice-tray .secondary{margin-left:auto;min-height:44px;font-size:12px;padding:8px}
#dialog-content .practice-caption{font-size:11px;margin:13px 0 6px}
.practice-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;background:#255d76;padding:12px;border-radius:16px;max-width:276px;margin:auto}
.practice-cell{position:relative;aspect-ratio:1;min-width:44px;min-height:44px;padding:5px;background:#abc5cb;border:2px solid transparent;border-radius:10px;touch-action:manipulation}
.practice-cell>.package,.practice-tray .package{display:block;position:relative;width:100%;height:100%;aspect-ratio:1}
.practice-cell.practice-target{border-color:#ffed83;box-shadow:0 0 0 2px #fbd951}
.practice-cell.practice-selected{box-shadow:0 0 0 3px #fff;border-color:#fff}
.practice-marker{position:absolute;right:-4px;top:-5px;background:#fff4b5;color:#433810;font-weight:900;min-width:21px;border-radius:12px;border:1px solid #70582b}
.practice-cell:disabled{opacity:1}
.practice-combo-hit{box-shadow:inset 0 0 0 3px #ffe369;animation:practice-success .5s ease-out}
#dialog-content #practice-feedback{font-size:13px;line-height:1.5;min-height:39px}
.practice-note{display:block;font-size:11px;line-height:1.5;margin-top:13px;color:#54645e}
@keyframes practice-success{50%{transform:scale(.93)}}
.reduce-motion .practice-combo-hit{animation:none}
body.monochrome .pocket-practice .package{filter:grayscale(1)}
@media(prefers-reduced-motion:reduce){.practice-combo-hit{animation:none}}
@media(max-width:360px){.practice-board{gap:7px;padding:9px}.practice-tray{gap:6px}.practice-tray>span{flex-basis:36px;height:36px}.practice-tray small{font-size:10px}.practice-steps{font-size:11px}}

.contract-card{position:absolute;top:90px;left:50%;transform:translateX(-50%);z-index:6;background:#fff7d9;color:#574019;font:800 13px system-ui;border:2px solid #c8974c;border-radius:14px;padding:7px 10px;box-shadow:0 2px 0 #9c733f}.contract-card[hidden]{display:none}.contract-stamps{display:flex;justify-content:center;gap:8px;margin:8px}.contract-stamps span{border:2px dashed #ac9473;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;color:#806844}.contract-stamps .done,.contract-result{color:#185c4a;background:#deefdd}.contract-stamps .done{border-style:solid}.contract-back{display:block;padding:8px;color:#185c4a}.contract-result{padding:4px;border-radius:8px}
