/* SAMPAN · Gerakan Sampah Pada Tempatnya
   Dials: ENERGY 2 / RHYTHM 2 / MOTION 2
   Palet: kertas krem, hijau hutan, amber aksen */

:root {
  --paper: #f5f0e4;
  --paper-deep: #ece4d2;
  --ink: #1b2b1f;
  --ink-soft: #4a5a4e;
  --leaf: #2e6b3e;
  --leaf-deep: #20502c;
  --amber: #e29a2e;
  --amber-deep: #b57614;
  --bin-organic: #2e6b3e;
  --bin-anorganic: #35618f;
  --bin-b3: #b03a2e;
  --line: rgba(27, 43, 31, 0.18);
  --card: #fbf8f0;
  --shadow: 0 10px 30px rgba(27, 43, 31, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Epilogue", "Segoe UI", sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* pola titik halus, identitas halaman */
  background-image: radial-gradient(rgba(27, 43, 31, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: var(--leaf-deep); }

::selection { background: var(--amber); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(245, 240, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 30px; height: 30px; fill: var(--leaf); flex: none; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 48px) 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.kicker {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 900;
}
.hero h1 em {
  font-style: italic;
  color: var(--leaf);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.28em;
  background: var(--amber);
  opacity: 0.45;
  z-index: -1;
  border-radius: 3px;
}

.hero .lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-ctas { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--leaf);
  color: #fff;
}
.btn-primary:hover { background: var(--leaf-deep); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-small { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Tong sampah (komponen visual) ---------- */

.bin {
  position: relative;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.bin-cap {
  width: 62px;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: var(--bc, var(--leaf));
  opacity: 0.85;
  transition: transform 0.15s;
}
.bin-body {
  width: 72px;
  height: 74px;
  border-radius: 6px 6px 10px 10px;
  background: var(--bc, var(--leaf));
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bin-body::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 0 rgba(255, 255, 255, 0.22), 0 28px 0 rgba(255, 255, 255, 0.14);
}
.bin-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bin:hover .bin-body, .bin.is-hot .bin-body { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(27, 43, 31, 0.25); }
.bin:hover .bin-cap { transform: translateY(-5px); }
.bin.shake { animation: binshake 0.4s; }
.bin.drop-in { animation: bindrop 0.35s; }

@keyframes binshake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
@keyframes bindrop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  70% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.bin-organic { --bc: var(--bin-organic); }
.bin-anorganic { --bc: var(--bin-anorganic); }
.bin-b3 { --bc: var(--bin-b3); }

/* ---------- Hero game ---------- */

.hero-game {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
  text-align: center;
}

.hero-game-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.hero-game-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber-deep);
}
.hero-game-count { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.hero-prompt { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 18px; min-height: 1.6em; }
.hero-prompt strong { color: var(--ink); font-size: 1.12rem; }

.hero-bins {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 26px);
  margin-bottom: 14px;
}

.hero-feedback { min-height: 1.8em; font-weight: 600; font-size: 0.95rem; }
.hero-feedback.ok { color: var(--leaf-deep); }
.hero-feedback.err { color: var(--bin-b3); }

/* ---------- Statistik hero ---------- */

.hero-stats {
  grid-column: 1 / -1;
  border-top: 2px dashed var(--line);
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3rem);
  color: var(--leaf-deep);
  line-height: 1;
}
.stat-unit { font-weight: 700; font-size: 0.85rem; color: var(--amber-deep); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-cap { font-size: 0.88rem; color: var(--ink-soft); margin-top: 2px; max-width: 26ch; }

.stat-src {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.stat-src a { color: var(--leaf-deep); font-weight: 600; }

/* ---------- Bagian (sections) umum ---------- */

.sec {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 48px);
}

.sec-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: clamp(28px, 4vw, 44px); }

.sec-no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--amber-deep);
  border: 2px solid var(--amber);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--card);
}

.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; }
.sec-lead { color: var(--ink-soft); margin-top: 8px; max-width: 60ch; }

/* ---------- Bagian: Kenapa ---------- */

.sec-kenapa { background: linear-gradient(180deg, transparent, rgba(46, 107, 62, 0.05)); }

