/* ============================================================================
   SOWIN LUCKY REEL (`/spin`) - Horizontal Conveyor Case-Opening & Mobile HUD
   ============================================================================ */

/* Ensure unauthenticated visitors on `/spin` see ONLY Lucky Reel's dedicated login, never the generic app login wall */
body.is-guest[data-active-view="spin"] #login-overlay {
  display: none !important;
}

@media (max-width: 768px) {
  body[data-active-view="spin"] .site-global-footer {
    display: none !important;
  }
}

/* Header Lucky Wheel Icon Button: Borderless Social-Icon Style + Live Continuous Spin */
.header-spin-icon-btn,
.landing-topbar-social .header-spin-icon-btn,
.header-actions .header-spin-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 180ms ease, filter 180ms ease;
}

.header-spin-icon-btn:hover,
.header-spin-icon-btn.is-active-spin {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: brightness(1.16);
  transform: scale(1.08);
}

.header-spin-icon-btn svg {
  width: 22px !important;
  height: 22px !important;
  transform-origin: 50% 50%;
  animation: srLiveWheelIdleSpin 8s linear infinite;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.42));
}

.header-spin-icon-btn:hover svg {
  animation-duration: 2.1s;
}

@keyframes srLiveWheelIdleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sr-unspun-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.8px solid #0b1220;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.78);
  animation: srRedDotPulse 1.9s infinite;
  pointer-events: none;
  z-index: 3;
}

[data-theme="light"] .sr-unspun-dot {
  border-color: #ffffff;
}

@keyframes srRedDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.78); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 960px) {
  .header-actions .header-spin-icon-btn {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}

/* Page Container */
#view-spin,
#spin-reel-root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#view-spin {
  padding-bottom: 3.5rem;
}

.sr-page-wrap {
  width: 100%;
  max-width: 1260px;
  min-width: 0;
  margin: 0 auto;
  padding: 1.15rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Mobile-Only HUD Elements Hidden on Desktop (> 768px) */
.sr-mobile-hud-top,
.sr-mobile-held-strip {
  display: none;
}

/* 1. DESKTOP HERO BANNER: COMPACT RULES + 50 SORARE GEMS + VAULT */
.sr-hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.98fr;
  gap: 1.15rem;
  align-items: stretch;
}

.sr-hero-main {
  position: relative;
  border-radius: 20px;
  padding: 1.4rem 1.55rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.2), transparent 52%),
    radial-gradient(circle at 12% 88%, rgba(251, 191, 36, 0.1), transparent 48%),
    linear-gradient(145deg, rgba(11, 19, 35, 0.96), rgba(7, 13, 25, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
}

[data-theme="light"] .sr-hero-main {
  background:
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.12), transparent 55%),
    linear-gradient(145deg, #ffffff, #f1f5f9);
  border-color: rgba(15, 23, 42, 0.12);
}

.sr-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
}

.sr-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #34d399;
}

[data-theme="light"] .sr-eyebrow-pill {
  color: #047857;
}

.sr-deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.66rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.36);
  color: #fbbf24;
}

[data-theme="light"] .sr-deadline-pill {
  color: #b45309;
}

.sr-hero-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.98rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--text-primary);
}

.sr-hero-sub {
  margin: 0.38rem 0 0;
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--text-secondary);
  max-width: 640px;
}

.sr-prize-showcase {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.78rem 1rem;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.42), rgba(15, 23, 42, 0.72));
  border: 1px solid rgba(52, 211, 153, 0.38);
}

[data-theme="light"] .sr-prize-showcase {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.85), rgba(240, 253, 244, 0.95));
}

.sr-gems-img-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-gems-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.6));
  animation: srGemFloat 3.4s ease-in-out infinite;
}

@keyframes srGemFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

.sr-prize-copy {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.sr-prize-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #34d399;
}

[data-theme="light"] .sr-prize-kicker {
  color: #047857;
}

.sr-prize-headline {
  font-size: 1.16rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="light"] .sr-prize-headline {
  color: #064e3b;
}

.sr-prize-rules-note {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.38;
}

[data-theme="light"] .sr-prize-rules-note {
  color: #334155;
}

.sr-rule-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sr-rule-pill {
  padding: 0.52rem 0.66rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

[data-theme="light"] .sr-rule-pill {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.09);
}

.sr-rule-pill strong {
  font-size: 0.74rem;
  color: var(--text-primary);
}

