/* ============================================================
   PINTEREST — 06
   Konsep: board inspirasi. Cream, merah, masonry, pin.
   ============================================================ */
:root {
  --pn-bg: #fbf7f2;
  --pn-card: #ffffff;
  --pn-cream: #f3e9df;
  --pn-red: #e60023;
  --pn-red-deep: #b6001c;
  --pn-ink: #211922;
  --pn-muted: #767676;
  --pn-faint: #a39a91;
  --pn-line: #eadfd2;
  --pn-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --pn-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pn-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--pn-bg);
  color: var(--pn-ink);
  font-family: var(--pn-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.pn-locked { overflow: hidden; }
img { background: #efe7dc; }

.pn-grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pn-kicker { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pn-red); margin-bottom: 6px; }

.pn-logo {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pn-red); color: #fff; font-family: var(--pn-serif); font-weight: 600;
  font-size: 1.15rem; line-height: 1; padding-bottom: 2px;
}
.pn-logo--sm { width: 28px; height: 28px; font-size: 1rem; }
.pn-wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--pn-red); }
.pn-wordmark--sm { font-size: 1rem; }

/* ================= GATE ================= */
.pn-gate {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 55% at 80% 0%, rgba(230, 0, 35, 0.08), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(243, 233, 223, 0.9), transparent 70%),
    var(--pn-bg);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.pn-gate.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.pn-gate__top {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 8px;
}
.pn-gate__back {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--pn-line); background: rgba(255, 255, 255, 0.7); color: var(--pn-ink);
  text-decoration: none;
}
.pn-gate__back svg { width: 18px; }
.pn-gate__tag { margin-left: auto; font-size: 0.52rem; letter-spacing: 0.16em; color: var(--pn-faint); }
.pn-gate__center {
  position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 8px 24px calc(18px + env(safe-area-inset-bottom)); min-height: 0;
}
.pn-gate__title {
  font-family: var(--pn-serif); font-weight: 500; font-size: clamp(2.5rem, 11vw, 3.6rem);
  line-height: 0.95; letter-spacing: -0.04em; margin: 8px 0 10px;
}
.pn-gate__title em { font-style: italic; color: var(--pn-red); font-weight: 400; }
.pn-gate__sub { font-size: 0.72rem; color: var(--pn-muted); margin-bottom: 14px; }
.pn-gate__guest {
  font-size: 0.68rem; color: var(--pn-muted); border: 1px solid var(--pn-line);
  background: rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 7px 16px;
  max-width: 100%; margin-bottom: 18px;
}
.pn-gate__guest strong { color: var(--pn-ink); font-weight: 600; overflow-wrap: anywhere; }
.pn-gate__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pn-gate__hint { margin-top: 14px; font-size: 0.56rem; color: var(--pn-faint); }
.pn-gate__foot {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom)); font-size: 0.58rem; color: var(--pn-muted);
}
.pn-gate__foot strong { color: var(--pn-ink); font-weight: 600; }
.pn-gate__faces { display: flex; }
.pn-gate__faces span { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; border: 2px solid var(--pn-bg); }
.pn-gate__faces span + span { margin-left: -8px; }
.pn-gate__faces img { width: 100%; height: 100%; object-fit: cover; }

.pn-collage { position: relative; width: min(320px, 84vw); height: clamp(170px, 30vh, 260px); margin-bottom: 4px; }
.pn-polaroid {
  position: absolute; margin: 0; background: #fff; padding: 6px 6px 18px;
  box-shadow: 0 16px 40px -18px rgba(60, 40, 30, 0.45);
  border: 1px solid rgba(33, 25, 34, 0.06);
}
.pn-polaroid img { width: 100%; height: 100%; object-fit: cover; }
.pn-polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 4px; text-align: center;
  font-family: var(--pn-serif); font-style: italic; font-size: 0.55rem; color: var(--pn-muted);
}
.pn-polaroid--1 { width: 47%; height: 82%; left: 3%; top: 12%; transform: rotate(-7deg); z-index: 3; }
.pn-polaroid--2 { width: 44%; height: 70%; left: 31%; top: 0; transform: rotate(3deg); z-index: 2; }
.pn-polaroid--3 { width: 42%; height: 64%; right: 2%; top: 24%; transform: rotate(7deg); z-index: 1; }
.pn-polaroid--1 img { aspect-ratio: 4 / 5; }
.pn-polaroid--2 img { aspect-ratio: 4 / 3; }
.pn-polaroid--3 img { aspect-ratio: 3 / 4; }
.pn-collage__heart {
  position: absolute; right: 3%; bottom: 2%; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; background: var(--pn-red); color: #fff;
  display: grid; place-items: center; font-size: 0.9rem;
  box-shadow: 0 8px 20px -6px rgba(230, 0, 35, 0.6); transform: rotate(-8deg);
}

