/* LAYOUT — Wheel Big Winner
   El marco del juego (y todo lo que contiene: rodillos, paneles, consola) se reduce para que se
   aprecie el fondo de casino. El bundle posiciona todo en % del .slot-frame-container, así que
   basta con reducir el contenedor y centrarlo; nada se descoloca.
   La mascota se pega al lado izquierdo del marco de rodillos, grande, sobre su plataforma. */

:root {
  --wbw-frame-scale: 0.84;     /* 84% del tamaño original en escritorio */
}

/* El contenedor del marco nunca pinta fondo propio (el bundle pone #0a0a1a inline) */
html body .slot-frame-container { background: transparent !important; }
html body .slot-frame-container::before { display: none !important; }

/* El fondo panorámico y el fundido de bordes del marco viven en stage-bg.css / stage-bg.jpg */

/* Marco reducido y centrado; sin fondo propio ni caja: sólo el mueble recortado sobre el casino */
@media (orientation: landscape) {
  html body .slot-frame-container {
    width: calc(100vw * var(--wbw-frame-scale)) !important;
    height: calc(100vh * var(--wbw-frame-scale)) !important;
    left: 50%; top: 52%;
    position: absolute !important;
    transform: translate(-50%, -50%);
    border-radius: 0;
    overflow: visible !important;
    box-shadow: none;
    background: transparent !important;   /* el mueble el mueble se funde con el casino vía stage-bg.css */
  }
  /* el fondo desenfocado interno del bundle ya no hace falta: deja ver el casino */
  html body .slot-frame-container::before { display: none !important; }

  /* Mascota: pegada al lado IZQUIERDO del marco de rodillos, sobre su plataforma */
  #wbw-mascot {
    left: auto !important;
    bottom: auto !important;
    /* borde izquierdo del marco = 50vw - 0.5*frame_w ; la mascota se solapa ~13.5vw hacia dentro,
       justo hasta el borde del marco de los rodillos */
    right: calc(50vw + 50vw * var(--wbw-frame-scale) - 13.5vw);
    top: calc(52vh + 50vh * var(--wbw-frame-scale) - 14.5vh - 60vh);  /* pies ≈ 14.5vh sobre el borde inferior */
    width: clamp(160px, 34.5vh, 420px);
    height: 60vh;
    aspect-ratio: auto;
    transform: none;
  }
  #wbw-mascot .wbw-platform { width: 78%; height: 9%; bottom: 1.5%; }
  /* bocadillo a la derecha del personaje (hacia los rodillos) */
  #wbw-mascot .wbw-bubble { right: auto; left: 58%; bottom: 89%; font-size: 15px; max-width: 220px; }
  #wbw-mascot .wbw-bubble::after { right: auto; left: -8px; border-left-color: transparent; border-right-color: #ffe9a8; }
  #wbw-mascot .wbw-bubble.bonus::after { border-left-color: transparent; border-right-color: #8fd3ff; }
}

/* Pantallas anchas con poca altura (portátiles 16:9 pequeños): un poco menos de reducción */
@media (orientation: landscape) and (max-height: 640px) {
  :root { --wbw-frame-scale: 0.88; }
  #wbw-mascot .wbw-bubble { font-size: 12px; max-width: 150px; }
}

/* Móvil horizontal: marco casi completo, mascota pequeña a la derecha */
@media (orientation: landscape) and (max-height: 480px) {
  :root { --wbw-frame-scale: 0.86; }
  #wbw-mascot {
    width: clamp(90px, 34vh, 150px);
    right: auto !important;
    left: 0.5vw !important;
    top: calc(52vh + 50vh * var(--wbw-frame-scale) - 17vh - 60vh);
  }
  #wbw-mascot .wbw-bubble { font-size: 10px; max-width: 120px; padding: 5px 8px; }
  #wbw-addons-bar { transform: scale(.7); }
}

/* Menú de addons (TURBO / AUTO / PAGOS / música): compacto y discreto */
#wbw-addons-bar {
  top: 6px !important;
  right: 6px !important;
  padding: 3px 5px !important;
  gap: 4px !important;
  background: rgba(6, 8, 24, .55) !important;
  border-color: rgba(255, 215, 94, .22) !important;
  transform-origin: top right;
  transform: scale(.82);
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
#wbw-addons-bar:hover { opacity: 1; transform: scale(.9); }
#wbw-addons-bar button { padding: 4px 8px !important; font-size: 10px !important; }
