:root {color-scheme:dark; font:100%/1.55 system-ui,sans-serif; color:#f8f4ed; background:#10121b}
* {box-sizing:border-box}
body {margin:0; min-height:100vh; background:radial-gradient(ellipse at 50% 0,#28334e,#10121b 60%)}
main {max-width:50rem; margin:auto; padding:2rem 1rem 4rem}
header {text-align:center; padding:1rem}
header p {color:#f1d193; font-size:.95rem}
h1,h2 {font-family:Georgia,serif; line-height:1.14; color:#f2d297}
h1 {font-size:clamp(2.2rem,7vw,3.8rem); margin:.5rem 0 1rem}
h2 {font-size:clamp(1.65rem,5vw,2.5rem); margin:.35rem 0 1rem}
header a {color:#fff; text-underline-offset:.25rem}
section {padding:clamp(1rem,4vw,2rem); margin-bottom:1rem; border:1px solid #7f6c4c; border-radius:1rem; background:#191e2e}
button,input {font:inherit}
button {min-height:2.8rem; padding:.55rem 1rem; color:#17131b; border:1px solid #e3b971; border-radius:.5rem; background:#f2d297; cursor:pointer; font-weight:700}
button:disabled {cursor:default; opacity:.65}
button.secondary {color:#f2d297; background:transparent}
button:focus-visible,a:focus-visible,input:focus-visible {outline:3px solid #fff; outline-offset:4px}
input[type=email],#gift-code {min-height:2.8rem; width:100%; padding:.45rem .65rem; border:1px solid #ab9671; border-radius:.4rem; background:#10121b; color:#fff}
#email-form {display:grid; gap:.65rem}
#gift-code-form:not([hidden]) {display:grid; gap:.65rem; margin-top:1rem; max-width:25rem}
#gift-code-error {margin:0}
#gift-code-error:empty {display:none}
#status:empty {display:none}
#doors {display:grid; grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr)); gap:.65rem; padding:0; list-style:none}
#doors button,#doors li>span {width:100%; display:grid; min-height:5.3rem; place-content:center; text-align:center; border-radius:.75rem .75rem .3rem .3rem}
#doors li>span {border:1px solid #647089; color:#d0d4e0; padding:.35rem}
#doors .today button {border:2px solid #fff0c9; box-shadow:0 0 1rem #e3b97175}
.door-badge {font-size:.875rem; font-weight:800}
.door-state {font-size:.875rem}
.door-mark {position:relative; width:.9rem; height:1.15rem; margin:.15rem auto; border:1px solid currentColor; perspective:3rem}
.door-mark::before {content:""; position:absolute; inset:0; background:currentColor; transform-origin:left}
.door-mark.ajar::before {transform:rotateY(-50deg)}
#doors button:hover:not(:disabled) {transform:perspective(26rem) rotateY(-7deg); box-shadow:0 0 1rem #c99c5270}
.door-details {color:#f1d193}
fieldset {padding:0; border:0; margin:1rem 0}
legend {font-weight:700; margin-bottom:.7rem}
fieldset label {display:flex; align-items:baseline; gap:.65rem; padding:.55rem; margin:.3rem 0; border:1px solid #697285; border-radius:.45rem}
fieldset small {display:block; font-size:.95rem; color:#d6d9e1}
blockquote {margin:.6rem 0; border-left:3px solid #f2d297; padding:.45rem 1rem; color:#f2d297}
.actions {display:flex; flex-wrap:wrap; gap:.65rem}
[hidden] {display:none!important}
@media(prefers-reduced-motion:reduce) {#doors button:hover:not(:disabled) {transform:none}}

.queen-mirror {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border: 1px solid #7f6c4c;
  border-left: 3px solid #f2d297;
  border-radius: .5rem;
  background: #202637;
  color: #d6d9e1;
}
.queen-mirror h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: #f2d297; }
.queen-mirror p { margin: 0; }

#offer {background:#0b1120; margin:1rem 0; overflow-wrap:anywhere}
#offer .merci-cover {
  margin: calc(-1 * clamp(1rem,4vw,2rem));
  margin-bottom: 0;
  padding: clamp(1rem,4vw,2rem);
  border-radius: .95rem;
  background:
    linear-gradient(90deg,#0b1120 42%,#0b112000 100%),
    linear-gradient(0deg,#0b1120 10%,#0b112000 92%),
    url('/assets/advent-miroir-leader-approved.png') top right / auto 19rem no-repeat;
}
#offer .merci-cover p {max-width:35rem}
.merci-buttons {display:grid; align-items:start; justify-items:start; gap:.65rem}
#offer .merci-payment {background:#20232b; color:#adb0b9; border-color:#858995; opacity:1}
.merci-included {margin:1.25rem 0 0; border-top:1px solid #7f6c4c; padding-top:1rem}
#merci-instructions blockquote {margin-bottom:1rem}
#merci-reactions input {flex:none; accent-color:#f2d297}
#merci-reactions label:has(input:checked) {border-color:#f2d297; background:#282638}
#merci-error:empty {display:none}
#merci-code {display:inline-block; margin-inline-start:.25rem; color:#f2d297; font-family:monospace}