.sr-rule-pill span {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Vault Card Panel */
.sr-vault-panel {
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(160deg, rgba(13, 22, 40, 0.96), rgba(8, 14, 26, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 42px -16px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
}

[data-theme="light"] .sr-vault-panel {
  background: linear-gradient(160deg, #ffffff, #f8fafc);
  border-color: rgba(15, 23, 42, 0.12);
}

.sr-vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sr-vault-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.sr-vault-rank-chip {
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fbbf24;
}

.sr-vault-body {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex: 1;
}

.sr-vault-stats {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
}

.sr-vault-stat-box {
  padding: 0.46rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
}

[data-theme="light"] .sr-vault-stat-box {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

.sr-vault-stat-box span {
  color: var(--text-secondary);
  white-space: nowrap;
}

.sr-vault-stat-box strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
}

.sr-vault-empty {
  flex: 1;
  min-height: 176px;
  border-radius: 15px;
  border: 1.5px dashed rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  gap: 0.4rem;
  color: var(--text-secondary);
}

/* ============================================================================
   2. BESPOKE SOWIN COLLECTIBLE CARD DESIGN
   ============================================================================ */
.sr-sowin-card {
  --card-w: 156px;
  --card-h: 224px;
  --tier-border: rgba(52, 211, 153, 0.65);
  --tier-glow: rgba(16, 185, 129, 0.35);
  --tier-bg: linear-gradient(155deg, #062119 0%, #065f46 52%, #0d9488 100%);
  --tier-accent: #34d399;

  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  flex-shrink: 0;
  border-radius: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  background: var(--tier-bg);
  border: 1.5px solid var(--tier-border);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.75), 0 0 20px -6px var(--tier-glow);
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sr-sowin-card.is-size-vault {
  --card-w: 144px;
  --card-h: 208px;
}

.sr-sowin-card.is-size-modal {
  --card-w: 220px;
  --card-h: 316px;
}

.sr-sowin-card.is-size-grid {
  --card-w: 100%;
  --card-h: 226px;
}

.sr-sowin-card.tier-MYTHIC {
  --tier-border: rgba(251, 191, 36, 0.92);
  --tier-glow: rgba(251, 191, 36, 0.55);
  --tier-bg: linear-gradient(155deg, #271904 0%, #854d0e 42%, #065f46 82%, #10b981 100%);
  --tier-accent: #fde047;
}

.sr-sowin-card.tier-DIAMOND {
  --tier-border: rgba(56, 189, 248, 0.88);
  --tier-glow: rgba(14, 165, 233, 0.48);
  --tier-bg: linear-gradient(155deg, #07192e 0%, #075985 48%, #0284c7 85%, #38bdf8 100%);
  --tier-accent: #7dd3fc;
}

.sr-sowin-card.tier-GOLD {
  --tier-border: rgba(245, 158, 11, 0.82);
  --tier-glow: rgba(245, 158, 11, 0.4);
  --tier-bg: linear-gradient(155deg, #1f1405 0%, #78350f 50%, #d97706 100%);
  --tier-accent: #fcd34d;
}

.sr-sowin-card.tier-EMERALD {
  --tier-border: rgba(52, 211, 153, 0.72);
  --tier-glow: rgba(16, 185, 129, 0.36);
  --tier-bg: linear-gradient(155deg, #051c15 0%, #064e3b 50%, #059669 100%);
  --tier-accent: #6ee7b7;
}

.sr-card-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.22), transparent 56%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 9px);
  pointer-events: none;
  z-index: 1;
}

.sr-card-watermark {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.075);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

.sr-sowin-card::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.24) 50%, transparent 58%);
  transform: translateX(-70%) rotate(12deg);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 5;
}

.sr-sowin-card:hover::after,
.sr-sowin-card.is-under-laser::after {
  transform: translateX(70%) rotate(12deg);
}

.sr-sowin-card.is-under-laser {
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.92), 0 0 26px var(--tier-glow);
}

.sr-card-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.46rem 0;
}

.sr-card-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.13rem 0.36rem;
  border-radius: 6px;
  background: rgba(8, 13, 25, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.sr-card-brand-txt {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: #ffffff;
}

.sr-card-team-logo {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.sr-card-rank-pill {
  padding: 0.12rem 0.36rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 900;
  background: rgba(8, 13, 25, 0.78);
  color: var(--tier-accent);
  border: 1px solid var(--tier-border);
}

.sr-card-figure-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  bottom: 52px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.sr-card-figure-img {
  width: 84%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.62));
}

.sr-sowin-card.is-size-modal .sr-card-figure-wrap {
  top: 28px;
  bottom: 76px;
}

.sr-card-plate {
  position: relative;
  z-index: 4;
  margin: auto 0 0;
  padding: 0.4rem 0.48rem 0.44rem;
  background: linear-gradient(180deg, rgba(7, 12, 23, 0.85) 0%, rgba(5, 9, 18, 0.97) 100%);
  border-top: 1px solid var(--tier-border);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.sr-sowin-card.is-size-modal .sr-card-plate {
  padding: 0.6rem 0.75rem 0.66rem;
  gap: 0.24rem;
}

.sr-card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tier-accent);
}

