/* ============================================================
 * LuckPressureGauge.css — the 53-card luck pressure gauge.
 * Shared by the standalone page and the Fortune Timeline (one stylesheet).
 * House palette: black lacquer, antique gold, cinnabar.
 * ============================================================ */

.lpg-stage {
  --lpg-gold: #d4af37;
  --lpg-gold-dim: #8a6f22;
  --lpg-ink: #0b0a08;
  --lpg-lacquer: #120f0c;
  --lpg-cream: #f2e9d4;
  --lpg-cinnabar: #b4302a;
  --lpg-jade: #4f9c74;
  --lpg-mute: #a89a7e;
  --lpg-card-w: 118px;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 1.2rem;
  color: var(--lpg-cream);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(180deg, #17120d 0%, var(--lpg-lacquer) 55%, #0a0806 100%);
  border: 2px solid var(--lpg-gold-dim);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(212, 175, 55, 0.18);
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
}

.lpg-stage *,
.lpg-stage *::before,
.lpg-stage *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- header */
.lpg-head { text-align: center; margin-bottom: 1.1rem; }

.lpg-title {
  margin: 0;
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: 0.03em;
  color: var(--lpg-gold);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.lpg-kicker {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lpg-mute);
}

/* ----------------------------------------------------------------- board */
.lpg-board {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.2rem;
  align-items: start;
}

.lpg-col-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpg-gold-dim);
}

.lpg-anchor-col { justify-self: start; }

.lpg-river-col { min-width: 0; }

.lpg-deck-col { justify-self: end; }

.lpg-river {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
  padding-bottom: 0.35rem;
}

/* four cards to a row; a fifth wraps under, with its own critical meter */
.lpg-river-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--lpg-gold-dim) transparent;
}

.lpg-river-row.is-second {
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.28);
}

.lpg-river::-webkit-scrollbar { height: 6px; }
.lpg-river::-webkit-scrollbar-thumb { background: var(--lpg-gold-dim); border-radius: 3px; }

.lpg-river-slot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: lpg-deal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--lpg-i, 0) * 90ms);
}

.lpg-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lpg-mute);
}

/* THE BONUS STAMP (owner N-20261106-01/02, narrowed by N-20261111-09): ONE overlay
   per bonus, exactly the size and shape of the card — sticky only for a NAMED bonus
   (Lucky Match, Royal Match, Dethroned, Suite Chain, Cataclysm, Calamity Breaker,
   High Luck / Lucky Break). A plain win or loss wears no stamp at all: its money is
   the `.lpg-card-delta` above the card, printed once. Never interactive. */
.lpg-card-wrap { position: relative; display: block; line-height: 0; }

.lpg-pip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: grid;
  place-content: center;
  pointer-events: none;
  color: #eafff2;
  background: radial-gradient(120% 120% at 50% 40%, rgba(18, 62, 40, 0.88), rgba(4, 18, 12, 0.78));
  border: 2px solid rgba(74, 222, 128, 0.92);
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.55), inset 0 0 26px rgba(74, 222, 128, 0.35);
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.9);
  animation: lpgLuckPulse 1.45s ease-out both;
  animation-delay: calc(var(--lpg-i, 0) * 90ms + 460ms);
}

/* (the signed +$1 / −$1 pip that lived here is RETIRED — owner N-20261111-09: the
   money is printed once, above the card, and the pip is only for a NAMED bonus) */

/* SUIT SLIP: the neutral stamp (owner 2026-11-08) */
.lpg-pip-slip {
  color: #f2ecd8;
  background: radial-gradient(120% 120% at 50% 40%, rgba(70, 62, 40, 0.9), rgba(14, 12, 6, 0.85));
  border-color: rgba(232, 214, 160, 0.9);
  box-shadow: 0 0 20px rgba(232, 214, 160, 0.45), inset 0 0 22px rgba(232, 214, 160, 0.18);
  text-shadow: 0 0 12px rgba(255, 240, 200, 0.8);
}
.lpg-pip-slipword {
  display: inline-block;
  transform: rotate(-12deg);
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: calc(var(--lpg-card-w) * 0.16);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
}
/* the modifier ("High" / "Royal" / "Royal High") stacks above "Suite Chain" so the
   longest name still fits inside the card face */
.lpg-pip-slipword .lpg-pip-mod,
.lpg-pip-slipword .lpg-pip-noun { display: block; }
.lpg-card.is-slip { border-color: rgba(255, 92, 74, 0.82); }
/* THE CATACLYSM (owner 2026-11-09): a suite chain on an UNLUCKY streak. It reads
   red, names itself, and prints the price it just took. */
.lpg-pip-cataclysm {
  color: #ffd9d4;
  background: radial-gradient(120% 120% at 50% 40%, rgba(150, 22, 15, 0.94), rgba(38, 4, 4, 0.92));
  border-color: rgba(255, 96, 78, 0.95);
  box-shadow: 0 0 26px rgba(255, 66, 48, 0.62), inset 0 0 26px rgba(255, 92, 72, 0.3);
  text-shadow: 0 0 14px rgba(255, 116, 96, 0.9);
}
.lpg-pip-cataclysm .lpg-pip-cataclysmword {
  display: inline-block;
  transform: rotate(-12deg);
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: calc(var(--lpg-card-w) * 0.155);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lpg-pip-cataclysm .lpg-pip-cataclysmval {
  display: block;
  margin-top: calc(var(--lpg-card-w) * 0.035);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: calc(var(--lpg-card-w) * 0.1);
  letter-spacing: 0.04em;
  color: #ffb9ad;
  text-shadow: 0 0 10px rgba(255, 90, 70, 0.85);
}
.lpg-pip-cataclysm.is-deep {
  border-width: 2px;
  box-shadow: 0 0 36px rgba(255, 54, 36, 0.8), inset 0 0 32px rgba(255, 84, 62, 0.4);
}
.lpg-pip-cataclysm.is-deep .lpg-pip-cataclysmval { color: #ff8c78; }
/* THE ESCAPE (owner 2026-11-09): out of a calamity by an off-suit higher card */
.lpg-pip-escape {
  color: #d9ffe8;
  background: radial-gradient(120% 120% at 50% 40%, rgba(16, 84, 58, 0.92), rgba(4, 26, 18, 0.9));
  border-color: rgba(96, 226, 160, 0.95);
  box-shadow: 0 0 24px rgba(72, 220, 150, 0.5), inset 0 0 24px rgba(96, 226, 160, 0.28);
  text-shadow: 0 0 12px rgba(150, 255, 200, 0.85);
}
.lpg-pip-escape .lpg-pip-escapeword {
  display: inline-block;
  transform: rotate(-10deg);
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: calc(var(--lpg-card-w) * 0.15);
  font-weight: 700;
}
.lpg-card.is-escaped { border-color: rgba(96, 226, 160, 0.7); }
/* HIGH: every chain after the first — gold wash */
.lpg-pip-highchain {
  border-color: rgba(255, 214, 106, 0.95);
  box-shadow: 0 0 26px rgba(255, 200, 90, 0.6), inset 0 0 26px rgba(255, 214, 120, 0.24);
}
.lpg-pip-highchain .lpg-pip-slipword { color: #ffe9a8; }
/* ROYAL: the chain card is a J/Q/K/A — royal blue */
.lpg-pip-royalchain {
  border-color: rgba(96, 156, 255, 0.95);
  background: radial-gradient(120% 120% at 50% 40%, rgba(18, 40, 96, 0.92), rgba(6, 12, 30, 0.9));
  box-shadow: 0 0 26px rgba(64, 132, 255, 0.6), inset 0 0 26px rgba(90, 150, 255, 0.3);
}
.lpg-pip-royalchain .lpg-pip-slipword { color: #cfe2ff; }
/* ROYAL HIGH: royal blue and gold (owner 2026-11-08) */
.lpg-pip-royalhigh {
  border: 2px solid #ffd76a;
  background:
    linear-gradient(160deg, rgba(30, 74, 180, 0.95), rgba(8, 20, 52, 0.95) 55%, rgba(90, 60, 4, 0.9));
  box-shadow: 0 0 30px rgba(255, 200, 90, 0.55), 0 0 22px rgba(64, 132, 255, 0.7),
    inset 0 0 28px rgba(90, 150, 255, 0.35);
}
.lpg-pip-royalhigh .lpg-pip-slipword {
  color: #ffd76a;
  text-shadow: 0 0 12px rgba(255, 210, 90, 0.95), 0 0 22px rgba(64, 132, 255, 0.85);
}
/* a four-word chain is one step smaller so "Royal High" clears the card edges */
.lpg-pip-royalhigh .lpg-pip-mod { font-size: 0.92em; }

/* the lucky match stamp (owner 2026-11-06): GOLD, and the words run diagonally
   across the card instead of a signed number */
.lpg-pip-match {
  color: #fff3c4;
  background: radial-gradient(120% 120% at 50% 40%, rgba(122, 84, 14, 0.9), rgba(40, 24, 4, 0.84));
  border-color: rgba(232, 196, 104, 0.95);
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.6), inset 0 0 30px rgba(212, 175, 55, 0.4);
  text-shadow: 0 0 16px rgba(255, 210, 74, 0.9);
}
.lpg-pip-matchword {
  display: inline-block;
  transform: rotate(-16deg);
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: calc(var(--lpg-card-w) * 0.26);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* DETHRONE (owner 2026-11-06): a card that BEAT a royal. Blue — the one cool stamp
   in the deck's warm palette — and it pulses and fades like every other pip. */
.lpg-pip-dethrone {
  color: #eaf4ff;
  background: radial-gradient(120% 120% at 50% 40%, rgba(16, 56, 116, 0.92), rgba(4, 12, 30, 0.88));
  border-color: rgba(96, 178, 255, 0.95);
  box-shadow: 0 0 26px rgba(64, 148, 255, 0.62), 0 0 44px rgba(24, 92, 200, 0.45), inset 0 0 30px rgba(52, 130, 240, 0.42);
  text-shadow: 0 0 14px rgba(180, 224, 255, 0.95), 0 0 26px rgba(80, 160, 255, 0.9);
}
.lpg-pip-dethroneword {
  display: inline-block;
  transform: rotate(-16deg);
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: calc(var(--lpg-card-w) * 0.24);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

/* the ROYAL MATCH special edition (owner 2026-11-06): two matched face cards
   (Jack/Queen/King, no Ace). Regal purple-and-gold, a diagonal stamp that pulses
   rather than just fading. */
.lpg-pip-royal {
  color: #fff8e8;
  background: radial-gradient(120% 120% at 50% 40%, rgba(84, 38, 130, 0.92), rgba(24, 10, 44, 0.88));
  border-color: rgba(232, 196, 104, 0.98);
  box-shadow: 0 0 28px rgba(170, 92, 255, 0.65), 0 0 44px rgba(212, 175, 55, 0.5), inset 0 0 32px rgba(170, 92, 255, 0.45);
  text-shadow: 0 0 14px rgba(255, 214, 120, 0.95), 0 0 28px rgba(190, 120, 255, 0.8);
  /* pulses and fades like every other pip (owner: "pulse the overlay like the rest") */
}
.lpg-pip-royalword {
  display: inline-block;
  transform: rotate(-16deg);
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: calc(var(--lpg-card-w) * 0.26);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}
@keyframes lpgRoyalPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(170, 92, 255, 0.45), 0 0 34px rgba(212, 175, 55, 0.4), inset 0 0 26px rgba(170, 92, 255, 0.35); }
  50%      { box-shadow: 0 0 34px rgba(190, 120, 255, 0.9), 0 0 58px rgba(212, 175, 55, 0.7), inset 0 0 40px rgba(190, 120, 255, 0.6); }
}

@keyframes lpgLuckPulse {
  0%   { opacity: 0; transform: scale(0.72); }
  16%  { opacity: 1; transform: scale(1.05); }
  30%  { opacity: 1; transform: scale(1); }
  44%  { opacity: 1; transform: scale(1.03); }
  58%  { opacity: 1; transform: scale(1); }
  78%  { opacity: 0.9; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1.02); }
}

/* ------------------------------------------------------------------ cards */
.lpg-card {
  position: relative;
  width: var(--lpg-card-w);
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0b0906;
  border: 2px solid var(--lpg-gold-dim);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), inset 0 0 22px rgba(0, 0, 0, 0.5);
}

.lpg-card.is-anchor {
  width: 150px;
  border-color: var(--lpg-gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5), 0 10px 30px rgba(0, 0, 0, 0.7),
    0 0 26px rgba(212, 175, 55, 0.22);
}

.lpg-card-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the drawn number faces (luck-pressure-face.js, 2026-11-05): standard suit
   silhouettes, standard pip layouts, rank and suit in both corners */
.lpg-face {
  display: block;
  width: 100%;
  height: 100%;
}

.lpg-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2.6rem;
  color: var(--lpg-gold);
}

.lpg-card-plate {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(8, 7, 5, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.55);
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}

.lpg-card-rank { font-weight: 700; letter-spacing: 0.02em; color: var(--lpg-cream); }
.lpg-card-suit { font-style: normal; font-size: 0.9em; }
.lpg-suit-red { color: #e0503f; }
.lpg-suit-black { color: #d9d2c0; }

.lpg-card-caption {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lpg-mute);
}

/* the river result tags */
.lpg-result {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.lpg-result-yes { color: var(--lpg-jade); }
.lpg-result-match { color: var(--lpg-gold); background: rgba(212, 175, 55, 0.12); }
.lpg-result-no { color: var(--lpg-cinnabar); }

.lpg-card.is-no { border-color: rgba(180, 48, 42, 0.75); opacity: 0.92; }
/* a lucky match BREATHES a golden glow (owner 2026-11-06) */
.lpg-card.is-match {
  border-color: var(--lpg-gold);
  animation: lpgMatchBreathe 2.2s ease-in-out infinite;
}
@keyframes lpgMatchBreathe {
  0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.25), inset 0 0 12px rgba(212, 175, 55, 0.12); }
  50%      { box-shadow: 0 0 26px rgba(212, 175, 55, 0.6), inset 0 0 24px rgba(212, 175, 55, 0.3); }
}
/* a ROYAL MATCH breathes a regal purple-and-gold glow */
.lpg-card.is-royal {
  border-color: rgba(232, 196, 104, 0.95);
  animation: lpgRoyalBreathe 1.4s ease-in-out infinite;
}
@keyframes lpgRoyalBreathe {
  0%, 100% { box-shadow: 0 0 12px rgba(170, 92, 255, 0.3), 0 0 20px rgba(212, 175, 55, 0.25), inset 0 0 14px rgba(170, 92, 255, 0.18); }
  50%      { box-shadow: 0 0 30px rgba(190, 120, 255, 0.7), 0 0 46px rgba(212, 175, 55, 0.5), inset 0 0 28px rgba(190, 120, 255, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-card.is-match { animation: none; box-shadow: 0 0 18px rgba(212, 175, 55, 0.35); }
  .lpg-card.is-royal { animation: none; box-shadow: 0 0 22px rgba(170, 92, 255, 0.5), 0 0 32px rgba(212, 175, 55, 0.4); }
}

/* ----------------------------------------------------------------- gauge */
.lpg-gauge { margin: 1.35rem 0 1rem; }

.lpg-gauge-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d1811, #2a2114);
  border: 1px solid var(--lpg-gold-dim);
  overflow: hidden;
}

.lpg-gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--lpg-pressure, 0) * 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lpg-jade), var(--lpg-gold) 60%, #e8c25a);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lpg-gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  color: var(--lpg-mute);
}

.lpg-gauge-read {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--lpg-cream);
}

.lpg-gauge-read strong { color: var(--lpg-gold); }

/* ----------------------------------------------------------------- stats */
.lpg-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.lpg-stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.lpg-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lpg-mute);
}

.lpg-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lpg-gold);
  font-variant-numeric: tabular-nums;
}

.lpg-stat-note { font-size: 0.64rem; color: var(--lpg-mute); }

/* --------------------------------------------------------------- verdict */
.lpg-verdict {
  margin-top: 0.4rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--lpg-gold);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 10px 10px 0;
}

.lpg-interpretation { margin: 0; font-size: 0.92rem; line-height: 1.55; }

.lpg-tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--lpg-gold);
  color: #17120a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.lpg-voice { margin: 0.5rem 0 0; font-size: 0.88rem; color: #e4d8bd; }
.lpg-caveat {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 48, 42, 0.5);
  background: rgba(180, 48, 42, 0.12);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #f0d3cb;
}.lpg-lean { margin: 0.45rem 0 0; font-size: 0.76rem; color: var(--lpg-mute); }
.lpg-lean strong { color: var(--lpg-gold); }

.lpg-odds {
  margin: 0.7rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--lpg-mute);
}

.lpg-odds strong { color: var(--lpg-cream); }

/* --------------------------------------------------------------- actions */
.lpg-actions { margin-top: 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }

/* CASH OUT is the big control, and PLAY AGAIN (on the report) wears the same
   clothes. There is no reset button (owner 2026-11-08). */
.lpg-cashout,
.lpg-play-again {
  padding: 0.72rem 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--lpg-gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.98), rgba(168, 132, 32, 0.98));
  color: #17120a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.lpg-cashout:hover,
.lpg-cashout:focus-visible,
.lpg-play-again:hover,
.lpg-play-again:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.32);
}

/* -------------------------------------------------------------- the session */

.lpg-session { margin-top: 1rem; }

