/* =========================================================
   STELLAR DRAW · stage
   ========================================================= */

.page {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  width: 100%;
  min-height: 86px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(22px, 4vw, 64px);
  animation: fadeIn 1s ease 0.1s both;
}

.topbar::after {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: 0;
  left: clamp(22px, 4vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-soft) 12%, var(--line-soft) 88%, transparent);
  content: "";
}

.brand {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 43px;
  height: 43px;
  color: var(--accent);
}

.brand-mark::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  content: "";
}

.brand-mark svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 38s linear infinite;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-en {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  white-space: nowrap;
}

.brand-cn {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.38em;
  line-height: 1.4;
}

.event-lockup {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: inherit;
  transition: opacity 0.25s ease;
}

.event-lockup:hover {
  opacity: 0.75;
}

.event-overline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.19em;
  line-height: 1.3;
}

.event-overline > span:first-child {
  width: 16px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.event-title {
  overflow: hidden;
  max-width: 42vw;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.date-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-right: 10px;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.date-stamp span:first-child {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.date-stamp span:last-child {
  color: var(--muted-low);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  margin: 0 9px 0 2px;
  background: var(--line);
}

.console-trigger {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 9px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px 0 13px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.console-trigger:hover {
  border-color: rgba(var(--accent-rgb), 0.36);
  background: var(--accent-soft);
  color: var(--ink);
}

.console-trigger .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.console-beacon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7);
  animation: pulseDot 2.6s ease-in-out infinite;
}

/* ---------- main scene ---------- */

.main {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 clamp(24px, 4vw, 64px);
}

.backtype {
  position: absolute;
  z-index: 0;
  top: 51%;
  left: 50%;
  width: 120%;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(180px, 27vw, 440px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.64;
  text-align: center;
  -webkit-text-stroke: 1px rgba(239, 243, 232, 0.065);
  opacity: 0.48;
  pointer-events: none;
  transform: translate(-50%, -50%);
  user-select: none;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.edge-rail {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted-low);
  transform: translateY(-50%);
}

.edge-rail--left {
  left: clamp(15px, 2vw, 34px);
  flex-direction: column;
}

.edge-rail--right {
  right: clamp(15px, 2vw, 34px);
  flex-direction: column;
}

.edge-copy {
  color: var(--muted-low);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.edge-line {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(transparent, var(--line), transparent);
}

.edge-index,
.edge-coord,
.edge-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1;
  writing-mode: vertical-rl;
}

.edge-index b,
.edge-coord b {
  color: var(--ink-soft);
  font-weight: 400;
}

.edge-stat {
  flex-direction: column;
  gap: 7px;
}

.edge-stat span {
  font-size: 7px;
  letter-spacing: 0.22em;
}

.edge-stat strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---------- stage frame ---------- */

.stage {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(100%, 1210px);
  min-height: 0;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: stretch;
  padding-top: 8px;
}

/* ---------- round marquee ---------- */

.round-marquee {
  display: grid;
  min-height: 74px;
  grid-template-columns: 1fr minmax(310px, 500px) 1fr;
  align-items: center;
  gap: 22px;
  animation: riseIn 0.9s var(--ease) 0.18s both;
}

.round-state {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.status-beacon {
  position: relative;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
  animation: pulseDot 2.5s ease-in-out infinite;
}

.status-beacon::before {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 50%;
  content: "";
}

.round-state__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.round-state__cn {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.round-state__en {
  color: var(--muted-low);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
}

body.is-drawing .status-beacon {
  animation-duration: 0.6s;
}

body.is-drawing .round-state__cn {
  color: var(--accent);
}

body.is-winner .status-beacon {
  background: var(--accent);
}

.prize-now {
  display: grid;
  position: relative;
  min-width: 0;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  justify-self: center;
  padding: 0 20px;
  color: inherit;
  text-align: center;
}

.prize-now__overline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.17em;
  line-height: 1.3;
}

.prize-now__overline i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.prize-now__name {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.prize-now:hover .prize-now__name {
  color: var(--accent);
}

.prize-now__note {
  display: none;
}

.prize-now__stock {
  display: inline-flex;
  height: 20px;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.prize-now__chevron {
  width: 13px;
  height: 13px;
  color: var(--muted-low);
  transition: transform 0.25s var(--ease), color 0.25s ease;
}

.prize-now:hover .prize-now__chevron {
  color: var(--accent);
  transform: translateY(2px);
}

.round-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-self: end;
  font-family: var(--font-mono);
}

.round-count span {
  color: var(--muted-low);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.round-count strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- orbital stage ---------- */

.orbital-zone {
  position: relative;
  display: grid;
  min-height: 390px;
  flex: 1;
  place-items: center;
  animation: fadeIn 1.1s ease 0.15s both;
}

.orbital-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(820px, 76vw);
  height: min(560px, 58vh);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.08), transparent 56%),
    radial-gradient(ellipse at center, rgba(51, 114, 89, 0.1), transparent 67%);
  filter: blur(28px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: breathe 7s ease-in-out infinite;
}

.floor-grid {
  position: absolute;
  right: 4%;
  bottom: 4%;
  left: 4%;
  height: 58%;
  opacity: 0.38;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.12) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12) 1px, transparent 1px) 0 0 / 58px 100%;
  mask-image: radial-gradient(ellipse at 50% 94%, black 0%, transparent 66%);
  pointer-events: none;
  transform: perspective(420px) rotateX(67deg) scale(1.18);
  transform-origin: 50% 100%;
}

.guide-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(880px, 75vw);
  height: min(560px, 58vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.guide-ring,
.guide-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(239, 243, 232, 0.065);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.guide-ring--outer {
  width: 100%;
  height: 82%;
  border-style: dashed;
  border-color: rgba(239, 243, 232, 0.05);
  animation: ringRotate 120s linear infinite;
}

.guide-ring--mid {
  width: 79%;
  height: 66%;
  border-color: rgba(var(--accent-rgb), 0.095);
  animation: ringRotateReverse 82s linear infinite;
}

.guide-ring--inner {
  width: 58%;
  height: 48%;
  border-color: rgba(239, 243, 232, 0.06);
  animation: ringRotate 58s linear infinite;
}

.guide-orbit--tilted {
  width: 92%;
  height: 34%;
  border-color: rgba(var(--accent-rgb), 0.08);
  transform: translate(-50%, -50%) rotate(-16deg);
  animation: none;
}

.guide-orbit--tilted::before,
.guide-orbit--tilted::after {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.9);
  content: "";
}

.guide-orbit--tilted::before {
  left: 8%;
}

.guide-orbit--tilted::after {
  right: 4%;
  opacity: 0.4;
}

.guide-cross {
  position: absolute;
  color: rgba(239, 243, 232, 0.18);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  line-height: 1;
}

.guide-cross--a {
  top: 9%;
  left: 18%;
}

.guide-cross--b {
  top: 18%;
  right: 11%;
}

.guide-cross--c {
  bottom: 11%;
  left: 10%;
}

.guide-cross--d {
  right: 18%;
  bottom: 7%;
}

.guide-cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 243, 232, 0.11), transparent);
  content: "";
  transform: translate(-50%, -50%);
}

