:root {
  --bg: #1A1A1A;
  --surface: #211E1F;
  --surface-raised: #2A2527;
  --surface-line: #3A3436;
  --text-primary: #F0F0F0;
  --text-muted: #B8ADA6;
  --cta: #3E5641;
  --cta-bright: #557A5A;
  --gold: #C9A227;
  --accent-teal: #004D61;
  --accent-teal-bright: #0B7A96;
  --accent-amber: #B8802E;
  --accent-amber-bright: #E0A94B;
  --accent-ruby: #822659;
  --accent-ruby-bright: #B84080;
  --suit-spade: #4A4356;
  --suit-heart: #9E2A3D;
  --suit-club: #1C6E4A;
  --suit-diamond: #2C5F96;
  --ivory: #EDE4D4;
  --ivory-deep: #C9B89A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(ellipse at 50% 20%, #2A1F18 0%, var(--bg) 55%);
  color: var(--text-primary);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.topbar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px min(5vw, 28px) 8px;
  background: transparent;
  border-bottom: none;
}

#game-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  color: var(--gold);
}

.game-version {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.round {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  grid-template-rows: auto 1fr;
  gap: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px min(5vw, 28px) 32px;
  min-height: calc(100vh - 72px);
  position: relative;
}

.round-chrome {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.round-badge {
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-teal);
  color: #E8F6FA;
  border: 1px solid var(--accent-teal-bright);
}

.round-badge[data-tone="teal"] {
  background: var(--accent-teal);
  border-color: var(--accent-teal-bright);
  color: #E8F6FA;
}

.round-badge[data-tone="amber"] {
  background: var(--accent-amber);
  border-color: var(--accent-amber-bright);
  color: #FFF6E8;
}

.round-badge[data-tone="ruby"] {
  background: var(--accent-ruby);
  border-color: var(--accent-ruby-bright);
  color: #FDE8F2;
}

.tokens {
  margin-left: auto;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  color: var(--gold);
}

.charms {
  display: flex;
  gap: 10px;
}

.round-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.round-ticket {
  font: inherit;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  background: var(--surface-raised);
  border: 1px dashed var(--surface-line);
  border-radius: 8px;
  padding: 6px 10px;
}

.round-ticket[data-aiming] {
  border-color: var(--gold);
  color: var(--gold);
}

.round-ticket:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.charm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface-line);
  box-shadow: inset 0 0 0 2px #3A3436, 0 0 0 1px #1A1A1A;
  background: radial-gradient(circle at 40% 35%, #2A2527, #151314);
}