.lpg-session-gauge {
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 12px;
  padding: 0.7rem 0.9rem 0.6rem;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lpg-session-gauge-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.lpg-session-gauge-title {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lpg-mute);
}
.lpg-session-gauge-pct {
  font-size: 1.5rem; line-height: 1; color: var(--lpg-gold);
  font-variant-numeric: tabular-nums;
}

.lpg-session-gauge-track {
  display: block; height: 10px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.lpg-session-gauge-fill {
  display: block; height: 100%; width: 100%;
  transform: scaleX(var(--lpg-session, 0)); transform-origin: left center;
  background: linear-gradient(90deg, #6f5b1f, var(--lpg-gold) 62%, #ffe9a8);
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.lpg-session-gauge-note { font-size: 0.66rem; color: var(--lpg-mute); letter-spacing: 0.03em; }

.lpg-session-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem; margin-top: 0.6rem;
}

.lpg-session-cell {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  background: rgba(0, 0, 0, 0.22);
  display: flex; flex-direction: column; gap: 0.12rem; min-width: 0;
}

.lpg-session-label {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lpg-mute);
}
.lpg-session-value { font-size: 1.05rem; color: #f6e9c6; font-variant-numeric: tabular-nums; }
.lpg-session-note { font-size: 0.56rem; color: var(--lpg-mute); }

@media (max-width: 520px) {
  .lpg-session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------- total luck (currency) */

.lpg-bank {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.35rem 0.9rem 0.3rem;
  margin-bottom: 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(0, 0, 0, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* THE POT OF GOLD (owner, N-20261106-04): the bankroll is a picture, and the
   amount sits in the middle of it. The generated plate rides over the drawn
   cauldron and hides itself if it is ever missing, so the box is a pot either
   way and the value is always legible. The plate's own background is feathered
   out with a radial mask so it fades into the box instead of sitting in it. */
.lpg-pot {
  position: relative;
  width: min(228px, 54%);
  aspect-ratio: 896 / 640;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.lpg-pot-drawn,
.lpg-pot-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lpg-pot-drawn { z-index: 0; }
.lpg-pot-art {
  z-index: 1;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* real alpha: the plate is a cut-out PNG (owner's pick, pot-12), so the old
     feathered mask that hid a rectangular background is gone */
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
}

.lpg-pot-shadow { fill: rgba(0, 0, 0, 0.55); }
.lpg-pot-body { fill: #241a0e; stroke: #b8892f; stroke-width: 2.5; }
.lpg-pot-band { fill: rgba(212, 175, 55, 0.16); }
.lpg-pot-rim { fill: #2f2210; stroke: #e0bb63; stroke-width: 3; }
.lpg-pot-rim-in { fill: #0d0a05; stroke: rgba(224, 187, 99, 0.45); stroke-width: 1.5; }
.lpg-pot-coin { fill: #e8c468; stroke: #7a5a1c; stroke-width: 1.5; }

.lpg-pot-read {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.02rem;
  text-align: center;
  padding: 0.25rem 0.9rem 0.3rem;
  transform: translateY(10%);
  border-radius: 16px;
  background: radial-gradient(96% 88% at 50% 52%, rgba(5, 4, 2, 0.78), rgba(5, 4, 2, 0.22) 74%, transparent);
}

.lpg-pot-line {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
}
/* the currency mark FOLLOWS the amount — 27$L — and is taken out of flow so the
   number itself stays centred on the pot (owner) */
.lpg-pot-unit {
  position: absolute;
  left: 100%;
  bottom: 0.1em;
  margin-left: 0.05em;
  font-size: 2rem;
  color: var(--lpg-gold);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.lpg-luck-mark { width: 1em; height: 1em; display: inline-block; vertical-align: -0.1em; }
.lpg-luck-s,
.lpg-luck-l {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;   /* bold (owner) */
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lpg-bank-label {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244, 235, 214, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8);
}

.lpg-bank-value {
  font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1; color: var(--lpg-gold);
  font-variant-numeric: tabular-nums;
  /* THE BUCKS BULGE (owner, 2026-11-06): the amount is raised gold, not flat
     paint — a vertical metallic ramp (light at the crown, shadow at the foot), a
     chained drop-shadow that reads as real thickness, and a slight dome so the
     middle of the number swells toward the reader. */
  background: linear-gradient(
    180deg,
    #fffbe8 0%,
    #ffeaa4 16%,
    #f6d273 32%,
    #e3b345 48%,
    #c48f28 64%,
    #95691a 82%,
    #6d4a10 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 #7d560f)
    drop-shadow(0 2px 0 #66460c)
    drop-shadow(0 3px 0 #4f3509)
    drop-shadow(0 5px 6px rgba(0, 0, 0, 0.55));
  transform: perspective(420px) rotateX(7deg) scaleY(1.04);
  transform-origin: 50% 62%;
}

.lpg-bank-delta {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--lpg-mute);
}
.lpg-bank-delta-pop { display: inline-flex; align-items: center; gap: 0.1rem; }
.lpg-delta-amount { letter-spacing: -0.01em; }
.lpg-bank.is-up .lpg-bank-delta { color: #3dff9e; text-shadow: 0 0 14px rgba(61, 255, 158, 0.6); }
.lpg-bank.is-down .lpg-bank-delta { color: #e2645a; text-shadow: 0 0 14px rgba(226, 100, 90, 0.5); }
.lpg-bank.is-up .lpg-bank-delta-pop { animation: lpgDeltaPop 0.45s ease-out; }
.lpg-bank.is-down .lpg-bank-delta-pop { animation: lpgDeltaPop 0.45s ease-out; }

.lpg-bank-peak {
  position: absolute;
  top: 0.5rem;
  right: 0.9rem;
  font-size: 0.62rem;
  color: var(--lpg-mute);
  letter-spacing: 0.08em;
}

.lpg-bank-warn {
  position: absolute; right: 0.9rem; bottom: 0.35rem;
  font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #e2645a;
}

/* On a phone the pot owns the box and the last change moves beneath it. This
   block must come AFTER the bank's own rules: at equal specificity the later
   declaration wins, and an earlier mobile override simply never applied. */
@media (max-width: 520px) {
  .lpg-bank { flex-direction: column; gap: 0.2rem; }
  .lpg-pot { width: min(240px, 96%); }
  .lpg-bank-delta { position: static; transform: none; font-size: 1.4rem; }
}

.lpg-bank.is-danger {
  border-color: rgba(226, 100, 90, 0.62);
  box-shadow: 0 0 24px rgba(226, 100, 90, 0.28), inset 0 0 18px rgba(226, 100, 90, 0.10);
  animation: lpgBankPulse 1.5s ease-in-out infinite;
}
.lpg-bank.is-danger .lpg-bank-value { color: #ff8b7f; }

@keyframes lpgBankPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(226, 100, 90, 0.20), inset 0 0 12px rgba(226, 100, 90, 0.08); }
  50%      { box-shadow: 0 0 34px rgba(226, 100, 90, 0.45), inset 0 0 22px rgba(226, 100, 90, 0.18); }
}

@keyframes lpgDeltaPop {
  0% { transform: translateY(6px) scale(0.9); opacity: 0; }
  60% { transform: translateY(0) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lpg-bank.is-danger { animation: none; }
  .lpg-bank.is-up .lpg-bank-delta-pop,
  .lpg-bank.is-down .lpg-bank-delta-pop { animation: none; }
  /* the pulse is motion: with it disabled the overlay would sit on the card for
     good, so it steps aside — the result tag still states Yes / Lucky Match / No
     and the bankroll still carries the running total. */
  .lpg-pip { display: none; }
}

/* ------------------------------------------------------------- the game over */

.lpg-gameover { display: flex; align-items: center; justify-content: center; min-height: 46vh; }

.lpg-gameover-inner {
  width: 100%; text-align: center; padding: 2rem 1.25rem;
  border: 1px solid rgba(226, 100, 90, 0.45);
  border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(226, 100, 90, 0.14), rgba(0, 0, 0, 0.55));
  box-shadow: 0 0 42px rgba(226, 100, 90, 0.18);
  animation: lpgGameOverIn 0.5s ease-out;
}


.lpg-gameover-title {
  margin: 0; font-size: clamp(1.5rem, 5vw, 2.3rem); letter-spacing: 0.04em;
  color: #ff8b7f; text-shadow: 0 0 28px rgba(226, 100, 90, 0.45);
}

/* the heading is GAME OVER; "your luck ran out" is the line under it, and the tally
   is the small print (owner 2026-11-06) */
.lpg-gameover-sub {
  margin: 0.25rem 0 0.55rem;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: #ffb3a7;
}
.lpg-gameover-stats {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lpg-mute);
}

.lpg-again {
  padding: 0.7rem 2rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--lpg-gold); color: #17120a; font-family: inherit;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.98), rgba(168, 132, 32, 0.98));
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.lpg-again:hover,
.lpg-again:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(212, 175, 55, 0.35); }

@keyframes lpgGameOverIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lpg-report-banked {
  margin-top: 0.5rem; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--lpg-mute);
}

/* ------------------------------------------------------------- the cash out */

.lpg-report { display: flex; flex-direction: column; gap: 1rem; }
.lpg-report-head { text-align: center; }
.lpg-report-title {
  margin: 0; font-size: 1.35rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lpg-gold);
}
.lpg-report-sub { margin: 0.2rem 0 0; font-size: 0.72rem; color: var(--lpg-mute); }

.lpg-report-hero {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 1rem; border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: radial-gradient(120% 130% at 50% 0%, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.35));
}
.lpg-report-pct {
  font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--lpg-gold);
}
.lpg-report-luck { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lpg-mute); }
.lpg-report-answer {
  margin-top: 0.45rem; font-size: 1.5rem; letter-spacing: 0.3em; font-weight: 700;
}
.lpg-report-hero.is-yes .lpg-report-answer { color: #3dff9e; text-shadow: 0 0 18px rgba(61, 255, 158, 0.45); }
.lpg-report-hero.is-no .lpg-report-answer { color: #e2645a; text-shadow: 0 0 18px rgba(226, 100, 90, 0.35); }

.lpg-report-block {
  border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 12px;
  padding: 0.75rem 0.9rem; background: rgba(0, 0, 0, 0.24);
}
.lpg-report-h {
  margin: 0 0 0.5rem; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lpg-mute);
}
.lpg-report-note { margin: 0.5rem 0 0; font-size: 0.64rem; color: var(--lpg-mute); line-height: 1.5; }

.lpg-lucky {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.lpg-lucky li {
  min-width: 2.6rem; padding: 0.45rem 0.6rem; border-radius: 10px;
  border: 1px solid var(--lpg-gold); color: #ffe9a8;
  font-size: 1.15rem; text-align: center; font-variant-numeric: tabular-nums;
  background: rgba(212, 175, 55, 0.08);
}

.lpg-report-suits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
.lpg-report-suit {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  font-size: 0.78rem; padding: 0.28rem 0.45rem; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.lpg-report-suit.is-red span { color: #e2645a; }
.lpg-report-suit.is-black span { color: #f4f1e8; }
.lpg-report-suit.is-joker span { color: var(--lpg-gold); }
/* the cash-out report's jackpot list (owner 2026-11-07) */
.lpg-report-jackpots { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.lpg-jackpot-hit {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  font-size: 0.78rem; padding: 0.28rem 0.45rem; border-radius: 8px;
  background: rgba(255, 200, 80, 0.06);
  border: 1px solid rgba(232, 196, 104, 0.28);
}
.lpg-jackpot-hit span {
  font-family: "Pirata One", "Noto Serif KR", serif;
  letter-spacing: 0.03em; color: #ffe9a8;
}
.lpg-jackpot-hit strong { color: #ffb830; font-weight: 700; }
.lpg-jackpot-hit .lpg-luck-mark {
  width: 0.9em; height: 0.9em; fill: none; stroke: currentColor; stroke-width: 2.25;
  vertical-align: -0.08em;
}
.lpg-report-suit strong { font-variant-numeric: tabular-nums; color: #f6e9c6; }

.lpg-report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
@media (max-width: 640px) {
  .lpg-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpg-report-suits { grid-template-columns: 1fr; }
}

.lpg-report-voice {
  margin: 0; text-align: center; font-style: italic; font-size: 0.82rem; color: #e8dcc0;
}
.lpg-actions-final { margin-top: 0.2rem; }

/* --------------------------------------------------------------- details */
.lpg-details { margin-top: 1rem; }

/* the deck is a control on the standalone page (N-20261105-06): clicking it deals
   the next hand. The timeline's deck is seeded and stays inert. */
.lpg-deck.is-clickable { cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease; }
.lpg-deck.is-clickable:hover { transform: translateY(-2px); }
/* the deck is shut while the hand is still playing out (owner 2026-11-10) */
.lpg-deck.is-clickable.is-busy { cursor: progress; opacity: 0.55; }
.lpg-deck.is-clickable.is-busy:hover { transform: none; }
.lpg-deck.is-clickable:focus-visible {
  outline: 2px solid var(--lpg-gold);
  outline-offset: 3px;
}

.lpg-details-head {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lpg-gold);
}
.lpg-details-rules .lpg-details-head { margin-top: 0.2rem; }
.lpg-rules-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--lpg-mute);
}
.lpg-rules-list li { margin-bottom: 0.3rem; }
.lpg-rules-list em { color: var(--lpg-gold); font-style: normal; }

.lpg-trace { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.78rem; }

.lpg-trace li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.3rem;
  color: var(--lpg-mute);
}

.lpg-trace-label {
  min-width: 6.5rem;
  color: var(--lpg-cream);
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.lpg-trace-detail { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lpg-trace-points { color: var(--lpg-gold); font-variant-numeric: tabular-nums; }

.lpg-note {
  margin: 0.7rem 0 0;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--lpg-mute);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding-top: 0.6rem;
}

.lpg-mods { margin-top: 0.6rem; }

/* ------------------------------------------------------------- animation */
@keyframes lpg-deal {
  from { opacity: 0; transform: translateY(-10px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lpg-river-slot { animation: none; }
  .lpg-gauge-fill { transition: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 720px) {
  .lpg-stage { --lpg-card-w: 92px; padding: 1.2rem 0.9rem 1rem; }
  .lpg-card.is-anchor { width: 118px; }
  .lpg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .lpg-board { grid-template-columns: minmax(0, 1fr); }
  .lpg-anchor-col { justify-self: center; }
  .lpg-kicker { font-size: 0.68rem; letter-spacing: 0.08em; }
  /* the trace label sits above its detail so neither can push the page wide */
  .lpg-trace li { flex-wrap: wrap; }
  .lpg-trace-label { min-width: 0; flex: 1 0 100%; }
}

/* ------------------------------------------------- corner indices (2026-11-04) */
/* Owner note 2: every card carries its number and suit at top-right and
   bottom-left. Drawn in CSS, never painted into the plate, so a card can never
   mispell itself and the index stays crisp at any size. */
.lpg-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  padding: 0.12rem 0.16rem;
  border-radius: 4px;
  background: rgba(8, 7, 5, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.45);
  line-height: 1;
  pointer-events: none;
}

.lpg-corner-tr { top: 6px; right: 6px; }
.lpg-corner-bl { bottom: 6px; left: 6px; transform: rotate(180deg); }

.lpg-corner-rank {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--lpg-cream);
}

.lpg-card.is-joker .lpg-corner-rank,
.lpg-corner-suit.lpg-suit-joker { color: var(--lpg-gold); }

.lpg-corner-suit { font-style: normal; font-size: 0.78rem; }
.lpg-suit-joker { color: var(--lpg-gold); }

.lpg-card.is-joker {
  border-color: var(--lpg-gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

/* --------------------------------------------------------- the red overflow */
/* Owner ruling: four is the last value the meter shows. Five or more still
   climbs — the gauge stays full and turns red, the mark of extreme luck. */
.lpg-stage.is-overflow .lpg-gauge-fill {
  background: linear-gradient(90deg, #7a1d16, var(--lpg-cinnabar) 55%, #ff6a4d);
  box-shadow: 0 0 18px rgba(224, 80, 63, 0.7);
}

.lpg-stage.is-overflow .lpg-gauge-track {
  border-color: rgba(224, 80, 63, 0.75);
  box-shadow: 0 0 0 1px rgba(224, 80, 63, 0.25), 0 0 20px rgba(224, 80, 63, 0.35);
}

.lpg-overflow {
  color: var(--lpg-cinnabar);
  font-weight: 700;
}

@media (max-width: 520px) {
  .lpg-corner { padding: 0.08rem 0.12rem; }
  .lpg-corner-rank { font-size: 0.72rem; }
  .lpg-corner-suit { font-size: 0.66rem; }
}

/* ------------------------------------------------------------- the deck (2026-11-04) */
/* Owner note 3: the stack is where the cards come from. It shows the remainder,
   and a card lifts out of it, flips and settles into its seat. */
.lpg-deck-col { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }

/* ---- THE WAGER AND THE WALLET (owner 2026-11-06), under the DEAL label ---- */
.lpg-bet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;                 /* the wallet sits a little further below */
  margin-top: 0.8rem;
  width: 100%;
}
.lpg-wager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.lpg-wager-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lpg-mute);
}
.lpg-wager-row { display: flex; align-items: center; gap: 0.28rem; }
.lpg-wager-step {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.55);
  color: var(--lpg-gold);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lpg-wager-step:hover:not(:disabled) { background: rgba(212, 175, 55, 0.22); border-color: var(--lpg-gold); }
.lpg-wager-step:disabled { opacity: 0.35; cursor: default; }
.lpg-wager-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.03em;
  min-width: 3rem;
  color: var(--lpg-gold);
  line-height: 1;
}
.lpg-wager-amount { font-size: 1.5rem; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(212, 175, 55, 0.5); }
.lpg-wager-mark, .lpg-wallet-mark { font-size: 1.2rem; display: inline-flex; }

/* the lock: a radio-styled checkbox carrying a padlock and the currency mark */
.lpg-wager-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  padding: 0.12rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(0, 0, 0, 0.5);
  color: rgba(226, 218, 196, 0.6);
  cursor: pointer;
  line-height: 1;
}
.lpg-wager-lock-input {
  width: 0.85rem;
  height: 0.85rem;
  margin: 0 0.12rem 0 0;
  accent-color: #e8c46a;
  cursor: pointer;
}
.lpg-wager-lock-icon { display: inline-flex; }
.lpg-lock-glyph { width: 1rem; height: 1rem; display: block; }
.lpg-wager-lock.is-locked {
  color: #ffe08a;
  border-color: rgba(232, 196, 106, 0.95);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45), inset 0 0 10px rgba(212, 175, 55, 0.2);
}

/* the wallet sits under the wager; it only changes on a cash-out */
.lpg-wallet { display: flex; flex-direction: column; align-items: center; gap: 0.14rem; margin-top: 0.2rem; }
.lpg-wallet-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lpg-mute);
}
.lpg-wallet-line { display: inline-flex; align-items: baseline; gap: 0.04em; color: #4ade80; line-height: 1; }
.lpg-wallet-value { font-size: 1.65rem; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(74, 222, 128, 0.45); }

/* the idle table: the welcome panel, illustrated with the real cards
   (owner 2026-11-06 — "instead of the deck is waiting, a vegas style breakdown") */
.lpg-welcome {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(110, 235, 165, 0.07), transparent 62%),
    rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.35);
}
.lpg-welcome-title {
  margin: 0 0 0.3rem;
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  letter-spacing: 0.04em;
  color: #e8c46a;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}
.lpg-welcome-lede {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #d8d0bc;
  max-width: 62ch;
}
.lpg-welcome-lede strong { color: #ffe08a; }
.lpg-welcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.lpg-welcome-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(212, 175, 55, 0.14);
}
.lpg-welcome-cards { display: inline-flex; gap: 0.18rem; align-items: center; }
.lpg-welcome-text { font-size: 0.74rem; line-height: 1.45; color: #cfc7b4; }
.lpg-welcome-text strong {
  display: block;
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  color: #f4e7c4;
  margin-bottom: 0.1rem;
}
.lpg-welcome-text b { color: #ffe08a; }

/* the little cards in the panel — the table's own renderer, at a third the size */
.lpg-mini-card {
  --lpg-card-w: 40px;
  width: var(--lpg-card-w) !important;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.lpg-mini-card.is-up { box-shadow: 0 0 12px rgba(74, 222, 128, 0.55); }
.lpg-mini-card.is-match { box-shadow: 0 0 12px rgba(232, 196, 106, 0.6); }
.lpg-mini-card.is-royal { box-shadow: 0 0 12px rgba(170, 92, 255, 0.6); }
.lpg-mini-card.is-dethroned { box-shadow: 0 0 12px rgba(64, 148, 255, 0.6); }

.lpg-deck {
  position: relative;
  width: var(--lpg-card-w);
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: #0b0906;
  border: 2px solid var(--lpg-gold-dim);
  box-shadow:
    4px 4px 0 -1px #14100b,
    4px 4px 0 0 rgba(212, 175, 55, 0.35),
    8px 8px 0 -1px #14100b,
    8px 8px 0 0 rgba(212, 175, 55, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.65);
}

.lpg-deck-back {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.lpg-deck-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 1.6rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: rgba(8, 7, 5, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--lpg-gold);
  font-size: 0.68rem;
  text-align: center;
}

/* a QUIET re-render (wager changes) rebuilds the same hand — the cards must not
   play their entrance again, nor the pips re-pulse (owner 2026-11-06) */
.lpg-stage.is-quiet .lpg-card-cell,
.lpg-stage.is-quiet .lpg-card.is-match,
.lpg-stage.is-quiet .lpg-bank-delta-pop { animation: none !important; }
.lpg-stage.is-quiet .lpg-card { transition: none !important; }
/* the pulses have already played by then: hold them at the END of lpgLuckPulse
   (opacity 0) instead of re-firing — or, worse, sitting there fully visible */
.lpg-stage.is-quiet .lpg-pip { animation: none !important; opacity: 0 !important; }
/* the jackpot ribbon is a RECEIPT for the hand on the table: a quiet re-render
   (a wager change) must not replay its entrance, exactly like the cards and the
   pips (found in review 2026-11-07) */
.lpg-stage.is-quiet .lpg-jackpot { animation: none !important; }

/* the deal: start on the stack, land on the seat */
.lpg-stage.is-dealing .lpg-card {
  transform: var(--deal-start, none);
  opacity: 0.55;
  transition: none;
}

.lpg-stage.is-dealing.is-dealt .lpg-card {
  transform: none;
  opacity: 1;
  transition:
    transform 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--lpg-i, 0) * 90ms),
    opacity 0.28s linear calc(var(--lpg-i, 0) * 90ms);
}

@media (max-width: 900px) {
  /* the deck drops to its own row rather than squeezing the river */
  .lpg-board { grid-template-columns: auto minmax(0, 1fr); }
  .lpg-deck-col { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 520px) {
  .lpg-deck { width: 60px; }
}

/* ------------------------------------------------- the critical row meter */
/* Owner note 2026-11-04: the second row carries a second status meter. Row one
   is the four-point scale; everything past it is measurement, so the second
   meter is red by definition — the same red as the overflow gauge. */
.lpg-row-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 100%;
  min-width: 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lpg-row-meter-label {
  color: var(--lpg-cinnabar);
  font-weight: 700;
}

.lpg-row-meter-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 80px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d0f0c, #2a1410);
  border: 1px solid rgba(224, 80, 63, 0.5);
  overflow: hidden;
}

.lpg-row-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--lpg-row, 0) * 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, #7a1d16, var(--lpg-cinnabar) 55%, #ff6a4d);
  box-shadow: 0 0 12px rgba(224, 80, 63, 0.55);
}

.lpg-row-meter-value {
  color: var(--lpg-cream);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.lpg-corner-star {
  font-size: 1rem;
  line-height: 1;
  color: var(--lpg-gold);
}

/* the index is baked into the plate (tools/compose-cards.py) — a card is one file
   and must never depend on CSS alignment; these rules only neutralise a cached
   page that still renders the old DOM corners */
.lpg-corner { display: none; }

/* the caption sits UNDER the card, never on it: the baked index owns the corners */
.lpg-anchor-caption {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lpg-mute);
  text-align: center;
}
.lpg-anchor-col { align-items: center; }

/* ======================================================================
 * THE POLISHED SIMULATION WINDOW (owner 2026-11-06, the big rework)
 * ----------------------------------------------------------------------
 *  1. the title lives IN the canvas, as a Rune-Matrix marquee
 *  2./3. "PLUS" gets its own font and lights letter-by-letter, then blinks
 *  4.   four glossy squares along the top (Lucky Streak · Hottest Streak ·
 *       $ Credit/Debit · the pot)
 *  5.   beneath them, only the deck and the cards; every data panel is in
 *       "Additional Details"
 *  6.   a glass coat with a CRT glow and electrical interference that
 *       rises with the streak
 *  7.   each card carries its +$L value above it (no Yes/No tag)
 *  8.   every card the same size, a little larger
 *  9.   no "River" label
 * 10.   the cards flow 3 to a row (two rows, growing to three)
 * 11.   the deck is the same size as the cards
 * ====================================================================== */

.lpg-stage-session {
  --lpg-card-w: 128px;
  /* DARK GREEN CASINO FELT (owner 2026-11-06) — scoped to the game, so the
     Fortune Timeline stage keeps its lacquer look, and the title box stays black */
  background:
    /* SCANLINES over the whole div (owner 2026-11-06: "place some scan lines in the
       bg of the entire div") — a 3px period, 1px dark line, sitting above the felt
       and below every child, so nothing can ever be covered by it */
    /* 2px dark band on a 5px period: the old 1px-on-3px line disappeared on bright
       panels and at 2x scaling (owner 2026-11-10: "I can't see the horizontal
       scanlines in the bg") */
    repeating-linear-gradient(180deg,
      rgba(0, 0, 0, 0.34) 0, rgba(0, 0, 0, 0.34) 2px,
      rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 3px,
      transparent 3px, transparent 5px),
    radial-gradient(130% 60% at 50% -8%, rgba(110, 235, 165, 0.10), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 3px),
    /* top fades to transparent; by the cards (~55% down) the felt is opaque */
    linear-gradient(180deg, rgba(11, 44, 29, 0) 0%, rgba(11, 44, 29, 0.45) 28%, #0b2c1d 55%, #061a11 100%);
}

/* ---- the glass coat (item 6) ---- */
.lpg-glass {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}
/* THE SCANLINES SIT OVER THE CONTENT (owner 2026-11-10: "I can't see the horizontal
   scanlines in the bg"). They used to live only in the stage's own background, where
   the four black squares and every card painted over them — visible on the felt in
   the gaps and nowhere else. This layer is the whole stage, above the cards and below
   the sound toggle, so the CRT lines read on every surface. */
.lpg-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  /* the scanlines were a 1.5px white line at 2.5 % alpha — invisible on a bright or
     high-DPI panel (owner 2026-11-10: "I can't see the horizontal scanlines"). Now a
     2px dark band on a 5px period, over the cards, under the toggle. */
  background:
    repeating-linear-gradient(180deg,
      rgba(0, 0, 0, 0.30) 0, rgba(0, 0, 0, 0.30) 2px,
      transparent 2px, transparent 5px),
    radial-gradient(120% 70% at 50% -6%, rgba(126, 178, 255, 0.07), transparent 60%),
    radial-gradient(120% 100% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.38));
}
/* (the horizontal "glitch" line is scrapped — owner: it read as a 20px band
   jittering back and forth, not CRT distortion. The glass keeps only the
   scanlines, the cool glow and the vignette.) */

/* ---- the glowing marquee (items 1, 2, 3) ---- */
.lpg-marquee {
  display: flex;
  align-items: center;
  /* owner 2026-11-07: the edge air and the gaps are the SAME value on purpose —
     measured against the TRIMMED plates, so 運 sits exactly between the right
     lamp bank and the border, and the dragon exactly between the border and the
     left bank (a bigger gap on one side is what read as "not centred"). */
  gap: 18px;
  padding: 15px 18px;
  margin-bottom: 1rem;
  border-radius: 14px;
  /* owner 2026-11-06: a BLACK background, and the inner (inset) glow from the
     border is gone — only a soft outer halo remains */
  background: #050403;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.14);
}
/* THE TITLE MARKS (owner 2026-11-07): the glowing green dragon before the ROYAL
   mark and 運 (un) in strong gold closing the right end. Both are transparent
   PNGs made by tools/build-dragon-un.py; the glow lives in the pixels, the
   filter only breathes it.
   THE ROW MEASURES ITSELF (fitMarquee in the core): the wordmark is nowrap, so
   breakpoints alone cannot guarantee room — the viewer's root font size or a
   missing webfont widens the title by ~35%. These heights are the STARTING
   sizes; if the row does not fit, the title and both marks shrink together
   until it does (and grow back when the room returns). */
.lpg-marquee-dragon,
.lpg-marquee-un {
  flex: 0 0 auto;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.lpg-marquee-dragon {
  height: clamp(2.6rem, 5.8vw, 4rem);
  filter: drop-shadow(0 0 5px rgba(30, 220, 120, 0.45));
  animation: lpgDragonGlow 4.4s ease-in-out infinite;
}
.lpg-marquee-un {
  height: clamp(2rem, 4.6vw, 3rem);
  filter: drop-shadow(0 0 6px rgba(255, 190, 70, 0.55));
  animation: lpgUnGlow 4.4s ease-in-out infinite;
  animation-delay: -2.2s;
}
@keyframes lpgDragonGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(30, 220, 120, 0.35)); }
  50% { filter: drop-shadow(0 0 9px rgba(30, 220, 120, 0.7)) brightness(1.06); }
}
@keyframes lpgUnGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 190, 70, 0.45)); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 200, 90, 0.75)) brightness(1.05); }
}
.lpg-marquee-title {
  margin: 0 auto;
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: #fff3c4;
  text-shadow: 0 0 8px #ffb300, 0 0 22px #ff6a00, 0 0 34px #ff3bd4;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55ch;
}
.lpg-marquee-title .lpg-name { color: #fff3c4; }
/* the ROYAL MATCH wordmark — a glowing diagonal pair, ROYAL over MATCH, to the
   left of HIGH (owner 2026-11-06: "two diagonal words, not one continuous") */
/* the ROYAL MATCH badge — the two words typed VERTICALLY and arranged diagonally
   like a badge on the left of HIGH (owner 2026-11-06) */
/* ROYAL reads inline before HIGH — horizontal, the standard title size, in the
   royal violet glow (owner 2026-11-06) */
.lpg-marquee-title .lpg-royal-mark {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.06em;
  line-height: inherit;
  color: #d9c2ff;
  /* a thin gold edge on the letters (owner: "a gold border, 1px or less") */
  -webkit-text-stroke: 1px #e8c46a;
  paint-order: stroke fill;
  text-shadow: 0 0 8px rgba(170, 92, 255, 0.9), 0 0 18px rgba(170, 92, 255, 0.55);
  margin-right: 0.24ch;
}
/* HIGH — a letter-by-letter brightness wave that travels back and forth: one
   letter eases down to ~50% brightness at a time, a smooth trance-inducing
   luminosity shift, while LUCK does its own flicker-and-glow. */
.lpg-marquee-title .lpg-name .lpg-high { display: inline-block; }
.lpg-marquee-title .lpg-name .lpg-high i {
  font-style: normal;
  display: inline-block;
  /* a smooth, breathing brightness wave: each letter follows the same sine but
     is phase-shifted, so the four form a continuous gradient that travels along
     the word and loops without a seam */
  animation: lpgHighBreathe 4s ease-in-out infinite;
}
.lpg-marquee-title .lpg-name .lpg-high i:nth-child(1) { animation-delay: 0s; }
.lpg-marquee-title .lpg-name .lpg-high i:nth-child(2) { animation-delay: -0.8s; }
.lpg-marquee-title .lpg-name .lpg-high i:nth-child(3) { animation-delay: -1.6s; }
.lpg-marquee-title .lpg-name .lpg-high i:nth-child(4) { animation-delay: -2.4s; }
@keyframes lpgHighBreathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(0.5); }
}
/* the four-leaf clover is SCRAPPED until further notice (owner 2026-11-06);
   cloverSvg() is kept in the core so it can be brought back in one line. */
