:root {
  --bg-0: #080809;
  --bg-1: #12151a;
  --gold: #e8b949;
  --gold-soft: #f4d47a;
  --red: #a82020;
  --cream: #f6f0dd;
  --cyan: #5ec3d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--cream);
  background: #080809;
  overflow: hidden;
}

body.theme-2 {
  color: #1f1f23;
  background: transparent;
}

body.theme-3 {
  color: #eaf9ff;
  background: transparent;
}

body.theme-4 {
  color: #ecfff2;
  background: transparent;
}

body.theme-5 {
  color: #1f4e6b;
  background: transparent;
}

body.theme-5 .bg-video {
  filter: grayscale(0.08) contrast(0.94) brightness(1.05);
}

body.theme-5 .video-overlay {
  background: linear-gradient(160deg, rgba(245, 250, 255, 0.68), rgba(203, 232, 247, 0.45));
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 8, 9, 0.5), rgba(18, 21, 26, 0.58));
  z-index: -2;
}

body.theme-2 .background-glow {
  opacity: 0.62;
  filter: blur(22px);
}

body.theme-3 .background-glow {
  opacity: 0.48;
  filter: blur(22px);
  background: repeating-radial-gradient(circle at center, rgba(31, 114, 255, 0.18) 0 18px, transparent 18px 54px);
}

body.theme-4 .background-glow {
  opacity: 0.5;
  filter: blur(22px);
  background: repeating-radial-gradient(circle at center, rgba(28, 164, 109, 0.16) 0 18px, transparent 18px 54px);
}

body.theme-5 .background-glow {
  opacity: 0.28;
  filter: blur(20px);
  background: repeating-radial-gradient(circle at center, rgba(97, 185, 227, 0.18) 0 18px, transparent 18px 54px);
}

body.theme-2 .kicker {
  color: #8f4f00;
}

body.theme-2 h1 {
  color: #b86500;
  text-shadow: 0 0 18px rgba(255, 172, 53, 0.35);
}

body.theme-2 .subtitle {
  color: rgba(40, 46, 58, 0.88);
}

body.theme-3 .kicker {
  color: #6acfff;
}

body.theme-3 h1 {
  color: #58a8ff;
  text-shadow: 0 0 18px rgba(88, 168, 255, 0.32);
}

body.theme-3 .subtitle {
  color: rgba(233, 248, 255, 0.9);
}

body.theme-4 .kicker {
  color: #8bf0b8;
}

body.theme-4 h1 {
  color: #5ef0a0;
  text-shadow: 0 0 18px rgba(94, 240, 160, 0.32);
}

body.theme-4 .subtitle {
  color: rgba(234, 255, 242, 0.92);
}

body.theme-5 .kicker {
  color: #69bfe8;
}

body.theme-5 h1 {
  color: #3a9ed0;
  text-shadow: 0 0 16px rgba(105, 191, 232, 0.28);
}

body.theme-5 .subtitle {
  color: rgba(31, 78, 107, 0.88);
}

body.theme-2 .winner-board,
body.theme-2 .rolling-prizes,
body.theme-2 .roulette-stage,
body.theme-2 .final-prize {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(196, 118, 0, 0.36);
  box-shadow: 0 10px 30px rgba(255, 172, 53, 0.12);
}

body.theme-3 .winner-board,
body.theme-3 .rolling-prizes,
body.theme-3 .roulette-stage,
body.theme-3 .final-prize {
  background: rgba(11, 25, 44, 0.7);
  border: 1px solid rgba(88, 168, 255, 0.36);
  box-shadow: 0 10px 30px rgba(88, 168, 255, 0.12);
}

body.theme-4 .winner-board,
body.theme-4 .rolling-prizes,
body.theme-4 .roulette-stage,
body.theme-4 .final-prize {
  background: rgba(10, 28, 18, 0.72);
  border: 1px solid rgba(94, 240, 160, 0.34);
  box-shadow: 0 10px 30px rgba(94, 240, 160, 0.12);
}

