:root {
  color-scheme: dark;
  --ink: #fff7e8;
  --muted: rgba(255, 247, 232, 0.74);
  --glass: rgba(9, 10, 18, 0.48);
  --line: rgba(255, 255, 255, 0.18);
  --hot: #f15f9f;
  --gold: #f6c66b;
  --sea: #20d2d0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 95, 159, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(32, 210, 208, 0.18), transparent 22rem),
    #07070c;
  color: var(--ink);
}

.invite {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 32px);
}

.poster {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  min-height: min(760px, calc(100svh - 24px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(4, 5, 11, 0.48) 42%, rgba(5, 4, 10, 0.9) 100%),
    url("assets/afterparty-bg.png") center / cover;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, transparent 76%);
  opacity: 0.2;
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(4, 4, 8, 0.88) 34%, #05050a);
}

.shine {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.75;
  pointer-events: none;
}

.shine-one {
  top: 15%;
  right: -70px;
  background: rgba(32, 210, 208, 0.22);
}

.shine-two {
  left: -86px;
  bottom: 19%;
  background: rgba(241, 95, 159, 0.28);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.84);
}

.topline span {
  border-block: 1px solid rgba(255, 255, 255, 0.42);
  padding: 8px 0;
  white-space: nowrap;
}

.copy {
  align-self: end;
  padding-top: 120px;
}

.kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(16px);
}

h1 {
  margin: 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(4.35rem, 19vw, 6.85rem);
  line-height: 0.75;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(246, 198, 107, 0.42),
    0 14px 36px rgba(0, 0, 0, 0.68);
}

.subtitle {
  max-width: 24ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.details {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
}

.details > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  padding: 14px;
  backdrop-filter: blur(20px);
}

.label,
.details small {
  display: block;
  color: rgba(255, 247, 232, 0.64);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.details strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 1.05rem;
  line-height: 1.1;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.action {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.action.primary {
  border-color: rgba(246, 198, 107, 0.54);
  background: linear-gradient(135deg, rgba(246, 198, 107, 0.96), rgba(241, 95, 159, 0.86));
  color: #190913;
}

.action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action svg circle {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 380px) {
  .invite {
    padding: 0;
  }

  .poster {
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
    border: 0;
    padding: 18px;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .copy {
    padding-top: 80px;
  }
}
