/* ══ Frosted Glass — aurora ungu-biru-pink · panel es kaca ══
   Prefix: gl- · Fonts: Sora (display) · Outfit (body) */

:root {
  --gl-deep: #1B1440;
  --gl-deep-2: #241C4E;
  --gl-ink: #F6F5FF;
  --gl-violet: #7B5CFF;
  --gl-blue: #4DA6FF;
  --gl-pink: #FF9BD2;
  --gl-body: #C9C4E8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--gl-deep);
  color: var(--gl-body);
  -webkit-font-smoothing: antialiased;
}
body:not(.is-open) { overflow: hidden; }

/* ── aurora orbs (fixed, behind everything) ── */
.gl-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.gl-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8; }
.gl-orbs i:nth-child(1) {
  width: 34vmax; height: 34vmax; top: -10%; left: -14%;
  background: radial-gradient(circle, rgba(123,92,255,.9), rgba(123,92,255,.28) 46%, transparent 70%);
  animation: gl-drift1 26s ease-in-out infinite alternate;
}
.gl-orbs i:nth-child(2) {
  width: 30vmax; height: 30vmax; top: 26%; right: -16%;
  background: radial-gradient(circle, rgba(77,166,255,.85), rgba(77,166,255,.26) 46%, transparent 70%);
  animation: gl-drift2 31s ease-in-out infinite alternate;
}
.gl-orbs i:nth-child(3) {
  width: 32vmax; height: 32vmax; bottom: -12%; left: 6%;
  background: radial-gradient(circle, rgba(255,155,210,.8), rgba(255,155,210,.24) 46%, transparent 70%);
  animation: gl-drift3 23s ease-in-out infinite alternate;
}
@keyframes gl-drift1 { to { transform: translate(14vw, 22vh) scale(1.15); } }
@keyframes gl-drift2 { to { transform: translate(-16vw, -14vh) scale(1.22); } }
@keyframes gl-drift3 { to { transform: translate(10vw, -20vh) scale(.92); } }

/* ── page frame ── */
.gl-page {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(27,20,64,.42), rgba(27,20,64,.66));
  box-shadow: 0 0 80px rgba(0,0,0,.4); overflow-x: clip;
}

/* ── glass panel recipe ── */
.gl-glass {
  background: linear-gradient(150deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 22px;
  box-shadow: 0 18px 44px -18px rgba(11,7,36,.6), inset 0 1px 0 rgba(255,255,255,.35);
}

/* ── cover: defrost ── */
.gl-cover {
  position: fixed; inset: 0; z-index: 100;
  max-width: 480px; margin: 0 auto;
  background: rgba(27,20,64,.38);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .9s ease, backdrop-filter .9s ease, visibility 0s .95s;
}
body.is-open .gl-cover {
  opacity: 0; pointer-events: none; visibility: hidden;
  backdrop-filter: blur(40px) brightness(1.15);
}
.gl-cover-inner {
  text-align: center; color: var(--gl-ink);
  padding: 44px 30px;
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.35); border-radius: 28px;
  box-shadow: 0 24px 60px -20px rgba(11,7,36,.65), inset 0 1px 0 rgba(255,255,255,.4);
  margin: 20px;
  transition: transform .9s ease, opacity .7s ease;
}
body.is-open .gl-cover-inner { transform: scale(1.06); opacity: 0; }

