* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #3b2a1c; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; touch-action: manipulation; }
#game { position: fixed; inset: 0; display: flex; flex-direction: column; background: #3b2a1c; }
.scene { position: relative; width: 100%; aspect-ratio: 1024 / 805; background: url('images/gen/gptimg_1795532614_look.png') 0 0 / 100% auto no-repeat; flex: none; }
.coin-score { position: absolute; left: 23.5%; top: 4.2%; width: 9%; font-weight: 900; font-size: 4.6vw; color: #fff; text-shadow: 0 1px 2px #000; background: #3a2d2a; border-radius: 4px; padding: 1px 0; z-index: 2; }
.bar-track { position: absolute; left: 33.7%; top: 15.1%; width: 34%; height: 3.4%; background: #3a3036; border-radius: 99px; overflow: hidden; z-index: 2; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ffb13d, #ff3b2f); transition: width .12s linear; }
.gaze { position: absolute; left: 56%; top: 24%; width: 44%; height: 30%; background: rgba(255, 40, 40, .28); clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.gaze.on { opacity: 1; }
.lvl { position: absolute; right: 3%; top: 4%; background: rgba(58, 45, 42, .85); color: #ffd66b; font-weight: 800; font-size: 3.6vw; padding: 3px 10px; border-radius: 99px; }
.hide-btn { position: absolute; left: 81.5%; top: 79%; width: 15.5%; aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; background: transparent; }
.hide-btn.active { border-color: #5be37a; box-shadow: 0 0 12px #5be37a; }
.tip { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-weight: 900; font-size: 5vw; color: #fff; text-shadow: 0 2px 4px #000; pointer-events: none; }
.tray { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(#f3c77a, #e0a24f); }
.snacks { display: flex; gap: 8px; justify-content: center; }
.snack { flex: 1; max-width: 110px; background: #fff7e3; border: 3px solid #b9783a; border-radius: 14px; padding: 6px 2px; font-size: 3.4vw; font-weight: 800; color: #5a3517; text-align: center; }
.snack.sel { border-color: #ff8a3d; background: #ffe2b8; box-shadow: 0 0 0 2px #fff inset; }
.snack.lock { opacity: .45; }
.snack .n { display: block; font-size: 3vw; font-weight: 600; }
.row { display: flex; gap: 8px; }
.act { flex: 1; height: 54px; border-radius: 16px; border: 3px solid #5a3517; background: #fff7e3; color: #5a3517; font-size: 4.2vw; font-weight: 900; }
.act.main { flex: 2; background: linear-gradient(#ffd25a, #ff9f1c); font-size: 5vw; }
.act.on { filter: brightness(.9); transform: translateY(2px); }
.eatbar { height: 10px; background: #5a3517; border-radius: 99px; overflow: hidden; }
#eatFill { height: 100%; width: 0%; background: #5be37a; }
.screen { position: absolute; inset: 0; background: #3b2a1c; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; z-index: 5; }
.screen[hidden], .unlock[hidden] { display: none; }
.panel { position: relative; width: 100%; background-image: url('images/gen/gptimg_1795532614_look.png'); background-size: 100% auto; background-repeat: no-repeat; }
.panel.p2 { aspect-ratio: 1024 / 360; background-position: 0 68.7%; }
.panel.p3 { aspect-ratio: 1024 / 366; background-position: 0 100%; }
.win-score { position: absolute; left: 51%; top: 36%; width: 22%; font-weight: 900; font-size: 8vw; color: #ffd02e; text-shadow: 0 2px 0 #5a3517; background: #4a3326; border-radius: 12px; text-align: center; }
.sc-info { margin-top: 18px; color: #fff; font-size: 5vw; font-weight: 800; }
.sc-info b { color: #ffd02e; }
.go { margin-top: 22px; width: 62%; height: 60px; border-radius: 99px; border: 4px solid #5a3517; background: linear-gradient(#ffd25a, #ff9f1c); font-size: 5.4vw; font-weight: 900; color: #5a3517; }
.unlock { position: absolute; left: 10%; right: 10%; top: 45%; z-index: 8; background: #fff7e3; border: 4px solid #ff8a3d; border-radius: 18px; padding: 14px; text-align: center; font-weight: 900; color: #5a3517; font-size: 4.6vw; }
