/* Tómbola sorteo V2 - pantalla completa */

#dialog.tombola-fullscreen-v2{
  width:100vw !important;
  height:100vh !important;
  max-width:none !important;
  max-height:none !important;
  inset:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#061238 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

#dialog.tombola-fullscreen-v2::backdrop{
  background:#061238 !important;
}

#dialog.tombola-fullscreen-v2 > h2,
#dialog.tombola-fullscreen-v2 > #closeDialog{
  display:none !important;
}

#dialog.tombola-fullscreen-v2 .tombola-box{
  width:100%;
  height:100%;
  min-height:0;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(330px,440px);
  grid-template-rows:minmax(0,1fr) auto;
  grid-template-areas:
    "stage results"
    "actions results";
  gap:18px;
  padding:18px;
  background:
    radial-gradient(circle at 30% 20%,rgba(255,225,0,.12),transparent 28%),
    linear-gradient(145deg,#071d58 0%,#061238 55%,#03091e 100%);
}

#dialog.tombola-fullscreen-v2 .tombola-stage{
  grid-area:stage;
  position:relative;
  overflow:hidden;
  min-height:0;
  border-radius:24px;
  padding:clamp(18px,3vw,38px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 50% 35%,rgba(255,225,0,.25),transparent 32%),
    linear-gradient(145deg,#0c2876 0%,#081c54 48%,#08112e 100%);
  color:#fff;
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 18px 55px rgba(0,0,0,.3);
}

#dialog.tombola-fullscreen-v2 .tombola-stage::before{
  content:"";
  position:absolute;
  inset:-35%;
  background:
    conic-gradient(
      from 0deg,
      transparent,
      rgba(255,225,0,.16),
      transparent,
      rgba(74,215,255,.10),
      transparent
    );
  animation:tombolaGlow 6s linear infinite;
  pointer-events:none;
}

#dialog.tombola-fullscreen-v2 .tombola-title{
  position:relative;
  z-index:2;
  text-align:center;
  color:#ffe100;
  font-size:clamp(1rem,2.2vw,1.65rem);
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.09em;
}

#dialog.tombola-fullscreen-v2 .tombola-wheel{
  position:relative;
  z-index:2;
  width:clamp(180px,27vw,330px);
  aspect-ratio:1;
  margin:clamp(14px,2vh,24px) auto;
  flex:none;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 50%,
      #1739ac 0 31%,
      #0b216c 32% 44%,
      #ffe100 45% 51%,
      #fafbff 52% 63%,
      #0a1850 64% 100%);
  box-shadow:
    inset 0 0 28px rgba(255,255,255,.17),
    0 0 0 12px rgba(255,225,0,.13),
    0 28px 48px rgba(0,0,0,.34);
}

#dialog.tombola-fullscreen-v2 .tombola-wheel.is-spinning{
  animation:tombolaSpin .72s linear infinite;
}

#dialog.tombola-fullscreen-v2 .tombola-wheel::before{
  content:"";
  position:absolute;
  top:-20px;
  left:50%;
  transform:translateX(-50%);
  border-left:18px solid transparent;
  border-right:18px solid transparent;
  border-bottom:28px solid #ffe100;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

#dialog.tombola-fullscreen-v2 .tombola-ball{
  width:44%;
  aspect-ratio:1;
  border-radius:50%;
  background:
    radial-gradient(circle at 34% 32%,
      #fffef1 0 23%,
      #ffe100 24% 62%,
      #c9aa00 63% 100%);
  box-shadow:inset -12px -12px 20px rgba(0,0,0,.16);
}

#dialog.tombola-fullscreen-v2 .tombola-current{
  position:relative;
  z-index:2;
  width:min(720px,92%);
  box-sizing:border-box;
  padding:15px 18px;
  border-radius:16px;
  text-align:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
}

#dialog.tombola-fullscreen-v2 .tombola-current small{
  display:block;
  margin-bottom:6px;
  font-size:.82rem;
  opacity:.82;
}

#dialog.tombola-fullscreen-v2 .tombola-name{
  font-size:clamp(1.45rem,3vw,2.45rem);
  line-height:1.08;
  font-weight:950;
  overflow-wrap:anywhere;
}

