
:root {

  --ci-bg: #27180d;
  --ci-panel: #000;
  --ci-brown: #30201a;
  --ci-deep: #ff0000;
  --ci-ink: #fff;
  --ci-soft: #e6d5a6;
  --ci-gold: #e6d5a6;
  --ci-dark-text: #24160f;
}

#christmas-invite {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
  color: var(--ci-ink);

  font-size: 17px;
  line-height: 1.5;
}
#christmas-invite * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
#christmas-invite h2,
#christmas-invite h3 {  font-weight: 400; margin: 0; color: var(--ci-gold);}
#christmas-invite h2 { font-size: 32px; line-height: 1.1; margin-bottom: 8px; color: var(--ci-gold); }
#christmas-invite h3 { font-size: 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
#christmas-invite button { font: inherit; color: inherit; }
#christmas-invite svg { width: 22px; height: 22px; flex: none; }

.ci-section { padding-top: 48px; }
.ci-lead { color: var(--ci-soft); margin: 0 0 28px; }

/* Campus and service buttons */
.ci-step { margin-bottom: 28px; }
.ci-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ci-grid.ci-times { grid-template-columns: repeat(3, 1fr); }
.ci-grid.ci-times.ci-times-one { grid-template-columns: 1fr; margin-bottom: 8px;}

.ci-choice {
  cursor: pointer; text-align: left; border: 0; border-radius: 10px;
  background: var(--ci-panel); padding: 14px 16px; min-height: 56px;
  transition: transform 120ms ease;
}
#christmas-invite .ci-choice[aria-pressed="true"] {
  background: var(--ci-gold);
  color: var(--ci-dark-text);
}

.ci-times .ci-choice { text-align: center; font-size: 18px; }
.ci-choice:active { transform: scale(0.98); }
.ci-choice[aria-pressed="true"] { background: var(--ci-gold); color: var(--ci-dark-text); }
.ci-day { font-size: 15px; color: var(--ci-soft); margin: 14px 0 8px; }
.ci-day:first-child { margin-top: 0; }

/* Summary card */
.ci-summary { background: var(--ci-panel); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.ci-summary p { margin: 0; }
.ci-summary strong { display: block; color: var(--ci-gold); font: 22px/1.2 "Gelica", Georgia, serif; }
.ci-summary a { display: inline-block; margin-top: 8px; color: var(--ci-soft); font-size: 15px; text-underline-offset: 3px; }
.ci-hint { color: var(--ci-soft); font-size: 15px; margin: 0 0 14px; }

/* Buttons */
.ci-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
  width: 100%; min-height: 58px; padding: 14px 20px; margin-bottom: 10px;
  font-size: 18px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 12px; background: var(--ci-gold); color: var(--ci-dark-text);
  transition: transform 120ms ease, opacity 160ms ease;
}
.ci-btn, .ci-btn:visited, #christmas-invite .ci-btn { color: var(--ci-dark-text); }
.ci-btn.ci-alt, #christmas-invite .ci-btn.ci-alt { background: var(--ci-brown); color: var(--ci-gold); }
.ci-btn:active { transform: scale(0.98); }
.ci-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.ci-copy { margin: 4px 0 0; color: var(--ci-soft); font-size: 15px; text-align: center; }
.ci-copy button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Invite image */
#ci-card { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 14px; }
.ci-photos { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 4px 16px 6px; scrollbar-width: none; }
.ci-photos::-webkit-scrollbar { display: none; }
.ci-photo {
  flex: none; width: 76px; aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 8px; overflow: hidden; outline: 3px solid transparent; outline-offset: -3px;
}
.ci-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ci-photo[aria-pressed="true"] { outline-color: var(--ci-gold); }

/* Bottom bar */
.ci-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--ci-deep); border-top: 2px solid var(--ci-brown);
  transform: translateY(110%); transition: transform 260ms ease;
}
.ci-dock.ci-show { transform: none; }
.ci-dock .ci-btn { max-width: 528px; margin: 0 auto; }

.ci-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ci-gold); color: var(--ci-dark-text); padding: 12px 18px; border-radius: 10px; font-size: 15px;
  transition: opacity 160ms, transform 160ms;
}
.ci-toast.ci-show { opacity: 1; transform: translate(-50%, 0); }

/* Motion that pulls people toward the next step */
.ci-cue { display: none; color: var(--ci-gold); }
.ci-next .ci-cue { display: block;  }
.ci-next .ci-grid {   }
.ci-dock svg {  }
.ci-pulse { }
.ci-fade {   }

@keyframes ci-poke { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes ci-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px); } 90% { transform: translateY(1px); } }
@keyframes ci-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes ci-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #christmas-invite * { animation: none !important; }
}

@media (min-width: 760px) {
  .ci-photos { flex-wrap: wrap; overflow: visible; margin: 0 0 16px; padding: 4px 0; }
}
