/* Lily Hop: tambahan di atas seberang-kolam.css (komponen .sk-* dipakai bersama).
 * Skala ukuran tetap deret Fibonacci (5 · 8 · 13 · 21 · 34 · 55 · 89 · 144 · 233) dan rasio emas 1,618. */

/* ---------- papan ---------- */
.lh .sk-board.lh-board { background: #8FCADB; box-shadow: 0 21px 55px -30px rgba(30, 90, 120, .65); border-radius: var(--f5); }
.lh-board image { pointer-events: none; }

/* ---------- daun teratai: naik-turun tipis dengan pusat di tengah daun (tujuan) dan turun sekali saat didarati ---------- */
.lh-bob { animation: lh-bob 1.3s ease-in-out infinite; }
@keyframes lh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.6px); } }
.lh-dip { animation: lh-dip .5s ease-out 1; }
@keyframes lh-dip { 0% { transform: translateY(0); } 35% { transform: translateY(3px); } 100% { transform: translateY(0); } }

/* ---------- air kolam: riak tetes, cahaya air mengalir ---------- */
.lh-ring { fill: none; stroke: #fff; stroke-width: 2.2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: lh-ring 2.7s ease-out forwards; }
@keyframes lh-ring { 0% { transform: scale(.12); opacity: .85; } 100% { transform: scale(1); opacity: 0; } }
.lh-plop { transform-box: fill-box; transform-origin: center; animation: lh-plop .5s ease-out forwards; }
@keyframes lh-plop { 0% { transform: translateY(-16px); opacity: 0; } 40% { opacity: .95; } 70% { transform: translateY(0) scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.lh-drift { animation: lh-drift 11s ease-in-out infinite alternate; }
@keyframes lh-drift { from { transform: translateX(-34px); } to { transform: translateX(34px); } }

/* ---------- slot karakter: 3 pemain tetap sebaris (CSS bersama hanya mengenal 2 dan 4) ---------- */
.lh .sk-slots[data-n="3"] { --n: 3; }

/* ---------- pilihan papan: kartu bergambar 144 × 233 ---------- */
.lh-boards { gap: var(--f4); }
.sk-fmt.lh-boardcard {
  flex: 0 1 var(--f9); aspect-ratio: auto; display: grid; grid-template-rows: auto auto auto; justify-items: center; align-content: start; gap: 3px;
  padding: var(--f3) var(--f3) var(--f3);
}
.lh-boardart { display: block; width: min(100%, var(--f8)); aspect-ratio: 1; margin-bottom: var(--f2); }
.lh-boardart .lh-mini { display: block; width: 100%; height: 100%; }
.lh-boardsub { font: 600 .8125rem var(--font-body); color: var(--muted); }
.sk-fmt.lh-boardcard.is-on .lh-boardsub { color: var(--primary); }
.lh-mini { overflow: visible; }

/* ---------- panel ---------- */
.lh-head { display: grid; gap: 2px; justify-items: center; padding-bottom: var(--f2); border-bottom: 2px dashed var(--line); }
.lh-title { margin: 0; font: 700 1.3125rem/1.1 var(--font-head); color: var(--ink); }
.lh-sub { margin: 0; font: 600 .75rem var(--font-body); color: var(--muted); letter-spacing: .02em; }
.lh .sk-tools { flex-wrap: wrap; }
.lh-hint { margin: calc(var(--f2) * -1) 0 0; min-height: 1.2em; text-align: center; font: 600 .8125rem var(--font-body); color: var(--muted); }
.lh-mv { position: absolute; top: 25px; right: var(--f2); font: 700 .6875rem var(--font-head); color: var(--pc); opacity: .8; letter-spacing: .02em; }
.sk-card .sk-pips b { width: 6px; height: 6px; border-radius: 2px; }

/* ---------- panduan bergambar ---------- */
.lh-how { width: min(100%, 707px); }
.lh-figs { display: grid; gap: var(--f4); margin: var(--f3) 0; }
.lh-figs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lh-figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lh-fig { margin: 0; display: grid; gap: var(--f2); align-content: start; }
.lh-fig-art {
  position: relative; aspect-ratio: 1.618 / 1; border-radius: var(--f4); border: 2px solid var(--line); overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #DDF1F6, #A8D8E6); box-shadow: 0 13px 34px -24px rgba(30, 90, 120, .55);
}
.lh-fig-art svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lh-fig-art .lh-mini { padding: var(--f2); box-sizing: border-box; }
.lh-fig figcaption { display: grid; gap: 5px; }
.lh-fig figcaption b { font: 700 1rem var(--font-head); color: var(--ink); }
.lh-fig figcaption span { font-size: .875rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 640px) {
  .lh-figs-4, .lh-figs-3 { grid-template-columns: minmax(0, 1fr); }
  .sk-fmt.lh-boardcard { flex-basis: 0; min-width: 0; padding: var(--f2); }
  .lh-boardsub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lh *, .lh-bob, .lh-dip, .lh-ring, .lh-plop, .lh-drift { animation: none !important; }
}
