* { box-sizing: border-box; }

:root {
  --teal-950: #142f2c;
  --teal-900: #1c3f3b;
  --teal-800: #245b55;
  --teal-700: #2c645f;
  --teal-600: #396b66;
  --teal-500: #4f8781;
  --teal-400: #6fa39d;
  --mint-200: #bfe0d8;
  --mint-100: #d9efe9;
  --gold-300: #ffe4a3;
  --gold-500: #f9ce64;
  --gold-600: #d1a94a;
  --coral-300: #ff9f7a;
  --coral-500: #ff6b4a;
  --coral-600: #e6502f;
  --ink: #16302d;
  --white: #ffffff;

  --glass-bg: rgba(255,255,255,0.08);
  --glass-bg-soft: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { scrollbar-color: rgba(255,255,255,0.35) transparent; }

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: padding .2s var(--ease);
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(249,206,100,0.20), transparent 60%),
    radial-gradient(900px 700px at 108% 8%, rgba(111,163,157,0.40), transparent 55%),
    radial-gradient(1000px 800px at 50% 118%, rgba(20,47,44,0.75), transparent 60%),
    linear-gradient(160deg, var(--teal-700) 0%, var(--teal-600) 45%, var(--teal-900) 100%);
  background-attachment: fixed;
}
body:has(#screen-game.active) { padding: 0; }

h1, h2, h3, .title, #result-title, .btn-primary, .mode-btn, .spin-btn, .question-category, .modal-title, .turn-indicator {
  font-family: 'Sora', 'Segoe UI', Arial, sans-serif;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 1900px;
  min-height: calc(100vh - 32px);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 60%),
    linear-gradient(155deg, rgba(79,135,129,0.65) 0%, rgba(57,107,102,0.55) 45%, rgba(28,63,59,0.6) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  padding: clamp(12px, 2.6vh, 28px) clamp(16px, 3vw, 40px);
  overflow: hidden;
  transition: min-height .2s var(--ease), border-radius .2s var(--ease);
}
.phone:has(#screen-game.active) {
  min-height: 100vh;
  border-radius: 0;
}
#screen-start {
  max-width: 420px;
  margin: 0 auto;
}

.screen {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn .35s var(--ease);
}
.screen.active { display: flex; }
#screen-game.active { height: 100vh; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(.96);} to { opacity: 1; transform: translateY(0) scale(1);} }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 26px rgba(249,206,100,0.35), 0 0 0 0 rgba(249,206,100,0.35); }
  50% { box-shadow: 0 10px 26px rgba(249,206,100,0.45), 0 0 0 10px rgba(249,206,100,0); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- START SCREEN ---------- */
#screen-start {
  position: relative;
}
.start-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease);
}
.phone:has(#screen-start.active) .start-bg {
  opacity: 1;
  visibility: visible;
}
.start-bg span { position: absolute; display: block; line-height: 1; }

.bg-sun {
  top: 6%;
  right: 10%;
  font-size: clamp(48px, 6vw, 90px);
  filter: drop-shadow(0 0 24px rgba(249,206,100,0.55));
  animation: sunPulse 5s ease-in-out infinite;
}
.bg-earth {
  top: 62%;
  left: 8%;
  font-size: clamp(40px, 5vw, 68px);
  opacity: 0.85;
  animation: earthFloat 7s ease-in-out infinite, earthSpin 18s linear infinite;
}
.bg-cloud {
  font-size: clamp(28px, 3.4vw, 46px);
  opacity: 0.8;
  animation: cloudDrift linear infinite;
}
.bg-cloud-1 { top: 10%; left: -15%; animation-duration: 26s; }
.bg-cloud-2 { top: 20%; left: -30%; font-size: clamp(22px, 2.6vw, 34px); opacity: 0.6; animation-duration: 34s; animation-delay: -8s; }
.bg-cloud-3 { top: 78%; left: -20%; font-size: clamp(24px, 2.8vw, 36px); opacity: 0.55; animation-duration: 30s; animation-delay: -14s; }

.bg-bird {
  font-size: clamp(18px, 1.8vw, 28px);
  opacity: 0.75;
  animation: birdFly linear infinite;
}
.bg-bird-1 { top: 30%; left: -10%; animation-duration: 16s; }
.bg-bird-2 { top: 45%; left: -20%; animation-duration: 21s; animation-delay: -5s; }

