/* Congklak: papan di kanvas, bilah info, kartu soal */
.cg-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: clamp(8px, 1.4vw, 18px); background: linear-gradient(135deg, var(--sky-50), var(--amber-100) 85%); }
.cg-info { flex: 0 0 auto; background: #fff; border: 3px solid var(--sky); border-radius: 14px; padding: 8px 14px; font-weight: 800; color: var(--ink); font-size: clamp(14px, 2vw, 26px); line-height: 1.25; min-height: 1.9em; display: flex; align-items: center; justify-content: center; text-align: center; }
.cg-info .p { display: inline-block; padding: 1px 12px; border-radius: 999px; color: #fff; margin-right: 8px; font-size: .8em; }
.cg-stage { position: relative; flex: 1 1 0; min-height: 0; border: 3px solid var(--line); border-radius: 16px; overflow: hidden; background: #78350f; }
.cg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.cg-soal { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: min(560px, 92%); background: #fff; border: 4px solid var(--sky); border-radius: 18px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(15, 23, 42, .45); z-index: 4; }
.cg-tq { font-weight: 800; color: var(--ink); font-size: clamp(16px, 2.2vw, 26px); text-align: center; margin-bottom: 10px; line-height: 1.25; }
.cg-opts { display: grid; gap: 8px; }
.cg-opts button { min-height: 48px; border: 0; border-radius: 12px; background: var(--sky-100); color: var(--ink); font: inherit; font-weight: 800; font-size: clamp(14px, 1.8vw, 22px); cursor: pointer; padding: 6px 12px; box-shadow: 0 3px 0 var(--line); text-align: center; }
.cg-opts button:active { transform: translateY(2px); box-shadow: none; }
.cg-opts button.benar { background: #bbf7d0; box-shadow: 0 0 0 3px #059669; }
.cg-opts button.salah { background: var(--rose-100); box-shadow: 0 0 0 3px #e11d48; }
.cg-opts button:disabled { cursor: default; }
.cg-fb { min-height: 1.3em; margin-top: 8px; font-weight: 800; text-align: center; font-size: clamp(13px, 1.6vw, 20px); line-height: 1.3; }
.cg-fb.ok { color: #047857; } .cg-fb.salah { color: #be123c; }
.cg-aturan { margin-top: 10px; background: #f8fafc; border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; text-align: left; }
.cg-aturan summary { font-weight: 800; cursor: pointer; }
.cg-aturan ul { margin: 6px 0; padding-left: 20px; } .cg-aturan li { margin: 3px 0; line-height: 1.35; } .cg-aturan p { margin: 4px 0; color: var(--muted); font-weight: 600; }
@media (max-height: 520px) {
  .cg-soal { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
  .cg-body { padding: 6px 10px; gap: 4px; }
  .cg-info { padding: 2px 10px; border-width: 2px; font-size: 14px; min-height: 1.6em; }
  .cg-soal { padding: 8px 10px; } .cg-opts { gap: 5px; } .cg-opts button { min-height: 38px; }
}
