:root {
  color-scheme: dark;
  background: #141414;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: #141414;
  overflow: hidden;
}

.device-shell {
  width: 100%;
  height: 100%;
}

.invitation-pending {
  opacity: 0;
}

.invitation-ready {
  opacity: 1;
  transition: opacity 180ms ease-out;
}

.device-camera,
.device-home-indicator {
  display: none;
}

button {
  font: inherit;
}

button,
video {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.confirmation-screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  min-height: 100%;
  padding: max(54px, env(safe-area-inset-top)) 22px max(42px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  color: #29473d;
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 166, 181, 0.5) 0 5%, transparent 5.4%),
    radial-gradient(circle at 22% 2%, rgba(252, 205, 212, 0.58) 0 8%, transparent 8.4%),
    radial-gradient(circle at 89% 88%, rgba(139, 160, 119, 0.42) 0 11%, transparent 11.5%),
    repeating-linear-gradient(0deg, rgba(110, 91, 62, 0.022) 0 1px, transparent 1px 4px),
    linear-gradient(150deg, #e3ead5 0%, #f3dfdf 48%, #fbf1df 100%);
}

.confirmation-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 540px);
  min-height: calc(100% - 12px);
  margin: 0 auto;
  place-items: center;
  align-content: center;
  padding: clamp(38px, 9vw, 68px) clamp(24px, 7vw, 48px);
  border: 1px solid rgba(90, 111, 77, 0.3);
  border-radius: 42px;
  background:
    repeating-linear-gradient(0deg, rgba(115, 90, 58, 0.018) 0 1px, transparent 1px 4px),
    rgba(255, 250, 239, 0.94);
  text-align: center;
  box-shadow: 0 24px 65px rgba(65, 77, 53, 0.23), inset 0 0 0 7px rgba(255, 255, 255, 0.45);
}

.confirmation-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(223, 148, 161, 0.38);
  border-radius: 31px;
  pointer-events: none;
}

.confirmation-monogram {
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff8ec;
  background: #29473d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  box-shadow: 0 8px 18px rgba(41, 71, 61, 0.22);
}

.confirmation-kicker,
.confirmation-event-card span,
.confirmation-status,
.confirmation-note {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.confirmation-kicker {
  margin: 0 0 12px;
  color: #c47d89;
  font-size: clamp(0.56rem, 2.1vw, 0.68rem);
  font-weight: 700;
}

.confirmation-card h1 {
  max-width: 390px;
  margin: 0;
  color: #29473d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 14vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.confirmation-message {
  max-width: 380px;
  margin: 23px 0 18px;
  color: #708067;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.96rem, 3.2vw, 1.14rem);
  line-height: 1.55;
}

.confirmation-status {
  padding: 8px 13px;
  border-radius: 999px;
  color: #3f654f;
  background: #dbe8d5;
  font-size: 0.58rem;
  font-weight: 700;
}

.confirmation-status--declined {
  color: #8a5260;
  background: #f3dce1;
}

.confirmation-event-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(100, 119, 87, 0.23);
  border-radius: 19px;
  background: rgba(233, 238, 218, 0.48);
}

.confirmation-event-card > div {
  display: grid;
  gap: 6px;
  padding: 17px 13px;
  border-right: 1px solid rgba(100, 119, 87, 0.18);
  border-bottom: 1px solid rgba(100, 119, 87, 0.18);
}

.confirmation-event-card > div:nth-child(even) {
  border-right: 0;
}

.confirmation-event-card > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.confirmation-event-card span {
  color: #bf7885;
  font-size: 0.5rem;
  font-weight: 700;
}

.confirmation-event-card strong {
  color: #40594d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.76rem, 2.8vw, 0.95rem);
  font-weight: 500;
  line-height: 1.3;
}

.confirmation-map {
  margin-top: 13px;
  color: #7d8b71;
  font-size: 0.72rem;
  text-underline-offset: 3px;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 9px;
  margin-top: 28px;
}