.bg-leaf {
  font-size: clamp(20px, 2vw, 30px);
  opacity: 0.7;
  animation: leafFall linear infinite;
}
.bg-leaf-1 { top: -8%; left: 18%; animation-duration: 12s; }
.bg-leaf-2 { top: -8%; left: 82%; animation-duration: 15s; animation-delay: -6s; }

.bg-tree {
  position: absolute;
  bottom: 2%;
  font-size: clamp(46px, 6vw, 84px);
  transform-origin: bottom center;
  animation: treeSway 4.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}
.bg-tree-1 { left: 3%; animation-delay: -1s; }
.bg-tree-2 { left: 50%; transform: translateX(-50%); font-size: clamp(54px, 7vw, 100px); animation-delay: -2.4s; opacity: 0.9; }
.bg-tree-3 { right: 3%; left: auto; animation-delay: -0.5s; }

.bg-wave {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6%;
  height: 90px;
  background: linear-gradient(180deg, rgba(111,163,157,0.35), rgba(28,63,59,0.55));
  border-radius: 45%;
  animation: waveRoll 6s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(8deg); }
}
@keyframes earthFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes earthSpin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(120vw); }
}
@keyframes birdFly {
  0% { transform: translate(0, 0); }
  50% { transform: translate(55vw, -40px); }
  100% { transform: translate(120vw, 0); }
}
@keyframes leafFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translate(40px, 115vh) rotate(360deg); opacity: 0; }
}
@keyframes treeSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.bg-tree-2 { animation-name: treeSway2; }
@keyframes treeSway2 {
  0%, 100% { transform: translateX(-50%) rotate(-3deg); }
  50% { transform: translateX(-50%) rotate(3deg); }
}
@keyframes waveRoll {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(3%) scaleY(1.15); }
}

.eco-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 26px;
  padding: 7px 16px;
  border-radius: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: var(--gold-300);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  animation: badgeFloat 3.4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.logo-ring {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(249,206,100,0.28), transparent 70%);
}
.logo-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(249,206,100,0.4);
  animation: ringSpin 24s linear infinite;
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.logo-ministerio {
  position: relative;
  z-index: 1;
  display: block;
  width: 130px;
  max-width: 68%;
  margin: 0;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}
.title {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  font-size: clamp(20px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  margin: 22px 0 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  white-space: normal;
  padding: 0 12px;
  max-width: 100%;
  animation: titleBounce .9s cubic-bezier(.28,1.4,.4,1) .15s both;
}
@keyframes titleBounce {
  0% { opacity: 0; transform: translateY(-60px) scale(.9); }
  55% { opacity: 1; transform: translateY(12px) scale(1.03); }
  75% { transform: translateY(-6px) scale(0.99); }
  90% { transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.title span {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  position: relative;
  z-index: 1;
  color: var(--mint-200);
  margin-bottom: 10px;
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: center;
  width: 100%;
}

.mode-select {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px;
  border-radius: 30px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: var(--mint-200);
  padding: 11px 22px;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(14px, 1vw, 18px);
  letter-spacing: 0.2px;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease);
}
.mode-btn-icon { font-size: 1.1em; line-height: 1; }
.mode-btn:hover { color: var(--white); transform: translateY(-1px); }
.mode-btn.active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  color: var(--teal-800);
  box-shadow: 0 6px 16px rgba(249,206,100,0.35);
}

.player-inputs {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.input-wrap { position: relative; width: 100%; }
.input-icon {
  position: absolute;
  top: 50%; left: 16px;
  transform: translateY(-50%);
  font-size: 17px;
  opacity: 0.8;
  pointer-events: none;
}
.player-inputs input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--white);
  font-family: inherit;
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 600;
  outline: none;
  text-align: left;
  transition: opacity .15s, border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.player-inputs input::placeholder { color: rgba(255,255,255,0.5); font-weight: 500; }
.player-inputs input:focus {
  border-color: var(--gold-500);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(249,206,100,0.22);
}
.player-inputs input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  color: var(--teal-800);
  border: none;
  font-weight: 800;
  font-size: clamp(16px, 1.2vw, 21px);
  letter-spacing: 0.4px;
  padding: 16px 42px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(249,206,100,0.32), 0 4px 0 var(--gold-600);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
  margin-top: auto;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(249,206,100,0.4), 0 4px 0 var(--gold-600); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 6px 14px rgba(249,206,100,0.3), 0 1px 0 var(--gold-600); }

