/* Gaya dasar bersama. Tema menimpa sesuai kebutuhan. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f1ea; color: #1d1d1f; }
body.u-locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.u-msg { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; gap: 8px; }
.u-msg h1 { font-size: 1.4rem; margin: 0; }
.u-msg p { margin: 0; opacity: .7; max-width: 32ch; }
.u-spinner { width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; border: 3px solid rgba(0,0,0,.12); border-top-color: currentColor; animation: u-spin .8s linear infinite; }
@keyframes u-spin { to { transform: rotate(360deg); } }

.u-ph { display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.18)); color: rgba(255,255,255,.9); font-weight: 600; letter-spacing: .08em; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* mode foto katalog */
.u-shot *, .u-shot *::before, .u-shot *::after { transition: none !important; animation: none !important; }
.u-shot { scrollbar-width: none; scroll-behavior: auto !important; }
.u-shot ::-webkit-scrollbar { display: none; }
.u-shot [data-music] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