body.theme-5 .winner-board,
body.theme-5 .rolling-prizes,
body.theme-5 .roulette-stage,
body.theme-5 .final-prize {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(105, 191, 232, 0.34);
  box-shadow: 0 10px 30px rgba(105, 191, 232, 0.1);
}

body.theme-2 .winner-number,
body.theme-2 .final-prize-box {
  border: 1px dashed rgba(121, 86, 21, 0.36);
  background: radial-gradient(circle at center, rgba(255, 194, 130, 0.34), rgba(255, 255, 255, 0.66));
}

body.theme-3 .winner-number,
body.theme-3 .final-prize-box {
  border: 1px dashed rgba(100, 196, 255, 0.38);
  background: radial-gradient(circle at center, rgba(100, 196, 255, 0.3), rgba(255, 255, 255, 0.14));
}

body.theme-4 .winner-number,
body.theme-4 .final-prize-box {
  border: 1px dashed rgba(94, 240, 160, 0.38);
  background: radial-gradient(circle at center, rgba(94, 240, 160, 0.26), rgba(255, 255, 255, 0.14));
}

body.theme-5 .winner-number,
body.theme-5 .final-prize-box {
  border: 1px dashed rgba(105, 191, 232, 0.42);
  background: radial-gradient(circle at center, rgba(181, 234, 255, 0.72), rgba(255, 255, 255, 0.92));
}

body.theme-2 .winner-number {
  color: #8f4f00;
}

body.theme-3 .winner-number {
  color: #8ae1ff;
}

body.theme-4 .winner-number {
  color: #7ef3b7;
}

body.theme-5 .winner-number {
  color: #1f4e6b;
}

body.theme-2 .final-prize-box {
  color: #0f5473;
}

body.theme-3 .final-prize-box {
  color: #d9f6ff;
}

body.theme-4 .final-prize-box {
  color: #dafdea;
}

body.theme-5 .final-prize-box {
  color: #1f4e6b;
}

body.theme-2 .prize-card {
  background: linear-gradient(145deg, rgba(14, 15, 20, 0.92), rgba(28, 18, 18, 0.94));
  border: 1px solid rgba(196, 118, 0, 0.52);
}

body.theme-3 .prize-card {
  background: linear-gradient(145deg, rgba(9, 20, 36, 0.94), rgba(11, 34, 54, 0.95));
  border: 1px solid rgba(88, 168, 255, 0.52);
}

body.theme-4 .prize-card {
  background: linear-gradient(145deg, rgba(7, 27, 18, 0.94), rgba(10, 40, 28, 0.95));
  border: 1px solid rgba(94, 240, 160, 0.5);
}

body.theme-5 .prize-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 244, 255, 0.96));
  border: 1px solid rgba(105, 191, 232, 0.42);
}

body.theme-2 .prize-label {
  color: #f7f0de;
}

body.theme-3 .prize-label {
  color: #eaf9ff;
}

body.theme-4 .prize-label {
  color: #ecfff2;
}

body.theme-5 .prize-label {
  color: #1f4e6b;
}

body.theme-2 .icon {
  opacity: 0.36;
}

body.theme-3 .icon {
  opacity: 0.32;
}

body.theme-4 .icon {
  opacity: 0.32;
}

body.theme-5 .icon {
  opacity: 0.38;
}

