/* ==========================================================================
   Cinematic.css — mode sinematik di dalam panggung preview skin.
   Semua nilai yang BERUBAH per frame (tinggi pita, opasitas, skala judul,
   blur) diatur cinematicOverlay.js dari jam lagu; di sini hanya rupa.
   ========================================================================== */

/* Huruf piksel ala Minecraft — Monocraft, SIL OFL 1.1 (src/assets/fonts/).
   Hanya huruf Latin dasar (6 KB), dimuat saat sinematik pertama kali. */
@font-face {
  font-family: "Monocraft";
  src: url("../../../assets/fonts/Monocraft-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Monocraft";
  src: url("../../../assets/fonts/Monocraft.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ── Panggung bersih: semua tombol & lencana disembunyikan ────────────── */
.skin-stage.is-cinematic .studio__mode,
.skin-stage.is-cinematic .studio__zoom,
.skin-stage.is-cinematic .skin-stage__badge,
.skin-stage.is-cinematic .studio__overlay {
  visibility: hidden;
  opacity: 0;
}

.skin-stage .studio__mode,
.skin-stage .studio__zoom {
  transition: opacity 0.4s ease;
}

.skin-stage.is-cinematic .skin-stage__canvas {
  transform-origin: 50% 50%;
}

/* ── Lapisan sinematik ─────────────────────────────────────────────────── */
.skin-cine {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
}

.skin-cine__bar {
  position: absolute;
  right: 0;
  left: 0;
  height: 0;
  background: rgb(0, 0, 0);
}

.skin-cine__bar--top { top: 0; }
.skin-cine__bar--bottom { bottom: 0; }

.skin-cine__black,
.skin-cine__flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.skin-cine__black { background: rgb(0, 0, 0); opacity: 1; }
.skin-cine__flash { background: rgb(255, 255, 255); }

/* ── Judul "Cinematic By Hira" ─────────────────────────────────────────── */
.skin-cine__title {
  position: absolute;
  top: 46%;
  left: 50%;
  opacity: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity, filter;
}

/* Batu-logam seperti logo judul Minecraft: gradasi terang-gelap per
   baris piksel, sorotan yang disapu JS (background-position lapis 1),
   dan bayangan bertingkat sebagai "ketebalan" huruf. */
.skin-cine__word {
  display: block;
  font-family: "Monocraft", ui-monospace, monospace;
  font-size: 40px;
  font-size: clamp(26px, 13cqi, 76px);
  font-weight: 700;
  line-height: 1.1;
  color: transparent;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%),
    linear-gradient(180deg,
      rgb(250, 250, 250) 0%, rgb(214, 214, 214) 34%,
      rgb(150, 150, 150) 35%, rgb(186, 186, 186) 64%,
      rgb(116, 116, 116) 65%, rgb(160, 160, 160) 100%);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0.06em 0 rgb(64, 64, 64))
    drop-shadow(0 0.05em 0 rgb(38, 38, 38))
    drop-shadow(0 0.14em 0.18em rgba(0, 0, 0, 0.55));
}

/* Splash text kuning khas layar judul Minecraft. */
.skin-cine__splash {
  position: absolute;
  right: -0.6em;
  bottom: -0.95em;
  font-family: "Monocraft", ui-monospace, monospace;
  font-size: 16px;
  font-size: clamp(12px, 4.6cqi, 26px);
  font-weight: 400;
  color: rgb(255, 255, 85);
  text-shadow: 0.12em 0.12em 0 rgb(63, 63, 21);
  opacity: 0;
  transform: rotate(-14deg) scale(0);
  transform-origin: 50% 50%;
}

.skin-cine__skip {
  position: absolute;
  right: 0;
  bottom: 12%;
  left: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Monocraft", ui-monospace, monospace;
  font-size: 11px;
  text-align: center;
  pointer-events: none;
  animation: skin-cine-hint 3.2s ease forwards;
}

@keyframes skin-cine-hint {
  0%, 15% { opacity: 0; }
  30%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
