/*
======================================================
TRIPLE STAR
DESKTOP FULLSCREEN
Modulo indipendente
======================================================
*/

.desktop-fullscreen-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

background: #000000;
    
backdrop-filter: none;
}

.desktop-fullscreen-gate__card {
    width: min(90vw, 460px);
    padding: 34px 30px;

    text-align: center;

    background: #07111f;
    border: 2px solid #f2bd00;
    border-radius: 18px;

    box-shadow:
        0 0 18px rgba(242, 189, 0, 0.55),
        0 18px 50px rgba(0, 0, 0, 0.65);
}

.desktop-fullscreen-gate__card h1 {
    margin: 0 0 16px;

    font-size: 36px;
    color: #ffffff;
}

.desktop-fullscreen-gate__card p {
    margin: 0 0 24px;

    font-size: 17px;
    color: #d9e3ef;
}

#desktopFullscreenStart {
    min-width: 230px;
    padding: 14px 24px;

    font-size: 18px;
    font-weight: 800;

    color: #111111;
    background: linear-gradient(
        180deg,
        #ffe36a 0%,
        #f2b900 100%
    );

    border: 2px solid #fff0a4;
    border-radius: 10px;
    cursor: pointer;

    box-shadow:
        0 0 14px rgba(242, 185, 0, 0.55);
}

#desktopFullscreenStart:hover {
    transform: translateY(-1px);
}

#desktopFullscreenExit {
    display: none;
}
/* ======================================================
   DESKTOP COMPACT MODE
   Finestra di gioco centrata - Fullscreen opzionale
====================================================== */

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {

    html,
    body {
        width: 100%;
        min-width: 100%;
        min-height: 100%;
        margin: 0;
        background:
    radial-gradient(
        ellipse at left center,
        rgba(242, 189, 0, 0.42) 0%,
        rgba(242, 189, 0, 0.20) 22%,
        rgba(242, 189, 0, 0.06) 42%,
        transparent 62%
    ),
    radial-gradient(
        ellipse at right center,
        rgba(242, 189, 0, 0.42) 0%,
        rgba(242, 189, 0, 0.20) 22%,
        rgba(242, 189, 0, 0.06) 42%,
        transparent 62%
    ),
    linear-gradient(
        180deg,
        #06101d 0%,
        #01050b 45%,
        #000000 100%
    );
  
    }

    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: auto;
    }

    #machine {
        width: 1200px;
        max-width: calc(100vw - 20px);
        margin: 10px auto;
        box-sizing: border-box;
    }

    body:fullscreen {
        display: block;
    }

    :fullscreen #machine {
        width: 100%;
        max-width: none;
        margin: 0;
    }

}
/* ======================================================
   DESKTOP COMPACT - RIDUZIONE BIGLIE E PLAYER PANEL
   Solo modalità desktop NON fullscreen
====================================================== */

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {

    /* BIGLIE PIU' COMPATTE */
    html:not(:fullscreen) .items.balls .item.ball,
    html:not(:fullscreen) .items.balls .item.ball.joker-ball {
        width: min(100%, 205px);
        height: min(100%, 285px);
    }

    /* TESTI CREDITI / PUNTI / BET */
    html:not(:fullscreen) .stat label {
        font-size: clamp(18px, 1.45vw, 25px);
    }

    /* NUMERI CREDITI / PUNTI / BET */
    html:not(:fullscreen) .stat output {
        font-size: clamp(24px, 2vw, 34px);
    }

    /* STELLE x3 x5 x9 */
    html:not(:fullscreen) .stars-strip {
        font-size: clamp(22px, 1.9vw, 32px);
    }

}

/* ======================================================
   BIGLIE FULLSCREEN — DIMENSIONE OTTIMIZZATA
====================================================== */

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {

  html:fullscreen body .items.balls .item.ball,
  html:fullscreen body .items.balls .item.ball.joker-ball {
    width: min(100%, 220px) !important;
    height: min(100%, 300px) !important;
    max-width: 220px !important;
    max-height: 300px !important;
  }

  html:fullscreen body .items.balls .item.ball img,
  html:fullscreen body .items.balls .item.ball.joker-ball img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
  }
}
/* ======================================================
   TRIPLE STAR - PORTATILI DESKTOP AUTO-FIT
   SOLO DESKTOP / NOTEBOOK
====================================================== */

@media (min-width: 769px) and (max-height: 950px) and (hover: hover) and (pointer: fine) {

  html:not(:fullscreen) body {
    overflow: hidden;
  }

  html:not(:fullscreen) #machine {
    width: 1350px;
    max-width: calc(125vw - 25px);

    height: calc(125vh - 15px);
    min-height: 0;

    margin: 7px auto;

    zoom: 0.8;

    grid-template-rows:
      60px
      300px
      minmax(263px, 1fr)
      68px
      33px;
  }

  html:not(:fullscreen) #machine .toolbar {
    height: 60px;
    min-height: 60px;
  }
}


/* PORTATILI CON SCHERMO PIU BASSO */
@media (min-width: 769px) and (max-height: 780px) and (hover: hover) and (pointer: fine) {

  html:not(:fullscreen) #machine {
    zoom: 0.72;

    width: 1450px;
    max-width: calc(138vw - 20px);

    height: calc(138vh - 12px);

    margin: 5px auto;
  }
}

/* La macchina resta una finestra centrata; il footer segue sotto, senza comprimerla. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  html:not(:fullscreen) body {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  html:not(:fullscreen) #machine {
    flex-shrink: 0;
    margin-inline: auto;
    border-radius: 16px;
    box-shadow: 0 24px 70px #000b, 0 0 24px #d69d0026;
  }
  body > [data-triple-site-footer] {
    display: block;
    width: 100%;
    clear: both;
  }
  :fullscreen #machine { zoom: 1; min-width: 0; border-radius: 0; }
}
