/* Rickshaw Jam: warm market-afternoon shell, level card, pause overlay, win/fail card bits */

body.game {
  --bg-top: #f6c56b;
  --bg-bottom: #f1d9a6;
  --hud-ink: #2b1d14;
  --hud-chip: rgba(255, 250, 241, .62);
}
.stage { overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.subhud .chip { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.chip.c-hearts { letter-spacing: 1px; }
.chip.c-hearts.hit { animation: rj-hit .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rj-hit { 0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-4deg); background: #e2462f; color: #fff; } 100% { transform: none; } }

.boost { background: rgba(255, 250, 241, .72); box-shadow: 0 2px 0 rgba(43, 29, 20, .15); }
.boost.on { background: #2b3a6b; color: #fff; }

.rj-hand { margin: -4px 0 0 -12px; }

.rj-card {
  position: absolute; z-index: 6; left: 50%; top: 42%; pointer-events: none; text-align: center;
  transform: translate(-50%, -50%) scale(.6) rotate(-3deg); opacity: 0;
  padding: 12px 26px 14px; border-radius: 18px; background: #2e8b3e; color: #fff;
  box-shadow: 0 10px 30px rgba(43, 29, 20, .35), inset 0 0 0 3px #f6c531;
  transition: opacity .2s, transform .35s cubic-bezier(.2, 1.6, .4, 1);
  max-width: calc(100% - 32px);
}
.rj-card.hard { background: #d9481c; }
.rj-card.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.rj-card b { display: block; font: 700 30px/1.1 var(--display); white-space: nowrap; }
.rj-card small { display: block; font-weight: 700; font-size: 15px; opacity: .95; margin-top: 2px; }

.rj-pause {
  position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; gap: 6px; border: 0;
  background: rgba(43, 29, 20, .55); color: #fffaf1; font: inherit; text-align: center;
}
.rj-pause b { font: 700 34px/1 var(--display); }
.rj-pause span { font-weight: 700; font-size: 17px; opacity: .9; }

.rj-win h2 { text-align: center; }
.rj-win .rj-kicker { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--chili); text-align: center; }
.rj-win .rj-note { text-align: center; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.rj-win .rj-progress { display: grid; gap: 6px; text-align: center; }
.rj-win .rj-got { margin: 0; font-weight: 800; font-size: 18px; color: var(--ink); }
.rj-win .rj-bar { position: relative; height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rj-win .rj-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #f6c531, #2e8b3e); animation: rjFill .7s cubic-bezier(.2, .8, .3, 1) both; transform-origin: left; }
@keyframes rjFill { from { transform: scaleX(0); } }

/* v2: tries chip (three little autos), twist card */
.chip.c-hearts i { font-style: normal; display: inline-block; transition: filter .3s, opacity .3s, transform .3s; }
.chip.c-hearts i.off { filter: grayscale(1); opacity: .3; transform: scale(.8); }
.rj-card.twist { background: #2f7fc0; }