.background-glow {
  position: fixed;
  inset: -20%;
  background:
    repeating-radial-gradient(circle at center, rgba(168, 32, 32, 0.15) 0 20px, transparent 20px 56px);
  filter: blur(26px);
  opacity: 0.46;
  animation: pulse 6s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes pulse {
  to {
    transform: scale(1.04);
    opacity: 0.5;
  }
}

.decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.icon {
  position: absolute;
  font-size: clamp(1.4rem, 4vw, 3rem);
  opacity: 0.26;
  filter: drop-shadow(0 0 14px rgba(232, 185, 73, 0.45));
  animation: drift 5.3s ease-in-out infinite, sway 3.2s ease-in-out infinite, hueWave 8s linear infinite;
}

.icon:nth-child(1) { top: 8%; left: 8%; animation-delay: 0s; }
.icon:nth-child(2) { top: 20%; left: 84%; animation-delay: 1.4s; }
.icon:nth-child(3) { top: 70%; left: 10%; animation-delay: 2s; }
.icon:nth-child(4) { top: 78%; left: 74%; animation-delay: 3.2s; }
.icon:nth-child(5) { top: 44%; left: 90%; animation-delay: 4.6s; }
.icon:nth-child(6) { top: 42%; left: 4%; animation-delay: 5.2s; }
.icon:nth-child(7) { top: 14%; left: 50%; animation-delay: 0.8s; }
.icon:nth-child(8) { top: 60%; left: 40%; animation-delay: 2.6s; }
.icon:nth-child(9) { top: 26%; left: 22%; animation-delay: 3.5s; }
.icon:nth-child(10) { top: 84%; left: 26%; animation-delay: 4.1s; }
.icon:nth-child(11) { top: 10%; left: 70%; animation-delay: 1.9s; }
.icon:nth-child(12) { top: 56%; left: 78%; animation-delay: 5.1s; }

@keyframes drift {
  0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0.96); }
  25% { transform: translateY(-18px) translateX(9px) rotate(8deg) scale(1.02); }
  50% { transform: translateY(10px) translateX(-11px) rotate(-6deg) scale(1); }
  75% { transform: translateY(-14px) translateX(6px) rotate(4deg) scale(1.04); }
  100% { transform: translateY(7px) translateX(-5px) rotate(-5deg) scale(0.98); }
}

@keyframes sway {
  0% { opacity: 0.14; }
  50% { opacity: 0.42; }
  100% { opacity: 0.18; }
}

@keyframes hueWave {
  0% { filter: drop-shadow(0 0 14px rgba(232, 185, 73, 0.45)) hue-rotate(0deg); }
  50% { filter: drop-shadow(0 0 16px rgba(94, 195, 217, 0.55)) hue-rotate(70deg); }
  100% { filter: drop-shadow(0 0 14px rgba(168, 32, 32, 0.55)) hue-rotate(0deg); }
}

.stage {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 2rem 1rem 7rem;
  transform: translateY(-5%);
  display: grid;
  gap: 1.2rem;
}

.hero {
  text-align: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-soft);
  margin: 0;
}

h1, h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  color: var(--gold);
  text-shadow: 0 0 24px rgba(232, 185, 73, 0.35);
}

.subtitle {
  margin: 0.7rem auto 0;
  max-width: 700px;
  color: rgba(246, 240, 221, 0.92);
  display: none;
}

.winner-board,
.rolling-prizes,
.roulette-stage,
.final-prize {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  background: rgba(15, 16, 18, 0.66);
  border: 1px solid rgba(232, 185, 73, 0.35);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  backdrop-filter: blur(3px);
}

.winner-board {
  margin-top: calc(5.6rem + 100px);
}

.rolling-prizes {
  margin-top: calc(7.5rem - 70px); /* subido 70px */
  width: 90%; /* ampliado 30% extra */
}

.final-prize {
  margin-top: 2.2rem;
}

body.prize-launch-layout .winner-board {
  margin-top: calc(8.2rem + 100px);
}

body.machine-only-layout .winner-board {
  margin-top: calc(5.6rem + 140px); /* subido 170px + bajado 100px */
}

body.machine-only-layout .rolling-prizes {
  margin-top: calc(7.5rem - 320px); /* subido 80px extra solo en modo solo maquina */
}

body.prize-launch-layout .final-prize {
  margin-top: 1rem;
  width: 98%;
}

body.mode1-prize-first-layout .final-prize {
  order: 1;
  margin-top: calc(1rem + 15px); /* subido 85px */
  width: 98%;
}

body.mode1-prize-first-layout .winner-board {
  order: 2;
  margin-top: calc(1.2rem + 15px); /* subido 85px + bajado 100px */
}

body.mode1-prize-first-layout.mode3-prize-offset-layout .final-prize {
  margin-top: calc(1rem + 115px); /* subido 85px */
}

