:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17242d;background:#111827;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #17242d;--muted: #60737f;--paper: #fffaf0;--cream: #fff3cf;--teal: #20a790;--blue: #3f8cff;--coral: #ff6c5c;--gold: #ffc83d;--lime: #8adf5a;--wood: #b8783e;--wood-dark: #6f4427;--line: rgba(70, 46, 25, .16);--shadow: 0 24px 70px rgba(7, 14, 24, .32)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button{font:inherit}.app-shell{min-height:100vh;display:grid;place-items:center;padding:18px;overflow:hidden;background:radial-gradient(circle at 18% 12%,rgba(255,200,61,.22),transparent 28%),radial-gradient(circle at 80% 26%,rgba(63,140,255,.22),transparent 30%),linear-gradient(145deg,#182433,#101722 52%,#263041)}.phone-stage{width:min(100%,430px);min-height:min(900px,calc(100vh - 36px));display:grid;place-items:center}.game-frame{position:relative;isolation:isolate;overflow:hidden;width:100%;min-height:min(900px,calc(100vh - 36px));display:grid;grid-template-rows:auto auto auto minmax(330px,1fr) auto auto;gap:10px;padding:14px;border:8px solid rgba(255,255,255,.92);border-radius:8px;background:linear-gradient(180deg,#60c7e8e6,#bee9f4d1 32%,#fff1c8f2),#dff8ff;box-shadow:var(--shadow),inset 0 0 0 1px #ffffffbf}.store-glow{position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,.18) 0 1px,transparent 1px 70px),linear-gradient(180deg,rgba(255,255,255,.18) 0 1px,transparent 1px 70px);-webkit-mask-image:linear-gradient(180deg,black,transparent 55%);mask-image:linear-gradient(180deg,black,transparent 55%)}.top-hud,.event-row,.booster-dock,.level-stepper,.reward-row{display:flex;align-items:center}.top-hud{gap:8px}.round-button,.coin-pill,.level-pill,.language-chip,.event-chip,.tool-button,.modal-primary,.modal-secondary,.modal-close,.moves-badge{border:1px solid rgba(255,255,255,.58);color:var(--ink);background:#fffaf0eb;box-shadow:0 8px 16px #3d535c29}.round-button{width:42px;height:42px;display:grid;place-items:center;padding:0;border-radius:8px;cursor:pointer}.level-pill{min-width:0;flex:1;padding:7px 10px;border-radius:8px}.level-pill span,.coin-pill span,.moves-badge span{display:block;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.level-pill strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.9rem}.coin-pill{min-width:74px;height:42px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 10px;border-radius:8px;color:#613d00;background:linear-gradient(180deg,#fff4b8,#ffc83d)}.language-chip{width:42px;height:42px;display:grid;place-items:center;padding:0;border-radius:8px;color:#17444e;background:linear-gradient(180deg,#fff,#dff5ff);font-size:.82rem;font-weight:950;cursor:pointer}.objective-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:8px 10px;padding:12px;border:1px solid rgba(255,255,255,.72);border-radius:8px;color:#fff;background:linear-gradient(135deg,#20a790f2,#3f8cffe6),#20a790;box-shadow:0 12px 28px #17486033}.eyebrow{margin:0 0 2px;color:#ffffffc7;font-size:.68rem;font-weight:900;letter-spacing:0;text-transform:uppercase}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:1.62rem;line-height:1}h2{margin-bottom:8px;font-size:1.45rem;line-height:1.08}.moves-badge{min-width:68px;height:58px;display:grid;place-items:center;padding:6px 8px;border-radius:8px;color:#693800;background:linear-gradient(180deg,#fff7d4,#ffd15a)}.moves-badge strong{font-size:1.42rem;line-height:1}.moves-badge.danger{color:#fff;background:linear-gradient(180deg,#ff8e7e,#f24d3d)}.progress-track{grid-column:1 / -1;height:10px;overflow:hidden;border-radius:8px;background:#ffffff57}.progress-track span{display:block;height:100%;min-width:8px;border-radius:inherit;background:linear-gradient(90deg,#fff378,#8adf5a);transition:width .24s ease}.event-row{justify-content:space-between;gap:8px}.event-chip{min-height:38px;flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;border-radius:8px;font-size:.82rem;font-weight:900;cursor:pointer}.event-chip.hot{color:#713b00;background:linear-gradient(180deg,#fff3aa,#ffc640)}.shelf-scene{position:relative;min-height:0;display:grid;padding:26px 10px 12px;border:1px solid rgba(111,68,39,.18);border-radius:8px;background:linear-gradient(180deg,#ffffff47,#fff0 32%),linear-gradient(90deg,rgba(255,255,255,.2) 0 8px,transparent 8px 42px),#f4c873;box-shadow:inset 0 -12px #7d4f231f,0 16px 28px #5030182e}.aisle-sign{position:absolute;top:-1px;left:50%;display:inline-flex;align-items:center;gap:5px;padding:5px 12px 6px;border-radius:0 0 8px 8px;color:#fff;background:linear-gradient(180deg,#ff7a5f,#db4d3d);box-shadow:0 8px 16px #73311f2e;font-size:.75rem;font-weight:950;transform:translate(-50%)}.shelf-grid{--rows: 4;--cols: 5;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(68px,1fr));gap:8px;min-height:0;padding:8px;border:5px solid var(--wood-dark);border-radius:8px;background:linear-gradient(90deg,rgba(255,224,162,.22),transparent 22%,transparent 78%,rgba(80,44,20,.18)),linear-gradient(180deg,#d8914b,#9d5e31);box-shadow:inset 0 5px #ffe1ab52,inset 0 -7px #4326153d}.shelf-slot{position:relative;overflow:hidden;display:grid;align-items:end;min-width:0;min-height:68px;padding:8px 5px 10px;border:0;border-radius:8px;background:linear-gradient(180deg,#fffae1e6,#f5ce8abd),#e9b66c;box-shadow:inset 0 8px 12px #ffffff61,inset 0 -8px #71411f33,0 5px #58301947;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.shelf-slot:hover{transform:translateY(-2px)}.shelf-slot.selected{box-shadow:0 0 0 3px #ffffffd1,0 0 0 6px #20a790a6,inset 0 -8px #71411f33}.shelf-slot.hinted{animation:hintPulse .8s ease-in-out infinite alternate}.shelf-slot.tutorial-focus{z-index:7;animation:tutorialPulse .78s ease-in-out infinite alternate}.shelf-slot.tutorial-dimmed{filter:saturate(.6) brightness(.78)}.slot-backdrop{position:absolute;inset:8px 5px 15px;border-radius:8px;background:radial-gradient(circle at 50% 10%,rgba(255,255,255,.55),transparent 62%)}.slot-lip{position:absolute;left:0;right:0;bottom:0;height:13px;background:linear-gradient(180deg,#c37a3d,#6f4427)}.product-stack{position:relative;z-index:1;width:100%;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;justify-items:center;column-gap:2px;min-height:58px;padding:0 4px}.product-tile,.hidden-card{position:relative;width:min(100%,30px);height:clamp(38px,68%,46px);flex:0 0 auto;display:grid;place-items:center;border:2px solid rgba(255,255,255,.58);border-radius:8px;color:#17242d;background:linear-gradient(145deg,var(--product-shine),transparent 38%),linear-gradient(180deg,var(--product-color),color-mix(in srgb,var(--product-color),#000 18%));box-shadow:inset -5px -7px #0000001a,inset 4px 4px #ffffff57,0 8px 10px #472b1638;transform:translateY(calc(var(--depth) * -3px))}.product-tile span{position:relative;z-index:1;display:grid;place-items:center;min-width:22px;min-height:18px;padding:2px 4px;border-radius:5px;color:#fff;background:color-mix(in srgb,var(--product-accent),#000 14%);font-size:.62rem;font-weight:950;text-shadow:0 1px 1px rgba(0,0,0,.18)}.product-tile i{position:absolute;top:7px;left:7px;width:8px;height:18px;border-radius:999px;background:#ffffff73}.shape-can,.shape-bottle{border-radius:12px 12px 7px 7px}.shape-bottle:before{position:absolute;top:-7px;width:15px;height:9px;border-radius:5px 5px 2px 2px;content:"";background:color-mix(in srgb,var(--product-color),#fff 24%)}.shape-carton{clip-path:polygon(0 12%,50% 0,100% 12%,100% 100%,0 100%)}.shape-bag{border-radius:14px 14px 8px 8px;transform:translateY(calc(var(--depth) * -3px)) rotate(-2deg)}.shape-round{width:min(100%,34px);height:min(100%,34px);border-radius:50%}.product-stack.count-3{column-gap:1px;padding:0 3px}.product-stack.count-3 .product-tile,.product-stack.count-3 .hidden-card{width:min(100%,28px);height:clamp(36px,64%,42px)}.product-stack.count-3 .shape-round{width:min(100%,32px);height:min(100%,32px)}.shape-box{border-radius:8px}.shape-jar,.shape-cup{border-radius:10px 10px 13px 13px}.hidden-card{color:#fff;background:linear-gradient(145deg,rgba(255,255,255,.24),transparent 44%),repeating-linear-gradient(135deg,#596676 0 8px,#3c4652 8px 16px);font-size:1.15rem;font-weight:950}.obstacle-badge{position:absolute;z-index:2;top:6px;left:50%;padding:3px 7px;border-radius:6px;color:#fff;background:#17242dc7;font-size:.56rem;font-weight:950;transform:translate(-50%)}.obstacle-frozen:after,.obstacle-locked:after{position:absolute;inset:0;z-index:1;content:"";pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.28),transparent 38%),repeating-linear-gradient(45deg,rgba(65,88,107,.14) 0 7px,transparent 7px 14px)}.obstacle-frozen{filter:saturate(.7) brightness(1.08)}.obstacle-locked{filter:saturate(.72) brightness(.92)}.reward-toast{min-height:38px;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 10px;border:1px solid rgba(255,255,255,.74);border-radius:8px;color:#fff;background:#17242dc2;box-shadow:0 8px 18px #1f37442e;font-size:.86rem;font-weight:900}.reward-toast.won{background:linear-gradient(180deg,#21bd84,#11936c)}.reward-toast.lost{background:linear-gradient(180deg,#ff7a62,#dc4436)}.booster-dock{gap:8px;padding:8px;border:1px solid rgba(255,255,255,.66);border-radius:8px;background:#fffaf0b8;box-shadow:inset 0 1px #ffffffb3}.tool-button{position:relative;min-width:0;min-height:62px;flex:1;display:grid;place-items:center;gap:1px;padding:7px 5px;border-radius:8px;font-size:.72rem;font-weight:950;cursor:pointer}.tool-button.featured{background:linear-gradient(180deg,#e9f9ff,#a9e6ff)}.tool-button.tutorial-focus{z-index:7;animation:tutorialPulse .78s ease-in-out infinite alternate}.tool-button:disabled{cursor:not-allowed;opacity:.5}.tool-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#fff;background:linear-gradient(180deg,var(--blue),#2365d8)}.tool-button strong{position:absolute;top:-6px;right:-5px;min-width:23px;height:23px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;color:#633b00;background:var(--gold);font-size:.75rem}.modal-backdrop{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:18px;background:#0b192461;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.tutorial-layer{position:absolute;inset:0;pointer-events:none}.tutorial-scrim{position:absolute;inset:0;z-index:4;background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.1),transparent 28%),#09151f14}.tutorial-card{position:absolute;left:50%;bottom:104px;z-index:9;display:grid;grid-template-columns:1fr;width:min(calc(100% - 32px),280px)!important;max-width:280px!important;gap:6px;padding:10px 12px 12px;border:1px solid rgba(255,255,255,.68);border-radius:8px;color:var(--ink);background:#fffaf08f!important;box-shadow:0 10px 20px #09151f29;transform:translate(-50%);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);pointer-events:auto}.tutorial-hint .tutorial-card{bottom:112px}.tutorial-card .eyebrow{color:var(--teal)}.tutorial-card h2{grid-column:1;margin-bottom:0;overflow-wrap:anywhere;font-size:1rem}.tutorial-card p{grid-column:1;margin-bottom:2px;color:var(--muted);line-height:1.35;font-size:.82rem}.tutorial-action{grid-column:1;display:grid;place-items:center;min-height:34px;padding:7px 9px;border-radius:8px;color:#633b00;background:linear-gradient(180deg,#fff3aaf5,#ffc640f5);font-size:.86rem;font-weight:950}.tutorial-progress{grid-column:1;display:flex;align-self:center;gap:6px}.tutorial-progress span{flex:1;height:8px;border-radius:999px;background:#60737f38}.tutorial-progress span.active{background:linear-gradient(90deg,var(--gold),var(--lime))}.tutorial-skip{position:absolute;top:8px;right:8px;min-width:58px;min-height:28px;padding:0 10px;border:1px solid rgba(70,46,25,.14);border-radius:8px;color:#24505e;background:#e9f7ffe0;font-size:.78rem;font-weight:950;cursor:pointer}.game-modal{position:relative;width:min(100%,340px);padding:22px 18px 18px;border:4px solid #fff;border-radius:8px;text-align:center;background:linear-gradient(180deg,#fffaf0,#ffe8ac),var(--paper);box-shadow:0 24px 50px #17242d52}.game-modal .eyebrow{color:var(--teal)}.game-modal p{margin-bottom:14px;color:var(--muted);line-height:1.42}.modal-hero{width:74px;height:74px;display:grid;place-items:center;margin:-56px auto 10px;border:5px solid #fff;border-radius:50%;color:#fff;background:linear-gradient(180deg,#ffcf4e,#ff7b4f);box-shadow:0 12px 22px #7d4a1640}.modal-close{position:absolute;top:8px;right:8px;width:34px;height:34px;display:grid;place-items:center;padding:0;border-radius:8px;cursor:pointer}.modal-primary,.modal-secondary,.level-stepper button{width:100%;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 12px;border-radius:8px;font-weight:950;cursor:pointer}.modal-primary{color:#fff;background:linear-gradient(180deg,#26c796,#109271)}.modal-secondary{margin-top:8px;color:#24505e;background:#e9f7ff}.modal-primary:disabled{cursor:not-allowed;opacity:.5}.level-stepper{gap:8px;margin-bottom:10px}.level-stepper strong{min-width:72px;padding:10px 8px;border-radius:8px;color:#613d00;background:#fff2bd}.reward-row{justify-content:space-between;gap:10px;margin:10px 0 12px;padding:10px;border-radius:8px;color:#613d00;background:#fff1bd;font-size:.86rem}@keyframes hintPulse{0%{box-shadow:0 0 0 2px #ffffffe6,0 0 0 5px #ffc83d8c,inset 0 -8px #71411f33}to{box-shadow:0 0 0 3px #fff,0 0 18px 8px #ffe262d9,inset 0 -8px #71411f33}}@keyframes tutorialPulse{0%{box-shadow:0 0 0 3px #ffffffeb,0 0 0 7px #ffc83d94,0 12px 28px #ffc83d38;transform:translateY(-2px) scale(1)}to{box-shadow:0 0 0 4px #fff,0 0 22px 10px #ffda56f2,0 14px 34px #ffc83d59;transform:translateY(-4px) scale(1.03)}}@media(max-width:520px){.app-shell{padding:0;background:#dff8ff}.phone-stage,.game-frame{min-height:100vh}.game-frame{border:0;border-radius:0;padding:10px}.shelf-grid{gap:6px;padding:6px}.product-tile,.hidden-card{width:min(100%,28px);height:clamp(34px,64%,42px)}.shape-round{width:min(100%,31px);height:min(100%,31px)}.tutorial-card{left:50%;right:auto;bottom:96px;width:min(calc(100% - 20px),280px)!important;max-width:280px!important;grid-template-columns:1fr;gap:6px;padding:10px 12px 12px}.tutorial-card h2,.tutorial-card p,.tutorial-action,.tutorial-progress,.tutorial-skip{grid-column:1}.tutorial-skip{grid-row:auto;width:auto}}@media(max-height:720px){.game-frame{gap:7px}.objective-card{padding:9px 10px}.event-row{gap:6px}.event-chip{min-height:34px;padding:6px 8px;font-size:.76rem}.booster-dock{padding:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
