@font-face {
  font-family: "Permanent Marker";
  src: url("assets/PermanentMarker-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff1f0;
  background: #200e1b;
  --rose: #f6b4c7;
  --brush: "Permanent Marker", "Segoe Print", cursive;
  /* The title overlaps the faded edges, leaving more room for both square photos. */
  --photo-size: min(480px, calc(100vw - 24px), calc((100svh - 132px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 1.78));
}
*, *::before, *::after { box-sizing: border-box; -webkit-user-select: none; user-select: none; }
html, body { margin: 0; min-width: 240px; touch-action: pan-x pan-y; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }
body {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 18%, #9751664d, transparent 58%),
    radial-gradient(ellipse at 2% 65%, #8b32565c, transparent 53%),
    radial-gradient(ellipse at 98% 84%, #a665553d, transparent 50%),
    linear-gradient(135deg, #271420, #200e1b 55%, #311723);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.3' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
::selection { background: #f6b4c7; color: #291420; }
.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
}
.profile { display: flex; flex-direction: column; align-items: center; }
.portrait, .destination {
  width: var(--photo-size);
  height: var(--photo-size);
  aspect-ratio: 1;
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  filter: drop-shadow(0 12px 20px #08030866);
}
.portrait { margin: 0; --image-fade: linear-gradient(180deg, #000 60%, #000000d1 70%, #00000047 82%, transparent 95%); }
.photo-surface {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  -webkit-mask-image: var(--image-fade);
  mask-image: var(--image-fade);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.portrait img, .destination img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: inherit; }
.photo-surface::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(145deg, #ffcbd70b, transparent 50%, #280f2726); box-shadow: inset 0 0 0 1px #ffe1e533; }
.identity { position: relative; z-index: 2; text-align: center; padding: 12px 0 17px; margin: calc(var(--photo-size) * -.12) 0 calc(var(--photo-size) * -.10); }
.identity h1 { margin: 0; color: var(--rose); font: 400 clamp(30px, 4.5svh, 42px)/1.32 var(--brush); letter-spacing: -1.5px; text-shadow: 0 2px 14px #180a18b3, 0 0 28px #200e1b66; }
.identity__sparkle { display: inline-block; margin-left: 7px; font: 24px/1 Georgia, serif; vertical-align: top; padding-top: 3px; color: #f2bfae; }
.identity__subtitle { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 1px; }
.identity__subtitle p { margin: 0; color: #e3c2cc; font-size: 10px; line-height: 18px; letter-spacing: 2px; text-transform: uppercase; }
.identity__subtitle > span { height: 1px; width: 21px; background: linear-gradient(90deg, transparent, #b98393); }
.identity__subtitle > span:last-child { transform: rotate(180deg); }
.destination { --image-fade: linear-gradient(180deg, transparent, #0000001f 10%, #0000008c 20%, #000 34%); display: block; color: #fff5f3; text-decoration: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; transition: filter 350ms, transform 350ms; }
.destination img { transition: transform 650ms cubic-bezier(.2, .7, .2, 1); }
.destination .photo-surface::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), #ffe5ef26, transparent 68%); transition: opacity 450ms; }
.destination__corner { display: grid; place-items: center; position: absolute; z-index: 3; bottom: 15px; right: 15px; width: 32px; height: 32px; border: 1px solid #ffe8ef55; border-radius: 50%; background: #23162280; backdrop-filter: blur(10px); }
.destination svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.destination:focus-visible { outline: 2px solid #fbd0dd; outline-offset: 6px; }
.destination:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .destination:hover { transform: translateY(-3px); filter: drop-shadow(0 15px 24px #08030899) drop-shadow(0 0 13px #ed83ae26); }
  .destination:hover img { transform: scale(1.075) translate3d(var(--move-x, 0px), var(--move-y, 0px), 0); transition-duration: 260ms; }
  .destination:hover .photo-surface::before { opacity: 1; }
}
.intro { display: none; }
.is-loading .intro { display: flex; flex-direction: column; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 10; background: radial-gradient(ellipse at center, #442033, #200e1b 70%); }
.intro__monogram { position: relative; color: var(--rose); font: 400 94px/1.3 var(--brush); letter-spacing: -10px; }
.is-intro-playing .intro__monogram { animation: monogram-in 700ms cubic-bezier(.16, 1, .3, 1) both; }
.intro__star { position: absolute; right: -29px; top: 6px; color: #edc3b5; font: 22px/1 Georgia, serif; }
.is-intro-playing .intro__star { animation: star-in 600ms 180ms both; }
.intro__line { width: 44px; height: 1px; margin-top: 15px; background: #e9a8bc66; overflow: hidden; }
.intro__line::after { display: block; content: ""; height: 100%; background: #f6b4c7; transform-origin: left; transform: scaleX(0); }
.is-intro-playing .intro__line::after { animation: loading-line 1700ms ease-in-out both; }
.is-loading .page-shell { opacity: 0; }
.is-revealing .intro { display: flex; animation: intro-out 450ms ease forwards; pointer-events: none; }
.is-revealing .page-shell { animation: scene-in 650ms cubic-bezier(.16, 1, .3, 1) both; }
.browser-help {
  width: min(356px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 54px 20px 20px;
  border: 1px solid #f7c4d14d;
  border-radius: 30px;
  color: #fff1f0;
  background: radial-gradient(ellipse at 15% 0%, #9c56734d, transparent 68%), linear-gradient(150deg, #3c2334, #251320 85%);
  box-shadow: 0 30px 80px #09030dc9, 0 8px 24px #09030d66, inset 0 1px 0 #ffe1ed1f;
  overflow: visible;
}
.browser-help::before { content: ""; position: absolute; top: -1px; left: 32px; right: 32px; height: 1px; background: linear-gradient(90deg, transparent, #ffe0ed99, transparent); pointer-events: none; }
.browser-help::backdrop { background: #100710ad; backdrop-filter: blur(8px); }
.browser-help__close { display: grid; place-items: center; position: absolute; top: 11px; right: 12px; width: 32px; height: 32px; padding: 0; border: 1px solid #f6c2d31a; border-radius: 50%; background: #f6c2d30a; color: #e6c2d0; cursor: pointer; transition: background 180ms, color 180ms; }
.browser-help svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.browser-help__hint[hidden], .browser-help__primary[hidden] { display: none; }
.browser-help__hint { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; max-width: calc(100vw - 36px); color: #f8d5e0; pointer-events: none; }
.browser-help .browser-help__arrow { width: 64px; height: 61px; margin-right: 2px; stroke-width: 2.8; filter: drop-shadow(0 2px 4px #130913); }
.browser-help__hint-label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px; border: 1px solid #fff0f58c; border-radius: 15px; color: #452235; background: linear-gradient(135deg, #ffe8ed, #efc2d4); box-shadow: 0 10px 32px #0c040c66, inset 0 1px 0 #ffffff80; font: 600 12px/1.4 "Segoe UI", Arial, sans-serif; }
.browser-help__hint-label > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fce4ee; background: #4b2a3c; font: 700 16px/1 "Segoe UI", Arial, sans-serif; }
.browser-help__actions { display: grid; gap: 11px; }
.browser-help__primary, .browser-help__secondary { display: grid; grid-template-columns: 32px 1fr 18px; align-items: center; gap: 10px; min-height: 59px; padding: 12px 14px; border: 1px solid #f7c4d140; border-radius: 18px; cursor: pointer; text-align: left; text-decoration: none; font: 600 14px/1.4 "Segoe UI", Arial, sans-serif; transition: transform 180ms, box-shadow 180ms, background 180ms; }
.browser-help__primary { color: #3e2032; border-color: #ffe9ee88; background: linear-gradient(120deg, #ffe3e7, #f4bdd1 65%, #eeb4cc); box-shadow: 0 7px 20px #e79ab326, inset 0 1px 0 #ffffff88; }
.browser-help__secondary { color: #f5d6e1; border-color: #e9b6cc40; background: linear-gradient(120deg, #f6c2d310, #f6c2d303); box-shadow: inset 0 1px 0 #ffe1ed09; }
.browser-help__button-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #4723361f; border-radius: 11px; background: #ffffff24; }
.browser-help__secondary .browser-help__button-icon { border-color: #efbfd326; background: #f6c2d30b; color: #edb6cd; }
.browser-help .browser-help__button-arrow { width: 17px; height: 17px; opacity: .75; }
.browser-help__primary:active, .browser-help__secondary:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .browser-help__close:hover { background: #f6c2d31f; color: #fff1f0; }
  .browser-help__primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px #e79ab33b, inset 0 1px 0 #ffffff88; }
  .browser-help__secondary:hover { background: #f6c2d318; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .browser-help:has(.browser-help__hint:not([hidden])) { width: min(356px, calc(100vw - 248px)); margin-left: 16px; }
}
.browser-help a:focus-visible, .browser-help button:focus-visible { outline: 2px solid #fbd0dd; outline-offset: 3px; }
@keyframes monogram-in { from { opacity: 0; transform: translateY(12px) rotate(-7deg) scale(.94); } to { opacity: 1; transform: translateY(0) rotate(-4deg) scale(1); } }
@keyframes star-in { from { opacity: 0; transform: rotate(-50deg) scale(.3); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes loading-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 768px) {
  body { background: radial-gradient(ellipse at 50% 30%, #9751664d, transparent 65%), radial-gradient(ellipse at 8% 90%, #8b32565c, transparent 55%), radial-gradient(ellipse at 95% 45%, #a6655538, transparent 45%), #200e1b; }
}
@media (max-height: 600px) and (orientation: portrait) {
  :root { --photo-size: min(480px, calc(100vw - 24px), calc((100svh - 104px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 1.78)); }
  .page-shell { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .identity { padding-top: 8px; padding-bottom: 11px; }
  .identity h1 { font-size: 29px; }
  .portrait, .destination { border-radius: 17px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  :root { --photo-size: min(480px, calc(100svh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc((100vw - 220px) / 1.86)); }
  .profile { flex-direction: row; }
  .portrait { --image-fade: linear-gradient(90deg, #000 75%, #000000e6 85%, #00000047 95%, transparent); }
  .destination { --image-fade: linear-gradient(90deg, transparent, #0000001f 10%, #0000008c 20%, #000 34%); }
  .identity { width: 180px; flex-shrink: 0; padding: 0; margin: 0 calc(var(--photo-size) * -.10) 0 calc(var(--photo-size) * -.04); }
  .identity h1 { font-size: 30px; }
  .identity__subtitle { gap: 5px; }
  .identity__subtitle p { font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
  .identity__subtitle > span { width: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro__monogram { transform: rotate(-4deg); }
  .intro__line::after { transform: scaleX(1); }
}