/* Buttons */
.pn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 18px;
  font-family: var(--pn-sans); font-size: 0.76rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.pn-btn svg { width: 15px; height: 15px; }
.pn-btn--red { background: var(--pn-red); color: #fff; }
.pn-btn--red:hover { background: var(--pn-red-deep); transform: translateY(-1px); }
.pn-btn--ghost { background: #fff; color: var(--pn-ink); border-color: var(--pn-line); }
.pn-btn--ghost:hover { background: var(--pn-cream); }
.pn-btn--ghost[aria-pressed="true"] { background: var(--pn-cream); border-color: #dccbbc; }

/* ================= APP ================= */
.pn-app { opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
body.pn-live .pn-app { opacity: 1; visibility: visible; }
body.pn-live .pn-gate { display: none; }

.pn-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(251, 247, 242, 0.94); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--pn-line);
}
.pn-top {
  display: flex; align-items: center; gap: 8px;
  padding: calc(9px + env(safe-area-inset-top)) 16px 8px;
}
.pn-top__back {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  color: var(--pn-ink); text-decoration: none;
}
.pn-top__back:hover { background: var(--pn-cream); }
.pn-top__back svg { width: 18px; }
.pn-top__brand { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.pn-top__avatar {
  margin-left: auto; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--pn-line); padding: 0; background: none;
}
.pn-top__avatar img { width: 100%; height: 100%; object-fit: cover; }

.pn-toolbar { padding: 0 16px 10px; display: grid; gap: 8px; }
.pn-search {
  position: relative; display: flex; align-items: center;
}
.pn-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--pn-muted); pointer-events: none; }
.pn-search input {
  width: 100%; background: var(--pn-cream); border: 1px solid transparent; border-radius: 999px;
  padding: 9px 14px 9px 36px; font-size: 0.74rem; color: var(--pn-ink);
  transition: background 0.2s, border-color 0.2s;
}
.pn-search input::placeholder { color: var(--pn-faint); }
.pn-search input:focus { outline: 0; background: #fff; border-color: #dccbbc; box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.06); }
.pn-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pn-chips::-webkit-scrollbar { display: none; }
.pn-chip {
  flex: 0 0 auto; border: 1px solid var(--pn-line); background: #fff; color: var(--pn-ink);
  border-radius: 999px; padding: 6px 13px; font-size: 0.66rem; font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pn-chip:hover { background: var(--pn-cream); }
.pn-chip.is-active { background: var(--pn-ink); color: #fff; border-color: var(--pn-ink); }

.pn-main { max-width: 1220px; margin: 0 auto; padding: 18px 16px 40px; }

/* ================= PROFILE ================= */
.pn-profile { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0 18px; }
.pn-profile__avatar { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--pn-line), 0 8px 24px -12px rgba(60, 40, 30, 0.35); }
.pn-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pn-profile__info { flex: 1; min-width: 0; }
.pn-profile__info h1 { font-family: var(--pn-serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; display: flex; align-items: center; gap: 5px; }
.pn-verified { width: 15px; height: 15px; border-radius: 50%; background: var(--pn-red); color: #fff; font-family: var(--pn-sans); font-size: 0.52rem; font-weight: 700; display: inline-grid; place-items: center; }
.pn-profile__handle { font-size: 0.66rem; color: var(--pn-muted); margin-top: 2px; }
.pn-profile__bio { font-size: 0.72rem; line-height: 1.5; color: #4b4248; margin-top: 5px; max-width: 46ch; }
.pn-profile__stats { font-size: 0.64rem; color: var(--pn-muted); margin-top: 6px; }
.pn-profile__stats strong { color: var(--pn-ink); font-weight: 700; }
.pn-profile__stats span { margin: 0 3px; color: var(--pn-faint); }
.pn-follow {
  flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--pn-ink); color: #fff;
  padding: 8px 15px; font-size: 0.68rem; font-weight: 700; transition: background 0.2s, color 0.2s;
}
.pn-follow:hover { background: #3a3038; }
.pn-follow[aria-pressed="true"] { background: var(--pn-cream); color: var(--pn-ink); }
.pn-follow--sm { padding: 6px 12px; font-size: 0.62rem; align-self: center; }

/* ================= CREATORS ================= */
.pn-creators { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 20px; }
.pn-creator {
  display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--pn-line); border-radius: 14px; padding: 10px 12px;
}
.pn-creator > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--pn-line); }
.pn-creator > div { flex: 1; min-width: 0; }
.pn-creator h2 { font-size: 0.76rem; font-weight: 700; }
.pn-creator a { font-size: 0.62rem; color: var(--pn-red); text-decoration: none; }
.pn-creator p { font-size: 0.58rem; line-height: 1.45; color: var(--pn-muted); margin-top: 2px; }
.pn-creator .pn-creator__bio { color: #8d847b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= BOARD ================= */
.pn-board { padding-top: 4px; }
#profil, #board, #rsvp, #penutup { scroll-margin-top: 148px; }
.pn-board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pn-board__head h2 { font-family: var(--pn-serif); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.pn-board__count { font-size: 0.6rem; color: var(--pn-muted); white-space: nowrap; }

.pn-masonry { column-count: 2; column-gap: 10px; }
.pn-pin {
  display: inline-block; width: 100%; break-inside: avoid; position: relative;
  margin: 0 0 10px; background: #fff; border: 1px solid var(--pn-line);
  border-radius: 14px; overflow: hidden; vertical-align: top;
  box-shadow: 0 2px 0 rgba(33, 25, 34, 0.02);
}
.pn-pin.is-hidden { display: none; }
.pn-pin__frame { position: relative; overflow: hidden; background: var(--pn-cream); }
.pn-pin--square .pn-pin__frame { aspect-ratio: 1; }
.pn-pin--tall .pn-pin__frame { aspect-ratio: 3 / 4; }
.pn-pin--wide .pn-pin__frame { aspect-ratio: 4 / 3; }
.pn-pin--venue .pn-pin__frame { aspect-ratio: 4 / 3; }
.pn-pin__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--pn-ease), filter 0.3s; }
.pn-pin__frame::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 12, 16, 0.32), transparent 45%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.pn-pin:hover .pn-pin__frame > img { transform: scale(1.04); }
.pn-pin:hover .pn-pin__frame::after { opacity: 1; }
.pn-pin__badge {
  position: absolute; left: 8px; top: 8px; z-index: 3; pointer-events: none;
  font-size: 0.46rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94); color: var(--pn-ink);
  padding: 4px 7px; border-radius: 999px; backdrop-filter: blur(4px);
}
.pn-pin__badge--red { background: var(--pn-red); color: #fff; }
.pn-pin__save {
  position: absolute; right: 8px; top: 8px; z-index: 5;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--pn-red); color: #fff; border: 0; border-radius: 999px;
  padding: 6px 10px; font-size: 0.54rem; font-weight: 700; line-height: 1;
  opacity: 1; transform: none; transition: opacity 0.25s, transform 0.25s var(--pn-ease), background 0.2s;
}
.pn-pin__save:hover { background: var(--pn-red-deep); }
.pn-pin__save[aria-pressed="true"] { background: var(--pn-ink); }
.pn-pin__save--static { position: absolute; }
.pn-pin__open {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.pn-pin__open:focus-visible { outline: 2px solid var(--pn-red); outline-offset: -3px; }
.pn-pin__meta { padding: 8px 11px 10px; }
.pn-pin__meta h3 { font-size: 0.74rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.pn-pin__meta p { font-size: 0.58rem; color: var(--pn-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (hover: hover) {
  .pn-pin__save { opacity: 0; transform: translateY(-4px); }
  .pn-pin:hover .pn-pin__save, .pn-pin__save:focus-visible, .pn-pin__save[aria-pressed="true"] { opacity: 1; transform: none; }
}

/* Text pins */
.pn-pin--countdown { background: #fff; }
.pn-count {
  padding: 18px 14px 14px; color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(150deg, var(--pn-red), var(--pn-red-deep));
}
.pn-count .pn-kicker { color: rgba(255, 255, 255, 0.75); }
.pn-count__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.pn-count__grid strong { display: block; font-family: var(--pn-serif); font-size: clamp(1.1rem, 5vw, 1.5rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.pn-count__grid span { display: block; font-size: 0.4rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-top: 3px; }
.pn-count__date { margin-top: 10px; font-size: 0.48rem; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.8); }
.pn-pin--countdown .pn-pin__save, .pn-pin--quote .pn-pin__save, .pn-pin--rsvp .pn-pin__save { background: #fff; color: var(--pn-red); }
.pn-pin--countdown .pn-pin__save[aria-pressed="true"], .pn-pin--quote .pn-pin__save[aria-pressed="true"], .pn-pin--rsvp .pn-pin__save[aria-pressed="true"] { background: var(--pn-ink); color: #fff; }

.pn-pin--quote { background: var(--pn-cream); }
.pn-quote { padding: 20px 14px 12px; position: relative; }
.pn-quote__mark { font-family: var(--pn-serif); font-size: 2.2rem; line-height: 0.6; color: var(--pn-red); display: block; margin-bottom: 4px; }
.pn-quote p { font-family: var(--pn-serif); font-size: 0.86rem; line-height: 1.45; font-style: italic; color: #3b3038; }
.pn-quote__hash { display: block; margin-top: 10px; font-size: 0.48rem; letter-spacing: 0.12em; color: var(--pn-red); font-weight: 700; }

.pn-pin--rsvp { background: #fff; }
.pn-rsvp-pin { padding: 18px 14px 14px; }
.pn-rsvp-pin h3 { font-family: var(--pn-serif); font-size: 1rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 6px; }
.pn-rsvp-pin p { font-size: 0.62rem; line-height: 1.5; color: var(--pn-muted); margin-bottom: 12px; }
.pn-rsvp-pin .pn-btn { font-size: 0.64rem; padding: 8px 12px; width: 100%; }
.pn-pin--rsvp .pn-pin__save { top: 10px; bottom: auto; }

/* Venue */
.pn-map { position: absolute; inset: 0; }
.pn-map svg { width: 100%; height: 100%; display: block; }
.pn-pin__actions { display: flex; gap: 6px; padding: 0 11px 11px; flex-wrap: wrap; }
.pn-pin__actions a, .pn-pin__actions button {
  border: 1px solid var(--pn-line); background: #fff; color: var(--pn-ink);
  border-radius: 999px; padding: 5px 10px; font-size: 0.56rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.pn-pin__actions a { background: var(--pn-red); border-color: var(--pn-red); color: #fff; }
.pn-pin__actions a:hover { background: var(--pn-red-deep); }
.pn-pin__actions button:hover { background: var(--pn-cream); }

.pn-empty { text-align: center; font-size: 0.72rem; color: var(--pn-muted); padding: 36px 16px; }

/* ================= RSVP ================= */
.pn-rsvp { max-width: 720px; margin: 30px auto 0; padding: 0 0 10px; }
.pn-rsvp__card {
  background: #fff; border: 1px solid var(--pn-line); border-radius: 20px;
  padding: 22px 18px 24px; box-shadow: 0 30px 70px -50px rgba(60, 40, 30, 0.5);
  position: relative; overflow: hidden;
}
.pn-rsvp__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pn-red); }
.pn-rsvp__head h2 { font-family: var(--pn-serif); font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 8px; }
.pn-rsvp__head h2 em { color: var(--pn-red); font-style: italic; }
.pn-rsvp__head > p:last-child { font-size: 0.72rem; line-height: 1.6; color: var(--pn-muted); margin-bottom: 16px; }
.pn-form { display: grid; gap: 11px; }
.pn-form label, .pn-choice legend { font-size: 0.54rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-muted); margin-bottom: 4px; display: block; }
.pn-form input, .pn-form select, .pn-form textarea {
  width: 100%; background: var(--pn-bg); border: 1px solid var(--pn-line); border-radius: 10px;
  padding: 10px 12px; font-size: 0.78rem; color: var(--pn-ink);
  transition: border-color 0.2s, background 0.2s;
}
.pn-form input:focus, .pn-form select:focus, .pn-form textarea:focus { outline: 0; border-color: var(--pn-red); background: #fff; box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.07); }
.pn-form textarea { resize: vertical; min-height: 74px; }
.pn-form__row { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 8px; }
.pn-choice { border: 0; padding: 0; margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 5px; }
.pn-choice legend { width: 100%; }
.pn-choice label { position: relative; margin: 0; }
.pn-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pn-choice span {
  display: inline-block; border: 1px solid var(--pn-line); border-radius: 999px;
  padding: 6px 13px; font-size: 0.66rem; font-weight: 600; color: var(--pn-ink); background: #fff;
  transition: all 0.2s; text-transform: none; letter-spacing: 0;
}
.pn-choice input:checked + span { background: var(--pn-red); border-color: var(--pn-red); color: #fff; }
.pn-choice input:focus-visible + span { outline: 2px solid var(--pn-red); outline-offset: 2px; }
.pn-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; border-radius: 999px; background: var(--pn-red); color: #fff;
  padding: 12px 18px; font-size: 0.76rem; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.pn-submit:hover { background: var(--pn-red-deep); transform: translateY(-1px); }
.pn-submit svg { width: 17px; }
.pn-form__done { font-size: 0.66rem; color: #1a7f45; line-height: 1.5; }

/* ================= CLOSING ================= */
.pn-closing {
  margin-top: 40px; padding: 56px 20px 44px; text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(230, 0, 35, 0.06), transparent 70%),
    var(--pn-cream);
  border-radius: 22px;
}
.pn-closing__inner { max-width: 620px; margin: 0 auto; }
.pn-closing__heart { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pn-red); color: #fff; font-size: 1rem; margin-bottom: 14px; }
.pn-closing h2 { font-family: var(--pn-serif); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 16px; }
.pn-closing h2 em { color: var(--pn-red); font-style: italic; }
.pn-closing blockquote { font-family: var(--pn-serif); font-style: italic; font-size: 0.9rem; line-height: 1.7; color: #4b3f45; max-width: 42ch; margin: 0 auto 14px; }
.pn-closing__inner > p { font-size: 0.7rem; line-height: 1.65; color: var(--pn-muted); max-width: 44ch; margin: 0 auto 12px; }
.pn-closing__thanks { font-size: 0.64rem !important; color: var(--pn-faint) !important; }
.pn-closing__hash { font-size: 0.66rem !important; letter-spacing: 0.16em; color: var(--pn-red) !important; margin: 16px auto 20px !important; font-weight: 700; }
.pn-credit { font-size: 0.52rem !important; color: var(--pn-faint) !important; margin-top: 24px !important; }

/* ================= MODAL ================= */
.pn-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.pn-modal[hidden] { display: none; }
.pn-modal__backdrop { position: absolute; inset: 0; background: rgba(33, 25, 34, 0.55); backdrop-filter: blur(5px); }
.pn-modal__card {
  position: relative; z-index: 2; width: min(860px, 100%); max-height: 90svh; overflow-y: auto;
  background: #fff; border-radius: 20px; display: flex; flex-direction: column;
  box-shadow: 0 50px 120px -40px rgba(20, 10, 15, 0.6); outline: none;
  animation: pnModalIn 0.35s var(--pn-ease);
}
@keyframes pnModalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.pn-modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 4; width: 34px; height: 34px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--pn-ink);
  font-size: 1.3rem; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.pn-modal__media { background: var(--pn-cream); max-height: 42svh; overflow: hidden; }
.pn-modal__media img { width: 100%; height: 100%; max-height: 42svh; object-fit: cover; }
.pn-modal__body { padding: 20px 20px 22px; }
.pn-modal__source { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-red); margin-bottom: 6px; }
.pn-modal__body h2 { font-family: var(--pn-serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 10px; }
.pn-modal__caption { font-size: 0.78rem; line-height: 1.65; color: #4b4248; margin-bottom: 16px; }
.pn-modal__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-modal__note { font-size: 0.56rem; color: var(--pn-faint); margin-top: 14px; }

.pn-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 500;
  transform: translate(-50%, 10px); background: var(--pn-ink); color: #fff;
  font-size: 0.7rem; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  opacity: 0; transition: opacity 0.25s, transform 0.25s var(--pn-ease);
  max-width: calc(100vw - 40px); text-align: center;
}
.pn-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ================= RESPONSIVE ================= */
@media (min-width: 620px) {
  .pn-top { padding-left: 24px; padding-right: 24px; }
  .pn-toolbar { padding-left: 24px; padding-right: 24px; grid-template-columns: minmax(240px, 340px) 1fr; align-items: center; }
  .pn-chips { justify-content: flex-start; }
  .pn-main { padding-left: 24px; padding-right: 24px; }
  .pn-creators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-masonry { column-count: 3; column-gap: 14px; }
  .pn-pin { margin-bottom: 14px; }
  .pn-pin__meta { padding: 9px 12px 12px; }
  .pn-pin__meta h3 { font-size: 0.8rem; }
  .pn-pin__meta p { font-size: 0.62rem; }
  .pn-profile { gap: 18px; }
  .pn-profile__avatar { width: 88px; height: 88px; }
  .pn-profile__info h1 { font-size: 1.7rem; }
  .pn-rsvp__card { padding: 28px 28px 30px; }
  .pn-closing { padding: 70px 30px 54px; }
  .pn-modal__card { flex-direction: row; }
  .pn-modal__media { width: 52%; max-height: 78svh; }
  .pn-modal__media img { max-height: 78svh; height: 100%; }
  .pn-modal__body { width: 48%; padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
  .pn-modal__body h2 { font-size: 2rem; }
  .pn-modal__caption { font-size: 0.82rem; }
  .pn-collage { width: min(390px, 70vw); height: 300px; }
}

@media (min-width: 1000px) {
  .pn-masonry { column-count: 4; column-gap: 18px; }
  .pn-pin { margin-bottom: 18px; }
  .pn-main { padding-top: 26px; }
  #profil, #board, #rsvp, #penutup { scroll-margin-top: 112px; }
  .pn-profile { padding-bottom: 22px; }
  .pn-board__head { margin-bottom: 18px; }
  .pn-pin__save { padding: 7px 11px; font-size: 0.56rem; }
}

@media (max-width: 374px) {
  .pn-profile { flex-wrap: wrap; }
  .pn-profile__info { flex-basis: calc(100% - 90px); }
  .pn-follow { margin-left: 88px; }
  .pn-form__row { grid-template-columns: 1fr; }
  .pn-collage { height: 170px; }
  .pn-gate__title { font-size: 2.3rem; }
  .pn-count__grid strong { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pn-pin__frame > img, .pn-modal__card, .pn-toast { transition: none !important; animation: none !important; }
  .pn-polaroid { transform: none; }
  .pn-polaroid--1 { transform: rotate(-4deg); }
  .pn-polaroid--2 { transform: rotate(2deg); }
  .pn-polaroid--3 { transform: rotate(4deg); }
}
