/* ===============================
   Sistem Sunyi — Ritual Overlay
   Versi Panel Hening - Latihan Sunyi - Ritme Sunyi
=============================== */
/* overlay */
.sunyi-ritual {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 999999;
  transition: opacity .6s ease;
}
.sunyi-ritual.show {
  opacity: 1;
  pointer-events: auto;
}
/* panel */
.sunyi-ritual-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  padding: 42px 48px;
  border-radius: 22px;
  max-width: 560px;
  width: 88%;
  text-align: center;
  animation: boxFade .6s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}
@keyframes boxFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Title */
.sunyi-ritual-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 28px;
  color: #111;
}
/* Content lines */
.sunyi-ritual-body div {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: #222;
  margin: 9px 0;
  opacity: 0;
  transform: translateY(8px);
  animation: lineFade .9s ease forwards;
}
.sunyi-ritual-body div:nth-child(1) {
  animation-delay: .25s;
}
.sunyi-ritual-body div:nth-child(2) {
  animation-delay: .55s;
}
.sunyi-ritual-body div:nth-child(3) {
  animation-delay: .85s;
}
@keyframes lineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* pulang line */
.sunyi-pulang {
  font-style: italic;
  opacity: .9;
}
/* footer buttons */
.sunyi-ritual-foot {
  margin-top: 38px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.sunyi-ritual-foot button {
  background: #111;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: "Lato", sans-serif;
  font-size: 13.5px;
  cursor: pointer;
  opacity: .9;
  transition: opacity .25s ease;
}
.sunyi-ritual-foot button:hover {
  opacity: 1;
}
/* rasa picker */
.sunyi-ritual-picker {
  margin-top: 22px;
  display: none;
}
.sunyi-ritual-picker.show {
  display: block;
}
.sunyi-ritual-picker select {
  width: 70%;
  padding: 6px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: "Lato", sans-serif;
}
/* meta (Hari ke x / Besok lanjut) */
.sunyi-ritual-meta {
  font-family: "Lato", sans-serif;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 30px;
  opacity: .7;
}
/* ===========================================
   SISTEM SUNYI — RITUAL LAYER - SUPAYA MAKIN SUNYI
   =========================================== */
/* global matte */
.sunyi-ritual {
  background: rgba(240, 240, 240, 0.72);
  backdrop-filter: blur(8px) brightness(0.94);
  -webkit-backdrop-filter: blur(8px) brightness(0.94);
}
/* grain tipis */
.sunyi-ritual::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 1200 1200'%3E%3Crect width='1200' height='1200' fill='none'/%3E%3Cg fill='%23000' fill-opacity='0.35'%3E%3Ccircle cx='90' cy='90' r='1'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* text container refinement */
.sunyi-ritual-text,
.sunyi-ritual-body {
  padding: 32px 40px;
  max-width: 580px;
  font-size: 20px;
  line-height: 1.68;
  color: #111;
  font-family: "Cormorant Garamond", serif;
}
/* spacing antar baris -->
   memberi rasa "menurunkan bahu" */
.sunyi-ritual-line,
.sunyi-ritual-text div {
  margin-bottom: 22px !important;
}
/* napas slow fade (lebih hening) */
.sunyi-ritual-line,
.sunyi-ritual-text div {
  animation: sunyiLine 1.4s ease forwards;
}
@keyframes sunyiLine {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* credit muncul terakhir, seperti doa */
.sunyi-credit {
  opacity: 0;
  animation: sunyiCredit 2.8s ease 1.4s forwards !important;
  color: #444;
  font-size: 14px;
  font-style: italic;
}
@keyframes sunyiCredit {
  from {
    opacity: 0;
  }
  to {
    opacity: .65;
  }
}
/* tombol (jika ada) lebih sunyi */
.sunyi-ritual-foot button {
  background: #111;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12.5px;
  opacity: .7;
  transition: opacity .3s ease, transform .3s ease;
}
.sunyi-ritual-foot button:hover {
  opacity: 1;
  transform: scale(1.02);
}
/* picker muncul seperti membuka kertas tipis */
.sunyi-ritual-picker.show {
  animation: sunyiPicker .4s ease forwards;
}
@keyframes sunyiPicker {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================
   Latihan Sunyi - Ritme Sunyi Mobile Elegance Refinement
========================================= */
/* general spacing balance */
.sunyi-ritual-body div {
  word-wrap: break-word;
  max-width: 100%;
}
/* reduce max box size for safer viewport fit */
.sunyi-ritual-box {
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0);
}
/* thin scroll aesthetic */
.sunyi-ritual-box::-webkit-scrollbar {
  width: 6px;
}
.sunyi-ritual-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 6px;
}
/* ——— MOBILE ——— */
@media (max-width: 600px) {
  .sunyi-ritual {
    backdrop-filter: blur(7px) brightness(0.96);
  }
  .sunyi-ritual-box {
    padding: 26px 22px;
    width: 94%;
    max-width: 94%;
    border-radius: 18px;
  }
  .sunyi-ritual-title {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .sunyi-ritual-body div {
    font-size: 18px;
    margin: 18px 0;
    line-height: 1.58;
  }
  .sunyi-pulang {
    font-size: 19px;
  }
  .sunyi-credit {
    font-size: 12.5px;
    margin-top: 14px;
  }
  .sunyi-ritual-foot {
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sunyi-ritual-foot button {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 9px;
  }
  .sunyi-ritual-picker select {
    width: 100%;
    font-size: 15px;
    padding: 9px;
    border-radius: 8px;
  }
  .sunyi-ritual-meta {
    font-size: 12px;
  }
}
/* ——— SMALL PHONES ——— */
@media (max-width: 390px) {
  .sunyi-ritual-title {
    font-size: 20px;
  }
  .sunyi-ritual-body div {
    font-size: 17px;
  }
  .sunyi-ritual-foot button {
    font-size: 12.5px;
  }
}
#rsBody {
  margin-top: 70px;
  margin-bottom: 80px;
}