.gl-cover-kicker { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gl-pink); margin-bottom: 22px; }
.gl-rings { position: relative; width: 92px; height: 92px; margin: 0 auto 20px; }
.gl-rings i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.4px solid rgba(255,255,255,.55);
}
.gl-rings i:nth-child(1) { border-width: 1.8px; border-color: rgba(255,255,255,.75); box-shadow: 0 0 18px rgba(255,255,255,.22), inset 0 0 18px rgba(255,255,255,.14); }
.gl-rings i:nth-child(2), .gl-rings i:nth-child(3) { animation: gl-ripple 3.2s ease-out infinite; }
.gl-rings i:nth-child(2) { animation-delay: 1.06s; }
.gl-rings i:nth-child(3) { animation-delay: 2.12s; }
.gl-rings::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: linear-gradient(140deg, var(--gl-pink), var(--gl-violet));
  box-shadow: 0 0 22px rgba(255,155,210,.75);
}
@keyframes gl-ripple {
  0% { transform: scale(.45); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
.gl-rings-lg { width: 76px; height: 76px; margin: 0 auto 18px; }
.gl-cover-names {
  font-family: "Sora", sans-serif; font-weight: 700;
  font-size: 44px; line-height: 1.1; letter-spacing: -.01em;
}
.gl-cover-names span { display: block; font-size: 19px; font-weight: 400; color: var(--gl-body); margin: 6px 0; }
.gl-cover-date { font-size: 14px; letter-spacing: .12em; color: #D8D4F4; margin-top: 8px; }
.gl-cover-guest { margin: 28px 0 26px; font-size: 14px; color: var(--gl-body); }
.gl-guest-name { font-family: "Sora", sans-serif; font-size: 20px; font-weight: 600; color: var(--gl-ink); margin: 6px 0 4px; }
.gl-guest-note { font-size: 11px; color: #b3add8; }
.gl-open-btn {
  font-family: "Sora", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .06em;
  color: #241233; background: linear-gradient(180deg, #FFC7E4, var(--gl-pink));
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 15px 40px; cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(255,155,210,.55), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gl-open-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(255,155,210,.7), inset 0 1px 0 rgba(255,255,255,.7); }

/* ── hero ── */
.gl-hero { text-align: center; padding: 58px 26px 30px; }
.gl-hero-intro { font-size: 13.5px; line-height: 1.7; color: var(--gl-body); max-width: 34ch; margin: 0 auto 18px; }
.gl-hero-names {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 48px; line-height: 1.08; letter-spacing: -.01em;
  color: var(--gl-ink);
}
.gl-hero-names em { display: block; font-size: 20px; font-style: normal; font-weight: 400; color: var(--gl-pink); margin: 8px 0; }
.gl-hero-date { margin-top: 12px; font-size: 14px; letter-spacing: .14em; color: #D8D4F4; }

.gl-cd {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 32px auto 48px; max-width: 350px;
}
.gl-cd-cell {
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.3); border-radius: 16px;
  padding: 13px 4px 10px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
}
.gl-cd-cell b {
  display: block; font-family: "Sora", sans-serif; font-weight: 700; font-size: 23px;
  color: var(--gl-ink); font-variant-numeric: tabular-nums;
}
.gl-cd-cell span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #bcb7e2; }

/* ── sections ── */
.gl-section { padding: 46px 26px; }
.gl-sec-head { text-align: center; margin-bottom: 30px; }
.gl-sec-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gl-pink); margin-bottom: 8px; }
.gl-sec-title { font-family: "Sora", sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.01em; color: var(--gl-ink); }

/* ── couple ── */
.gl-couple-card { text-align: center; padding: 30px 22px 26px; }
.gl-orb-portrait {
  width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), transparent 42%),
    linear-gradient(140deg, var(--gl-violet), var(--gl-blue));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 12px 28px -10px rgba(123,92,255,.65), inset 0 1px 0 rgba(255,255,255,.55);
}
.gl-orb-portrait-2 {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), transparent 42%),
    linear-gradient(140deg, var(--gl-pink), var(--gl-violet));
  box-shadow: 0 12px 28px -10px rgba(255,155,210,.6), inset 0 1px 0 rgba(255,255,255,.55);
}
.gl-orb-portrait span { font-family: "Sora", sans-serif; font-weight: 700; font-size: 21px; color: #fff; letter-spacing: .03em; }
.gl-couple-name { font-family: "Sora", sans-serif; font-weight: 600; font-size: 22px; color: var(--gl-ink); }
.gl-couple-parents { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--gl-body); }
.gl-couple-ig { margin-top: 8px; font-size: 12.5px; color: var(--gl-pink); letter-spacing: .04em; }
.gl-couple-amp { text-align: center; font-family: "Sora", sans-serif; font-size: 26px; font-weight: 600; color: var(--gl-pink); margin: 14px 0; }

