:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #173552;
  background: #c5e4f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.68), transparent 48%),
    #c5e4f7;
}

button {
  font: inherit;
}

.page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: auto;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.invitation {
  position: relative;
  isolation: isolate;
  width: min(100vw, 57.22dvh);
  aspect-ratio: 1121 / 1959;
  line-height: 0;
}

.invitation__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  z-index: 1;
  top: 67.44%;
  width: 13.02%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.hotspot--location {
  left: 25.06%;
}

.hotspot--confirmation {
  top: 67.34%;
  left: 47.18%;
}

.hotspot--gift {
  top: 67.94%;
  left: 68.48%;
}

.hotspot:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 0 7px rgba(31, 133, 196, 0.32);
}

.hotspot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 8px rgba(31, 108, 166, 0.42);
}

.hotspot:active {
  transform: translate(-50%, -50%) scale(0.94);
}

.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;
}

.action-dialog {
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(80dvh, 600px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #173552;
}

.action-dialog::backdrop {
  background: rgba(13, 35, 59, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  padding: clamp(26px, 7vw, 38px);
  border: 1px solid rgba(41, 95, 139, 0.16);
  border-radius: 24px;
  background: linear-gradient(160deg, #fffefa 0%, #f1f9fd 100%);
  box-shadow: 0 24px 80px rgba(11, 36, 63, 0.28);
  text-align: center;
}

.dialog-kicker {
  margin: 0 42px 12px;
  color: #52789c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(63, 157, 211, 0.13);
  color: #1d4d77;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dialog-title {
  margin: 0 0 12px;
  color: #163d78;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 7vw, 34px);
  font-weight: 500;
  line-height: 1.12;
}

.dialog-message {
  margin: 0;
  color: #495d70;
  font-size: 15px;
  line-height: 1.65;
}

.dialog-return {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #329bd2;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.dialog-return:hover {
  background: #237fae;
}

.dialog-return:active {
  transform: scale(0.97);
}

.dialog-close:focus-visible,
.dialog-return:focus-visible {
  outline: 3px solid #174d78;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
