.closest-wins-scene {
  position: absolute;
  left: 54px;
  top: 280px;
  width: 972px;
  height: 778px;
}

.cw-question-view,
.cw-reveal-view {
  position: absolute;
  inset: 0;
  transition: opacity 340ms ease, transform 480ms var(--ease-enter);
}

.cw-reveal-view {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.closest-wins-scene.is-reveal .cw-question-view {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
}

.closest-wins-scene.is-reveal .cw-reveal-view {
  opacity: 1;
  transform: translateY(0);
}

.cw-meta-row {
  position: absolute;
  left: 0;
  top: 0;
  width: 972px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 24px;
  border: 1px solid rgba(39, 230, 255, .28);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(39, 230, 255, .09), rgba(101, 92, 255, .09));
  overflow: hidden;
}

.cw-meta-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.cw-meta-copy strong {
  color: var(--color-cyan);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: .085em;
}

.cw-meta-copy span {
  color: var(--color-muted);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: .065em;
}

.cw-phase-chip {
  min-width: 176px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(56, 236, 146, .38);
  border-radius: 999px;
  color: var(--color-green);
  background: rgba(56, 236, 146, .08);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .06em;
  white-space: nowrap;
}

.cw-phase-chip.warning {
  color: var(--color-yellow);
  border-color: rgba(255, 228, 95, .48);
  background: rgba(255, 228, 95, .08);
}

.cw-phase-chip.final,
.cw-phase-chip.locking {
  color: var(--color-orange);
  border-color: rgba(255, 155, 66, .54);
  background: rgba(255, 155, 66, .09);
}

.cw-question-panel {
  position: absolute;
  left: 0;
  top: 66px;
  width: 972px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 42px 22px;
  border: 2px solid rgba(39, 230, 255, .52);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(58, 124, 255, .23), transparent 55%),
    linear-gradient(155deg, rgba(14, 31, 68, .98), rgba(4, 10, 27, .98));
  box-shadow: var(--shadow-cyan), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}

.cw-question-panel::before {
  content: "";
  position: absolute;
  left: 88px;
  right: 88px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), #9a72ff, transparent);
}

.cw-question-kicker {
  position: absolute;
  left: 30px;
  top: 16px;
  color: var(--color-muted);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .11em;
}

.cw-question-text {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 68px;
  font-weight: 950;
  line-height: .99;
  letter-spacing: -.035em;
  text-align: center;
  text-wrap: balance;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.cw-unit-panel {
  position: absolute;
  left: 0;
  top: 380px;
  width: 972px;
  height: 108px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  padding: 14px 28px;
  border: 2px solid rgba(154, 114, 255, .32);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(154, 114, 255, .13), rgba(8, 17, 39, .96));
  overflow: hidden;
}

.cw-unit-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(154, 114, 255, .48);
  border-radius: 22px;
  color: #d8c8ff;
  background: rgba(154, 114, 255, .12);
  font-size: 42px;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(154,114,255,.14);
}

.cw-unit-copy {
  min-width: 0;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cw-unit-copy strong {
  height: 42px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: .015em;
  overflow: hidden;
}

.cw-unit-copy span {
  height: 34px;
  display: flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: .025em;
  overflow: hidden;
}

.cw-activity-panel {
  position: absolute;
  left: 0;
  top: 504px;
  width: 972px;
  height: 274px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: center;
  padding: 28px 36px 48px;
  border: 2px solid rgba(57, 238, 145, .31);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 50%, rgba(57, 238, 145, .13), transparent 28%),
    linear-gradient(150deg, rgba(10, 27, 51, .98), rgba(3, 9, 22, .99));
  overflow: hidden;
}

.cw-activity-orbit {
  position: relative;
  width: 220px;
  height: 176px;
  justify-self: center;
}

