* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #6ec6ff; touch-action: none; user-select: none; -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
#stage { position: fixed; inset: 0; background: #6ec6ff url(images/gen/gptimg_1795565577_look.png) center bottom / cover no-repeat; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 0; pointer-events: none; }
.chip { padding: 8px 12px; border-radius: 14px; color: #fff3d6; font-size: 15px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(#8a5a33, #5e3a1e); border: 2px solid #c8935a; box-shadow: 0 3px 8px rgba(60,30,0,.35); }
.chip b { font-size: 20px; color: #ffd45e; margin-left: 2px; }
#combo.hot b { color: #ff8a3d; }
.goal { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 14px; text-align: center; color: #fff3d6; font-size: 13px; font-weight: 600;
  background: linear-gradient(#8a5a33, #5e3a1e); border: 2px solid #c8935a; box-shadow: 0 3px 8px rgba(60,30,0,.35); }
.goal-bar { height: 8px; margin-bottom: 4px; border-radius: 6px; background: rgba(0,0,0,.35); overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: #FF8A3D; transition: width .15s; }
.goal.ok .goal-bar i { background: #7ddc4a; }
#toast { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-size: 30px; font-weight: 800; color: #fff;
  text-shadow: 0 3px 0 #c2571a, 0 0 12px rgba(255,138,61,.8); opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: scale(1); }
.panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(40,20,0,.45); }
.panel.hide { display: none; }
.card { width: 100%; max-width: 340px; padding: 26px 22px 22px; text-align: center; border-radius: 26px; background: linear-gradient(#fff6e3, #ffe2b8);
  border: 4px solid #FF8A3D; box-shadow: 0 10px 30px rgba(60,30,0,.45); }
.p-title { font-size: 30px; font-weight: 800; color: #c2571a; }
.p-desc { margin: 12px 0 20px; font-size: 16px; line-height: 1.7; color: #5e3a1e; white-space: pre-line; }
button { width: 100%; padding: 14px 0; border: 0; border-radius: 18px; font-size: 20px; font-weight: 800; color: #fff; background: linear-gradient(#ffa24f, #FF8A3D);
  box-shadow: 0 5px 0 #c2571a; }
button:active { transform: translateY(3px); box-shadow: 0 2px 0 #c2571a; }
button.ad { margin-bottom: 14px; background: linear-gradient(#8fe35a, #4fb82e); box-shadow: 0 5px 0 #2f7d1a; }
button.ad:active { box-shadow: 0 2px 0 #2f7d1a; }
