/* Статические стили саммита — стабильно грузятся с телефона без dev-chunk кэша */

html:has(.summit-home) {
  min-height: 100svh;
}

html:has(.summit-home) body {
  min-height: 100svh;
  background: #eef0f5;
}

.summit-home {
  position: relative;
  display: flex;
  box-sizing: border-box;
  min-height: 100svh;
  flex-direction: column;
  margin: 0 auto;
  max-width: 32rem;
  background: #eef0f5;
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
}

/* ——— Header ——— */

.summit-home__header {
  position: relative;
  z-index: 1;
  padding: max(0.75rem, env(safe-area-inset-top)) 1.25rem 4rem;
  color: #fff;
  background-color: #12082e;
  background-image:
    linear-gradient(
      165deg,
      rgba(12, 4, 36, 0.92) 0%,
      rgba(18, 8, 46, 0.88) 45%,
      rgba(28, 14, 68, 0.94) 100%
    ),
    url("/summit-bg.png?v=4");
  background-position: center top, center 18%;
  background-size: cover, 140% auto;
  background-repeat: no-repeat;
  border-radius: 0 0 1.75rem 1.75rem;
  overflow: visible;
}

.summit-home__header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(142, 84, 233, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(46, 125, 149, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.summit-home__header-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.summit-home__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.summit-home__brand-text {
  flex: 1;
  min-width: 0;
}

.summit-home__logo {
  display: block;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  object-fit: contain;
}

.summit-home__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 2rem;
  margin-top: 0.125rem;
  padding: 0.3125rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.summit-home__login:hover {
  background: rgba(255, 255, 255, 0.12);
}

.summit-home__title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: 0 0 0.125rem;
  font-size: 0.9375rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.summit-home__title-line {
  display: block;
}

.summit-home__title-line--nowrap {
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.summit-home__subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.summit-home__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0 0.125rem;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.summit-home__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summit-home__meta-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.92;
}

/* ——— Scrollable body ——— */

.summit-home__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: -3.25rem;
  padding: 0 1rem 1rem;
}

.summit-home__hero-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 1.25rem 0.5rem 1.25rem 1.25rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow:
    0 4px 20px rgba(10, 0, 51, 0.1),
    0 2px 8px rgba(10, 0, 51, 0.06);
}

.summit-home__hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summit-home__hero-title {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0a0033;
}

.summit-home__hero-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.summit-home__hero-media {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  align-self: stretch;
  margin: -0.75rem 0;
}

.summit-home__hero-image {
  display: block;
  width: auto;
  height: 100%;
  max-width: 9rem;
  flex-shrink: 0;
  object-fit: contain;
  object-position: right center;
}

.summit-home__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.summit-home__stat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 0.75rem;
  background: #fff;
  border-radius: 1.125rem;
  box-shadow:
    0 2px 10px rgba(10, 0, 51, 0.05),
    0 1px 2px rgba(10, 0, 51, 0.03);
}

.summit-home__stat-body {
  flex: 1;
  min-width: 0;
}

.summit-home__day-stepper {
  display: flex;
  align-items: flex-start;
  margin-top: 0.375rem;
}

.summit-home__day-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.summit-home__day-step-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.summit-home__day-step-line {
  flex: 1;
  height: 2px;
  min-width: 0;
  background: #e8eaef;
  border-radius: 1px;
}

.summit-home__day-step-line--active {
  background: #d4c4f7;
}

.summit-home__day-step-line--spacer {
  flex: 1;
  visibility: hidden;
}

.summit-home__day-step-node {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1.5px solid #e0e3ea;
  border-radius: 50%;
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: #b8bcc8;
}

.summit-home__day-step--active .summit-home__day-step-node {
  border-color: #5b22f2;
  background: #5b22f2;
  color: #fff;
}

.summit-home__day-step-date {
  margin-top: 0.3125rem;
  font-size: 0.625rem;
  line-height: 1.2;
  font-weight: 500;
  color: #b8bcc8;
  white-space: nowrap;
}

.summit-home__day-step--active .summit-home__day-step-date {
  color: #0a0033;
  font-weight: 700;
}

