html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* -------- Reset -------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, #ffd194, #ffb347);
    color: #333;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #b71c1c;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* -------- Monedero -------- */
#monedero {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    background: #fff8e1;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-weight: bold;
    color: #e65100;
}

/* -------- Top Bar / Paytable -------- */
.top-bar {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    max-width: 800px;
    width: 100%;
}

.paytable {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.paytable span {
    background: #fff3e0;
    color: #bf360c;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
    font-weight: 500;
}

/* -------- Botones -------- */
button {
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.recargar-button {
    background-color: #43a047;
    color: white;
}

.recargar-button:hover {
    background-color: #2e7d32;
}

.slot-button {
    background-color: #c62828;
    color: white;
    font-size: 1.5rem;
    padding: 16px 36px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.slot-button:hover {
    background-color: #b71c1c;
}

/* -------- Slot Resultado -------- */
.slot-container {
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: aparecer 0.4s ease-in-out;
    max-width: 90%;
    display: inline-block; /* esto centra si el body está centrado */
    overflow-x: auto;

}
#resultado {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-row {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.slot-icon {
    font-size: 2.8rem;
    margin: 0 8px;
    opacity: 0;
    transform: translateY(-30px);
    animation: caer 0.5s ease forwards;
}

@keyframes caer {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes aparecer {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* -------- Mensajes -------- */
#mensaje {
    margin-top: 1.2rem;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 220px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.win-message {
    background-color: #dff0d8;
    color: #2e7d32;
    border-left: 6px solid #81c784;
}

.lose-message {
    background-color: #f8d7da;
    color: #c62828;
    border-left: 6px solid #ef5350;
}

/* -------- Responsive -------- */
@media screen and (max-width: 600px) {
    .slot-icon {
        font-size: 2.2rem;
        margin: 0 8px;
    }

    .slot-button {
        font-size: 1.3rem;
        padding: 12px 24px;
    }

    .paytable {
        font-size: 0.95rem;
    }

    #monedero {
        font-size: 1.2rem;
    }
}
.mensaje-inicial {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}
.casino-header {
    width: 100%;
    background: #1b1b1b;
    padding: 1rem 1.5rem;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 100;
}

.casino-logo {
    color: #facc15;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.2s ease;
}

.casino-logo:hover {
    color: #fff176;
}
#resultado {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.slot-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slot-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background: #222;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(255,255,255,0.1);
}

@keyframes caer {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.slot-icon.ganador {
    animation: brillo 0.8s infinite alternate;
    background-color: gold;
    border: 2px solid #fff;
    color: black;
}

@keyframes brillo {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.ganador {
  background-color: gold;
  border-radius: 5px;
  padding: 3px;
  font-weight: bold;
}
@media screen and (max-width: 480px) {
    
    h1 {
        font-size: 2rem;
    }

    .slot-button {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    button {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .paytable span {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    #monedero {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }

    .top-bar {
        padding: 0.8rem;
    }

    .slot-icon {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
        line-height: 40px;
    }

    #mensaje {
        font-size: 1.1rem;
        padding: 10px 14px;
    }
}
@media screen and (max-width: 600px) {
    
  .slot-container {
    width: 100%;
    padding: 1rem;
    overflow-x: hidden;
  }

  .slot-row {
    flex-wrap: wrap; /* Los íconos bajan si no caben */
    justify-content: center;
    gap: 1px;
    margin: 0 0;
  }

  .slot-icon {
    font-size: 1.8rem;
    width: 42px;
    height: 42px;
    line-height: 42px;
  }
}
