/* Prompt Glider — global classes only (no inline styles). */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; font-family: -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif; }
#scene { position: fixed; inset: 0; }
canvas { display: block; }

.hud { position: fixed; padding: 10px 14px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6); pointer-events: none; }
.hud .label { font-size: 11px; letter-spacing: 2px; opacity: .85; text-transform: uppercase; }
.toast { position: fixed; top: 12%; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: rgba(10,16,30,.8); color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 18px; font-weight: 800; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hud.tl { top: 14px; left: 16px; }
.hud.tr { top: 14px; right: 16px; text-align: right; }
.hud .big { font-size: 40px; font-weight: 800; line-height: 1; }
.hud .sub { font-size: 14px; opacity: .8; }

.badge { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(16,32,64,.78); color: #fff; padding: 6px 18px; border-radius: 999px;
  font-weight: 700; letter-spacing: 2px; font-size: 13px; }

.panel { position: fixed; right: 16px; bottom: 16px; width: 190px; background: rgba(255,255,255,.86);
  border-radius: 12px; padding: 10px 12px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.panel b { display: block; margin-bottom: 6px; }
.panel .row { padding: 2px 0; }
.panel .row.hot { color: #d36; font-weight: 800; }

.picker { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; padding: 10px 6px;
  border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.85); cursor: pointer;
  font-size: 26px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.card span { font-size: 12px; color: #234; }
.card.sel { border-color: #2b7; background: #fff; }

.btn { position: fixed; bottom: 16px; left: 16px; padding: 12px 20px; border: 0; border-radius: 12px;
  background: #2b7; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.btn.static { position: static; }
.demos { position: fixed; bottom: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.demos .btn { position: static; }
.btn.mini { padding: 8px 14px; font-size: 13px; background: rgba(16,32,64,.82); text-align: left; }

.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: rgba(10,20,40,.55); color: #fff; }
.overlay.hidden { display: none; }
.overlay .total { font-size: 64px; font-weight: 900; }
.overlay .new { font-size: 22px; color: #ffd84a; min-height: 26px; }

.pop { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
