:root {
  color-scheme: dark;
  --pink: #F53291;
  --blue: #32C5F4;
  --blue-bright: #7BE0FA;
  --black: #101010;
  --white: #FFFFFF;
  background: var(--black);
}

body {
  margin: 0;
}

.guest-view {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.guest-artwork {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}

.guest-artwork img {
  display: block;
  width: 100%;
  max-width: 1440px;
  height: auto;
  aspect-ratio: 2430 / 3038;
}

/* Fit the complete portrait on wide screens; retain readable width on phones. */
@media (min-aspect-ratio: 2430/3038) {
  .guest-artwork img {
    width: auto;
    max-width: 100%;
    height: max(180px, calc(100vh - 112px));
    height: max(180px, calc(100dvh - 112px - env(safe-area-inset-bottom, 0px)));
    max-height: 1800px;
  }

  .guest-progress-view .guest-artwork img {
    height: max(180px, calc(100vh - 224px));
    height: max(180px, calc(100dvh - 224px - env(safe-area-inset-bottom, 0px)));
  }
}

.guest-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--black);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.guest-navigation a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #59616f;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.guest-navigation a:focus-visible {
  outline-color: var(--blue);
  outline-offset: 4px;
}

.guest-navigation .guest-instructions {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #101010;
  box-shadow: none;
}

.guest-instructions .guest-arrow { font-size: 14px; }

.guest-view .step-progress-mount { box-sizing: border-box; width: min(100%, 520px); margin: 0 auto 16px; padding-inline: 16px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

@media (hover: hover) {
  .guest-navigation a:hover { border-color: var(--blue-bright); }
  .guest-navigation .guest-instructions:hover {
    border-color: var(--blue-bright);
    background: var(--blue-bright);
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .guest-view .step-progress-mount { padding-inline: 9px; }
}

@media (forced-colors: active) {
  .guest-navigation a:focus-visible { outline-color: Highlight; }
}
