/* ══ Neon Nights — hitam pekat · magenta neon · cyan volt ══
   Prefix: ne- · Fonts: Monoton (display) · Space Grotesk (body) */

:root {
  --ne-black: #0B0B14;
  --ne-panel: #12121F;
  --ne-panel-2: #171729;
  --ne-line: #1D1D33;
  --ne-ink: #F2F2FA;
  --ne-mag: #FF3DCC;
  --ne-cyan: #22D3EE;
  --ne-body: #9C9CB8;
}

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

/* ── page frame ── */
.ne-page {
  max-width: 480px; margin: 0 auto; background: var(--ne-black);
  box-shadow: 0 0 60px rgba(34,211,238,.12), 0 0 90px rgba(255,61,204,.08);
  position: relative; overflow-x: clip;
}

/* ── cover: CRT power-off ── */
.ne-cover {
  position: fixed; inset: 0; z-index: 100;
  max-width: 480px; margin: 0 auto;
  background: var(--ne-black);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: visibility 0s 1s;
}
.ne-scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
}
.ne-grid-bg {
  position: absolute; inset: -40%; pointer-events: none;
  background-image:
    linear-gradient(rgba(34,211,238,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(300px) rotateX(38deg);
  animation: ne-scroll 7s linear infinite;
}
@keyframes ne-scroll { to { background-position-y: 44px; } }
.ne-cover-inner {
  position: relative; z-index: 3; text-align: center; color: var(--ne-ink);
  padding: 32px 26px; transition: opacity .4s ease;
}
body.is-open .ne-cover {
  visibility: hidden; pointer-events: none;
  animation: ne-off .9s cubic-bezier(.6,0,.4,1) forwards;
}
body.is-open .ne-cover-inner { opacity: 0; }
@keyframes ne-off {
  0% { transform: scaleY(1); filter: brightness(1); opacity: 1; }
  55% { transform: scaleY(1.01); filter: brightness(1.6); opacity: 1; }
  100% { transform: scaleY(.004); filter: brightness(3); opacity: 0; }
}

.ne-cover-tag {
  font-family: "Space Grotesk", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .22em; color: var(--ne-cyan); margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(34,211,238,.8);
}
.ne-cover-sub { font-size: 10.5px; letter-spacing: .3em; color: #565678; margin-bottom: 20px; }
.ne-sign {
  font-family: "Monoton", cursive; font-weight: 400;
  font-size: 40px; line-height: 1.18; letter-spacing: .04em;
  color: #ffe9fb;
  text-shadow:
    0 0 6px rgba(255,233,251,.9), 0 0 18px rgba(255,61,204,.85),
    0 0 42px rgba(255,61,204,.6), 0 0 80px rgba(255,61,204,.4);
  animation: ne-flicker 3.8s linear infinite;
}
.ne-sign .ne-x {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px;
  color: var(--ne-cyan); text-shadow: 0 0 8px rgba(34,211,238,.9), 0 0 26px rgba(34,211,238,.6);
  display: inline-block; margin: 4px 0;
}
@keyframes ne-flicker {
  0%, 6.5%, 8%, 100% { opacity: 1; }
  7% { opacity: .58; }
  41% { opacity: 1; }
  42% { opacity: .72; }
  43% { opacity: 1; }
  78% { opacity: 1; }
  79% { opacity: .4; }
  80% { opacity: 1; }
}
.ne-cover-date {
  margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: .18em;
  color: #cfcfe8; text-transform: uppercase;
}
.ne-cover-guest { margin: 28px 0 26px; font-size: 12.5px; letter-spacing: .14em; color: var(--ne-body); }
.ne-guest-name {
  font-size: 19px; font-weight: 700; color: var(--ne-ink); letter-spacing: .04em;
  margin: 8px 0 6px; text-shadow: 0 0 14px rgba(34,211,238,.55);
}
.ne-guest-note { font-size: 11px; color: #565678; letter-spacing: 0; }
.ne-open-btn {
  font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ne-cyan); background: rgba(34,211,238,.06);
  border: 1.6px solid var(--ne-cyan); border-radius: 999px; padding: 14px 36px; cursor: pointer;
  box-shadow: 0 0 18px rgba(34,211,238,.35), inset 0 0 14px rgba(34,211,238,.12);
  text-shadow: 0 0 10px rgba(34,211,238,.8);
  transition: all .25s ease;
}
.ne-open-btn:hover {
  background: var(--ne-cyan); color: var(--ne-black); text-shadow: none;
  box-shadow: 0 0 30px rgba(34,211,238,.7);
}
.ne-cover-hint { margin-top: 16px; font-size: 10.5px; letter-spacing: .2em; color: #565678; }

/* ── hero ── */
.ne-hero { position: relative; text-align: center; padding: 54px 26px 46px; }
.ne-hero-boot {
  font-family: "Space Grotesk", monospace; font-size: 10.5px; letter-spacing: .18em;
  color: #565678; margin-bottom: 22px;
}
.ne-hero-intro { font-size: 13.5px; line-height: 1.7; color: var(--ne-body); max-width: 34ch; margin: 0 auto 18px; }
.ne-hero-names {
  font-family: "Monoton", cursive; font-weight: 400; font-size: 42px; line-height: 1.2;
  color: #ffe9fb;
  text-shadow: 0 0 6px rgba(255,233,251,.85), 0 0 20px rgba(255,61,204,.8), 0 0 46px rgba(255,61,204,.5);
}
.ne-hero-names em {
  display: block; font-family: "Space Grotesk", sans-serif; font-style: normal; font-weight: 700;
  font-size: 18px; color: var(--ne-cyan); text-shadow: 0 0 10px rgba(34,211,238,.8); margin: 8px 0;
}
.ne-hero-date { margin-top: 12px; font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #cfcfe8; }

.ne-cd {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 32px auto 36px; max-width: 350px;
}
.ne-cd-cell {
  background: var(--ne-panel); border: 1px solid var(--ne-line); border-bottom: 2px solid var(--ne-mag);
  border-radius: 10px; padding: 13px 4px 10px; text-align: center;
  box-shadow: 0 0 16px rgba(255,61,204,.14), inset 0 0 18px rgba(255,61,204,.05);
}
.ne-cd-cell b {
  display: block; font-family: "Space Grotesk", monospace; font-weight: 700; font-size: 24px;
  color: var(--ne-ink); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(34,211,238,.7);
}
.ne-cd-cell span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #565678; }
.ne-hero-line { display: flex; gap: 7px; justify-content: center; }
.ne-hero-line i { width: 34px; height: 3px; border-radius: 3px; background: var(--ne-line); }
.ne-hero-line i:nth-child(2) { background: var(--ne-mag); box-shadow: 0 0 10px rgba(255,61,204,.8); }
.ne-hero-line i:nth-child(4) { background: var(--ne-cyan); box-shadow: 0 0 10px rgba(34,211,238,.8); }

/* ── sections ── */
.ne-section { padding: 50px 26px; position: relative; }
.ne-sec-head { text-align: center; margin-bottom: 30px; }
.ne-sec-kicker {
  font-family: "Space Grotesk", monospace; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ne-cyan); margin-bottom: 8px; text-shadow: 0 0 10px rgba(34,211,238,.7);
}
.ne-sec-kicker::before { content: "< "; color: #565678; text-shadow: none; }
.ne-sec-kicker::after { content: " />"; color: #565678; text-shadow: none; }
.ne-sec-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px; color: var(--ne-ink);
  text-shadow: 0 0 16px rgba(255,61,204,.4);
}

/* ── cards ── */
.ne-card {
  background: var(--ne-panel); border: 1px solid var(--ne-line); border-radius: 14px;
}
.ne-couple-card { text-align: center; padding: 28px 22px 24px; position: relative; }
.ne-couple-card::before {
  content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ne-mag), transparent);
  box-shadow: 0 0 12px rgba(255,61,204,.8);
}
.ne-avatar {
  width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--ne-panel-2); color: var(--ne-mag);
  border: 1.6px solid var(--ne-mag); outline: 1px solid rgba(255,61,204,.3); outline-offset: 4px;
  font-family: "Space Grotesk", monospace; font-size: 22px; font-weight: 700;
  text-shadow: 0 0 12px rgba(255,61,204,.9); box-shadow: 0 0 18px rgba(255,61,204,.25);
}
.ne-avatar-2 { color: var(--ne-cyan); border-color: var(--ne-cyan); outline-color: rgba(34,211,238,.3); text-shadow: 0 0 12px rgba(34,211,238,.9); box-shadow: 0 0 18px rgba(34,211,238,.25); }
.ne-couple-name { font-size: 21px; font-weight: 700; color: var(--ne-ink); }
.ne-couple-parents { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--ne-body); }
.ne-couple-ig { margin-top: 8px; font-size: 12.5px; color: var(--ne-cyan); letter-spacing: .06em; }
.ne-couple-amp {
  text-align: center; font-size: 24px; font-weight: 700; color: #565678; margin: 12px 0;
  text-shadow: 0 0 8px rgba(34,211,238,.5);
}

/* ── events ── */
.ne-event { text-align: center; padding: 26px 22px 24px; margin-bottom: 16px; }
.ne-event-title { font-size: 19px; font-weight: 700; color: var(--ne-ink); letter-spacing: .02em; }
.ne-event-time { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ne-mag); letter-spacing: .08em; }
.ne-event-date { font-size: 13px; color: #565678; margin-top: 2px; }
.ne-event-venue { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--ne-ink); }
.ne-event-addr { font-size: 13px; color: var(--ne-body); line-height: 1.55; margin-top: 3px; }
.ne-cal { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ne-cal a {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none;
  color: var(--ne-cyan); border: 1px solid rgba(34,211,238,.55);
  padding: 7px 13px; border-radius: 8px; transition: all .2s ease;
}
.ne-cal a:hover { background: var(--ne-cyan); color: var(--ne-black); box-shadow: 0 0 18px rgba(34,211,238,.6); }

.ne-maps { margin-top: 8px; }
.ne-map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ne-line); border-radius: 12px 12px 0 0; overflow: hidden; }
.ne-map-tab {
  appearance: none; border: none; background: var(--ne-panel); cursor: pointer;
  padding: 11px 0; font-family: "Space Grotesk", sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; color: var(--ne-body);
}
.ne-map-tab.is-active { background: var(--ne-cyan); color: var(--ne-black); text-shadow: none; }
.ne-map { display: block; width: 100%; height: 230px; border: 1px solid var(--ne-line); border-top: none; border-radius: 0 0 12px 12px; }

