 :root {
  --forest: #17251f;
  --forest-soft: #21362c;
  --cream: #f5efe4;
  --muted: #c9c0b1;
  --gold: #c9a56a;
  --gold-light: #e2c994;
  --wine: #783b46;
  --wine-light: #a45b62;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--forest); }
body {
  margin: 0; min-height: 100vh; color: var(--cream); font-family: "DM Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  background: radial-gradient(ellipse at 50% 0%, #2b4034 0%, #1b2b23 43%, #14211c 100%);
  overflow-x: hidden;
}
.ambient { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .14; pointer-events: none; z-index: 0; }
.ambient-one { width: 340px; height: 340px; background: #a45b62; top: 10%; left: -180px; }
.ambient-two { width: 380px; height: 380px; background: #c9a56a; right: -230px; bottom: 4%; }
.page-shell { position: relative; z-index: 1; width: min(1050px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 76px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(226,201,148,.16); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--cream); text-decoration: none; font-size: 12px; letter-spacing: .22em; font-weight: 700; }
.brand-mark { color: var(--gold); font-size: 20px; }
.top-note, .footer-year { color: #b7ad9e; font-size: 10px; letter-spacing: .2em; }
.hero { text-align: center; padding: 78px 0 58px; }
.eyebrow { color: var(--gold-light); font-size: 10px; letter-spacing: .24em; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 13px; }
.eyebrow span { width: 24px; height: 1px; background: var(--gold); opacity: .7; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }
h1 { margin: 18px 0 15px; font-size: clamp(48px, 8vw, 82px); line-height: 1.05; letter-spacing: -.04em; }
h1 em { color: var(--gold-light); font-weight: 500; }
.hero-message { color: #eee5d8; font-family: "Playfair Display", Georgia, serif; font-size: clamp(18px, 3vw, 25px); line-height: 1.55; margin: 0; }
.heart { color: #c77b7d; font-size: .9em; }
.hero-subtitle { color: #bdb4a6; font-size: 13px; letter-spacing: .04em; margin: 14px 0 24px; }
.date-pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(201,165,106,.35); border-radius: 99px; padding: 9px 15px; color: var(--gold-light); font-size: 11px; letter-spacing: .08em; }
.date-dot { width: 6px; height: 6px; background: #c77b7d; border-radius: 50%; box-shadow: 0 0 10px #c77b7d; }
.calendar-section { padding: 0 0 55px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.eyebrow.small { justify-content: flex-start; font-size: 9px; margin: 0 0 7px; }
.section-heading h2 { font-size: 30px; margin: 0; }
.progress-wrap { width: 180px; color: #bdb4a6; font-size: 10px; text-align: right; }
.progress-track { height: 3px; margin-top: 9px; background: rgba(245,239,228,.13); border-radius: 9px; overflow: hidden; }
#progress-bar { height: 100%; width: 0%; background: var(--gold); transition: width .35s ease; }
.calendar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.door {
  min-height: 118px; position: relative; border: 1px solid rgba(226,201,148,.3); border-radius: 12px;
  color: var(--cream); background: linear-gradient(145deg, rgba(120,59,70,.94), rgba(75,39,48,.98));
  box-shadow: 0 8px 20px rgba(0,0,0,.13), inset 0 1px rgba(255,255,255,.08);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.door::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(226,201,148,.22); border-radius: 8px; pointer-events: none; }
.door:not(:disabled):hover { transform: translateY(-4px); border-color: var(--gold-light); background: linear-gradient(145deg, #96505a, #60313e); }
.door-number { font-family: "Playfair Display", Georgia, serif; font-size: 34px; line-height: 1; color: #f1dfbd; }
.door-icon { font-size: 14px; color: var(--gold-light); }
.door-caption { font-size: 9px; letter-spacing: .12em; color: #d7c7b5; text-transform: uppercase; }
.door.locked { background: linear-gradient(145deg, #293a31, #1d2c25); border-color: rgba(201,165,106,.17); cursor: not-allowed; }
.door.locked .door-number { color: #8e9a8f; }
.door.locked .door-icon { color: #8e9a8f; }
.door.opened { background: linear-gradient(145deg, #435b48, #263d30); border-color: rgba(201,165,106,.52); }
.calendar-hint { text-align: center; color: #a9a293; font-size: 11px; margin: 23px 0 0; line-height: 1.7; }
.calendar-hint span { color: var(--gold); padding: 0 5px; }
.footer { display: flex; justify-content: center; align-items: center; gap: 12px; border-top: 1px solid rgba(226,201,148,.16); padding: 22px 0 28px; color: #c7bcae; }
.footer p { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 14px; margin: 0; }
.footer-star { color: var(--gold); }
.footer-year { font-size: 8px; margin-left: 8px; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 10; background: rgba(7,13,10,.78); backdrop-filter: blur(8px); padding: 20px; align-items: center; justify-content: center; }
.modal-backdrop.visible { display: flex; }
.surprise-modal { position: relative; width: min(590px, 100%); max-height: 90vh; overflow-y: auto; padding: 42px clamp(22px, 6vw, 54px) 34px; text-align: center; background: linear-gradient(155deg, #f5efe4, #e9decc); color: #29372f; border-radius: 18px; box-shadow: 0 25px 90px rgba(0,0,0,.45); animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.close-button { position: absolute; top: 12px; right: 17px; border: 0; background: none; color: #6d655a; font-size: 30px; cursor: pointer; }
.modal-headline { margin: 4px 0 6px; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(52px, 13vw, 92px); line-height: 1; letter-spacing: .04em; color: #b65f65; text-shadow: 0 4px 18px rgba(182,95,101,.28); animation: beat 1.6s ease-in-out infinite; }
.modal-headline[hidden] { display: none; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.07); } 30% { transform: scale(1); } 45% { transform: scale(1.05); } }
.hearts-layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.floating-heart { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; position: absolute; bottom: -60px; line-height: 1; opacity: 0; will-change: transform, opacity; animation-name: float-up; animation-timing-function: ease-out; animation-fill-mode: both; }
@keyframes float-up {
  0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: .9; }
  100% { transform: translate(var(--drift), -110vh) rotate(var(--spin)) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .modal-headline { animation: none; } }
.modal-ornament { color: #ad8050; font-size: 22px; }
.modal-day { color: #9a6f47; font-size: 9px; font-weight: 700; letter-spacing: .25em; margin: 10px 0; }
.surprise-modal h2 { font-size: clamp(27px, 5vw, 38px); margin: 0 0 20px; color: #26392e; }
.modal-content { color: #4e5148; font-size: 15px; line-height: 1.75; text-align: left; }
.modal-content p { white-space: pre-wrap; }
.modal-content img, .modal-content video { display: block; max-width: 100%; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; margin: 17px auto; background: #ded5c7; }
.modal-content audio { width: 100%; margin: 14px 0; }
.modal-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin: 15px 0; }
.modal-content a { color: #82523f; }
.modal-signoff { margin: 25px 0 20px; color: #8c684c; font-family: "Playfair Display", Georgia, serif; font-style: italic; }
.modal-signoff span { color: #b65f65; }
.back-button { border: 1px solid #a77d50; border-radius: 99px; background: #26392e; color: #f5efe4; padding: 12px 22px; font: inherit; font-size: 11px; letter-spacing: .08em; cursor: pointer; }
.empty-content { text-align: center; color: #777064; font-style: italic; }
@media (max-width: 700px) {
  .page-shell { width: min(100% - 28px, 560px); }
  .topbar { height: 64px; }
  .hero { padding: 58px 0 43px; }
  .calendar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .door { min-height: 94px; border-radius: 10px; }
  .door-number { font-size: 30px; }
  .section-heading { align-items: start; flex-direction: column; }
  .progress-wrap { width: 100%; text-align: left; }
  .desktop-break { display: none; }
}
@media (max-width: 360px) {
  .calendar-grid { gap: 7px; }
  .door { min-height: 82px; }
  .door-number { font-size: 26px; }
  .door-caption { font-size: 8px; }
}
