/*
Theme Name: True Ending Route — Otome Visual Novel Stage
Theme URI: https://example.com/05-anime-visual-novel
Author: Anime & K-Pop Creative Wedding Studio
Description: Tema WordPress Undangan Pernikahan Online (True Ending Route — Otome Visual Novel Stage) — Fitur Unik: Kotak Dialog Visual Novel Interaktif dengan Efek Ketik (Typewriter) & 3 Pilihan Cabang Dialog | Animasi: Sakura Curtain & Heart Affection Gauge Burst.
Version: 4.0.0
License: GPL v2 or later
Text Domain: 05-anime-visual-novel
*/

:root {
  --bg-1: #FFF5F8;
  --bg-2: #FCE4EC;
  --bg-card: rgba(255, 255, 255, 0.93);
  --acc-1: #EC4899;
  --acc-2: #F472B6;
  --acc-3: #8B5CF6;
  --txt-main: #3B1828;
  --txt-muted: #7A4961;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg-1); color: var(--txt-main); font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; overflow-x: hidden; }
body {
  background: radial-gradient(circle at 50% 0%, var(--bg-2) 0%, var(--bg-1) 80%);
  color: var(--txt-main); overflow-x: hidden; position: relative; transition: filter 0.4s ease, background 0.5s ease;
}
body.locked-scroll { overflow: hidden; height: 100vh; }
body.manga-bw-mode { filter: grayscale(100%) contrast(135%); }
body.crt-scanlines::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0px, rgba(0,0,0,0.22) 2px, transparent 2px, transparent 4px);
}

#theme-particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* OPENING COVER */
.opening-cover {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, var(--bg-2) 0%, var(--bg-1) 92%);
  transition: all 1.15s var(--ease-out); overflow: hidden; padding: 1.25rem;
}
.opening-cover.is-opened { pointer-events: none; visibility: hidden; }
.opening-cover.is-opened { transform: translateY(105%) scale(0.9); opacity: 0; }

.cover-box {
  position: relative; z-index: 5; max-width: 500px; width: 100%; padding: 2rem 1.65rem;
  text-align: center; background: var(--bg-card); border: 2.5px solid var(--acc-1);
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
}

.emblem-svg { width: min(100%, 340px); height: auto; margin: 0 auto 0.65rem; display: block; }
.tag-badge {
  display: inline-block; padding: 0.28rem 0.9rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--acc-1); color: var(--bg-1); margin-bottom: 0.6rem;
}
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.7rem; border-radius: 999px;
  font-weight: 800; font-size: 0.88rem; background: linear-gradient(135deg, var(--acc-1), var(--acc-2));
  color: #FFFFFF; border: 2px solid var(--acc-1); cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: transform 0.25s ease;
}
.btn-main:hover { transform: translateY(-3px) scale(1.03); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.52rem 1.1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--acc-1); background: transparent;
  border: 2px solid var(--acc-1); cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { background: var(--acc-1); color: #FFFFFF; }

.wrap-sec { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.card-shell {
  background: var(--bg-card); border: 2px solid var(--acc-1);
  border-radius: 22px;
  padding: 1.75rem; position: relative;
  box-shadow: 0 14px 36px rgba(0,0,0,0.2);
}

/* COUNTDOWN */
.cd-bar { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin: 1.1rem 0; }
.cd-unit { min-width: 70px; padding: 0.55rem 0.45rem; border: 2px solid var(--acc-1); border-radius: 12px; text-align: center; background: rgba(0,0,0,0.12); }
.cd-unit b { display: block; font-size: 1.55rem; color: var(--acc-1); line-height: 1.1; }
.cd-unit span { font-size: 0.68rem; text-transform: uppercase; color: var(--txt-muted); }

/* INTERACTIVE WIDGET BANNER */
.unique-widget-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.18));
  border: 2px dashed var(--acc-2); border-radius: 18px; padding: 1.25rem;
  margin: 1.25rem auto; max-width: 880px; text-align: center;
}

