/* Cliff Climb (Panjat Tebing): tambahan di atas seberang-kolam.css (komponen .sk-* dipakai bersama).
 * Skala ukuran = deret Fibonacci (5 · 8 · 13 · 21 · 34 · 55 · 89 · 144 · 233) dan rasio emas 1,618. */

/* ---------- tebing: papan berdiri (potret), tinggi menyesuaikan layar ---------- */
.cc .sk-game { --bw: min(calc((100svh - 100px) * 0.7155), calc(100vw - var(--panel) - 76px)); }
.cc .sk-stage { container-type: inline-size; }
.cc .sk-board.cc-board { aspect-ratio: 840 / 1174; background: #8ED2F0; box-shadow: 0 21px 55px -30px rgba(40, 90, 120, .6); border-radius: var(--f5); }
.cc-board image { pointer-events: none; }

/* animasi adegan */
.cc-cloud { animation: cc-cloud 40s ease-in-out infinite alternate; }
@keyframes cc-cloud { from { transform: translateX(-26px); } to { transform: translateX(34px); } }
.cc-wave { animation: cc-wave 7s ease-in-out infinite alternate; }
@keyframes cc-wave { from { transform: translateX(-48px); } to { transform: translateX(48px); } }
.cc-foam { transform-box: fill-box; transform-origin: center; animation: cc-foam 3.2s ease-in-out infinite; }
@keyframes cc-foam { 0%, 100% { opacity: .45; transform: scaleX(.85); } 50% { opacity: .9; transform: scaleX(1.1); } }
.cc-flag { transform-box: fill-box; transform-origin: left center; animation: cc-flag 1.6s ease-in-out infinite; }
@keyframes cc-flag { 0%, 100% { transform: skewY(-4deg) scaleX(1); } 50% { transform: skewY(5deg) scaleX(.92); } }
.cc-ring { fill: none; stroke: #fff; stroke-width: 2.4; transform-box: fill-box; transform-origin: center; opacity: 0; animation: cc-ring 2.7s ease-out forwards; }
@keyframes cc-ring { 0% { transform: scale(.12); opacity: .85; } 100% { transform: scale(1); opacity: 0; } }
.cc-dust { transform-box: fill-box; transform-origin: center; animation: cc-dust .7s ease-out forwards; }
@keyframes cc-dust { 0% { transform: translateY(0) scale(.5); opacity: .9; } 100% { transform: translateY(-16px) scale(1.5); opacity: 0; } }

/* rumput, bunga, pakis, dan pohon bergoyang pelan dari pangkalnya */
.cc-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: cc-sway 3.2s ease-in-out infinite alternate; }
@keyframes cc-sway { from { transform: rotate(-4.5deg); } to { transform: rotate(4.5deg); } }
.cc-flower { animation-name: cc-sway-flower; }
@keyframes cc-sway-flower { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.cc-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: cc-tree 6s ease-in-out infinite alternate; }
@keyframes cc-tree { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
/* genangan di pijakan 64, tetesan, kelp dan gelembung */
.cc-pring { fill: none; stroke: #fff; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: cc-pring 2.2s ease-out infinite; }
@keyframes cc-pring { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.cc-drip { fill: #8FD3E6; animation: cc-drip 1.6s ease-in infinite; }
@keyframes cc-drip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(18px); opacity: 0; } }
.cc-kelp { transform-box: fill-box; transform-origin: 50% 100%; animation: cc-kelp 4.2s ease-in-out infinite alternate; }
@keyframes cc-kelp { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.cc-kelp-main { transform-box: fill-box; transform-origin: 50% 100%; animation: cc-kelp-main 5s ease-in-out infinite alternate; }
@keyframes cc-kelp-main { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } } /* batang utama bergoyang sangat tipis supaya ujung atasnya tetap di pijakan 13 */
.cc-bubble { animation: cc-bubble 3.2s ease-in infinite; }
@keyframes cc-bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .85; } 100% { transform: translateY(-46px); opacity: 0; } }
/* kincir angin dan burung di latar */
.cc-blades { transform-box: fill-box; transform-origin: center; }
.cc-blades-in { transform-box: fill-box; transform-origin: center; animation: cc-spin 7s linear infinite; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
.cc-bird { animation: cc-bird 30s linear infinite; }
@keyframes cc-bird { from { transform: translateX(-80px); } to { transform: translateX(900px); } }
.cc-flapb { transform-box: fill-box; transform-origin: center; animation: cc-flapb .5s ease-in-out infinite alternate; }
@keyframes cc-flapb { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
/* kepak sayap serangga */
.cc-wing { transform-box: fill-box; transform-origin: 50% 100%; animation: cc-flap .2s ease-in-out infinite alternate; }
@keyframes cc-flap { from { transform: scaleX(1); } to { transform: scaleX(.25); } }

/* ---------- panel dadu + tombol lempar di atas air (pojok kanan bawah papan) ---------- */
.cc-roll-zone {
  position: absolute; right: 2.4cqw; bottom: 1.8cqw; display: flex; align-items: center; gap: 2.2cqw; padding: 1.5cqw 2.2cqw 1.5cqw 2.6cqw;
  border-radius: 3.4cqw; background: rgba(255, 255, 255, .72); border: 1.5px solid rgba(255, 255, 255, .9); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 10px 24px -14px rgba(20, 70, 100, .65), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.cc-dice { display: flex; gap: 2.2cqw; perspective: 700px; }
.cc-die { --ds: clamp(21px, 4.9cqw, 39px); position: relative; width: var(--ds); height: var(--ds); transform-style: preserve-3d; }
.cc-cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.cc-face {
  position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 15%; border-radius: 20%; backface-visibility: hidden;
  background: linear-gradient(145deg, #FFFFFF, #F0E6DB); border: 1px solid #DCCBB8; transform: var(--r) translateZ(calc(var(--ds) / 2));
  box-shadow: inset 0 -2px 3px rgba(120, 90, 60, .12);
}
.cc-face i { place-self: center; width: 80%; aspect-ratio: 1; border-radius: 50%; }
.cc-face i.on { background: radial-gradient(circle at 35% 30%, #5B4540, #2E211E); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4); }
.cc-face i.on.one { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--primary) 68%, #fff), var(--primary)); } /* titik 1 mengikuti warna tema (merah muda / biru) */
.cc-die.is-double .cc-face { background: linear-gradient(145deg, #FFFEF4, #FFEFBC); border-color: #EBCB6A; }
.sk button.cc-roll {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: clamp(36px, 8.4cqw, 62px); aspect-ratio: 1; padding: 0; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  font: 800 clamp(.4rem, 1.5cqw, .62rem)/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, #fff), var(--primary)); box-shadow: 0 7px 12px -8px var(--primary), inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .25); transition: transform .15s ease;
}
.cc-hand { height: 58%; width: auto; flex: none; }
.cc-roll-t { margin-top: .12em; }
.sk button.cc-roll:hover:not(:disabled) { transform: translateY(-2px); }
.sk button.cc-roll:active:not(:disabled) { transform: translateY(1px) scale(.97); }
.sk button.cc-roll:disabled { background: #CFC8C4; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); cursor: default; opacity: .85; }
.cc-roll.is-ready { animation: cc-ready 1.5s ease-in-out infinite; }
@keyframes cc-ready { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.cc-roll.is-rolling { animation: none; }

/* tulisan singkat di atas papan: Naik! / Merosot! */
.cc-flash { position: absolute; left: 50%; top: 9%; transform: translate(-50%, -50%) scale(.6); margin: 0; padding: .4em 1.1em; border-radius: 999px; font: 800 clamp(.95rem, 4.2cqw, 1.8rem) var(--font-head); color: #fff; background: #3E9B6A; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; white-space: nowrap; }
.cc-flash.fall { background: #D8536C; }
.cc-flash.is-show { animation: cc-flash 1.7s ease both; }
@keyframes cc-flash { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 24% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -64%) scale(1); } }

/* ---------- panel ---------- */
.cc .sk-tools { flex-wrap: wrap; }
.cc-hint { margin: calc(var(--f2) * -1) 0 0; min-height: 1.2em; text-align: center; font: 600 .8125rem var(--font-body); color: var(--muted); }
.cc-bar { flex: 1; min-width: 0; height: 8px; border-radius: 999px; background: rgba(74, 47, 42, .1); overflow: hidden; }
.cc-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--pc); transition: width .6s ease; }
/* kartu pemain: satu baris = foto, bar progres, jumlah langkah, ikon manusia/bot */
.cc .sk-card { display: flex; align-items: center; gap: var(--f2); padding: var(--f2) var(--f3) var(--f2) var(--f1); }
.cc .sk-card-img { flex: none; order: 0; }
.cc .cc-bar { order: 1; }
.cc .lh-mv { position: static; order: 2; flex: none; min-width: 2.2ch; text-align: right; font: 700 .8125rem var(--font-head); color: var(--pc); opacity: 1; }
.cc .sk-card-who { position: static; order: 3; flex: none; display: grid; place-items: center; color: var(--pc); opacity: .9; }
.cc .sk-card.is-bot .sk-dots { top: 3px; left: 68px; }

/* ---------- slot karakter: 3 pemain sejajar, 5 pemain satu baris dengan kartu lebih kecil ---------- */
.cc .sk-slots[data-n="3"] { --n: 3; }
.cc .sk-slots[data-n="5"] { grid-template-columns: repeat(5, minmax(0, 112px)); gap: var(--f3); }
.cc .sk-slots[data-n="5"] .sk-slot { padding: var(--f3) var(--f1) var(--f2); border-radius: var(--f3); border-width: 2px; }
.cc .sk-slots[data-n="5"] .sk-slot-n { top: 5px; left: 8px; font-size: .6875rem; }
.cc .sk-slots[data-n="5"] .sk-ctrl, .cc .sk-slots[data-n="5"] .sk-badge2 { width: 40px; height: 26px; }
.cc .sk-slots[data-n="5"] .sk-q { font-size: 1.5rem; }
@media (max-width: 640px) {
  .cc .sk-slots[data-n="3"] { --n: 3; }
  .cc .sk-slots[data-n="5"] { gap: 5px; }
  .cc .sk-slots[data-n="5"] .sk-ctrl, .cc .sk-slots[data-n="5"] .sk-badge2 { width: 30px; height: 22px; }
}

/* ---------- panduan bergambar ---------- */
.cc-how { width: min(100%, 707px); }
.cc-figs { display: grid; gap: var(--f4); margin: var(--f3) 0; }
.cc-figs-1 { grid-template-columns: minmax(0, 1fr); }
.cc-figs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-fig { margin: 0; display: grid; gap: var(--f2); align-content: start; }
.cc-fig-art { position: relative; aspect-ratio: 1.618 / 1; border-radius: var(--f4); border: 2px solid var(--line); overflow: hidden; background: #E3C3A0; box-shadow: 0 13px 34px -24px rgba(74, 47, 42, .55); }
.cc-figs-1 .cc-fig-art { aspect-ratio: 2.4 / 1; }
.cc-fig-art svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cc-fig figcaption { display: grid; gap: 5px; }
.cc-fig figcaption b { font: 700 1rem var(--font-head); color: var(--ink); }
.cc-fig figcaption span { font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* gambar panduan dadu */
.cc-fig-art.cc-fig-dice { container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; padding: 2cqw 0; background: linear-gradient(180deg, #9FD8F0, #CDEBF7 54%, #8FD0E4 54%, #55A9C8); }
.cc-gd-panel { flex: none; padding: 2.4cqw 5cqw; border-radius: 5cqw; background: rgba(255, 255, 255, .78); border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 24px -14px rgba(20, 70, 100, .65), inset 0 1px 0 rgba(255, 255, 255, .8); }
.cc-gd-panel .cc-dice { gap: 6cqw; }
.cc-gd-panel .cc-die { --ds: clamp(26px, 9cqw, 56px); }
.cc-gd-sum { flex: none; margin: 0; padding: .05em .85em; border-radius: 999px; background: rgba(255, 255, 255, .85); font: 800 clamp(.9rem, 5.4cqw, 1.5rem) var(--font-head); color: #3A2A26; }
.cc-gd-steps { flex: none; display: flex; gap: 1.3cqw; }
.cc-gd-steps i { display: grid; place-items: center; width: 7cqw; height: 3.8cqw; border-radius: 40%; background: #E6CBA8; border: 1.5px solid #B08B64; font: 700 normal 2.1cqw/1 var(--font-head); color: #6A4731; }

@media (max-width: 900px) {
  .cc .sk-game { --bw: 100%; }
  .cc .sk-stage { max-width: min(100%, 560px); margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .cc-figs-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cc *, .cc-cloud, .cc-wave, .cc-foam, .cc-flag, .cc-ring, .cc-dust, .cc-sway, .cc-tree, .cc-wing, .cc-blades-in, .cc-bird, .cc-flapb, .cc-pring, .cc-drip, .cc-kelp, .cc-kelp-main, .cc-bubble { animation: none !important; }
}

.cc-fig-art .cc-fig-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
