* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, sans-serif; }
body { margin: 0; }
.public {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    color: var(--texte);
    background: radial-gradient(ellipse at 50% 32%, color-mix(in srgb, var(--fond), var(--texte) 10%), var(--fond) 68%);
    background-color: var(--fond);
    text-align: center;
}
.gift, .quiz { width: min(100%, 42rem); }
.ornament { color: var(--accent); font-size: 2.25rem; line-height: 1; }
h1, dialog h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.05; }
.public h1 { font-size: clamp(2.35rem, 7vw, 4.3rem); margin: .65rem 0; overflow-wrap: anywhere; }
.intro { margin: .75rem 0 1.6rem; }
.wheel {
    position: relative;
    isolation: isolate;
    margin: 2rem auto 1.4rem;
    width: min(100%, 28rem);
    aspect-ratio: 1;
    border: .38rem solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 1rem 3rem #0006, 0 0 0 .3rem #0003;
}
#wheel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}
.pointer {
    z-index: 1; position: absolute; left: 50%; top: -.85rem; transform: translateX(-50%);
    border-left: .8rem solid transparent; border-right: .8rem solid transparent;
    border-top: 1.55rem solid var(--accent); filter: drop-shadow(0 2px 2px #0009);
}
.hub {
    position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 13%; aspect-ratio: 1; border-radius: 50%;
    background: var(--fond); border: .18rem solid var(--accent); color: var(--accent);
    font-size: 1.35rem; box-shadow: 0 0 .75rem #0006; pointer-events: none;
}
button {
    border: 0; border-radius: 999px; padding: .85rem 1.45rem; font: inherit;
    font-weight: 750; cursor: pointer; background: var(--accent, #214d41); color: var(--fond, white);
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #619df9; outline-offset: 3px; }
button:disabled { opacity: .65; cursor: wait; }
#status { min-height: 1.5em; margin-bottom: 0; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
dialog {
    color: var(--texte); background: var(--fond); border: 2px solid var(--accent);
    border-radius: 1.5rem; width: min(28rem, calc(100% - 2rem)); padding: 2rem; box-shadow: 0 1rem 4rem #0008;
}
dialog::backdrop { background: #0008; }
dialog h2 { font-size: 2.6rem; margin: .7rem 0; }
dialog p { white-space: pre-line; overflow-wrap: anywhere; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.quiz h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.answer { border-radius: 1rem; min-height: 5rem; display: flex; align-items: center; gap: .8rem; text-align: left; color: #172027; box-shadow: 0 .35rem 0 #0005; overflow-wrap: anywhere; }
.answer span { font-size: 1.25rem; }
.answer-0 { background: #f58e9c; }
.answer-1 { background: #91c8ff; }
.answer-2 { background: #ffce73; }
.answer-3 { background: #9be1b3; }
.notice { font-weight: 750; }
.admin { color: #182d25; background: #f4f2ea; padding: 1.5rem 1rem 3rem; }
.admin main { max-width: 45rem; margin: auto; }
.admin h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.admin fieldset { border: 1px solid #d4d9ce; border-radius: .9rem; padding: 1rem; margin: 0 0 1rem; background: white; min-width: 0; }
.admin legend { font-weight: 800; }
.admin label { display: grid; gap: .35rem; margin: .65rem 0; font-weight: 650; }
.admin input:not([type=radio], [type=checkbox], [type=color]), .admin textarea {
    width: 100%; border: 1px solid #9ca99e; border-radius: .45rem; padding: .55rem; font: inherit;
}
.admin input[type=color] { width: 3rem; height: 2.25rem; }
.admin .option { display: flex; align-items: center; gap: .4rem; font-weight: 500; }
.admin .row { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.admin .row > label:first-child { flex: 1 1 12rem; }
.admin header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.admin .secondary { background: #e2eae3; color: #182d25; }
.admin .error { color: #a2222e; }
[hidden] { display: none !important; }
@media (max-width: 29rem) { .answers { grid-template-columns: 1fr; } }