.sr-sowin-card.is-size-modal .sr-card-meta-line {
  font-size: 0.66rem;
}

.sr-card-player-name {
  font-size: 0.76rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.sr-sowin-card.is-size-modal .sr-card-player-name {
  font-size: 1.05rem;
}

.sr-card-scores-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.22rem;
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
}

.sr-sowin-card.is-size-modal .sr-card-scores-row {
  font-size: 0.76rem;
}

.sr-card-proj-chip {
  color: #e2e8f0;
  font-weight: 800;
}

.sr-card-proj-chip b {
  color: var(--tier-accent);
}

.sr-card-proj-chip.is-final b {
  color: #fbbf24;
}

.sr-card-proj-chip.is-live b {
  color: #34d399;
}

.sr-card-proj-chip.is-current b {
  color: #38bdf8;
}

.sr-card-gw-chip {
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 0.54rem;
  font-weight: 700;
  white-space: nowrap;
}

.sr-card-gw-chip.has-live,
.sr-card-gw-chip.is-live {
  background: rgba(16, 185, 129, 0.24);
  color: #34d399;
}

.sr-card-gw-chip.is-current {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.sr-card-gw-chip.is-final {
  background: rgba(251, 191, 36, 0.22);
  color: #fcd34d;
}

/* ============================================================================
   3. HORIZONTAL CONVEYOR BELT REEL
   ============================================================================ */
.sr-conveyor-section {
  position: relative;
  border-radius: 22px;
  padding: 1.25rem 1.2rem 1.4rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(9, 15, 28, 0.98), rgba(6, 10, 20, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.sr-conveyor-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.sr-conveyor-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.sr-topbar-right-btns {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sr-heading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.75);
  flex-shrink: 0;
}

.sr-ui-ic {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sr-mini-ic {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sr-btn-ic {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sr-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.sr-sound-btn:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.38);
  color: #ffffff;
}

.sr-conveyor-viewport {
  position: relative;
  width: 100%;
  height: 254px;
  border-radius: 16px;
  background: #050913;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 12px 28px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sr-conveyor-viewport::before,
.sr-conveyor-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 105px;
  z-index: 8;
  pointer-events: none;
}

.sr-conveyor-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #050913 8%, transparent 100%);
}

.sr-conveyor-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #050913 8%, transparent 100%);
}

.sr-laser-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fbbf24 0%, rgba(251, 191, 36, 0.72) 50%, #fbbf24 100%);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8), 0 0 2px rgba(255, 255, 255, 0.5);
  z-index: 10;
  pointer-events: none;
}

.sr-laser-chevron-top,
.sr-laser-chevron-bot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.75));
  pointer-events: none;
}

.sr-laser-chevron-top {
  top: 0;
  border-top: 12px solid #fbbf24;
}

.sr-laser-chevron-bot {
  bottom: 0;
  border-bottom: 12px solid #fbbf24;
}

.sr-conveyor-track {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.sr-conveyor-track.is-idle-gliding {
  width: max-content;
  padding: 0 12px 0 0;
  animation: srIdleConveyorGlide 135s linear infinite;
}

@keyframes srIdleConveyorGlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.sr-controls-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  text-align: center;
}

/* Executive Pro Spin CTA Button: Solid Platinum on Dark (Zero AI Rainbow Gradients) */
.sr-spin-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 280px;
  min-height: 48px;
  padding: 0.82rem 1.65rem;
  border-radius: 12px;
  border: 1px solid #ffffff;
  background: #f8fafc;
  color: #0b0f19;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.65);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
}

.sr-spin-cta-btn:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .sr-spin-cta-btn:not(:disabled) {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.sr-spin-cta-btn:disabled {
  cursor: not-allowed;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  box-shadow: none;
}

[data-theme="light"] .sr-spin-cta-btn:disabled {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.14);
  color: #475569;
}

.sr-spin-subnote {
  font-size: 0.76rem;
  color: #94a3b8;
  max-width: 580px;
  line-height: 1.4;
}

/* ============================================================================
   4. DESKTOP BOUNDED LEADERBOARD, PULLS & 50-CARD POOL EXPLORER
   ============================================================================ */
.sr-bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}