.kenapa-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.kenapa-fig {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  position: sticky;
  top: 96px;
}
.kenapa-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kenapa-fig figcaption {
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.kenapa-facts { list-style: none; display: grid; gap: 18px; }

.kenapa-facts li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--leaf);
  border-radius: 12px;
  padding: 20px 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kenapa-facts li:nth-child(2) { border-left-color: var(--amber); }
.kenapa-facts li:nth-child(3) { border-left-color: var(--bin-b3); }
.kenapa-facts li:hover { transform: translateX(6px); box-shadow: var(--shadow); }

.kenapa-facts h3 { font-size: 1.2rem; margin-bottom: 6px; }
.kenapa-facts p { color: var(--ink-soft); font-size: 0.95rem; }

.lindi {
  margin-top: 30px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.lindi h3 { font-size: 1.3rem; color: var(--amber); font-style: italic; }
.lindi p { font-size: 0.95rem; color: rgba(245, 240, 228, 0.85); }

/* ---------- Bagian: Perjalanan ---------- */

.journey-track { margin-bottom: 18px; overflow: hidden; }

.journey-svg { width: 100%; height: auto; display: block; }

.journey-path {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-dasharray: 2 14;
  stroke-linecap: round;
  animation: marse 24s linear infinite;
}
@keyframes marse { to { stroke-dashoffset: -300; } }

.jdot-svg { fill: var(--paper); stroke: var(--leaf); stroke-width: 3; }

.journey-nodes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.jnode {
  flex: 1 1 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.jnode:hover { transform: translateY(-3px); border-color: var(--leaf); }
.jnode.is-active { background: var(--leaf); border-color: var(--leaf); color: #fff; }

.jnum {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.85rem;
}

.journey-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 3.4vw, 34px);
  box-shadow: var(--shadow);
  min-height: 120px;
}

.jpanel h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--leaf-deep); }
.jpanel p { color: var(--ink-soft); max-width: 72ch; }

.jpanel.is-active { animation: fadeup 0.4s ease; }
@keyframes fadeup {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Bagian: Peta ---------- */

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--leaf); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.map-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.map-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

#java-map { width: 100%; height: auto; display: block; }