.summit-home__stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
}

.summit-home__stat-icon--purple {
  background: #ede9f8;
}

.summit-home__stat-icon--gift {
  background: #fff0e6;
}

.summit-home__stat-icon .app-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.summit-home__stat-icon-glyph--orange {
  color: #f37021;
}

.summit-home__stat-label {
  margin: 0 0 0.125rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6b7280;
}

.summit-home__stat-value {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 700;
}

.summit-home__stat-value--purple {
  color: #8e54e9;
}

.summit-home__stat-value--orange {
  color: #f37021;
}

.summit-home__stat-note {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6b7280;
}

.summit-home__cta {
  margin-top: 0.125rem;
}

.summit-home__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.summit-home__link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0.875rem 0.875rem 0.75rem;
  text-decoration: none;
  background: #fff;
  border-radius: 1.125rem;
  box-shadow:
    0 2px 10px rgba(10, 0, 51, 0.05),
    0 1px 2px rgba(10, 0, 51, 0.03);
  transition: box-shadow 0.15s ease;
}

.summit-home__link-card:hover {
  box-shadow:
    0 4px 16px rgba(10, 0, 51, 0.08),
    0 1px 3px rgba(10, 0, 51, 0.04);
}

.summit-home__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.875rem;
  background: #f3effb;
}

.summit-home__link-icon .app-icon {
  width: 2rem;
  height: 2rem;
}

/* ——— AI tip ——— */

.summit-home__ai-tip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 5.25rem;
  padding: 1rem 6.25rem 1rem 1rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(142, 84, 233, 0.1) 0%,
    rgba(255, 255, 255, 0.78) 48%,
    rgba(255, 207, 115, 0.16) 100%
  );
  border-radius: 1.125rem;
  border: 1px solid rgba(142, 84, 233, 0.14);
  box-shadow: 0 4px 14px rgba(26, 17, 75, 0.06);
}

.summit-home__ai-tip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(142, 84, 233, 0.1);
}

.summit-home__ai-tip-icon .app-icon {
  width: 1.625rem;
  height: 1.625rem;
}

.summit-home__ai-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding-right: 0.25rem;
}

.summit-home__ai-label {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f37021;
}

.summit-home__ai-text {
  margin: 0;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #2a2638;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.summit-home__ai-text--visible {
  opacity: 1;
}

.summit-home__ai-deco {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6.5rem;
  pointer-events: none;
}

.summit-home__ai-deco-glow {
  position: absolute;
  right: -2.1rem;
  bottom: -2.1rem;
  width: 7.25rem;
  height: 7.25rem;
  border: 1.5px solid rgba(91, 34, 242, 0.16);
  border-radius: 50%;
  background: transparent;
}

.summit-home__ai-bubble-icon {
  position: absolute;
  right: 1.15rem;
  bottom: 1.05rem;
  width: 2rem !important;
  height: 2rem !important;
  color: rgba(91, 34, 242, 0.52);
}

.summit-home__ai-spark {
  position: absolute;
  display: block;
  background: rgba(91, 34, 242, 0.38);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.summit-home__ai-spark--1 {
  top: 0.9rem;
  right: 2.35rem;
  width: 0.625rem;
  height: 0.625rem;
}

.summit-home__ai-spark--2 {
  top: 1.35rem;
  right: 1.55rem;
  width: 0.4375rem;
  height: 0.4375rem;
  background: rgba(91, 34, 242, 0.28);
}

.summit-home__link-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.summit-home__link-title {
  font-size: 0.9375rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0a0033;
}

.summit-home__link-desc {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b7280;
}

.summit-home__link-chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #c4b5e8;
}

.summit-pill-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

a.summit-pill,
button.summit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 9999px;
  font-weight: 500;
  color: #ffffff !important;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

a.summit-pill:hover,
button.summit-pill:hover {
  filter: brightness(1.08);
}

a.summit-pill:active,
button.summit-pill:active {
  transform: scale(0.98);
}