.sr-card-panel {
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card, rgba(13, 21, 38, 0.92));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.09));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.sr-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sr-panel-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sr-archive-link {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.sr-archive-link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.sr-lb-scroll-box {
  max-height: 336px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

[data-theme="light"] .sr-lb-scroll-box {
  border-color: rgba(15, 23, 42, 0.08);
}

.sr-lb-scroll-box::-webkit-scrollbar,
.sr-pulls-list::-webkit-scrollbar,
.sr-sheet-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sr-lb-scroll-box::-webkit-scrollbar-thumb,
.sr-pulls-list::-webkit-scrollbar-thumb,
.sr-sheet-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.sr-lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sr-lb-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: left;
  padding: 0.55rem 0.58rem;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: #0d1628;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .sr-lb-table thead th {
  background: #f8fafc;
}

.sr-lb-table td {
  padding: 0.56rem 0.58rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

[data-theme="light"] .sr-lb-table td {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.sr-lb-row.is-me {
  background: rgba(16, 185, 129, 0.12);
}

.sr-lb-player-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.sr-lb-mini-cutout {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  object-position: top center;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.4);
  flex-shrink: 0;
}

.sr-lb-mob-list {
  display: none;
}

@media (max-width: 768px) {
  .sr-lb-scroll-box {
    display: none;
  }

  .sr-lb-mob-list {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    width: 100%;
    overflow-x: hidden;
  }

  .sr-lb-mob-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.58rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .sr-lb-mob-row.is-me {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.32);
  }

  .sr-lb-mob-rank {
    font-size: 0.84rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
  }

  .sr-lb-mob-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sr-lb-mob-mgr {
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sr-lb-mob-card {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sr-lb-mob-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'JetBrains Mono', monospace;
  }

  .sr-lb-mob-score {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .sr-lb-mob-meta {
    font-size: 0.62rem;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .sr-sheet-body {
    overflow-x: hidden;
    padding: 0.75rem 0.78rem 1rem;
  }
}

.sr-pulls-list {
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  max-height: 336px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.sr-pull-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.52rem 0.68rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  flex-shrink: 0;
}

[data-theme="light"] .sr-pull-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.07);
}

.sr-tier-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.sr-tier-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 800;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.sr-tier-chip.is-active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.55);
  color: #34d399;
}

.sr-pool50-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 0.8rem;
}

/* ============================================================================
   5. MODALS & MOBILE QUICK-INFO POPUP SHEETS
   ============================================================================ */
.sr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(3, 7, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  animation: srFadeIn 0.2s ease;
}

@keyframes srFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sr-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 1.4rem 1.3rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 185, 129, 0.24), transparent 58%),
    linear-gradient(165deg, #0d172a, #070d19);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 26px 64px -12px rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  color: #ffffff;
}

/* Popup Info Sheet (Standings / 50 Cards / Pulls / Rules) */
.sr-sheet-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 86dvh;
  border-radius: 20px;
  background: linear-gradient(170deg, #0d172a, #070d19);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 26px 64px -12px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f8fafc;
}

.sr-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
}

