:root {
  --hair: #b84521;
  --ink: #1c1917;
  --green: #2ecc71;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  min-height: 100dvh;
}

body {
  display: grid;
  place-items: center;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: #1f1c1a;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.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;
}

.frame {
  position: relative;
  width: min(100vw, calc(100dvh * 9 / 16));
  height: min(100dvh, calc(100vw * 16 / 9));
  overflow: hidden;
  background: #efeae4;
}

.wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.signature {
  position: absolute;
  left: 73.3%;
  bottom: 77.6%;
  width: 42%;
  height: auto;
  aspect-ratio: 987 / 493;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  user-select: none;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
}

.vip-hit {
  position: absolute;
  left: 56.2%;
  top: 19.05%;
  width: 34.2%;
  height: 32.55%;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.vip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70.8%;
  height: 72.4%;
  gap: 0.28em;
  padding: 0.55em 0.4em;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.6vw, 1.65rem);
  letter-spacing: 0.16em;
  background: rgba(255, 255, 255, 0.34);
  border: 1.5px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  animation: vip-in 0.7s var(--ease) both;
}

.vip-hit:hover .vip,
.vip-hit:focus-visible .vip {
  background: rgba(255, 255, 255, 0.5);
}

.vip-hit:focus-visible {
  outline: none;
}

.vip-hit:focus-visible .vip {
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.35);
}

.vip-label {
  text-shadow: 0 1px 0 #fff, 0 0 10px rgba(255, 255, 255, 0.75);
}

.heart {
  width: 1.55em;
  height: 1.55em;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(28, 25, 23, 0.28));
}

.heart-green {
  fill: var(--green);
}

.heart-white {
  fill: #fff;
  stroke: rgba(28, 25, 23, 0.28);
  stroke-width: 1.2;
}

.socials {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 59.5%;
  bottom: 13.5%;
  z-index: 2;
  display: grid;
  align-content: space-evenly;
  gap: 10px;
}

.link {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 18px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #14110f;
  background: rgba(255, 255, 255, 0.28);
  border: 1.5px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: unfold 0.7s var(--ease) both;
}

.link:nth-child(1) { animation-delay: 0.12s; }
.link:nth-child(2) { animation-delay: 0.22s; }
.link:nth-child(3) { animation-delay: 0.32s; }

.link:hover,
.link:focus-visible {
  background: rgba(255, 255, 255, 0.46);
  outline: none;
}

.link.is-soon {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

.link:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 69, 33, 0.28);
}

.icon {
  display: grid;
  place-items: center;
  color: var(--hair);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.label {
  font-size: clamp(1.12rem, 3.6vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  margin-right: 32px;
  text-shadow: 0 1px 0 #fff, 0 0 8px rgba(255, 255, 255, 0.7);
}

.age {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.age[hidden] {
  display: none;
}

.age-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.age-dialog {
  position: relative;
  width: min(100%, 360px);
  padding: 28px 22px 22px;
  border-radius: 16px;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: vip-in 0.35s var(--ease) both;
}

.age-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
}

.age-icon svg {
  width: 26px;
  height: 26px;
}

.age-dialog h2 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.age-dialog p {
  margin-bottom: 22px;
  color: #b3b3b3;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.age-yes,
.age-no {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.age-yes {
  margin-bottom: 10px;
  border: 0;
  background: #fff;
  color: #111;
}

.age-no {
  border: 1px solid #4a4a4a;
  background: transparent;
  color: #fff;
}

.age-yes:hover,
.age-yes:focus-visible {
  background: #f2f2f2;
  outline: none;
}

.age-no:hover,
.age-no:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.age-yes:focus-visible,
.age-no:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vip-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .frame {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  }

  .link {
    min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vip,
  .link,
  .age-dialog {
    animation: none;
  }
}