.guide-cross--a::after,
.guide-cross--c::after {
  left: 0;
  transform: translate(0, -50%) rotate(90deg);
}

.orbit-people {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.orbit-person {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 130px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(239, 243, 232, 0.58);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  will-change: transform, left, top, opacity;
}

.orbit-person__dot {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.55);
  opacity: 0.72;
}

.orbit-person__name {
  overflow: hidden;
  max-width: 108px;
  text-overflow: ellipsis;
}

.orbit-person--featured {
  border-color: rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.045);
  color: rgba(239, 243, 232, 0.86);
}

body.is-drawing .orbit-person {
  color: rgba(239, 243, 232, 0.36);
  filter: blur(0.4px);
}

body.is-drawing .orbit-person--featured {
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
}

body.is-winner .orbit-people {
  opacity: 0.2;
  filter: blur(1.2px);
}

.orbit-caption {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted-low);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.17em;
  pointer-events: none;
}

.orbit-caption span:last-child {
  color: rgba(139, 153, 143, 0.55);
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.11em;
}

/* ---------- the orb ---------- */

.orb-wrap {
  position: relative;
  z-index: 4;
  display: grid;
  width: var(--orb-size);
  height: var(--orb-size);
  place-items: center;
  animation: riseIn 1.2s var(--ease) 0.05s both;
}