/* ── story ── */
.ne-story { list-style: none; position: relative; padding-left: 26px; }
.ne-story::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--ne-mag), var(--ne-cyan));
  box-shadow: 0 0 8px rgba(255,61,204,.5);
}
.ne-story-item { position: relative; padding: 0 0 30px 16px; }
.ne-story-item:last-child { padding-bottom: 0; }
.ne-story-item::before {
  content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px;
  background: var(--ne-black); border: 2px solid var(--ne-cyan); border-radius: 3px;
  box-shadow: 0 0 10px rgba(34,211,238,.7);
}
.ne-story-year { font-family: "Space Grotesk", monospace; font-size: 13.5px; font-weight: 700; color: var(--ne-mag); letter-spacing: .14em; }
.ne-story-title { font-size: 18px; font-weight: 700; color: var(--ne-ink); margin: 4px 0 6px; }
.ne-story-text { font-size: 14px; line-height: 1.7; color: var(--ne-body); }

/* ── gallery ── */
.ne-gallery-sec { background: var(--ne-panel); }
.ne-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ne-g-item {
  border-radius: 12px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--ne-line); transition: transform .25s ease, box-shadow .25s ease;
 aspect-ratio: 4/3; overflow: hidden; }
.ne-g-item:hover { transform: translateY(-3px); box-shadow: 0 0 22px rgba(34,211,238,.3); }
.ne-g-item svg { display: block; width: 100%; height: auto; }
.ne-g-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ne-g-item { color: #22D3EE; }

/* ── forms ── */
.ne-form { display: grid; gap: 18px; }
.ne-field { display: grid; gap: 7px; border: none; }
.ne-field span, .ne-field legend {
  font-family: "Space Grotesk", monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ne-cyan);
}
.ne-field input, .ne-field select, .ne-field textarea {
  font-family: "Space Grotesk", monospace; font-size: 15px; color: var(--ne-ink);
  background: var(--ne-panel); border: 1px solid var(--ne-line); border-radius: 10px; padding: 12px 14px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.ne-field input::placeholder, .ne-field textarea::placeholder { color: #565678; }
.ne-field select { appearance: none; }
.ne-field select option { background: var(--ne-panel-2); color: var(--ne-ink); }
.ne-field input:focus, .ne-field select:focus, .ne-field textarea:focus {
  border-color: var(--ne-mag); box-shadow: 0 0 0 3px rgba(255,61,204,.16), 0 0 16px rgba(255,61,204,.2);
}
.ne-field textarea { resize: vertical; }
.ne-radios { display: block; }
.ne-radios label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ne-body); padding: 6px 0; text-transform: none; letter-spacing: 0; font-family: "Space Grotesk", sans-serif; }
.ne-radios input { accent-color: var(--ne-mag); width: 17px; height: 17px; }
.ne-submit {
  justify-self: center; appearance: none; cursor: pointer;
  font-family: "Space Grotesk", monospace; font-size: 13.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ne-black); background: var(--ne-cyan);
  border: none; padding: 14px 38px; border-radius: 10px;
  box-shadow: 0 0 22px rgba(34,211,238,.45); transition: transform .2s ease, box-shadow .2s ease;
}
.ne-submit:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(34,211,238,.65); }
.ne-thanks {
  text-align: center; font-size: 16px; font-weight: 700; color: var(--ne-cyan);
  padding: 26px 10px; text-shadow: 0 0 12px rgba(34,211,238,.7);
}