.roulette-stage {
  text-align: center;
}

.roulette-shell {
  --roulette-size: min(78vw, 620px);
  position: relative;
  width: var(--roulette-size);
  height: calc(var(--roulette-size) + 78px);
  padding-top: 78px;
  margin: 1.2rem auto 0;
}

.roulette-wheel {
  position: relative;
  width: var(--roulette-size);
  height: var(--roulette-size);
  border-radius: 50%;
  border: 16px solid #0b3fae;
  box-shadow: 0 0 0 8px rgba(18, 68, 188, 0.3), 0 24px 46px rgba(0, 0, 0, 0.36);
  background: radial-gradient(circle at center, #163b93 0%, #102f72 72%, #0a2460 100%);
  overflow: hidden;
  transform: rotate(0deg);
}

.roulette-wheel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0) 0 58%, rgba(255, 255, 255, 0.08) 59% 100%),
    var(--roulette-gradient, conic-gradient(#ff4d5a 0deg 18deg, #ffd164 18deg 36deg));
}

.roulette-wheel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 0 0 6px rgba(255, 215, 120, 0.4),
    inset 0 0 14px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.roulette-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.roulette-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  min-height: 34px;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  letter-spacing: 0.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(12, 66, 175, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.22rem 0.42rem;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.24);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.roulette-label--dark {
  color: #0d4fd2;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(13, 79, 210, 0.22);
  text-shadow: none;
}

.roulette-pointer {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 40px;
  height: 74px;
  transform: translateX(-50%);
  z-index: 3;
}

.roulette-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: #ff4d5a;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 77, 90, 0.35);
}

.roulette-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 48px solid #ff4d5a;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
}

.roulette-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  margin-left: -52px;
  margin-top: -52px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #2d67ff 0%, #0f49cc 58%, #08318f 100%);
  border: 8px solid rgba(255, 255, 255, 0.88);
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: 2.35rem;
  color: #fff8da;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.theme-2 .roulette-wheel {
  border-color: #1c5be0;
  box-shadow: 0 0 0 10px rgba(28, 91, 224, 0.25), 0 24px 48px rgba(0, 0, 0, 0.16);
}

body.theme-3 .roulette-wheel {
  border-color: #2597ff;
  box-shadow: 0 0 0 10px rgba(37, 151, 255, 0.24), 0 24px 48px rgba(0, 0, 0, 0.16);
}

body.theme-4 .roulette-wheel {
  border-color: #25d07b;
  box-shadow: 0 0 0 10px rgba(37, 208, 123, 0.24), 0 24px 48px rgba(0, 0, 0, 0.16);
}

body.theme-5 .roulette-wheel {
  border-color: #69bfe8;
  box-shadow: 0 0 0 10px rgba(105, 191, 232, 0.18), 0 24px 48px rgba(0, 0, 0, 0.14);
}