button.summit-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.summit-pill--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.summit-pill--md {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.summit-pill--lg {
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
}

.summit-pill--full {
  width: 100%;
}

.summit-pill--orange {
  background-color: #f37021;
}

.summit-pill--teal {
  background-color: #2e7d95;
}

.summit-pill--purple {
  background-color: #8e54e9;
}

.summit-pill--magenta {
  background-color: #b900ce;
}

.summit-pill--lavender {
  background-color: #8484c1;
}

.summit-pill--green {
  background-color: #1e5d41;
}

.summit-pill--outline {
  background-color: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.summit-quest-header {
  background: linear-gradient(135deg, #0a0033 0%, #1a0044 50%, #8e54e9 100%);
  color: #ffffff;
}

.summit-stage-bg {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, #8e54e9 0%, #0a0033 50%, #050018 100%);
  color: #ffffff;
}

.summit-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, #f37021, #b900ce);
  transition: width 0.3s ease;
}

.summit-podium-1 {
  background-color: #f37021;
}

.summit-podium-2 {
  background-color: #8484c1;
}

.summit-podium-3 {
  background-color: #b900ce;
}

/* === Рейтинг для сцены / большого монитора === */
.stage-screen {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2.5vh 3vw 2.5vh;
  color: #ffffff;
  overflow: hidden;
  background-color: #12082e;
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 0, 51, 0.72) 0%,
      rgba(10, 0, 51, 0.35) 38%,
      rgba(10, 0, 51, 0.42) 68%,
      rgba(10, 0, 51, 0.78) 100%
    ),
    url("/stage-bg.png?v=1");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.stage-screen__loading,
.stage-screen__empty {
  margin: auto;
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.stage-screen__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-shrink: 0;
}

.stage-screen__brand {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  margin-bottom: clamp(0.75rem, 1.5vh, 1.5rem);
}

.stage-screen__logo {
  display: block;
  width: clamp(3rem, 5vw, 5rem);
  height: clamp(3rem, 5vw, 5rem);
  flex-shrink: 0;
  object-fit: contain;
}

.stage-screen__brand-text {
  min-width: 0;
}

.stage-screen__event {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.stage-screen__quest-tag {
  margin: 0.35rem 0 0;
  font-size: clamp(0.875rem, 1.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.stage-screen__title {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4.8vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
}

.stage-screen__subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 1.8vw, 2rem);
  color: rgba(255, 255, 255, 0.62);
}

.stage-screen__live {
  flex-shrink: 0;
  text-align: right;
}

.stage-screen__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: clamp(0.75rem, 1.1vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(91, 34, 242, 0.85);
  border-radius: 9999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stage-screen__clock {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stage-screen__podium-wrap {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  min-height: 38vh;
  padding: 2vh 0 1vh;
}

.stage-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  width: 100%;
  max-width: 92vw;
}

.stage-podium--single {
  max-width: 36vw;
}

.stage-podium__slot {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  max-width: 28vw;
  min-width: 0;
}

.stage-podium__slot--empty {
  visibility: hidden;
}

.stage-podium--single .stage-podium__slot--empty {
  display: none;
}

.stage-podium__name {
  margin: 0;
  width: 100%;
  font-size: clamp(1.25rem, 2.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-podium__id {
  margin: 0.35rem 0 0;
  font-size: clamp(0.9rem, 1.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.55);
}

.stage-podium__points {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: #33c7b7;
  font-variant-numeric: tabular-nums;
}

.stage-podium__breakdown {
  margin: -0.35rem 0 0.75rem;
  font-size: clamp(0.75rem, 1.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.stage-podium__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 700;
  color: #ffffff;
}

.stage-podium__bar--1 {
  height: clamp(14rem, 28vh, 22rem);
  background: #f37021;
}

.stage-podium__bar--2 {
  height: clamp(9rem, 20vh, 16rem);
  background: #8484c1;
}

.stage-podium__bar--3 {
  height: clamp(7rem, 15vh, 12rem);
  background: #b900ce;
}

.stage-podium--single .stage-podium__bar--1 {
  height: clamp(16rem, 32vh, 26rem);
}

.stage-screen__list {
  flex-shrink: 0;
  margin-top: 1vh;
  padding: 0.5vh 0;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.stage-list__head,
.stage-list__row {
  display: grid;
  grid-template-columns: minmax(4rem, 7vw) 1fr minmax(5rem, 9vw) minmax(5rem, 9vw);
  align-items: center;
  gap: 1rem;
  padding: 0.9vh 1.5vw;
}

.stage-list__head {
  font-size: clamp(0.875rem, 1.4vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.stage-list__head span:nth-child(3),
.stage-list__head span:nth-child(4),
.stage-list__points,
.stage-list__extra {
  text-align: right;
}

.stage-list__row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(1.1rem, 2vw, 2.25rem);
}

.stage-list__rank {
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stage-list__person {
  min-width: 0;
}

.stage-list__name {
  display: block;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-list__id {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.5);
}

.stage-list__points {
  font-weight: 700;
  color: #33c7b7;
  font-variant-numeric: tabular-nums;
}

.stage-list__extra {
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.stage-screen__list--breakdown .stage-list__head,
.stage-screen__list--breakdown .stage-list__row {
  grid-template-columns: minmax(4rem, 7vw) 1fr repeat(3, minmax(3.5rem, 6vw));
}

.stage-screen__list--breakdown.stage-screen__list--extra .stage-list__head,
.stage-screen__list--breakdown.stage-screen__list--extra .stage-list__row {
  grid-template-columns: minmax(4rem, 7vw) 1fr repeat(3, minmax(3.5rem, 6vw)) minmax(4rem, 7vw);
}

.stage-screen__list--breakdown .stage-list__head span:nth-child(n + 3),
.stage-screen__list--breakdown .stage-list__quest,
.stage-screen__list--breakdown .stage-list__ai,
.stage-screen__list--breakdown .stage-list__points,
.stage-screen__list--breakdown .stage-list__extra {
  text-align: right;
}

.stage-list__quest {
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.stage-list__ai {
  color: #5ec4b8;
  font-variant-numeric: tabular-nums;
}

/* === Рандомайзер на сцене === */
.stage-randomizer__stage {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2vh 2vw;
}

.stage-randomizer__idle {
  text-align: center;
}

.stage-randomizer__idle-icon {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
}

.stage-randomizer__idle-text {
  margin: 1.5rem 0 0;
  font-size: clamp(1.75rem, 3.5vw, 4rem);
  font-weight: 700;
}

.stage-randomizer__idle-sub {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.75rem);
  color: rgba(255, 255, 255, 0.6);
}

.stage-randomizer__spin,
.stage-randomizer__winner {
  width: min(92vw, 64rem);
  text-align: center;
}

.stage-randomizer__spin-label,
.stage-randomizer__winner-badge {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #33c7b7;
}

.stage-randomizer__spin-name {
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  transition: opacity 0.06s ease;
}

.stage-randomizer__spin-name--active {
  animation: stage-randomizer-pulse 0.12s ease;
}

@keyframes stage-randomizer-pulse {
  0% { opacity: 0.55; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

.stage-randomizer__winner--revealed {
  animation: stage-randomizer-reveal 0.5s ease;
}

@keyframes stage-randomizer-reveal {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.stage-randomizer__winner-name {
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.stage-randomizer__spin-id,
.stage-randomizer__winner-id {
  margin: 0.75rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 3rem);
  color: rgba(255, 255, 255, 0.55);
}

.stage-randomizer__progress {
  height: clamp(0.5rem, 1vh, 0.875rem);
  margin-top: 2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

.stage-randomizer__progress-bar {
  height: 100%;
  background: linear-gradient(to right, #f37021, #b900ce);
  border-radius: 9999px;
  transition: width 0.08s linear;
}

.stage-randomizer__winner {
  padding: clamp(1.5rem, 3vw, 3rem);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(243, 112, 33, 0.45);
  border-radius: 2rem;
  box-shadow: 0 0 80px rgba(243, 112, 33, 0.2);
}

.stage-randomizer__winner-badge {
  color: #f37021;
}

.stage-randomizer__winner-hint {
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 2rem);
  color: rgba(255, 255, 255, 0.75);
}