/* ── wishes ── */
.ne-wish-form { margin-bottom: 30px; }
.ne-wishes { display: grid; gap: 12px; margin-bottom: 18px; }
[data-wishes-list] .wish {
  background: var(--ne-panel); border: 1px solid var(--ne-line); border-left: 3px solid var(--ne-cyan);
  border-radius: 0 10px 10px 0; padding: 15px 17px 13px;
}
[data-wishes-list] .wish h4 { font-size: 15.5px; font-weight: 700; color: var(--ne-ink); }
[data-wishes-list] .wish p { font-size: 13.5px; line-height: 1.6; color: var(--ne-body); margin-top: 4px; }
[data-wishes-list] .wish time { display: block; font-family: "Space Grotesk", monospace; font-size: 10.5px; color: #565678; margin-top: 7px; letter-spacing: .1em; }
.ne-more {
  display: block; margin: 0 auto; appearance: none; cursor: pointer;
  background: none; border: 1px solid rgba(255,61,204,.55); color: var(--ne-mag);
  font-family: "Space Grotesk", monospace; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 10px 22px; border-radius: 999px;
  transition: all .2s ease;
}
.ne-more:hover { background: var(--ne-mag); color: var(--ne-black); box-shadow: 0 0 20px rgba(255,61,204,.6); }

/* ── amplop ── */
.ne-amplop-note { text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--ne-body); max-width: 38ch; margin: 0 auto 24px; }
.ne-env {
  text-align: center; color: var(--ne-ink);
  background: var(--ne-panel); border: 1px solid rgba(255,61,204,.4);
  border-radius: 14px; padding: 24px 20px 20px; margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(255,61,204,.12), inset 0 0 24px rgba(255,61,204,.04);
}
.ne-env-2 { border-color: rgba(34,211,238,.4); box-shadow: 0 0 20px rgba(34,211,238,.12), inset 0 0 24px rgba(34,211,238,.04); }
.ne-env-bank {
  font-family: "Space Grotesk", monospace; font-size: 12px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ne-mag); text-shadow: 0 0 10px rgba(255,61,204,.7);
}
.ne-env-2 .ne-env-bank { color: var(--ne-cyan); text-shadow: 0 0 10px rgba(34,211,238,.7); }
.ne-env-num { font-family: "Space Grotesk", monospace; font-size: 23px; font-weight: 700; letter-spacing: .1em; margin-top: 8px; }
.ne-env-holder { font-size: 12.5px; color: var(--ne-body); margin-top: 4px; }
.ne-copy {
  margin-top: 14px; appearance: none; cursor: pointer;
  background: rgba(255,61,204,.1); color: var(--ne-mag); border: 1px solid var(--ne-mag);
  font-family: "Space Grotesk", monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  padding: 8px 18px; border-radius: 8px; transition: all .2s ease;
}
.ne-env-2 .ne-copy { background: rgba(34,211,238,.1); color: var(--ne-cyan); border-color: var(--ne-cyan); }
.ne-copy:hover { background: var(--ne-mag); color: var(--ne-black); box-shadow: 0 0 18px rgba(255,61,204,.6); }
.ne-env-2 .ne-copy:hover { background: var(--ne-cyan); box-shadow: 0 0 18px rgba(34,211,238,.6); }