.cw-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 2px solid rgba(57, 238, 145, .28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cw-ring-one { width: 172px; height: 172px; }
.cw-ring-two { width: 112px; height: 112px; border-color: rgba(39,230,255,.32); }

.cw-number-stream {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 144px;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0 18px rgba(57,238,145,.28);
  word-spacing: 10px;
}

.cw-activity-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.cw-guess-count {
  color: var(--color-white);
  font-size: 96px;
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.05em;
}

.cw-guess-label {
  margin-top: 16px;
  color: var(--color-green);
  font-size: 27px;
  font-weight: 950;
  letter-spacing: .075em;
}

.cw-participation-copy {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 24px;
  font-weight: 800;
}

.cw-privacy-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(123, 205, 255, .16);
  color: var(--color-muted);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .08em;
}

.cw-reveal-headline {
  position: absolute;
  left: 0;
  top: 0;
  width: 972px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 1px solid rgba(255, 212, 91, .34);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255,212,91,.10), rgba(39,230,255,.07));
}

.cw-reveal-headline > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.cw-reveal-headline span {
  color: var(--color-muted);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: .09em;
}

.cw-reveal-headline strong {
  color: var(--color-gold);
  font-size: 27px;
  font-weight: 950;
  letter-spacing: .05em;
}

.cw-exact-chip {
  min-width: 190px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 212, 91, .62);
  border-radius: 999px;
  color: var(--color-gold);
  background: rgba(255, 212, 91, .12);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .06em;
  box-shadow: 0 0 22px rgba(255,212,91,.16);
}

.cw-exact-chip:not([hidden]) { display: flex; }

.cw-target-panel {
  position: absolute;
  left: 0;
  top: 86px;
  width: 972px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 212, 91, .48);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,212,91,.16), transparent 34%),
    linear-gradient(150deg, rgba(34, 30, 26, .98), rgba(5, 10, 24, .99));
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}

.cw-target-label {
  color: var(--color-muted);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .13em;
}

.cw-target-value {
  width: 820px;
  min-height: 102px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 92px;
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.055em;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-shadow: 0 0 28px rgba(255,212,91,.18);
}

.cw-target-value.is-rolling {
  filter: blur(5px);
  transform: scaleY(1.08);
}

.cw-target-value.is-locked {
  color: #fff8d8;
}

.cw-target-unit {
  margin-top: 8px;
  color: var(--color-gold);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.cw-target-reticle,
.cw-target-reticle::before,
.cw-target-reticle::after {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255,212,91,.21);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cw-target-reticle {
  width: 430px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
}

.cw-target-reticle::before,
.cw-target-reticle::after { content: ""; }
.cw-target-reticle::before { width: 360px; height: 132px; }
.cw-target-reticle::after { width: 290px; height: 88px; }
.cw-target-reticle i { display: none; }

.cw-placement-stack {
  position: absolute;
  left: 0;
  top: 362px;
  width: 972px;
  height: 416px;
}

.cw-placement-row {
  position: absolute;
  left: 0;
  width: 972px;
  display: grid;
  grid-template-columns: 90px 76px minmax(0, 1fr) 250px;
  align-items: center;
  padding: 12px 24px 12px 18px;
  border: 2px solid rgba(122, 179, 236, .28);
  border-radius: 23px;
  background: linear-gradient(120deg, rgba(37,75,126,.30), rgba(4,10,25,.98));
  opacity: 0;
  transform: translateX(34px) scale(.985);
  transition: opacity 360ms ease, transform 560ms var(--ease-enter), border-color 280ms ease, box-shadow 280ms ease;
  overflow: hidden;
}

.cw-placement-row.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.place-third { top: 0; height: 118px; border-color: rgba(213,145,83,.38); }
.place-second { top: 130px; height: 118px; border-color: rgba(220,232,247,.42); }
.place-first {
  top: 260px;
  height: 156px;
  grid-template-columns: 96px 92px minmax(0, 1fr) 280px;
  border-color: rgba(255,212,91,.65);
  background:
    radial-gradient(circle at 80% 35%, rgba(255,212,91,.16), transparent 28%),
    linear-gradient(120deg, rgba(87,67,24,.48), rgba(5,10,25,.99));
  box-shadow: var(--shadow-gold);
}

.cw-place-rank {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--color-white);
  font-weight: 950;
}

.cw-place-rank span { font-size: 54px; line-height: .82; }
.cw-place-rank small { margin: 2px 0 0 3px; color: var(--color-muted); font-size: 18px; }
.place-first .cw-place-rank span { color: var(--color-gold); font-size: 64px; }