/* GALLERY & LIVE UPLOADER */
.upload-panel {
  background: var(--bg-card); border: 2px dashed var(--acc-1); border-radius: 16px;
  padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0.8rem;
}
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.3rem; }
.filter-btn { padding: 0.42rem 0.95rem; border-radius: 999px; border: 1.5px solid var(--acc-1); background: var(--bg-card); color: var(--txt-main); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.filter-btn.active { background: var(--acc-1); color: #FFFFFF; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; border: 2px solid var(--acc-1); aspect-ratio: 4/3; cursor: pointer; transition: transform 0.35s ease; }
.gallery-item:hover { transform: translateY(-5px) scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; inset: auto 0 0 0; padding: 1rem 0.75rem 0.55rem; background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent); color: #FFF; }
.gallery-caption h4 { font-size: 0.9rem; color: var(--acc-3); }
.gallery-caption span { font-size: 0.7rem; color: #E2E8F0; }

.form-control { width: 100%; padding: 0.62rem 0.85rem; border-radius: 8px; border: 1.5px solid var(--acc-1); background: var(--bg-1); color: var(--txt-main); font-family: inherit; font-size: 0.86rem; margin-bottom: 0.7rem; }
.wishes-box { max-height: 270px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.wish-card { border: 1.5px solid var(--acc-1); border-radius: 10px; padding: 0.7rem 0.9rem; background: rgba(0,0,0,0.1); }

/* HOLOGRAPHIC PHOTOCARD SHIMMER (#12) */
.holo-pc-card {
  position: relative; width: 220px; height: 320px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  border: 3px solid var(--acc-1); box-shadow: 0 14px 35px rgba(0,0,0,0.25); cursor: pointer;
  transition: transform 0.6s ease; transform-style: preserve-3d;
}
.holo-pc-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, transparent 20%, rgba(255,0,128,0.28) 40%, rgba(0,255,255,0.28) 50%, rgba(255,255,0,0.28) 60%, transparent 80%);
  background-size: 200% 200%; animation: holoGlare 3.5s linear infinite;
}
@keyframes holoGlare { 0% { background-position: 0% 0%; } 100% { background-position: 200% 200%; } }

/* SPINNING VINYL / CD (#13 & #19) */
.spin-disc { animation: spinDisc 9s linear infinite; }
@keyframes spinDisc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* FLOATING NAV, LIGHTBOX & TOAST */
.floating-nav { position: fixed; bottom: 0.95rem; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; gap: 0.25rem; padding: 0.38rem 0.6rem; background: var(--bg-card); border: 2px solid var(--acc-1); border-radius: 999px; backdrop-filter: blur(10px); }
.floating-nav a { color: var(--txt-main); text-decoration: none; font-size: 0.73rem; padding: 0.32rem 0.7rem; border-radius: 999px; font-weight: 700; }
.floating-nav a:hover { background: var(--acc-1); color: #FFFFFF; }
.music-fab { position: fixed; bottom: 1.05rem; right: 1.05rem; z-index: 95; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--acc-1); background: var(--bg-card); color: var(--acc-1); font-weight: 900; cursor: pointer; }
.lightbox-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(6,5,8,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.lightbox-modal.active { opacity: 1; visibility: visible; }
.lightbox-modal img { max-width: min(92vw, 840px); max-height: 74vh; border: 3px solid var(--acc-1); }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--acc-1); background: var(--bg-card); color: var(--acc-1); font-size: 1.2rem; cursor: pointer; }
.theme-toast { position: fixed; bottom: 4.3rem; left: 50%; transform: translateX(-50%); background: var(--acc-1); color: #FFFFFF; font-weight: 800; font-size: 0.82rem; padding: 0.55rem 1.2rem; border-radius: 999px; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 9999; }
.theme-toast.show { opacity: 1; visibility: visible; }

.reveal-up { opacity: 0; transform: translateY(26px); transition: all 0.8s var(--ease-out); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
