/* Plein écran mobile, base */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: #0a0a0a;
    /* noir profond ou autre couleur Halloween */
    font-family: 'Arial Black', sans-serif;
    color: white;
}

/* ===== Palette Halloween ===== */
:root {
    --bg: #08050e;
    --card: #0f1320;
    --text: #eceff4;
    --muted: #a1a7b3;
    --accent: #ff9f1a;
    /* orange bouton */
    --accent-ink: #1b1305;
    /* texte sur bouton orange */
    --border: #2b3145;
    --focus: #ffd58a;
    /* halo focus */
}

/* Contexte d’écran pleine page */
.screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Carte */
.card {
    /* width: min(680px, 92vw); */
    background: linear-gradient(180deg, var(--card), #0b0f1a);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(18px, 4vw, 28px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.field {
    position: relative;
    background: #0b0f1a;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2px;
    max-width: 320px;
    /* largeur max pour éviter que ça dépasse */
    margin: 0 auto;
    /* centre le champ dans la carte */
}

input[type=text] {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background: #0b0f1a;
    color: var(--text);
    font-size: 16px;
    outline: none;
    text-align: center;
    /* texte centré dans l’input */
}


/* Typo utilitaire */
.muted {
    color: var(--muted);
}

h1 {
    margin: 0 0 .75rem;
    font-size: clamp(1.4rem, 4.8vw, 2rem)
}

label {
    display: block;
    margin: .5rem 0 .5rem;
    font-weight: 600
}

/* Champs */
.input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    /* >=16px évite zoom iOS */
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0b0f1a;
    color: var(--text);
    outline: none;
}

.input:focus-visible {
    box-shadow: 0 0 0 3px var(--focus);
    border-color: var(--focus);
}

/* Boutons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    min-height: 52px;
    /* touch target */
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: clamp(.95rem, 2.8vw, 1.05rem);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
    border: 1px solid var(--border);
    width: 100%;
}

.btn:active {
    transform: translateY(1px);
}

/* Primaire orange (comme ta capture) */
.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    /* relief + ombre basse, proche de ta capture */
    box-shadow:
        0 10px 0 rgba(162, 95, 0, .6),
        0 14px 24px rgba(255, 159, 26, .25);
}

.btn-primary:hover {
    box-shadow:
        0 8px 0 rgba(162, 95, 0, .55),
        0 10px 20px rgba(255, 159, 26, .25);
}

button.primary:active {
    transform: scale(0.95);
}

/* Primary */
button.primary {
    background: var(--accent);
    /* orange halloween */
    color: var(--accent-ink);
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    padding: 15px 30px;
    margin-top: 40px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
}

button.primary:active {
    transform: scale(0.95);
}

/* Secondary - White */
button.secondary {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    padding: 15px 30px;
    margin-top: 40px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
}

button.secondary:active {
    transform: scale(0.95);
}

/* Secondaire “ghost” */
.btn-ghost {
    background: #0b0f1a;
    color: var(--text);
    border-color: var(--border);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .03);
}

/* Grille de boutons */
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 14px;
}

@media (max-width: 460px) {
    .actions {
        flex-direction: column
    }
}

/* Message d’erreur */
.error {
    color: #ffb4b4;
    min-height: 1.2em;
    margin-top: .5rem
}

/* utilitaires légers, communs */
h1 {
    margin: 0 0 .5rem
}

h2,
h3 {
    margin: 1rem 0 .25rem
}

p {
    margin: .5rem 0
}

.wrap {
    width: min(680px, 92vw)
}

.sub {
    opacity: .8
}