:root{
  --bg:#0d1020;--panel:rgba(27,31,54,.93);--panel2:rgba(38,43,72,.95);--line:rgba(255,255,255,.11);
  --text:#f7f6ff;--muted:#b9b9cf;--gold:#ffd86b;--gold2:#ff9f45;--mint:#6ce9b2;--red:#ff6e78;
  --purple:#9f83ff;--blue:#65c9ff;--brown:#684329;--shadow:0 24px 70px rgba(0,0,0,.42)
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{margin:0;min-height:100%;overflow-x:hidden;color:var(--text);font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:
  radial-gradient(circle at 18% 0,rgba(108,74,181,.34),transparent 33%),
  radial-gradient(circle at 91% 8%,rgba(48,131,157,.28),transparent 31%),
  linear-gradient(145deg,#0b0d1a,#15152a 58%,#0e1724)}
button,input{font:inherit}button{touch-action:manipulation}.ambient{position:fixed;border-radius:50%;filter:blur(110px);opacity:.18;pointer-events:none}.ambient-a{width:420px;height:420px;background:#9c79ff;top:10%;left:-190px}.ambient-b{width:380px;height:380px;background:#48e8bf;right:-180px;bottom:3%}
.app{width:min(1880px,100%);margin:auto;padding:16px 18px 34px;position:relative;z-index:1}.topbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand-wrap{display:flex;align-items:center;gap:12px}.brand-icon{width:49px;height:49px;border-radius:15px;display:grid;place-items:center;font-size:27px;background:linear-gradient(145deg,#6d4d1f,#c28127);box-shadow:inset 0 1px rgba(255,255,255,.35),0 9px 24px rgba(0,0,0,.25)}h1{font-size:25px;line-height:1;margin:0;letter-spacing:.06em}.brand-wrap p{margin:5px 0 0;color:var(--muted);font-weight:700;font-size:12px;letter-spacing:.09em;text-transform:uppercase}.top-actions{display:flex;align-items:center;gap:9px}.icon-btn,.ghost-btn,.mini-btn{border:1px solid var(--line);color:var(--text);background:rgba(255,255,255,.055);cursor:pointer;transition:.18s}.icon-btn:hover,.ghost-btn:hover,.mini-btn:hover{background:rgba(255,255,255,.12);transform:translateY(-1px)}.icon-btn{width:42px;height:42px;border-radius:13px;font-size:20px}.ghost-btn{height:42px;padding:0 16px;border-radius:13px;font-weight:800}.mini-btn{width:31px;height:31px;border-radius:9px}
.hud-strip{display:grid;grid-template-columns:130px 180px 1fr 170px;gap:10px;margin:7px 0 14px}.hud-card,.progress-card{border:1px solid var(--line);background:rgba(31,35,61,.86);border-radius:16px;min-height:69px;padding:12px 15px;box-shadow:0 13px 35px rgba(0,0,0,.18)}.hud-card span,.progress-copy span{display:block;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.12em}.hud-card strong{display:block;margin-top:7px;font-size:20px}.meal-card strong{font-size:17px}.score-card strong{color:var(--gold);font-size:23px}.progress-card{display:flex;flex-direction:column;justify-content:center}.progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px}.progress-copy b{font-size:12px}.progress-track,.meter-track{height:9px;border-radius:999px;background:rgba(0,0,0,.35);overflow:hidden;margin-top:10px;box-shadow:inset 0 1px 3px rgba(0,0,0,.5)}.progress-fill,.meter-fill{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--purple),var(--mint));transition:width .7s cubic-bezier(.2,.8,.2,1)}
.game-grid{display:grid;grid-template-columns:minmax(340px,430px) minmax(560px,1fr) minmax(300px,350px);gap:13px;align-items:start}.panel{border:1px solid var(--line);border-radius:22px;background:linear-gradient(155deg,rgba(35,39,67,.95),rgba(25,28,50,.94));box-shadow:var(--shadow);overflow:hidden}.pantry-panel,.status-panel{padding:18px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.panel-head h2{font-size:19px;line-height:1.2;margin:4px 0 0}.eyebrow{display:block;font-size:9px;font-weight:900;letter-spacing:.15em;color:var(--mint)}.selection-count{min-width:55px;height:47px;border-radius:14px;display:flex;align-items:baseline;justify-content:center;gap:2px;background:rgba(159,131,255,.13);border:1px solid rgba(159,131,255,.24)}.selection-count b{font-size:24px}.selection-count span{font-size:12px;color:var(--muted)}.panel-help{color:var(--muted);font-size:12px;line-height:1.5;margin:11px 0 13px}.gut-clue{display:flex;align-items:center;gap:11px;margin-top:14px;padding:11px 12px;border-radius:15px;background:linear-gradient(135deg,rgba(101,201,255,.12),rgba(159,131,255,.09));border:1px solid rgba(101,201,255,.18)}.gut-clue-icon{font-size:25px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.28))}.gut-clue small{display:block;color:var(--muted);font-weight:800;font-size:9px;letter-spacing:.1em;text-transform:uppercase}.gut-clue strong{display:block;margin-top:3px;font-size:12px;line-height:1.35}.ingredient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:412px}.ingredient{position:relative;min-height:96px;border-radius:16px;border:1px solid rgba(255,255,255,.09);padding:10px 7px 8px;color:var(--text);background:linear-gradient(155deg,rgba(255,255,255,.075),rgba(255,255,255,.025));cursor:pointer;transition:transform .18s,border-color .18s,background .18s,box-shadow .18s;overflow:hidden}.ingredient:before{content:"";position:absolute;inset:-45% 35% 45% -35%;background:radial-gradient(circle,rgba(255,255,255,.17),transparent 65%);transform:rotate(-20deg);pointer-events:none}.ingredient:hover{transform:translateY(-3px);border-color:rgba(108,233,178,.38);box-shadow:0 10px 22px rgba(0,0,0,.2)}.ingredient.selected{border-color:var(--mint);background:linear-gradient(155deg,rgba(108,233,178,.2),rgba(70,150,123,.07));box-shadow:0 0 0 2px rgba(108,233,178,.1),0 12px 25px rgba(0,0,0,.25)}.ingredient.selected:after{content:"✓";position:absolute;right:6px;top:6px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:var(--mint);color:#12271f;font-size:12px;font-weight:900}.ingredient:disabled{cursor:default}.ingredient .emoji{position:relative;display:block;font-size:28px;line-height:1.1;margin-bottom:6px;filter:drop-shadow(0 5px 7px rgba(0,0,0,.32))}.ingredient .name{position:relative;display:block;font-size:11px;line-height:1.22;font-weight:850}.ingredient .note{position:relative;display:block;margin-top:5px;color:var(--muted);font-size:8px;line-height:1.25}.menu-changing{animation:menuOut .28s ease both}.menu-arriving{animation:menuIn .42s cubic-bezier(.2,.9,.25,1) both}.selection-tray{border-top:1px solid var(--line);margin-top:14px;padding-top:13px}.selected-chips{min-height:47px;display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start}.chip{padding:6px 8px;border-radius:999px;background:rgba(159,131,255,.13);border:1px solid rgba(159,131,255,.22);font-size:9px;font-weight:750}.empty-selection{color:var(--muted);font-size:11px;padding-top:8px}.primary-btn{border:0;border-radius:14px;min-height:45px;padding:0 18px;font-weight:900;color:#17211b;background:linear-gradient(135deg,#85ffd0,#52d99f);box-shadow:0 11px 27px rgba(53,224,163,.22);cursor:pointer;transition:.18s}.primary-btn:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.06)}.primary-btn:disabled{opacity:.38;cursor:not-allowed;box-shadow:none}.selection-tray>.primary-btn{width:100%;margin-top:9px}.wide{width:100%;margin-top:15px}
.scene-panel{padding:17px}.panel-head.compact{margin-bottom:12px}.streak-pill{border-radius:999px;padding:8px 12px;background:rgba(255,159,69,.13);border:1px solid rgba(255,159,69,.22);font-size:12px}.scene{height:620px;position:relative;border-radius:19px;overflow:hidden;background:linear-gradient(#253b59 0 31%,#7d5b3c 31% 100%);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 60px rgba(0,0,0,.3)}.sky-glow{position:absolute;inset:0 0 66% 0;background:radial-gradient(circle at 75% 20%,rgba(255,207,125,.22),transparent 35%),linear-gradient(#192842,#2f5370);z-index:0}.house-cutaway{position:absolute;left:4%;top:1.5%;width:47%;height:29%;z-index:5}.bathroom-wall{position:absolute;inset:0 0 14px 0;border-radius:13px 13px 4px 4px;background:linear-gradient(135deg,#e2d9c8,#c8c2b6);border:5px solid #403b43;box-shadow:0 17px 32px rgba(0,0,0,.3);overflow:hidden}.tile-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(89,95,98,.17) 1px,transparent 1px),linear-gradient(90deg,rgba(89,95,98,.17) 1px,transparent 1px);background-size:34px 34px;opacity:.8}.window{position:absolute;right:7%;top:10%;width:27%;height:39%;border:5px solid #6b5542;background:#22334b;box-shadow:inset 0 0 0 2px #b89f78}.window:before,.window:after{content:"";position:absolute;background:#6b5542;z-index:2}.window:before{width:4px;left:50%;top:0;bottom:0}.window:after{height:4px;left:0;right:0;top:51%}.window-sky{position:absolute;inset:0;overflow:hidden;background:linear-gradient(#283d5e,#477893);transition:.8s}.moon{position:absolute;width:20px;height:20px;border-radius:50%;background:#ffe4a4;right:11px;top:9px;box-shadow:0 0 18px rgba(255,228,164,.65)}.cloud{position:absolute;width:27px;height:8px;border-radius:10px;background:rgba(255,255,255,.55);animation:cloud 9s linear infinite}.cloud:before,.cloud:after{content:"";position:absolute;border-radius:50%;background:inherit}.cloud:before{width:10px;height:10px;left:5px;top:-5px}.cloud:after{width:13px;height:13px;right:5px;top:-7px}.cloud-a{top:43%;left:-30px}.cloud-b{top:72%;left:-45px;animation-duration:13s;animation-delay:-5s;transform:scale(.75)}.shelf{position:absolute;left:7%;top:9%;width:27%;height:24px;border-bottom:5px solid #796147;display:flex;justify-content:space-around;align-items:flex-end;font-size:14px}.toilet{position:absolute;left:17%;top:27px;bottom:auto;width:82px;height:100px;filter:drop-shadow(0 7px 6px rgba(0,0,0,.25))}.cistern{position:absolute;width:58px;height:45px;left:2px;top:0;border-radius:7px 7px 4px 4px;background:linear-gradient(145deg,#fff,#c7d7d6);border:3px solid #7e8d8c;color:#55706e;font-size:10px;font-weight:900;display:grid;place-items:center}.cistern i{position:absolute;right:6px;top:6px;width:8px;height:5px;border-radius:2px;background:#778e8d}.seat{position:absolute;left:12px;top:39px;width:59px;height:13px;border:5px solid #eef5f2;border-radius:55%;transform:rotate(5deg);z-index:3}.bowl{position:absolute;left:14px;top:49px;width:54px;height:43px;border-radius:8px 8px 28px 22px;background:linear-gradient(160deg,#f8ffff,#b7cccb);border:3px solid #758b8b;overflow:hidden}.flush-water{position:absolute;left:12px;top:5px;width:31px;height:16px;border-radius:50%;background:#79c4cf;opacity:.75}.toilet.flushing .flush-water{animation:flush .8s ease-in-out}.toilet-pipe{position:absolute;left:29px;bottom:-57px;width:24px;height:72px;background:#d7e2dd;border:3px solid #758b8b;border-top:0}.hero{position:absolute;left:47%;bottom:1%;width:98px;height:145px;transform-origin:50% 100%;transition:.3s;filter:drop-shadow(0 8px 7px rgba(0,0,0,.25))}.hero-head{position:absolute;left:20px;top:2px;width:58px;height:58px;border-radius:48% 52% 45% 50%;background:#efb98a;border:3px solid #44352f}.hair{position:absolute;inset:-8px -5px 30px -5px;border-radius:45% 55% 35% 35%;background:#3a2a27;transform:rotate(-4deg)}.eye{position:absolute;top:25px;width:5px;height:6px;border-radius:50%;background:#24202a}.eye.left{left:17px}.eye.right{right:16px}.mouth{position:absolute;left:21px;top:41px;width:17px;height:7px;border-bottom:3px solid #6c332d;border-radius:50%}.sweat{position:absolute;right:-8px;top:19px;width:7px;height:12px;border-radius:50% 50% 60% 60%;background:#6fd2ee;opacity:0}.hero-body{position:absolute;left:14px;top:55px;width:70px;height:82px;border-radius:17px 17px 8px 8px;background:linear-gradient(145deg,#8f70e7,#5d45b3);border:3px solid #3c2f65;display:grid;place-items:center}.shirt-mark{font-weight:950;font-size:27px;color:#fff5a9;transform:rotate(-8deg)}.hero-arm{position:absolute;left:7px;top:70px;width:27px;height:55px;border-radius:15px;background:#efb98a;border:3px solid #44352f;transform:rotate(18deg)}.plate{position:absolute;right:-21px;top:86px;width:65px;min-height:29px;padding:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef3f5;border:4px solid #8a9a9e;font-size:13px;letter-spacing:-2px;box-shadow:0 5px 7px rgba(0,0,0,.24)}.hero.eating{animation:eating .42s ease-in-out 2}.hero.sick{animation:sick .18s ease-in-out 5}.hero.sick .sweat{opacity:1;animation:sweat .7s ease-in-out}.hero.happy{animation:happy .6s ease}.thought{position:absolute;left:39%;top:3%;max-width:205px;padding:8px 11px;border-radius:12px;background:#fff;color:#312b38;font-size:10px;font-weight:800;line-height:1.35;box-shadow:0 5px 14px rgba(0,0,0,.22)}.thought:after{content:"";position:absolute;left:28%;bottom:-8px;border:8px solid transparent;border-top-color:#fff;border-bottom:0}.foundation{position:absolute;left:2%;right:2%;bottom:0;height:18px;background:#4a4040;border:3px solid #26222a;display:flex}.foundation span{flex:1;border-right:2px solid #2e292f}.ground-layer{position:absolute;inset:28% 0 0;background:linear-gradient(#7b5a3c,#59402f 45%,#3c2d27);z-index:1}.ground-layer:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(255,255,255,.08) 1px,transparent 2px);background-size:35px 29px;opacity:.7}.stone{position:absolute;border-radius:50%;background:#8d725c;box-shadow:inset -5px -5px 0 rgba(0,0,0,.12)}.s1{width:22px;height:13px;left:4%;top:35%}.s2{width:31px;height:18px;left:55%;top:19%}.s3{width:18px;height:11px;right:8%;bottom:17%}.root{position:absolute;width:3px;background:#37271e;border-radius:4px;transform-origin:top}.r1{height:105px;left:16%;top:0;transform:rotate(18deg)}.r2{height:82px;right:14%;top:5%;transform:rotate(-24deg)}.main-pipe{position:absolute;left:13%;top:27%;width:48px;height:48%;z-index:4;background:linear-gradient(90deg,#8b9290,#d6ddda 45%,#8a9290);border-left:4px solid #535b5a;border-right:4px solid #535b5a}.main-pipe:after{content:"";position:absolute;left:0;right:-285px;bottom:0;height:48px;background:linear-gradient(#a6adaa,#707876);border:4px solid #535b5a;border-radius:0 22px 22px 0}.pipe-rim{position:absolute;left:-7px;right:-7px;top:0;height:12px;border-radius:4px;background:#77807f;border:3px solid #505756}.pipe-highlight{position:absolute;width:7px;top:10px;bottom:4px;left:9px;background:rgba(255,255,255,.23)}.flow-arrow{position:absolute;left:12px;color:rgba(80,96,94,.72);font-size:14px;font-weight:950;z-index:2;text-shadow:0 1px rgba(255,255,255,.24);animation:flowPulse 1.35s ease-in-out infinite}.flow-arrow.fa1{top:20%}.flow-arrow.fa2{top:47%;animation-delay:-.45s}.flow-arrow.fa3{top:73%;animation-delay:-.9s}.septic-wrap{position:absolute;left:36%;right:5%;top:37%;bottom:5%;z-index:4}.septic-label{position:absolute;right:8%;top:-29px;padding:5px 11px;border-radius:8px;background:#312c32;border:2px solid #81736e;z-index:3;box-shadow:0 5px 8px rgba(0,0,0,.25)}.septic-label span{font-size:8px;letter-spacing:.15em;color:#cfc4bd}.septic-label b{font-size:10px;margin-left:6px;color:var(--gold)}.tank-shell{position:absolute;inset:0 34px 0 0;padding:12px;border-radius:44px 44px 30px 30px;background:linear-gradient(135deg,#4f4a4a,#282629 70%);border:4px solid #211f21;box-shadow:inset 0 0 0 4px #716866,0 16px 32px rgba(0,0,0,.43)}.tank-bolts{position:absolute;inset:5px;pointer-events:none}.tank-bolts i{position:absolute;width:8px;height:8px;border-radius:50%;background:#aaa09d;box-shadow:inset -2px -2px 0 #5a5453}.tank-bolts i:nth-child(1){left:8%;top:3%}.tank-bolts i:nth-child(2){left:45%;top:1%}.tank-bolts i:nth-child(3){right:8%;top:4%}.tank-bolts i:nth-child(4){left:4%;bottom:7%}.tank-bolts i:nth-child(5){left:49%;bottom:3%}.tank-bolts i:nth-child(6){right:5%;bottom:8%}.tank{position:absolute;inset:12px;border-radius:32px 32px 20px 20px;overflow:hidden;background:linear-gradient(#1a2024,#11161a);border:3px solid #111;box-shadow:inset 0 0 40px rgba(0,0,0,.8)}.tank:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(255,255,255,.09),transparent 20% 78%,rgba(255,255,255,.04));pointer-events:none;z-index:12}.tank-shine{position:absolute;left:8%;top:7%;width:6px;height:75%;border-radius:10px;background:rgba(255,255,255,.12);z-index:10}.liquid{position:absolute;left:0;right:0;bottom:0;height:16%;background:linear-gradient(#91aa4b,#677e30 18%,#3f5524 70%,#2d3a1e);transition:height .85s cubic-bezier(.2,.8,.2,1);box-shadow:inset 0 17px 30px rgba(255,230,111,.08);z-index:1}.wave{position:absolute;left:-10%;width:120%;height:18px;top:-9px;border-radius:45%;background:#a8bd55;opacity:.95}.wave-a{animation:wave 3s ease-in-out infinite}.wave-b{top:-5px;opacity:.5;animation:wave 4.1s ease-in-out infinite reverse}.bubbles{position:absolute;inset:0}.bubbles span{position:absolute;bottom:-15px;width:7px;height:7px;border:2px solid rgba(227,244,148,.5);border-radius:50%;animation:bubble 3s linear infinite}.chest{position:absolute;left:50%;bottom:8%;width:105px;height:75px;transform:translateX(-50%);transition:bottom .9s cubic-bezier(.2,.78,.2,1),transform .5s;z-index:6;filter:drop-shadow(0 9px 8px rgba(0,0,0,.48))}.chest-lid{position:absolute;left:0;top:10px;width:105px;height:28px;border-radius:16px 16px 5px 5px;background:linear-gradient(#b97835,#75451f);border:4px solid #4b2a18;box-shadow:inset 0 6px rgba(255,204,101,.12)}.chest-lid span{position:absolute;left:49px;top:-7px;width:7px;height:36px;background:#d2a347;border:2px solid #745021}.chest-body{position:absolute;left:3px;top:34px;width:99px;height:39px;border-radius:3px 3px 10px 10px;background:linear-gradient(#9c5f2b,#5f351d);border:4px solid #472617}.strap{position:absolute;top:-4px;bottom:-4px;width:8px;background:#c99a40;border:2px solid #6d4d20}.strap-a{left:13px}.strap-b{right:13px}.lock{position:absolute;left:39px;top:3px;width:19px;height:22px;border-radius:3px;background:#e5b647;border:3px solid #6c4b1c;color:#6c4b1c;font-size:9px;display:grid;place-items:center}.gold-glow{position:absolute;inset:-20px;border-radius:50%;background:radial-gradient(circle,rgba(255,220,102,.3),transparent 65%);z-index:-1;animation:glow 2s ease-in-out infinite}.chest.bump{animation:bump .65s ease}.chest.sink{animation:sink .75s ease}.chest.game-over-sink{animation:finalSink 1.7s cubic-bezier(.5,0,.7,1) forwards}.chest-loads{position:absolute;left:9px;right:9px;bottom:58px;height:56px;z-index:9;pointer-events:none}.chest-poop{position:absolute;width:34px;height:27px;border-radius:50% 45% 43% 50%;background:linear-gradient(150deg,#8b542c,#4b2918);border:3px solid #351b12;box-shadow:inset 5px 5px 0 rgba(255,197,112,.1),0 5px 6px rgba(0,0,0,.35);animation:poopSettle .45s cubic-bezier(.2,1.2,.2,1) both}.chest-poop:before{content:"";position:absolute;width:25px;height:16px;left:2px;top:-10px;border-radius:50%;background:inherit;border:inherit}.chest-poop:after{content:"";position:absolute;width:13px;height:13px;left:9px;top:-18px;border-radius:50% 50% 40% 45%;background:inherit;border:inherit}.chest-poop.p1{left:12px;bottom:0;transform:rotate(-6deg)}.chest-poop.p2{right:10px;bottom:1px;transform:rotate(8deg)}.chest-poop.p3{left:31px;bottom:24px;transform:scale(.94)}.chest-poop.dissolving{animation:dissolve .95s ease forwards;filter:hue-rotate(45deg) brightness(1.25)}.drop-layer{position:absolute;inset:0;z-index:8;pointer-events:none}.falling-solid{position:absolute;left:50%;top:-50px;width:39px;height:34px;transform:translateX(-50%);animation:solidFall 1.15s cubic-bezier(.45,.05,.7,.4) forwards;filter:drop-shadow(0 6px 4px rgba(0,0,0,.45))}.falling-solid .poop-core{position:absolute;left:2px;bottom:0;width:35px;height:27px;border-radius:50% 45% 43% 50%;background:linear-gradient(150deg,#91572e,#482617);border:3px solid #32190f}.falling-solid .poop-core:before,.falling-solid .poop-core:after{content:"";position:absolute;border:3px solid #32190f;background:inherit}.falling-solid .poop-core:before{width:25px;height:16px;left:2px;top:-11px;border-radius:50%}.falling-solid .poop-core:after{width:13px;height:14px;left:9px;top:-21px;border-radius:50% 50% 38% 43%}.liquid-drop{position:absolute;left:48%;top:-20px;width:25px;height:55%;border-radius:45% 55% 50% 50%;background:linear-gradient(90deg,rgba(178,204,86,.3),#9eb84b 48%,rgba(89,116,43,.4));transform-origin:50% 0;animation:liquidFall 1.2s ease-in forwards;filter:drop-shadow(0 0 8px rgba(185,218,91,.35))}.liquid-drop.spray{width:13px;box-shadow:-22px 30px 0 -3px #89a443,19px 55px 0 -4px #a7bd57}.liquid-drop.sludge{width:37px;background:linear-gradient(90deg,#5d7635,#a2b84f,#536b31)}.liquid-drop.waterfall{width:20px;background:linear-gradient(90deg,rgba(129,172,90,.3),#afc95b,rgba(85,126,52,.35))}#fxCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:11;pointer-events:none}.tank-scale{position:absolute;right:0;top:8%;bottom:8%;width:29px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;color:#d1c4bb;font-size:8px;font-weight:900;writing-mode:vertical-rl}.result-banner{position:absolute;left:50%;bottom:3%;z-index:20;min-width:260px;max-width:80%;padding:10px 14px;border-radius:13px;text-align:center;background:rgba(15,17,28,.92);border:1px solid rgba(255,255,255,.16);box-shadow:0 13px 25px rgba(0,0,0,.35);transform:translate(-50%,130%);opacity:0}.result-banner.show{animation:banner 2.5s ease both}.result-banner strong{display:block;font-size:13px;color:var(--gold)}.result-banner span{display:block;margin-top:3px;color:var(--muted);font-size:10px}.gutalax-flight{display:none;position:absolute;left:34%;top:8%;width:30px;height:51px;border-radius:7px 7px 9px 9px;background:linear-gradient(90deg,#edfff1,#94ebb8 50%,#e5fff0);border:3px solid #315b47;z-index:30;box-shadow:0 0 20px rgba(108,233,178,.65);transform:rotate(-12deg)}.gutalax-flight .bottle-cap{position:absolute;left:5px;top:-11px;width:15px;height:10px;border-radius:3px;background:#5b4d80;border:2px solid #2f2946}.gutalax-flight b{display:grid;place-items:center;margin:8px auto 0;width:18px;height:18px;border-radius:50%;background:#734fc8;color:white;font-size:11px}.gutalax-flight small{display:block;margin-top:2px;text-align:center;color:#234637;font-size:4px;font-weight:950}.gutalax-flight.active{display:block;animation:gutalaxPath 1.65s cubic-bezier(.38,.05,.58,.95) forwards}.scene.flash-good{animation:flashGood .6s ease}.scene.flash-bad{animation:flashBad .6s ease}.screen-shake{animation:screenShake .6s ease}.scene-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.mission-note{display:flex;align-items:flex-start;gap:9px;max-width:65%;padding:9px 11px;border-radius:13px;background:rgba(255,216,107,.07);border:1px solid rgba(255,216,107,.12)}.mission-note span{font-size:18px}.mission-note p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.mission-note b{color:var(--gold)}.result-legend{display:flex;gap:11px;flex-wrap:wrap;justify-content:flex-end;color:var(--muted);font-size:9px}.result-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:4px}.legend-liquid{background:#91aa4b}.legend-solid{background:#81502d}
.status-panel{display:flex;flex-direction:column;gap:13px}.treasure-meter,.jokers-card,.mission-log,.leaderboard-card{border-radius:17px;padding:13px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}.meter-copy{display:flex;justify-content:space-between;gap:10px;font-size:11px}.meter-copy span{color:var(--muted)}.meter-copy b{color:var(--gold)}.treasure-meter small{display:block;margin-top:7px;color:var(--muted);font-size:9px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stat-box{padding:11px;border-radius:14px;background:rgba(108,233,178,.075);border:1px solid rgba(108,233,178,.12)}.stat-box.danger{background:rgba(255,110,120,.08);border-color:rgba(255,110,120,.14)}.stat-box.subtle{background:rgba(159,131,255,.065);border-color:rgba(159,131,255,.12)}.stat-box span{display:block;color:var(--muted);font-size:9px;line-height:1.25}.stat-box b{display:block;margin-top:6px;font-size:19px}.jokers-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.jokers-copy span{display:block;font-size:11px;font-weight:850}.jokers-copy small{display:block;color:var(--muted);font-size:8px;line-height:1.35;margin-top:4px}.joker-icons{display:flex;gap:5px}.joker-icons button{width:33px;height:36px;border:1px solid rgba(255,216,107,.24);border-radius:10px;background:rgba(255,216,107,.11);cursor:pointer;font-size:16px;transition:.18s}.joker-icons button:hover:not(.used){transform:translateY(-2px);background:rgba(255,216,107,.19)}.joker-icons button.used{filter:grayscale(1);opacity:.25;cursor:default}.joker-icons button.attention{animation:attention .45s ease 2}.mission-log h3,.leaderboard-card h3{font-size:12px;margin:0}.log-list{max-height:175px;overflow:auto;margin-top:8px;padding-right:3px}.log-list p{font-size:9px;line-height:1.45;color:var(--muted);margin:0;padding:7px 0;border-top:1px solid rgba(255,255,255,.06)}.log-list time{display:inline-block;color:var(--mint);font-weight:900;margin-right:4px}.leader-head{display:flex;align-items:center;justify-content:space-between}.leaderboard{list-style:none;padding:0;margin:7px 0 0}.leaderboard li{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid rgba(255,255,255,.06);font-size:10px}.leaderboard li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard li b{color:var(--gold)}
.modal-backdrop{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:16px;background:rgba(5,6,13,.78);backdrop-filter:blur(12px)}.modal-backdrop.show{display:grid;animation:fadeIn .2s ease}.modal{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:25px;border-radius:24px;background:linear-gradient(150deg,#292e4b,#171a2c);border:1px solid rgba(255,255,255,.15);box-shadow:0 35px 100px rgba(0,0,0,.65);text-align:center}.modal h2{margin:7px 0 10px;font-size:25px}.modal p{color:var(--muted);font-size:13px;line-height:1.58}.modal small{display:block;color:#8f8da4;font-size:9px;line-height:1.45;margin-top:11px}.modal-art{height:69px;display:flex;align-items:center;justify-content:center;gap:15px;font-size:37px}.mini-arrow{font-size:25px;color:var(--gold);animation:arrowDown 1s ease-in-out infinite}.rules-row{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:15px 0}.rules-row span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);font-size:9px;font-weight:800}.name-field{display:block;text-align:left;color:var(--muted);font-size:10px;font-weight:800}.name-field input{width:100%;margin-top:6px;padding:12px 13px;border-radius:12px;border:1px solid rgba(255,255,255,.13);background:#111425;color:white;outline:none}.name-field input:focus{border-color:var(--mint)}.quiz-icon,.decision-icon,.end-icon{font-size:42px}.quiz-answers{display:grid;gap:9px;margin-top:15px}.quiz-answer{min-height:48px;border-radius:14px;padding:10px 13px;color:var(--text);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.11);cursor:pointer;text-align:left;font-size:11px;font-weight:750;transition:.18s}.quiz-answer:hover{transform:translateX(3px);border-color:var(--mint);background:rgba(108,233,178,.1)}.modal-actions{display:flex;gap:9px;margin-top:16px}.modal-actions button{flex:1}.final-score{margin:17px 0;padding:13px;border-radius:16px;background:rgba(255,216,107,.09);border:1px solid rgba(255,216,107,.16)}.final-score span{display:block;color:var(--muted);font-size:9px}.final-score b{display:block;color:var(--gold);font-size:34px;margin-top:4px}.final-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.final-stats span{padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.055);font-size:9px}
@keyframes menuOut{to{opacity:0;transform:translateY(7px) scale(.98)}}@keyframes menuIn{from{opacity:0;transform:translateY(-8px) scale(.96)}to{opacity:1;transform:none}}@keyframes flowPulse{0%,100%{transform:translateY(-2px);opacity:.35}50%{transform:translateY(5px);opacity:.9}}@keyframes cloud{from{left:-40px}to{left:110%}}@keyframes flush{0%,100%{transform:scale(1)}50%{transform:scale(.6) rotate(180deg);filter:brightness(1.35)}}@keyframes eating{50%{transform:rotate(-4deg) translateY(3px)}}@keyframes sick{0%,100%{transform:translateX(0)}50%{transform:translateX(4px) rotate(2deg)}}@keyframes sweat{from{transform:translateY(-2px);opacity:0}35%{opacity:1}to{transform:translateY(20px);opacity:0}}@keyframes happy{50%{transform:translateY(-8px) rotate(-3deg)}}@keyframes wave{0%,100%{transform:translateX(-2%) scaleY(1)}50%{transform:translateX(2%) scaleY(.75)}}@keyframes bubble{0%{transform:translateY(0) scale(.7);opacity:0}15%{opacity:.7}100%{transform:translateY(-240px) scale(1.35);opacity:0}}@keyframes glow{50%{transform:scale(1.12);opacity:.62}}@keyframes bump{35%{transform:translateX(-50%) translateY(-16px) rotate(-3deg)}70%{transform:translateX(-50%) translateY(3px) rotate(2deg)}}@keyframes sink{45%{transform:translateX(-50%) translateY(17px) rotate(4deg)}75%{transform:translateX(-50%) translateY(7px) rotate(-2deg)}}@keyframes finalSink{to{bottom:-28%;transform:translateX(-50%) rotate(18deg);opacity:.35}}@keyframes poopSettle{from{transform:translateY(-25px) scale(.7) rotate(13deg);opacity:0}}@keyframes dissolve{0%{opacity:1}45%{transform:scale(1.25);filter:hue-rotate(65deg) brightness(1.5);opacity:.85}100%{transform:scale(.15) translateY(25px);filter:blur(5px);opacity:0}}@keyframes solidFall{0%{top:-55px;transform:translateX(-50%) rotate(-20deg)}75%{top:62%;transform:translateX(-50%) rotate(270deg)}100%{top:74%;transform:translateX(-50%) rotate(330deg) scale(.8);opacity:.15}}@keyframes liquidFall{0%{transform:scaleY(.05);opacity:.25}25%{transform:scaleY(.6);opacity:1}82%{transform:scaleY(1);opacity:1}100%{transform:scaleY(1.05);opacity:0}}@keyframes banner{0%{transform:translate(-50%,130%);opacity:0}12%,76%{transform:translate(-50%,0);opacity:1}100%{transform:translate(-50%,15px);opacity:0}}@keyframes gutalaxPath{0%{left:35%;top:7%;transform:rotate(-15deg) scale(1);opacity:1}24%{left:14%;top:19%;transform:rotate(165deg) scale(.84)}52%{left:14%;top:54%;transform:rotate(365deg) scale(.7)}100%{left:63%;top:77%;transform:rotate(720deg) scale(.45);opacity:.1}}@keyframes flashGood{50%{box-shadow:inset 0 0 75px rgba(108,233,178,.47)}}@keyframes flashBad{50%{box-shadow:inset 0 0 85px rgba(255,92,102,.48)}}@keyframes screenShake{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}@keyframes attention{50%{transform:scale(1.14);background:rgba(255,216,107,.28)}}@keyframes fadeIn{from{opacity:0}}@keyframes arrowDown{50%{transform:translateY(6px)}}
@media(max-width:1320px){.game-grid{grid-template-columns:minmax(330px,410px) minmax(520px,1fr)}.status-panel{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr 1fr 1.3fr;align-items:start}.status-panel>.panel-head{display:none}.stat-grid{grid-template-columns:1fr 1fr}.mission-log,.leaderboard-card{min-height:190px}.log-list{max-height:130px}}
@media(max-width:980px){.hud-strip{grid-template-columns:1fr 1fr}.progress-card{grid-column:1/-1;grid-row:2}.score-card{grid-column:2;grid-row:1}.game-grid{display:flex;flex-direction:column}.scene-panel{order:1;width:100%}.pantry-panel{order:2;width:100%}.status-panel{order:3;width:100%;display:grid;grid-template-columns:1fr 1fr}.ingredient-grid{grid-template-columns:repeat(4,1fr);min-height:0}.ingredient{min-height:92px}.scene{height:600px}}
@media(max-width:650px){.app{padding:10px 9px 24px}.topbar{min-height:58px}.brand-icon{width:42px;height:42px}.brand-wrap h1{font-size:19px}.brand-wrap p{font-size:8px}.ghost-btn{display:none}.icon-btn{width:38px;height:38px}.hud-strip{gap:7px;margin-top:6px}.hud-card,.progress-card{min-height:58px;padding:9px 11px;border-radius:13px}.hud-card strong{font-size:16px}.meal-card strong{font-size:13px}.score-card strong{font-size:18px}.panel{border-radius:17px}.scene-panel{padding:10px}.scene{height:500px}.house-cutaway{left:3%;top:1%;width:62%;height:30%}.toilet{left:16%;top:20px;transform:scale(.88);transform-origin:top left}.hero{left:52%;transform:scale(.75);transform-origin:bottom center}.thought{left:38%;max-width:145px;font-size:8px}.main-pipe{left:15%;top:27%;width:36px;height:49%}.main-pipe:after{right:-220px}.septic-wrap{left:31%;right:2%;top:40%}.tank-shell{right:25px}.septic-label{right:3%;top:-25px}.chest{transform:translateX(-50%) scale(.82);transform-origin:bottom center}.chest.bump{animation:none}.scene-footer{display:block}.mission-note{max-width:none}.result-legend{justify-content:flex-start;margin-top:8px}.ingredient-grid{grid-template-columns:repeat(3,1fr);gap:6px}.ingredient{min-height:86px;padding:8px 5px}.ingredient .emoji{font-size:25px}.ingredient .name{font-size:9px}.ingredient .note{font-size:7px}.status-panel{display:flex}.modal{padding:20px}.modal h2{font-size:21px}.modal-actions{flex-direction:column}.gutalax-flight.active{animation-name:gutalaxPathMobile}}
@keyframes gutalaxPathMobile{0%{left:42%;top:7%;transform:rotate(-15deg) scale(.9);opacity:1}28%{left:17%;top:20%;transform:rotate(185deg) scale(.72)}58%{left:17%;top:56%;transform:rotate(390deg) scale(.58)}100%{left:61%;top:78%;transform:rotate(720deg) scale(.4);opacity:.1}}
@media(max-width:410px){.ingredient-grid{grid-template-columns:repeat(2,1fr)}.scene{height:470px}.house-cutaway{width:68%;height:31%}.toilet{left:14%;top:18px;transform:scale(.78)}.pantry-panel,.status-panel{padding:14px}.panel-head h2{font-size:17px}.thought{display:none}.scene-footer{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}


/* Nebrzdime.cz embedded mode */
body.is-embedded { min-height:100dvh; }
body.is-embedded .app { width:100%; padding:8px 10px 22px; }
body.is-embedded #fullscreenBtn { display:none; }
body.is-embedded .topbar { min-height:58px; }
@media (max-width: 900px), (pointer: coarse) {
  body.is-embedded { overflow-x:hidden; overscroll-behavior:none; }
  body.is-embedded .app { padding:6px 7px 18px; }
  body.is-embedded .topbar { position:relative; z-index:2; }
  body.is-embedded .game-grid { padding-bottom:12px; }
}

/* v3.0.0 – skutečný mobilní herní režim bez scrollování */
@media (max-width: 900px), (pointer: coarse) {
  html, body.is-embedded { width:100%; height:100%; min-height:0; overflow:hidden!important; }
  body.is-embedded .ambient { display:none; }
  body.is-embedded .app { height:100dvh; min-height:0; padding:4px!important; display:grid; grid-template-rows:42px 46px minmax(0,1fr); gap:4px; overflow:hidden; }
  body.is-embedded .topbar { min-height:0!important; height:42px; padding:0 4px; }
  body.is-embedded .brand-icon { width:34px; height:34px; border-radius:10px; font-size:19px; }
  body.is-embedded .brand-wrap { gap:7px; }
  body.is-embedded .brand-wrap h1 { font-size:15px; }
  body.is-embedded .brand-wrap p { display:none; }
  body.is-embedded .top-actions { gap:4px; }
  body.is-embedded .icon-btn { width:34px; height:34px; border-radius:10px; font-size:16px; }
  body.is-embedded .ghost-btn { display:none; }
  body.is-embedded .hud-strip { margin:0; height:46px; grid-template-columns:70px 105px minmax(120px,1fr) 80px; gap:4px; }
  body.is-embedded .hud-card, body.is-embedded .progress-card { min-height:0; height:46px; padding:5px 7px; border-radius:10px; }
  body.is-embedded .hud-card span, body.is-embedded .progress-copy span { font-size:7px; }
  body.is-embedded .hud-card strong { margin-top:2px; font-size:13px; }
  body.is-embedded .meal-card strong { font-size:10px; }
  body.is-embedded .score-card strong { font-size:14px; }
  body.is-embedded .progress-copy b { font-size:8px; }
  body.is-embedded .progress-track { margin-top:4px; height:5px; }
  body.is-embedded .game-grid { min-height:0; height:100%; padding:0!important; margin:0; gap:4px; align-items:stretch; }
  body.is-embedded .panel { border-radius:12px; box-shadow:none; }
  body.is-embedded .panel-head h2 { font-size:12px; margin-top:1px; }
  body.is-embedded .eyebrow { font-size:6px; }
  body.is-embedded .panel-help, body.is-embedded .gut-clue, body.is-embedded .scene-footer,
  body.is-embedded .status-panel>.panel-head, body.is-embedded .mission-log, body.is-embedded .leaderboard-card { display:none!important; }
  body.is-embedded .pantry-panel, body.is-embedded .status-panel, body.is-embedded .scene-panel { padding:7px; min-height:0; overflow:hidden; }
  body.is-embedded .ingredient-grid { min-height:0; gap:4px; grid-template-columns:repeat(4,minmax(0,1fr)); }
  body.is-embedded .ingredient { min-height:0; height:auto; padding:4px 2px; border-radius:9px; }
  body.is-embedded .ingredient .emoji { font-size:17px; margin-bottom:2px; }
  body.is-embedded .ingredient .name { font-size:6.8px; line-height:1.1; }
  body.is-embedded .ingredient .note { display:none; }
  body.is-embedded .selection-count { min-width:36px; height:30px; border-radius:8px; }
  body.is-embedded .selection-count b { font-size:16px; }
  body.is-embedded .selection-tray { margin-top:4px; padding-top:4px; }
  body.is-embedded .selected-chips { min-height:20px; gap:2px; overflow:hidden; max-height:24px; }
  body.is-embedded .chip { padding:2px 4px; font-size:6px; }
  body.is-embedded .empty-selection { font-size:7px; padding-top:3px; }
  body.is-embedded .selection-tray>.primary-btn { margin-top:3px; min-height:31px; font-size:10px; border-radius:9px; }
  body.is-embedded .panel-head.compact { margin-bottom:4px; }
  body.is-embedded .streak-pill { padding:4px 7px; font-size:8px; }
  body.is-embedded .scene { height:100%!important; min-height:0; border-radius:10px; }
  body.is-embedded .treasure-meter, body.is-embedded .jokers-card { padding:7px; border-radius:10px; }
  body.is-embedded .meter-copy { font-size:7px; }
  body.is-embedded .treasure-meter small { margin-top:3px; font-size:6px; }
  body.is-embedded .meter-track { margin-top:4px; height:5px; }
  body.is-embedded .stat-grid { gap:3px; }
  body.is-embedded .stat-box { padding:5px; border-radius:8px; }
  body.is-embedded .stat-box span { font-size:6px; }
  body.is-embedded .stat-box b { margin-top:2px; font-size:12px; }
  body.is-embedded .jokers-card { display:block; }
  body.is-embedded .jokers-copy small { display:none; }
  body.is-embedded .joker-icons { margin-top:4px; }
  body.is-embedded .joker-icons button { width:27px; height:27px; font-size:12px; }
  body.is-embedded .modal-backdrop { padding:5px; }
  body.is-embedded .modal { max-height:calc(100dvh - 10px); padding:13px; border-radius:15px; }
  body.is-embedded .modal-art { height:38px; font-size:24px; }
  body.is-embedded .modal h2 { font-size:17px; margin:3px 0 5px; }
  body.is-embedded .modal p { font-size:9px; line-height:1.35; }
  body.is-embedded .rules-row { margin:7px 0; gap:3px; }
  body.is-embedded .rules-row span { padding:4px 6px; font-size:6px; }
}
@media (max-width: 900px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  body.is-embedded .game-grid { display:grid!important; grid-template-columns:minmax(270px,34%) minmax(380px,48%) minmax(130px,18%)!important; grid-template-rows:1fr; }
  body.is-embedded .pantry-panel { order:1; display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
  body.is-embedded .scene-panel { order:2; display:grid; grid-template-rows:auto minmax(0,1fr); }
  body.is-embedded .status-panel { order:3; display:flex!important; flex-direction:column; gap:4px; }
  body.is-embedded .scene { min-height:0; }
}
@media (max-width: 650px) and (orientation: portrait), (pointer: coarse) and (orientation: portrait) {
  body.is-embedded .app { grid-template-rows:40px 43px minmax(0,1fr); }
  body.is-embedded .hud-strip { height:43px; grid-template-columns:55px 90px 1fr 65px; }
  body.is-embedded .hud-card, body.is-embedded .progress-card { height:43px; }
  body.is-embedded .game-grid { display:grid!important; grid-template-columns:1fr!important; grid-template-rows:44% minmax(0,56%)!important; }
  body.is-embedded .scene-panel { grid-row:1; order:1; display:grid; grid-template-rows:auto minmax(0,1fr); }
  body.is-embedded .pantry-panel { grid-row:2; order:2; display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
  body.is-embedded .status-panel { position:absolute; right:8px; top:89px; z-index:30; width:104px!important; display:block!important; padding:4px; background:rgba(18,21,38,.88); backdrop-filter:blur(8px); pointer-events:none; }
  body.is-embedded .status-panel .stat-grid, body.is-embedded .status-panel .jokers-card { display:none!important; }
  body.is-embedded .status-panel .treasure-meter { display:block; padding:5px; }
  body.is-embedded .scene { height:100%!important; }
  body.is-embedded .ingredient-grid { grid-template-columns:repeat(4,1fr)!important; }
}
/* v3.0.1 – oprava původního grid-column status panelu */
@media (max-width: 900px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  body.is-embedded .game-grid { grid-template-rows:minmax(0,1fr)!important; grid-auto-rows:0!important; }
  body.is-embedded .pantry-panel { grid-column:1!important; grid-row:1!important; height:100%!important; }
  body.is-embedded .scene-panel { grid-column:2!important; grid-row:1!important; height:100%!important; }
  body.is-embedded .status-panel { grid-column:3!important; grid-row:1!important; height:100%!important; min-width:0!important; overflow:hidden!important; }
  body.is-embedded .ingredient-grid { overflow:hidden!important; }
}
@media (max-width: 650px) and (orientation: portrait), (pointer: coarse) and (orientation: portrait) {
  body.is-embedded .pantry-panel { grid-column:1!important; grid-row:2!important; }
  body.is-embedded .scene-panel { grid-column:1!important; grid-row:1!important; }
  body.is-embedded .status-panel { grid-column:auto!important; grid-row:auto!important; height:auto!important; }
}

/* v3.1.0 – tvrdé uzamčení mobilní herní plochy bez scrollování */
@media (max-width: 900px), (pointer: coarse) {
  html, body.is-embedded { position:fixed!important; inset:0!important; width:100%!important; height:var(--zumpo-vh,100dvh)!important; min-height:0!important; max-height:var(--zumpo-vh,100dvh)!important; overflow:hidden!important; overscroll-behavior:none!important; }
  body.is-embedded { touch-action:manipulation; }
  body.is-embedded .app { position:absolute!important; inset:0!important; width:100%!important; height:100%!important; min-height:0!important; max-height:100%!important; overflow:hidden!important; padding:3px!important; grid-template-rows:36px 40px minmax(0,1fr)!important; }
  body.is-embedded .topbar { height:36px!important; min-height:36px!important; }
  body.is-embedded .brand-icon { width:30px!important; height:30px!important; font-size:16px!important; }
  body.is-embedded .brand-wrap h1 { font-size:13px!important; }
  body.is-embedded .icon-btn { width:30px!important; height:30px!important; }
  body.is-embedded .hud-strip { height:40px!important; grid-template-columns:52px 86px minmax(92px,1fr) 62px!important; }
  body.is-embedded .hud-card, body.is-embedded .progress-card { height:40px!important; padding:4px 6px!important; }
  body.is-embedded .game-grid { height:100%!important; min-height:0!important; max-height:100%!important; overflow:hidden!important; }
  body.is-embedded .panel { min-height:0!important; max-height:100%!important; overflow:hidden!important; }
  body.is-embedded .pantry-panel, body.is-embedded .scene-panel, body.is-embedded .status-panel { min-height:0!important; max-height:100%!important; }
  body.is-embedded .ingredient-grid { min-height:0!important; height:100%!important; overflow:hidden!important; align-content:stretch!important; }
  body.is-embedded .ingredient { min-height:0!important; height:100%!important; max-height:82px!important; }
  body.is-embedded .scene { min-height:0!important; max-height:100%!important; overflow:hidden!important; }
}
@media (max-width: 900px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  body.is-embedded .game-grid { grid-template-columns:minmax(220px,31%) minmax(360px,51%) minmax(118px,18%)!important; }
  body.is-embedded .pantry-panel { padding:5px!important; grid-template-rows:31px minmax(0,1fr) 58px!important; }
  body.is-embedded .scene-panel { padding:5px!important; grid-template-rows:31px minmax(0,1fr)!important; }
  body.is-embedded .status-panel { padding:5px!important; }
  body.is-embedded .ingredient-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:3px!important; }
  body.is-embedded .ingredient .emoji { font-size:15px!important; }
  body.is-embedded .ingredient .name { font-size:6.5px!important; }
  body.is-embedded .selection-tray { display:grid!important; grid-template-columns:minmax(0,1fr) 88px!important; align-items:center!important; gap:4px!important; }
  body.is-embedded .selected-chips { max-height:42px!important; }
  body.is-embedded .selection-tray>.primary-btn { margin:0!important; height:34px!important; }
}
@media (max-width: 650px) and (orientation: portrait), (pointer: coarse) and (orientation: portrait) {
  body.is-embedded .app { grid-template-rows:34px 38px minmax(0,1fr)!important; }
  body.is-embedded .topbar { height:34px!important; min-height:34px!important; }
  body.is-embedded .hud-strip { height:38px!important; }
  body.is-embedded .hud-card, body.is-embedded .progress-card { height:38px!important; }
  body.is-embedded .game-grid { grid-template-rows:minmax(0,43%) minmax(0,57%)!important; }
  body.is-embedded .scene-panel { padding:4px!important; grid-template-rows:27px minmax(0,1fr)!important; }
  body.is-embedded .pantry-panel { padding:4px!important; grid-template-rows:29px minmax(0,1fr) 52px!important; }
  body.is-embedded .ingredient-grid { grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:3px!important; }
  body.is-embedded .ingredient { max-height:70px!important; padding:3px 1px!important; }
  body.is-embedded .ingredient .emoji { font-size:15px!important; }
  body.is-embedded .ingredient .name { font-size:6.2px!important; }
  body.is-embedded .selection-tray { display:grid!important; grid-template-columns:minmax(0,1fr) 92px!important; align-items:center!important; gap:4px!important; }
  body.is-embedded .selected-chips { max-height:38px!important; }
  body.is-embedded .selection-tray>.primary-btn { margin:0!important; height:34px!important; }
}