.sr-sheet-head h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.sr-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-sheet-body {
  padding: 0.9rem 1rem 1.1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sr-reveal-pop {
  animation: srCardPop 0.55s cubic-bezier(0.22, 1.28, 0.36, 1);
}

@keyframes srCardPop {
  0% { transform: scale(0.55) rotateY(-28deg); opacity: 0; }
  100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

.sr-modal-actions {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.sr-modal-btn {
  flex: 1;
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.sr-modal-btn.is-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(110, 231, 183, 0.65);
  color: #ffffff;
}

.sr-modal-btn.is-danger-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: rgba(253, 224, 71, 0.55);
  color: #ffffff;
}

/* ============================================================================
   6. ZERO-SCROLL SINGLE-SCREEN MOBILE ARCADE HUD (<= 768px)
   ============================================================================ */
@media (max-width: 768px) {
  #view-spin {
    padding-bottom: 0;
  }

  /* Hide heavy desktop multi-section layout so there is ZERO page scrolling on phone! */
  .sr-hero-grid,
  .sr-bottom-grid,
  .sr-pool-panel {
    display: none !important;
  }

  .sr-page-wrap {
    padding: 0.75rem 0.72rem 1rem;
    gap: 0.72rem;
    justify-content: flex-start;
  }

  /* Row 1: Clean 2-Row Mobile Prize Header + Full-Width 4-Button Grid (Zero Overlap!) */
  .sr-mobile-hud-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.72rem 0.78rem;
    border-radius: 15px;
    background: #0d1424;
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  [data-theme="light"] .sr-mobile-hud-top {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
  }

  .sr-mhud-prize {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    cursor: pointer;
  }

  .sr-mhud-gem-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    mix-blend-mode: lighten;
    mask-image: radial-gradient(circle at 50% 50%, black 48%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 48%, transparent 76%);
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.5));
  }

  [data-theme="light"] .sr-mhud-gem-img {
    mix-blend-mode: normal;
  }

  .sr-mhud-prize-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .sr-mhud-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1;
  }

  .sr-mhud-prize-txt strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.015em;
  }

  .sr-mhud-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
    width: 100%;
  }

  .sr-mhud-icon-btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.58);
    color: #e2e8f0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    padding: 0;
    transition: background-color 140ms ease, border-color 140ms ease;
  }

  .sr-mhud-icon-btn:active,
  .sr-mhud-icon-btn:hover {
    background: rgba(51, 65, 85, 0.78);
    border-color: rgba(203, 213, 225, 0.38);
  }

  [data-theme="light"] .sr-mhud-icon-btn {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
  }

  .sr-mhud-icon-btn .sr-ui-ic {
    width: 16px;
    height: 16px;
    color: #cbd5e1;
  }

  [data-theme="light"] .sr-mhud-icon-btn .sr-ui-ic {
    color: #334155;
  }

  .sr-mhud-icon-btn small {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #94a3b8;
    line-height: 1;
  }

  /* Row 2: Active Vault Strip (Tappable to inspect card) */
  .sr-mobile-held-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.66rem 0.78rem;
    border-radius: 14px;
    background: #0d1424;
    border: 1px solid rgba(148, 163, 184, 0.18);
    cursor: pointer;
  }

  [data-theme="light"] .sr-mobile-held-strip {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
  }

  .sr-mheld-left {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 0;
  }

  .sr-mheld-empty-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    flex-shrink: 0;
  }

  .sr-mheld-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.34);
    flex-shrink: 0;
  }

  .sr-mheld-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    flex-shrink: 0;
  }

  /* Row 3: Cohesive Conveyor Unit (Spin Button Directly Beneath Cards!) */
  .sr-conveyor-section {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 0.85rem 0.78rem 0.98rem;
    border-radius: 16px;
    gap: 0.76rem;
  }

  .sr-conveyor-topbar {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .sr-conveyor-heading {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .sr-sound-btn {
    padding: 0.3rem 0.58rem;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .sr-conveyor-viewport {
    flex: 0 0 auto;
    height: clamp(216px, 31dvh, 254px);
    border-radius: 13px;
  }

  .sr-conveyor-viewport::before,
  .sr-conveyor-viewport::after {
    width: 28px;
  }

  .sr-conveyor-track {
    gap: 10px;
    padding: 0 14px;
  }

  .sr-conveyor-track.is-idle-gliding {
    padding: 0 10px 0 0;
  }

  .sr-conveyor-track .sr-sowin-card {
    --card-w: 142px;
    --card-h: 204px;
  }

  .sr-conveyor-track .sr-card-player-name {
    font-size: 0.74rem;
  }

  .sr-conveyor-track .sr-card-figure-wrap {
    top: 21px;
    bottom: 51px;
  }

  .sr-controls-bar {
    gap: 0.46rem;
    margin-top: 0.14rem;
  }

  .sr-spin-cta-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0.8rem 1rem;
    font-size: 0.94rem;
    border-radius: 12px;
  }

  .sr-spin-subnote {
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .sr-pool50-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .sr-sowin-card.is-size-grid {
    --card-h: 198px;
  }

  .sr-sowin-card.is-size-modal {
    --card-w: 192px;
    --card-h: 276px;
  }
}


/* ============================================================================
   7. DEDICATED LUCKY REEL GUEST LOGIN STAGE (`/spin` when unauthenticated)
   ============================================================================ */
.sr-sowin-card.is-size-guest-preview {
  --card-w: 138px;
  --card-h: 198px;
}

.sr-guest-login-shell {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.35rem 1.45rem;
  background:
    radial-gradient(620px 340px at 22% 24%, rgba(16, 185, 129, 0.14), transparent 65%),
    radial-gradient(540px 320px at 84% 26%, rgba(251, 191, 36, 0.14), transparent 64%),
    linear-gradient(145deg, #090e1c 0%, #0f172a 55%, #09131c 100%);
  border: 1px solid rgba(251, 191, 36, 0.24);
  box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.72);
  color: #f8fafc;
}

.sr-guest-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.sr-guest-brand {
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

.sr-guest-wheel-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(251, 191, 36, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.sr-guest-brand strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.sr-guest-brand span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.sr-guest-free-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #6ee7b7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sr-guest-peek-icons {
  display: flex;
  gap: 0.42rem;
}

.sr-guest-peek-icons .sr-mhud-icon-btn {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
  padding: 0.36rem 0.62rem;
  min-width: 58px;
}

.sr-guest-peek-icons .sr-mhud-icon-btn:hover {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(30, 41, 59, 0.92);
}

.sr-guest-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.94fr);
  gap: 1.25rem;
  align-items: stretch;
}

.sr-guest-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 0;
}

