@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: Manrope, Arial, sans-serif;
  --cream: #fff5e9;
  --muted: #dbc8c4;
  --rose: #ee6577;
  --gold: #f5c99a;
  --line: rgba(255, 227, 207, .25);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-width: 320px; min-height: 100svh; margin: 0; overflow-x: hidden; color: var(--cream); background: #110b10; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 54px 24px;
  overflow: hidden;
}
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, #140b14b8, #120a12a8 55%, #190a10c1),
              linear-gradient(0deg, #120a12e8, transparent 40%, #130a13bf),
              url('./cinema-backdrop.png') center 54% / cover no-repeat,
              #1b1016;
  transform: scale(1.025);
}
.page::after {
  content: '';
  position: absolute;
  inset: clamp(12px, 2vw, 28px);
  z-index: -1;
  border: 1px solid rgba(255, 232, 210, .28);
  pointer-events: none;
}

.hero { width: min(100%, 1000px); text-align: center; position: relative; padding: 44px 0 18px; }
.hero > .eyebrow { animation: reveal .7s .05s both; }
.hero > .headline { animation: reveal .85s .16s both; }
.hero > .choices { animation: fade-in .85s .3s both; }
.hero > .footnote { animation: reveal .85s .42s both; }
@keyframes reveal { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .76rem;
  font-weight: 800;
  margin: 0 0 28px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 38px; height: 1px; background: var(--gold); opacity: .75; }
.headline {
  font: 500 clamp(5.8rem, 13.6vw, 11.7rem)/.75 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.068em;
  text-wrap: balance;
  margin: 0 auto;
  color: var(--cream);
  text-shadow: 0 9px 45px #160710a6;
}
.headline span { display: block; font-style: italic; color: var(--gold); margin: .02em 0 0 .18em; }
.choices { height: 158px; max-width: 650px; position: relative; margin: 50px auto 0; }
.choice {
  position: absolute;
  top: 17px;
  width: 242px;
  min-height: 68px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease, left .2s ease, top .2s ease, background .22s ease;
}
#yes {
  left: calc(50% - 258px);
  z-index: 2;
  color: #fffaf4;
  background: linear-gradient(110deg, #e85066, #b82d4d);
  box-shadow: 0 14px 35px #b3233c65, inset 0 1px #ffffff52;
}
#yes:hover { transform: translateY(-5px); box-shadow: 0 21px 42px #b3233c83, inset 0 1px #ffffff80; }
#no { left: calc(50% + 16px); z-index: 3; color: var(--cream); border-color: #ffdbc880; background: #2b1725b8; backdrop-filter: blur(12px); }
#no:hover { background: #502637ca; }
#no.fleeing { position: fixed; transition: left .22s ease, top .22s ease; }
.footnote { color: #f0d4c8; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0; text-shadow: 0 2px 10px #000; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 18px; background: #13080edb; backdrop-filter: blur(14px); }
.dialog-backdrop.open { display: flex; }
.dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92svh, 810px);
  overflow: auto;
  padding: 30px;
  color: var(--cream);
  background: linear-gradient(155deg, #39202b, #20131e 58%, #1a111d);
  border: 1px solid #f6b99b7d;
  border-radius: 8px;
  box-shadow: 0 35px 95px #050204b8, inset 0 1px #fff4d226;
}
.dialog::before { content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.dialog h2 { font: 600 clamp(2.15rem, 5vw, 3rem)/.95 'Cormorant Garamond', Georgia, serif; letter-spacing: -.035em; margin: 0; }
.icon-btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; color: var(--cream); border: 1px solid var(--line); border-radius: 50%; background: #ffffff0d; font-size: 1.35rem; line-height: 1; }
.icon-btn:hover { background: #ffffff1f; }
.calendar { margin-top: 25px; padding: 20px; background: #150e19a3; border: 1px solid var(--line); border-radius: 6px; }
.month-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.month-label { font-size: 1rem; font-weight: 800; text-transform: capitalize; }
.month-nav { display: flex; gap: 7px; }
.month-nav .icon-btn { width: 32px; height: 32px; font-size: 1.2rem; }
.month-nav .icon-btn:disabled { opacity: .38; cursor: default; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays { margin-bottom: 8px; }
.weekdays span { color: #bba2a9; font-size: .77rem; font-weight: 800; text-align: center; }
.day { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--cream); font-weight: 700; }
.day:hover:not(:disabled) { background: #ffffff20; }
.day.today { box-shadow: inset 0 0 0 1px var(--gold); }
.day.selected { color: #211019; background: var(--gold); box-shadow: 0 5px 15px #f5c99a54; }
.day:disabled { color: #7f6b78; cursor: default; }
.time-title { font-size: .96rem; font-weight: 800; margin: 25px 0 12px; }
.time-title small { display: block; color: var(--gold); font-size: .76rem; font-weight: 600; margin-top: 5px; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-chip { padding: 10px 3px; min-height: 43px; border: 1px solid var(--line); border-radius: 4px; background: #ffffff0b; color: var(--cream); font-size: .88rem; font-weight: 700; }
.time-chip:hover, .time-chip.selected { border-color: var(--gold); background: #f5c99a20; }
.time-chip.selected { color: var(--gold); }
.custom-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #d9c3c3; font-size: .88rem; margin-top: 14px; }
.custom-time input { min-height: 39px; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; color: var(--cream); background: #ffffff0c; color-scheme: dark; }
.primary { width: 100%; min-height: 54px; margin-top: 22px; padding: 12px; color: var(--cream); border: 0; border-radius: 4px; background: linear-gradient(110deg, #e85066, #b82d4d); box-shadow: 0 10px 24px #b3233c55; font-weight: 800; }
.primary:hover:not(:disabled) { filter: brightness(1.1); }
.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.hint { min-height: 20px; color: #c9aeb5; text-align: center; font-size: .82rem; margin: 10px 0 0; }
.hint.error { color: #ff9ca9; }
.success { display: none; text-align: center; padding: 64px 4px 8px; }
.success.show { display: block; }
#close-success { position: absolute; right: 22px; top: 22px; }
.success p { color: #dfc8c5; line-height: 1.6; }
.success-date { font: 600 1.5rem/1.25 'Cormorant Garamond', Georgia, serif; color: var(--gold) !important; margin: 25px 0 3px; }
.text-btn { border: 0; background: none; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; padding: 13px; margin-top: 10px; }

@media (max-width: 650px) {
  .page { padding: 35px 24px 30px; }
  .page::before { background-position: center, center, center 48%; }
  .hero { padding: 0; }
  .eyebrow { gap: 13px; margin-bottom: 28px; font-size: .75rem; letter-spacing: .24em; }
  .eyebrow::before, .eyebrow::after { width: 19px; }
  .headline { font-size: clamp(5.2rem, 18.5vw, 7rem); line-height: .83; }
  .headline span { margin-left: .05em; }
  .choices { height: 155px; max-width: 360px; margin-top: 42px; }
  .choice { top: 0; width: 46%; min-height: 62px; padding: 8px; font-size: .88rem; }
  #yes { left: 2%; }
  #no { left: 52%; white-space: normal; font-size: .875rem; line-height: 1.2; }
  .footnote { font-size: .75rem; letter-spacing: .07em; }
  .dialog { padding: 22px 17px; }
  .dialog::before { left: 17px; right: 17px; }
  .calendar { padding: 15px 10px; }
  .days, .weekdays { gap: 2px; }
}
@media (max-width: 380px) {
  .headline { font-size: 4.8rem; }
  .times { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