/* ── events ── */
.gl-event { text-align: center; padding: 26px 22px 24px; margin-bottom: 16px; }
.gl-event-title { font-family: "Sora", sans-serif; font-weight: 600; font-size: 21px; color: var(--gl-ink); }
.gl-event-time { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--gl-pink); }
.gl-event-date { font-size: 13px; color: #bcb7e2; margin-top: 2px; }
.gl-event-venue { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--gl-ink); }
.gl-event-addr { font-size: 13px; color: var(--gl-body); line-height: 1.55; margin-top: 3px; }
.gl-cal { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.gl-cal a {
  font-size: 12px; font-weight: 600; text-decoration: none;
  color: var(--gl-ink); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.4);
  padding: 7px 13px; border-radius: 999px; transition: background .2s ease;
}
.gl-cal a:hover { background: rgba(255,255,255,.24); }

.gl-maps { margin-top: 8px; }
.gl-map-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  border-radius: 14px 14px 0 0; backdrop-filter: blur(12px);
}
.gl-map-tab {
  appearance: none; border: none; background: transparent; cursor: pointer;
  padding: 10px 0; border-radius: 10px;
  font-family: "Outfit", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; color: var(--gl-body);
  transition: background .2s ease, color .2s ease;
}
.gl-map-tab.is-active { background: rgba(255,255,255,.85); color: #241233; }
.gl-map { display: block; width: 100%; height: 230px; border: 1px solid rgba(255,255,255,.3); border-top: none; border-radius: 0 0 14px 14px; }

/* ── story ── */
.gl-story { list-style: none; position: relative; padding-left: 26px; }
.gl-story::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gl-violet), var(--gl-pink));
}
.gl-story-item { position: relative; padding: 0 0 30px 16px; }
.gl-story-item:last-child { padding-bottom: 0; }
.gl-story-item::before {
  content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, var(--gl-pink));
  box-shadow: 0 0 14px rgba(255,155,210,.8);
}
.gl-story-year { font-family: "Sora", sans-serif; font-size: 14px; font-weight: 600; color: var(--gl-pink); letter-spacing: .08em; }
.gl-story-title { font-family: "Sora", sans-serif; font-weight: 600; font-size: 19px; color: var(--gl-ink); margin: 4px 0 6px; }
.gl-story-text { font-size: 14px; line-height: 1.7; color: var(--gl-body); }

/* ── gallery ── */
.gl-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-g-item {
  border-radius: 18px; overflow: hidden; cursor: zoom-in;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 14px 34px -16px rgba(11,7,36,.7), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .25s ease, box-shadow .25s ease;
 aspect-ratio: 4/3; overflow: hidden; }
.gl-g-item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(255,155,210,.5); }
.gl-g-item svg { display: block; width: 100%; height: auto; }
.gl-g-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gl-g-item { color: #7B5CFF; }

/* ── forms ── */
.gl-form { padding: 24px 22px; display: grid; gap: 18px; }
.gl-field { display: grid; gap: 7px; border: none; }
.gl-field span, .gl-field legend { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gl-pink); }
.gl-field input, .gl-field select, .gl-field textarea {
  font-family: "Outfit", sans-serif; font-size: 15px; color: var(--gl-ink);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.32); border-radius: 12px;
  padding: 12px 14px; outline: none; width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.gl-field input::placeholder, .gl-field textarea::placeholder { color: #8d87b6; }
.gl-field select { appearance: none; }
.gl-field select option { background: var(--gl-deep-2); color: var(--gl-ink); }
.gl-field input:focus, .gl-field select:focus, .gl-field textarea:focus {
  border-color: rgba(255,155,210,.8); background: rgba(255,255,255,.15);
}
.gl-field textarea { resize: vertical; }
.gl-radios { display: block; }
.gl-radios label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gl-body); padding: 6px 0; text-transform: none; letter-spacing: 0; }
.gl-radios input { accent-color: var(--gl-pink); width: 17px; height: 17px; }
.gl-submit {
  justify-self: center; appearance: none; border: 1px solid rgba(255,255,255,.5); cursor: pointer;
  font-family: "Sora", sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #241233; background: linear-gradient(180deg, #FFC7E4, var(--gl-pink));
  padding: 14px 36px; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(255,155,210,.6), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gl-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255,155,210,.75); }