.charm[data-held] {
  background: radial-gradient(circle at 40% 35%, #E8D56B, #C9A227);
  border-color: var(--gold);
}

.round-board {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  padding: 20px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 220px;
  margin-top: auto;
}

.slot {
  min-height: 160px;
  border-radius: 10px;
  border: 1.5px dashed var(--surface-line);
  background: #1C191A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 8px;
  position: relative;
}

.slot[data-kind="open"] .slot-label {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding-bottom: 24px;
}

.slot[data-kind="pile"] {
  border-style: solid;
  background: var(--surface-raised);
}

.slot[data-kind="broken"] {
  border-style: solid;
  border-color: var(--accent-ruby);
  background:
    repeating-linear-gradient(135deg, #3A1A28 0 8px, #2A121C 8px 16px);
}

.slot[data-kind="broken"] .slot-label {
  font-family: Fraunces, Georgia, serif;
  color: #E8B8C8;
  letter-spacing: 0.02em;
}

.slot-count {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 14px;
  background: var(--gold);
  color: #1A1A1A;
  border-radius: 999px;
  padding: 2px 8px;
}

.pile-card, .chooser-card {
  width: 72px;
  height: 96px;
  border-radius: 10px;
  background: linear-gradient(160deg, #2C2729, #1C1819);
  color: var(--suit);
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  border: 1px solid var(--suit);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.card-rank { font-size: 20px; line-height: 1; }
.card-glyph { font-size: 16px; align-self: flex-end; }

.pile-card { margin-bottom: -48px; }
.pile-card:last-of-type { margin-bottom: 0; }

.chooser-card[data-suit="Hearts"], .pile-card[data-suit="Hearts"] { --suit: var(--suit-heart); }
.chooser-card[data-suit="Spades"], .pile-card[data-suit="Spades"] { --suit: var(--suit-spade); }
.chooser-card[data-suit="Clubs"], .pile-card[data-suit="Clubs"] { --suit: var(--suit-club); }
.chooser-card[data-suit="Diamonds"], .pile-card[data-suit="Diamonds"] { --suit: var(--suit-diamond); }

.chooser {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 110px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--surface-line);
  margin-top: 18px;
}

.chooser-card { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.chooser-card.is-preview { opacity: 0.68; border-style: dashed; cursor: default; animation: preview-pulse 2.4s ease-in-out infinite; }
.chooser-card.is-empty { color: var(--text-muted); border-color: var(--surface-line); }
.chooser-card.is-settling { animation: settle-pulse 0.45s ease; }
.preview-tag { font-family: Manrope, sans-serif; font-size: 9px; font-weight: 600; color: var(--text-muted); }
.chooser-card.is-lifting, .die.is-lifting { opacity: 0.35; }
.is-lifted { cursor: grabbing; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45); }

@keyframes preview-pulse { 50% { opacity: 0.42; } }
@keyframes settle-pulse {
  40% { transform: scale(1.08); box-shadow: 0 0 18px var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  .chooser-card.is-preview, .chooser-card.is-settling { animation: none; }
}

.dice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-raised);
  border-radius: 12px;
  padding: 14px 16px;
}

.wells {
  display: flex;
  gap: 18px;
}

.well {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--surface-line);
  background: #1C191A;
  min-width: 128px;
  min-height: 72px;
}

.die {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  background:
    linear-gradient(145deg, #F7F1E4 0%, var(--ivory) 42%, var(--ivory-deep) 100%);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(90, 70, 40, 0.25);
  cursor: grab;
  touch-action: none;
  display: grid;
  place-items: center;
  position: relative;
}

.die.is-target {
  cursor: pointer;
  outline: 2px solid var(--gold);
}

.bump-dir {
  position: absolute;
  top: -8px;
  width: 22px;
  height: 22px;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-primary);
  background: var(--surface-raised);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 0;
}

.bump-dir:first-of-type { left: -6px; }
.bump-dir:last-of-type { right: -6px; }

.pips {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}

.pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pip, #333);
  justify-self: center;
  align-self: center;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}

.pip-off { visibility: hidden; }

.die.is-tumble {
  animation-name: tumble;
  animation-timing-function: cubic-bezier(0.22, 1.2, 0.36, 1);
}

.die.is-crossfade {
  animation-name: crossfade;
  animation-timing-function: ease;
}

@keyframes tumble {
  0% { transform: rotate3d(1, 1, 0, -220deg) scale(0.86); }
  55% { transform: rotate3d(0.4, 1, 0.2, 28deg) scale(1.04); }
  100% { transform: rotate3d(0, 0, 0, 0deg) scale(1); }
}

@keyframes crossfade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .die.is-tumble {
    animation-name: crossfade;
    animation-duration: 200ms;
    animation-delay: 0ms;
  }
}

.verbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.verb {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid var(--surface-line);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.verb-cta {
  background: var(--cta);
  border-color: var(--cta-bright);
}

.verb-cta:hover { background: var(--cta-bright); }

.verb:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  padding: 18px 16px;
}

.req-label, .pile-raw-row, .payout {
  color: var(--text-muted);
  font-size: 13px;
}

.req-n {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  margin-left: 8px;
}

.req {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.req-bar {
  flex: 1 1 100%;
  height: 10px;
  border-radius: 999px;
  background: #151314;
  position: relative;
}

.req-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-teal-bright));
  transition: width 0.45s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.req-bar[data-tone="amber"] .req-fill {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-amber-bright));
}

.req-bar[data-tone="ruby"] .req-fill {
  background: linear-gradient(90deg, var(--accent-ruby), var(--accent-ruby-bright));
}

.req-tick {
  position: absolute;
  right: 0;
  top: -3px;
  width: 2px;
  height: 16px;
  background: var(--gold);
}

.pile-raw {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payout {
  margin-top: auto;
}

.detriment {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--accent-ruby);
  font-size: 13px;
}

.rail .verb-cta {
  width: 100%;
}

@media (max-width: 760px) {
  .round {
    grid-template-columns: 1fr;
  }
  .rail { order: 3; }
}

body[data-screen="title"] .topbar {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  padding: 16px min(5vw, 28px) 0;
}

body[data-screen="title"] #game-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body[data-screen="title"] #round {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  padding: 0 min(5vw, 28px) 48px;
}

.title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  width: min(520px, 100%);
  opacity: 0;
}

