/* Natal Batam 2026 — "Dimanakah Tuhan?" */
:root {
  --ink: #120d09;
  --ink-2: #1b140e;
  --ink-3: #261c13;
  --line: rgba(243, 231, 207, 0.12);
  --cream: #f3e7cf;
  --muted: #b9a98d;
  --gold: #f5c518;
  --gold-2: #e0a93a;
  --flame: #ffb347;
  --red: #7d1010;
  --ok: #8fd19e;
  --err: #ff9b8a;
  --radius: 18px;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-script: "Yellowtail", "Brush Script MT", cursive;
  --f-sans: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
.narrow { width: min(720px, 100% - 32px); }
body.locked { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared bits ---------- */
.tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--red), rgba(125, 16, 16, 0));
  color: var(--gold);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  padding: 6px 48px 6px 16px;
  text-transform: uppercase;
  font-size: 15px;
}
.spaced { letter-spacing: 0.5em; text-transform: uppercase; font-weight: 700; font-style: italic; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 700;
  margin: 0 0 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: #1a1206; box-shadow: 0 10px 30px -10px rgba(245, 197, 24, 0.6); }
.btn-gold:hover { background: #ffd43b; }
.btn-ghost { background: rgba(243, 231, 207, 0.06); color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { background: rgba(243, 231, 207, 0.12); }
.btn-wa { background: #25d366; color: #062b14; }
.btn-wa:hover { background: #33e076; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section h2 {
  font-family: var(--f-type);
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.section h2 .script { font-family: var(--f-script); font-size: 1.25em; }
.lead { color: #d8c9ae; max-width: 640px; margin: 0 0 32px; font-size: 19px; }
.band { background: linear-gradient(180deg, var(--ink), var(--ink-2) 40%, var(--ink)); }

/* ---------- sambutan ---------- */
.letter { padding-top: 72px; }
.letter-body { font-family: var(--f-serif); font-size: clamp(21px, 2.6vw, 25px); line-height: 1.55; color: var(--cream); }
.letter-body p { margin: 0 0 18px; }
.letter-body strong { font-weight: 700; color: var(--gold); }
.letter-body .sign { margin-top: 30px; font-family: var(--f-sans); font-size: 17px; font-weight: 700; }
.letter-body .sign span { color: var(--muted); font-weight: 400; }
.hero-meta .where { display: block; color: var(--muted); font-size: 0.9em; margin-top: 2px; }

/* ---------- bilah aksi bawah ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 13, 9, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
body:not(.locked) .dock { transform: none; }
.dock > .btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: 16px; }
.dock-player { flex: none; }
.dock .player { position: static; box-shadow: none; max-width: none; }
.dock .player .now { display: none; }
@media (min-width: 760px) {
  .dock { left: auto; right: 16px; bottom: 16px; border-radius: 999px; border: 1px solid var(--line); padding: 8px; }
  .dock > .btn { flex: none; }
  .dock .player .now { display: block; }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cover / envelope ---------- */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 16px;
  background: var(--ink);
  transition: opacity 1s ease, visibility 1s ease, transform 1.2s ease;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bramer-herod-1000.webp") center 40% / cover no-repeat;
  filter: blur(6px) brightness(0.35) saturate(0.8);
  transform: scale(1.08);
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 179, 71, 0.18), transparent 55%);
  animation: glow 4s ease-in-out infinite;
}
.cover.open { opacity: 0; visibility: hidden; transform: scale(1.06); }
.cover-card { position: relative; z-index: 1; max-width: 460px; width: 100%; }
.cover .tag { margin-bottom: 26px; }
.cover-year { font-size: 14px; margin: 0 0 28px; color: var(--cream); }
.cover-title { font-family: var(--f-type); color: var(--gold); font-size: clamp(34px, 10vw, 54px); line-height: 1; margin: 0; }
.cover-title .script { font-family: var(--f-script); display: block; font-size: 1.5em; margin-top: -2px; }
.cover-to {
  margin: 34px auto 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 13, 9, 0.55);
  backdrop-filter: blur(6px);
}
.cover-to small { display: block; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }
.cover-to strong { display: block; font-family: var(--f-serif); font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 4px; overflow-wrap: anywhere; }
.cover-from { margin-top: 10px; font-size: 14px; color: var(--muted); }
.cover-from b { color: var(--cream); font-weight: 700; }
.cover-hint { margin-top: 16px; color: var(--muted); font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/bramer-herod-portrait.webp") center / cover no-repeat;
  transform: scale(1.05);
  animation: drift 26s ease-in-out infinite alternate;
}
@media (min-width: 760px) {
  .hero-art { background-image: url("../img/bramer-herod.webp"); background-position: center 30%; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 13, 9, 0.55) 0%, rgba(18, 13, 9, 0.15) 30%, rgba(18, 13, 9, 0.6) 62%, var(--ink) 100%),
    radial-gradient(circle at var(--fx, 50%) var(--fy, 46%), rgba(255, 179, 71, 0.22), transparent 30%);
  animation: glow 3.4s ease-in-out infinite;
}
.hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}
.hero-top .spaced { font-size: 13px; padding-right: 16px; letter-spacing: 0.42em; }
.hero-body { padding: 84px 0 56px; text-align: center; }
.hero h1 { margin: 0; font-weight: 400; line-height: 0.95; text-shadow: 0 6px 26px rgba(0, 0, 0, 0.8); }
.hero h1 .t1 { display: block; font-family: var(--f-type); color: var(--gold); font-size: clamp(44px, min(12vw, 11svh), 120px); min-height: 1em; }
.hero h1 .t2 {
  display: inline-block;
  font-family: var(--f-script);
  color: var(--gold);
  font-size: clamp(80px, min(24vw, 21svh), 220px);
  line-height: 1.05;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s cubic-bezier(0.6, 0, 0.2, 1);
}
.hero h1 .t2.drawn { clip-path: inset(-20% -10% -20% 0); }
.hero h1 .q { font-family: var(--f-type); font-size: 0.5em; vertical-align: 0.6em; margin-left: 0.08em; opacity: 0; transition: opacity 0.6s ease 1.4s; }
.hero h1 .t2.drawn .q { opacity: 1; }
.caret { display: inline-block; width: 0.08em; height: 0.85em; background: var(--gold); margin-left: 0.05em; vertical-align: -0.08em; animation: blink 0.9s steps(1) infinite; }
.hero-meta { margin: 22px 0 0; font-size: clamp(17px, 2.4vw, 22px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
.hero-meta .who { font-style: italic; color: var(--muted); }
.hero-meta strong { display: block; font-size: 1.35em; font-style: italic; }
.hero-meta .when { display: block; margin-top: 8px; font-weight: 700; letter-spacing: 0.02em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.scroll-cue { display: block; margin: 34px auto 0; width: 26px; height: 42px; border: 2px solid rgba(243, 231, 207, 0.5); border-radius: 14px; position: relative; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }

/* ---------- painting explorer ---------- */
.painting { margin: 56px 0 0; }
.painting-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 8px var(--ink-2), 0 0 0 9px rgba(224, 169, 58, 0.25);
}
.painting-frame img { width: 100%; height: auto; aspect-ratio: 2000 / 1243; object-fit: cover; }
.spot {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(18, 13, 9, 0.55);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.spot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(245, 197, 24, 0.55); animation: ping 2.2s ease-out infinite; }
.spot[aria-pressed="true"] { background: var(--gold); color: #1a1206; }
.spot[aria-pressed="true"]::after { animation: none; opacity: 0; }
.spot { transition: opacity 0.5s ease, transform 0.4s ease; z-index: 2; }
/* tur otomatis: sorotan + keterangan */
.tour { margin: 0; }
.spotlight {
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(10, 7, 4, 0.72), inset 0 0 40px rgba(245, 197, 24, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: left 1s cubic-bezier(0.5, 0, 0.2, 1), top 1s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.8s ease;
}
.tour.live .spotlight { opacity: 1; }
.tour.live .spot { opacity: 0.55; }
.tour.live .spot[aria-pressed="true"] { opacity: 1; transform: scale(1.1); }
.tour-panel { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-top: 16px; }
.tour-arrow { height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(243, 231, 207, 0.05); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; }
.tour-arrow:hover { background: rgba(243, 231, 207, 0.12); }
.tour-text { display: grid; }
.spot-note {
  grid-area: 1 / 1;
  padding: 14px 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.spot-note.on { opacity: 1; transform: none; pointer-events: auto; }
.spot-note h3 { margin: 0 0 6px; font-family: var(--f-type); font-weight: 400; font-size: 24px; color: var(--gold); }
.spot-note p { margin: 0; color: #e3d6bc; font-size: 17px; line-height: 1.5; max-width: 620px; margin-inline: auto; }
.spot-note .ref { display: block; margin-top: 6px; color: var(--gold-2); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.tour-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.tour-dots button { width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.tour-dots i { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(243, 231, 207, 0.18); overflow: hidden; position: relative; }
.tour-dots i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tour-dots button.done i::after { transform: scaleX(1); }
.tour-dots button.on i::after { animation: fill var(--dur, 7s) linear forwards; }
.tour.paused .tour-dots button.on i::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 600px) {
  .tour-panel { grid-template-columns: 1fr; }
  .tour-arrow { display: none; }
}
.credit { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 620px; margin: 8px 0 36px; }
.cd { padding: 18px 4px 14px; border-radius: 16px; background: rgba(243, 231, 207, 0.04); border: 1px solid var(--line); }
.cd b { display: block; font-family: var(--f-type); font-weight: 400; color: var(--gold); font-size: clamp(32px, 9vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.countdown-done { font-family: var(--f-type); color: var(--gold); font-size: 24px; margin-top: 18px; }

/* ---------- details ---------- */
.details { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .details { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
}
.card .k { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.card .v { font-size: 24px; font-weight: 700; font-style: italic; margin-top: 6px; line-height: 1.25; }
.card .s { color: #d8c9ae; margin-top: 4px; font-size: 18px; }
.card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.card .row .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.venue-photos { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 640px) { .venue-photos { grid-template-columns: 1fr 1fr; } }
.venue-photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.venue-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.venue-photos figure.missing { display: none; }
.venue-photos figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(18, 13, 9, 0.75); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.map {
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 280px;
  background: var(--ink-2);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) brightness(0.9); }

/* ---------- register + rsvp ---------- */
.register { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .register { grid-template-columns: 340px 1fr; } }
.reg-card { text-align: center; }
.reg-card .btn { width: 100%; }
.reg-card .s { margin: 0 0 20px; }
.wa-big { width: 96px; height: 96px; margin: 18px auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 211, 102, 0.12); color: #25d366; }
.wa-big svg { width: 54px; height: 54px; }
.form { display: grid; gap: 16px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(243, 231, 207, 0.18);
  background: rgba(18, 13, 9, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 17px;
}
.input::placeholder, .textarea::placeholder { color: rgba(185, 169, 141, 0.7); }
.input:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(243, 231, 207, 0.18);
  background: rgba(18, 13, 9, 0.5);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill input:checked + span { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(243, 231, 207, 0.18); background: rgba(18, 13, 9, 0.6); color: var(--cream); font-size: 24px; cursor: pointer; }
.stepper output { min-width: 56px; text-align: center; font-family: var(--f-type); font-size: 30px; color: var(--gold); }
.form-msg { padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.form-msg.ok { background: rgba(143, 209, 158, 0.12); color: var(--ok); border: 1px solid rgba(143, 209, 158, 0.35); }
.form-msg.err { background: rgba(255, 155, 138, 0.1); color: var(--err); border: 1px solid rgba(255, 155, 138, 0.35); }
.hidden { display: none !important; }

/* ---------- share / invite others ---------- */
.share-band {
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 197, 24, 0.12), transparent 50%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .share-grid { grid-template-columns: 1.1fr 0.9fr; } }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phone {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 34px;
  padding: 12px;
  background: #0b0806;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  transform: rotate(-3deg);
}
.phone .chat { border-radius: 24px; padding: 16px 12px; background: #0b1410 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff10'/%3E%3C/svg%3E"); min-height: 300px; }
.bubble { background: #144d37; color: #e9f5ee; border-radius: 12px 12px 4px 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-left: 24px; white-space: pre-line; }
.bubble .lk { color: #7fd3ff; text-decoration: underline; word-break: break-all; }
.bubble .tm { display: block; text-align: right; font-size: 11px; opacity: 0.6; margin-top: 4px; }

/* ---------- songs ---------- */
.songs { display: grid; gap: 10px; }
.song {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
}
.song:hover { border-color: rgba(245, 197, 24, 0.4); }
.song .pp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 197, 24, 0.12); color: var(--gold); }
.song .pp svg { width: 22px; height: 22px; }
.song.playing { border-color: var(--gold); background: linear-gradient(90deg, rgba(245, 197, 24, 0.12), var(--ink-2)); }
.song.playing .pp { background: var(--gold); color: #1a1206; }
.song .n { font-size: 12px; letter-spacing: 0.2em; color: var(--gold-2); font-weight: 700; text-transform: uppercase; }
.song .t { font-size: 20px; font-weight: 700; font-style: italic; line-height: 1.2; }
.song .o { color: var(--muted); font-size: 14px; }
.song .eq { display: none; gap: 3px; align-items: end; height: 20px; }
.song.playing .eq { display: flex; }
.eq i { width: 4px; background: var(--gold); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
body.paused .eq i { animation-play-state: paused; }

/* ---------- floating player ---------- */
.player {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(18, 13, 9, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  max-width: calc(100% - 32px);
}
.player .now { min-width: 0; line-height: 1.2; }
.player .now small { display: block; font-size: 11px; color: var(--gold-2); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; }
.player .now span { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.player button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.player .skip { background: transparent; color: var(--cream); width: 36px; }
.player .toggle { background: var(--gold); color: #1a1206; position: relative; }
.player svg { width: 20px; height: 20px; }
.player .toggle::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px dashed rgba(245, 197, 24, 0.6); animation: spin 8s linear infinite; animation-play-state: paused; }
body.music-on .player .toggle::before { animation-play-state: running; }

/* ---------- footer ---------- */
.footer { padding: 64px 0 140px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer .brand { font-family: var(--f-type); color: var(--gold); font-size: 22px; }
.footer p { margin: 6px 0; }
.footer .credits { max-width: 680px; margin: 22px auto 0; font-size: 12px; opacity: 0.85; }

/* ---------- kirim page ---------- */
.k-hero { padding: 56px 0 24px; text-align: center; }
.k-hero h1 { font-family: var(--f-type); font-weight: 400; color: var(--gold); font-size: clamp(32px, 7vw, 52px); line-height: 1.1; margin: 10px 0 12px; }
.k-hero h1 .script { font-family: var(--f-script); font-size: 1.3em; }
.k-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.k-grid { display: grid; gap: 18px; padding-bottom: 80px; }
@media (min-width: 920px) { .k-grid { grid-template-columns: 1fr 1fr; align-items: start; } .k-grid .sticky { position: sticky; top: 16px; } }
.k-step { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; }
.k-step b { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1206; display: grid; place-items: center; font-size: 15px; flex: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(18, 13, 9, 0.6); border: 1px solid var(--line); margin-bottom: 20px; }
.seg button { min-height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #1a1206; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.linkbox { padding: 14px 16px; border-radius: 14px; background: rgba(18, 13, 9, 0.6); border: 1px dashed rgba(245, 197, 24, 0.4); color: var(--gold); word-break: break-all; font-size: 14px; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn-grid .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
.btn-grid .full { grid-column: 1 / -1; }
.mini-invite {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: center;
  padding: 26px 18px 22px;
  margin-bottom: 16px;
}
.mini-invite::before { content: ""; position: absolute; inset: 0; background: url("../img/bramer-herod-1000.webp") center 40% / cover; filter: brightness(0.32) blur(2px); transform: scale(1.05); }
.mini-invite > * { position: relative; }
.mini-invite .spaced { font-size: 11px; color: var(--cream); }
.mini-invite .ti { font-family: var(--f-type); color: var(--gold); font-size: 26px; line-height: 1; margin-top: 14px; }
.mini-invite .ti span { display: block; font-family: var(--f-script); font-size: 1.6em; }
.mini-invite .to { margin-top: 16px; color: var(--muted); font-size: 13px; }
.mini-invite .to strong { display: block; color: var(--cream); font-family: var(--f-serif); font-size: 22px; overflow-wrap: anywhere; }
.batch { display: grid; gap: 8px; margin-top: 14px; }
.batch-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(18, 13, 9, 0.6); border: 1px solid var(--line); }
.batch-row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-row .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.batch-row.sent { opacity: 0.55; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--cream);
  color: #1a1206;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.page-kirim { padding-bottom: 72px; }
@media (max-width: 760px) {
  .page-kirim .player { padding: 6px; }
  .page-kirim .player .now,
  .page-kirim .player .skip { display: none; }
}
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; gap: 12px; }
.topbar a.back { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; }

/* ---------- motion ---------- */
@keyframes glow { 0%, 100% { opacity: 0.85; } 45% { opacity: 1; } 60% { opacity: 0.75; } }
@keyframes drift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 20px; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .t2 { clip-path: none; }
  .hero h1 .q { opacity: 1; }
}
