/* Shared cast screens — setup, match card, THROW transition — from the
 * "DartsHub Screencast System Design" handoff (Cast Screen - Waiting). */

.backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 780px at 50% 42%, rgba(1, 76, 253, .22) 0%, rgba(0, 9, 31, 0) 72%);
}

.brand {
  position: absolute;
  top: 48px;
  left: 64px;
  right: 64px;
  z-index: 3;
  display: flex;
  align-items: center;
}
.brand__lockup { display: flex; align-items: center; gap: 24px; }
.brand__word { font-size: 48px; line-height: 1; color: var(--dh-white); }

/* ── State 1 · Setup ──────────────────────────────────────────────────────── */
.setup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 200px;
}
.setup__quote {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: opacity 320ms var(--dh-ease-out), transform 320ms var(--dh-ease-out);
}
.setup__quote--out { opacity: 0; transform: translateY(24px); }
.setup__rule { width: 120px; height: 3px; margin-bottom: 56px; background: var(--dh-brand-blue); }
.setup__text { margin: 0; max-width: 1400px; font-size: 88px; line-height: 1.12; color: #fff; text-align: left; text-wrap: balance; }
.setup__author { margin: 56px 0 0 auto; font-size: 26px; line-height: 1; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); text-align: right; }
.setup__footer { position: absolute; left: 200px; right: 200px; bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.setup__status { display: flex; align-items: center; gap: 20px; }
.setup__dot { width: 16px; height: 16px; border-radius: 9999px; background: var(--dh-bright-blue); animation: dh-pulse 1.2s var(--dh-ease-out) infinite; }
.setup__label { font-size: 38px; line-height: 1; letter-spacing: .14em; color: #fff; animation: dh-breathe 2.2s ease-in-out infinite; }
.setup__track { position: relative; height: 6px; border-radius: 9999px; background: rgba(209, 213, 216, .10); overflow: hidden; }
.setup__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(1, 76, 253, 0) 0%, #429bfc 50%, rgba(1, 76, 253, 0) 100%);
  animation: dh-sweep 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* ── State 2 · Match card ─────────────────────────────────────────────────── */
.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 180px 120px 96px;
}
.card__head { display: flex; flex-direction: column; align-items: center; gap: 20px; animation: dh-rise 420ms var(--dh-ease-out) both; }
.card__eyebrow { font-size: 26px; line-height: 1; letter-spacing: .3em; color: var(--dh-bright-blue); }
.card__mode { font-size: 180px; line-height: .9; color: #fff; }
/* A game that goes by its name rather than a number: one line, never two. */
.card__mode--name { font-size: 124px; white-space: nowrap; }
.card__format { display: flex; align-items: center; gap: 28px; font-size: 30px; line-height: 1; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); }
.card__sep { color: var(--dh-stroke-24); }
.card__leg { margin-top: 8px; padding: 14px 28px; border-radius: 9999px; background: var(--dh-action-blue); color: #fff; font-size: 26px; line-height: 1; letter-spacing: .14em; }
.card__roster { display: flex; align-items: flex-start; justify-content: center; gap: 64px; margin-top: 80px; }
.card__player { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 240px; animation: dh-pop 520ms var(--dh-ease-out) both; }
.card__avatar { width: 200px; height: 200px; border-radius: 9999px; background-size: cover; background-position: center; box-shadow: 0 0 60px rgba(1, 76, 253, .35); }
.card__name { font-size: 32px; line-height: 1.05; color: #fff; max-width: 100%; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.card__sub { font-size: 22px; line-height: 1; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); }
.card__footer { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; width: 720px; }
.card__cta { font-size: 30px; line-height: 1; letter-spacing: .2em; color: #fff; animation: dh-breathe 2s ease-in-out infinite; }
.card__track { width: 100%; height: 6px; border-radius: 9999px; background: rgba(209, 213, 216, .10); overflow: hidden; }
.card__fill { height: 100%; border-radius: 9999px; background: var(--dh-brand-blue); transform-origin: left; animation: dh-bar 4200ms cubic-bezier(0.45, 0, 0.55, 1) forwards; }

/* ── State 3 · THROW transition ───────────────────────────────────────────── */
.throw { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.throw__flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: dh-flash 900ms var(--dh-ease-out) forwards; }
.throw__curtain {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 76, 253, .92);
  opacity: 0;
  animation: dh-flash 1100ms var(--dh-ease-out) forwards;
}
.throw__slam { display: flex; flex-direction: column; align-items: center; gap: 26px; animation: dh-slam 1100ms var(--dh-ease-out) forwards; }
.throw__word { font-size: 210px; line-height: 1; color: #fff; }
/* The leg pill rises in under the word, as it does on the phone. */
.throw__pill {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .16);
  font-size: 30px;
  letter-spacing: .14em;
  color: #fff;
  animation: dh-pill 1100ms var(--dh-ease-out) forwards;
}
.throw__pill i { width: 8px; height: 8px; border-radius: 9999px; background: #fff; opacity: .8; }
@keyframes dh-pill {
  0% { opacity: 0; transform: translateY(18px); }
  24%, 72% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