.cw-place-avatar {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(39,230,255,.38);
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(39,230,255,.10);
  font-size: 23px;
  font-weight: 950;
}

.place-first .cw-place-avatar {
  width: 76px;
  height: 76px;
  border-color: rgba(255,212,91,.64);
  background: rgba(255,212,91,.12);
  font-size: 27px;
}

.cw-place-player {
  min-width: 0;
  height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 14px;
}

.cw-place-player strong {
  height: 46px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.place-first .cw-place-player strong { height: 58px; font-size: 35px; color: #fff8d8; }

.cw-place-player span {
  color: var(--color-muted);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .035em;
}

.cw-place-distance {
  min-width: 0;
  color: var(--color-white);
  font-size: 25px;
  font-weight: 950;
  line-height: 1.04;
  text-align: right;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.place-first .cw-place-distance { color: var(--color-gold); font-size: 29px; }
.cw-placement-row.is-exact .cw-place-distance { color: var(--color-green); }
.cw-placement-row.is-tied .cw-place-distance { color: #d8c8ff; }

.cw-winner-crown {
  position: absolute;
  right: 22px;
  top: 12px;
  color: rgba(255,212,91,.24);
  font-size: 34px;
}

.cw-no-valid {
  position: absolute;
  left: 0;
  top: 362px;
  width: 972px;
  height: 416px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(157,169,200,.30);
  border-radius: 28px;
  color: var(--color-muted);
  background: rgba(7,13,30,.88);
  font-size: 48px;
  font-weight: 950;
  letter-spacing: .08em;
}

.cw-lock-sweep {
  position: absolute;
  left: -180px;
  top: 504px;
  width: 180px;
  height: 274px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(39,230,255,.48), rgba(255,255,255,.48), transparent);
  filter: blur(5px);
  pointer-events: none;
}

.closest-wins-scene.phase-warning .cw-activity-panel {
  border-color: rgba(255,228,95,.50);
  box-shadow: 0 0 24px rgba(255,228,95,.08);
}

.closest-wins-scene.phase-final .cw-activity-panel {
  border-color: rgba(255,155,66,.62);
  box-shadow: 0 0 28px rgba(255,155,66,.10);
}

.closest-wins-scene.phase-locking .cw-lock-sweep {
  opacity: 1;
  animation: cw-lock-sweep 760ms var(--ease-enter) both;
}

.closest-wins-scene.phase-locking .cw-activity-panel,
.closest-wins-scene.phase-locked .cw-activity-panel {
  transform: scale(.985);
  border-color: rgba(39,230,255,.56);
}

.closest-wins-scene.phase-target-roll .cw-target-reticle,
.closest-wins-scene.phase-target-locked .cw-target-reticle,
.closest-wins-scene.phase-third .cw-target-reticle,
.closest-wins-scene.phase-second .cw-target-reticle,
.closest-wins-scene.phase-first .cw-target-reticle,
.closest-wins-scene.phase-exact .cw-target-reticle,
.closest-wins-scene.phase-score .cw-target-reticle,
.closest-wins-scene.phase-complete .cw-target-reticle {
  box-shadow: 0 0 38px rgba(255,212,91,.10);
}

.closest-wins-scene.has-exact .cw-target-panel {
  border-color: rgba(56,236,146,.62);
  box-shadow: 0 0 26px rgba(56,236,146,.16), var(--shadow-gold);
}

@keyframes cw-lock-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(1330px); }
}

@media (prefers-reduced-motion: reduce) {
  .cw-question-view,
  .cw-reveal-view,
  .cw-placement-row,
  .cw-target-value,
  .cw-lock-sweep {
    transition: none !important;
    animation: none !important;
  }
}

.reduced-motion .cw-question-view,
.reduced-motion .cw-reveal-view,
.reduced-motion .cw-placement-row,
.reduced-motion .cw-target-value,
.reduced-motion .cw-lock-sweep {
  transition: none !important;
  animation: none !important;
}

.no-flash .cw-target-panel,
.no-flash .cw-placement-row,
.no-flash .cw-activity-panel {
  box-shadow: none !important;
}