.win-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190%;
  height: 190%;
  border-radius: 50%;
  opacity: 0;
  background: repeating-conic-gradient(
    from 4deg,
    rgba(var(--accent-rgb), 0.18) 0deg 1deg,
    transparent 1deg 12deg
  );
  mask-image: radial-gradient(circle, transparent 0 29%, black 42%, transparent 72%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  isolation: isolate;
}

.orb-aura {
  position: absolute;
  z-index: -1;
  inset: -13%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 56%),
    radial-gradient(circle at 65% 34%, rgba(126, 240, 200, 0.09), transparent 46%);
  filter: blur(18px);
  animation: breathe 6.5s ease-in-out infinite;
}

.orb-tick-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(var(--accent-rgb), 0.48) 0deg 0.62deg,
    transparent 0.62deg 4.2deg
  );
  opacity: 0.66;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 105s linear infinite;
}

.orb-tick-ring::after {
  content: "";
}

.orb-dotted-ring {
  position: absolute;
  inset: 4.3%;
  border: 1px dashed rgba(239, 243, 232, 0.17);
  border-radius: 50%;
  animation: spinReverse 74s linear infinite;
}

.orb-dotted-ring::before {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
  content: "";
  transform: translateX(-50%);
}

.orb-circular-text {
  position: absolute;
  z-index: 2;
  inset: -7%;
  width: 114%;
  height: 114%;
  color: rgba(239, 243, 232, 0.25);
  animation: spin 80s linear infinite;
}

.orb-circular-text text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.25em;
}

.orb-shell {
  position: absolute;
  z-index: 3;
  inset: 6.8%;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  border: 1px solid rgba(239, 243, 232, 0.14);
  border-radius: 50%;
  padding: 17% 12% 13%;
  background:
    radial-gradient(circle at 50% 27%, rgba(244, 247, 235, 0.075), transparent 25%),
    radial-gradient(circle at 50% 76%, rgba(var(--accent-rgb), 0.07), transparent 46%),
    linear-gradient(145deg, rgba(20, 33, 25, 0.91), rgba(5, 10, 7, 0.92));
  box-shadow:
    inset 0 0 70px rgba(var(--accent-rgb), 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 90px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  text-align: center;
}

.orb-shell::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, transparent 20%, rgba(255, 255, 255, 0.028) 45%, transparent 60%);
  content: "";
  pointer-events: none;
}

.orb-shell::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.012) 3px 4px
  );
  content: "";
  opacity: 0.45;
  pointer-events: none;
}

.orb-sheen {
  position: absolute;
  top: -30%;
  left: -12%;
  width: 120%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06), transparent 63%);
  pointer-events: none;
  transform: rotate(-13deg);
}

.orb-topline,
.orb-bottomline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  line-height: 1;
}

.orb-topline {
  padding: 0 7%;
}

.orb-bottomline {
  padding: 0 4%;
}

.orb-kicker {
  color: rgba(239, 243, 232, 0.58);
  font-size: 7.4px;
  letter-spacing: 0.19em;
  white-space: nowrap;
}

.orb-sequence {
  color: var(--muted-low);
  font-size: 7px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.orb-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: -4% 0 0;
}

.name-window {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.name-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(80px, calc(var(--orb-size) * 0.31), 137px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.4;
  -webkit-text-stroke: 1px rgba(239, 243, 232, 0.06);
  pointer-events: none;
  transform: translate(-50%, -50%);
  user-select: none;
  white-space: nowrap;
}

.orb-name {
  position: relative;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, calc(var(--orb-size) * 0.135), 68px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.16;
  text-align: center;
  text-shadow: 0 0 36px rgba(239, 243, 232, 0.08);
  transition: color 0.4s ease, font-size 0.3s ease;
}

.orb-name.is-medium {
  font-size: clamp(32px, calc(var(--orb-size) * 0.108), 56px);
}

.orb-name.is-long {
  font-size: clamp(24px, calc(var(--orb-size) * 0.078), 42px);
  line-height: 1.25;
}

.orb-name.is-xlong {
  font-size: clamp(19px, calc(var(--orb-size) * 0.06), 32px);
  line-height: 1.3;
}

.orb-meta {
  max-width: 90%;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(8px, 2.2vw, 10px);
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.orb-pool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.orb-pool__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.8);
}