.btn-start-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--coral-300), var(--coral-500) 55%, var(--coral-600));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(255,107,74,0.4), 0 4px 0 var(--coral-600);
  animation: pulseGlowCoral 2.8s ease-in-out infinite;
}
.btn-start-play:hover { box-shadow: 0 18px 34px rgba(255,107,74,0.48), 0 4px 0 var(--coral-600); }
.btn-start-play:active { box-shadow: 0 6px 14px rgba(255,107,74,0.35), 0 1px 0 var(--coral-600); }
@keyframes pulseGlowCoral {
  0%, 100% { box-shadow: 0 10px 26px rgba(255,107,74,0.4), 0 0 0 0 rgba(255,107,74,0.4); }
  50% { box-shadow: 0 10px 26px rgba(255,107,74,0.5), 0 0 0 10px rgba(255,107,74,0); }
}
.btn-start-play::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 3s ease-in-out infinite;
}
@keyframes shineSweep {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}
.btn-arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.btn-start-play:hover .btn-arrow { transform: translateX(4px); }

/* ---------- GAME SCREEN ---------- */
.vs-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(6px, 1.6vh, 16px);
  flex: none;
}
.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: clamp(90px, 7vw, 130px);
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  opacity: 0.55;
  transition: opacity .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.player-card.current {
  opacity: 1;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.avatar {
  width: clamp(54px, 4.2vw, 78px);
  height: clamp(54px, 4.2vw, 78px);
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff, var(--mint-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(19px, 1.5vw, 27px);
  color: var(--teal-800);
  border: 3px solid var(--gold-500);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: box-shadow .25s var(--ease);
}
.player-card.current .avatar { box-shadow: 0 0 0 6px rgba(249,206,100,0.25), 0 8px 18px rgba(0,0,0,0.25); }
.player-card.eliminated {
  opacity: 0.35;
  filter: grayscale(0.8);
  transform: none;
}
.player-card.eliminated .avatar { border-color: #8a8a8a; box-shadow: none; }
.player-name {
  color: var(--white);
  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Sora', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.vs-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(11px, 0.85vw, 15px);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--glass-bg), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--mint-200);
  backdrop-filter: blur(8px);
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  flex: none;
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: clamp(6px, 1.4vh, 10px);
  overflow: visible;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.progress-fill {
  position: absolute;
  top: 0; left: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(249,206,100,0.55);
  transition: left .3s var(--ease), width .3s var(--ease);
}
.progress-marker {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  transition: left .3s var(--ease);
  font-size: 18px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}

.turn-indicator {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  color: var(--teal-900);
  font-size: clamp(12px, 1.05vw, 18px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  border: 2px solid rgba(255,255,255,0.65);
  padding: clamp(5px, 1vh, 8px) 24px clamp(5px, 1vh, 8px) 18px;
  border-radius: 999px;
  margin-bottom: clamp(8px, 1.8vh, 18px);
  box-shadow:
    0 8px 20px rgba(249,206,100,0.4),
    0 3px 0 var(--gold-600),
    inset 0 1px 0 rgba(255,255,255,0.7);
  animation: turnBounce 1.8s ease-in-out infinite;
}
.turn-indicator::before {
  content: '🎮';
  font-size: 1.15em;
  line-height: 1;
  animation: floatSlow 1.4s ease-in-out infinite;
}
@keyframes turnBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

.mute-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--white);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: background .2s var(--ease), transform .15s var(--ease);
  z-index: 10;
}
.mute-btn:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }

.game-layout {
  display: flex;
  width: 100%;
  flex: 1;
  min-height: 0;
  gap: 16px;
  align-items: stretch;
}
.wheel-column {
  position: relative;
  width: 60%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xl);
  padding: clamp(10px, 2.4vh, 30px);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.wheel-column::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.35), transparent 70%);
  pointer-events: none;
}
.wheel-column::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(120% 60% at 50% 110%, rgba(0,0,0,0.12), transparent 60%);
  pointer-events: none;
}
.question-column {
  position: relative;
  width: 40%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(14px, 2.4vh, 30px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
}
.question-column::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500), var(--gold-600));
  opacity: 0.85;
}