.java-land {
  fill: #dfe8d3;
  stroke: var(--leaf);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.prov-lines line {
  stroke: rgba(27, 43, 31, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}

.prov-labels text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  fill: rgba(27, 43, 31, 0.45);
  text-anchor: middle;
}

.tpa-dot { cursor: pointer; }
.tpa-dot circle.core {
  fill: var(--amber);
  stroke: var(--ink);
  stroke-width: 2;
  transition: r 0.15s;
}
.tpa-dot:hover circle.core, .tpa-dot:focus circle.core { r: 11; }
.tpa-dot .ring {
  fill: none;
  stroke: var(--amber-deep);
  stroke-width: 2;
  opacity: 0;
}
.tpa-dot.is-sel .ring {
  opacity: 1;
  animation: ringpulse 1.8s ease-out infinite;
}
.tpa-dot.is-sel circle.core { fill: var(--leaf); stroke: #fff; stroke-width: 2.5; }
.tpa-dot.off { display: none; }
.tpa-dot:focus { outline: none; }
.tpa-dot:focus-visible circle.core { stroke: var(--amber-deep); stroke-width: 4; }

@keyframes ringpulse {
  0% { r: 9; opacity: 0.9; }
  100% { r: 22; opacity: 0; }
}

.map-detail {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-detail-empty { color: rgba(245, 240, 228, 0.6); font-size: 0.95rem; }

.map-detail h3 { font-size: 1.5rem; color: var(--amber); margin-bottom: 4px; }
.md-prov { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(245, 240, 228, 0.6); margin-bottom: 14px; }
.md-vol { font-family: var(--font-display); font-weight: 900; font-size: 2.1rem; color: #fff; line-height: 1; }
.md-vol small { font-size: 0.9rem; font-weight: 600; font-family: var(--font-body); color: rgba(245, 240, 228, 0.65); display: block; margin-top: 4px; }
.md-note { margin-top: 14px; font-size: 0.9rem; color: rgba(245, 240, 228, 0.8); border-top: 1px dashed rgba(245, 240, 228, 0.3); padding-top: 12px; }

.map-detail .pop { animation: fadeup 0.35s ease; }

.map-note { margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); }

.bars { margin-top: 40px; }
.bars h3 { font-size: 1.25rem; margin-bottom: 18px; }

.bar-row {
  display: grid;
  grid-template-columns: 170px 1fr 130px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.bar-name { font-weight: 600; font-size: 0.88rem; text-align: right; }
.bar-track { height: 22px; background: var(--paper-deep); border-radius: 6px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--leaf), var(--amber));
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-val { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Bagian: Tips ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.cat {
  border-radius: 14px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--cc, var(--leaf));
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-organic { --cc: var(--bin-organic); }
.cat-anorganic { --cc: var(--bin-anorganic); }
.cat-b3 { --cc: var(--bin-b3); }

.cat h3 { font-size: 1.4rem; color: var(--cc); margin-bottom: 6px; }
.cat-share { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }

.cat ul { list-style: none; margin-bottom: 14px; }
.cat li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.cat li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cc);
}

.cat-dest {
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.checklist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: var(--shadow);
}

.checklist-head { margin-bottom: 18px; }
.checklist-head h3 { font-size: 1.35rem; }
.checklist-head p { color: var(--ink-soft); font-size: 0.9rem; }

.check-items { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }

.check-items label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.check-items label:hover { background: var(--paper-deep); }

.check-items input {
  appearance: none;
  width: 22px; height: 22px;
  flex: none;
  margin-top: 1px;
  border: 2px solid var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.check-items input:checked { background: var(--leaf); border-color: var(--leaf); }
.check-items input:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.check-items input:checked + span { color: var(--ink-soft); text-decoration: line-through; }

.check-meter {
  margin-top: 22px;
  height: 12px;
  background: var(--paper-deep);
  border-radius: 6px;
  overflow: hidden;
}
.check-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--leaf), var(--amber));
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.check-label { margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Bagian: Uji Diri ---------- */

.game {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.game-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.game-head h3 { font-size: 1.35rem; }
.game-head p { color: var(--ink-soft); font-size: 0.9rem; }

.game-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--leaf-deep);
  background: var(--paper-deep);
  border-radius: 10px;
  padding: 6px 14px;
  flex: none;
}

.game-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 64px;
  padding: 14px;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
}

.gitem {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.3s;
}
.gitem:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 8px 14px rgba(27, 43, 31, 0.2); }
.gitem.is-sel { background: var(--amber); border-color: var(--amber-deep); transform: scale(1.06); }
.gitem.is-drag { opacity: 0.35; }
.gitem.gone { opacity: 0; transform: scale(0.6); pointer-events: none; }

.gitem-ghost {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.1) rotate(-3deg);
  box-shadow: 0 14px 24px rgba(27, 43, 31, 0.35);
}

.game-bins {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 60px);
  padding: 18px 0 8px;
}
.bin-large { width: 110px; }
.bin-large .bin-body { height: 96px; }
.bin-large .bin-name { font-size: 0.85rem; }
.bin.is-hot { border-radius: 50%; }
.bin-flash-ok .bin-body { animation: bindrop 0.35s; }

.game-feedback { min-height: 1.8em; text-align: center; font-weight: 600; margin-top: 14px; }
.game-feedback.ok { color: var(--leaf-deep); }
.game-feedback.err { color: var(--bin-b3); }

.game-result {
  margin-top: 18px;
  background: var(--leaf);
  color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
  animation: fadeup 0.4s ease;
}
.game-result h4 { font-size: 1.4rem; margin-bottom: 6px; }
.game-result p { color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; font-size: 0.92rem; }

.quiz {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: var(--shadow);
}

.quiz-head { margin-bottom: 22px; }
.quiz-head h3 { font-size: 1.35rem; }
.quiz-head p { color: var(--ink-soft); font-size: 0.9rem; }

.quiz-list { list-style: none; display: grid; gap: 18px; }

