/* ==========================================================
   PANEL PENGATURAN HALAMAN FIGURE
   ========================================================== */
   .figure-intro {
    --h1-warna: #ff00ff;
    --h1-ukuran: clamp(30px, 5vw, 60px);
    --p-warna: #4a1d33;
    --p-ukuran: 20px;
    --p-tebal: 600;
    --cahaya: 0 2px 14px rgba(255,255,255,.95);
    --caption-warna: #be185d;
    --caption-ukuran: 26px;
    min-height: auto;
    padding-bottom: 5rem;
  }
  
  /* ---------- Di bawah ini jangan diubah ---------- */
  .figure-intro .judul-tengah h1 {
    color: var(--h1-warna);
    font-size: var(--h1-ukuran);
    text-shadow: var(--cahaya);
  }
  
  .figure-intro .judul-tengah p {
    color: var(--p-warna);
    font-size: var(--p-ukuran);
    font-weight: var(--p-tebal);
    opacity: 1;
    text-shadow: var(--cahaya);
  }
  
  /* Grid 5 figure */
  .grid-figure {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    max-width: 1200px;
    gap: 1.6rem;
  }
  
  .item-figure h3 {
    text-align: center;
    font-size: var(--caption-ukuran);
    color: var(--caption-warna);
    margin-bottom: .6rem;
  }
  
  /* Kartu flip */
  .kartu-figure {
    perspective: 900px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(190, 24, 93, .12);
  }
  
  .flip-dalam {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.4, .2, .2, 1);
  }
  
  @media (hover: hover) {
    .kartu-figure:hover .flip-dalam {
      transform: rotateY(180deg);
    }
  }
  
  /* HP: flip lewat tap (class .terbalik ditambah oleh figure.js) */
  .kartu-figure.terbalik .flip-dalam {
    transform: rotateY(180deg);
  }
  
  .flip-depan,
  .flip-belakang {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 3px solid #fff;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .flip-depan {
    background: #fff;
  }
  
  .flip-depan img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--pink2);
  }
  
  .flip-belakang {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #fbcfe8, #f9a8d4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    text-align: center;
    color: #831843;
  }
  
  .flip-kategori {
    font-family: "Playball", cursive;
    font-size: 30px;
    line-height: 1.1;
    color: #be185d;
  }
  
  .flip-garis {
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: #fff;
  }
  
  .flip-belakang p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
  }
  
  .flip-tombol {
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #be185d;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
  }
  
  .flip-tombol:hover {
    background: #9d174d;
  }