@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('aset/PlusJakartaSans-VF.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --teal: #0F766E;
  --teal-gelap: #0B5C56;
  --mint: #CCF1E6;
  --koral: #F2734F;
  --tinta: #10302F;
  --krim: #FBF8F2;
  --garis: rgba(16, 48, 47, 0.12);
  --redup: rgba(16, 48, 47, 0.68);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--tinta);
  background: var(--krim);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#panggung {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 55% 55%, #FBF8F2 0%, #F3EFE6 50%, #DDEFE7 100%);
}
#kanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.kepala {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 28px; pointer-events: none;
}
.logo { height: 42px; width: auto; }
.lencana {
  font-size: 13px; font-weight: 600; color: var(--teal-gelap);
  background: rgba(204, 241, 230, 0.8); border: 1px solid rgba(15, 118, 110, 0.18);
  padding: 7px 12px; border-radius: 999px;
}
.judul { position: absolute; left: 28px; bottom: 26px; right: 28px; pointer-events: none; }
.judul h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em;
  text-wrap: balance;
}
.petunjuk { margin: 12px 0 0; font-size: 14px; color: var(--redup); display: flex; align-items: center; gap: 8px; }
.ikon-putar {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; display: inline-block;
}

/* titik penanda */
#titik { position: absolute; inset: 0; pointer-events: none; }
.titik {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  transition: opacity 0.25s;
}
.titik .no {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 6px 16px rgba(16, 48, 47, 0.25);
  transition: transform 0.2s, background 0.2s;
}
.titik .nm {
  font-size: 13px; font-weight: 700; color: var(--tinta);
  background: rgba(255, 255, 255, 0.92); padding: 4px 9px; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 48, 47, 0.12);
}
.titik:hover .no, .titik.aktif .no { transform: scale(1.12); background: var(--koral); }
.titik.sembunyi { opacity: 0; pointer-events: none; }
.titik:focus-visible { outline: none; }
.titik:focus-visible .no { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--teal); }

#muat {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  font-weight: 600; color: var(--teal-gelap); background: var(--krim);
  transition: opacity 0.5s;
}
#muat img { width: 54px; height: 54px; animation: denyut 1.2s ease-in-out infinite; }
#muat.selesai { opacity: 0; pointer-events: none; }
@keyframes denyut { 50% { transform: scale(0.88); opacity: 0.7; } }

/* panel */
#panel {
  height: 100vh; height: 100dvh; overflow-y: auto;
  background: #FFFFFF; border-left: 1px solid var(--garis);
  padding: 24px 26px 16px; display: flex; flex-direction: column; gap: 18px;
}
.blok h2 {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
}
.cip { display: flex; flex-wrap: wrap; gap: 8px; }
.cip button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--tinta);
  background: var(--krim); border: 1.5px solid var(--garis); border-radius: 999px;
  padding: 10px 16px; min-height: 44px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cip button:hover { border-color: var(--teal); }
.cip button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.cip button:focus-visible, #tahap:focus-visible, .saklar input:focus-visible + .trek { outline: 3px solid rgba(15, 118, 110, 0.4); outline-offset: 2px; }
.info {
  margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #F3FAF7; border: 1px solid rgba(15, 118, 110, 0.12);
  min-height: 100px;
}
.info h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.info p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(16, 48, 47, 0.86); }
.info.tahap { background: #FFF6F1; border-color: rgba(242, 115, 79, 0.18); }
.saklar { margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; min-height: 44px; }
.saklar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.trek { width: 46px; height: 26px; border-radius: 99px; background: rgba(16, 48, 47, 0.18); position: relative; transition: background 0.2s; flex: none; }
.trek::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.2s; }
.saklar input:checked + .trek { background: var(--teal); }
.saklar input:checked + .trek::after { transform: translateX(20px); }

#tahap { --isi: 0%; width: 100%; margin: 4px 0 0; height: 32px; cursor: pointer; background: transparent; -webkit-appearance: none; appearance: none; }
#tahap::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--koral) var(--isi), #DCDAD3 var(--isi)); }
#tahap::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--koral) var(--isi), #DCDAD3 var(--isi)); }
#tahap::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--koral); box-shadow: 0 2px 6px rgba(16, 48, 47, 0.25); }
#tahap::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--koral); box-shadow: 0 2px 6px rgba(16, 48, 47, 0.25); }
.skala { list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0 2px; font-size: 12px; font-weight: 600; color: var(--redup); }
.skala li { width: 34px; text-align: center; }
.skala li:first-child { text-align: left; }
.skala li:last-child { text-align: right; }
.skala li.aktif { color: var(--koral); }

.cegah { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: c; }
.cegah li { position: relative; padding-left: 38px; font-size: 15px; line-height: 1.5; counter-increment: c; }
.cegah li::before {
  content: counter(c); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint); color: var(--teal-gelap); font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.cegah b { font-weight: 700; }
.sumber { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--redup); }
.kaki { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--garis); font-size: 12px; color: var(--redup); }
.kaki p { margin: 0; }
.kaki .alamat { margin-top: 4px; }

@media (max-width: 880px) {
  body { display: block; overflow: auto; }
  #panggung { height: 62vh; height: 62svh; min-height: 380px; }
  #panel { height: auto; border-left: 0; border-top: 1px solid var(--garis); padding: 22px 18px 18px; border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; }
  .kepala { padding: 14px 16px; }
  .logo { height: 32px; }
  .lencana { font-size: 12px; padding: 6px 10px; }
  .judul { left: 16px; right: 16px; bottom: 34px; }
  .judul h1 { font-size: 26px; }
  .petunjuk { font-size: 12px; margin-top: 8px; }
  .titik .nm { display: none; }
  .titik.aktif .nm { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  #muat img { animation: none; }
}