.q-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--paper);
}
.q-item h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; margin-bottom: 12px; }
.q-item h4 .qno { color: var(--amber-deep); font-family: var(--font-display); font-style: italic; margin-right: 6px; }

.q-opts { display: grid; gap: 8px; }

.q-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 9px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}
.q-opt:hover:not(:disabled) { border-color: var(--leaf); transform: translateX(4px); }
.q-opt:disabled { cursor: default; opacity: 0.75; }
.q-opt.is-correct { background: var(--leaf); border-color: var(--leaf); color: #fff; opacity: 1; }
.q-opt.is-wrong { background: var(--bin-b3); border-color: var(--bin-b3); color: #fff; opacity: 1; }

.q-expl {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  padding-left: 12px;
  animation: fadeup 0.3s ease;
}

.quiz-result {
  margin-top: 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 20px 24px;
  font-weight: 600;
  animation: fadeup 0.4s ease;
}
.quiz-result strong { color: var(--amber); font-family: var(--font-display); font-size: 1.2rem; }

/* ---------- Bagian: Komitmen ---------- */

.sec-komitmen { background: linear-gradient(180deg, transparent, rgba(226, 154, 46, 0.1)); }

.pledge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pledge-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.88rem; }
.field input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--leaf); outline: none; }

.form-msg { font-size: 0.85rem; font-weight: 600; color: var(--bin-b3); min-height: 1.2em; }

.pledge-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: clamp(24px, 3.6vw, 36px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px dashed var(--amber);
}
.pledge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 240, 228, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.pledge-card > * { position: relative; }

.pledge-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 14px;
}
.pledge-text { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; }
.pledge-sign {
  margin-top: 18px;
  font-style: italic;
  color: rgba(245, 240, 228, 0.7);
  font-size: 0.92rem;
}
.pledge-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.pledge-card .btn-ghost { color: var(--paper); border-color: var(--paper); }
.pledge-card .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.pledge-card.pop { animation: cardpop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cardpop {
  0% { transform: scale(0.92) rotate(-1deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- Bagian: Galeri ---------- */

.gallery {
  columns: 3;
  column-gap: 16px;
}

.g-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 4px 14px rgba(27, 43, 31, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.g-item:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow); }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(245, 240, 228, 0.8);
  padding: clamp(40px, 6vw, 64px) clamp(18px, 4vw, 48px) 28px;
  margin-top: 40px;
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 32px;
}

.foot-brand .brand-mark { width: 34px; height: 34px; fill: var(--amber); }
.foot-name { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--paper); margin-top: 8px; letter-spacing: 0.06em; }
.foot-tag { font-size: 0.85rem; margin-top: 4px; }

.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-nav a { color: rgba(245, 240, 228, 0.8); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.foot-nav a:hover { color: var(--amber); }

.foot-col h4 { color: var(--paper); font-size: 1rem; margin-bottom: 12px; }
.foot-col ul { list-style: none; }
.foot-col li { font-size: 0.82rem; margin-bottom: 8px; }
.foot-col a { color: rgba(245, 240, 228, 0.8); }
.foot-col a:hover { color: var(--amber); }
.foot-lic { font-style: italic; opacity: 0.6; }

.foot-meta {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 240, 228, 0.15);
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.7;
}

/* ---------- Animasi masuk (reveal) ---------- */

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv.in { opacity: 1; transform: translateY(0); }

.rv:nth-child(2) { transition-delay: 0.08s; }
.rv:nth-child(3) { transition-delay: 0.16s; }
.rv:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */

@media (max-width: 1020px) {
  .gallery { columns: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-game { max-width: 520px; }
  .kenapa-grid { grid-template-columns: 1fr; }
  .kenapa-fig { position: static; }
  .cats { grid-template-columns: 1fr; }
  .pledge { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .check-items { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .lindi { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-name { text-align: left; }
  .bin { width: 70px; }
  .bin-body { width: 58px; height: 60px; }
  .bin-cap { width: 48px; }
  .bin-large { width: 84px; }
  .bin-large .bin-body { width: 66px; height: 74px; }
  .game-head { flex-direction: column; }
}

/* ============================================================
   Pengembangan 2: waktu terurai, simulator, memori, pencapaian
   ============================================================ */

/* ---------- Bagian: Waktu terurai ---------- */

.decay {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: start;
}

.decay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.decay-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, color 0.2s;
}
.decay-item:hover { transform: translateY(-3px); border-color: var(--leaf); }
.decay-item.is-sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.decay-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.decay-empty { color: var(--ink-soft); }
.decay-name { font-size: 1.35rem; margin-bottom: 4px; }
.decay-time {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--leaf-deep);
  line-height: 1.1;
  margin-bottom: 16px;
}
.decay-time.warn { color: var(--bin-b3); }
.decay-bar {
  height: 14px;
  background: var(--paper-deep);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 8px;
}
.decay-fill {
  height: 100%;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--leaf), var(--amber));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.decay-fill.warn { background: var(--bin-b3); }
.decay-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.decay-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  padding-left: 12px;
}

@media (max-width: 900px) {
  .decay { grid-template-columns: 1fr; }
  .decay-panel { position: static; }
  .decay-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Bagian: Simulator ---------- */

.sim {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: var(--shadow);
}

.sim-ctrl { display: flex; flex-direction: column; gap: 18px; }
.sim-ctrl label {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sim-ctrl strong { color: var(--leaf-deep); white-space: nowrap; }
.sim-ctrl input[type="range"] {
  width: 100%;
  accent-color: var(--leaf);
  height: 26px;
  cursor: pointer;
  margin-top: 4px;
}

.sim-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}
.sim-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.sim-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--leaf-deep);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.sim-cap { font-size: 0.78rem; color: var(--ink-soft); }
.sim-save {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.sim-save strong { color: var(--amber); }
.sim-note {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .sim { grid-template-columns: 1fr; }
}

/* ---------- Game memori ---------- */

.mem {
  margin-top: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: var(--shadow);
}

.mem-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.mem-head h3 { font-size: 1.35rem; }
.mem-head p { color: var(--ink-soft); font-size: 0.9rem; }
.mem-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--leaf-deep);
  background: var(--paper-deep);
  border-radius: 10px;
  padding: 8px 14px;
  flex: none;
  white-space: nowrap;
}

