:root {
    --wario-yellow: #FFD700;
    --wario-purple: #4B0082;
    --wario-red: #E60012;
    --wario-dark: #1a0033;
}

body {
    background-image: url('img/astromanboss.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

main {
    background: rgba(216, 116, 2, 0.95);
    border: 6px double var(--wario-yellow);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.2);
    max-width: 450px;
    width: 90%;
}

h1 {
    color: var(--wario-yellow);
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--wario-yellow);
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: var(--wario-dark);
    border: 2px solid var(--wario-yellow);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Slider Cohete */
input[type=range] {
    -webkit-appearance: none;
    background: #555;
    height: 10px;
    border-radius: 5px;
    border: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 40px;
    width: 40px;
    background: url('https://em-content.zobj.net/source/apple/354/rocket_1f680.png') no-repeat center;
    background-size: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

button {
    background-color: var(--wario-red);
    color: white;
    border: 3px solid #fff;
    padding: 15px;
    width: 100%;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 0 #8b0000;
}

button:active {
    transform: translateY(4px);
    box-shadow: none;
}

button:hover {
    background-color: #ff3333;
}

/* Resultados */
#resultados {
    margin-top: 30px;
    border-top: 3px dashed var(--wario-yellow);
    padding-top: 20px;
}

.resultados-detalle p {
    margin: 10px 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

/* Contenedor Alerta + WordArt */
.contenedor-advertencia {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.icono-advertencia {
    width: 70px;
    flex-shrink: 0;
}

.anuncio-wordart {
    padding: 15px;
    text-align: center;
    font-family: 'Impact', sans-serif;
    font-size: 1rem;
    color: #fff;
    text-shadow: 2px 2px 0 #000, 4px 4px 0 #e60012;
    transform: rotate(-2deg);
    border: 3px dashed #FFD700;
    background: linear-gradient(135deg, var(--wario-purple), var(--wario-dark));
    text-transform: uppercase;
}

/* Botón de Regresar */
.boton-regresar {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--wario-purple);
    color: var(--wario-yellow);
    padding: 8px 15px;
    border-radius: 20px;
    border: 3px solid var(--wario-yellow);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.2s;
    z-index: 10;
}

.boton-regresar:hover {
    background-color: var(--wario-yellow);
    color: var(--wario-purple);
    transform: scale(1.1);
}

/* IMPORTANTE: Agrega esto a tu estilo de 'main' para que el botón se posicione correctamente */
main {
    position: relative; /* Esto permite que el botón se quede pegado al main */
    /* ... el resto de tus estilos de main ... */
}