.title.fonts-ready {
  opacity: 1;
  transition: opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .title.fonts-ready { transition: none; }
}

.title-drift {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.title-mote {
  position: absolute;
  opacity: 0.16;
  animation-name: drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.title-mote-die {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background:
    linear-gradient(145deg, #F7F1E4 0%, var(--ivory) 42%, var(--ivory-deep) 100%);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35);
}

.title-mote-card {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  background: #F3EEE6;
  border-top: 6px solid var(--suit-heart);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.title-mote:nth-child(1) { left: 8%; top: 18%; animation-duration: 11s; }
.title-mote:nth-child(2) { left: 78%; top: 14%; animation-duration: 15s; border-top-color: var(--suit-spade); }
.title-mote:nth-child(3) { left: 18%; top: 72%; animation-duration: 13s; }
.title-mote:nth-child(4) { left: 84%; top: 68%; animation-duration: 18s; border-top-color: var(--suit-club); }
.title-mote:nth-child(5) { left: 48%; top: 8%; animation-duration: 16s; }
.title-mote:nth-child(6) { left: 42%; top: 82%; animation-duration: 12s; border-top-color: var(--suit-diamond); }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  100% { transform: translate3d(18px, -36px, 0) rotate(16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .title-mote { animation: none; }
}

.title-name {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(180deg, #F7F1E4 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-tagline {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: clamp(15px, 2.4vw, 18px);
}

.title-verbs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(240px, 100%);
}

.title-verbs .verb {
  font-size: 16px;
  padding: 10px 22px;
}

.title-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(420px, 100%);
  margin-top: 12px;
}

.title-stat-label {
  color: var(--text-muted);
  font-size: 13px;
}

.title-stat-value {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  margin-top: 4px;
}

body[data-screen="over"] #round {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  padding: 0 min(5vw, 28px) 48px;
}

.over {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  width: min(520px, 100%);
}

.over-heading {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(48px, 9vw, 80px);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-ruby-bright);
}

.over-score-label {
  color: var(--text-muted);
  font-size: 13px;
}

.over-score-n {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 600;
  line-height: 1;
  margin-top: 8px;
  color: var(--ivory);
}

.over .verb {
  font-size: 16px;
  padding: 10px 22px;
  min-width: 160px;
}

.shop {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px min(5vw, 28px) 32px;
}

.shop-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-heading {
  margin: 0 0 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  grid-column: 1 / -1;
}

.shop-offers, .shop-tickets, .shop-charms, .shop-kit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  padding: 18px;
}

.shop-tickets, .shop-charms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-kit {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.shop-dice, .shop-sockets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.shop-dice .shop-heading, .shop-sockets .shop-heading {
  margin: 0;
  width: 100%;
}

.shop-dice .die {
  width: 36px;
  height: 36px;
  cursor: default;
  position: relative;
}

.shop-dice .die[data-tip]:hover::after,
.shop-dice .die[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--surface-line);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.35;
  z-index: 4;
  pointer-events: none;
}

.shop-sockets .charm {
  padding: 0;
  cursor: pointer;
}

.shop-sockets .charm:disabled {
  cursor: default;
}

.shop-reroll {
  font: inherit;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  padding: 6px 14px;
}

.shop-offer:disabled, .shop-ticket:disabled, .shop-charm:disabled, .shop-reroll:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shop-offer, .shop-ticket, .shop-charm, .shop-sell {
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-height: 120px;
  border-radius: 10px;
  background: var(--surface-raised);
  border: 2px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  padding: 16px;
  text-align: left;
}

.shop-charm {
  align-items: center;
  text-align: center;
}

.shop-charm .charm {
  width: 36px;
  height: 36px;
}

.shop-charm .charm[data-gem] {
  background: radial-gradient(circle at 40% 35%, #E8D56B, #C9A227);
  border-color: var(--gold);
}

.shop-ticket {
  border-style: dashed;
}

.shop-offer[data-tier="1"] { border-color: #D9D9D9; }
.shop-offer[data-tier="2"] { border-color: #3FA66B; }
.shop-offer[data-tier="3"] { border-color: #3E7FC4; }
.shop-offer[data-tier="4"] { border-color: #C1662F; }
.shop-offer[data-tier="5"] { border-color: var(--gold); }

.offer-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.offer-blurb {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

.offer-tier, .offer-once {
  font-size: 12px;
  color: var(--text-muted);
}

.offer-cost {
  color: var(--gold);
}

.shop-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  padding: 18px;
}

.shop-target, .shop-cancel {
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: var(--surface-raised);
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.shop-cancel {
  grid-column: 1 / -1;
}

.shop-leave {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.leave-card {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--surface-raised);
  border: 2px solid var(--surface-line);
  border-radius: 12px;
  padding: 16px;
}

.leave-card[data-tone="teal"] { border-color: var(--accent-teal-bright); }
.leave-card[data-tone="amber"] { border-color: var(--accent-amber-bright); }
.leave-card[data-tone="ruby"] { border-color: var(--accent-ruby-bright); }

.leave-card:hover {
  filter: brightness(1.08);
}

.leave-kind {
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
}

.leave-stakes {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .shop-offers, .shop-tickets, .shop-charms, .shop-pick, .shop-leave, .shop-kit {
    grid-template-columns: 1fr;
  }
}

.slot[data-scoring] {
  animation: call-slot-glow 0.5s ease both;
  animation-delay: var(--call-delay, 0ms);
}

.slot[data-scoring] .pile-card {
  animation: call-flash 0.42s ease both;
  animation-delay: var(--call-delay, 0ms);
}

.pile-chips {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: max-content;
  max-width: min(160px, 92%);
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  pointer-events: none;
  animation: call-in 0.35s ease both;
  animation-delay: var(--call-delay, 0ms);
}

.call-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--gold);
}

.call-times {
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  color: var(--text-primary);
}

.call-sub {
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  color: var(--gold);
  animation: call-pulse 0.5s ease both;
  animation-delay: var(--call-delay, 0ms);
}

.call-score {
  font-size: 15px;
  color: var(--text-primary);
}

.score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.call-flourish {
  animation: call-in 0.35s ease both;
}

.call-flourish[data-instant] {
  animation: none;
}

.call-score-live {
  position: relative;
  display: inline-grid;
  min-height: 1.3em;
}

.score-step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  animation: score-step-through 500ms ease both;
}

.score-step.is-final {
  animation-name: score-step-in;
  font-weight: 600;
}

.score-step[data-instant] {
  animation: none;
  opacity: 1;
  transform: none;
}

.call-banner {
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  color: var(--cta-bright);
  animation: call-in 0.4s ease both;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.call-banner[data-instant] {
  animation: none;
}

.call-payout {
  color: var(--gold);
  font-weight: 600;
  animation: call-in 0.35s ease both;
}

.call-payout[data-instant] {
  animation: none;
}

.call-shards {
  position: relative;
  width: 90px;
  height: 22px;
}

.call-shard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 11px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: call-burst 0.7s ease-out both;
}

.call-shard[data-suit="Hearts"] { background: var(--suit-heart); }
.call-shard[data-suit="Spades"] { background: var(--suit-spade); }
.call-shard[data-suit="Clubs"] { background: var(--suit-club); }
.call-shard[data-suit="Diamonds"] { background: var(--suit-diamond); }
.call-shard:nth-child(1) { --dx: -32px; --rot: -28deg; }
.call-shard:nth-child(2) { --dx: -14px; --rot: -8deg; }
.call-shard:nth-child(3) { --dx: 6px; --rot: 10deg; }
.call-shard:nth-child(4) { --dx: 27px; --rot: 26deg; }
.call-shard:nth-child(5) { --dx: -6px; --rot: 4deg; }
.call-shard:nth-child(6) { --dx: 16px; --rot: -16deg; }

@keyframes call-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes call-flash {
  0% { filter: brightness(1); box-shadow: none; transform: none; }
  45% {
    filter: brightness(var(--flash-peak, 1.4));
    box-shadow: 0 0 var(--flash-glow, 14px) var(--gold);
    transform: scale(var(--flash-scale, 1.05));
  }
  100% { filter: brightness(1); box-shadow: none; transform: none; }
}

@keyframes call-slot-glow {
  0% { box-shadow: none; }
  50% { box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(201, 162, 39, 0.4); }
  100% { box-shadow: none; }
}

@keyframes call-pulse {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

@keyframes score-step-in {
  0% { opacity: 0; transform: translateY(6px); }
  40% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}

@keyframes score-step-through {
  0% { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; transform: none; }
  85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

@keyframes call-burst {
  from { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% - 18px)) rotate(var(--rot)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .req-fill { transition: none; }
  .slot[data-scoring], .slot[data-scoring] .pile-card, .pile-chips, .call-sub, .call-banner, .call-payout, .score-step, .call-flourish {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
