:root[data-edition="leonie"] .hero,
:root[data-edition="leonie"] .print-machine { border: 5px dashed #d2ae83; box-shadow: inset 0 0 0 5px #f6e2ba; }
:root[data-edition="elisabeth"] .hero::after { content:'🐋';display:block;position:absolute;inset:auto 1rem 1rem auto;z-index:0;background:#fff3dd;border:3px dotted #697f97;padding:.3rem .6rem;transform:rotate(8deg);font-size:2rem }
:root[data-edition="elisabeth"] .print-machine { background:linear-gradient(130deg,#324e6a,#172637); }
:root[data-edition="cassie"] .print-machine { background:#85384b;box-shadow:none;border:2px solid #e8cdbb; }
:root[data-edition="parents"] .hero-kicker::after { content:' ✿'; }
.dedication { background:#f7e9d4;color:#552937;padding:.75rem 1rem;border-left:3px solid #be8c67; }
:root {
  color-scheme: light;
  --wine: #50152a;
  --dark-wine: #32131d;
  --paper: #fcf6ed;
  --cream: #fff7df;
  --muted: #65514e;
  --line: #e6d8ca;
  --gold: #eec484;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --script: "Pinyon Script", "Caveat", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--dark-wine); font: 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, select, input, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ad6c21; outline-offset: 4px; }
.skip { position: absolute; z-index: 4; left: 1rem; top: -5rem; padding: .7rem; border-radius: .3rem; background: white; }
.skip:focus { top: 1rem; }
.masthead, .shell, .footer { width: min(100% - 5rem, 75rem); margin-inline: auto; }
.masthead { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.masthead nav { display: flex; gap: .65rem; align-items: center; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; color: var(--wine); font: bold 1.28rem var(--serif); }
.brand-star { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #eedbc8; color: #762940; font-size: 1.15rem; }
.plain, .outlined { padding: .51rem .8rem; min-height: 44px; border: 1px solid transparent; border-radius: 2rem; background: transparent; color: var(--wine); font-size: .87rem; font-weight: 650; }
.outlined { border-color: #c8afa7; }
.plain:hover, .plain[aria-pressed="true"], .outlined:hover { background: #efdcd4; }
.hero {
  position: relative; min-height: 27rem; overflow: hidden; border-radius: 1.2rem;
  display: flex; align-items: center; isolation: isolate; color: var(--cream);
  background: radial-gradient(ellipse at 80% 80%, #9b4552, transparent 50%), #420f21;
}
.hero::before { content:''; position:absolute; z-index:-2; inset:0; background:linear-gradient(90deg,#401226eb,transparent),url('hero.webp') center/cover; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #3d1020f5 0%, #3d1020ca 35%, #3d10202b 68%, transparent 100%); }
.hero-copy { padding: 3.5rem 5%; max-width: min(35rem, 62%); }
.print-machine { background:#92253a; color:#fff0ce; border-radius:1rem; padding:1rem; text-align:center; align-self:start; }
.print-machine strong {display:block;font:2rem var(--serif)}
.print-machine {background:linear-gradient(115deg,#b84043,#761e33 82%);border:5px double #e4bc85;box-shadow:inset 0 0 0 3px #6a2030,0 .55rem 1rem #451b291f}
.print-slot {background:linear-gradient(#48122288,transparent 1rem);border-radius:.3rem}
.letter-sheet {position:relative;padding:1.6rem clamp(1rem,5vw,2.8rem);color:#492832;background:linear-gradient(#fff9e9ed,#fff9e9ed),url('vacances.webp') center/cover;border:1px solid #c6a675;outline:1px solid #dac5a4;outline-offset:-6px}
.letter-sheet small {display:block;text-align:right;color:#734939}
.letter-sheet h3,.letter-sheet .signature {font:2.9rem/1.1 var(--script);color:#762e42;margin:.4rem 0 .6rem}
.letter-sheet p {font-family:var(--hand);font-size:1.35rem;line-height:1.45}
.letter-sheet .signature {text-align:right;margin:.6rem 0}
.envelope:has(.letter-sheet) .envelope-lid::after {content:'Courrier de Noël';position:absolute;left:1rem;top:.7rem;font:1.4rem var(--hand);color:#733043;transform:rotate(-5deg)}
.print-key {background:#ffdf99;color:#78253a;border:0;border-radius:2rem;padding:.55rem 1rem;margin:.6rem auto 1rem}
.print-slot {overflow:hidden;border-top:7px solid #32101c;min-height:3rem}
.print-slot .photo-strip {margin:auto;width:85%;transform:translateY(-102%)}
.print-slot.printing .photo-strip {transform:none;animation:feed 1.6s ease-out}
@keyframes feed {from{transform:translateY(-102%)}to{transform:none}}
.envelope {background:#efe0c5;border:1px solid #c7ac88;border-radius:.45rem;overflow:hidden}
.envelope-lid {position:relative;isolation:isolate;display:grid;place-content:center;justify-items:center;gap:.6rem;min-height:11rem;color:#552737;cursor:pointer}
.envelope-lid::before {content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(#fffae9,#d7c29c);clip-path:polygon(0 0,100% 0,50% 79%);transform-origin:top;transition:transform .4s}
.envelope[open] .envelope-lid::before {transform:rotateX(70deg)}
.seal {display:grid;place-items:center;background:radial-gradient(at 35% 25%,#b54755,#69192d);color:#f9cd8f;border:3px double #bf6d66;border-radius:47% 54% 46% 50%;width:3rem;height:3rem;box-shadow:0 3px 6px #60323355}
.envelope-paper {position:relative;background:#fff9ea;margin:0 .8rem .8rem;padding:.8rem;animation:rise .65s ease-out}
@keyframes rise {from{transform:translateY(4rem);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.envelope-paper,.print-slot.printing .photo-strip{animation:none}.envelope-lid::before{transition:none}}
.hero.hero::after { display: none; }
@media(max-width:640px){ .hero.hero { display:block; padding-top:8.7rem; } .hero.hero::before { width:6rem; top:1rem; right:auto; left:1.8rem; transform:rotate(-4deg); } .hero .hero-copy { max-width:100%; } }
.hero-kicker, .eyebrow { margin: 0 0 .65rem; font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero-kicker { color: #f5d198; }
.hero-kicker span { font-size: 1.13rem; vertical-align: middle; margin-right: .3rem; }
.hero h1 { margin: 0; font: 400 clamp(4rem, 8vw, 7.9rem)/.98 var(--serif); letter-spacing: -.035em; white-space: nowrap; }
.hero h1 em { color: #f2c58d; font-weight: 400; padding-right: .1em; }
.hero-copy > p:not(.hero-kicker) { margin: 1.45rem 0 1.6rem; max-width: 21rem; color: #fff0d9; }
.hero-link, .solid { min-height: 44px; border: 1px solid transparent; border-radius: 2rem; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.15rem; text-decoration: none; font-weight: 700; font-size: .92rem; }
.hero-link { background: #ffdfa6; color: #481426; }
.hero-link:hover { background: #fff0cb; }
.calendar { padding-block: 2.55rem 2.8rem; scroll-margin-top: .6rem; }
.calendar-header { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; }
.calendar h2, dialog h2 { color: var(--wine); font: 400 clamp(2.55rem, 5vw, 4.05rem)/1 var(--serif); letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
.calendar-header p { margin: .55rem 0 0; color: var(--muted); }
.version { display: grid; gap: .23rem; color: var(--wine); min-width: min(100%, 12rem); font-size: .89rem; font-weight: 650; }
.version select { appearance: none; color: var(--wine); border: 1px solid #cfb9ae; border-radius: .52rem; min-height: 44px; padding: .45rem 2rem .45rem .75rem; background: linear-gradient(45deg, transparent 50%, #68334a 50%) right 1.13rem center / .33rem .33rem no-repeat, linear-gradient(135deg, #68334a 50%, transparent 50%) right .8rem center / .33rem .33rem no-repeat, #fffaf3; }
.calendar-status { display: flex; align-items: center; gap: .85rem; margin: 1.35rem 0 1.08rem; }
.progress { height: .32rem; overflow: hidden; border-radius: 1rem; background: #e8dcd0; flex: 1; }
.progress span { display: block; height: 100%; width: 0; background: #8b3d54; border-radius: inherit; transition: width .25s; }
.calendar-status p { margin: 0; color: var(--muted); font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .82rem; list-style: none; margin: 0; padding: 0; }
.days li { min-width: 0; }
.door {
  --ink: #ffe5b4; --surface: #68243a; --accent: #eac184;
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-rows: auto 1fr auto; justify-items: center; align-items: center;
  gap: .15rem; width: 100%; min-height: 8.75rem; padding: .55rem .4rem .5rem; border: 1px solid #27201b2e;
  border-radius: .55rem; color: var(--ink); background: var(--surface);
  box-shadow: inset 0 0 1.1rem #3b152318; transition: transform .18s, box-shadow .18s;
}
.door[data-tone="green"] { --surface: #244b3e; }
.door[data-tone="cream"] { --surface: #f1e4cf; --ink: #5b2639; --accent: #996237; }
.door[data-tone="rose"] { --surface: #eac3bd; --ink: #68273d; --accent: #8a405e; }
.door[data-tone="plum"] { --surface: #4a2437; }
.door[data-tone="dark"] { --surface: #324538; }
.door::before, .door::after { content: ''; position: absolute; pointer-events: none; inset: .25rem; border: 1px solid var(--accent); opacity: .32; border-radius: .35rem; z-index: -1; }
.door::after { inset: 0; opacity: .16; border: 0; background: radial-gradient(circle, currentColor .5px, transparent .9px) center / 7px 7px; mask-image: radial-gradient(ellipse, transparent 25%, black); }
.door:hover { transform: translateY(-3px); box-shadow: 0 .38rem .8rem #4e17232a; }
.door-icon { color: var(--accent); font: 1.36rem/1.05 var(--serif); }
.door-number { font: 400 clamp(2.3rem, 4vw, 3.65rem)/1 var(--serif); letter-spacing: -.03em; margin-right: .06em; }
.door-status { font-size: .75rem; line-height: 1.2; font-weight: 700; }
.door-status span { display: inline-flex; gap: .3em; align-items: center; }
.door-status i { width: .52em; height: .49em; border: 1px solid currentColor; border-radius: .11em; position: relative; }
.door-status i::before { position: absolute; content: ''; border: 1px solid currentColor; border-bottom: 0; border-radius: .24em .24em 0 0; width: .29em; height: .29em; left: .02em; bottom: 100%; }
.footer { display: flex; justify-content: space-between; color: #6e4e53; border-top: 1px solid var(--line); padding-block: 1.15rem 1.5rem; font-size: .88rem; }
dialog { color: var(--dark-wine); background: #fff9f0; border: 1px solid #d8bcaa; border-radius: 1.05rem; padding: 0; width: min(42rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overscroll-behavior: contain; box-shadow: 0 1.25rem 5rem #210d2366; }
dialog::backdrop { background: #280e1aca; }
.dialog-inner { padding: 2.35rem clamp(1.2rem, 5vw, 2.65rem) 1.65rem; }
.close { position: absolute; top: .7rem; right: .7rem; width: 44px; height: 44px; color: var(--wine); background: #f1e2d6; border: 0; border-radius: 50%; font: 1.65rem/1 var(--sans); }
.close:hover { background: #e8cdbd; }
.eyebrow { color: #8b3d54; padding-right: 2.6rem; }
dialog h2 { font-size: clamp(2.25rem, 8vw, 3.45rem); margin-bottom: 1.1rem; }
dialog h2:focus { outline: none; }
dialog p { margin: 0 0 .88rem; }
dialog :where(ul, ol) { margin-top: .3rem; padding-left: 1.45rem; }
.day-navigation { display: flex; justify-content: space-between; gap: .5rem; padding-top: 1rem; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.day-navigation button, .secondary { color: var(--wine); background: #f5e6db; border: 1px solid #dcc2b5; border-radius: .45rem; padding: .55rem .75rem; min-height: 44px; font-weight: 650; font-size: .9rem; }
.day-navigation button:hover, .secondary:hover { background: #ebd5c7; }
.day-navigation button:disabled { opacity: .45; }
.solid { color: #fff8ef; background: var(--wine); }
.solid:hover { background: #743349; }
.choice, .check { display: flex; align-items: start; gap: .65rem; padding: .55rem .8rem; margin-bottom: .4rem; border: 1px solid #ded0c2; border-radius: .45rem; background: #fffcf7; cursor: pointer; min-height: 44px; }
.choice:has(input:checked), .check:has(input:checked) { background: #f1e5e4; border-color: #a6667a; }
input[type="radio"], input[type="checkbox"] { accent-color: #74354a; flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin: .28rem 0 0; }
fieldset { min-inline-size: 0; border: 0; padding: 0; margin: 0 0 .8rem; }
legend { font-weight: 700; margin-bottom: .45rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0; }
.feedback { padding: .7rem .85rem; background: #f3e7d7; border-left: 3px solid #9d566a; border-radius: .3rem; margin-top: .75rem; }
.feedback:empty { display: none; }
.hint { color: var(--muted); font-size: .91rem; }
.stack { display: grid; gap: .7rem; }
.stack label { display: grid; gap: .3rem; font-weight: 650; }
.stack :is(input[type="text"], textarea) { width: 100%; font-weight: 400; color: var(--dark-wine); min-height: 44px; border: 1px solid #c9ab9b; border-radius: .45rem; padding: .55rem .65rem; background: #fffdf8; }
.stack textarea { min-height: 4.5rem; resize: vertical; }
.card-note { border: 1px solid var(--line); border-radius: .55rem; background: #f9eee0; padding: .75rem .9rem; margin-block: .75rem; }
.card-note p:last-child { margin-bottom: 0; }
.wallpaper { display: block; width: min(60%, 13rem); height: auto; border-radius: .7rem; border: 1px solid #dfc6b0; margin-block: .9rem; }
.well { margin-block: .65rem; }
.well summary { min-height: 44px; cursor: pointer; padding: .52rem .7rem; border-radius: .4rem; background: #f5e5db; font-weight: 700; }
.well[open] summary { margin-bottom: .5rem; }
.editor-notes { color: var(--muted); }
.editor-list { list-style: none; display: grid; gap: .5rem; padding: 0; }
.editor-list li { border: 1px solid var(--line); padding: .65rem .75rem; border-radius: .4rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .18rem .35rem; align-items: start; }
.editor-list p { grid-column: 1 / -1; font-size: .94rem; margin: 0; }
.editor-pick { border: 0; background: transparent; padding: 0; text-align: left; color: var(--wine); font-weight: 750; min-height: 44px; text-decoration: underline; text-underline-offset: .15em; }
.editor-state { background: #e4ece1; color: #244b3e; border-radius: 1rem; padding: .13rem .53rem; align-self: center; font-size: .8rem; font-weight: 700; }
.editor-state.pending { background: #f2dfd0; color: #773b28; }
@media (max-width: 58rem) {
  .masthead, .shell, .footer { width: calc(100% - 3rem); }
  .hero { min-height: 23rem; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .masthead, .shell, .footer { width: calc(100% - 1.5rem); }
  .masthead { min-height: 4.2rem; }
  .brand { font-size: 1.04rem; gap: .33rem; }
  .brand-star { width: 1.5rem; height: 1.5rem; font-size: .92rem; }
  .masthead nav { gap: .12rem; }
  .plain, .outlined { padding-inline: .45rem; font-size: .81rem; }
  .hero { min-height: 25rem; border-radius: .8rem; align-items: end; }
  .hero::before { background-position: center 15%; background-size: cover; }
  .hero::after { background: linear-gradient(0deg, #3d1020 0%, #3d1020e8 28%, #3d102028 80%), linear-gradient(85deg,#3d102075,transparent 85%); }
  .hero-copy { padding: 1.15rem 1rem 1.6rem; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 5.2rem); }
  .hero-copy > p:not(.hero-kicker) { margin-block: .78rem .96rem; }
  .calendar { padding-block: 1.65rem 2rem; }
  .calendar-header { align-items: start; flex-direction: column; gap: .75rem; }
  .version { width: 100%; max-width: 23rem; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .48rem; }
  .door { min-height: 6.95rem; }
  .door-number { font-size: 2.55rem; }
  dialog { width: calc(100% - 1rem); max-height: calc(100% - 1rem); }
}
@media (max-width: 22rem) { .masthead nav { gap: 0; } .plain, .outlined { font-size: .75rem; padding-inline: .28rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.rebus { font-size: 1.45rem; font-weight: 700; letter-spacing: .12em; }
.stack .choice { display: flex; }
.quiz-panel { margin-top: 1.25rem; }
.quiz-counter { color: var(--muted); font-size: .9rem; font-weight: 700; }
.quiz-progress { display: block; width: 100%; height: .5rem; border: 0; border-radius: 1rem; background: #e8dcd0; color: #8b3d54; margin: .65rem 0 1.25rem; appearance: none; overflow: hidden; }
.quiz-progress::-webkit-progress-bar { background: #e8dcd0; }
.quiz-progress::-webkit-progress-value { background: #8b3d54; border-radius: inherit; }
.quiz-progress::-moz-progress-bar { background: #8b3d54; border-radius: inherit; }
.quiz-question { color: var(--wine); font-size: 1.24rem; line-height: 1.35; margin-bottom: .7rem; }
.quiz-correction { margin-top: .75rem; padding: .75rem .85rem; border-radius: .45rem; }
[data-result="correct"] { background: #e9efe4; color: #244b3e; border-left: 3px solid #46724f; }
[data-result="wrong"] { background: #f7e4e0; color: #77263b; border-left: 3px solid #b95664; }
.quiz-correction p { margin: .25rem 0; }
.quiz-correction a { display: inline-block; padding-block: .35rem; font-size: .86rem; }
.quiz-score { color: var(--wine); font: 400 clamp(2rem, 7vw, 3.35rem)/1.1 var(--serif); margin: 0 0 .7rem; }
.quiz-review { padding-left: 1.55rem; margin-top: 1.35rem; }
.quiz-review li { margin-block: 1rem; padding-inline-start: .28rem; }
.quiz-review-question { font-weight: 700; margin-bottom: .4rem; }
.quiz-step fieldset:disabled { opacity: .83; }
.quiz-step fieldset:disabled label { cursor: default; }
.photo-picks, .talents { display: grid; gap: .6rem; padding: 0; list-style: none; }
.photo-picks { counter-reset: photos; }
.photo-picks li, .talents li { padding: .7rem .85rem; background: #f8ecdf; border: 1px solid var(--line); border-radius: .45rem; }
.photo-picks li { display: flex; gap: .65rem; align-items: start; counter-increment: photos; }
.photo-picks li::before { content: counter(photos, decimal-leading-zero); color: var(--wine); font: 1.3rem/1.3 var(--serif); }
.talents li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .12rem .45rem; }
.talents span { font-size: .9rem; color: var(--muted); grid-column: 1; }
.talents a { color: var(--wine); grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-block: .45rem; }
.christmas-invite {
  position: relative; isolation: isolate; padding: 1.4rem 1.45rem; text-align: center;
  border: double 4px #e9bf88; border-radius: .8rem; background: radial-gradient(ellipse at 70% -30%, #7d4863, transparent 90%), #4b182d; color: #fff2da;
}
.invite-star { color: #f7d69d; font: 2rem/1 var(--serif); }
.christmas-invite .invite-name { margin: .35rem 0; font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.christmas-invite h3 { margin: 0 0 .55rem; color: #f7d69d; font: 400 clamp(1.8rem, 7vw, 2.75rem)/1.1 var(--serif); }
.christmas-invite .invite-date { margin-bottom: 0; padding-top: .55rem; border-top: 1px solid #e9bf8870; font-weight: 680; font-size: .88rem; }
.share-fallback { width: 100%; min-height: 5rem; font: inherit; }
.quiz-step .quiz-correction + .solid { margin-top: .65rem; }
.booth-time { color: var(--wine); font-weight: 750; }
.booth { display: grid; grid-template-columns: minmax(0,1fr) minmax(9rem,38%); align-items: start; gap: .95rem; margin: .8rem 0 1rem; }
.booth-slot { padding: .7rem; border: 1px solid var(--line); border-radius: .48rem; margin-bottom: .55rem; background: #f8ecdf; }
.booth-slot p { margin: .25rem 0 0; }
.booth-control { display: grid; gap: .3rem; font-weight: 700; color: var(--wine); }
.booth-control input { width: 100%; min-width: 0; font-size: .85rem; font-weight: 400; accent-color: var(--wine); }
.booth-control input::file-selector-button { min-height: 44px; color: var(--wine); border: 1px solid var(--line); border-radius: .35rem; background: #fffaf4; padding: .4rem; cursor: pointer; }
.booth-control select { min-height: 44px; background: #fffaf4; border: 1px solid var(--line); color: var(--wine); border-radius: .35rem; padding: .35rem; }
.booth-crop { font-size: .83rem; margin-top: .55rem; }
.booth-remove { font-size: .83rem; margin-top: .45rem; }
.booth-crop[hidden], .booth-remove[hidden] { display: none; }
.photo-strip { display: block; width: 100%; height: auto; border-radius: .2rem; box-shadow: 0 .35rem 1rem #39152429; }
.booth button:disabled { opacity: .55; }
.christmas-invite { padding: 0; overflow: hidden; }
.invite-art { width: 100%; height: auto; aspect-ratio: 2.3; display: block; object-fit: cover; object-position: 50% 56%; }
.invite-body { position: relative; padding: 1.45rem 1.2rem 1.1rem; }
.invite-stamp { position: absolute; top: -1.25rem; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #e9bf88; border-radius: 50%; background: #632744; color: #f7d69d; font: 1.55rem/1 var(--serif); }
.invite-plan { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .45rem .65rem; padding-top: .7rem; margin-bottom: 0; border-top: 1px solid #e9bf8870; text-align: left; font-size: .9rem; }
.invite-plan dt { color: #f7d69d; font-weight: 750; }
.invite-plan dd { margin: 0; }
.agent-steps li { padding-bottom: .35rem; }
.quiz-bonus { color: #fff1db; background: #54233b; padding: .9rem; margin-top: .9rem; border: double 3px #eec484; border-radius: .55rem; }
.quiz-bonus h4 { margin: 0 0 .45rem; color: #ffe0a5; font: 1.48rem var(--serif); }
.quiz-bonus button { margin: .2rem .3rem .15rem 0; }
.quiz-bonus .feedback { color: var(--dark-wine); }

.version small { display: block; max-width: 18rem; margin-top: .35rem; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.priss-radio { margin: 1.1rem 0 1.4rem; overflow: hidden; border-radius: .7rem; background: #1c1820; color: #fff7ed; box-shadow: 0 1rem 2.5rem rgba(40, 17, 28, .18); }
.radio-label { margin: 0; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.13); color: #eec484; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.track-list { margin: 0; padding: .25rem 0; list-style: none; }
.track { display: grid; grid-template-columns: 2.2rem minmax(0,1fr) auto; gap: .7rem; align-items: center; padding: .72rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.track:last-child { border-bottom: 0; }
.track-number { color: #a9949e; font-variant-numeric: tabular-nums; font-size: .78rem; }
.track-copy { min-width: 0; }
.track-copy strong, .track-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-copy strong { color: #fff; font-size: .95rem; }
.track-copy small { margin-top: .18rem; color: #cdbfc5; font-size: .78rem; }
.track-link { color: #eec484; font-size: .78rem; font-weight: 800; text-decoration: none; }
.track-link:hover, .track-link:focus-visible { text-decoration: underline; }
.radio-title { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
.hero h1 em { font-family: var(--script); font-style: normal; font-weight: 400; letter-spacing: 0; font-size: 1.12em; margin-left: .05em; background: linear-gradient(100deg,#e8b56f 10%,#fff1cf 45%,#d99b55 80%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite; }
#day-title { font-family: var(--serif); font-weight: 500; }
.radio-cover { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: linear-gradient(130deg, #682744, #211925); }
.radio-record { width: 4.5rem; aspect-ratio: 1; flex: none; border-radius: 50%; background: radial-gradient(circle, #e9bd85 0 6%, #963758 7% 22%, transparent 23%), repeating-radial-gradient(circle, #17131a 0 3px, #382a3a 4px 5px); }
.radio-title { margin: 0; color: #fff3df; font-size: clamp(2rem, 8vw, 3.5rem); }
.radio-player iframe { display: block; border: 0; width: 100%; }
button.track-link { background: transparent; border: 1px solid #9d7857; border-radius: 1rem; padding: .45rem .6rem; cursor: pointer; }
@media (max-width: 430px) { .track { grid-template-columns: 1.8rem minmax(0,1fr) auto; padding-inline: .75rem; gap: .5rem; } }
@media (max-width: 34rem) {
  .booth { grid-template-columns: minmax(0,1fr); }
  .photo-strip { width: min(65%, 13rem); justify-self: center; }
  .invite-body { padding-inline: .85rem; }
}

.bons { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed #c6a675; display: grid; gap: .7rem; }
.bons h4 { margin: 0; font: 500 1.35rem var(--serif); color: #762e42; }
.bon { display: grid; gap: .2rem; padding: .8rem 1rem; background: #fffdf6; border: 1px dashed #b98a5e; border-radius: .5rem; font-family: var(--sans); }
.bon strong { color: var(--wine); font-size: 1rem; line-height: 1.3; }
.bon span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.bons small { text-align: center; color: #734939; }


/* ——— Typographie travaillée ——— */
.hero h1, .calendar h2, dialog h2, .door-number, .quiz-score, .bons h4, .brand { font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero h1 { font-weight: 350; }
.calendar h2 em, dialog h2 { font-style: italic; }
.door-number { font-style: italic; font-weight: 300; }
.eyebrow, .hero-kicker { font-family: var(--sans); }

/* ——— Animations ——— */
@keyframes shimmer { 0%, 100% { background-position: 0% 0 } 50% { background-position: 100% 0 } }
@keyframes door-in { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes today { 0%, 100% { box-shadow: 0 0 0 0 #f2c58d00, inset 0 0 1.1rem #3b152318 } 50% { box-shadow: 0 0 0 4px #f2c58d70, 0 0 1.6rem #f2c58d88 } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fly { 0% { opacity: 1; transform: translate(-50%,-50%) scale(.4) } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1) rotate(70deg) } }
.door { animation: door-in .55s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
.door[data-today] { animation: door-in .55s cubic-bezier(.2,.8,.2,1) backwards, today 2.4s ease-in-out 1.2s infinite; }
.door[data-today]::before { opacity: .9; border-color: #f2c58d; }
.door[data-today] .door-status::after { content: 'aujourd’hui'; font-family: var(--hand); font-size: 1.05rem; font-weight: 600; }
dialog[open] { animation: pop .38s cubic-bezier(.2,.8,.2,1); }
dialog[open]::backdrop { animation: fade .3s ease-out; backdrop-filter: blur(3px); }
#day-content > * { animation: pop .45s cubic-bezier(.2,.8,.2,1) both; }
#day-content > *:nth-child(2) { animation-delay: .06s } #day-content > *:nth-child(3) { animation-delay: .12s } #day-content > *:nth-child(n+4) { animation-delay: .18s }
.hero { position: relative; isolation: isolate; }
.fx-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; border-radius: inherit; }
.hero-copy { position: relative; z-index: 1; }
.fx-sparkles { position: fixed; z-index: 1000; pointer-events: none; width: 0; height: 0; }
.fx-sparkles i { position: absolute; left: 0; top: 0; color: var(--c); font-style: normal; font-size: 1rem; text-shadow: 0 0 6px var(--c); animation: fly .8s cubic-bezier(.15,.7,.3,1) forwards; }
.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1001; }

/* ——— Bons à gagner ——— */
.bons-panel { margin: 0 0 1.2rem; border: 1px solid #e2c9a6; border-radius: .8rem; background: linear-gradient(120deg,#fff8ea,#fbeedd); overflow: hidden; }
.bons-panel summary { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; cursor: pointer; color: var(--wine); min-height: 44px; list-style: none; }
.bons-panel summary::-webkit-details-marker { display: none; }
.bons-panel summary strong { font: 500 1.08rem var(--serif); font-variation-settings: "SOFT" 100; flex: 1; }
.bons-ticket { font-size: 1.25rem; animation: shimmer 3s infinite; display: inline-block; }
.bons-count { font-weight: 700; font-size: .85rem; background: var(--wine); color: #ffe5b4; border-radius: 1rem; padding: .15rem .6rem; }
.bons-list { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; gap: .65rem; }
.bons-list li { display: grid; gap: .3rem; padding: .7rem .8rem; border-radius: .55rem; background: #fffdf7; border: 1px dashed #d2b48c; }
.bons-list li[data-won="true"] { border-style: solid; border-color: #d8ac6c; background: linear-gradient(120deg,#fff6df,#fdebc8); }
.bons-list strong { color: var(--wine); font-size: .95rem; }
.bons-list span { font-size: .9rem; color: var(--muted); }
.bons-list small { font-size: .8rem; color: #8a5b3a; font-weight: 700; }
.bons-bar { display: block; height: 6px; border-radius: 6px; background: #efe1cc; overflow: hidden; }
.bons-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b8456a,#e8b56f); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bon { position: relative; overflow: hidden; min-height: 5.5rem; touch-action: none; }
.bon[data-won="false"] { opacity: .75; background: repeating-linear-gradient(135deg,#fffdf6 0 10px,#f8efe0 10px 20px); }
.bon-inside { display: grid; gap: .2rem; }
.scratch-foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; border-radius: .5rem; transition: opacity .55s, transform .55s; }
.scratch-foil.gone { opacity: 0; transform: scale(1.04); }
.bon-skip { justify-self: center; background: none; border: 0; color: #8a5b3a; text-decoration: underline; font-size: .82rem; min-height: 36px; cursor: pointer; }
.bon-note { margin-top: .8rem; }

@media (prefers-reduced-motion: reduce) {
  .door, .door[data-today], dialog[open], dialog[open]::backdrop, #day-content > *, .hero h1 em, .bons-ticket { animation: none !important; }
}


/* ——— Moins « appli », plus fait main ——— */
.door-icon { display: none; }
.door { grid-template-rows: 1fr auto; min-height: 8rem; }
.door-status { font-family: var(--hand); font-size: 1rem; font-weight: 600; opacity: .85; min-height: 1.2em; }
.door[data-state="locked"] { filter: saturate(.75); }
.door[data-state="locked"] .door-number { opacity: .55; }
.door[data-state="opened"] .door-number { opacity: .8; }
.brand { font-style: italic; font-weight: 500; }
.footer-sign { font-family: var(--hand); font-size: 1.3rem; color: var(--wine); }
.hero-kicker { letter-spacing: .08em; }
#day-kicker { font-family: var(--hand); font-size: 1.25rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: #8a405e; margin-bottom: .2rem; }
.quiz-correction strong { font-family: var(--hand); font-size: 1.35rem; font-weight: 700; }

/* Version invités : on cache tout ce qui sert à Priss pour relire */
.invite #preview, .invite #editor, .invite .version { display: none !important; }

/* ——— Priss Radio : le vinyle sort de sa pochette et tourne ——— */
@keyframes vinyl-out { 0% { transform: translateX(-55%) rotate(-120deg) } 100% { transform: translateX(32%) rotate(0) } }
@keyframes vinyl-spin { from { transform: translateX(32%) rotate(0) } to { transform: translateX(32%) rotate(360deg) } }
@keyframes eq { 0%, 100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
.radio-cover { gap: 2.2rem; overflow: hidden; }
.radio-sleeve { position: relative; flex: none; width: 4.8rem; height: 4.8rem; border-radius: .3rem; background: linear-gradient(135deg, #e9bd85, #b8456a 55%, #4a2437); box-shadow: 0 .4rem 1rem #0007; z-index: 1; }
.radio-sleeve::after { content: 'PR'; position: absolute; left: .45rem; bottom: .3rem; font: italic 600 1.1rem var(--serif); color: #fff3df; letter-spacing: .02em; }
.radio-sleeve .radio-record { position: absolute; inset: .15rem; width: auto; z-index: -1; animation: vinyl-out 1.1s cubic-bezier(.2,.8,.2,1) .25s both, vinyl-spin 3.2s linear 1.35s infinite; }
.radio-heading { display: grid; gap: .35rem; }
.radio-eq { display: flex; gap: 3px; height: 1rem; align-items: end; }
.radio-eq i { width: 4px; height: 100%; background: #eec484; border-radius: 2px; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.radio-eq i:nth-child(2) { animation-delay: .2s } .radio-eq i:nth-child(3) { animation-delay: .45s } .radio-eq i:nth-child(4) { animation-delay: .1s }

/* ——— Lettre et enveloppes : le cachet saute, le rabat s'ouvre, la lettre glisse ——— */
@keyframes seal-call { 0%, 100% { transform: scale(1) rotate(0) } 50% { transform: scale(1.08) rotate(-4deg) } }
@keyframes seal-break { 0% { transform: scale(1) } 40% { transform: scale(1.25) rotate(8deg) } 100% { transform: scale(0) rotate(40deg); opacity: 0 } }
@keyframes letter-out { 0% { opacity: 0; transform: translateY(5rem) rotate(-2deg) scale(.96) } 70% { opacity: 1; transform: translateY(-.4rem) rotate(.4deg) } 100% { transform: none } }
.envelope { perspective: 900px; box-shadow: 0 .5rem 1.4rem #4e172322; }
.envelope:not([open]) .seal { animation: seal-call 1.8s ease-in-out infinite; }
.envelope[open] .seal { animation: seal-break .55s ease-in forwards; }
.envelope-lid::before { transition: transform .75s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.envelope[open] .envelope-lid::before { transform: rotateX(180deg); }
.envelope[open] .envelope-lid { min-height: 4.5rem; transition: min-height .6s; }
.envelope[open] .envelope-lid > span:not(.seal) { opacity: 0; transition: opacity .3s; }
.envelope-paper { animation: letter-out 1s cubic-bezier(.2,.8,.2,1) .35s both; box-shadow: 0 .3rem 1rem #4e172322; }

/* ——— Collection de bons ——— */
.bons-intro { margin: 0 0 .3rem; font-size: .92rem; color: var(--muted); }
.bons-list { display: grid; }
.bon-grand { border: 2px solid #d8ac6c; background: linear-gradient(120deg,#fff3d6,#fde3b8); min-height: 7rem; }
.bon-grand strong { font: italic 600 1.3rem var(--serif); }
.bon-claim { justify-self: start; margin-top: .4rem; background: var(--wine); color: #ffe5b4; border: 0; border-radius: 2rem; padding: .45rem .9rem; font-weight: 700; font-size: .85rem; min-height: 40px; cursor: pointer; }
.bons-limite { text-align: center; color: #8a5b3a; }
.bons-recap { margin: 0 0 .4rem; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1002; background: var(--wine); color: #ffe5b4; padding: .75rem 1.1rem; border-radius: 2rem; font-weight: 700; font-size: .92rem; box-shadow: 0 .6rem 1.6rem #210d2366; animation: pop .4s cubic-bezier(.2,.8,.2,1); width: max-content; max-width: calc(100vw - 2rem); text-align: center; line-height: 1.35; }
.toast.out { opacity: 0; transition: opacity .5s; }

@media (prefers-reduced-motion: reduce) {
  .radio-sleeve .radio-record, .radio-eq i, .seal, .envelope-paper { animation: none !important; }
  .radio-sleeve .radio-record { transform: translateX(32%); }
}

:root{--edition-ink:#68425f;--edition-paper:#f4e3e5;} :root[data-edition] .print-machine,.door:nth-child(1)[data-tone="wine"]{background:#68425f;color:white} #day-dialog{border-top:8px solid #68425f;background:#f4e3e5} .dialog-inner h2,.letter-sheet h3{color:#68425f} .booth .print-machine{order:-1} .booth{display:flex;flex-direction:column} .print-key{margin:.7rem auto} .print-slot:not(.printing){height:3rem}
.cover{max-width:31rem;margin:1rem auto;text-align:center} .cover h1{margin:0}.cover img{width:100%;display:block}.cover a{display:inline-block;background:#65425f;color:white;padding:.8rem 1.5rem;margin:.5rem;border-radius:4px}
.board{position:relative;width:min(100%,28rem);margin:auto}.board img{width:100%;display:block}.board .days{position:absolute;inset:21.7054% 2.2222% 1.5504% 3.3333%;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(6,1fr);gap:0}.board .days li{margin:0}.board .door{width:95%;height:94%;min-height:0;background:transparent!important;border:0;box-shadow:none;color:white;animation:none;transform:none}.board .door>*,:root .board .door::before,:root .board .door::after{display:none}.board .door[data-state=opened]::after{content:'✓';display:block;position:absolute;inset:auto 5px 3px auto;font:14px sans-serif;color:white}.board .door:focus-visible{outline:3px solid orange}.calendar{padding-top:.25rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#day-dialog .dialog-inner::before{content:'';display:block;aspect-ratio:720/208;background:url('papier.webp') center/contain no-repeat;margin-bottom:.8rem}#day-dialog .close{z-index:3}
#day-dialog .christmas-invite .invite-body{background:#fffaf0!important;color:#302b29!important;border:1px solid #b69a72;text-align:left} #day-dialog .christmas-invite .invite-body :is(h3,p,dt,dd){color:#302b29!important} #day-dialog .invite-name{letter-spacing:.08em} #day-dialog .invite-plan{border-top:1px solid #b69a72} #day-dialog .letter-sheet{background:#fffaf0;color:#332522} #day-dialog .letter-sheet p:not(.signature){font-family:var(--sans,Arial),sans-serif;font-size:1rem;line-height:1.75;white-space:pre-line} #day-dialog .letter-sheet .signature{font-size:2rem} .track-copy a{font-weight:700;color:inherit;text-decoration:underline;text-underline-offset:3px} #day-content p{white-space:pre-line}


/* ═══ univers « carnet de danse » · claire (repris du canvas des 7 univers) ═══ */
:root[data-edition="claire"] {
  --edition-ink: #6a4c7a; --edition-paper: #f5f1f6;
  --hand: "Over the Rainbow", "Caveat", cursive; --script: "Mrs Saint Delafield", "Pinyon Script", cursive;
  --gold: #e39aae; --line: #e3dde9;
}
:root[data-edition="claire"] .hero { background: radial-gradient(ellipse at 80% 80%, #6a4c7a, transparent 55%), #3f3a48; }
:root[data-edition="claire"] .hero::before { background: linear-gradient(90deg, #3f3a48ee, transparent), url('hero.webp') center/cover; }
:root[data-edition="claire"] .hero::after { background: linear-gradient(90deg, #3f3a48f5 0%, #3f3a48c8 35%, #3f3a482b 68%, transparent 100%); }
:root[data-edition="claire"] .hero-kicker { color: #e3dde9; }
:root[data-edition="claire"] .hero h1 em { color: #e39aae; }
:root[data-edition="claire"] .hero-link { background: #e39aae; color: #3f3a48; }
:root[data-edition="claire"] .footer-sign { color: #6a4c7a; }
:root[data-edition="claire"] .door[data-state="ready"] { border-color: #e39aae; }
:root[data-edition="claire"] .dedication { background: #e3dde9; color: #3f3a48; }
@media(max-width:640px){
  :root[data-edition="claire"] .hero::after { background: linear-gradient(0deg, #3f3a48 0%, #3f3a48e8 28%, #3f3a4828 80%), linear-gradient(85deg, #3f3a4875, transparent 85%); }
}

.bingo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;margin:1rem 0}.bingo-tile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;aspect-ratio:1;padding:.2rem;border:1px solid #aa806b;border-radius:.5rem;background:#fff9ef center/cover no-repeat;color:#4c3028;font-size:.56rem;line-height:1.1;text-align:center;overflow:hidden;cursor:pointer}.bingo-label{background:#fff9efdd;border-radius:.3rem;padding:.12rem .2rem;overflow-wrap:anywhere}.bingo-plus{font-size:.95rem;line-height:1;margin-bottom:auto;opacity:.8}.bingo-tile[data-done=true] .bingo-plus{display:none}.bingo-tile[data-done=true]{border-color:#345c48;border-width:2px}.bingo-tile:focus-within{outline:3px solid #ad6c21}
/* ===== Téléphone : lisibilité, zones tactiles, pas de débordement (≤ 576 px, l'ordinateur ne change pas) ===== */
iframe, video, embed { max-width: 100%; }
@media (max-width: 36rem) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 1rem; overflow-x: clip; overflow-wrap: break-word; }
  img { max-width: 100%; height: auto; }
  .eyebrow, .calendar-status p, .hint, .footer, .footer span, .quiz-counter, .track-number,
  .track-copy a, .track-copy small, .track-link, .quiz-correction a, .day-navigation button,
  .secondary, .solid, button, select, input, textarea, .door-status { font-size: 1rem; }
  .brand { display: inline-flex; align-items: center; min-height: 2.8rem; min-width: 2.8rem; }
  .track-link, .track-copy a, .quiz-correction a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; min-width: 2.8rem; }
  .track-copy a { justify-content: flex-start; }
  .day-navigation button, .secondary, .solid, .close { min-height: 2.8rem; min-width: 2.8rem; }
  input[type="checkbox"], input[type="radio"] { width: 1.5rem; height: 1.5rem; flex: none; }
  .link-list .track-link { font-size: 1rem; }
  .footer { flex-direction: column; gap: .35rem; }
  /* bingo : 2 colonnes pour que les consignes se lisent à 16 px */
  .bingo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .bingo-tile { font-size: 1rem; line-height: 1.2; padding: .4rem; }
  .bingo-plus { font-size: 1.6rem; }
  .bingo-label { padding: .25rem .4rem; }
}
@media (max-width: 36rem) {
  small, dt, dd, summary, .toast, .bons-count, .radio-label, .invite-name, .letter-sheet small, .bons-panel summary { font-size: 1rem; }
  summary { min-height: 2.8rem; display: flex; align-items: center; }
}
@media (max-width: 36rem) {
  #day-content :is(span, small, dd, dt, p, li) { font-size: max(1rem, 1em); }
  .christmas-invite .invite-name, .christmas-invite .invite-date, .invite-plan { font-size: 1rem; }
  summary { min-height: 3rem; }
}
@media (max-width:36rem){details > summary{min-height:3rem!important}}

.bon-cond { display: block; margin: .25rem 0; line-height: 1.3; }
@media (max-width: 36rem) {
  html { overflow-x: clip; }
  .bons-panel :is(p, span, strong, small, div, summary) { font-size: 1rem; }
  .bons-panel button, .bon-claim, .bon-skip { font-size: 1rem; min-height: 3rem; min-width: 3rem; padding-inline: 1rem; display: inline-flex; align-items: center; justify-content: center; }
}