.mem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mem-card {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  perspective: 700px;
}
.mem-card:disabled { cursor: default; }

.mem-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.mem-card.is-up .mem-inner { transform: rotateY(180deg); }

.mem-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.3;
}
.mem-front { background: var(--ink); }
.mem-front::after {
  content: "?";
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--amber);
}
.mem-back {
  background: var(--card);
  border: 2px solid var(--leaf);
  color: var(--ink);
  transform: rotateY(180deg);
}
.mem-card.is-match .mem-back { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.mem-card.is-wrong .mem-back { background: var(--bin-b3); border-color: var(--bin-b3); color: #fff; animation: binshake 0.4s; }

.mem-best {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  min-height: 1.2em;
}

.mem-result {
  margin-top: 16px;
  background: var(--leaf);
  color: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  text-align: center;
  animation: fadeup 0.4s ease;
}
.mem-result h4 { font-size: 1.3rem; margin-bottom: 6px; }
.mem-result p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 12px; }

@media (max-width: 900px) { .mem-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .mem-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-out { grid-template-columns: 1fr; }
}

/* ---------- Pencapaian ---------- */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.badge-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.badge-card.earned {
  border-color: var(--amber);
  background: linear-gradient(160deg, var(--card), rgba(226, 154, 46, 0.14));
}
.badge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.badge-ico {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  background: var(--paper-deep);
  color: var(--ink-soft);
  border: 2px dashed var(--line);
}
.badge-card.earned .badge-ico {
  background: var(--amber);
  border: 2px solid var(--amber-deep);
  color: var(--ink);
}
.badge-name { font-weight: 700; font-size: 0.98rem; }
.badge-desc { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.badge-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  color: var(--ink-soft);
}
.badge-card.earned .badge-status { color: var(--amber-deep); }

@media (max-width: 900px) { .badge-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .badge-grid { grid-template-columns: 1fr; } }

/* ---------- Toast pencapaian ---------- */

.badge-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--amber);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.badge-toast.show { opacity: 1; transform: translateY(0); }