#dialog.tombola-fullscreen-v2 .tombola-sub{
  position:relative;
  z-index:2;
  width:min(760px,94%);
  margin-top:10px;
  text-align:center;
  color:rgba(255,255,255,.88);
  font-size:clamp(.88rem,1.4vw,1.05rem);
}

#dialog.tombola-fullscreen-v2 .tombola-actions{
  grid-area:actions;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  align-items:center;
  padding:2px 0;
}

#dialog.tombola-fullscreen-v2 .tombola-actions button{
  min-width:170px;
  min-height:48px;
  padding:12px 22px;
  border-radius:999px;
  font-size:1rem;
  font-weight:850;
}

#dialog.tombola-fullscreen-v2 #tombolaStartBtn{
  background:#ffe100 !important;
  color:#081744 !important;
}

#dialog.tombola-fullscreen-v2 #tombolaCloseBtn{
  background:#fff !important;
  color:#0001c5 !important;
}

#dialog.tombola-fullscreen-v2 .tombola-results{
  grid-area:results;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  border-radius:22px;
  overflow:hidden;
  background:rgba(247,249,255,.98);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}

#dialog.tombola-fullscreen-v2 .tombola-results-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:17px 18px;
  color:#10244d;
  border-bottom:1px solid #dfe6fa;
  font-weight:900;
}

#dialog.tombola-fullscreen-v2 .tombola-results-head span:last-child{
  color:#0001c5;
}

#dialog.tombola-fullscreen-v2 .tombola-list{
  min-height:0;
  max-height:none;
  overflow:auto;
  display:grid;
  align-content:start;
  gap:9px;
  padding:12px;
  scrollbar-gutter:stable;
}

#dialog.tombola-fullscreen-v2 .tombola-item{
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  gap:12px;
  align-items:center;
  border-radius:14px;
  background:#fff;
  color:#10244d;
  border:1px solid #dbe3ff;
  padding:10px 12px;
  box-shadow:0 7px 16px rgba(16,36,77,.07);
  transform:translateY(12px) scale(.98);
  opacity:0;
}

#dialog.tombola-fullscreen-v2 .tombola-item.show{
  animation:tombolaReveal .45s ease forwards;
}

#dialog.tombola-fullscreen-v2 .tombola-pos{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#0001c5;
  color:#fff;
  font-size:1rem;
  font-weight:950;
}

#dialog.tombola-fullscreen-v2 .tombola-team{
  min-width:0;
  font-size:1rem;
  font-weight:850;
  line-height:1.2;
  overflow-wrap:anywhere;
}

#dialog.tombola-fullscreen-v2 .tombola-fx{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:1;
}

#dialog.tombola-fullscreen-v2 .tombola-fx span{
  position:absolute;
  width:10px;
  height:18px;
  border-radius:3px;
  opacity:0;
  animation:tombolaConfetti .95s ease-out forwards;
}

@media (max-width:820px){
  #dialog.tombola-fullscreen-v2{
    overflow:auto !important;
  }

  #dialog.tombola-fullscreen-v2 .tombola-box{
    height:auto;
    min-height:100%;
    grid-template-columns:1fr;
    grid-template-rows:auto auto minmax(280px,1fr);
    grid-template-areas:
      "stage"
      "actions"
      "results";
    padding:10px;
    gap:10px;
  }

  #dialog.tombola-fullscreen-v2 .tombola-stage{
    min-height:470px;
    border-radius:18px;
  }

  #dialog.tombola-fullscreen-v2 .tombola-results{
    min-height:320px;
  }

  #dialog.tombola-fullscreen-v2 .tombola-list{
    max-height:52vh;
  }
}

@media (prefers-reduced-motion:reduce){
  #dialog.tombola-fullscreen-v2 .tombola-stage::before,
  #dialog.tombola-fullscreen-v2 .tombola-wheel.is-spinning{
    animation-duration:2.5s;
  }
}

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

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

@keyframes tombolaReveal{
  from{transform:translateY(12px) scale(.98);opacity:0}
  to{transform:translateY(0) scale(1);opacity:1}
}

@keyframes tombolaConfetti{
  0%{transform:translateY(-8px) rotate(0deg);opacity:0}
  10%{opacity:1}
  100%{transform:translateY(190px) rotate(280deg);opacity:0}
}