.orb-state {
  color: var(--accent);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.orb[data-state="drawing"] .orb-name {
  color: var(--accent);
  animation: flicker 0.2s steps(2) infinite;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.24);
}

.orb[data-state="drawing"] .orb-kicker {
  color: var(--accent);
}

.orb[data-state="drawing"] .orb-aura {
  animation: winnerPulse 1.3s ease-in-out infinite;
}

.orb[data-state="drawing"] .orb-shell {
  animation: orbShake 0.55s ease-in-out infinite;
}

.orb[data-state="drawing"] .orb-tick-ring {
  animation-duration: 4s;
}

.orb[data-state="drawing"] .orb-dotted-ring {
  animation-duration: 3.5s;
}

.orb[data-state="drawing"] .orb-circular-text {
  animation-duration: 8s;
  color: rgba(var(--accent-rgb), 0.46);
}

.orb[data-state="winner"] .orb-name {
  color: var(--accent);
  animation: nameReveal 1.05s var(--ease) both;
  text-shadow:
    0 0 24px rgba(var(--accent-rgb), 0.24),
    0 0 72px rgba(var(--accent-rgb), 0.14);
}

.orb[data-state="winner"] .orb-aura {
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.32), transparent 55%),
    radial-gradient(circle at 65% 34%, rgba(126, 240, 200, 0.13), transparent 46%);
  animation: winnerPulse 4s ease-in-out infinite;
}

.orb[data-state="winner"] .orb-shell {
  border-color: rgba(var(--accent-rgb), 0.44);
  box-shadow:
    inset 0 0 90px rgba(var(--accent-rgb), 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 110px rgba(var(--accent-rgb), 0.08),
    0 30px 80px rgba(0, 0, 0, 0.48);
}

.orb[data-state="winner"] .orb-name {
  font-weight: 600;
}

.orb[data-state="winner"] .orb-meta {
  color: var(--ink-soft);
}

.orb[data-state="winner"] .orb-tick-ring {
  animation-duration: 36s;
  opacity: 0.9;
}

.orb[data-state="winner"] .orb-dotted-ring {
  border-color: rgba(var(--accent-rgb), 0.42);
  animation-duration: 30s;
}

.orb[data-state="winner"] .orb-circular-text {
  color: rgba(var(--accent-rgb), 0.6);
}

body.is-winner .win-rays {
  animation: rayBloom 2.6s var(--ease) both;
}

body.is-winner .draw-button {
  border-color: var(--accent);
}

body.is-winner .status-beacon {
  animation: pulseDot 1.4s ease-in-out infinite;
}

.winner-mark {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: 20%;
  display: grid;
  width: clamp(44px, 15%, 58px);
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.48);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
  text-align: center;
  transform: rotate(11deg);
  animation: fadeIn 0.5s ease 0.6s both;
}

.winner-mark::before,
.winner-mark::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.winner-mark::before {
  inset: 4px;
  border: 1px dashed rgba(var(--accent-rgb), 0.24);
}

.winner-mark::after {
  inset: -23%;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
}

.winner-mark span {
  font-size: 6px;
  letter-spacing: 0.17em;
  opacity: 0.65;
}

.winner-mark strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: clamp(12px, 3.6vw, 16px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.orb-tick {
  position: absolute;
  z-index: 4;
  background: rgba(239, 243, 232, 0.24);
}

.orb-tick--top,
.orb-tick--bottom {
  left: 50%;
  width: 1px;
  height: 13px;
  transform: translateX(-50%);
}

.orb-tick--top {
  top: -8px;
}

.orb-tick--bottom {
  bottom: -8px;
}

.orb-tick--left,
.orb-tick--right {
  top: 50%;
  width: 13px;
  height: 1px;
  transform: translateY(-50%);
}

.orb-tick--left {
  left: -8px;
}

.orb-tick--right {
  right: -8px;
}