.wheel-wrap {
  position: relative;
  width: clamp(240px, min(46vw, 70vh), 860px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.wheel-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.45);
  animation: ringSpin 30s linear infinite;
  pointer-events: none;
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.95),
    0 0 0 9px rgba(255,255,255,0.25),
    0 20px 45px rgba(0,0,0,0.4);
  transition: transform 3.2s cubic-bezier(.17,.89,.32,1.1);
}
.wheel-slice-content {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20%;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}
.wheel-icon {
  font-size: clamp(37px, 5.5vw, 62px);
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.wheel-label {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(15px, 2.1vw, 24px);
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 0 4px rgba(0,0,0,0.4);
}
.spin-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(106px, 15vw, 170px); height: clamp(106px, 15vw, 170px);
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-300), var(--gold-500));
  border: 4px solid var(--gold-600);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(249,206,100,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
  animation: pulseGlow 2.6s ease-in-out infinite;
  z-index: 5;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.spin-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.spin-btn:hover { transform: translate(-50%, -50%) scale(1.05); }
.spin-btn:disabled { opacity: 0.55; cursor: default; animation: none; transform: translate(-50%, -50%); }
.pointer {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(160deg, #3a3a3a, #000000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(38px, 4.2vw, 58px);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35));
  z-index: 6;
  animation: floatSlow 2.2s ease-in-out infinite;
}

/* ---------- QUESTION PANEL ---------- */
.question-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 10px;
  color: var(--mint-100);
  text-align: center;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 600;
  padding: 0 10px;
}
.question-placeholder-icon {
  font-size: clamp(34px, 3vw, 46px);
  animation: floatSlow 2.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}
.question-placeholder p { margin: 0; max-width: 320px; }
.question-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2.6vh, 28px) clamp(14px, 2vw, 24px);
  width: 100%;
  height: 100%;
  box-shadow: 0 20px 45px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  animation: riseIn .3s var(--ease);
}
.question-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500), var(--gold-600));
}
.question-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: clamp(13px, 1vw, 17px);
  color: var(--teal-800);
  background: linear-gradient(135deg, var(--mint-100), #eaf6f2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: clamp(8px, 1.6vh, 16px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(36,91,85,0.12);
  flex: none;
}
.question-category span:first-child { font-size: clamp(20px, 1.5vw, 27px); }