.sr-guest-prize-banner {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.9rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.52), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(52, 211, 153, 0.42);
}

.sr-guest-gem-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(16, 185, 129, 0.55));
}

.sr-guest-prize-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6ee7b7;
  text-transform: uppercase;
}

.sr-guest-prize-title {
  font-size: 1.32rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sr-guest-prize-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 0.14rem;
}

.sr-guest-conveyor-frame {
  position: relative;
  height: 228px;
  border-radius: 16px;
  background: #050811;
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.85);
}

.sr-guest-conveyor-frame::before,
.sr-guest-conveyor-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 6;
  pointer-events: none;
}

.sr-guest-conveyor-frame::before {
  left: 0;
  background: linear-gradient(90deg, #050811 8%, transparent 100%);
}

.sr-guest-conveyor-frame::after {
  right: 0;
  background: linear-gradient(270deg, #050811 8%, transparent 100%);
}

.sr-guest-conveyor-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  width: max-content;
  animation: srGuestConveyorGlide 34s linear infinite;
}

@keyframes srGuestConveyorGlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.sr-guest-auth-card {
  border-radius: 18px;
  padding: 1.45rem 1.4rem;
  background: linear-gradient(160deg, rgba(19, 28, 49, 0.96), rgba(11, 17, 32, 0.98));
  border: 1.5px solid rgba(251, 191, 36, 0.36);
  box-shadow: 0 18px 42px -16px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sr-guest-auth-card.is-pulse-focus {
  animation: srAuthFocusPulse 0.9s ease;
}

@keyframes srAuthFocusPulse {
  0%, 100% { box-shadow: 0 18px 42px -16px rgba(0, 0, 0, 0.75); }
  50% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.68), 0 20px 48px rgba(251, 191, 36, 0.25); }
}

.sr-guest-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fde68a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  width: fit-content;
}

.sr-guest-auth-title {
  margin: 0.72rem 0 0;
  font-size: 1.62rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.sr-guest-auth-title span {
  display: block;
  background: linear-gradient(92deg, #fde68a 0%, #fbbf24 48%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sr-guest-auth-desc {
  margin: 0.62rem 0 0;
  font-size: 0.83rem;
  line-height: 1.48;
  color: #cbd5e1;
}

.sr-guest-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.82rem;
}

.sr-guest-perk {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

.sr-guest-error-banner {
  margin-top: 0.75rem;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
  font-size: 0.76rem;
  font-weight: 700;
}

.sr-guest-oauth-btn {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.82rem 1.05rem;
  border-radius: 12px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #ffffff;
  color: #0b0f19;
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.65);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.sr-guest-oauth-btn:hover {
  transform: translateY(-1.5px);
  background: #ffffff;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.75);
}

.sr-guest-oauth-left {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.sr-guest-oauth-ball {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  flex-shrink: 0;
}

.sr-guest-oauth-txt strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 800;
  color: #0b0f19;
}

.sr-guest-oauth-txt small {
  display: block;
  font-size: 0.69rem;
  color: #475569;
  font-weight: 600;
}

.sr-guest-oauth-arrow {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0b0f19;
}

.sr-guest-terms {
  margin: 0.72rem 0 0;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

.sr-guest-terms a {
  color: #fcd34d;
  text-decoration: underline;
}

.sr-guest-connecting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding: 2rem 1rem;
}

.sr-guest-connecting.hidden {
  display: none !important;
}

.sr-guest-conn-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, 0.22);
  border-top-color: #fbbf24;
  animation: srConnSpin 0.75s linear infinite;
}