/* LUCK — flickers like a failing warehouse light, then glows and settles into a
   confident clover green, then the lights go out, and the loop repeats. HIGH
   stays lit beside it; PLUS runs its own one cycle. */
.lpg-marquee-title .lpg-name .lpg-luck {
  display: inline-block;
  animation: lpgLuckGlow 4.4s linear infinite;
}
@keyframes lpgLuckGlow {
  /* the subway-train flicker — the lights barely stay on. OWNER N-20261106-05: "make
     the flashing first part of the LUCK animation loop a bit faster" — the same NINE
     strobe stops, compressed from 22% of the cycle to 15% (≈1.5x quicker, ~84ms between
     reversals instead of ~105-120ms) and finished sooner, so the glow starts earlier.
     Nothing after it moved: the gold at 28%, the green build (36/44/52) and the bold
     green PLATEAU at 56-68% are byte-identical, and the 4.4s cycle is unchanged. */
  0%   { opacity: 0.85; color: #fff3c4; text-shadow: 0 0 8px #ffb300, 0 0 22px #ff6a00, 0 0 34px #ff3bd4; }
  2%   { opacity: 0.15; }
  4%   { opacity: 0.8; }
  5.5% { opacity: 0.25; }
  7.5% { opacity: 0.75; }
  9%   { opacity: 0.2; }
  11%  { opacity: 0.7; }
  12.5% { opacity: 0.35; }
  15%  { opacity: 0.8; }
  /* it starts to glow, stronger and brighter */
  28%  { opacity: 1; color: #ffe9a8; text-shadow: 0 0 14px #ffd24a, 0 0 30px #ff8a00, 0 0 46px #ff6a00; }
  36%  { opacity: 1; color: #dfffa0; text-shadow: 0 0 16px #6cff8d, 0 0 34px #2ea34a, 0 0 50px #18c85a; }
  /* the gradient shifts to Luck Clover green, saturating */
  44%  { opacity: 1; color: #6cff8d; text-shadow: 0 0 20px #2eff77, 0 0 44px #0fa94a, 0 0 66px rgba(30, 200, 90, 0.95); }
  52%  { opacity: 1; color: #37ff70; text-shadow: 0 0 22px #1eff55, 0 0 50px #0bb84a, 0 0 74px rgba(20, 210, 95, 1); }
  /* a brief stable pause of bold, confident glowing green */
  56%, 68% { opacity: 1; color: #37ff70; text-shadow: 0 0 22px #1eff55, 0 0 50px #0bb84a, 0 0 74px rgba(20, 210, 95, 1); }
  /* lights out — the unlit LUCK sits beside the still-lit HIGH */
  74%  { opacity: 0.1; color: #37ff70; text-shadow: none; }
  78%, 100% { opacity: 0.14; color: #37ff70; text-shadow: none; }
}
/* PLUS — its own font (item 2), gold-red, lit one letter at a time (item 3) */
.lpg-marquee-title .lpg-plus {
  font-family: "Orbitron", "Noto Serif KR", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 0.82em;
  letter-spacing: 0.2em;
  transform: skewX(-6deg);
  display: inline-flex;
}
.lpg-marquee-title .lpg-plus i {
  font-style: normal;
  /* the OFF state is a hollow red outline — transparent fill, red stroke — never
     a dark olive that read as green (owner 2026-11-06) */
  color: transparent;
  -webkit-text-stroke: 1px #ff3b3b;
  paint-order: stroke fill;
  text-shadow: none;   /* never inherit the title's gold glow in the OFF state */
  animation: lpgPlusSeq 4.4s ease infinite, lpgPlusBlink 4.4s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.42s), 0s;
}
@keyframes lpgPlusSeq {
  0% { color: transparent; text-shadow: none; }
  5% { color: #ff3b3b; text-shadow: 0 0 8px #ff2b2b, 0 0 20px #ff0000, 0 0 30px rgba(255, 0, 0, 0.7); }
  100% { color: #ff3b3b; text-shadow: 0 0 8px #ff2b2b, 0 0 20px #ff0000, 0 0 30px rgba(255, 0, 0, 0.7); }
}
@keyframes lpgPlusBlink {
  0%, 55%, 100% { opacity: 1; }
  57% { opacity: 0.12; }
  61% { opacity: 1; }
}

/* ---- the lamps: individual bulbs that light outward, one at a time (item 3) ----
   The nearest lamp lights first and the glow runs outward, like a Knight-Rider
   sweep made of discrete bulbs (the rune-matrix look). */
.lpg-orbs {
  flex: 0 0 auto;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.lpg-orbs i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.22);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6);
  animation: lpgBulb 2.1s ease-in-out infinite;
  animation-delay: calc(var(--b, 0) * 0.12s);
}
@keyframes lpgBulb {
  0%, 100% { background: rgba(212, 175, 55, 0.22); box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6); }
  14% { background: #fff3c4; box-shadow: 0 0 10px #ffb300, 0 0 22px #ff6a00, 0 0 34px #ff3bd4; }
  26% { background: rgba(212, 175, 55, 0.22); box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6); }
}

/* ---- the four squares along the top (item 4) ---- */
.lpg-hud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.lpg-hud-box {
  position: relative;
  aspect-ratio: 1;   /* squares — no content-driven growth, no jitter (owner) */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: #050403;   /* black squares (owner) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 18px rgba(0, 0, 0, 0.42), 0 6px 16px rgba(0, 0, 0, 0.4);
}
/* the glossy cover */
.lpg-hud-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.02) 34%, transparent 52%);
}
.lpg-hud-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpg-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}
.lpg-hud-mark { color: var(--lpg-gold); font-size: 1.4rem; line-height: 1; }
.lpg-hud-value {
  font-size: 2.8rem;
  line-height: 1;
  color: var(--lpg-gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}
.lpg-hud-note { font-size: 0.68rem; color: var(--lpg-mute); letter-spacing: 0.05em; }

/* ---- the sound toggle (owner 2026-11-06) ---- */
.lpg-sound-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  z-index: 45;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: rgba(0, 0, 0, 0.5);
  color: var(--lpg-gold);
  cursor: pointer;
  opacity: 0.75;
}
.lpg-sound-toggle:hover { opacity: 1; background: rgba(212, 175, 55, 0.2); }
.lpg-sound-toggle.is-off { color: #e2645a; border-color: rgba(226, 100, 90, 0.55); }
.lpg-speaker { width: 1rem; height: 1rem; display: block; }

/* ---- LIVE FIRE behind the Hottest Streak square (owner 2026-11-06) ---- */
.lpg-hud-hottest { background: #050403; }
.lpg-fire {
  position: absolute;
  inset: 0;
  height: 88%;
  bottom: 0;
  top: auto;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
/* the bed of embers sitting on the floor of the square */
.lpg-fire::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background:
    radial-gradient(70% 100% at 50% 108%,
      rgba(255, 186, 84, 0.72) 0%, rgba(255, 116, 12, 0.55) 34%,
      rgba(176, 40, 0, 0.26) 62%, transparent 82%);
  filter: blur(3px);
  animation: lpgEmber 2.6s ease-in-out infinite alternate;
}
/* five tongues, each on its own clock; the shape is a teardrop that points up */
.lpg-fire i {
  position: absolute;
  bottom: -12%;
  left: var(--fx, 50%);
  width: var(--fw, 40%);
  height: var(--fh, 62%);
  margin-left: calc(var(--fw, 40%) / -2);
  border-radius: 44% 44% 46% 46% / 84% 84% 16% 16%;
  background:
    radial-gradient(58% 82% at 50% 88%,
      rgba(255, 232, 150, 0.98) 0%, rgba(255, 184, 48, 0.96) 18%,
      rgba(255, 118, 12, 0.9) 42%, rgba(214, 52, 0, 0.72) 64%,
      rgba(112, 12, 0, 0.3) 84%, transparent 94%);
  filter: blur(1.6px);
  opacity: 0.8;
  mix-blend-mode: screen;
  animation: lpgFlame var(--fd, 1.6s) ease-in-out infinite alternate;
  animation-delay: var(--fdelay, 0s);
  transform-origin: 50% 100%;
}
/* narrow tongues, short in the middle and tall on the flanks (owner 2026-11-06) */
.lpg-fire i:nth-child(1) { --fx: 10%; --fw: 22%; --fh: 96%;  --fd: 1.25s; --fdelay: -0.2s; }
.lpg-fire i:nth-child(2) { --fx: 90%; --fw: 21%; --fh: 90%;  --fd: 1.55s; --fdelay: -0.45s; }
.lpg-fire i:nth-child(3) { --fx: 26%; --fw: 19%; --fh: 74%;  --fd: 0.95s; --fdelay: -0.1s; }
.lpg-fire i:nth-child(4) { --fx: 74%; --fw: 18%; --fh: 70%;  --fd: 1.15s; --fdelay: -0.6s; }
.lpg-fire i:nth-child(5) { --fx: 41%; --fw: 15%; --fh: 52%;  --fd: 0.8s;  --fdelay: -0.3s; }
.lpg-fire i:nth-child(6) { --fx: 59%; --fw: 15%; --fh: 48%;  --fd: 1.05s; --fdelay: -0.85s; }
.lpg-fire i:nth-child(7) { --fx: 50%; --fw: 17%; --fh: 34%;  --fd: 0.9s;  --fdelay: -0.5s; }
/* a scrim over the top half so the number and its label stay readable on the flames */
.lpg-hud-hottest::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg,
    rgba(5, 4, 3, 0.94) 0%, rgba(5, 4, 3, 0.82) 26%,
    rgba(5, 4, 3, 0.42) 48%, rgba(5, 4, 3, 0) 68%);
}
/* the square's own text rides above the fire — and the NUMBER sits dead-centre in
   the square, with the heading pinned to the top (owner 2026-11-06) */
.lpg-hud-hottest { justify-content: center; }
.lpg-hud-hottest .lpg-hud-label {
  /* just above the number, the way the other squares stack — not pinned to the top */
  position: absolute;
  top: calc(50% - 2rem);
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: block;            /* a block, so a narrow square wraps it instead of clipping */
  padding: 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-align: center;
  z-index: 1;
}
.lpg-hud-hottest .lpg-hud-value {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  z-index: 1;
}

@keyframes lpgFlame {
  0%   { transform: translateY(6%) scale(0.9, 0.94) rotate(-3deg);  opacity: 0.62; filter: blur(2px); }
  40%  { transform: translateY(-2%) scale(1.02, 1.08) rotate(2deg);  opacity: 0.98; filter: blur(1.2px); }
  70%  { transform: translateY(-7%) scale(0.95, 1.16) rotate(-1.5deg); opacity: 0.82; filter: blur(1.7px); }
  100% { transform: translateY(-12%) scale(0.86, 1.26) rotate(2.5deg); opacity: 0.55; filter: blur(2.4px); }
}
@keyframes lpgEmber {
  0%   { opacity: 0.55; transform: scale(0.94, 0.92); }
  100% { opacity: 0.95; transform: scale(1.04, 1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-fire i, .lpg-fire::after { animation: none; }
}

/* the YOU WON / YOU LOST square: the hand's amount, centred, green or red — and
   no currency mark anywhere in this box (owner 2026-11-06) */
.lpg-hud-bank .lpg-bank-delta {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 6vw, 2.8rem);
}
.lpg-hud-bank.is-up .lpg-hud-label { color: #4ade80; text-shadow: 0 0 12px rgba(74, 222, 128, 0.55); }
.lpg-hud-bank.is-down .lpg-hud-label { color: #e2645a; text-shadow: 0 0 12px rgba(226, 100, 90, 0.4); }
/* the amount keeps the currency mark beside it again (owner 2026-11-06) */
.lpg-bank-delta-mark { font-size: 1.5rem; display: inline-flex; margin-left: 0.02em; }
.lpg-hud-bank.is-up .lpg-bank-delta { color: #4ade80; text-shadow: 0 0 14px rgba(74, 222, 128, 0.65); }
.lpg-hud-bank.is-down .lpg-bank-delta { color: #e2645a; text-shadow: 0 0 14px rgba(226, 100, 90, 0.5); }

/* the pot square DISPLAYS THE TOTAL LUCK (owner 2026-11-06): the running
   balance, raised gold, in the middle of the pot */
.lpg-hud-pot .lpg-pot {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.lpg-hud-pot .lpg-pot-art,
.lpg-hud-pot .lpg-pot-drawn {
  object-fit: contain;
}
.lpg-hud-pot .lpg-pot-read {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 0;
  transform: none;
  background: radial-gradient(88% 80% at 50% 54%, rgba(5, 4, 2, 0.72), rgba(5, 4, 2, 0.18) 72%, transparent);
}
.lpg-hud-pot .lpg-bank-value {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  display: inline-block;
}
/* THE POT NUMBER SHRINKS WITH ITS DIGITS (owner 2026-11-09: "when there is over 99
   $L in the pot, the $L is spilling off of the pot … any value 100 or more must be
   displayed a bit smaller"). The $L mark is OUT OF FLOW at the number's right edge,
   so a third digit pushed it past the pot art (measured: 4px inside at 99, 12px
   OUTSIDE at 100 on a 760-900px window, box included). Three digits step the number
   and the mark down, four digits further; the number stays centred on the pot. */
.lpg-hud-pot.is-long .lpg-bank-value { font-size: calc(clamp(2.4rem, 8vw, 3.4rem) * 0.74); }
.lpg-hud-pot.is-long .lpg-pot-unit { font-size: 1.5rem; }
.lpg-hud-pot.is-longer .lpg-bank-value { font-size: calc(clamp(2.4rem, 8vw, 3.4rem) * 0.58); }
.lpg-hud-pot.is-longer .lpg-pot-unit { font-size: 1.2rem; }
.lpg-hud-pot .lpg-bank-peak {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 0.52rem;
}
.lpg-hud-pot .lpg-bank-warn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-size: 0.5rem;
  color: #e2645a;
}

/* THE POT MAKES WAY FOR THE HORSE (owner 2026-11-12): the fourth square is the pot
   square. At 63% of the 3600ms run the horse enters it, so the pot (and its labels)
   disappear until the run ends, then the pot DROPS back in with a landing shake and
   nine coins fall through the square. One 4360ms animation carries the whole beat:
   visible → hidden at 2268ms → still hidden at 3600ms → drop, hit, shake, settle. */
.lpg-hud-pot.has-horse .lpg-pot {
  transform-origin: 50% 100%;
  animation: lpgPotHideDrop 4360ms linear both;
}
.lpg-hud-pot.has-horse .lpg-bank-peak,
.lpg-hud-pot.has-horse .lpg-bank-warn {
  animation: lpgPotLabelFade 4360ms linear both;
}
@keyframes lpgPotHideDrop {
  0%, 51.99% { opacity: 1; transform: translateY(0) scale(1); }
  52%, 82.5%  { opacity: 0; transform: translateY(-145%) scale(0.9); }
  88%        { opacity: 1; transform: translateY(0) scale(1.06); }
  90%        { transform: translate(-5%, 0) scale(1.02); }
  92%        { transform: translate(5%, 0) scale(1.03); }
  94%        { transform: translate(-4%, 0) scale(1.01); }
  96%        { transform: translate(3%, 0) scale(1.01); }
  98%        { transform: translate(-2%, 0) scale(1.005); }
  100%       { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes lpgPotLabelFade {
  0%, 51.99% { opacity: 1; }
  52%, 82.5% { opacity: 0; }
  100%       { opacity: 1; }
}
.lpg-pot-change {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
.lpg-pot-change .is-coin {
  position: absolute;
  top: -14%;
  left: var(--x, 50%);
  width: calc(0.55rem * var(--s, 1));
  height: calc(0.55rem * var(--s, 1));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d5, #e8c46a 55%, #8a6a1f);
  box-shadow: 0 0 10px rgba(232, 196, 104, 0.6);
  animation: lpgPotCoinFall 760ms cubic-bezier(0.35, 0, 0.8, 0.6)
    calc(3600ms + var(--d, 0ms)) both;
}
@keyframes lpgPotCoinFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(0, 1250%) rotate(220deg); opacity: 0; }
}
/* a quiet re-render or reduced motion never hides or replays the pot drop */
.lpg-stage.is-quiet .lpg-hud-pot.has-horse .lpg-pot,
.lpg-stage.is-quiet .lpg-hud-pot.has-horse .lpg-bank-peak,
.lpg-stage.is-quiet .lpg-hud-pot.has-horse .lpg-bank-warn {
  animation: none; opacity: 1; transform: none;
}
.lpg-stage.is-quiet .lpg-pot-change { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lpg-hud-pot.has-horse .lpg-pot,
  .lpg-hud-pot.has-horse .lpg-bank-peak,
  .lpg-hud-pot.has-horse .lpg-bank-warn { animation: none; opacity: 1; transform: none; }
  .lpg-pot-change { display: none; }
}

.lpg-hud-pot.is-danger {
  border-color: rgba(226, 100, 90, 0.62);
  box-shadow: 0 0 22px rgba(226, 100, 90, 0.28), inset 0 0 16px rgba(226, 100, 90, 0.12);
  animation: lpgBankPulse 1.5s ease-in-out infinite;
}
.lpg-hud-pot.is-danger .lpg-bank-value { color: #ff8b7f; }

/* ---- THE JACKPOT RIBBON (owner 2026-11-07): the poker hand, its multiplier and
   the money it added. Persistent — a quiet re-render (a wager change) keeps it. ---- */
@media (prefers-reduced-motion: reduce) {
  .lpg-jackpot { animation: none; }
}

/* ---- the playfield: deck + a 3-column card grid (items 5, 10, 11) ---- */
.lpg-playfield {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}
.lpg-cards {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0.7rem 0.9rem;
  flex: 1 1 auto;
  min-width: 0;
}
/* FOUR TO A ROW MUST FIT (2026-11-09). The grid is `repeat(4, auto)` and a card is
   a fixed --lpg-card-w, so four cards plus three 0.9rem gaps need 555px at 128px.
   The cards column is only what the playfield has left after the deck column, and
   the page caps at 1040px: MEASURED available widths are 533px at >=1000, 529 at
   1000, 469 at 900, 421 at 820, 385 at 760 — so the 4th card hung 18-167px past the
   stage edge at EVERY size. The card width (which also sets the deck, the corner
   indices and every stamp — one variable, one scale) now follows the viewport
   between 721px and the desktop cap, so four always fit; below 721px the 3-column
   rule and the phone mini cards take over.
   Verified 320-1700px in 10px steps: 4 columns above 720, nothing past the felt,
   no page scroll. */
@media (min-width: 721px) {
  .lpg-stage-session { --lpg-card-w: min(120px, calc(15vw - 32px)); }
}

.lpg-card-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  animation: lpg-deal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--lpg-i, 0) * 90ms);
}
/* the +$L value above each card (item 7) — replaces the Yes/No tag */
.lpg-card-delta {
  min-height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
/* THE ANCHOR-SUIT MARK (owner 2026-11-08): the suit of the anchor beside a card
   that paid the +1 ... and a suited loss prints a neutral zero, never "−0". */
.lpg-cd-suit { width: 0.86em; height: 0.86em; margin-left: 0.22em; vertical-align: -0.1em; color: #ffe9a8; }
/* THE RUNNING BILL (owner 2026-11-10): a red figure above every calamity card, next to
   its multiplier, so the table reads how much more each card costs. The third square
   swaps instead of merely changing — the old total falls away and the new pulses in. */
.lpg-card-loss {
  display: block;
  font-family: "Pirata One", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1;
  color: #ff5a48;
  text-shadow: 0 0 10px rgba(255, 60, 40, 0.55), 0 1px 0 rgba(0, 0, 0, 0.6);
  min-height: 1.05rem;
}
.lpg-card-loss.is-live { animation: lpgBillIn 360ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
@keyframes lpgBillIn {
  from { opacity: 0; transform: scale(1.5) translateY(-3px); }
  60%  { opacity: 1; transform: scale(0.94); }
  to   { opacity: 1; transform: none; }
}
.lpg-hud-bank .lpg-hud-value.is-new-loss { animation: lpgBillIn 420ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.lpg-loss-ghost {
  position: absolute;
  left: 0; right: 0; top: 0;
  pointer-events: none;
  font: inherit;
  color: #ff5a48;
  animation: lpgBillAway 560ms ease-out both;
}
@keyframes lpgBillAway {
  from { opacity: 0.85; transform: none; }
  to   { opacity: 0; transform: translateY(1.5em) scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-card-loss.is-live,
  .lpg-hud-bank .lpg-hud-value.is-new-loss,
  .lpg-loss-ghost { animation: none; opacity: 1; }
  .lpg-loss-ghost { display: none; }
}
/* THE SQUARE RAINS (owner 2026-11-10): dot-matrix coins and $L marks falling through
   the money square. Each sprite is a shape masked by a dot grid, so it reads like the
   dot-matrix board rather than a smooth 3D coin. */
.lpg-hud-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lpg-hud-rain.is-down { color: #ff5a48; }
.lpg-hud-rain.is-up { color: #e8c46a; }
/* THE POT'S FRONT LAYER (owner N-20261110-05): the same rain, inside `.lpg-pot` after
   the art, so these coins pass IN FRONT of the pot while the outer layer falls behind
   it. It sits at z 1 — above `.lpg-pot-art` (z 1, earlier in the DOM) and below
   `.lpg-pot-read` (z 2), so the amount is never covered. */
.lpg-hud-rain.is-front {
  z-index: 1;
  border-radius: inherit;
}
.lpg-hud-rain i {
  position: absolute;
  top: -24%;
  left: var(--x, 50%);
  width: 1.62rem;
  height: 1.62rem;
  display: block;
  transform: scale(var(--s, 1));
  animation: lpgHudRain var(--t, 1200ms) linear var(--d, 0ms) both;
  -webkit-mask-image: radial-gradient(circle at 1px 1px, #000 0.95px, transparent 1.3px);
  mask-image: radial-gradient(circle at 1px 1px, #000 0.95px, transparent 1.3px);
  -webkit-mask-size: 2.5px 2.5px;
  mask-size: 2.5px 2.5px;
}
.lpg-hud-rain .is-coin {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d5, #e8c46a 55%, #8a6a1f);
  box-shadow: 0 0 12px rgba(232, 196, 104, 0.55);
}
.lpg-hud-rain.is-down .is-coin {
  background: radial-gradient(circle at 35% 30%, #ffd0c8, #ff5a48 55%, #7a1f18);
  box-shadow: 0 0 12px rgba(255, 90, 72, 0.55);
}
.lpg-hud-rain .is-mark { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; }
.lpg-hud-rain .is-mark svg { width: 100%; height: 100%; }
/* the $L marks follow the hand (owner 2026-11-10): GREEN on a win, RED on a loss */
.lpg-hud-rain.is-marks.is-up,
.lpg-hud-rain.is-marks.is-up .is-mark { color: #4ade80; }
.lpg-hud-rain.is-marks.is-down,
.lpg-hud-rain.is-marks.is-down .is-mark { color: #ff5a48; }
.lpg-hud-rain.is-marks .is-mark .lpg-luck-s,
.lpg-hud-rain.is-marks .is-mark .lpg-luck-l { stroke: currentColor; }
.lpg-hud-rain.is-marks.is-up .is-mark svg { filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.75)); }
.lpg-hud-rain.is-marks.is-down .is-mark svg { filter: drop-shadow(0 0 6px rgba(255, 90, 72, 0.75)); }
.lpg-hud-rain .is-mark .lpg-luck-s,
.lpg-hud-rain .is-mark .lpg-luck-l { fill: none; stroke: currentColor; stroke-width: 3; }
@keyframes lpgHudRain {
  /* the travel is in ELEMENT heights (a sprite is ~23px), so it has to be large
     enough to cross the whole square — 190% barely left the top edge (seen 2026-11-10) */
  from { transform: translateY(-120%) scale(var(--s, 1)); opacity: 0; }
  12%  { opacity: 1; }
  to   { transform: translateY(1050%) scale(var(--s, 1)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-hud-rain i { animation: none; opacity: 0; }
}
.lpg-card-delta.is-flat { color: rgba(246, 233, 198, 0.55); }
.lpg-card-delta.is-up { color: #3dff9e; text-shadow: 0 0 12px rgba(61, 255, 158, 0.55); }
.lpg-card-delta.is-down { color: #e2645a; text-shadow: 0 0 12px rgba(226, 100, 90, 0.5); }
.lpg-card-delta.is-blank { visibility: hidden; }
.lpg-cd-sign { font-size: 0.8em; }
.lpg-cd-mark { font-size: 0.95em; display: inline-flex; margin: 0 -0.05em; }
.lpg-cd-amount { letter-spacing: -0.02em; }

/* every card the same size, a little larger (item 8) */
.lpg-card.is-anchor { width: var(--lpg-card-w); }
/* the deck is a card, not a fat stack (item 11) */
.lpg-stage-session .lpg-deck {
  width: var(--lpg-card-w);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), inset 0 0 22px rgba(0, 0, 0, 0.5);
}
.lpg-stage-session .lpg-deck-col {
  align-items: center;
  /* THE DECK COLUMN NO LONGER EATS THE ROW (2026-11-09). Its width used to be
     max-content (the account hint's one-line width, ~372px), so at 740-1000px the
     deck column plus four cards could not fit the playfield and the whole row spilled
     past the stage. It now takes a share and gives the rest to the cards; 372px is the
     old width, so a wide window looks exactly as before. */
  flex: 0 0 clamp(200px, 38%, 372px);
  min-width: 0;
  /* the deck sits down a bit, level with the seam between the first two rows
     of cards (owner: "place the deal deck down a bit to inbetween where 2 rows
     would go") */
  /* DEAL + its carets now hang UNDER the deck, so the column is pulled down by
     their height (+59px) — the DECK stays exactly where it was, at the row seam */
  margin-top: calc(var(--lpg-card-w) * 0.72 - 0.5rem + 59px);
}
.lpg-stage-session .lpg-bet { min-width: 0; max-width: 100%; }

@media (max-width: 720px) {
  .lpg-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpg-playfield { flex-direction: column; align-items: center; }
  /* the cards are the game: when the playfield stacks, the play area comes ABOVE
     the deck, the DEAL label, the wager, the wallet and the account links
     (owner 2026-11-07) */
  .lpg-cards { order: -1; }
  .lpg-stage-session .lpg-deck-col { margin-top: 0; flex: 0 0 auto; }
  .lpg-cards { grid-template-columns: repeat(3, auto); }
  .lpg-marquee-title { letter-spacing: 0.08em; }
}
/* ---- PHONES (owner 2026-11-06): the hand has to be on the first screen, so the
   squares go short, the cards draw with the MINI face and five fit across ---- */
@media (max-width: 560px) {
  .lpg-stage-session { --lpg-card-w: 56px; }
  .lpg-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
  .lpg-hud-box { aspect-ratio: 2.2; padding: 0.28rem 0.32rem; gap: 0.06rem; }
  .lpg-hud-label { font-size: 0.62rem; letter-spacing: 0.1em; }
  .lpg-hud-value { font-size: 1.75rem; }
  .lpg-hud-note { font-size: 0.58rem; }
  .lpg-hud-bank .lpg-bank-delta { font-size: 1.6rem; }
  .lpg-hud-hottest .lpg-hud-label { top: calc(50% - 1.35rem); font-size: 0.6rem; }
  .lpg-hud-pot .lpg-bank-value { font-size: 1.9rem; }
  .lpg-pot-unit { font-size: 1.3rem; }
  /* a three- or four-digit pot steps down on a phone too (2026-11-09) */
  .lpg-hud-pot.is-long .lpg-pot-unit { font-size: 1rem; }
  .lpg-hud-pot.is-longer .lpg-pot-unit { font-size: 0.85rem; }
  .lpg-bank-peak, .lpg-bank-warn { font-size: 0.55rem; }
  .lpg-cards { grid-template-columns: repeat(5, auto); gap: 0.5rem 0.4rem; }
  .lpg-card-cell .lpg-card-delta { font-size: 0.66rem; min-height: 0.85rem; }
  .lpg-playfield { gap: 0.55rem; margin-bottom: 0.2rem; }
  .lpg-deck-col { gap: 0.2rem; }
  .lpg-deck { width: 60px; }
  .lpg-deal-label { font-size: 0.9rem; }
  .lpg-deal-carets { margin: 0.35rem 0 0; }
  /* the wager and the wallet side by side — the deck column has to stay short */
  .lpg-bet { margin-top: 0.3rem; gap: 0.85rem; flex-direction: row; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
  /* the sign-in / account strip takes its own line under the wager and the wallet */
  .lpg-account { flex: 1 0 100%; margin-top: 0.15rem; }
  .lpg-wager-amount { font-size: 1.2rem; }
  .lpg-wager-step { width: 1.4rem; height: 1.4rem; }
  .lpg-wallet-value { font-size: 1.3rem; }
  .lpg-ticker-label { font-size: 0.55rem; letter-spacing: 0.12em; }
  .lpg-ticker-value { font-size: 0.98rem; }
  .lpg-ticker-track { gap: 0.6rem; }
  .lpg-welcome { padding: 0.7rem 0.8rem; }
  .lpg-welcome-lede { font-size: 0.74rem; }
  .lpg-welcome-text { font-size: 0.68rem; }
  .lpg-actions { margin-top: 0.6rem; }
}

/* the last phone pocket (2026-11-09): the 5 mini cards overflowed below ~380px —
   see the override at the END of this sheet (the 520px block re-declares 56px). */

/* THE SQUEEZE BAND (2026-11-07): the wordmark is `white-space: nowrap`, so between
   ~830px and ~530px it cannot shrink and the flex row pushed 運 past the rounded
   edge. These steps shrink the title, the marks and the gaps BEFORE the row can
   overflow — measured: 0 spill at every width from 320 to 1600. */
@media (max-width: 900px) and (min-width: 521px) {
  .lpg-marquee { gap: 10px; padding: 12px 14px; }
  .lpg-marquee-title { font-size: clamp(1.05rem, 3.5vw, 2.1rem); letter-spacing: 0.06em; }
  .lpg-marquee-dragon { height: 2.4rem; }
  .lpg-marquee-un { height: 1.9rem; }
}
/* the last pocket before the phone rules take over: 521-600px was still 4-26px
   over, so the lamps shrink and the title takes the phone size a little earlier */
@media (max-width: 600px) and (min-width: 521px) {
  .lpg-marquee { gap: 6px; padding: 10px 8px; }
  .lpg-marquee-title { font-size: clamp(0.95rem, 3.2vw, 1.3rem); letter-spacing: 0.03em; }
  .lpg-marquee-dragon { height: 1.9rem; }
  .lpg-marquee-un { height: 1.5rem; }
  .lpg-orbs { gap: 1px; }
  .lpg-orbs i { width: 6px; height: 6px; }
}
@media (max-width: 520px) {
  .lpg-stage-session { --lpg-card-w: 56px; }
  .lpg-cards { gap: 0.45rem 0.36rem; }
  .lpg-marquee { gap: 4px; padding: 10px 6px; }
  .lpg-marquee-title { font-size: clamp(1rem, 4vw, 1.35rem); letter-spacing: 0.03em; }
  .lpg-marquee-dragon { height: 1.8rem; }
  .lpg-marquee-un { height: 1.4rem; }
  .lpg-orbs { gap: 1px; }
  .lpg-orbs i { width: 5px; height: 5px; }
}
/* very narrow phones: the lamp banks are decorative, so they step aside rather
   than push the header past the viewport (420 since the marks joined the ends) */
@media (max-width: 420px) {
  .lpg-orbs { display: none; }
}
/* THE LAST PHONE POCKET (2026-11-09): five 56px mini cards plus their gaps need
   303px; an iPhone-SE-class window (320-370px) only has 275-325px of felt, so the
   fifth card hung up to 30px past the edge. The cards step to 50px and a tighter
   column gap (46px below 340px) — the same face, a few px smaller, five still fit.
   MUST stay after the 520px block — that block re-declares 56px. */
@media (max-width: 380px) {
  .lpg-stage-session { --lpg-card-w: 50px; }
  .lpg-cards { column-gap: 0.16rem; }
}
@media (max-width: 340px) {
  .lpg-stage-session { --lpg-card-w: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-orbs i,
  .lpg-marquee-title .lpg-plus i,
  .lpg-marquee-title .lpg-name .lpg-luck { animation: none; }
  .lpg-marquee-dragon,
  .lpg-marquee-un { animation: none; }
  .lpg-hud-bank.is-danger { animation: none; }
}



/* ---------------------------------------------------------- the DEAL control */
/* owner 2026-11-06: "DEAL" larger in the PLUS font/colour, with three carets
   beneath it that light one at a time in the direction of the deck. */
.lpg-deal-label {
  margin-top: 0.2rem;
  font-family: "Orbitron", "Noto Serif KR", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;   /* displays DEAL; the DOM text stays "Deal" */
  color: #ff3b3b;
  text-shadow: 0 0 8px rgba(255, 43, 43, 0.85), 0 0 18px rgba(255, 0, 0, 0.55);
}
.lpg-deal-carets {
  display: flex;
  flex-direction: column-reverse;   /* first DOM caret sits at the bottom */
  align-items: center;
  line-height: 0.52;
  /* air between the bottom of the deck card and the carets (owner: a little more) */
  margin: 0.62rem 0 0;
}
.lpg-deal-carets i {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(212, 175, 55, 0.22);
  animation: lpgCaret 1.3s ease-in-out infinite;
}
.lpg-deal-carets i:nth-child(1) { animation-delay: 0s; }
.lpg-deal-carets i:nth-child(2) { animation-delay: 0.16s; }
.lpg-deal-carets i:nth-child(3) { animation-delay: 0.32s; }
@keyframes lpgCaret {
  0%, 100% { color: rgba(212, 175, 55, 0.22); text-shadow: none; }
  35% { color: #ff3b3b; text-shadow: 0 0 8px rgba(255, 59, 59, 0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-deal-carets i { animation: none; }
}

/* ---- ACCOUNTS, THE SAVED WALLET, AND THE PROGRESSIVE (owner 2026-11-07) ---- */
.lpg-account {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 0.45rem 0.7rem; margin-top: 0.5rem; font-size: 0.68rem; color: rgba(240, 226, 190, 0.82);
}
.lpg-account-hint { flex: 1 0 100%; text-align: center; color: rgba(240, 226, 190, 0.62); }
.lpg-account-name { font-family: "Pirata One", "Noto Serif KR", serif; font-size: 0.95rem; color: #ffe9a8; }
.lpg-account-record { color: rgba(240, 226, 190, 0.7); }
.lpg-account-record strong { color: #ffb830; }
.lpg-account-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: #ffcf6b; text-decoration: underline; text-underline-offset: 2px;
}
.lpg-account-link:hover { color: #ffe9a8; }
.lpg-account-link.is-strong { font-weight: 700; }
.lpg-account-link.is-admin { color: #7cc7ff; }

.lpg-progressive {
  /* THE MATRIX (owner 2026-11-07): one pitch drives both the panel's dot grid and
     the mask on the text window, so the message is written IN the dots. */
  --lpg-dot: 3px;
  --lpg-dot-r: 1.28px;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 2.7rem;
  box-sizing: border-box;
  margin: 0.15rem auto 0.55rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 104, 0.5);
  border-radius: 10px;
  background:
    radial-gradient(circle at calc(var(--lpg-dot) / 2) calc(var(--lpg-dot) / 2),
      rgba(0, 255, 150, 0.14) var(--lpg-dot-r), transparent calc(var(--lpg-dot-r) + 0.25px))
      0 0 / var(--lpg-dot) var(--lpg-dot),
    radial-gradient(140% 200% at 50% 0%, rgba(0, 60, 26, 0.72), rgba(0, 10, 5, 0.98) 70%),
    #02170c;
  box-shadow: inset 0 0 24px rgba(0, 255, 140, 0.12), 0 0 14px rgba(255, 184, 48, 0.16);
}
/* the window holds the mask: the dots stay FIXED to the panel and the moving text
   only lights the dots it passes over */
/* THE DOT MATRIX ANNOUNCEMENT (owner 2026-11-10): a bonus takes over the house board.
   The grid is the panel's own dot pitch, lit in hard steps so it reads as LEDs, and
   the word burns in one column at a time. */
.lpg-dotflash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: inherit;
  overflow: hidden;
  background: radial-gradient(120% 160% at 50% 40%, rgba(6, 40, 22, 0.94), rgba(2, 14, 8, 0.97));
  z-index: 3;
}
.lpg-dotflash-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(120, 255, 170, 0.42) 1px, transparent 0);
  background-size: var(--lpg-dot, 3px) var(--lpg-dot, 3px);
  opacity: 0.85;
  animation: lpgDotScan 900ms steps(18, end) both;
}
@keyframes lpgDotScan {
  from { background-position: 0 -140%; opacity: 0.25; }
  40%  { opacity: 1; }
  to   { background-position: 0 140%; opacity: 0.55; }
}
.lpg-dotflash-text,
.lpg-dotflash-money {
  position: relative;
  font-family: "Pirata One", "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* the glyphs are FILLED WITH DOTS, not painted flat, so it reads as a real matrix */
  background-image: radial-gradient(circle at 50% 50%, #d8ffe8 1.35px, transparent 1.55px);
  background-size: 3px 3px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(60, 255, 140, 0.85)) drop-shadow(0 0 18px rgba(20, 200, 90, 0.4));
  animation: lpgDotBurn 560ms steps(8, end) both, lpgDotFlicker 240ms steps(2, end) 2 560ms;
}
@keyframes lpgDotFlicker {
  from { filter: drop-shadow(0 0 8px rgba(60, 255, 140, 0.95)) brightness(1.25); }
  to   { filter: drop-shadow(0 0 6px rgba(60, 255, 140, 0.8)) brightness(1); }
}
/* COINS (money bonuses): a handful of dollars tumbling through the panel */
.lpg-fx { position: absolute; inset: 0; overflow: hidden; }
.lpg-fx i { position: absolute; display: block; }
.lpg-fx-coins i {
  left: var(--x, 50%);
  top: -18%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e8c46a 55%, #8a6a1f);
  box-shadow: 0 0 10px rgba(255, 214, 120, 0.85);
  animation: lpgCoinDrop 1300ms cubic-bezier(0.3, 0.7, 0.4, 1) both;
  animation-delay: var(--d, 0ms);
  transform: scale(var(--s, 1));
}
@keyframes lpgCoinDrop {
  from { transform: translateY(-40px) rotate(0deg) scale(var(--s, 1)); opacity: 0; }
  15%  { opacity: 1; }
  to   { transform: translateY(150px) rotate(320deg) scale(var(--s, 1)); opacity: 0; }
}
/* FIREWORKS (the rare ones): sparks thrown out from the middle */
.lpg-fx-fireworks i {
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ffe9a8;
  box-shadow: 0 0 8px rgba(255, 214, 120, 0.95);
  animation: lpgSpark 900ms ease-out both;
  animation-delay: var(--d, 0ms);
}
@keyframes lpgSpark {
  from { transform: rotate(var(--a, 0deg)) translateY(0) scale(1); opacity: 1; }
  to   { transform: rotate(var(--a, 0deg)) translateY(-64px) scale(0.2); opacity: 0; }
}
.lpg-dotflash-text { font-size: clamp(1.05rem, 2.6vw, 1.6rem); }
.lpg-dotflash-money {
  font-size: clamp(0.9rem, 1.9vw, 1.2rem);
  background-image: radial-gradient(circle at 50% 50%, #ffe9a8 1.35px, transparent 1.55px);
  background-size: 3px 3px;
  filter: drop-shadow(0 0 6px rgba(255, 214, 120, 0.95));
}
@keyframes lpgDotBurn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  60%  { opacity: 1; clip-path: inset(0 22% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
/* the big one burns gold, and the whole panel pulses */
.lpg-dotflash.is-climb,
.lpg-dotflash.is-breaker { background: radial-gradient(120% 160% at 50% 40%, rgba(60, 34, 4, 0.96), rgba(12, 8, 2, 0.98)); }
.lpg-dotflash.is-climb .lpg-dotflash-text,
.lpg-dotflash.is-breaker .lpg-dotflash-text {
  /* cream dots on near-black: gold on gold disappeared (seen in review 2026-11-10) */
  background-image: radial-gradient(circle at 50% 50%, #fffdf0 1.35px, transparent 1.55px);
  filter: drop-shadow(0 0 8px rgba(255, 214, 120, 0.95)) drop-shadow(0 0 20px rgba(255, 150, 30, 0.55));
}
.lpg-dotflash.is-climb,
.lpg-dotflash.is-breaker { background: radial-gradient(120% 160% at 50% 40%, rgba(26, 14, 2, 0.97), rgba(4, 3, 1, 0.99)); }
/* CATACLYSM (owner 2026-11-10): the losing run owns the board in red, the total
   climbing with each card */
.lpg-dotflash.is-cataclysm { background: radial-gradient(120% 160% at 50% 40%, rgba(46, 6, 6, 0.97), rgba(12, 2, 2, 0.99)); }
.lpg-dotflash.is-cataclysm .lpg-dotflash-grid { background-image: radial-gradient(circle at 1px 1px, rgba(255, 90, 80, 0.34) 1px, transparent 0); }
.lpg-dotflash.is-cataclysm .lpg-dotflash-text {
  background-image: radial-gradient(circle at 50% 50%, #ffc9c0 1.35px, transparent 1.55px);
  filter: drop-shadow(0 0 8px rgba(255, 80, 60, 0.95)) drop-shadow(0 0 22px rgba(200, 30, 20, 0.6));
}
.lpg-dotflash.is-cataclysm .lpg-dotflash-money {
  background-image: radial-gradient(circle at 50% 50%, #ff6a58 1.35px, transparent 1.55px);
  filter: drop-shadow(0 0 9px rgba(255, 70, 50, 0.95));
}
.lpg-dotflash.is-cataclysm .lpg-dotflash-money.is-new-loss {
  animation: lpgBillIn 420ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
/* DETHRONED wears the blue of the Dethroned stamp (owner 2026-11-10) */
.lpg-dotflash.is-dethrone { background: radial-gradient(120% 160% at 50% 40%, rgba(8, 18, 44, 0.97), rgba(2, 5, 14, 0.99)); }
.lpg-dotflash.is-dethrone .lpg-dotflash-grid { background-image: radial-gradient(circle at 1px 1px, rgba(140, 190, 255, 0.28) 1px, transparent 0); }
.lpg-dotflash.is-dethrone .lpg-dotflash-text {
  background-image: radial-gradient(circle at 50% 50%, #e8f2ff 1.35px, transparent 1.55px);
  filter: drop-shadow(0 0 8px rgba(120, 180, 255, 0.95)) drop-shadow(0 0 20px rgba(60, 120, 255, 0.55));
}
.lpg-dotflash.is-climb .lpg-dotflash-grid,
.lpg-dotflash.is-breaker .lpg-dotflash-grid { background-image: radial-gradient(circle at 1px 1px, rgba(255, 220, 130, 0.26) 1px, transparent 0); }
.lpg-dotflash.is-climb { animation: lpgDotPulse 1.1s ease-in-out 3 both; }
@keyframes lpgDotPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-dotflash, .lpg-dotflash-grid, .lpg-dotflash-text, .lpg-dotflash-money { animation: none; }
}
.lpg-ticker-window {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at calc(var(--lpg-dot) / 2) calc(var(--lpg-dot) / 2),
    #000 var(--lpg-dot-r), transparent calc(var(--lpg-dot-r) + 0.3px));
  -webkit-mask-size: var(--lpg-dot) var(--lpg-dot);
  -webkit-mask-position: 0 0;
  -webkit-mask-repeat: repeat;
  mask-image: radial-gradient(circle at calc(var(--lpg-dot) / 2) calc(var(--lpg-dot) / 2),
    #000 var(--lpg-dot-r), transparent calc(var(--lpg-dot-r) + 0.3px));
  mask-size: var(--lpg-dot) var(--lpg-dot);
  mask-position: 0 0;
  mask-repeat: repeat;
}
/* the crawl */
.lpg-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.3rem, 0.8vw, 0.9rem);
  max-width: 100%;
  white-space: nowrap;
  font-family: Orbitron, "Pirata One", monospace;
  font-weight: 700;
  color: #d8ffe9;
  animation: lpgTickerIn 1.15s cubic-bezier(0.2, 0.85, 0.2, 1) both;
  will-change: transform;
}
.lpg-ticker-item { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.lpg-ticker-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(77, 255, 160, 0.88); }
.lpg-ticker-value { font-size: clamp(0.85rem, 1.6vw, 1.32rem); font-weight: 700; color: #e6fff2; }
.lpg-ticker-unit { font-size: clamp(0.55rem, 0.95vw, 0.82rem); color: #ffd76a; }
.lpg-progressive-bank {
  color: #eafff2;
  text-shadow: 0 0 8px rgba(150, 255, 195, 1), 0 0 22px rgba(0, 255, 140, 0.6);
}
.lpg-ticker-sep { color: rgba(255, 215, 106, 0.75); font-size: 0.55rem; }
/* the flash when the crawl halts in the middle */
.lpg-ticker::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(120% 160% at 50% 50%, rgba(140, 255, 200, 0.35), rgba(0, 255, 140, 0) 72%);
  animation: lpgTickerFlash 3.4s ease-out 1 both;
}
/* coins dropping while it flashes */
.lpg-ticker-coins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lpg-ticker-coins i {
  position: absolute;
  top: -8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffb830 60%, #b5761a);
  box-shadow: 0 0 6px rgba(255, 200, 90, 0.85);
  opacity: 0;
  animation: lpgCoinDrop 3.4s ease-out 1 both;
  animation-delay: calc(var(--c, 0) * 0.12s);
}
.lpg-ticker-coins i:nth-child(1) { left: 9%; --c: 0; }
.lpg-ticker-coins i:nth-child(2) { left: 26%; --c: 2; }
.lpg-ticker-coins i:nth-child(3) { left: 41%; --c: 1; }
.lpg-ticker-coins i:nth-child(4) { left: 58%; --c: 3; }
.lpg-ticker-coins i:nth-child(5) { left: 74%; --c: 1; }
.lpg-ticker-coins i:nth-child(6) { left: 89%; --c: 2; }

@keyframes lpgTickerIn {
  0%   { transform: translate3d(46%, 0, 0); opacity: 0.25; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}
/* the arrival flash: fires once, just after the panel has slid home */
@keyframes lpgTickerFlash {
  0%, 34% { opacity: 0; }
  40% { opacity: 0.95; }
  45% { opacity: 0.2; }
  50% { opacity: 0.95; }
  55% { opacity: 0.25; }
  60% { opacity: 0.9; }
  70%, 100% { opacity: 0; }
}
@keyframes lpgCoinDrop {
  0%, 34% { opacity: 0; transform: translateY(0) scale(0.8); }
  38% { opacity: 1; }
  58% { opacity: 0.95; transform: translateY(30px) scale(1); }
  62% { opacity: 0; transform: translateY(36px) scale(0.9); }
  100% { opacity: 0; }
}
.lpg-ticker.is-settled .lpg-ticker-track { animation: none; transform: none; }
.lpg-ticker.is-settled::after { animation: none; opacity: 0; }
.lpg-ticker.is-settled .lpg-ticker-coins i { animation: none; opacity: 0; }

@media (max-width: 760px) {
  /* three columns, label over value: one panel of progressive data, never spilling.
     The row layout needs width, so it stops here. */
  .lpg-ticker-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.35rem;
    box-sizing: border-box;
  }
  .lpg-ticker-item { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; text-align: center; }
  .lpg-ticker-label { font-size: 0.52rem; letter-spacing: 0.02em; line-height: 1.08; white-space: normal; }
  .lpg-ticker-value { font-size: 1.05rem; line-height: 1.06; }
  .lpg-ticker-unit { font-size: 0.66rem; }
  .lpg-ticker-sep { display: none; }
}

@media (max-width: 560px) {
  /* a finer matrix on a phone — more dots per glyph keeps the crawl readable
     (this block must come AFTER the matrix rules: the base rule sets the pitch) */
  .lpg-progressive { height: 2.5rem; --lpg-dot: 2.5px; --lpg-dot-r: 1.05px; }
  .lpg-ticker-label { font-size: 0.46rem; letter-spacing: 0.01em; }
  .lpg-ticker-value { font-size: 0.96rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lpg-ticker-track { animation: none; transform: none; }
  .lpg-ticker::after, .lpg-ticker-coins i { animation: none; opacity: 0; }
}
.lpg-jackpot-progressive {
  flex: 1 0 100%; text-align: center; font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #7cc7ff; text-shadow: 0 0 12px rgba(124, 199, 255, 0.6);
}

.lpg-report-warn {
  margin: 0.2rem 0 0; padding: 0.6rem 0.8rem; border-radius: 10px; font-size: 0.72rem;
  color: #ffe6b0; background: rgba(255, 196, 76, 0.08); border: 1px solid rgba(232, 196, 104, 0.45);
  line-height: 1.5;
}
.lpg-report-signup {
  margin-left: 0.35rem; padding: 0.2rem 0.55rem; border-radius: 999px; cursor: pointer;
  border: 1px solid #ffcf6b; background: rgba(255, 207, 107, 0.14); color: #ffe9a8; font: inherit;
}

/* the auth modal */
.lpg-auth { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center;
  background: rgba(4, 3, 1, 0.72); backdrop-filter: blur(3px); padding: 1rem; }
.lpg-auth[hidden] { display: none; }
.lpg-auth-panel { position: relative; width: min(420px, 96vw); box-sizing: border-box;
  padding: 1.4rem 1.3rem 1.2rem; border-radius: 16px; border: 1px solid rgba(232, 196, 104, 0.6);
  background: linear-gradient(180deg, #16110a, #0a0805);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 184, 48, 0.15); color: #f6e9c6; }
.lpg-auth-title { margin: 0 0 0.3rem; font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: 1.5rem; color: #ffe9a8; }
.lpg-auth-lede { margin: 0 0 0.9rem; font-size: 0.76rem; color: rgba(240, 226, 190, 0.7); }
.lpg-auth-close { position: absolute; top: 0.4rem; right: 0.6rem; background: none; border: 0;
  color: #c9b078; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.lpg-auth-field { display: block; margin-bottom: 0.6rem; }
.lpg-auth-field span { display: block; font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(232, 196, 104, 0.8); margin-bottom: 0.2rem; }
.lpg-auth-field input { width: 100%; box-sizing: border-box; padding: 0.5rem 0.6rem; border-radius: 8px;
  border: 1px solid rgba(232, 196, 104, 0.38); background: rgba(0, 0, 0, 0.35); color: #fff8e6;
  font: inherit; }
.lpg-auth-field input:focus { outline: 2px solid rgba(255, 207, 107, 0.5); outline-offset: 1px; }
.lpg-auth-error { margin: 0.2rem 0 0.6rem; min-height: 1em; font-size: 0.7rem; color: #ff8b7f; }
.lpg-auth-error.is-ok { color: #7ef0a8; }
.lpg-auth-submit { width: 100%; padding: 0.6rem; border-radius: 10px; cursor: pointer;
  border: 1px solid #ffcf6b; background: linear-gradient(180deg, rgba(255, 207, 107, 0.25), rgba(255, 184, 48, 0.1));
  color: #ffe9a8; font: inherit; font-weight: 700; letter-spacing: 0.06em; }
.lpg-auth-note { margin: 0.8rem 0 0; font-size: 0.62rem; color: rgba(240, 226, 190, 0.55); line-height: 1.5; }

/* the round's hands, card by card (owner 2026-11-08: "look at my last hand") */
.lpg-hand-list { list-style: none; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.lpg-hand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "cards values" "name name";
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}
.lpg-hand-cards { grid-area: cards; font-family: "Noto Serif KR", serif; font-size: 0.82rem; letter-spacing: 0.02em; color: #e8e2cf; }
.lpg-hand-values { grid-area: values; font-size: 0.74rem; color: var(--lpg-gold); text-align: right; }
.lpg-hand-name { grid-area: name; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lpg-mute); }
.lpg-hand-card.is-red { color: #ff7a6e; }
.lpg-hand-card { margin-right: 0.25em; }


/* THE CALAMITY BREAKER (owner 2026-11-08): a royal that stops the loss cascade.
   A diagonal word stamp like the match/dethrone pips — in TEAL, the one colour the
   deck does not already use. */
.lpg-pip-calamity {
  color: #d6fff7;
  background: radial-gradient(120% 120% at 50% 40%, rgba(10, 84, 74, 0.92), rgba(3, 24, 22, 0.9));
  border-color: rgba(72, 232, 206, 0.95);
  box-shadow: 0 0 26px rgba(46, 220, 190, 0.6), 0 0 44px rgba(20, 120, 110, 0.45), inset 0 0 30px rgba(60, 200, 180, 0.4);
  text-shadow: 0 0 14px rgba(180, 255, 240, 0.95), 0 0 26px rgba(72, 232, 206, 0.9);
}
.lpg-pip-calamityword {
  display: inline-block;
  transform: rotate(-16deg);
  font-family: "Pirata One", "Noto Serif KR", serif;
  font-size: calc(var(--lpg-card-w) * 0.24);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}
/* THE HIGH LUCK ACE (owner 2026-11-12): the Ace is a breaker too, and its stamp
   leads with HIGH LUCK while still naming the Calamity Breaker underneath. */
.lpg-pip-calamity.is-highluck {
  color: #fff9d6;
  background: radial-gradient(120% 120% at 50% 40%, rgba(40, 96, 40, 0.95), rgba(8, 38, 18, 0.94));
  border-color: rgba(255, 224, 138, 0.98);
  box-shadow: 0 0 26px rgba(255, 210, 74, 0.7), 0 0 46px rgba(34, 197, 94, 0.5), inset 0 0 30px rgba(120, 255, 160, 0.35);
  text-shadow: 0 0 14px rgba(255, 249, 214, 0.95), 0 0 26px rgba(255, 210, 74, 0.9);
}
.lpg-pip-calamity.is-highluck .lpg-pip-calamityword { color: #fff9d6; }
.lpg-card-cell.is-breaker.is-highluck .lpg-card {
  border-color: rgba(255, 224, 138, 0.95);
  box-shadow: 0 0 18px rgba(255, 210, 74, 0.55), 0 0 30px rgba(34, 197, 94, 0.35);
}

/* a cascade flip card is a normal card cell; the multiplier sits where the money
   value would, so the layout never shifts */
.lpg-card-mult {
  display: block;
  text-align: center;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #ff7a6e;
  margin-bottom: 0.15rem;
}
.lpg-card-cell.is-cascade .lpg-card { border-color: rgba(255, 122, 110, 0.35); }
.lpg-card.is-calamity { border-color: rgba(72, 232, 206, 0.85); box-shadow: 0 0 18px rgba(46, 220, 190, 0.4); }

/* NO SCANLINES ON THE CARDS (owner 2026-11-10: "the horizontal scan lines look amazing,
   just remove the effect from the cards themselves"). The glass coat carries the lines
   at z 40; the cells and the deck are lifted above it, so the CRT texture stops at
   their edges and the artwork stays clean. */
.lpg-cards .lpg-card-cell,
.lpg-deck {
  position: relative;
  z-index: 41;
}

/* THE WHOLE-DISPLAY DUST (owner N-20261111-14, item 4). A sibling of the four
   HUD boxes, so the storm fills the entire display instead of only the horse's
   current square. It fades out when the race does; the broken-leg cut holds it
   through the shotgun. */
.lpg-hud-dust {
  position: absolute;
  inset: -0.35rem;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
  border-radius: 14px;
  animation: lpgHudDustIn 320ms ease-out both, lpgHudDustOut 520ms ease-in 3300ms both;
}
.lpg-hud-dust.is-broken {
  animation: lpgHudDustIn 320ms ease-out both, lpgHudDustOut 520ms ease-in 5200ms both;
}
.lpg-hud-dust-haze {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse at 12% 82%, rgba(218, 186, 136, 0.24) 0%, rgba(160, 122, 78, 0) 46%),
    radial-gradient(ellipse at 54% 28%, rgba(226, 198, 150, 0.18) 0%, rgba(160, 122, 78, 0) 56%),
    radial-gradient(ellipse at 88% 74%, rgba(222, 194, 146, 0.22) 0%, rgba(150, 112, 70, 0) 44%);
  filter: blur(7px) saturate(0.7);
  animation: lpgHudDustHaze 2400ms ease-in-out infinite alternate;
}
.lpg-hud-dust i {
  position: absolute;
  left: calc(-14% + (var(--i) % 8) * 16%);
  top: calc(4% + (var(--i) % 9) * 10.5%);
  width: calc(1.5% + (var(--i) % 4) * 0.85%);
  height: calc(0.4% + (var(--i) % 3) * 0.2%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224, 196, 148, 0) 0%,
    rgba(236, 210, 162, 0.9) 62%, rgba(255, 246, 220, 0.95) 100%);
  filter: blur(0.7px);
  opacity: 0;
  animation: lpgHudDust 1400ms linear infinite;
  animation-delay: calc(var(--i) * -83ms);
}
.lpg-hud-dust i:nth-child(3n) {
  animation-duration: 1900ms;
  filter: blur(1.6px);
}
@keyframes lpgHudDust {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scaleX(0.7); }
  12%  { opacity: 0.8; }
  80%  { opacity: 0.45; }
  100% { opacity: 0; transform: translate3d(120%, -7%, 0) scaleX(1.7); }
}
@keyframes lpgHudDustHaze {
  from { opacity: 0.55; transform: translate3d(-2%, 1%, 0) scale(0.98); }
  to   { opacity: 0.95; transform: translate3d(2%, -1%, 0) scale(1.04); }
}
@keyframes lpgHudDustIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpgHudDustOut { from { opacity: 1; } to { opacity: 0; } }

/* THE LUCKY STREAK HORSE (owner 2026-11-10; re-cut twice on 2026-11-11).
   The sequence the owner dictated (2026-11-11, second pass):
     1. the race opens WIDE — the horse and rider enter from the left and gallop;
     2. the camera pushes in x2 on the horse AND RIDER (no head cut-away any more);
     3. it bursts out and crosses ALL FOUR squares at speed with generous motion blur,
        then the Lucky Streak display returns;
     4. the dirt is a real 16-bit racecourse (grandstand, floodlights, grass, a rail
        fence) and it exists ONLY for the length of the sequence.
   A three-CATACLYSM losing run runs the same race, then the foreleg snaps: the leg
   close-up HOLDS, a scattergun comes in from the top right (no more than a third of
   the way in) pointing down, it flashes — and the square returns to the display. */
.lpg-hud-streak.has-horse { overflow: visible; z-index: 6; }
.lpg-horse {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* OWNER 2026-11-11: "he runs on each one of the screens one by one. All 4. but only
     in the screens. He doesn't leave a square." The layer is exactly one square and
     it CUTS from square to square (steps(1)) — the animal never crosses a gap. */
  clip-path: inset(0 0 0 0);
  animation: lpgHorseScreens 3600ms steps(1, end) both;
}
@keyframes lpgHorseScreens {
  0%, 20.99% { transform: translateX(0); }
  21%, 41.99% { transform: translateX(calc(100% + 0.6rem)); }
  42%, 62.99% { transform: translateX(calc(200% + 1.2rem)); }
  63%, 100% { transform: translateX(calc(300% + 1.8rem)); }
}
/* a 2x2 HUD cannot hop sideways — the horse keeps its square and laps it */
@media (max-width: 720px) {
  .lpg-horse { animation: none; }
  /* a 2x2 HUD has no fourth-square crossing: the pot must stay put */
  .lpg-hud-pot.has-horse .lpg-pot,
  .lpg-hud-pot.has-horse .lpg-bank-peak,
  .lpg-hud-pot.has-horse .lpg-bank-warn { animation: none; opacity: 1; transform: none; }
  .lpg-pot-change { display: none; }
}
/* THE RACECOURSE (owner 2026-11-11: "the track could use some fences, lights, grass,
   stands"): two 16-bit parallax strips — the far one carries the night sky, the lit
   grandstand, the floodlights and the infield grass; the near one a grass verge, a
   white rail fence and the dirt under the hooves. It fades OUT when the sequence
   ends, so the square is clean between hands. */
.lpg-track {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 68%;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  animation: lpgTrackIn 380ms ease-out both, lpgTrackOut 420ms ease-in 3050ms both;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 7%, #000 93%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 7%, #000 93%, rgba(0,0,0,0) 100%);
}
.lpg-track span {
  position: absolute;
  left: 0; right: 0;
  background-repeat: repeat-x;
  image-rendering: pixelated;
}
.lpg-track-far {
  bottom: 34%;
  height: 100%;
  background-image: url('images/lpg-dirt-far.png');
  background-size: auto 100%;
  opacity: 0.95;
  animation: lpgDirtFar 3.4s linear infinite;
}
.lpg-track-near {
  bottom: 0;
  height: 56%;
  background-image: url('images/lpg-dirt-near.png');
  background-size: auto 100%;
  animation: lpgDirtNear 0.8s linear infinite;
}
@keyframes lpgDirtFar { from { background-position-x: 0; } to { background-position-x: -256px; } }
@keyframes lpgDirtNear { from { background-position-x: 0; } to { background-position-x: -256px; } }
@keyframes lpgTrackIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpgTrackOut { from { opacity: 1; } to { opacity: 0; } }
.lpg-horse-run {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  transform-origin: 50% 66%;
  animation: lpgHorseRun 3600ms cubic-bezier(0.3, 0.02, 0.6, 1) both;
}
@keyframes lpgHorseRun {
  /* ONE LAP PER SQUARE. A lap = enter from the left edge, gallop inside the square,
     then exit right — and the layer CUTS to the next square at the lap boundary. The
     animal is inside its square for almost the whole lap; it never crosses a gap. */
  0%    { transform: translateX(-100%) scale(1); filter: blur(1.2px); opacity: 1; }
  3%    { transform: translateX(-30%) scale(1); }
  7%    { transform: translateX(0%) scale(1); filter: blur(0.8px); }
  16%   { transform: translateX(6%) scale(1); }
  19%   { transform: translateX(48%) scale(1); filter: blur(2.6px); }
  20.4% { transform: translateX(104%) scale(1); }
  /* screen 2 */
  21%   { transform: translateX(-100%) scale(1); filter: blur(1.2px); }
  24%   { transform: translateX(-30%) scale(1); }
  28%   { transform: translateX(0%) scale(1); filter: blur(0.8px); }
  37%   { transform: translateX(6%) scale(1); }
  40%   { transform: translateX(48%) scale(1); filter: blur(2.6px); }
  41.4% { transform: translateX(104%) scale(1); }
  /* screen 3 — the camera pushes in x2 on the horse and rider */
  42%   { transform: translateX(-100%) scale(1.08); filter: blur(1.2px); }
  45%   { transform: translateX(-40%) scale(2); }
  49%   { transform: translateX(-4%) scale(2); filter: blur(1px); }
  58%   { transform: translateX(2%) scale(2); }
  61%   { transform: translateX(48%) scale(1.7); filter: blur(3px); }
  62.4% { transform: translateX(104%) scale(1.5); }
  /* screen 4 */
  63%   { transform: translateX(-100%) scale(1.05); filter: blur(1.2px); }
  66%   { transform: translateX(-30%) scale(1.05); }
  70%   { transform: translateX(0%) scale(1.05); filter: blur(0.8px); }
  79%   { transform: translateX(6%) scale(1.05); }
  82%   { transform: translateX(48%) scale(1.05); filter: blur(2.6px); }
  83.4% { transform: translateX(104%) scale(1.05); opacity: 1; }
  92%   { transform: translateX(104%) scale(1.03); opacity: 1; }
  100%  { transform: translateX(104%) scale(1); filter: blur(2.6px); opacity: 0; }
}
}
/* a four-beat gallop: push, lift, stretch, land — a vertical bob with a little
   squash and pitch so the still cutout reads as a horse at speed */
@keyframes lpgHorseGallop {
  0%   { transform: translateY(0) rotate(-1.1deg) scaleY(0.99); }
  45%  { transform: translateY(-4.2%) rotate(0.6deg) scaleY(1.02); }
  100% { transform: translateY(1.6%) rotate(1.2deg) scaleY(0.98); }
}
.lpg-horse-body {
  position: absolute;
  inset: 9% 6% 12% 6%;
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: blur(0.5px);
  transform-origin: 50% 88%;
  animation: lpgHorseGallop 200ms cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
}
/* THREE trailing ghosts of the cutout, each dragged further back and blurred
   harder — the generous motion blur the owner asked for. The crisp body stays
   readable on top of them. */
.lpg-horse-smear {
  position: absolute;
  inset: 9% 6% 12% 6%;
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;
  /* motion blur, doubled (owner 2026-11-11: "2x motion blur on running") */
  filter: blur(6.8px);
  animation: lpgHorseSmear 520ms ease-in-out infinite alternate;
}
.lpg-horse-smear.is-mid {
  inset: 11% -1% 10% 9%;
  filter: blur(13px);
  animation: lpgHorseSmearMid 640ms ease-in-out infinite alternate;
}
.lpg-horse-smear.is-far {
  inset: 13% -9% 9% 15%;
  filter: blur(22px);
  animation: lpgHorseSmearFar 760ms ease-in-out infinite alternate;
}
@keyframes lpgHorseSmear {
  from { opacity: 0.34; transform: translateX(5%) scale(0.99); }
  to   { opacity: 0.72; transform: translateX(-13%) scale(1.03); }
}
@keyframes lpgHorseSmearMid {
  from { opacity: 0.2; transform: translateX(-9%) scale(0.98); }
  to   { opacity: 0.5; transform: translateX(-26%) scale(1.04); }
}
@keyframes lpgHorseSmearFar {
  from { opacity: 0.1; transform: translateX(-20%) scale(0.97); }
  to   { opacity: 0.32; transform: translateX(-44%) scale(1.05); }
}
/* Ten real pixel-dust puffs, thrown from the hooves and left behind — each on its
   own phase, and CHUNKY (image-rendering: pixelated + steps) so it belongs to the
   16-bit course rather than reading as a soft video overlay (owner 2026-11-11). */
.lpg-dust {
  /* the trail sits BEHIND the hooves inside the run wrapper, so it travels (and
     scales) with the animal from square to square */
  position: absolute;
  left: -14%; top: 24%;
  width: 62%; height: 72%;
  z-index: 1;
  pointer-events: none;
  animation: lpgDustOff 360ms ease-in 3000ms both;
}
/* the low ground haze under the pack — the "overlay" the owner asked for twice */
.lpg-dust-haze {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  background: radial-gradient(closest-side at 52% 100%,
    rgba(216, 182, 132, 0.8) 0%, rgba(168, 128, 82, 0.42) 52%, rgba(120, 88, 54, 0) 100%);
  filter: blur(8px) brightness(1.5) saturate(0.7);
  opacity: 1;
  transform-origin: 50% 100%;
  animation: lpgDustHaze 620ms ease-in-out infinite alternate;
}
.lpg-dust i {
  position: absolute;
  left: calc(6% + var(--i) * 2.35%);
  bottom: calc(2% + (var(--i) % 4) * 3.2%);
  width: calc(9% + (var(--i) % 5) * 2.8%);
  aspect-ratio: 1;
  background-image: url('images/lpg-dust.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  /* the sprite is earth-brown; lifting it keeps the dust readable over the dark
     course without turning it into fog */
  filter: brightness(2.1) saturate(0.75);
  opacity: 0;
  animation: lpgDustKick 560ms steps(5, end) infinite;
  animation-delay: calc(var(--i) * -19ms);
}
/* every third puff is the far haze: slower, bigger, fainter */
.lpg-dust i:nth-child(3n) {
  animation-name: lpgDustKickFar;
  animation-duration: 940ms;
  animation-delay: calc(var(--i) * -31ms);
  opacity: 0;
}
@keyframes lpgDustKick {
  0%   { opacity: 0; transform: translate(8%, 6%) scale(0.5); }
  18%  { opacity: 1; }
  58%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-58%, -46%) scale(1.8); }
}
@keyframes lpgDustKickFar {
  0%   { opacity: 0; transform: translate(12%, 2%) scale(0.55); }
  22%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-84%, -28%) scale(2.4); }
}
@keyframes lpgDustHaze {
  from { opacity: 0.55; transform: scale(0.96, 0.9); }
  to   { opacity: 0.95; transform: scale(1.05, 1.05); }
}
@keyframes lpgDustOff { from { opacity: 1; } to { opacity: 0; } }
/* a two-frame white camera pop when the x2 push begins */
.lpg-horse-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 2;
  animation: lpgHorseFlash 220ms steps(1, end) 2200ms both;
}
@keyframes lpgHorseFlash {
  0%   { opacity: 0; }
  30%  { opacity: 0.16; }
  60%  { opacity: 0.05; }
  100% { opacity: 0; }
}
/* the label pulses while the race plays; the streak number drops in when it ends */
.lpg-hud-streak.has-horse .lpg-hud-label {
  animation: lpgHorseLabel 520ms ease-in-out 3 both;
  animation-delay: 600ms;
}
@keyframes lpgHorseLabel {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 14px rgba(232, 196, 104, 0.95), 0 0 30px rgba(232, 196, 104, 0.5); }
}
.lpg-hud-streak.has-horse .lpg-hud-value {
  animation: lpgHorseDrop 380ms ease-out both;
  animation-delay: 3400ms;
}
@keyframes lpgHorseDrop {
  from { opacity: 0; text-shadow: none; }
  60% { text-shadow: 0 0 18px rgba(232, 196, 104, 0.95); }
  to  { opacity: 1; text-shadow: none; }
}
.lpg-hud-streak.has-horse.is-lame .lpg-hud-value { animation-delay: 3350ms; }

/* ============================================================
   THE BROKEN LEG (owner N-20261111-11; re-shot 2026-11-11). The race starts the same,
   then the horse STEPS DOWN, the foreleg snaps at almost 90 degrees, and the whole
   horse FALLS — head and body on the ground, injured. Only then does a much larger
   shotgun slide in slowly, barrels toward the head; the reticle finds the bullseye,
   BANG — a huge muzzle flash and the square WHITES OUT for a moment.
   ============================================================ */
.lpg-horse.is-broken .lpg-horse-run { animation-name: lpgHorseRunBroken; }
.lpg-horse.is-broken .lpg-horse-body { animation: lpgHorseGallopBroken 2200ms linear both; }
@keyframes lpgHorseRunBroken {
  /* the same entrance, then a step down, a lurch, and the horse pitches forward
     and falls as the camera cuts to the leg */
  0%   { transform: translateX(-100%) scale(1); opacity: 1; }
  10%  { transform: translateX(-30%) scale(1); }
  22%  { transform: translateX(0%) scale(1); }
  27%  { transform: translateX(2%) translateY(4%) rotate(-3deg) scale(1.01); }
  33%  { transform: translateX(5%) translateY(12%) rotate(-9deg) scale(0.99); opacity: 1; }
  42%  { transform: translateX(9%) translateY(26%) rotate(-30deg) scale(0.94); opacity: 0.75; }
  50%  { transform: translateX(12%) translateY(44%) rotate(-52deg) scale(0.88); opacity: 0; }
  100% { transform: translateX(12%) translateY(44%) rotate(-52deg) scale(0.88); opacity: 0; }
}
@keyframes lpgHorseGallopBroken {
  /* the gallop, then the step down: a hard knee drop and the shoulder follows */
  0%   { transform: translateY(0) rotate(-1.1deg) scaleY(0.99); }
  8%   { transform: translateY(-4.2%) rotate(0.6deg) scaleY(1.02); }
  16%  { transform: translateY(1.6%) rotate(1.2deg) scaleY(0.98); }
  24%  { transform: translateY(-4.2%) rotate(0.6deg) scaleY(1.02); }
  32%  { transform: translateY(1.6%) rotate(1.2deg) scaleY(0.98); }
  40%  { transform: translateY(-4.2%) rotate(0.6deg) scaleY(1.02); }
  48%  { transform: translateY(1.6%) rotate(1.2deg) scaleY(0.98); }
  56%  { transform: translateY(-3.4%) rotate(0.4deg) scaleY(1.01); }
  /* the step down: the foreleg gives, the body drops hard and pitches forward */
  63%  { transform: translateY(11%) rotate(-10deg) scaleY(0.93); }
  72%  { transform: translateY(7%) rotate(-7deg) scaleY(0.95); }
  84%  { transform: translateY(12%) rotate(-12deg) scaleY(0.92); }
  100% { transform: translateY(10%) rotate(-11deg) scaleY(0.93); }
}
/* the break itself: a hot white-red crack that pops when the cannon snaps */
.lpg-horse-snap {
  position: absolute;
  left: 58%; top: 62%;
  width: 26%; height: 10%;
  z-index: 4;
  opacity: 0;
  background:
    radial-gradient(closest-side, rgba(255, 244, 226, 0.95), rgba(255, 120, 80, 0.55) 45%, rgba(180, 30, 20, 0) 75%);
  transform: rotate(-18deg) scale(0.4);
  animation: lpgHorseSnapPop 560ms ease-out 1720ms both;
}
@keyframes lpgHorseSnapPop {
  0%   { opacity: 0; transform: rotate(-18deg) scale(0.4); }
  18%  { opacity: 1; transform: rotate(-18deg) scale(1.35); }
  55%  { opacity: 0.85; transform: rotate(-18deg) scale(1.1); }
  100% { opacity: 0; transform: rotate(-18deg) scale(1.15); }
}
/* THE LEG CLOSE-UP: one plate, two clipped halves, and the lower half swings a
   PRACTICALLY 90-DEGREE snap about the break. */
.lpg-horse-leg {
  position: absolute;
  inset: 4% 12% 8% 12%;
  opacity: 0;
  z-index: 3;
  background: radial-gradient(closest-side at 52% 46%, rgba(86, 56, 22, 0.9),
    rgba(24, 16, 8, 0.55) 62%, rgba(0, 0, 0, 0) 82%);
  animation: lpgHorseLegZoom 800ms cubic-bezier(0.16, 1, 0.3, 1) 1700ms both,
    lpgLegCut 1ms steps(1, end) 2500ms forwards;
}
@keyframes lpgLegCut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.lpg-horse-leg-half,
.lpg-horse-leg-img {
  position: absolute;
  inset: 0;
  background-image: var(--lpg-leg-plate);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.lpg-horse-leg-half.is-upper { clip-path: inset(0 0 46% 0); }
.lpg-horse-leg-half,
.lpg-horse-leg-img { filter: brightness(1.45) contrast(1.08) drop-shadow(0 0 9px rgba(255, 206, 140, 0.5)); }
.lpg-horse-leg-clip { position: absolute; inset: 0; clip-path: inset(46% 0 0 0); }
.lpg-horse-leg-img {
  transform-origin: 50% 46%;
  animation: lpgHorseLegSnap 420ms cubic-bezier(0.2, 0.9, 0.3, 1) 1760ms both;
}
/* the practically-90-degree snap: the lower half swings far down and back */
@keyframes lpgHorseLegSnap {
  from { transform: rotate(0deg); }
  to   { transform: rotate(86deg) translateY(6%); }
}
.lpg-horse-leg-break {
  position: absolute;
  left: 34%; right: 30%; top: 44.4%;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 240, 220, 0) 0%, rgba(255, 238, 214, 0.95) 30%,
    rgba(214, 60, 40, 0.9) 62%, rgba(120, 16, 10, 0) 100%);
  filter: drop-shadow(0 0 6px rgba(255, 120, 80, 0.85));
  transform: rotate(-8deg);
  animation: lpgHorseBreakGlow 1200ms ease-in-out 1760ms both;
}
@keyframes lpgHorseBreakGlow {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: 0.75; }
  100% { opacity: 0.35; }
}
@keyframes lpgHorseLegZoom {
  0%   { opacity: 0; transform: scale(0.52); }
  10%  { opacity: 1; }
  55%  { transform: scale(1.05); }
  76%  { transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
/* THE FALL: head and body on the ground (owner 2026-11-11) — the photograph drops in
   with a bounce and holds; the shotgun arrives over it. */
.lpg-horse-fallen {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  background-image: url('images/lpg-horse-fallen.jpg?v=20261116g');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.9) contrast(1.1) saturate(0.82);
  animation: lpgFallenIn 520ms cubic-bezier(0.2, 0.9, 0.3, 1.35) 2450ms both;
}
.lpg-horse-fallen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 44% 52%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 30%);
}
@keyframes lpgFallenIn {
  0%   { opacity: 0; transform: translateY(-46%) scale(0.94); }
  60%  { opacity: 1; transform: translateY(2%) scale(1.01); }
  80%  { transform: translateY(-1%) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* THE SHOT (owner 2026-11-11, re-shot): a MUCH larger shotgun enters SLOWLY, its
   barrels toward the horse's head. The plate was flipped so the muzzle is the left
   end; the stock pins to the top-right corner and the barrels descend at the head. */
.lpg-gun {
  position: absolute;
  right: -22%; top: -10%;
  width: 92%; height: 92%;
  z-index: 7;
  opacity: 0;
  animation: lpgGunShow 1400ms cubic-bezier(0.22, 0.08, 0.3, 1) 2900ms both,
    lpgGunAim 600ms ease-out 4300ms both;
}
.lpg-gun-arm {
  position: absolute;
  inset: 0;
  transform: rotate(-35deg);
  transform-origin: 92% 10%;
}
.lpg-gun-img {
  position: absolute;
  inset: 0;
  background-image: url('images/lpg-shotgun-real.png?v=20261116g');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.92)) brightness(1.14);
}
/* the muzzle flash — ON the muzzle, enormous (owner: "LARGE MUZZLE FLASH") */
.lpg-gun-flash {
  position: absolute;
  left: -26%; top: 8%;
  width: 68%; height: 76%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 244, 0.99) 0%, rgba(255, 240, 170, 0.96) 24%,
      rgba(255, 176, 66, 0.8) 50%, rgba(255, 96, 24, 0) 76%),
    radial-gradient(closest-side, rgba(255, 226, 150, 0.6) 0%, rgba(255, 140, 40, 0) 100%);
  opacity: 0;
  animation: lpgGunFlash 420ms steps(1, end) 4550ms both;
}
.lpg-gun-flash::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 6deg,
    rgba(255, 246, 210, 0) 0deg, rgba(255, 240, 190, 0.95) 7deg, rgba(255, 246, 210, 0) 15deg,
    rgba(255, 246, 210, 0) 40deg, rgba(255, 236, 170, 0.85) 47deg, rgba(255, 246, 210, 0) 56deg,
    rgba(255, 246, 210, 0) 86deg, rgba(255, 240, 190, 0.9) 93deg, rgba(255, 246, 210, 0) 102deg,
    rgba(255, 246, 210, 0) 132deg, rgba(255, 236, 170, 0.8) 139deg, rgba(255, 246, 210, 0) 148deg,
    rgba(255, 246, 210, 0) 178deg, rgba(255, 240, 190, 0.95) 185deg, rgba(255, 246, 210, 0) 194deg,
    rgba(255, 246, 210, 0) 224deg, rgba(255, 236, 170, 0.85) 231deg, rgba(255, 246, 210, 0) 240deg,
    rgba(255, 246, 210, 0) 270deg, rgba(255, 240, 190, 0.9) 277deg, rgba(255, 246, 210, 0) 286deg,
    rgba(255, 246, 210, 0) 316deg, rgba(255, 236, 170, 0.85) 323deg, rgba(255, 246, 210, 0) 332deg,
    rgba(255, 246, 210, 0));
  border-radius: 50%;
  filter: blur(1px);
}
@keyframes lpgGunShow {
  0%   { opacity: 0; transform: translate(24%, -24%); }
  60%  { opacity: 1; transform: translate(2%, -3%); }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes lpgGunAim {
  0%   { transform: translate(0, 0) rotate(0deg); }
  45%  { transform: translate(-1.5%, 1%) rotate(1.4deg); }
  100% { transform: translate(-1%, 0.6%) rotate(1deg); }
}
@keyframes lpgGunFlash {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  18%  { opacity: 0.5; }
  30%  { opacity: 1; }
  62%  { opacity: 0.25; }
  80%, 100% { opacity: 0; }
}
/* THE WHITE-OUT (owner 2026-11-11: "WHITE OUT THE SQUARE FOR A MOMENT") */
.lpg-shot-whiteout {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #fff;
  opacity: 0;
  animation: lpgWhiteout 300ms steps(1, end) 4550ms both;
}
@keyframes lpgWhiteout {
  0% { opacity: 0; }
  12% { opacity: 0.95; }
  100% { opacity: 0; }
}
/* THE TARGET: slides in, finds the bullseye on the fallen head, locks */
.lpg-target {
  position: absolute;
  left: 10%; right: 40%; top: 26%; bottom: 14%;
  z-index: 6;
  opacity: 0;
  border: 2px solid rgba(255, 82, 62, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 64, 40, 0.65), inset 0 0 12px rgba(255, 64, 40, 0.4);
  animation: lpgTargetIn 620ms cubic-bezier(0.2, 0.9, 0.3, 1) 4000ms both,
    lpgTargetHit 320ms steps(1, end) 4550ms forwards;
}
.lpg-target::before,
.lpg-target::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 90, 70, 0), rgba(255, 96, 74, 0.95), rgba(255, 90, 70, 0));
}
.lpg-target::before { left: 50%; top: -12%; bottom: -12%; width: 2px; transform: translateX(-50%); }
.lpg-target::after { top: 50%; left: -8%; right: -8%; height: 2px; transform: translateY(-50%); }
@keyframes lpgTargetIn {
  0% { opacity: 0; transform: translateX(46%) scale(1.6); }
  55% { opacity: 1; transform: translateX(0) scale(1.05); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lpgTargetHit {
  0% { opacity: 1; transform: scale(1); filter: none; }
  12% { opacity: 1; transform: scale(1.18); filter: brightness(2.4) saturate(0.2); }
  40% { opacity: 0; transform: scale(1.3); filter: brightness(3); }
  100% { opacity: 0; }
}
/* the wound flash at the bullseye */
.lpg-head-impact {
  position: absolute;
  left: 18%; top: 24%;
  width: 34%; height: 30%;
  z-index: 8;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 250, 230, 0.98) 0%,
    rgba(255, 90, 50, 0.9) 34%, rgba(140, 10, 5, 0) 72%);
  filter: blur(1px);
  animation: lpgHeadImpact 380ms steps(1, end) 4550ms both;
}
@keyframes lpgHeadImpact {
  0% { opacity: 0; transform: scale(0.5); }
  8% { opacity: 1; transform: scale(1.3); }
  30% { opacity: 0.65; transform: scale(1.05); }
  55% { opacity: 0.9; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.3); }
}
/* after the shot the whole scene clears (the fallen horse included) */
.lpg-horse.is-broken {
  clip-path: inset(0 0 0 0);   /* the lame run never leaves the square */
  animation: lpgBrokenSceneOut 450ms ease-in 4900ms both;
}
@keyframes lpgBrokenSceneOut { from { opacity: 1; } to { opacity: 0; } }
.lpg-hud-streak.has-horse.is-lame .lpg-hud-value { animation-delay: 5050ms; }

/* ============================================================
   THE HOT STREAK'S EXTRAS (owner 2026-11-11): an independent overlay of dust flying
   like motion-picture dust, a burst of flames as the streak fires, and rising smoke
   through the laps.
   ============================================================ */
.lpg-dust-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.lpg-dust-overlay i {
  position: absolute;
  left: -12%;
  top: calc(6% + (var(--i) % 6) * 15%);
  width: calc(2% + (var(--i) % 4) * 0.9%);
  aspect-ratio: 3.2;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(224, 196, 148, 0) 0%,
    rgba(236, 210, 162, 0.95) 55%, rgba(255, 246, 220, 0.98) 100%);
  filter: blur(0.8px);
  opacity: 0;
  animation: lpgFlyDust 900ms linear infinite;
  animation-delay: calc(var(--i) * -47ms);
}
.lpg-dust-overlay i:nth-child(3n) {
  animation-duration: 1450ms;
  filter: blur(2px);
  opacity: 0;
}
@keyframes lpgFlyDust {
  0%   { opacity: 0; transform: translateX(0) translateY(0); }
  12%  { opacity: 0.9; }
  85%  { opacity: 0.55; }
  100% { opacity: 0; transform: translateX(125%) translateY(-9%); }
}
/* the burst of flames under the horse as the hot streak fires */
.lpg-fire-burst {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 74%;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(closest-side at 38% 86%, rgba(255, 214, 110, 0.98) 0%, rgba(255, 130, 30, 0.75) 30%,
      rgba(210, 50, 8, 0.35) 55%, rgba(120, 16, 0, 0) 78%),
    radial-gradient(closest-side at 62% 92%, rgba(255, 190, 80, 0.9) 0%, rgba(255, 100, 20, 0.55) 36%,
      rgba(190, 40, 6, 0) 70%);
  filter: blur(1px);
  animation: lpgFireBurst 760ms cubic-bezier(0.2, 0.9, 0.3, 1) 40ms both;
}
.lpg-fire-burst::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: 6%;
  height: 46%;
  background: conic-gradient(from 8deg,
    rgba(255, 200, 90, 0) 0deg, rgba(255, 220, 120, 0.9) 8deg, rgba(255, 200, 90, 0) 17deg,
    rgba(255, 200, 90, 0) 34deg, rgba(255, 190, 90, 0.85) 42deg, rgba(255, 200, 90, 0) 51deg,
    rgba(255, 200, 90, 0) 68deg, rgba(255, 210, 110, 0.9) 76deg, rgba(255, 200, 90, 0) 85deg,
    rgba(255, 200, 90, 0));
  filter: blur(2px);
  transform-origin: 50% 100%;
}
@keyframes lpgFireBurst {
  0%   { opacity: 0; transform: scaleY(0.3); }
  16%  { opacity: 1; transform: scaleY(1.12); }
  38%  { opacity: 0.85; transform: scaleY(1); }
  70%  { opacity: 0.35; transform: scaleY(0.9); }
  100% { opacity: 0; transform: scaleY(0.8); }
}
/* the smoke rising through the laps */
.lpg-smoke {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.lpg-smoke i {
  position: absolute;
  left: calc(24% + var(--i) * 12%);
  bottom: 10%;
  width: calc(9% + (var(--i) % 3) * 2%);
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 190, 180, 0.5) 0%,
    rgba(150, 146, 138, 0.24) 46%, rgba(120, 118, 112, 0) 74%);
  filter: blur(7px);
  opacity: 0;
  animation: lpgSmokeRise 2100ms ease-out infinite;
  animation-delay: calc(var(--i) * -380ms);
}
@keyframes lpgSmokeRise {
  0%   { opacity: 0; transform: translateY(26%) translateX(0) scale(0.6); }
  22%  { opacity: 0.55; }
  70%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-96%) translateX(16%) scale(1.7); }
}

/* a quiet re-render must not replay the race, the dust or the zoom */
.lpg-stage.is-quiet .lpg-horse,
.lpg-stage.is-quiet .lpg-horse-run,
.lpg-stage.is-quiet .lpg-horse-body,
.lpg-stage.is-quiet .lpg-horse-smear,
.lpg-stage.is-quiet .lpg-dust,
.lpg-stage.is-quiet .lpg-dust-haze,
.lpg-stage.is-quiet .lpg-dust i,
.lpg-stage.is-quiet .lpg-track,
.lpg-stage.is-quiet .lpg-track span,
.lpg-stage.is-quiet .lpg-gun,
.lpg-stage.is-quiet .lpg-gun-arm,
.lpg-stage.is-quiet .lpg-gun-flash,
.lpg-stage.is-quiet .lpg-horse-leg,
.lpg-stage.is-quiet .lpg-horse-leg-img,
.lpg-stage.is-quiet .lpg-horse-leg-break,
.lpg-stage.is-quiet .lpg-horse-snap,
.lpg-stage.is-quiet .lpg-horse-flash,
.lpg-stage.is-quiet .lpg-horse-fallen,
.lpg-stage.is-quiet .lpg-shot-whiteout,
.lpg-stage.is-quiet .lpg-dust-overlay,
.lpg-stage.is-quiet .lpg-dust-overlay i,
.lpg-stage.is-quiet .lpg-hud-dust,
.lpg-stage.is-quiet .lpg-hud-dust *,
.lpg-stage.is-quiet .lpg-fire-burst,
.lpg-stage.is-quiet .lpg-smoke,
.lpg-stage.is-quiet .lpg-smoke i { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .lpg-horse { display: none; }
  .lpg-hud-dust { display: none; }
}