.confirmation-actions button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #29473d;
  border-radius: 13px;
  color: #fff9ed;
  background: #29473d;
  font-size: clamp(0.58rem, 2.2vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.confirmation-actions button + button {
  color: #29473d;
  background: transparent;
}

.confirmation-note {
  max-width: 330px;
  margin: 20px 0 0;
  color: #8e9985;
  font-size: 0.48rem;
  line-height: 1.6;
}

.confirmation-orbit {
  position: absolute;
  z-index: 1;
  width: 270px;
  height: 430px;
  border: 2px solid rgba(112, 140, 94, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.confirmation-orbit--one {
  top: -230px;
  right: -100px;
  transform: rotate(30deg);
}

.confirmation-orbit--two {
  bottom: -280px;
  left: -130px;
  border-color: rgba(216, 133, 150, 0.26);
  transform: rotate(-24deg);
}

.confirmation-butterfly {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: 5%;
  color: rgba(207, 119, 138, 0.58);
  font-family: Georgia, serif;
  font-size: 54px;
  transform: rotate(18deg);
  pointer-events: none;
}

.intro-sequence {
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-snap-type: y proximity;
  background: #141414;
}

.intro-sequence--locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.intro-sequence--unlocked {
  overflow-y: auto;
}

.intro-panel {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #141414;
  scroll-snap-align: start;
}

.intro-panel--full {
  height: auto;
  min-height: 100dvh;
  display: block;
  overflow: visible;
}

.intro-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  background: #141414;
}

.intro-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.autoplay-poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.autoplay-poster--full {
  height: auto;
  bottom: auto;
}

.intro-video--full {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: top center;
  aspect-ratio: 736 / 4088;
}

.intro-action {
  position: absolute;
  top: 51%;
  left: 31%;
  width: 38%;
  height: 9%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  font-size: clamp(0.72rem, 3.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-shadow: none;
  box-shadow: none;
  z-index: 2;
  touch-action: manipulation;
}

.intro-action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 5px;
}

.vinyl-stage {
  position: absolute;
  z-index: 3;
  top: calc(27.5% - 22px);
  left: 66.5%;
  width: clamp(105px, 22vw, 220px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vinyl-record {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.48));
  animation: vinyl-spin 7s linear infinite;
}

.vinyl-record--paused {
  animation-play-state: paused;
}

.vinyl-toggle {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(34px, 7vw, 58px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.vinyl-toggle span {
  font-size: clamp(0.64rem, 2.4vw, 1rem);
  line-height: 1;
  transform: translateX(1px);
}

.vinyl-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rsvp-hotspots {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.rsvp-text-hotspot {
  position: absolute;
  display: block;
  transform-origin: center;
  pointer-events: auto;
}

.rsvp-text-hotspot input,
.rsvp-text-hotspot textarea {
  width: 100%;
  height: 100%;
  padding: 0.25em 0.65em;
  border: 2px solid #ffd400;
  border-radius: 7px;
  outline: 0;
  background: rgba(255, 212, 0, 0.58);
  color: #243b31;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.58rem, 2.5vw, 1rem);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
  resize: none;
  -webkit-appearance: none;
}

.rsvp-name-hotspot input {
  border-color: var(--rsvp-name-border, #ffd400);
  background: var(--rsvp-name-background, rgba(255, 212, 0, 0.58));
  box-shadow: var(--rsvp-name-shadow, 0 0 0 2px rgba(255, 255, 255, 0.72));
}

.rsvp-notes-hotspot textarea {
  border-color: var(--rsvp-notes-border, #ffd400);
  background: var(--rsvp-notes-background, rgba(255, 212, 0, 0.58));
  box-shadow: var(--rsvp-notes-shadow, 0 0 0 2px rgba(255, 255, 255, 0.72));
}

.rsvp-text-hotspot input:focus,
.rsvp-text-hotspot textarea:focus {
  border-color: #ffb000;
  background: rgba(255, 226, 70, 0.76);
  box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.32);
}

.rsvp-name-hotspot input:focus {
  border-color: var(--rsvp-name-focus-border, #ffb000);
  background: var(--rsvp-name-focus-background, rgba(255, 226, 70, 0.76));
  box-shadow: var(--rsvp-name-focus-shadow, 0 0 0 3px rgba(255, 176, 0, 0.32));
}

.rsvp-notes-hotspot textarea:focus {
  border-color: var(--rsvp-notes-focus-border, #ffb000);
  background: var(--rsvp-notes-focus-background, rgba(255, 226, 70, 0.76));
  box-shadow: var(--rsvp-notes-focus-shadow, 0 0 0 3px rgba(255, 176, 0, 0.32));
}

.rsvp-text-hotspot input::placeholder,
.rsvp-text-hotspot textarea::placeholder {
  color: rgba(54, 67, 47, 0.7);
}

.rsvp-name-hotspot {
  top: var(--rsvp-name-top, 74.8%);
  left: var(--rsvp-name-left, 14%);
  width: var(--rsvp-name-width, 40%);
  height: var(--rsvp-name-height, 1.6%);
  transform: rotate(var(--rsvp-name-rotation, -15deg));
}

.rsvp-notes-hotspot {
  top: var(--rsvp-notes-top, 77.55%);
  left: var(--rsvp-notes-left, 19%);
  width: var(--rsvp-notes-width, 61%);
  height: var(--rsvp-notes-height, 1.6%);
  transform: rotate(var(--rsvp-notes-rotation, -15deg));
}

.rsvp-submit-hotspot {
  position: absolute;
  top: var(--rsvp-submit-top, 74.8%);
  left: var(--rsvp-submit-left, 83.5%);
  width: var(--rsvp-submit-width, 24%);
  height: var(--rsvp-submit-height, 1.8%);
  padding: 0;
  border: 2px solid #ffd400;
  border-radius: 8px;
  background: rgba(255, 212, 0, 0.58);
  color: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
  transform: rotate(var(--rsvp-submit-rotation, -15deg));
  transform-origin: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.rsvp-submit-hotspot:focus-visible {
  outline: 3px solid rgba(255, 176, 0, 0.9);
  outline-offset: 3px;
}

.rsvp-submit-hotspot:disabled {
  cursor: wait;
  opacity: 0.7;
}

.rsvp-submit-status {
  position: absolute;
  z-index: 2;
  top: 76.8%;
  left: 67%;
  width: 27%;
  margin: 0;
  border-radius: 999px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.48rem, 2vw, 0.75rem);
  line-height: 1.2;
  text-align: center;
  transform: rotate(-15deg);
  pointer-events: none;
}

.rsvp-submit-status--success,
.rsvp-submit-status--error {
  padding: 0.35em 0.5em;
  background: rgba(52, 82, 65, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rsvp-submit-status--error {
  background: rgba(139, 64, 69, 0.92);
}

.rsvp-attendance-hotspots {
  position: static;
  padding: 0;
  margin: 0;
  border: 0;
}

.rsvp-radio-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(22px, 6vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.rsvp-radio-hotspot--yes {
  top: var(--rsvp-yes-top, 73.6%);
  left: var(--rsvp-yes-left, 55.8%);
  width: var(--rsvp-yes-width, clamp(22px, 6vw, 48px));
  height: var(--rsvp-yes-height, auto);
  transform: rotate(var(--rsvp-yes-rotation, 0deg));
}

.rsvp-radio-hotspot--no {
  top: var(--rsvp-no-top, 72.12%);
  left: var(--rsvp-no-left, 77.5%);
  width: var(--rsvp-no-width, clamp(22px, 6vw, 48px));
  height: var(--rsvp-no-height, auto);
  transform: rotate(var(--rsvp-no-rotation, 0deg));
}

.rsvp-radio-hotspot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rsvp-radio-hotspot > span[aria-hidden="true"] {
  width: 72%;
  aspect-ratio: 1;
  border: 3px solid #ffd400;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.rsvp-radio-hotspot input:checked + span {
  background: #ffd400;
  box-shadow: inset 0 0 0 4px #fff7cf, 0 0 0 2px rgba(255, 176, 0, 0.8);
}

.rsvp-radio-hotspot input:focus-visible + span {
  outline: 3px solid rgba(255, 176, 0, 0.82);
  outline-offset: 3px;
}

.layout-editor-active .rsvp-text-hotspot,
.layout-editor-active .rsvp-radio-hotspot,
.layout-editor-active .rsvp-submit-hotspot {
  pointer-events: none;
}

.rsvp-layout-editor-box {
  position: absolute;
  z-index: 25;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 7px;
  background: rgba(225, 118, 145, 0.1);
  box-shadow: 0 0 0 1px rgba(33, 73, 62, 0.78), 0 7px 18px rgba(0, 0, 0, 0.18);
  cursor: move;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.rsvp-layout-editor-box[data-key="yes"],
.rsvp-layout-editor-box[data-key="no"] {
  border-radius: 50%;
}

.rsvp-layout-editor-box:focus,
.rsvp-layout-editor-box.is-active {
  border-color: #ff96ae;
  outline: 3px solid rgba(255, 212, 0, 0.92);
  outline-offset: 2px;
  background: rgba(255, 212, 0, 0.14);
}

.rsvp-layout-editor-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  min-width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #17372f;
  color: #fff;
  font: 700 9px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  transform: translateX(-50%);
  pointer-events: none;
}

.rsvp-layout-editor-handle {
  position: absolute;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid #17372f;
  border-radius: 50%;
  background: #ffd400;
  box-shadow: 0 0 0 2px #fff;
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.rsvp-layout-editor-box:hover .rsvp-layout-editor-handle,
.rsvp-layout-editor-box:focus .rsvp-layout-editor-handle,
.rsvp-layout-editor-box.is-active .rsvp-layout-editor-handle {
  opacity: 1;
  pointer-events: auto;
}

.rsvp-layout-editor-handle[data-handle="nw"] { top: -7px; left: -7px; }
.rsvp-layout-editor-handle[data-handle="n"] { top: -7px; left: 50%; cursor: ns-resize; transform: translateX(-50%); }
.rsvp-layout-editor-handle[data-handle="ne"] { top: -7px; right: -7px; cursor: nesw-resize; }
.rsvp-layout-editor-handle[data-handle="e"] { top: 50%; right: -7px; cursor: ew-resize; transform: translateY(-50%); }
.rsvp-layout-editor-handle[data-handle="sw"] { bottom: -7px; left: -7px; cursor: nesw-resize; }
.rsvp-layout-editor-handle[data-handle="se"] { right: -7px; bottom: -7px; }
.rsvp-layout-editor-handle[data-handle="s"] { bottom: -7px; left: 50%; cursor: ns-resize; transform: translateX(-50%); }
.rsvp-layout-editor-handle[data-handle="w"] { top: 50%; left: -7px; cursor: ew-resize; transform: translateY(-50%); }
.rsvp-layout-editor-handle[data-handle="rotate"] {
  left: 50%;
  top: calc(100% + 22px);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-color: #fff;
  background: #17372f;
  color: #fff;
  cursor: grab;
  font: 700 12px/1 sans-serif;
  transform: translateX(-50%);
}

.rsvp-layout-editor-handle[data-handle="rotate"]::before {
  content: "↻";
}

.rsvp-layout-editor-handle[data-handle="rotate"]::after {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 19px;
  background: rgba(255, 255, 255, 0.92);
  content: "";
  transform: translateX(-50%);
}

.rsvp-layout-editor-toolbar {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px 9px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(20, 45, 38, 0.94);
  color: #fff;
  font: 700 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateX(-50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.rsvp-layout-editor-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsvp-layout-editor-toolbar button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: #f4ced5;
  color: #17372f;
  cursor: pointer;
  font: inherit;
}

.rsvp-layout-fill-picker {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.rsvp-layout-fill-picker button {
  padding: 5px 7px;
  background: transparent;
  color: #fff;
}

.rsvp-layout-fill-picker button.is-active {
  background: #ffd400;
  color: #17372f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.countdown-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(20px, 4vw, 44px);
  width: min(calc(100% - 38px), 590px);
  padding: clamp(42px, 8vw, 58px) clamp(18px, 5vw, 38px) clamp(22px, 5vw, 34px);
  border: 2px solid rgba(126, 142, 102, 0.72);
  border-radius: 34px 34px 48px 48px;
  background:
    repeating-linear-gradient(0deg, rgba(132, 111, 76, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #fffaf0 0%, #f8efdf 100%);
  color: #59694e;
  text-align: center;
  transform: translateX(-50%) rotate(-0.35deg);
  box-shadow:
    0 0 0 6px rgba(255, 249, 238, 0.94),
    0 0 0 8px rgba(221, 164, 176, 0.72),
    0 16px 32px rgba(83, 72, 55, 0.2);
  isolation: isolate;
}

.countdown-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9px;
  border: 1px solid rgba(221, 164, 176, 0.56);
  border-radius: 26px 26px 40px 40px;
  pointer-events: none;
}

.countdown-kicker,
.countdown-date,
.countdown-grid span {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.countdown-kicker {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(16px, 4vw, 24px);
  color: #59694e;
  font-size: clamp(0.72rem, 2.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.countdown-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 520px);
  margin: 0 auto clamp(18px, 4vw, 26px);
}

.countdown-grid > div {
  display: grid;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid rgba(221, 164, 176, 0.72);
}

.countdown-grid > div:last-child {
  border-right: 0;
}

.countdown-grid strong {
  color: #59694e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 7vw, 3.2rem);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-shadow: 0 1px 0 #fff;
}

.countdown-grid span {
  color: #c98796;
  font-size: clamp(0.48rem, 1.8vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.countdown-date {
  position: relative;
  z-index: 2;
  color: #7b896d;
  font-size: clamp(0.62rem, 2.2vw, 0.82rem);
  letter-spacing: 0.09em;
}

.countdown-date span {
  color: #d99eaa;
  padding: 0 0.4em;
}

.countdown-bow {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 50%;
  width: 62px;
  height: 28px;
  transform: translateX(-50%);
}

.countdown-bow span {
  position: absolute;
  top: 3px;
  width: 27px;
  height: 19px;
  border: 2px solid #d99eaa;
  border-radius: 70% 42% 62% 38%;
  background: rgba(255, 246, 237, 0.7);
}

.countdown-bow span:first-child {
  left: 4px;
  transform: rotate(18deg);
}

.countdown-bow span:nth-child(2) {
  right: 4px;
  transform: scaleX(-1) rotate(18deg);
}

.countdown-bow i {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #d99eaa;
  border-radius: 50%;
  background: #f8dfdf;
  transform: translateX(-50%);
}

.countdown-bloom {
  position: absolute;
  z-index: 1;
  width: clamp(46px, 11vw, 70px);
  aspect-ratio: 1;
  pointer-events: none;
}

.countdown-bloom--left {
  top: -18px;
  left: -13px;
  transform: rotate(-20deg);
}

.countdown-bloom--right {
  right: -13px;
  bottom: -18px;
  transform: rotate(160deg);
}

.countdown-bloom span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 50%;
  border: 1px solid rgba(195, 120, 136, 0.35);
  border-radius: 60% 60% 48% 48%;
  background: linear-gradient(to bottom, #f9d9d9, #eeb0b9);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.55);
  transform-origin: 50% 100%;
}

.countdown-bloom span:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.countdown-bloom span:nth-child(2) { transform: translate(-50%, -100%) rotate(72deg); }
.countdown-bloom span:nth-child(3) { transform: translate(-50%, -100%) rotate(144deg); }
.countdown-bloom span:nth-child(4) { transform: translate(-50%, -100%) rotate(216deg); }
.countdown-bloom span:nth-child(5) { transform: translate(-50%, -100%) rotate(288deg); }

.countdown-bloom i {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff0ae 0 12%, #d5a660 58%, #a87d3f 100%);
  transform: translate(-50%, -50%);
}

.countdown-bloom::before,
.countdown-bloom::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 36%;
  height: 22%;
  border: 1px solid rgba(83, 105, 71, 0.35);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #aebb91, #718064);
}

.countdown-bloom::before {
  left: -5%;
  bottom: 6%;
  transform: rotate(18deg);
}

.countdown-bloom::after {
  right: -5%;
  bottom: 13%;
  transform: scaleX(-1) rotate(8deg);
}

@media (max-width: 420px) {
  .countdown-grid > div {
    padding: 0 6px;
  }

  .countdown-grid span {
    font-size: 0.46rem;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 700px) {
  html,
  body {
    background:
      radial-gradient(circle at 50% 42%, rgba(239, 173, 191, 0.2), transparent 36%),
      linear-gradient(145deg, #1d171b 0%, #090909 72%);
  }

  body {
    display: grid;
    place-items: center;
    padding: 22px;
  }

  .device-shell {
    position: relative;
    width: min(430px, calc(100vw - 44px));
    height: min(884px, calc(100dvh - 44px));
    padding: 12px;
    border: 1px solid #4c4c4f;
    border-radius: 58px;
    background: linear-gradient(145deg, #404044 0%, #08080a 18%, #000 78%, #29292c 100%);
    box-shadow:
      0 0 0 2px #050506,
      0 0 0 4px #525257,
      0 28px 70px rgba(0, 0, 0, 0.72),
      inset 0 0 0 1px rgba(255, 255, 255, 0.17);
  }

  .confirmation-screen {
    position: absolute;
    inset: 12px;
    min-height: 0;
    padding: 40px 18px 32px;
    border-radius: 46px;
    scrollbar-width: none;
  }

  .confirmation-screen::-webkit-scrollbar {
    display: none;
  }

  .confirmation-card {
    min-height: 100%;
    padding: 48px 30px 40px;
  }

  .confirmation-card h1 {
    font-size: 4rem;
  }

  .device-shell::before,
  .device-shell::after {
    content: "";
    position: absolute;
    left: -7px;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(to right, #222225, #77777b);
  }

  .device-shell::before {
    top: 160px;
    height: 76px;
  }

  .device-shell::after {
    top: 254px;
    height: 110px;
  }

  .intro-sequence {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 46px;
    scrollbar-width: none;
    container-type: inline-size;
  }

  .intro-sequence::-webkit-scrollbar {
    display: none;
  }

  .intro-panel {
    height: 100%;
    min-height: 100%;
  }

  .intro-panel--full {
    height: auto;
    min-height: 100%;
  }

  .device-camera {
    position: absolute;
    z-index: 30;
    top: 25px;
    left: 50%;
    display: block;
    width: 124px;
    height: 34px;
    border-radius: 999px;
    background: #050505;
    transform: translateX(-50%);
    box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.08), 0 2px 7px rgba(0, 0, 0, 0.4);
    pointer-events: none;
  }

  .device-camera span {
    position: absolute;
    top: 11px;
    right: 17px;
    width: 11px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #243a55 0 12%, #09111d 38%, #010205 72%);
    box-shadow: 0 0 0 1px #111b25, inset 0 0 3px #355175;
  }

  .device-home-indicator {
    position: absolute;
    z-index: 30;
    bottom: 20px;
    left: 50%;
    display: block;
    width: 126px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    transform: translateX(-50%);
    mix-blend-mode: difference;
    pointer-events: none;
  }

  .vinyl-stage {
    width: 112px;
  }

  .vinyl-toggle {
    width: 38px;
  }

  .vinyl-toggle span {
    font-size: 0.72rem;
  }

  .rsvp-radio-hotspot--yes {
    width: var(--rsvp-yes-width, 26px);
    height: var(--rsvp-yes-height, auto);
  }

  .rsvp-radio-hotspot--no {
    width: var(--rsvp-no-width, 26px);
    height: var(--rsvp-no-height, auto);
  }

  .rsvp-text-hotspot input,
  .rsvp-text-hotspot textarea {
    font-size: 0.72rem;
  }

  .countdown-panel {
    bottom: 28px;
    width: calc(100% - 38px);
    padding: 48px 22px 26px;
  }

  .countdown-grid strong {
    font-size: 2rem;
  }
}

.rsvp-panel {
  scroll-margin-top: 24px;
  width: min(92%, 720px);
  margin: 34px auto 56px;
  padding: 26px clamp(20px, 5vw, 48px) 34px;
  border: 1px solid rgba(92, 107, 77, 0.28);
  border-radius: 28px;
  background: #f8f0e2;
  color: #183b32;
  box-shadow: 12px 14px 0 rgba(228, 216, 157, 0.72), 0 18px 40px rgba(0, 0, 0, 0.18);
  transform: rotate(-1.1deg);
}

.rsvp-panel-topline,
.rsvp-panel-heading p,
.rsvp-field > span,
.rsvp-attendance legend,
.rsvp-options,
.rsvp-status {
  font-family: "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-panel-topline {
  display: flex;
  justify-content: space-between;
  color: #879579;
  font-size: 0.58rem;
}

.rsvp-panel-heading {
  padding: 24px 0 26px;
  text-align: center;
}

.rsvp-bow {
  display: block;
  color: #d9878c;
  font-size: 1.5rem;
  transform: rotate(45deg);
}

.rsvp-panel-heading h2 {
  margin: 8px 0 6px;
  color: #173a31;
  font-family: Georgia, serif;
  font-size: clamp(2.8rem, 12vw, 5.3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0.85;
}

.rsvp-panel-heading p {
  margin: 0;
  color: #a06e70;
  font-size: 0.62rem;
}

.rsvp-field {
  display: block;
  margin: 0 0 22px;
  border: 0;
  padding: 0;
}

.rsvp-field > span,
.rsvp-attendance legend {
  display: block;
  margin-bottom: 8px;
  color: #6d8160;
  font-size: 0.62rem;
  font-weight: 600;
}

.rsvp-field em {
  color: #d18a8c;
  font-style: normal;
  text-transform: lowercase;
}

.rsvp-field input:not([type="radio"]),
.rsvp-field textarea {
  width: 100%;
  border: 1px solid rgba(120, 136, 101, 0.4);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.32);
  color: #183b32;
  padding: 14px 15px;
  font: inherit;
  font-size: 1rem;
  transform: rotate(0.25deg);
}

.rsvp-field textarea {
  min-height: 92px;
  resize: vertical;
}

.rsvp-field input:not([type="radio"]):focus,
.rsvp-field textarea:focus {
  border-color: #d9878c;
  box-shadow: 0 0 0 3px rgba(217, 135, 140, 0.18);
}

.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
  color: rgba(24, 59, 50, 0.45);
}

.rsvp-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rsvp-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  border: 1px solid rgba(120, 136, 101, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  color: #52694b;
  cursor: pointer;
  font-size: 0.56rem;
  line-height: 1.35;
}

.rsvp-options label:has(input:checked) {
  border-color: #d9878c;
  background: rgba(255, 205, 207, 0.32);
  color: #183b32;
}

.rsvp-options input {
  accent-color: #d9878c;
  flex: 0 0 auto;
}

.rsvp-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(120, 136, 101, 0.28);
  padding-top: 22px;
}

.rsvp-submit-row button {
  border: 0;
  border-radius: 12px;
  background: #899774;
  color: #fffaf0;
  cursor: pointer;
  padding: 14px 22px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.rsvp-submit-row button:hover {
  background: #6f805f;
}

.rsvp-submit-row button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.rsvp-status {
  min-height: 1em;
  color: #a06e70;
  font-size: 0.55rem;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .rsvp-panel {
    width: 90%;
    margin-top: 26px;
    padding-inline: 18px;
  }

  .rsvp-options {
    grid-template-columns: 1fr;
  }

  .rsvp-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .rsvp-submit-row button {
    width: 100%;
  }
}
