:root {
    --entama-accent: #ffb6c1;
    --uratama-accent: #87cefa;
    --neutral-color: #333;
    --card-bg: #fff8f8;
    --control-border: rgba(255, 182, 193, 0.5);
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Comic Sans MS', 'Inter', system-ui, Arial;
    max-width: 900px;
    margin: 24px auto;
    padding: 24px;
    border-radius: 20px;
    background-color: var(--card-bg);
    transition: background 0.4s ease, color 0.4s ease;
    box-shadow: 0 6px 18px var(--shadow);
}

/* Tema ENTAMA */
body.entama {
    background: url('img/EntaBack.jpg');
    background-repeat: repeat;
    background-size: auto;
    color: #e75480;
}

body.entama button {
    background: var(--entama-accent);
}

/* Tema URATAMA */
body.uratama {
    background: url('img/UraBack.webp') no-repeat center center fixed;
    background-size: cover;
    color: #1e3f66;
}

body.uratama button {
    background: var(--uratama-accent);
}

/* Estilos generales */
h1 {
    font-family: 'Fredoka One', 'Pacifico', cursive;
    text-align: center;
    margin-bottom: 16px;
    font-size: 2em;
    text-shadow: 1px 1px 3px #fff;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    color: #555;
}

select,
input[type="text"],
button {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid var(--control-border);
    background: var(--card-bg);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input[type="radio"] {
    width: auto;
    margin-right: 8px;
    transform: translateY(2px);
}

button {
    cursor: pointer;
    border: none;
    color: white;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 16px;
}

button:active {
    transform: scale(0.95);
}

/* Código de salida */
.code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
    white-space: pre-wrap;
    background-color: white;
}

/* Oculta selects por defecto */
#itemsENTAMA,
#itemsURATAMA {
    display: none;
}


/* Responsive */
@media (min-width: 640px) {
    .two-up {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