body.theme-2 .roulette-hub {
  background: radial-gradient(circle at center, #4b7dff 0%, #1f57d7 58%, #123ba3 100%);
}

body.theme-3 .roulette-hub {
  background: radial-gradient(circle at center, #55b6ff 0%, #2478d6 58%, #12448f 100%);
}

body.theme-4 .roulette-hub {
  background: radial-gradient(circle at center, #66f0a5 0%, #23b66e 58%, #0f7d47 100%);
}

body.theme-5 .roulette-hub {
  background: radial-gradient(circle at center, #e9f8ff 0%, #a8ddf6 58%, #69bfe8 100%);
  color: #1f4e6b;
}

.rolling-prizes::before,
.rolling-prizes::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  pointer-events: none;
}

.rolling-prizes::before {
  background:
    radial-gradient(circle, rgba(255, 228, 147, 0.95) 0 3px, transparent 3.4px) 0 0 / 22px 22px,
    radial-gradient(circle, rgba(255, 94, 94, 0.72) 0 2px, transparent 2.5px) 11px 11px / 22px 22px;
  filter: drop-shadow(0 0 8px rgba(255, 196, 76, 0.55));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  padding: 8px;
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: marqueeMove 2s linear infinite;
}

.rolling-prizes::after {
  border: 1px solid rgba(255, 215, 120, 0.5);
  box-shadow: 0 0 16px rgba(255, 188, 77, 0.32), inset 0 0 14px rgba(168, 32, 32, 0.2);
  animation: marqueeGlow 1.35s ease-in-out infinite alternate;
}

@keyframes marqueeMove {
  0% {
    background-position: 0 0, 11px 11px;
  }
  100% {
    background-position: 22px 0, 33px 11px;
  }
}

@keyframes marqueeGlow {
  from {
    box-shadow: 0 0 10px rgba(255, 188, 77, 0.24), inset 0 0 10px rgba(168, 32, 32, 0.14);
  }
  to {
    box-shadow: 0 0 24px rgba(255, 215, 120, 0.5), inset 0 0 18px rgba(168, 32, 32, 0.32);
  }
}

.winner-number,
.final-prize-box {
  margin-top: 0.8rem;
  min-height: 82px;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 800;
  border: 1px dashed rgba(246, 240, 221, 0.34);
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(168, 32, 32, 0.15), rgba(0, 0, 0, 0.45));
  text-align: center;
}

.winner-number {
  color: var(--gold-soft);
}
  min-height: 66px;
.final-prize-box {
  color: #91f5ff;
  font-size: clamp(1.7rem, 5vw, 3.6rem);
  padding: 0.5rem;
}

.final-prize-box.final-prize-box--winner {
  color: #ff9d2e !important;
  text-shadow: 0 0 16px rgba(255, 157, 46, 0.32);
}

.prize-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;          /* escalado ×1.3×1.3 */
  width: min(100%, 1048px); /* escalado ×1.3×1.3 */
  margin-left: auto;
  margin-right: auto;
}

.prize-card {
  background: linear-gradient(145deg, rgba(232, 185, 73, 0.15), rgba(168, 32, 32, 0.16));
  border: 1px solid rgba(232, 185, 73, 0.4);
  border-radius: 21px;   /* escalado ×1.3×1.3 */
  min-height: 131px;     /* escalado ×1.3×1.3 */
  display: flex;
  align-items: center;
  gap: 1.1rem;           /* escalado ×1.3×1.3 */
  text-align: left;
  padding: 0.94rem 1.27rem; /* escalado ×1.3×1.3 */
  font-size: 1.69rem;    /* escalado ×1.3×1.3 */
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(232, 185, 73, 0);
  animation: prizePop 560ms ease-out both, prizePulse 1.8s ease-in-out infinite;
}

.prize-icon {
  font-size: 2.03rem; /* escalado ×1.3×1.3 */
  line-height: 1;
}

.prize-label {
  flex: 1;
}

.prize-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.24) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: sweep 1.8s ease-in-out infinite;
}

@keyframes prizePop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes prizePulse {
  0% { box-shadow: 0 0 0 rgba(232, 185, 73, 0); }
  50% { box-shadow: 0 0 18px rgba(232, 185, 73, 0.22); }
  100% { box-shadow: 0 0 0 rgba(232, 185, 73, 0); }
}