.gl-thanks {
  text-align: center; font-family: "Sora", sans-serif; font-size: 17px; font-weight: 600;
  color: var(--gl-pink); padding: 26px 10px;
}

/* ── wishes ── */
.gl-wish-form { margin-bottom: 30px; }
.gl-wishes { display: grid; gap: 12px; margin-bottom: 18px; }
[data-wishes-list] .wish {
  background: linear-gradient(150deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.28); border-left: 3px solid var(--gl-pink);
  border-radius: 0 14px 14px 0; padding: 15px 17px 13px;
}
[data-wishes-list] .wish h4 { font-family: "Sora", sans-serif; font-weight: 600; font-size: 16px; color: var(--gl-ink); }
[data-wishes-list] .wish p { font-size: 13.5px; line-height: 1.6; color: var(--gl-body); margin-top: 4px; }
[data-wishes-list] .wish time { display: block; font-size: 11px; color: #bcb7e2; margin-top: 7px; letter-spacing: .04em; }
.gl-more {
  display: block; margin: 0 auto; appearance: none; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); color: var(--gl-ink);
  font-family: "Outfit", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 10px 22px; border-radius: 999px;
  backdrop-filter: blur(10px); transition: background .2s ease;
}
.gl-more:hover { background: rgba(255,255,255,.24); }

/* ── amplop ── */
.gl-amplop-note { text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--gl-body); max-width: 38ch; margin: 0 auto 24px; }
.gl-env { text-align: center; color: var(--gl-ink); padding: 24px 20px 20px; margin-bottom: 14px; }
.gl-env-bank { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gl-pink); }
.gl-env-num { font-family: "Sora", sans-serif; font-weight: 600; font-size: 23px; letter-spacing: .06em; margin-top: 8px; }
.gl-env-holder { font-size: 12.5px; color: var(--gl-body); margin-top: 4px; }
.gl-copy {
  margin-top: 14px; appearance: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: var(--gl-ink);
  border: 1px solid rgba(255,255,255,.45);
  font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  padding: 8px 18px; border-radius: 999px; transition: background .2s ease;
}
.gl-copy:hover { background: rgba(255,255,255,.3); }

/* ── closing ── */
.gl-closing { text-align: center; color: var(--gl-ink); padding: 56px 28px 40px; }
.gl-closing-text { font-size: 13.5px; line-height: 1.75; color: var(--gl-body); max-width: 36ch; margin: 0 auto 24px; }
.gl-closing-names { font-family: "Sora", sans-serif; font-weight: 700; font-size: 36px; letter-spacing: -.01em; }
.gl-closing-fam { margin-top: 14px; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gl-pink); }

/* ── music toggle ── */
.gl-music {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: var(--gl-ink);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 26px -10px rgba(11,7,36,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.gl-music svg { width: 21px; height: 21px; }
.gl-music.is-playing { animation: gl-pulse 2.4s ease infinite; }
@keyframes gl-pulse {
  0%, 100% { box-shadow: 0 10px 26px -10px rgba(11,7,36,.7), 0 0 0 0 rgba(255,155,210,.55); }
  55% { box-shadow: 0 10px 26px -10px rgba(11,7,36,.7), 0 0 0 12px rgba(255,155,210,0); }
}

/* ── reveal (behavior-critical) ── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── lightbox (theme flavor) ── */
.lb-overlay { font-family: "Outfit", sans-serif; }
.map-open { color: var(--gl-violet); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* cover-open end-states so content remains reachable */
  body.is-open [data-cover] { opacity: 0 !important; visibility: hidden !important; }
}
