/* The demo's stage styles (santas-sack-demo.html, lines 64-116), unchanged. */
.stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--night); }
.stage canvas { display: block; width: 100%; aspect-ratio: 360 / 468; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.hud { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(6, 12, 30, 0.6); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.chip.who { color: var(--gold); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold); display: block; }
.dots i.on { background: var(--gold); }
.tbar { width: 64px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); overflow: hidden; display: block; }
.tbar b { display: block; height: 100%; width: 100%; background: var(--gold); border-radius: 3px; }
.tbar b.low { background: var(--holly); }
.wind-arrows { color: #bfe3ff; letter-spacing: -2px; }
.total {
  position: absolute; left: 0; right: 0; top: 9%; text-align: center; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 10vw, 44px); line-height: 1;
  color: var(--gold); -webkit-text-stroke: 6px #3a1206; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.total.none { color: #c9cfd8; -webkit-text-stroke: 6px #111; font-size: clamp(24px, 8vw, 34px); }
.bubble {
  position: absolute; left: 3%; bottom: 42.5%; max-width: 60%; padding: 5px 12px; border-radius: 14px;
  background: #fffaf0; color: #a3141f; font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.2; pointer-events: none;
}
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -8px; border: 8px solid transparent; border-top-color: #fffaf0; border-bottom: 0; }
.flash { position: absolute; inset: 0; background: #fffae6; opacity: 0; pointer-events: none; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); background: var(--night); }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(6, 12, 30, 0.55); }
.card {
  width: 100%; max-width: 290px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center;
  background: linear-gradient(180deg, #1c3263, #10224a); border: 1.5px solid var(--gold); border-radius: 18px; padding: 20px 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.card .k { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.card h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; text-wrap: balance; }
.card .amt {
  font-family: var(--font-display); font-weight: 800; font-size: 50px; line-height: 1; margin: 4px 0;
  background: linear-gradient(180deg, #fff6d0, #f5c451 55%, #d08a12); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .tiny { font-size: 12px; opacity: 0.8; }
.btn {
  margin-top: 8px; border: 0; border-radius: 14px; padding: 12px 28px; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  background: linear-gradient(180deg, #ffe08a, #e2a92a); color: #2a1a00; box-shadow: 0 5px 0 #9c6a12;
}
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 #9c6a12; }

.hint { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; min-height: 1.5em; }
