* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.screen {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: max(3rem, env(safe-area-inset-top)) 1.25rem max(3rem, env(safe-area-inset-bottom));
  color: var(--text);
  background: var(--bg);
  text-align: center;
}

.content {
  display: grid;
  justify-items: center;
  width: min(100%, 40rem);
}

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(9rem, 37vw, 13rem);
  aspect-ratio: 1;
  margin-bottom: 1.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: reveal 700ms cubic-bezier(.2, .8, .25, 1.2) both;
}

.portrait {
  width: 73%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
}

.sparkleLeft,
.sparkleRight {
  position: absolute;
  width: 1.65rem;
  height: auto;
  color: var(--accent-text);
  animation: glint 1.4s ease-in-out 450ms 2 both;
}

.sparkleLeft {
  left: -10%;
  bottom: 12%;
}

.sparkleRight {
  right: -11%;
  top: 8%;
  width: 2.25rem;
  animation-delay: 670ms;
}

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--accent-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  animation: enter 550ms ease-out 200ms both;
}

.title {
  margin: 0;
  font-size: clamp(2.35rem, 7.9vw, 4.45rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
  animation: enter 600ms ease-out 310ms both;
}

.title span {
  color: var(--accent-text);
  white-space: nowrap;
}

.hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 1.7rem 0 0;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-soft);
  background: var(--surface);
  font-size: .94rem;
  animation: enter 600ms ease-out 480ms both;
}

.hours svg,
.hours strong {
  color: var(--accent-text);
}

.confetti {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  --drift: 4rem;
  position: absolute;
  top: -1rem;
  left: var(--x);
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  animation: fall 2.8s ease-out var(--delay, 0s) both;
}

.confetti i:nth-child(even) {
  --drift: -4rem;
  background: var(--accent-text);
}

.confetti i:nth-child(3n) {
  width: 7px;
  height: 7px;
  background: var(--text);
}

.confetti i:nth-child(1) { --x: 6%; --delay: .04s; }
.confetti i:nth-child(2) { --x: 11%; --delay: .36s; }
.confetti i:nth-child(3) { --x: 17%; --delay: .15s; }
.confetti i:nth-child(4) { --x: 22%; --delay: .52s; }
.confetti i:nth-child(5) { --x: 27%; --delay: .28s; }
.confetti i:nth-child(6) { --x: 32%; --delay: .11s; }
.confetti i:nth-child(7) { --x: 37%; --delay: .44s; }
.confetti i:nth-child(8) { --x: 63%; --delay: .23s; }
.confetti i:nth-child(9) { --x: 68%; --delay: .48s; }
.confetti i:nth-child(10) { --x: 73%; --delay: .08s; }
.confetti i:nth-child(11) { --x: 78%; --delay: .34s; }
.confetti i:nth-child(12) { --x: 83%; --delay: .18s; }
.confetti i:nth-child(13) { --x: 89%; --delay: .55s; }
.confetti i:nth-child(14) { --x: 94%; --delay: .29s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px) scale(.66) rotate(-13deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glint {
  0%, 100% { opacity: .6; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes fall {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  14%, 60% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--drift), 82svh) rotate(420deg); }
}

@media (prefers-reduced-motion: reduce) {
  .emblem,
  .sparkleLeft,
  .sparkleRight,
  .eyebrow,
  .title,
  .hours {
    animation: none;
  }

  .confetti {
    display: none;
  }
}

.hours strong {
  white-space: nowrap;
}