@keyframes sweep {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.start-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  background: linear-gradient(135deg, var(--gold), #cc8f1b);
  border: none;
  color: #1b1200;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ── IMAGEN TÍTULO (reemplaza <h1>Gana el Jackpot</h1>) ──────────────────
   Para revertir: en index.php, eliminar el <img class="hero-titulo-img">
   y descomentar el <h1>Gana el Jackpot</h1>, luego borrar este bloque.   */
.hero-titulo-img {
  display: block;
  margin: 0 auto;
  max-width: min(560px, 78vw);
  height: auto;
}

/* ── DECORACIÓN MAJESTIC (extremos superiores) ───────────────────────────
   Para revertir: en index.php, eliminar los dos <img class="deco-majestic">
   y borrar este bloque.                                                    */
.deco-majestic {
  position: fixed;
  top: 0;
  width: clamp(90px, 11vw, 180px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.deco-majestic--left  { left: 0; }
.deco-majestic--right { right: 0; }

.theme-switcher {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 185, 73, 0.4);
  background: rgba(10, 12, 18, 0.72);
  color: var(--cream);
  backdrop-filter: blur(5px);
}

.theme-switcher label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.theme-switcher select {
  border: 1px solid rgba(232, 185, 73, 0.55);
  border-radius: 999px;
  background: rgba(232, 185, 73, 0.15);
  color: #fff5dc;
  padding: 0.32rem 0.6rem;
  font-weight: 700;
}

body.theme-2 .theme-switcher {
  background: rgba(255, 255, 255, 0.78);
  color: #3a2b15;
  border-color: rgba(196, 118, 0, 0.5);
}

body.theme-3 .theme-switcher {
  background: rgba(10, 24, 42, 0.78);
  color: #eaf9ff;
  border-color: rgba(88, 168, 255, 0.5);
}

body.theme-4 .theme-switcher {
  background: rgba(10, 28, 18, 0.78);
  color: #ecfff2;
  border-color: rgba(94, 240, 160, 0.5);
}

body.theme-5 .theme-switcher {
  background: rgba(255, 255, 255, 0.86);
  color: #1f4e6b;
  border-color: rgba(105, 191, 232, 0.4);
}

body.theme-2 .theme-switcher select {
  background: rgba(255, 205, 109, 0.28);
  color: #3a2b15;
  border-color: rgba(196, 118, 0, 0.6);
}

body.theme-3 .theme-switcher select {
  background: rgba(82, 155, 255, 0.22);
  color: #eaf9ff;
  border-color: rgba(88, 168, 255, 0.6);
}

body.theme-4 .theme-switcher select {
  background: rgba(94, 240, 160, 0.2);
  color: #ecfff2;
  border-color: rgba(94, 240, 160, 0.6);
}

body.theme-5 .theme-switcher select {
  background: rgba(214, 242, 255, 0.92);
  color: #1f4e6b;
  border-color: rgba(105, 191, 232, 0.55);
}

body.theme-5 .start-btn {
  background: linear-gradient(140deg, #e9f8ff, #a8ddf6);
  color: #1f4e6b;
  border: 1px solid rgba(105, 191, 232, 0.35);
}

body.theme-5 .start-btn:hover {
  box-shadow: 0 0 16px rgba(105, 191, 232, 0.24);
}

.start-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stage-hidden {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-width: 0;
}

.stage-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 760px;
  pointer-events: auto;
  transition: opacity 380ms ease, transform 380ms ease, max-height 380ms ease;
}

/* Ajuste exclusivo para Smart TV: reduce tamano visual y sube paneles clave. */
body.tv-display-layout {
  width: 100% !important;
}

body.tv-display-layout .stage {
  transform: translateY(0) !important;
  padding: 0.6rem 0.9rem 2.2rem !important;
  gap: 0.35rem !important;
}

body.tv-display-layout .winner-board,
body.tv-display-layout .final-prize {
  width: min(45%, 760px) !important;
  padding: 0.28rem 0.55rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.tv-display-layout .winner-board {
  margin-top: 0.7rem !important;
}

body.tv-display-layout .final-prize {
  margin-top: 0.15rem !important;
}

body.tv-display-layout.prize-launch-layout .winner-board {
  margin-top: 0.9rem !important;
}

body.tv-display-layout.machine-only-layout .winner-board {
  margin-top: 0.65rem !important;
}

body.tv-display-layout .winner-number,
body.tv-display-layout .final-prize-box {
  min-height: 35px !important;
  margin-top: 0.1rem !important;
}

body.tv-display-layout .winner-number {
  font-size: clamp(0.9rem, 2.7vw, 2rem) !important;
}

body.tv-display-layout .final-prize-box {
  font-size: clamp(0.85rem, 2.2vw, 1.7rem) !important;
}

body.tv-display-layout .rolling-prizes {
  margin-top: 0.35rem !important;
  width: 52% !important;
}

body.tv-display-layout .prize-grid {
  margin-top: 0.28rem !important;
  gap: 0.45rem !important;
  width: min(100%, 920px) !important;
}

body.tv-display-layout .prize-card {
  min-height: 70px !important;
  padding: 0.3rem 0.65rem !important;
  gap: 0.55rem !important;
  border-radius: 14px !important;
  font-size: 1.12rem !important;
}

body.tv-display-layout .prize-icon {
  font-size: 1.4rem !important;
}

body.tv-display-layout .prize-label {
  line-height: 1.0 !important;
}

body.tv-display-layout .hero-titulo-img {
  max-width: min(320px, 38vw) !important;
}

/* Reducir ruleta a la mitad para TV */
body.tv-display-layout .roulette-shell {
  --roulette-size: min(39vw, 310px) !important;
  height: calc(var(--roulette-size) + 39px) !important;
  padding-top: 39px !important;
  margin: 0.8rem auto 0 !important;
}

body.tv-display-layout .roulette-wheel {
  border: 8px solid #0b3fae !important;
  box-shadow: 0 0 0 4px rgba(18, 68, 188, 0.3), 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

body.tv-display-layout .roulette-wheel::before {
  inset: 6px !important;
}

body.tv-display-layout .roulette-wheel::after {
  inset: 4px !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 0 0 3px rgba(255, 215, 120, 0.4), inset 0 0 7px rgba(0, 0, 0, 0.16) !important;
}

body.tv-display-layout .roulette-label {
  width: 25px !important;
  min-height: 17px !important;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem) !important;
  padding: 0.11rem 0.21rem !important;
  box-shadow: 0 1.5px 3.5px rgba(0, 0, 0, 0.24) !important;
}

body.tv-display-layout .roulette-pointer {
  width: 20px !important;
  height: 37px !important;
}

body.tv-display-layout .roulette-pointer::before {
  width: 10px !important;
  height: 10px !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 77, 90, 0.35) !important;
}
@media (min-width: 1024px) and (max-height: 900px) and (orientation: landscape) {
  .stage {
    transform: translateY(0) !important;
    padding: 0.6rem 0.9rem 2.2rem !important;
    gap: 0.35rem !important;
  }

  .winner-board,
  .final-prize {
    width: min(45%, 760px) !important;
    padding: 0.28rem 0.55rem !important;
  }

  .winner-board {
    margin-top: 0.7rem !important;
  }

  .final-prize {
    margin-top: 0.15rem !important;
  }

  .winner-number,
  .final-prize-box {
    min-height: 35px !important;
    margin-top: 0.1rem !important;
  }

  .winner-number {
    font-size: clamp(0.9rem, 2.7vw, 2rem) !important;
  }

  .final-prize-box {
    font-size: clamp(0.85rem, 2.2vw, 1.7rem) !important;
  }

  .prize-grid {
    margin-top: 0.28rem !important;
    gap: 0.45rem !important;
    width: min(100%, 920px) !important;
  }

  .prize-card {
    min-height: 70px !important;
    padding: 0.3rem 0.65rem !important;
    gap: 0.55rem !important;
    border-radius: 14px !important;
    font-size: 1.12rem !important;
  }

  .prize-icon {
    font-size: 1.4rem !important;
  }

  .prize-label {
    line-height: 1.0 !important;
  }

  body.prize-launch-layout .winner-board,
  body.machine-only-layout .winner-board,
  body.mode1-prize-first-layout .winner-board {
    margin-top: 0.7rem !important;
  }

  body.prize-launch-layout .final-prize,
  body.mode1-prize-first-layout .final-prize {
    margin-top: 0.1rem !important;
  }
}

@media (max-width: 840px) {
  .prize-grid {
    grid-template-columns: 1fr;
  }

  .winner-board,
  .rolling-prizes,
  .roulette-stage,
  .final-prize {
    width: 100%;
  }

  .stage {
    padding-bottom: 6.2rem;
  }

  .theme-switcher {
    left: 50%;
    transform: translateX(-50%);
    bottom: 5.2rem;
  }
}
