:root {
  font-family: 'Trebuchet MS', system-ui, sans-serif;
  color: var(--ink);
  background: #e8c5dc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #481b36;
  --muted: #70435d;
  --burgundy: #702048;
  --burgundy-dark: #501330;
  --white: #fff;
  --pale-pink: #fdf2f9;
  --soft-pink: #f5e1ef;
  --pink: #ebc8de;
  --edge: #d3a9c1;
  --focus: #93345f;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 50% 12%,#fbf3fb 0,#f4dce9 37%,#e1b8d3 100%)}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input { accent-color: var(--burgundy); caret-color: var(--burgundy); }
::selection{background:var(--pink);color:var(--ink)}::-webkit-scrollbar{width:9px}::-webkit-scrollbar-thumb{background:var(--burgundy);border:2px solid var(--pink);border-radius:8px}::-webkit-scrollbar-track{background:var(--pink)}
.scene{position:relative;min-height:100svh;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;align-items:center;padding:24px 20px 19px;isolation:isolate}.topline,footer{z-index:1;color:var(--burgundy);letter-spacing:.08em;font-size:.73rem;font-weight:800;text-transform:uppercase}footer{align-self:end;text-transform:none;letter-spacing:.03em;font-size:.75rem;color:#76305a}footer span{padding-left:4px}.floating-decor{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}.floating-decor i{position:absolute;color:#ba7eab87;font-style:normal;animation:drift 10s ease-in-out infinite alternate}.floating-decor i:nth-child(1){left:10%;top:32%;font-size:27px}.floating-decor i:nth-child(2){left:83%;top:24%;font-size:17px;animation-delay:-3s}.floating-decor i:nth-child(3){left:78%;top:78%;font-size:22px;animation-delay:-5s}.floating-decor i:nth-child(4){left:16%;top:76%;font-size:25px;animation-delay:-2s}.floating-decor i:nth-child(5){left:88%;top:53%;font-size:42px;animation-delay:-6s}@keyframes drift{to{transform:translate(12px,-17px) rotate(25deg)}}
.invitation{position:relative;width:min(100%,440px);min-height:500px;padding:36px 36px 33px;border-radius:29px;background:linear-gradient(145deg,#fffafd,#fbeff8 52%,#fae7f3);box-shadow:0 26px 65px #6e28512c,0 2px 6px #fff9 inset;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:min-height .55s var(--ease),transform .5s var(--ease);overflow:visible}.invitation::before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at 12% 9%,#fff9,transparent 48%);pointer-events:none}.progress{position:absolute;top:24px;display:flex;gap:7px}.progress-dot{width:17px;height:5px;border-radius:5px;background:var(--edge);transition:width .3s var(--ease),background .3s}.progress-dot.active{width:25px;background:var(--burgundy)}.art{height:142px;display:flex;align-items:center;justify-content:center;margin:-9px 0 5px;z-index:1}
h1{position:relative;margin:0 0 22px;font-size:clamp(1.7rem,5vw,2.14rem);line-height:1.13;font-weight:900;letter-spacing:-.035em;color:var(--ink)}h1 span{white-space:nowrap}.stage{position:relative;z-index:1;width:100%;animation:arrive .55s var(--ease) backwards}@keyframes arrive{from{opacity:0;transform:translateY(13px);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}[hidden]{display:none!important}.stage-question{margin-top:-4px}.answer-row{display:flex;justify-content:center;align-items:center;gap:12px;min-height:49px}.no-slot{display:inline-flex;min-width:91px;min-height:44px;align-items:center;justify-content:flex-start}.button{border:0;border-radius:999px;cursor:pointer;transition:transform .22s var(--ease),background .22s,color .22s,box-shadow .22s;box-shadow:0 7px 16px #68204422;font-weight:900}.button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px #68204433}.button:active:not(:disabled){transform:scale(.97)}.button-yes{padding:12px 24px;background:var(--burgundy);color:var(--white)}.button-no{position:relative;padding:10px 20px;background:var(--pink);color:var(--ink);font-size:.84rem;box-shadow:none;white-space:nowrap;z-index:3}.button-no.escape{position:fixed;z-index:9;transition:none}.button-no.escape:hover:not(:disabled){transform:none}.button-primary{margin-top:22px;padding:12px 23px;background:var(--burgundy);color:var(--white)}.button:is(.button-yes,.button-primary):hover:not(:disabled){background:var(--burgundy-dark)}.button:disabled{opacity:1;background:var(--soft-pink);color:var(--muted);cursor:not-allowed;box-shadow:none;transform:none}.text-action{border:0;background:transparent;color:var(--ink);font-size:.8rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.glass-title{margin:0 0 17px;color:var(--ink);font-size:1.05rem;font-weight:800}.glass-wrap{position:relative;width:min(100%,275px);margin-inline:auto;aspect-ratio:1;border-radius:22px;overflow:hidden;box-shadow:0 12px 30px #68204422}.fog-message{position:absolute;inset:0;display:grid;place-items:center;padding:25px;filter:blur(1.7px);background:var(--pink);color:var(--ink);font-weight:900;font-size:1.18rem;line-height:1.3}.glass-wrap canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.hint{margin:15px 0 5px;color:var(--ink);font-size:.86rem;font-weight:700}.stage-fog .text-action{margin-top:3px}.fields{display:grid;gap:12px;text-align:left}.fields label,.custom-activity{display:grid;gap:6px;color:var(--muted);font-size:.78rem;font-weight:800}.fields input,.custom-activity input{width:100%;min-height:48px;padding:10px 13px;border:1px solid var(--edge);border-radius:13px;background:var(--soft-pink);color:var(--ink);font-size:1rem;font-weight:800;color-scheme:light}.subtitle{margin:-12px 0 18px;color:var(--muted);font-size:.92rem;font-weight:700}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.choice{min-height:77px;display:grid;justify-items:center;align-content:center;gap:4px;border:1px solid var(--soft-pink);border-radius:16px;background:var(--soft-pink);cursor:pointer;transition:transform .22s var(--ease),background .22s,color .22s;animation:arrive .45s var(--ease) both}.choice:nth-child(2){animation-delay:.06s}.choice:nth-child(3){animation-delay:.12s}.choice:nth-child(4){animation-delay:.18s}.choice:nth-child(5){animation-delay:.24s}.choice:hover{transform:translateY(-2px)}.choice.selected{border-color:var(--focus);background:var(--white);color:var(--ink);box-shadow:0 6px 16px #6820441a}.choice span{font-size:1.5rem}.choice small{font-weight:800;font-size:.77rem}.choice-custom{grid-column:span 2;min-height:55px;display:flex;justify-content:center}.choice-custom span{font-size:1.1rem}.custom-activity{margin-top:12px}.stage-activity .button-primary{margin-top:16px}.invitation:is([data-stage=date],[data-stage=activity],[data-stage=final]) .art{height:122px}.art[data-pose="pair"] .pug-pair{display:block}.art[data-pose="hat"] .pug-hat{display:block}.art[data-pose="pals"] .pug-pals{display:block}.art[data-pose="party"] .pug-party{display:block}.stage-date h1{margin-bottom:20px}.stage-final h1{margin:4px 0 12px}.final-copy{margin:0 auto 15px;max-width:29ch;color:var(--muted);font-weight:700;font-size:.88rem}.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:0 0 16px}.countdown div{padding:9px 3px 8px;border-radius:13px;background:var(--soft-pink);display:grid;gap:1px}.countdown b{font-size:1.35rem;font-variant-numeric:tabular-nums;color:var(--ink)}.countdown small{font-size:.63rem;color:var(--muted);font-weight:800}.summary{margin:0;display:grid;gap:7px;text-align:left}.summary div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--soft-pink);font-size:.79rem}.summary dt{font-weight:900;color:var(--muted)}.summary dd{margin:0;text-align:right;font-weight:700;color:var(--ink)}.stage-final .button-primary{margin-top:16px}.saved{margin:9px 0 0;color:var(--muted);font-size:.72rem;font-weight:800}.stage-refusal .subtitle{margin:0}.confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:8}
@media(max-width:480px){.scene{padding:16px 14px 14px;min-height:100svh}.topline{font-size:.66rem}.invitation{width:min(100%,390px);min-height:460px;padding:32px 22px 27px;border-radius:25px}.art{height:132px}.glass-wrap{width:min(100%,250px)}h1{font-size:clamp(1.62rem,7vw,2rem)}.invitation[data-stage=final] .art{height:112px}.summary div{padding:9px 10px}}@media(max-height:700px){.scene{padding-top:10px;padding-bottom:10px}.invitation{min-height:420px;padding-top:29px;padding-bottom:24px}.art{height:112px}.pug{max-height:110px}.invitation:is([data-stage=date],[data-stage=activity],[data-stage=final]) .art{height:105px}.progress{top:16px}.stage-final .countdown{margin-bottom:10px}.stage-final .button-primary{margin-top:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.invitation[data-stage="date"] { min-height: 520px; }
.invitation[data-stage="activity"] { min-height: 580px; }
.invitation[data-stage="final"] { min-height: 630px; }
.invitation[data-stage="refusal"] { min-height: 350px; }
.invitation[data-stage]:not([data-stage="fog"]) { padding-top: 40px; }
.stage { min-width: 0; }
.stage h1:focus { outline: none; }
.glass-wrap canvas { transition: opacity .48s ease; }
.glass-wrap canvas.cleared { opacity: 0; pointer-events: none; }
.text-action, .button-no { min-height: 44px; }
.fields, .fields label, .fields input, .custom-activity input { min-width: 0; }
.custom-activity { text-align: left; }
.choice-custom { align-items: center; }
.summary dd { min-width: 0; overflow-wrap: anywhere; }
.summary dt { flex-shrink: 0; }
.invitation[data-stage="final"] .stage { animation-delay: .13s; }

.art {
  position: relative;
  width: min(100%, 238px);
  pointer-events: none;
}

.pug {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px #68204422);
  transform-origin: 50% 88%;
  animation: sticker-in .48s var(--ease) backwards, var(--pug-motion);
}

.pug-pair { --pug-motion: pug-sway 4.8s .46s ease-in-out infinite; }
.pug-hat { --pug-motion: pug-tilt 5s .46s ease-in-out infinite; }
.pug-pals { --pug-motion: pug-breathe 3.8s .46s ease-in-out infinite; }
.pug-party { --pug-motion: pug-hop 3.6s .46s ease-in-out infinite; }

.art::before,
.art::after {
  content: "✦";
  position: absolute;
  color: #a75780;
  font-size: .9rem;
  opacity: 0;
  animation: sticker-sparkle 3.6s .35s ease-in-out infinite;
}

.art::before { top: 16%; left: 6%; }
.art::after {
  top: 33%;
  right: 3%;
  color: #c57fa5;
  animation-delay: .6s;
}
.art[data-pose="pals"]::before,
.art[data-pose="pals"]::after { display: none; }

@keyframes sticker-in {
  from { opacity: 0; scale: .88; translate: 0 9px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes pug-sway {
  0%, 100% { transform: none; }
  26% { transform: translateY(-4px) rotate(-4deg); }
  62% { transform: translateY(-3px) rotate(3deg); }
}

@keyframes pug-tilt {
  0%, 100% { transform: none; }
  34%, 52% { transform: translateY(-3px) rotate(-9deg); }
  72% { transform: rotate(2deg); }
}

@keyframes pug-breathe {
  0%, 100% { transform: none; }
  50% { transform: scale(1.025, 1.04); }
}

@keyframes pug-hop {
  0%, 100% { transform: none; }
  11% { transform: translateY(-9px) rotate(-5deg); }
  24% { transform: scale(1.06, .94); }
  35% { transform: translateY(-4px) rotate(3deg); }
  54% { transform: none; }
}

@keyframes sticker-sparkle {
  0%, 42%, 100% { opacity: 0; transform: translateY(3px) rotate(-18deg) scale(.5); }
  18% { opacity: .8; transform: translateY(-3px) rotate(12deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pug, .art::before, .art::after { animation: none; }
}

.scene { grid-template-rows: auto 1fr; }
.keyboard-hint { display: none; }
.stage-fog:has(canvas:focus-visible) .keyboard-hint { display: block; }
.glass-wrap:has(canvas:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.fields fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fields legend { margin-bottom: 7px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.slot {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--soft-pink);
  color: var(--ink);
  font: inherit;
}
.slot { cursor: pointer; font-size: .8rem; }
.slot strong { display: block; }
.slot[aria-pressed="true"] { border-color: var(--focus); background: var(--white); }
.slot:disabled { opacity: .48; cursor: default; }
.slot-custom { grid-column: 1 / -1; }
.custom-slot-fields { margin-top: 12px; }
.final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stage-final .final-actions .button-primary { margin: 0; }

@media (max-width: 480px) {
  .scene { row-gap: 12px; }
  .invitation[data-stage="date"] { min-height: 450px; }
  .invitation[data-stage="activity"], .invitation[data-stage="final"] { min-height: 0; }
  .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .countdown b { font-size: 1.05rem; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.metro-picker { position: relative; }
.metro-picker button, .metro-map button { -webkit-tap-highlight-color: #6820441a; }
.metro-label { margin: 0 0 6px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.metro-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--pale-pink);
  text-align: left;
  cursor: pointer;
}
.metro-chevron {
  width: 8px;
  height: 8px;
  margin: 0 3px 4px auto;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  flex: none;
  transform: rotate(45deg);
}
.metro-toggle[aria-expanded="true"] .metro-chevron { transform: rotate(225deg); margin-bottom: -4px; }
.metro-popover {
  width: min(390px, calc(100% - 24px));
  max-width: none;
  padding: 14px;
  border: 0;
  border-radius: 20px;
  background: var(--pale-pink);
  color: var(--ink);
  box-shadow: 0 18px 48px #60203e35;
}
.metro-popover::backdrop { background: #49162e68; }
.metro-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.metro-picker-head h2 { margin: 0; font-size: 1.12rem; }
.metro-result-area {
  position: relative;
  height: 190px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.metro-results {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: safe flex-end;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  margin: 0;
  padding: 3px;
  list-style: none;
  scrollbar-color: #a75780 var(--pale-pink);
  scrollbar-width: thin;
}
.metro-results .metro-station { min-height: 44px; }
.metro-empty { position: absolute; inset: 12px 10px auto; margin: 0; color: var(--muted); font-size: .86rem; }
#metro-search {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--edge);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}
#metro-search::placeholder { color: var(--muted); }
#metro-search::-webkit-search-cancel-button { filter: grayscale(1); }
.metro-station {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 41px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  line-height: 1.15;
  font-size: .83rem;
  font-weight: 800;
  cursor: pointer;
}
.metro-station:not(:disabled):hover, .metro-station[aria-pressed="true"] { background: var(--soft-pink); }
.metro-station small { display: block; margin-top: 2px; color: var(--muted); font-size: .67rem; }
.metro-station:disabled { color: var(--muted); cursor: default; }
.metro-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--line);
}
.metro-map-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.metro-map-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.metro-map-icon {
  display: inline-block;
  width: 14px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 29%, currentColor 29% 42%, transparent 42% 60%, currentColor 60% 73%, transparent 73%);
}
.stage-date .button-primary { margin-top: 8px; }

.metro-map {
  position: fixed;
  width: min(calc(100% - 24px), 1120px);
  max-width: none;
  max-height: calc(100svh - 24px);
  padding: clamp(13px, 3vw, 22px);
  border: 0;
  border-radius: 24px;
  background: var(--soft-pink);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 24px 70px #60203e35;
}
.metro-map::backdrop { background: #49162e68; }
.metro-map-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metro-map-head h2 { margin: 0; font-size: clamp(1.13rem, 3.8vw, 1.55rem); letter-spacing: -.025em; }
.metro-map-close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--pale-pink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.metro-map-hint { margin: 1px 0 10px; font-size: .82rem; color: var(--muted); }
.metro-map-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.metro-line-shortcut {
  width: 42px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--pale-pink);
  box-shadow: inset 0 -3px var(--line);
  cursor: pointer;
  font-weight: 900;
}
.metro-map-scroll {
  max-height: min(64svh, 705px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 14px;
  background: var(--white);
  scrollbar-color: #a75780 var(--soft-pink);
  scrollbar-width: thin;
}
.metro-map-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  min-width: 1040px;
}
.metro-map-line { min-width: 0; padding: 8px; border-right: 1px solid var(--edge); }
.metro-map-line h3 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 4px;
  padding: 8px;
  background: var(--white);
  box-shadow: inset 0 -3px var(--line);
  border-radius: 5px;
  font-size: .86rem;
}
.metro-map-line ol { position: relative; margin: 0; padding: 0; list-style: none; }
.metro-map-line ol::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 21px;
  bottom: 21px;
  width: 3px;
  border-radius: 3px;
  background: var(--line);
}
.metro-map-line button { position: relative; min-height: 44px; padding-right: 2px; }
.metro-map-line .metro-dot { box-shadow: 0 0 0 2px var(--white); }
.metro-map-line .is-closed .metro-dot { opacity: .48; }
.metro-transfer { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.metro-transfer i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.metro-popover :focus-visible, .metro-map :focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.invitation[data-stage="refusal"] { min-height: 390px; padding-top: 18px; }
.refusal-clip { position: relative; width: min(100%, 340px); margin: 0 auto; aspect-ratio: 432 / 350; }
#refusal-video { opacity: 0; pointer-events: none; }
.refusal-clip canvas { display: block; width: 100%; height: auto; }
.refusal-caption {
  position: absolute;
  inset: auto 0 9px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--burgundy-dark);
  color: var(--white);
  font-size: clamp(.88rem, 3.8vw, 1.15rem);
  font-weight: 900;
  white-space: pre-line;
}


.button-no {
  border: 1px solid var(--burgundy);
  background: var(--white);
  color: var(--burgundy-dark);
}
.button-no.escape {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 0 0 2px var(--white), 0 6px 18px #50133042;
}
.button-no.escape:focus-visible { outline-offset: 5px; }

.refusal-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 12px; }
.refusal-actions .button-primary { min-height: 44px; margin: 0; }

.custom-slot-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.schedule-field { display: grid; align-content: start; gap: 5px; min-width: 0; color: var(--muted); font-size: .79rem; font-weight: 800; }
.schedule-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--pale-pink);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.schedule-toggle:hover { background: var(--white); }
.schedule-toggle .metro-chevron { margin-left: 2px; }

.schedule-dialog {
  width: min(390px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100svh - 24px);
  padding: clamp(13px, 4vw, 23px);
  border: 0;
  border-radius: 22px;
  background: var(--pale-pink);
  color: var(--ink);
  box-shadow: 0 24px 70px #60203e35;
  overflow: auto;
  overscroll-behavior: contain;
}
.schedule-dialog::backdrop { background: #49162e68; }
.schedule-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.schedule-dialog h2 { margin: 0; font-size: clamp(1.13rem, 4.7vw, 1.45rem); letter-spacing: -.025em; }
.schedule-close, .calendar-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--soft-pink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.calendar-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 6px; }
.calendar-nav p { margin: 0; text-align: center; font-weight: 900; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-week { margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 800; text-align: center; }
.time-hours, .time-minutes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.time-minutes { position: relative; max-height: min(178px, 25svh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--edge) var(--pale-pink); }
.calendar-days button, .time-part button {
  min-height: 43px;
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--white);
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  cursor: pointer;
}
.schedule-dialog button[aria-current="date"] { border-color: var(--focus); }
.schedule-dialog button:not(:disabled):hover { background: var(--soft-pink); }
.schedule-dialog button[aria-pressed="true"], .schedule-dialog button[aria-pressed="true"]:hover,
.schedule-dialog .time-apply:not(:disabled):hover { background: var(--burgundy); color: var(--white); }
.schedule-dialog button:disabled { background: transparent; color: #825d74; opacity: .63; cursor: default; }
.schedule-dialog button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.schedule-dialog button[aria-pressed="true"]:focus-visible, .schedule-dialog .time-apply:focus-visible { outline-color: var(--white); }
.time-part + .time-part { margin-top: 12px; }
.time-part h3 { margin: 0 0 5px; color: var(--muted); font-size: .82rem; }
.schedule-dialog .time-apply { width: 100%; min-height: 44px; margin-top: 14px; }
@media (max-height: 500px) {
  .schedule-dialog-head { margin-bottom: 7px; }
  .time-minutes { max-height: 135px; }
}


.button-no, .refusal-actions button, .schedule-toggle, .schedule-dialog button {
  -webkit-tap-highlight-color: transparent;
}
.button-no.escape { border-color: var(--white); }
.refusal-actions { margin-top: 7px; }
.time-minutes { scroll-snap-type: y proximity; }
.time-minutes button { scroll-snap-align: start; }


@media (orientation: landscape) and (max-height: 500px) {
  #time-picker[open] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 13px;
    width: min(590px, calc(100% - 24px));
  }
  #time-picker .schedule-dialog-head, #time-picker .time-apply { grid-column: 1 / -1; }
  #time-picker .time-part + .time-part { margin-top: 0; }
}


.calendar-options p { max-width: 34ch; margin: 0 auto; color: var(--muted); font-size: .8rem; }
#calendar { min-height: 44px; }
@media (hover: none) and (max-width: 600px), (pointer: coarse) and (max-height: 550px) {
  .scene {
    align-items: start;
    row-gap: 14px;
    padding-top: max(16px, calc(env(safe-area-inset-top) + 8px));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
    padding-left: max(14px, env(safe-area-inset-left));
  }
  .invitation { transition: none; }
  .stage { animation-name: mobile-arrive; }
  .choice { animation-name: mobile-arrive; }
  .metro-popover {
    position: fixed;
    inset: max(8px, calc(env(safe-area-inset-top) + 8px)) 0 auto;
    margin: 0 auto;
    max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    overscroll-behavior: contain;
  }
  .metro-result-area { height: min(143px, 22svh); }
  .metro-popover button { -webkit-tap-highlight-color: transparent; }
}
@keyframes mobile-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (orientation: landscape) and (max-height: 500px) {
  .metro-popover { padding: 8px 12px; }
  .metro-picker-head { margin-bottom: 3px; }
  .metro-result-area { height: min(91px, 20svh); }
}

.email-notice {
  max-width: 39ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.4;
}

.stage-final .countdown { contain: layout; }
.stage-final .summary div { min-height: 36px; }
.stage-final .saved { min-height: 1.4em; }
.stage-final .final-actions { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 12px; }
.stage-final .final-actions #calendar { grid-column: 1 / -1; justify-self: center; }
.stage-final .final-actions #calendar-download[hidden] + #restart { grid-column: 1 / -1; }
.stage-final .final-actions .text-action, #email-retry { min-height: 44px; -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) {
  html:has(.invitation[data-stage="final"]) { overscroll-behavior-y: none; }
  .invitation[data-stage="final"], .stage-final { animation: none; transition: none; }
  .invitation[data-stage="final"] ~ .confetti { visibility: hidden; }
}