/* ── closing ── */
.ne-closing { text-align: center; color: var(--ne-ink); background: var(--ne-panel); padding: 54px 28px 38px; }
.ne-closing-end {
  font-family: "Space Grotesk", monospace; font-size: 11px; letter-spacing: .3em; color: #565678; margin-bottom: 18px;
}
.ne-closing-text { font-size: 13.5px; line-height: 1.75; color: var(--ne-body); max-width: 36ch; margin: 0 auto 22px; }
.ne-closing-names {
  font-family: "Monoton", cursive; font-size: 30px; line-height: 1.3; color: #ffe9fb;
  text-shadow: 0 0 6px rgba(255,233,251,.85), 0 0 22px rgba(255,61,204,.8), 0 0 52px rgba(255,61,204,.5);
}
.ne-closing-fam { margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ne-cyan); }
.ne-closing-copy { margin-top: 18px; font-family: "Space Grotesk", monospace; font-size: 12px; color: #565678; }

/* ── music toggle ── */
.ne-music {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ne-black); color: var(--ne-cyan);
  border: 1.6px solid var(--ne-mag); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 16px rgba(255,61,204,.5), 0 8px 22px rgba(0,0,0,.5);
}
.ne-music svg { width: 21px; height: 21px; }
.ne-music.is-playing { animation: ne-pulse 1.6s ease infinite; }
@keyframes ne-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255,61,204,.5), 0 0 0 0 rgba(34,211,238,.5); }
  60% { box-shadow: 0 0 22px rgba(255,61,204,.7), 0 0 0 10px rgba(34,211,238,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: "Space Grotesk", sans-serif; background: rgba(11,11,20,.94); }
.map-open { color: var(--ne-cyan); }

@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; }
}