@keyframes srConnSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
  .sr-guest-login-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .sr-page-wrap.is-guest-login-mode {
    padding: 0.55rem 0.65rem 0.75rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sr-guest-login-shell {
    height: auto;
    padding: 0.68rem 0.7rem;
    border-radius: 16px;
    gap: 0.55rem;
    justify-content: flex-start;
  }

  .sr-guest-topbar {
    flex-wrap: nowrap;
    padding-bottom: 0.48rem;
    gap: 0.4rem;
  }

  .sr-guest-brand {
    min-width: 0;
    gap: 0.45rem;
  }

  .sr-guest-wheel-badge {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .sr-guest-brand strong {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .sr-guest-brand span {
    display: none;
  }

  .sr-guest-free-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #6ee7b7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sr-guest-peek-icons {
    gap: 0.28rem;
    flex-shrink: 0;
  }

  .sr-guest-peek-icons .sr-mhud-icon-btn {
    width: 40px;
    height: 36px;
    min-width: 40px;
    padding: 0;
  }

  .sr-guest-login-grid {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .sr-guest-showcase {
    gap: 0.52rem;
    flex: 0 0 auto;
    min-width: 0;
  }

  .sr-guest-prize-banner {
    padding: 0.5rem 0.65rem;
    gap: 0.55rem;
    border-radius: 12px;
  }

  .sr-guest-gem-img {
    width: 38px;
    height: 38px;
    mix-blend-mode: lighten;
    mask-image: radial-gradient(circle at 50% 50%, black 48%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 48%, transparent 76%);
  }

  .sr-guest-prize-title {
    font-size: 0.94rem;
  }

  .sr-guest-prize-sub {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.64rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sr-guest-conveyor-frame {
    flex: 0 0 auto;
    width: 100%;
    height: 162px;
    border-radius: 12px;
  }

  .sr-sowin-card.is-size-guest-preview {
    --card-w: 108px;
    --card-h: 152px;
  }

  .sr-sowin-card.is-size-guest-preview .sr-card-figure-wrap {
    top: 17px;
    bottom: 42px;
  }

  .sr-sowin-card.is-size-guest-preview .sr-card-player-name {
    font-size: 0.62rem;
  }

  .sr-guest-auth-card {
    padding: 0.78rem 0.82rem;
    border-radius: 14px;
  }

  .sr-guest-auth-kicker,
  .sr-guest-perks-row {
    display: none;
  }

  .sr-guest-auth-title {
    margin-top: 0;
    font-size: 1.12rem;
  }

  .sr-guest-auth-desc {
    margin-top: 0.28rem;
    font-size: 0.71rem;
    line-height: 1.32;
  }

  .sr-guest-oauth-btn {
    margin-top: 0.58rem;
    padding: 0.68rem 0.85rem;
    border-radius: 12px;
  }

  .sr-guest-oauth-ball {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .sr-guest-oauth-txt strong {
    font-size: 0.86rem;
  }

  .sr-guest-oauth-txt small {
    font-size: 0.64rem;
  }

  .sr-guest-terms {
    margin-top: 0.42rem;
    font-size: 0.62rem;
  }
}

/* ============================================================================
   8. COMPREHENSIVE LIGHT MODE POLISH (`[data-theme="light"]`)
   ============================================================================ */
[data-theme="light"] .sr-conveyor-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 62%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 34px -16px rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .sr-conveyor-heading {
  color: #0f172a;
}

[data-theme="light"] .sr-sound-btn {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
  color: #334155;
}

[data-theme="light"] .sr-sound-btn:hover {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.24);
  color: #0f172a;
}

[data-theme="light"] .sr-conveyor-viewport {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.72), 0 8px 20px -12px rgba(15, 23, 42, 0.28);
}

[data-theme="light"] .sr-spin-subnote {
  color: #475569;
}

[data-theme="light"] .sr-card-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .sr-tier-chip {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .sr-tier-chip.is-active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(5, 150, 105, 0.45);
  color: #047857;
}

/* Light Mode Sheets & Modals */
[data-theme="light"] .sr-sheet-card,
[data-theme="light"] .sr-modal-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 24px 56px -14px rgba(15, 23, 42, 0.28);
  color: #0f172a;
}

[data-theme="light"] .sr-sheet-head {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .sr-sheet-head h3 {
  color: #0f172a;
}

[data-theme="light"] .sr-sheet-close {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .sr-modal-btn:not(.is-primary):not(.is-danger-gold) {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

/* Light Mode Mobile HUD & Standings Rows */
[data-theme="light"] .sr-mhud-eyebrow {
  color: #64748b;
}

[data-theme="light"] .sr-mhud-icon-btn small {
  color: #475569;
}

[data-theme="light"] .sr-mheld-link {
  color: #334155;
}

[data-theme="light"] .sr-mheld-empty-ic {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .sr-lb-mob-row {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .sr-lb-mob-row.is-me {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
}

[data-theme="light"] .sr-lb-mob-mgr,
[data-theme="light"] .sr-lb-mob-rank {
  color: #0f172a;
}

/* Light Mode Guest Login Stage */
[data-theme="light"] .sr-guest-login-shell {
  background:
    radial-gradient(620px 340px at 22% 24%, rgba(16, 185, 129, 0.1), transparent 65%),
    radial-gradient(540px 320px at 84% 26%, rgba(245, 158, 11, 0.1), transparent 64%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 20px 44px -18px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

[data-theme="light"] .sr-guest-topbar {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .sr-guest-brand strong {
  color: #0f172a;
}

[data-theme="light"] .sr-guest-brand span,
[data-theme="light"] .sr-guest-auth-desc,
[data-theme="light"] .sr-guest-prize-sub,
[data-theme="light"] .sr-guest-terms {
  color: #475569;
}

[data-theme="light"] .sr-guest-prize-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(248, 250, 252, 0.96));
  border-color: rgba(5, 150, 105, 0.32);
}

[data-theme="light"] .sr-guest-prize-kicker {
  color: #047857;
}

[data-theme="light"] .sr-guest-prize-title {
  color: #0f172a;
}

[data-theme="light"] .sr-guest-auth-card {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.32);
  box-shadow: 0 14px 32px -14px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .sr-guest-auth-kicker {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

[data-theme="light"] .sr-guest-auth-title {
  color: #0f172a;
}

[data-theme="light"] .sr-guest-perk {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

[data-theme="light"] .sr-guest-oauth-btn {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .sr-guest-oauth-btn:hover {
  background: #1e293b;
}

[data-theme="light"] .sr-guest-oauth-ball {
  background: rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .sr-guest-oauth-txt strong,
[data-theme="light"] .sr-guest-oauth-arrow {
  color: #ffffff;
}

[data-theme="light"] .sr-guest-oauth-txt small {
  color: #cbd5e1;
}

[data-theme="light"] .sr-guest-terms a {
  color: #b45309;
}

[data-theme="light"] .sr-guest-peek-icons .sr-mhud-icon-btn {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

/* Phone: the reel fills the space under the header and above the bottom nav. */
@media (max-width: 768px) {
  body[data-active-view="spin"] {
    overflow: hidden;
  }

  body[data-active-view="spin"] .app-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: calc(100dvh - 53px);
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
  }

  body:not(.is-guest)[data-active-view="spin"] .app-container {
    height: calc(100dvh - 53px - 58px - env(safe-area-inset-bottom, 0px));
  }

  body[data-active-view="spin"] #view-spin,
  body[data-active-view="spin"] #spin-reel-root,
  body[data-active-view="spin"] .sr-page-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
  }

  body[data-active-view="spin"] .sr-page-wrap {
    padding: 0.38rem 0.42rem 0.42rem;
    gap: 0.38rem;
    box-sizing: border-box;
  }

  body[data-active-view="spin"] .sr-mobile-hud-top,
  body[data-active-view="spin"] .sr-mobile-held-strip,
  body[data-active-view="spin"] .sr-conveyor-topbar,
  body[data-active-view="spin"] .sr-controls-bar {
    flex: 0 0 auto;
  }

  body[data-active-view="spin"] .sr-conveyor-section {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.5rem 0.5rem 0.55rem;
    gap: 0.38rem;
  }

  body[data-active-view="spin"] .sr-conveyor-viewport {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  body[data-active-view="spin"] .sr-conveyor-track {
    height: 100%;
    align-items: center;
  }

  body[data-active-view="spin"] .sr-conveyor-track .sr-sowin-card {
    height: min(248px, calc(100% - 12px));
    width: auto;
    aspect-ratio: 142 / 204;
    max-height: calc(100% - 12px);
  }

  body[data-active-view="spin"] .sr-page-wrap.is-guest-login-mode {
    padding: 0.32rem 0.36rem calc(0.32rem + env(safe-area-inset-bottom, 0px));
  }

  body[data-active-view="spin"] .sr-guest-login-shell {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    gap: 0.42rem;
  }

  body[data-active-view="spin"] .sr-guest-login-grid {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: space-between;
  }

  body[data-active-view="spin"] .sr-guest-showcase {
    flex: 0 1 auto;
    min-height: 0;
  }

  body[data-active-view="spin"] .sr-guest-prize-banner,
  body[data-active-view="spin"] .sr-guest-auth-card,
  body[data-active-view="spin"] .sr-guest-topbar {
    flex: 0 0 auto;
  }

  body[data-active-view="spin"] .sr-guest-conveyor-frame {
    flex: 0 1 auto;
    height: clamp(132px, 28dvh, 214px);
    min-height: 132px;
  }

  body[data-active-view="spin"] .sr-guest-conveyor-track {
    height: 100%;
  }

  body[data-active-view="spin"] .sr-sowin-card.is-size-guest-preview {
    height: min(188px, calc(100% - 12px));
    width: auto;
    aspect-ratio: 108 / 152;
    max-height: calc(100% - 12px);
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  body[data-active-view="spin"] .sr-guest-auth-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body[data-active-view="spin"] .sr-mhud-icon-btn {
    height: 40px;
  }

  body[data-active-view="spin"] .sr-spin-cta-btn {
    min-height: 46px;
  }
}

@media (max-width: 360px) {
  body[data-active-view="spin"] .sr-guest-free-badge {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.42rem;
  }

  body[data-active-view="spin"] .sr-guest-brand strong {
    font-size: 0.76rem;
  }
}
