.phone[data-screen="invitation"] .utilities { display: none; }

.screen.goblet-home {
  position: relative;
  display: block;
  height: var(--home-height);
  overflow: hidden;
  background: #15110f;
  container-type: size;
  --flame-x: 53.3%;
  --flame-y: 33.7%;
}

@supports (width: 1cqw) {
  .goblet-glow {
    /* Follow the flame through the center crop of the 941 × 1672 cover. */
    --cover-width: max(100cqw, calc(100cqh * 941 / 1672));
    --cover-height: max(100cqh, calc(100cqw * 1672 / 941));
    --flame-x: calc(50% + var(--cover-width) * .033);
    --flame-y: calc(50% - var(--cover-height) * .163);
  }
}

.goblet-cover, .goblet-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.goblet-video { opacity: 0; }
.show-video .goblet-video { opacity: 1; }
.goblet-home[data-phase="fallback"] .goblet-cover {
  filter: brightness(2.2);
  transition: filter 2.5s ease-in-out;
}

.goblet-glow {
  position: absolute;
  left: var(--flame-x);
  top: var(--flame-y);
  width: clamp(84px, 30%, 136px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.goblet-glow::before, .goblet-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.goblet-glow::before {
  background: radial-gradient(circle, #b0d7ff54, #6b9fff32 30%, #4379f719 53%, transparent 72%);
  animation: goblet-breathe 4s ease-in-out infinite;
}

.goblet-glow::after {
  background: radial-gradient(circle, transparent 42%, #90c1ff3d 52%, #6d9bff18 58%, transparent 67%);
  animation: goblet-ripple 4s 1.1s ease-out infinite both;
}

@keyframes goblet-breathe {
  0%, 100% { opacity: .43; transform: scale(.85); }
  50% { opacity: .88; transform: scale(1.13); }
}

@keyframes goblet-ripple {
  0% { opacity: 0; transform: scale(.55); }
  19% { opacity: .62; }
  67%, 100% { opacity: 0; transform: scale(1.62); }
}

.goblet-caption {
  position: absolute;
  inset: auto 0 0;
  padding-top: clamp(46px, 9vh, 84px);
  padding-bottom: max(34px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  background: linear-gradient(transparent, #100d0b58 52%, #100d0bd4);
  text-align: center;
  pointer-events: none;
}

.goblet-wordmark {
  width: min(78%, 350px, 64vh);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 2px 5px #180e09cc);
}

.goblet-home .goblet-hint {
  margin: 11px 0 0;
  color: #e3cba6;
  font: italic 14px/1.32 var(--handoff-display);
  letter-spacing: .045em;
  text-shadow: 0 1px 4px #16100b;
}

.goblet-home.show-video .goblet-caption,
.goblet-home.show-video .goblet-glow { visibility: hidden; }

.goblet-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

.goblet-trigger:focus-visible { outline-offset: -5px; }
.goblet-trigger span { display: none; }

.phone[data-reduced="true"] .goblet-home :is(.goblet-glow, .goblet-hint) { display: none; }
.phone[data-reduced="true"] .goblet-caption {
  padding-bottom: max(86px, calc(env(safe-area-inset-bottom, 0px) + 74px));
}
.phone[data-reduced="true"] .goblet-trigger {
  inset: auto auto max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px)) 50%;
  transform: translateX(-50%);
  width: auto;
  padding: 0 28px;
  border: 1px solid #a78957;
  background: #1d1915;
  color: #e4c690;
  letter-spacing: .13em;
}
.phone[data-reduced="true"] .goblet-trigger span { display: inline; }

.goblet-white {
  position: absolute;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: #fff;
  animation: goblet-white-in var(--goblet-white-in) ease-in-out both;
}
.goblet-white.leaving { animation: goblet-white-out 300ms ease-out both; }
@keyframes goblet-white-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes goblet-white-out { from { opacity: 1; } to { opacity: 0; } }
