:root {
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2a2420;
  --muted: #6f655c;
  --line: #e9dfcd;
  --pine: #7a5712;          /* bronze gold: buttons, links, times */
  --pine-deep: #24180d;     /* espresso: top bar, footer */
  --holly: #9e2a2b;
  --holly-soft: #f6e3e0;
  --gold: #d4ac4c;
  --gold-soft: #f8efd6;
  --sky: #1a110a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 6px 20px rgba(42, 36, 32, .06);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--holly); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar & lights */
.topbar { position: sticky; top: 0; z-index: 20; padding-bottom: 18px; background: rgba(36, 24, 13, .96); backdrop-filter: blur(8px); color: #fff; }
.topbar-inner { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { font-family: var(--display); font-size: 18px; font-weight: 600; white-space: nowrap; color: #fff; text-decoration: none; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.me-btn { flex: none; background: var(--gold); color: var(--pine-deep); border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }

.lights { position: absolute; left: 0; right: 0; bottom: 2px; height: 18px; display: flex; justify-content: space-around; pointer-events: none; overflow: hidden; }
.lights::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-bottom: 1.5px solid #4a3720; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.bulb { width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; margin-top: 5px; animation: twinkle 2.4s infinite ease-in-out; }
.bulb:nth-child(4n+1) { background: #ff4d4d; box-shadow: 0 2px 10px #ff4d4d; }
.bulb:nth-child(4n+2) { background: #ffd34d; box-shadow: 0 2px 10px #ffd34d; animation-delay: .6s; }
.bulb:nth-child(4n+3) { background: #fff4cf; box-shadow: 0 2px 10px #fff4cf; animation-delay: 1.2s; }
.bulb:nth-child(4n+4) { background: #ffab40; box-shadow: 0 2px 10px #ffab40; animation-delay: 1.8s; }
@keyframes twinkle { 50% { opacity: .35; box-shadow: none; } }

/* ---------- hero */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(1100px 520px at 50% 115%, #8a6420 0%, #3a2612 45%, var(--sky) 75%), var(--sky); padding: 72px 0 64px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Optional house photo: tinted pine so the title and snow stay legible over any picture. */
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; }
.hero-photo::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,13,8,.78) 0%, rgba(20,13,8,.55) 38%, rgba(20,13,8,.18) 70%, rgba(20,13,8,.55) 100%); }
.hero-photo.show { opacity: 1; }
.hero.has-photo { padding-bottom: clamp(110px, 12vw, 190px); }
/* Frame the house, not the driveway: favour the left (main house) and the upper-middle of the photo. */
.hero.has-photo .hero-photo { background-position: 28% 52%; }
@media (max-width: 760px) { .hero.has-photo .hero-photo { background-position: 22% 50%; } }
.hero.has-photo .welcome, .hero.has-photo .cd-caption { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.deco-btn { background: rgba(20,13,8,.5); color: #f4dc9a; border: 1.5px solid rgba(212,172,76,.6); backdrop-filter: blur(4px); font-size: 15px; padding: 11px 18px; }
.deco-btn:hover { background: rgba(20,13,8,.7); }
.rsvp-btn { background: linear-gradient(180deg, #f1d48a, var(--gold)); color: #2b1d0c; font-size: 17px; padding: 12px 26px; box-shadow: 0 6px 24px rgba(212,172,76,.45); }
.rsvp-btn:hover { background: linear-gradient(180deg, #f6df9f, #dcb557); }
.hero-toggles { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hero-toggles .snow-toggle { position: static; background: rgba(20,13,8,.55); backdrop-filter: blur(4px); }
.guest .rsvp-mark { margin-left: 2px; font-weight: 800; font-size: 13px; }
.guest.rsvp-yes { background: rgba(212,172,76,.32); }
.guest.rsvp-yes .rsvp-mark { color: #f4dc9a; }
.guest.rsvp-no { opacity: .6; }
.guest { background: rgba(20,13,8,.5); backdrop-filter: blur(4px); }
.hero .wrap { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; color: var(--gold); }
.hero h1 { font-size: clamp(40px, 8vw, 76px); margin: 10px 0 8px; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(212,172,76,.35); }
.hero .dates { font-family: var(--display); font-size: clamp(18px, 3vw, 24px); color: #f3e7c9; font-style: italic; }
.hero .welcome { max-width: 620px; margin: 18px auto 0; color: rgba(255,255,255,.82); }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 32px 0 10px; }
.cd-box { min-width: 76px; padding: 12px 8px 10px; border-radius: 14px; background: rgba(212,172,76,.08); border: 1px solid rgba(212,172,76,.45); }
.cd-num { color: #f4dc9a; font-family: var(--display); font-size: clamp(30px, 6vw, 44px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); margin-top: 6px; }
.cd-caption { color: rgba(255,255,255,.75); font-size: 14px; }
.sleeps { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(200,162,74,.18); color: #f3e2b0; font-size: 13px; }
.guests { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.guest { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; }
.guest .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--pine-deep); background: var(--gold); }
.snow-toggle { position: absolute; right: 12px; bottom: 12px; font-weight: 600; z-index: 2; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

/* ---------- sections */
section.block { padding: 64px 0 8px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(28px, 4.5vw, 40px); }
.sec-head h2::after { content: ''; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), #f4dc9a); }
.sec-head h2 .emoji { font-size: .8em; margin-right: 6px; }
.sec-intro { color: var(--muted); max-width: 640px; margin: 6px 0 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gold-soft); color: #7a5d17; }
.pill.green { background: var(--gold-soft); color: var(--pine); }
.pill.red { background: var(--holly-soft); color: var(--holly); }
.pill.grey { background: #eee8de; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; background: var(--pine); color: #fff; }
.btn:hover { background: var(--pine-deep); }
.btn.ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--pine); }
.btn.gold { background: var(--gold); color: var(--pine-deep); }
.btn:disabled { opacity: .5; cursor: default; }
.empty { color: var(--muted); font-style: italic; padding: 8px 0; }

/* schedule */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.day { padding: 18px 18px 8px; }
.day-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.day-head .dow { font-family: var(--display); font-size: 22px; font-weight: 600; }
.day-head .dnum { color: var(--muted); font-size: 14px; }
.day.today { border-color: var(--holly); box-shadow: 0 0 0 3px var(--holly-soft), var(--shadow); }
.event { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; }
.event .time { font-size: 13px; font-weight: 600; color: var(--pine); font-variant-numeric: tabular-nums; padding-top: 2px; }
.event .title { font-weight: 600; }
.event .details { font-size: 14px; color: var(--muted); }

/* menus */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--holly); border-color: var(--holly); color: #fff; }
.menu-card { padding: 28px clamp(18px, 4vw, 44px); text-align: center; background:
  linear-gradient(var(--paper), var(--paper)) padding-box,
  repeating-linear-gradient(45deg, var(--holly) 0 10px, #fff 10px 20px, var(--gold) 20px 30px, #fff 30px 40px) border-box;
  border: 6px solid transparent; }
.menu-card h3.daytitle { font-size: 26px; margin-bottom: 4px; }
.meal { margin-top: 22px; }
.meal h4 { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--holly); font-size: 18px; margin: 0 0 8px; }
.meal h4::before, .meal h4::after { content: '❦'; color: var(--gold); margin: 0 10px; font-style: normal; font-size: 14px; }
.dish { margin: 6px 0; }
.dish .name { font-weight: 600; }
.dish .desc { color: var(--muted); font-size: 14px; max-width: 560px; margin: 2px auto 0; }
.dish.featured { margin: 14px auto 22px; max-width: 620px; }
.dish-photo { margin: 0 0 14px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(42,36,32,.18); position: relative; }
.dish-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-photo figcaption { position: absolute; right: 0; bottom: 0; padding: 3px 8px; font-size: 11px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.45); border-top-left-radius: 8px; }
.dish.featured .name { font-family: var(--display); font-size: 24px; }
.chef { font-size: 13px; font-weight: 600; color: var(--holly); margin-top: 2px; }
.supplier { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--pine); }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.eyebrow a:hover { color: #fff; }
.tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--pine); border: 1px solid #e2cf9c; border-radius: 6px; padding: 0 5px; vertical-align: 2px; }

/* dress code */
.dress { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dress .card { padding: 20px; position: relative; overflow: hidden; }
.dress .big { font-size: 36px; }
.dress .when { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.dress h3 { font-size: 22px; margin: 2px 0 6px; }
.dress p { margin: 0; color: var(--muted); font-size: 15px; }

/* shopping */
.shop-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.aisle { padding: 6px 18px 12px; margin-bottom: 14px; }
.aisle h3 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 0 4px; }
.shop-item { border-top: 1px solid var(--line); padding: 10px 0; }
.shop-item:first-of-type { border-top: 0; }
.shop-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.shop-row .name { font-weight: 600; }
.shop-row .qty { color: var(--muted); font-size: 14px; }
.shop-row .by { margin-left: auto; font-size: 12px; color: var(--muted); }
.shop-item.bought .name { text-decoration: line-through; color: var(--muted); }
.shop-note { font-size: 14px; color: var(--muted); margin-top: 2px; }
.comments { margin-top: 6px; }
.comments summary { font-size: 13px; color: var(--pine); font-weight: 600; cursor: pointer; list-style: none; }
.comments summary::-webkit-details-marker { display: none; }
.comment { font-size: 14px; padding: 6px 10px; border-radius: 10px; background: var(--cream); margin-top: 6px; }
.comment b { font-weight: 600; }
.comment-form { display: flex; gap: 6px; margin-top: 8px; }
.comment-form input { flex: 1; min-width: 0; }

/* forms */
.form { padding: 18px; display: grid; gap: 12px; }
.form h3 { font-size: 20px; }
label.f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
input.in, select.in, textarea.in { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; font-weight: 400; font-size: 15px; color: var(--ink); }
input.in:focus, select.in:focus, textarea.in:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea.in { resize: vertical; min-height: 90px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-msg { font-size: 14px; min-height: 1em; }
.form-msg.err { color: var(--holly); }
.form-msg.ok { color: var(--pine); }

/* requests */
.req-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.req { padding: 14px 18px; margin-bottom: 12px; }
.req-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.req-top b { color: var(--ink); font-size: 15px; }
.req-msg { margin: 6px 0 0; white-space: pre-wrap; }
.req-reply { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--pine); background: #fbf4e2; border-radius: 0 10px 10px 0; font-size: 14px; white-space: pre-wrap; }

/* cinema */
.ticket { display: grid; grid-template-columns: 1fr auto; overflow: hidden; background: linear-gradient(135deg, #20160f, #3a2617 60%, #5a3a18); color: #f6ead2; border-radius: 18px; box-shadow: var(--shadow); position: relative; }
.ticket-main { padding: 28px clamp(20px, 4vw, 40px); }
.ticket-main .venue { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; color: var(--gold); font-weight: 700; }
.ticket-main h3 { font-size: clamp(30px, 5vw, 46px); margin: 8px 0; color: #fff; }
.ticket-main p { color: rgba(246,234,210,.85); max-width: 560px; }
.ticket-stub { width: 200px; padding: 24px 20px; border-left: 2px dashed rgba(246,234,210,.35); display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; background: rgba(0,0,0,.18); }
.ticket-stub .when { font-family: var(--display); font-size: 22px; color: #fff; }
.ticket::before, .ticket::after { content: ''; position: absolute; right: 189px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); }
.ticket::before { top: -11px; } .ticket::after { bottom: -11px; }

/* faqs */
.faqs { display: grid; gap: 10px; max-width: 820px; }
.faq { padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--holly); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 16px; color: var(--muted); white-space: pre-wrap; }

/* footer, gate, picker */
footer { margin-top: 80px; padding: 36px 0 48px; background: var(--pine-deep); color: rgba(255,255,255,.7); text-align: center; font-size: 14px; }
footer a { color: var(--gold); }
.overlay { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(26, 17, 10, .72); backdrop-filter: blur(4px); }
.overlay.open { display: flex; overflow-y: auto; overflow-x: hidden; }
.overlay > * { margin: auto; }   /* centred, but tall dialogs scroll instead of losing their top */
.dialog { width: min(420px, 100%); padding: 28px 24px; text-align: center; }
.dialog h2 { font-size: 26px; margin-bottom: 6px; }
.dialog p { color: var(--muted); margin: 0 0 16px; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.who-grid button { padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.who-grid button:hover, .who-grid button[aria-pressed="true"] { border-color: var(--pine); background: #fbf4e2; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 60; background: var(--pine-deep); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .shop-layout, .req-layout { grid-template-columns: 1fr; }
  .shop-layout .form-col { order: -1; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { width: auto; border-left: 0; border-top: 2px dashed rgba(246,234,210,.35); }
  .ticket::before, .ticket::after { display: none; }
}
@media (max-width: 520px) {
  .brand { display: none; }
  .cd-box { min-width: 62px; }
  .row2 { grid-template-columns: 1fr; }
  section.block { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bulb { animation: none; }
}

/* menu suggestions */
.suggest-intro { color: var(--muted); font-size: 14px; margin: 6px auto 0; max-width: 460px; }
.meal.suggestable { margin-top: 26px; padding: 14px 16px 16px; border-radius: 14px; background: var(--gold-soft); }
.tbd { color: var(--muted); font-style: italic; margin: 4px 0 10px; }
.suggest { max-width: 520px; margin: 10px auto 0; text-align: left; }
.sugg-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6a1f; margin: 4px 0 6px; }
.sugg { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; }
.heart { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.heart[aria-pressed="true"] { border-color: var(--holly); background: var(--holly-soft); color: var(--holly); }
.sugg-body { min-width: 0; }
.sname { font-weight: 600; }
.sby { color: var(--muted); font-size: 13px; }
.snote { color: var(--muted); font-size: 13px; }
.sugg-add { margin-top: 8px; }
.sugg-add summary { cursor: pointer; font-weight: 600; color: var(--pine); font-size: 14px; list-style: none; text-align: center; }
.sugg-add summary::-webkit-details-marker { display: none; }
.sugg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sugg-form input[name="dish"] { grid-column: 1 / -1; }
.sugg-form .btn { justify-content: center; }
@media (max-width: 520px) { .sugg-form { grid-template-columns: 1fr; } }

/* RSVP & gym dialogs */
.rsvp-dialog { position: relative; text-align: center; }
.rsvp-hat { font-size: 46px; margin-top: -4px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.rsvp-options { display: grid; gap: 8px; margin: 14px 0; text-align: left; }
.rsvp-options label { display: block; cursor: pointer; }
.rsvp-options input { position: absolute; opacity: 0; }
.rsvp-options span { display: block; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.rsvp-options small { display: block; color: var(--muted); font-size: 13px; margin-left: 26px; }
.rsvp-options input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212,172,76,.25); }
.rsvp-options input:focus-visible + span { outline: 2px solid var(--pine); outline-offset: 2px; }
.dialog .f { margin-bottom: 10px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* weather */
.weather { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.wx { padding: 16px; text-align: center; }
.wx.typical { background: linear-gradient(180deg, var(--paper), var(--gold-soft)); }
.wx-day { font-family: var(--display); font-size: 20px; font-weight: 600; }
.wx-day span { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500; }
.wx-icon { font-size: 42px; margin: 6px 0 2px; }
.wx-words { font-size: 14px; color: var(--muted); }
.wx-temps { margin: 6px 0; font-size: 15px; }
.wx-temps b { font-family: var(--display); font-size: 28px; }
.wx-temps span { color: var(--muted); }
.wx-meta { display: flex; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); }
.wx-sun { font-size: 12px; color: var(--muted); margin-top: 6px; }
.weather-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* gym */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot.free { background: #fff; border: 1.5px solid var(--line); }
.dot.group { background: var(--gold); }
.dot.private { background: var(--holly); }
.gym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { display: grid; gap: 2px; align-content: start; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); min-height: 74px; font: inherit; }
button.slot.free { cursor: pointer; }
button.slot.free:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-soft); }
button.slot.free:disabled { opacity: .45; cursor: default; }
.slot-time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-what { font-size: 14px; }
.slot.free .slot-what { color: var(--muted); }
.slot-note { font-size: 12px; color: var(--muted); }
.slot.group { background: var(--gold-soft); border-color: #e2cf9c; }
.slot.private { background: var(--holly-soft); border-color: #e7c1bd; }
.slot.mine { box-shadow: 0 0 0 3px rgba(212,172,76,.35); }
.slot-act { justify-self: start; margin-top: 4px; border: 1.5px solid currentColor; background: #fff; color: var(--pine); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* featured dish photo: portrait-friendly (the standing T-bone) */
.dish.featured .dish-photo { max-width: 560px; margin-inline: auto; }
.dish.featured .dish-photo img { aspect-ratio: 4 / 3; object-position: center; }

/* help-yourself meals */
.help-pill { font-family: var(--body); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a5712; background: var(--gold-soft); border: 1px solid #e2cf9c; border-radius: 999px; padding: 2px 8px; vertical-align: 3px; }
.meal.self-serve-meal .dish .name { font-family: var(--display); font-size: 19px; }
.spread { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px auto 2px; max-width: 520px; }
.spread-item { background: #fff; border: 1.5px solid #e2cf9c; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500; }

/* film night */
.film-box { margin-top: 18px; padding: 18px 20px; background: linear-gradient(135deg, #20160f, #3a2617 70%); color: #f6ead2; border: 0; }
.film-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.film-emoji { font-size: 34px; }
.film-head h3 { font-size: 22px; color: #fff; }
.film-head p { margin: 2px 0 0; color: rgba(246,234,210,.8); font-size: 14px; }
.film-box .suggest { max-width: none; }
.film-box .sugg { background: rgba(255,255,255,.06); border-color: rgba(246,234,210,.18); color: #f6ead2; }
.film-box .sby, .film-box .snote, .film-box .sugg-head { color: rgba(246,234,210,.7); }
.film-box .sugg-add summary { color: var(--gold); }
.film-chosen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.film-chip { background: rgba(212,172,76,.2); border: 1px solid rgba(212,172,76,.5); border-radius: 999px; padding: 4px 12px; font-size: 14px; }

/* shopping form note */
.form-note { margin: -4px 0 2px; font-size: 14px; color: var(--muted); background: var(--gold-soft); border-radius: 10px; padding: 8px 10px; }

/* cinema showtimes */
.showtimes { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(246,234,210,.18); max-width: 560px; }
.showtimes-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.showtimes p { margin: 6px 0 0; font-size: 14px; }
.showtime-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.showtime { font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(246,234,210,.35); font-size: 14px; }
.showtime.ours { background: var(--gold); color: #2b1d0c; border-color: var(--gold); }
.showtimes-note { font-size: 13px !important; color: rgba(246,234,210,.75); }

/* RSVP: bedrooms & steak */
.rsvp-sub { text-align: left; font-size: 14px; margin: 10px 0 6px; }
.rsvp-sub span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; }
.room { display: block; cursor: pointer; font: inherit; text-align: left; }
.room input { position: absolute; opacity: 0; }
.room > span, button.room, span.room { display: block; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.room b { display: block; font-size: 14px; }
.room small { display: block; font-size: 12px; color: var(--muted); }
.room input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212,172,76,.25); }
.room input:focus-visible + span { outline: 2px solid var(--pine); outline-offset: 2px; }
button.room.locked { background: #f3efe8; color: var(--muted); cursor: not-allowed; }
span.room.taken { opacity: .55; cursor: default; }
.wiggle { animation: wiggle .4s; }
@keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.steak { display: flex; gap: 6px; }
.steak label { flex: 1; cursor: pointer; }
.steak input { position: absolute; opacity: 0; }
.steak span { display: block; text-align: center; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; }
.steak label:nth-child(1) span { border-left: 5px solid #b3373a; }
.steak label:nth-child(2) span { border-left: 5px solid #d7666a; }
.steak label:nth-child(3) span { border-left: 5px solid #c98f7a; }
.steak input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212,172,76,.25); }

/* RSVP tricks */
.rsvp-options label { transition: transform .35s, opacity .35s, max-height .35s; transform-origin: left center; }
.rsvp-options label.wobble { animation: wobble .5s; }
.rsvp-options label.shrunk { transform: scale(.82); opacity: .7; }
@keyframes wobble { 20% { transform: translateX(-8px) rotate(-2deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.rsvp-options label.converted span { border-color: var(--gold); background: var(--gold-soft); }
.rsvp-options label.stolen { animation: stolen 1.1s ease-in forwards; pointer-events: none; }
@keyframes stolen { 30% { transform: translateX(10px) rotate(4deg); } 100% { transform: translateX(260px) translateY(-40px) scale(.2) rotate(30deg); opacity: 0; } }
.rsvp-dialog { overflow: visible; transition: background .6s; }
.rsvp-dialog.grinched { background: #eef6e2; box-shadow: 0 0 0 4px #7cb342, var(--shadow); }
.grinch { position: absolute; right: -150px; top: 300px; width: 120px; opacity: 0; transform: translateX(40px) rotate(12deg); transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .3s; pointer-events: none; z-index: 2; }
.grinch.show { opacity: 1; transform: translateX(0) rotate(-6deg); }
.grinch.leaving { opacity: 0; transform: translateX(60px) rotate(20deg); }
.grinch-bubble { position: absolute; right: -30px; top: -96px; width: 200px; background: #fff; color: var(--ink); border: 2px solid #7cb342; border-radius: 14px; padding: 8px 10px; font-size: 13px; font-weight: 600; text-align: left; box-shadow: var(--shadow); }
.grinch-bubble::after { content: ''; position: absolute; right: 70px; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2px solid #7cb342; border-bottom: 2px solid #7cb342; transform: rotate(45deg); }
.grow { display: inline-block; animation: grow 1.6s ease-out forwards; }
@keyframes grow { 0% { transform: scale(1); } 30% { transform: scale(1.8); } 60% { transform: scale(2.4); } 100% { transform: scale(3); } }
/* Not enough room beside the dialog: the Grinch pops up from the bottom corner of the screen. */
@media (max-width: 980px) {
  .grinch { position: fixed; right: 8px; top: auto; bottom: 8px; width: 96px; z-index: 60; }
  .grinch svg { width: 96px; height: 120px; }
  .grinch-bubble { right: 70px; top: -58px; width: 190px; }
  .grinch-bubble::after { right: 14px; }
}
@media (max-width: 560px) {
  .rooms { grid-template-columns: 1fr; }
  .steak span { font-size: 13px; white-space: nowrap; padding: 8px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .rsvp-options label.stolen, .wobble, .grow, .rsvp-hat { animation: none !important; }
  .rsvp-options label.stolen { opacity: 0; }
}

/* roles callout */
.roles { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid #e2cf9c; }
.roles-head { font-size: 15px; }
.roles-head a { color: var(--pine); font-weight: 600; }
.roles-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.role { background: #fff; border: 1px solid #e2cf9c; border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.role b { margin-right: 4px; }

/* RSVP: four steak options, nonna, vibes, kitty */
.steak { flex-wrap: wrap; }
.steak label { flex: 1 1 22%; }
.steak label:nth-child(4) span { border-left: 5px solid #8a6a55; }
.nonna { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fff3f0; border: 1.5px solid #e7c1bd; text-align: left; font-size: 14px; }
.nonna[hidden] { display: none; }
.nonna-hand { font-size: 34px; display: inline-block; transform-origin: 50% 90%; }
.nonna.pop { animation: nonnaPop .4s ease-out; }
.nonna.pop .nonna-hand { animation: shake .25s ease-in-out 4; }
@keyframes nonnaPop { from { transform: scale(.85); opacity: 0; } }
@keyframes shake { 50% { transform: rotate(-18deg) translateY(-2px); } }
.vibes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; }
.vibes label { cursor: pointer; }
.vibes input { position: absolute; opacity: 0; }
.vibes span { display: block; height: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.vibes small { display: block; color: var(--muted); font-size: 12px; }
.vibes input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212,172,76,.25); }
.vibes input:focus-visible + span { outline: 2px solid var(--pine); outline-offset: 2px; }
.kitty { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #e2cf9c; text-align: left; }
.kitty-head { font-size: 15px; }
.kitty p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.kitty-check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.kitty-check input { width: 18px; height: 18px; accent-color: var(--pine); }
@media (max-width: 560px) {
  .steak label { flex-basis: 45%; }
  .vibes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .nonna.pop, .nonna.pop .nonna-hand { animation: none; } }
.steak span { white-space: nowrap; font-size: 13px; padding: 8px 6px; }
.steak label { flex: 1 1 auto; }

/* 🎁 Easter eggs */
.egg-hint { font-size: 12px; opacity: .6; margin-top: 6px; }
.egg-parade { position: fixed; left: 0; z-index: 80; font-size: 44px; white-space: nowrap; pointer-events: none; animation: parade linear forwards; }
.egg-parade.reverse { animation-name: parade-rev; }
@keyframes parade { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
@keyframes parade-rev { from { transform: translateX(110vw) scaleX(1); } to { transform: translateX(-40vw); } }
.egg-parade .worm { display: inline-block; font-size: 56px; animation: wriggle .5s ease-in-out infinite; }
.egg-parade .sand { color: #c9a227; font-size: 30px; letter-spacing: -4px; }
@keyframes wriggle { 50% { transform: translateY(-6px) rotate(-8deg); } }
.egg-tink { position: absolute; left: -40px; z-index: 3; border: 0; background: none; font-size: 22px; cursor: pointer; filter: drop-shadow(0 0 8px #fff3b0); animation: tink 9s linear forwards; }
@keyframes tink { 0% { left: -40px; transform: translateY(0); } 25% { transform: translateY(-30px); } 50% { transform: translateY(10px); } 75% { transform: translateY(-20px); } 100% { left: 105%; transform: translateY(0); } }
.egg-porsche { cursor: pointer; border-bottom: 1px dashed currentColor; }
.egg-porsche.vroom { display: inline-block; animation: vroom .5s; }
@keyframes vroom { 20% { transform: translateX(-3px) rotate(-2deg); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
#grinch.show svg { pointer-events: auto; cursor: pointer; }
.event, .dish { cursor: default; }

/* ♫ soundtrack: small corner button + player card (YouTube requires the player stay visible) */
.music { position: fixed; left: 14px; bottom: 14px; z-index: 40; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.music-btn { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: linear-gradient(180deg, #f1d48a, var(--gold)); color: #2b1d0c; font-weight: 700; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.music-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #24180d; color: #f4dc9a; font-size: 18px; }
.music-btn.playing .music-icon { animation: spinNote 3s linear infinite; }
@keyframes spinNote { to { transform: rotate(360deg); } }
.music-card { display: none; position: relative; width: min(320px, calc(100vw - 28px)); padding: 6px; border-radius: 16px; background: #24180d; box-shadow: 0 10px 30px rgba(0,0,0,.35); border: 1px solid rgba(212,172,76,.5); }
.music.open .music-card { display: block; animation: musicUp .25s ease-out; }
@keyframes musicUp { from { transform: translateY(12px); opacity: 0; } }
.music-frame { border-radius: 12px; overflow: hidden; min-height: 80px; }
.music-frame iframe { display: block; border: 0; }
.music-close { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(212,172,76,.6); background: #24180d; color: #f4dc9a; cursor: pointer; font-size: 12px; }
.music[hidden] { display: none; }
@media (max-width: 560px) {
  .music { left: 10px; bottom: 10px; }
  .music-btn .music-label { display: none; }
  .music-btn { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) { .music-btn.playing .music-icon { animation: none; } }

/* kitty: can't untick it */
.kitty-check { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.kitty-check.dodge { transform: translateX(28px) rotate(-2deg); }
.kitty-check.locked { color: var(--pine); cursor: default; }
.kitty-check.locked input { opacity: .6; }
.kitty-pig { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff0f3; border: 1px solid #f2c4cf; font-size: 13px; animation: nonnaPop .35s ease-out; }
.kitty-pig span { display: inline-block; font-size: 20px; animation: shake .3s ease-in-out 3; }

/* 📿 friendship-bracelet bead hunt */
.bead { position: absolute; z-index: 4; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--bead) 45%); color: #3a2a3a; font: 700 9px/18px var(--body); text-align: center;
  opacity: .55; cursor: pointer; transition: transform .2s, opacity .2s; }
.bead:hover, .bead:focus-visible { opacity: 1; transform: scale(1.35) rotate(-10deg); }
.bead.caught { animation: beadFly .4s ease-in forwards; }
@keyframes beadFly { to { transform: translateY(60px) scale(.2); opacity: 0; } }
.bead-tray { position: fixed; right: 14px; top: 86px; z-index: 45; animation: musicUp .3s ease-out; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 999px; background: rgba(36,24,13,.9); color: #f4dc9a; font-size: 12px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.bead-string { display: flex; gap: 3px; padding: 0 4px; border-bottom: 2px solid rgba(244,220,154,.45); }
.bead-tray .bead, .swift-bracelet .bead { position: static; opacity: 1; cursor: default; }
.bead.empty { position: static; display: inline-grid; place-items: center; width: 18px; height: 18px; color: rgba(244,220,154,.5); background: none; border: 1px dashed rgba(244,220,154,.35); border-radius: 50%; }
.swift-card { text-align: center; background: linear-gradient(160deg, #fff, #fdf0f7 60%, #f2ecff); }
.swift-bracelet { display: flex; justify-content: center; gap: 5px; margin: 6px 0 12px; }
.swift-bracelet .bead { width: 34px; height: 34px; font-size: 16px; line-height: 34px; animation: beadPop .5s backwards; }
.swift-bracelet .bead:nth-child(2) { animation-delay: .08s; } .swift-bracelet .bead:nth-child(3) { animation-delay: .16s; }
.swift-bracelet .bead:nth-child(4) { animation-delay: .24s; } .swift-bracelet .bead:nth-child(5) { animation-delay: .32s; } .swift-bracelet .bead:nth-child(6) { animation-delay: .4s; }
@keyframes beadPop { from { transform: translateY(-20px) scale(.3); opacity: 0; } }
.swift-note { font-size: 13px; margin: 12px 0 0 !important; }
@media (max-width: 560px) { .bead-tray { right: 8px; top: 82px; padding: 4px 8px; } .bead-tray .bead, .bead.empty { width: 15px; height: 15px; line-height: 15px; font-size: 8px; } }
