:root{--ink:#4b3225;--paper:#fff4df;--cream:#f6e8d2;--wood:#7a5238;--orange:#f28c62;--teal:#2e6f7e;--green:#7faf4d;--shadow:#d7b891;--line:#b88d60;--muted:#82674e}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:15px system-ui,-apple-system,sans-serif;background:#e9d8b8;background-image:linear-gradient(90deg,#fff3df44 50%,transparent 50%),linear-gradient(#fff3df44 50%,transparent 50%);background-size:36px 36px}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:2px solid var(--ink);border-radius:7px;background:#fff0d5;padding:8px 11px;font-weight:750;box-shadow:0 3px 0 #4b322533;touch-action:manipulation}button:active{transform:translateY(2px);box-shadow:none}button:disabled{opacity:.45;cursor:not-allowed;transform:none}button.primary{background:var(--orange);color:#49291e}button.blue{background:#65b7c5}button.green{background:#a0c86c}button.danger{background:#f6c2a4}button.small{font-size:12px;padding:7px 9px}button.active{background:#f6b277;box-shadow:inset 0 -3px #b96a3e}img{image-rendering:pixelated;object-fit:contain}#app{max-width:880px;margin:auto;padding:12px 12px 90px}header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0 10px}.brand{display:flex;align-items:center;gap:7px}.brand>img{width:56px;height:56px;filter:drop-shadow(2px 3px 0 #b68c61)}h1{font-size:clamp(18px,4vw,29px);line-height:1.03;margin:0;font-weight:1000;letter-spacing:-.8px;color:#2e6f7e;text-shadow:1px 1px #fff7e8,2px 2px #bfa78c}h1 span{color:#c85d3d}.brand p{font-size:10px;margin:5px 0 0;font-weight:650}.top-actions{display:flex;gap:5px}.stats{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff6e5;border:2px solid var(--wood);box-shadow:0 3px 0 #9d754e55;border-radius:9px;padding:9px 13px;margin-bottom:12px}.stats>div{display:flex;flex-direction:column;gap:2px}.stats small{font-size:9px;font-weight:800;letter-spacing:.5px;color:var(--muted)}.stats b{font-size:18px;line-height:1.2}.money b{color:#a46b20}.xpstat{flex:1;max-width:200px}.meter{height:10px;border:1px solid #654d38;background:#d4bca2;border-radius:4px;overflow:hidden}.meter i{display:block;height:100%;background:#80af55;transition:width .15s}.panel{background:var(--paper);border:2px solid var(--wood);border-radius:10px;box-shadow:0 4px 0 #9c744c55;overflow:hidden;margin-bottom:12px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;background:#ead2ad;border-bottom:2px solid var(--line)}.panel-head h2{font-size:16px;margin:0;font-weight:900;letter-spacing:.1px}.label{font-size:10px;font-weight:800;color:var(--muted);letter-spacing:1px}.panel-body{padding:12px}.tabs{display:flex;gap:5px;padding:8px;background:#f3e3c9;border-bottom:1px solid #c8a77c}.tabs button{flex:1;font-size:13px;min-width:0;padding:8px 3px}.workstation{min-height:228px;background:repeating-linear-gradient(0deg,#bd895b 0,#bd895b 30px,#b17a4e 31px,#c08d60 33px);border:2px solid #805333;border-radius:8px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden}.board{width:95%;max-width:375px;min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid #75482f;border-radius:8px;background:repeating-linear-gradient(90deg,#e6bb85 0,#e6bb85 40px,#e2b17b 41px,#e9c08c 44px);box-shadow:0 5px 0 #7c503a, inset 0 0 0 3px #f2cea0;position:relative;padding:8px}.board .big{width:150px;height:112px}.board p{margin:4px 0;font-size:12px;font-weight:bold}.empty{color:#735842;text-align:center;font-size:13px;padding:16px}.hint{font-size:12px;color:var(--muted);margin:8px 0 0}.row{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.sectionline{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:10px 0 6px}.sectionline h3{font-size:13px;margin:0}.inventory{display:flex;gap:7px;overflow:auto;padding:3px 2px 7px;scrollbar-width:thin}.item{flex:0 0 91px;min-height:91px;background:#fff8ea;border:2px solid #c59b6b;border-radius:7px;padding:4px;display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative;box-shadow:none;gap:3px}.item.active{border-color:#a95b38;background:#ffe1b6}.item img{width:54px;height:45px}.item span{font-size:10px;line-height:1.15;text-align:center;max-width:100%}.item b{position:absolute;top:3px;right:4px;font-size:10px;background:#4b3225;color:#fff5de;border-radius:4px;padding:2px 4px}.stars{color:#ac741c;font-size:11px;letter-spacing:1px}.scene{position:relative;overflow:hidden;background:#1b7188;aspect-ratio:2.65;min-height:175px;isolation:isolate}.scene canvas{position:absolute;width:100%;height:100%;image-rendering:pixelated}.fish{position:absolute;width:clamp(45px,10%,77px);height:auto;aspect-ratio:1.3;border:0;background:none;padding:0;box-shadow:none;filter:drop-shadow(2px 3px 0 #093a4f66);animation:swim 4s ease-in-out infinite alternate;z-index:2}.fish img{width:100%;height:100%}.fish:active{transform:none}.fish.target{outline:2px dashed #ffe392;border-radius:50%}.fish .fish-name{position:absolute;left:50%;transform:translateX(-50%);top:90%;white-space:nowrap;font-size:10px;background:#133e53bb;color:#fff4d4;padding:2px 4px;border-radius:3px}.fish.flip img{transform:scaleX(-1)}@keyframes swim{0%{translate:-6px 0}100%{translate:12px -8px}}.diver{position:absolute;width:16%;height:37%;left:5%;top:31%;image-rendering:pixelated;z-index:3;transition:top .4s,left .4s;pointer-events:none;filter:drop-shadow(3px 4px #0a3d4c70)}.water-hud{position:absolute;top:8px;left:8px;right:8px;z-index:4;display:flex;justify-content:space-between;pointer-events:none;color:white;font-size:11px;font-weight:800}.water-hud span{background:#103a4dbb;padding:5px 7px;border-radius:4px}.sea-actions{padding:9px 10px;background:#d9ebe1;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.sea-actions button{font-size:12px;padding:6px 9px}.oxygen{min-width:85px;flex:1;color:#215d70;font-size:11px;font-weight:800}.oxygen .meter{background:#acc8c7}.oxygen i{background:#65b7c5}.catchbar{position:absolute;bottom:8px;left:10%;right:10%;background:#103a4de8;color:#fff6dc;border:2px solid #b8dbcb;padding:7px;border-radius:8px;z-index:5;display:grid;gap:6px}.timing{height:16px;background:#c17b64;border:2px solid #4b3225;position:relative;overflow:hidden;border-radius:4px}.zone{height:100%;background:#8cc168;position:absolute;top:0}.needle{position:absolute;top:0;height:100%;width:3px;background:#fff8db;box-shadow:0 0 0 1px #38271e}.catchbar button{padding:5px}.counter{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.burner{background:#4f4744;border:3px solid #392c27;box-shadow:inset 0 0 0 2px #736258;min-height:166px;border-radius:9px;display:flex;align-items:center;flex-direction:column;justify-content:center;color:#fff0d3;padding:6px;position:relative}.burner .cook-img{width:100%;height:91px;position:relative;display:grid;place-items:center;background:repeating-linear-gradient(0deg,#282728 0,#282728 6px,#44403d 7px,#44403d 9px);border:5px solid #252528;border-radius:50%}.burner:first-child .cook-img{background:radial-gradient(ellipse,#3c3c3f,#292829);border:6px solid #272729}.burner img{height:86%;width:76%;position:relative;z-index:1}.burner p{font-size:11px;margin:5px}.burner button{font-size:11px;padding:5px 6px}.burner .meter{width:100%;margin:4px 0}.burner .meter i{background:#e6ab55}.steam:after{content:'';position:absolute;inset:4px 32% 24px;background:radial-gradient(ellipse,#fff8 0,transparent 65%);animation:steam 1s infinite;pointer-events:none}@keyframes steam{from{transform:translateY(15px);opacity:.6}to{transform:translateY(-20px);opacity:0}}.plate-stage{height:215px;max-width:360px;width:100%;position:relative;touch-action:none;background:#bf8f60;border-radius:6px}.plate-stage .plate-bg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.placed{position:absolute;width:25%;height:31%;transform:translate(-50%,-50%);object-fit:contain;cursor:grab;touch-action:none;filter:drop-shadow(1px 2px #31271840)}.placed.selected{outline:2px dashed #eab85e;border-radius:5px}.dish-preview{position:relative;width:94px;height:68px;flex:none}.dish-preview img{position:absolute;inset:0;width:100%;height:100%}.dish-preview .mini-piece{width:25%;height:31%;inset:auto;transform:translate(-50%,-50%)}.shop-grid,.garden-grid,.book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.shop-item{background:#fff6e5;border:2px solid #c39b71;padding:10px;border-radius:7px;display:grid;gap:5px}.shop-item img{width:74px;height:63px;margin:auto}.shop-item h3{font-size:13px;margin:0}.shop-item p{font-size:11px;margin:0;color:var(--muted)}.shop-item button{font-size:12px}.plot{min-height:139px;background:#9ab67b;border:2px solid #526d43;border-radius:7px;padding:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;font-size:12px}.plot .soil{width:100%;height:76px;background:repeating-linear-gradient(0deg,#7b5138 0,#7b5138 14px,#956948 15px,#956948 17px);border:3px solid #b38b59;border-radius:5px;display:grid;place-items:center}.plot img{width:90%;height:72px}.plot button{font-size:11px;padding:5px 7px}.plot .meter{width:100%}.plot.locked{opacity:.6}.garden-bg{background:#c7d9a1}.restaurant-scene{aspect-ratio:2.3;min-height:210px;position:relative;background:#9f6745;overflow:hidden;isolation:isolate}.restaurant-scene canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}.seat{position:absolute;bottom:15%;width:17%;height:65%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;cursor:pointer;background:none;border:0;box-shadow:none;padding:0}.seat>img{height:62%;width:100%;object-fit:contain;filter:drop-shadow(2px 2px #41271960)}.bubble{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff4dd;border:2px solid #694631;border-radius:8px;box-shadow:0 3px #4b322544;width:95%;padding:2px;z-index:4}.bubble:after{content:'';position:absolute;bottom:-7px;left:50%;border:5px solid transparent;border-top-color:#fff4dd}.bubble img{width:100%;height:35px}.bubble span{font-size:9px;font-weight:800;line-height:1.1;text-align:center}.bubble .meter{width:94%;height:5px;margin:3px}.order-card{display:flex;gap:10px;align-items:center;border:2px solid #d0aa7d;border-radius:8px;background:#fff8ec;padding:9px;margin:6px 0}.order-card img{width:57px;height:57px}.order-card .detail{flex:1;min-width:0}.order-card strong{font-size:13px}.order-card p{font-size:11px;margin:3px 0;color:var(--muted)}.order-card .meter{margin-top:5px}.order-card button{font-size:11px;padding:5px 7px}.dish-card{display:flex;align-items:center;gap:8px;border:2px solid #d2af83;background:#fff8e9;padding:6px;border-radius:7px;margin:5px 0}.dish-card.active{border-color:#c46f3e;background:#ffe4ba}.dish-card .detail{flex:1;font-size:12px}.dish-card button{font-size:11px}.tag{display:inline-block;font-size:10px;background:#dbedca;color:#416632;border-radius:3px;padding:3px 5px;font-weight:800}.tag.warn{background:#ffe2a6;color:#8c5b19}nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);max-width:880px;width:100%;background:#e9d0a8;border:2px solid #7a5238;border-bottom:0;border-radius:12px 12px 0 0;display:flex;gap:5px;padding:6px 9px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -4px 12px #4b322522}nav button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;position:relative;font-size:13px;padding:5px}nav img{height:31px;width:36px}#orderBadge:not(:empty){position:absolute;right:4px;top:3px;background:#b84832;border-radius:10px;color:white;font-size:10px;padding:1px 5px}#toast{position:fixed;z-index:30;bottom:86px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;background:#4b3225;color:#fff4df;border:2px solid #e9b77a;border-radius:8px;padding:10px 15px;font-size:13px;font-weight:700;box-shadow:0 3px 8px #0003;opacity:0;pointer-events:none;transition:opacity .15s}#toast.show{opacity:1}#modal{position:fixed;inset:0;background:#271b16aa;z-index:25;display:grid;place-items:center;padding:15px}#modal[hidden]{display:none}.modal-inner{background:#fff2d9;border:3px solid #765039;border-radius:12px;box-shadow:0 5px 0 #41291e;max-width:620px;width:100%;max-height:85vh;overflow:auto;padding:15px}.modal-inner h2{margin:0 0 10px;font-size:20px}.modal-inner p{font-size:13px;line-height:1.5}.modal-inner .close{float:right}.muted{color:var(--muted)}.notice{background:#e7efd0;border:1px solid #a1b47c;border-radius:7px;padding:8px;font-size:12px;margin:7px 0}.count{font-size:12px;font-weight:700}.progress-label{font-size:11px;text-align:center;margin:5px}.wide{width:100%}.hidden{display:none!important}@media(max-width:500px){#app{padding:7px 7px 80px}.brand>img{width:43px;height:43px}.brand p{font-size:9px;max-width:235px}.top-actions{flex-direction:column}.top-actions button{padding:4px 6px;font-size:10px}.stats{padding:7px 9px;gap:7px}.stats b{font-size:15px}.panel-body{padding:8px}.panel-head{padding:8px}.workstation{min-height:195px}.tabs button{font-size:11px}.garden-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plot{padding:5px}.seat{width:18%}.scene{aspect-ratio:2.1}.restaurant-scene{aspect-ratio:1.8}nav button{font-size:11px}nav img{height:26px;width:30px}.order-card{gap:5px;padding:6px}.order-card img{width:44px;height:44px}.order-card button{font-size:10px}.item{flex-basis:80px}.plate-stage{height:193px}}
.small-food{width:44px;height:35px}.modal-food{width:78px;height:72px}.board{touch-action:none}.restaurant-scene .seat img{object-fit:contain}.shop-item .empty{min-height:55px}.fish-name{pointer-events:none}
.order-strip{display:flex;align-items:center;gap:5px;overflow:auto;background:#e2ead0;padding:5px 8px;border-bottom:1px solid #a6ac7b}.order-strip>b{font-size:10px;white-space:nowrap}.order-strip button{display:flex;align-items:center;gap:3px;flex:0 0 auto;font-size:10px;padding:3px 5px;border-width:1px;max-width:145px;box-shadow:none}.order-strip img{height:24px;width:27px}.order-strip span{max-width:100px;text-align:left;line-height:1.12}.fish{max-width:68px}.fish-name{font-size:9px}.board .big{filter:drop-shadow(3px 4px #67473340)}.workstation{box-shadow:inset 0 0 0 2px #cc9f72}.plate-stage{box-shadow:inset 0 0 0 2px #d9b184}.restaurant-scene .seat{bottom:12%}.restaurant-scene .seat>img{height:62%}.panel-body .hint{line-height:1.4}.fish:focus-visible,.seat:focus-visible{outline:2px solid #ffebba}.fish img{filter:drop-shadow(0 1px #2f526380)}@media(max-width:500px){.workstation{min-height:155px;padding:7px}.board{min-height:126px}.board .big{width:120px;height:84px}.board p{font-size:11px}.tabs{padding:6px}.tabs button{padding:6px 3px}.sectionline{margin:7px 0 4px}.inventory{padding:2px 1px 4px}.item{min-height:80px}.item img{width:52px;height:37px}.panel{margin-bottom:9px}.sea-actions{padding:7px;gap:4px}.sea-actions button{padding:5px;font-size:10px}.oxygen{min-width:58px}.scene{min-height:164px;aspect-ratio:2.55}.stats{margin-bottom:9px}.panel-body{padding:7px}.panel-head h2{font-size:14px}.hint{font-size:11px}.plate-stage{height:180px}.counter .burner{min-height:140px}.burner .cook-img{height:75px}.workstation:has(.counter){min-height:160px}.workstation:has(.plate-stage){min-height:198px}.workstation:has(#pressBtn){min-height:208px}.brand p{max-width:300px}.brand>img{width:41px;height:41px}.restaurant-scene{min-height:190px}.order-strip>b{font-size:9px}}
#pressBtn,#prepBoard,#plateStage,.fish,.plate-tools button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none;-webkit-tap-highlight-color:transparent}#pressBtn{min-width:120px;min-height:48px;font-size:20px}.prep-board{min-height:170px}.prep-object{position:relative;width:210px;height:118px;display:grid;place-items:center;touch-action:none}.prep-object .big{width:190px;height:112px;object-fit:contain;pointer-events:none}.prep-knife{display:none;position:absolute;z-index:5;pointer-events:none;width:65px;height:30px;transform:translate(-25%,-75%)}.cut-guide{position:absolute;left:20%;right:20%;top:50%;border-top:3px dashed #fff6b7;filter:drop-shadow(0 1px #69452e);pointer-events:none}.cut-guide.vertical{left:50%;right:auto;top:14%;bottom:14%;border-top:0;border-left:3px dashed #fff6b7}.prep-object.cutting .big{filter:brightness(1.12)}.prep-object.cutting .cut-guide{border-color:#8bce77}.prep-object.cutdone .big{animation:prep-split .23s steps(4) forwards}@keyframes prep-split{to{transform:scale(1.09) translateY(-6px);opacity:.25}}.batch-row,.plate-tools,.sauce-tools{flex-wrap:wrap;margin-top:7px;gap:4px}.batch-row button{min-width:34px}.plate-tools button,.sauce-tools button{min-height:32px}.sauce-layer{position:absolute;inset:0;width:100%;height:100%;z-index:30;pointer-events:none}.dish-preview{position:relative}.dish-preview .sauce-layer{z-index:5}.fish .swim-sprite{display:block;width:100%;aspect-ratio:1;background-size:600% 100%;background-repeat:no-repeat;image-rendering:pixelated;animation:body-swim .62s steps(6) infinite;pointer-events:none}.fish .swim-flip{transform:scaleX(-1)}@keyframes body-swim{from{background-position:0 0}to{background-position:120% 0}}.fish.crab .swim-sprite{animation-duration:.45s}.fish.shell .swim-sprite{animation-duration:2s}.fish.shell{animation:none}.fish.crab{animation:bottom-walk 5s ease-in-out infinite alternate}.fish.shrimp .swim-sprite{animation-duration:.42s}.fish.squid .swim-sprite{animation-duration:.85s}@keyframes bottom-walk{from{translate:-10px 0}to{translate:14px 0}}.rarity-L{filter:drop-shadow(0 0 6px #ffdd66)}.rarity-E{filter:drop-shadow(0 0 3px #c899ff)}.tank-scene{height:190px;border:4px solid #795337;border-radius:8px;overflow:hidden;background:#286d7c url('assets/ocean5.png') center/100% 100%;margin-bottom:10px;image-rendering:pixelated}.tank-water{position:absolute;inset:0}.scene:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 14% 80%,#d9fffa99 0 1px,transparent 2px),radial-gradient(circle at 65% 60%,#c8f9ff77 0 2px,transparent 3px);background-size:73px 87px,133px 123px;animation:bubbles-rise 7s linear infinite}@keyframes bubbles-rise{to{background-position:0 -174px,0 -246px}}
.scene{width:100%;max-width:100%;min-width:0;height:180px;aspect-ratio:auto}.tank-scene{height:190px}.water-hud{right:8px;max-width:calc(100% - 16px)}.water-hud span{white-space:nowrap;font-size:10px}.version-tag{font-size:9px;color:#926b44;font-weight:800;letter-spacing:.08em}.fish-name{max-width:94px;overflow:hidden;text-overflow:ellipsis}.fish{max-width:62px}.board .prep-object .big{image-rendering:pixelated}