.question-text {
  font-size: clamp(15px, 1.5vw, 24px);
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin-bottom: clamp(10px, 1.8vh, 20px);
  line-height: 1.35;
  flex: none;
}
.options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 10px);
  counter-reset: opt;
  flex: none;
}
#btn-continue {
  margin-top: clamp(8px, 1.4vh, 14px);
  padding: clamp(10px, 1.8vh, 16px) 42px;
  flex: none;
}
.option-btn {
  counter-increment: opt;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(9px, 1.6vh, 13px) 16px;
  border-radius: var(--radius-sm);
  border: 2px solid #e6ebe9;
  background: #fbfdfc;
  box-shadow: 0 2px 6px rgba(22,48,45,0.05);
  font-family: inherit;
  font-size: clamp(13px, 1.15vw, 19px);
  font-weight: 600;
  color: #33403e;
  cursor: pointer;
  text-align: left;
  opacity: 0;
  animation: riseIn .3s var(--ease) forwards;
  animation-delay: calc((var(--i, 0)) * 60ms);
  transition: transform .12s var(--ease), border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.option-btn::before {
  content: counter(opt, upper-alpha);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-800);
  background: linear-gradient(135deg, var(--mint-100), #eaf6f2);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.option-btn:hover:not(:disabled) {
  border-color: var(--gold-500);
  background: #fffaf0;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(249,206,100,0.2);
}
.option-btn.correct { background: #e3f8ea; border-color: #2e9e5b; color: #1c6b3d; }
.option-btn.correct::before { background: #2e9e5b; color: #fff; }
.option-btn.wrong { background: #fde9e9; border-color: #d5534b; color: #93332d; }
.option-btn.wrong::before { background: #d5534b; color: #fff; }
.option-btn:disabled { cursor: default; }

/* ---------- MODAL FIN DE JUEGO ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 22, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.fireworks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.modal-box {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  border-radius: var(--radius-lg);
  padding: 38px 28px 34px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  animation: riseIn .3s var(--ease);
  overflow: hidden;
}
.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500), var(--gold-600));
}
.modal-box.is-lose::before {
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
}
.modal-emoji { margin: 0 0 8px; }
.modal-emoji img {
  width: 180px;
  max-width: 60%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.2));
}
.modal-title {
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 800;
  color: var(--teal-800);
  letter-spacing: 0.4px;
  margin: 0 0 6px;
}
.modal-subtitle {
  font-size: clamp(14px, 1.1vw, 19px);
  font-weight: 700;
  color: #5b6b68;
  margin: 0 0 26px;
}
.modal-box .btn-primary { margin-top: 0; }

@media (max-width: 900px) {
  .phone { padding: 20px 14px; }
  .game-layout { flex-direction: column; align-items: stretch; gap: 12px; }
  .wheel-column, .question-column { width: 100%; flex: none; }
  .question-column { height: auto; min-height: 260px; }
  .wheel-wrap { width: clamp(200px, min(72vw, 42vh), 420px); }
}

/* ---------- CELULARES (ancho reducido) ---------- */
@media (max-width: 600px) {
  body { padding: 8px; }
  .phone {
    padding: 14px 12px;
    border-radius: var(--radius-md);
    min-height: calc(100vh - 16px);
  }
  .phone:has(#screen-game.active) { border-radius: 0; }

  #screen-start { max-width: 100%; }

  .eco-badge { margin: 0 auto 14px; padding: 6px 13px; }
  .logo-ring { width: 110px; height: 110px; margin-top: 10px; }
  .logo-ministerio { width: 96px; }
  .title { font-size: clamp(22px, 7vw, 30px); margin: 14px 0 6px; }
  .subtitle { font-size: 15px; margin-bottom: 8px; }
  .mode-select { margin-bottom: 16px; }
  .mode-btn { padding: 10px 14px; font-size: 13px; }
  .player-inputs { margin-bottom: 18px; gap: 10px; }
  .player-inputs input { padding: 12px 14px 12px 40px; font-size: 15px; }
  .btn-start-play { padding: 16px 36px; font-size: 18px; margin-bottom: 20px; }

  .mute-btn { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 15px; }

  .vs-header { margin-bottom: 8px; }
  .player-card { width: 74px; padding: 6px 4px; gap: 4px; }
  .avatar { width: 46px; height: 46px; font-size: 16px; border-width: 2px; }
  .player-name { font-size: 11px; max-width: 74px; }
  .score-mid { font-size: 22px; gap: 6px; }
  .vs-label { font-size: 10px; padding: 4px 8px; }

  .turn-indicator { font-size: 11.5px; padding: 5px 16px 5px 12px; margin-bottom: 8px; }
  .turn-indicator::before { font-size: 1em; }

  .game-layout { gap: 10px; }
  .wheel-column { padding: 12px; border-radius: var(--radius-lg); }
  .question-column { padding: 12px; border-radius: var(--radius-lg); min-height: 220px; }
  .wheel-wrap { width: clamp(190px, min(78vw, 38vh), 340px); }
  .pointer { font-size: 32px; top: -18px; }
  .spin-btn { width: clamp(76px, 22vw, 110px); height: clamp(76px, 22vw, 110px); border-width: 3px; }
  .wheel-icon { font-size: clamp(26px, 7vw, 40px); }
  .wheel-label { font-size: clamp(11px, 3vw, 16px); }

  .question-card { padding: 14px 12px; }
  .question-category { font-size: 11px; padding: 5px 11px; margin-bottom: 8px; }
  .question-text { font-size: 15px; margin-bottom: 10px; }
  .option-btn { padding: 10px 12px; font-size: 13px; gap: 8px; }
  .option-btn::before { width: 22px; height: 22px; font-size: 11px; }
  #btn-continue { padding: 11px 30px; font-size: 15px; }

  .modal-box { padding: 26px 18px 22px; }
  .modal-emoji img { width: 130px; }
  .modal-title { font-size: 22px; }
  .modal-subtitle { font-size: 14px; margin-bottom: 18px; }
}

@media (max-width: 460px) {
  .wheel-wrap { width: clamp(170px, min(74vw, 34vh), 300px); }
}

/* ---------- Pantallas bajas (poca altura, ej. horizontal o iPhone SE) ---------- */
@media (max-height: 700px) {
  .logo-ring { margin-top: 0; width: 100px; height: 100px; }
  .title { margin: 12px 0 4px; }
  .subtitle { margin-bottom: 6px; }
  .eco-badge { margin-bottom: 10px; }
  .mode-select { margin-bottom: 14px; }
  .player-inputs { margin-bottom: 14px; }
  .btn-start-play { margin-bottom: 14px; }
}
