/* Cek progres joki: dipakai di beranda (index.html) dan halaman lacak (lacak-joki.html) */
.cjk {
  --navy: #1e2a4f; --navy-2: #27365f; --biru: #005da7; --biru-2: #2976c7; --kuning: #feb300;
  --tinta: #191c1e; --redup: #5b6270; --garis: #e3e6ea; --isi: #f2f4f6; --merah: #b3261e; --merah-bg: #fdecea;
  display: grid; grid-template-columns: 1fr; background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(30,42,79,.06), 0 12px 32px -18px rgba(30,42,79,.35);
  font-family: 'Sora', sans-serif; color: var(--tinta);
}
@media (min-width: 860px) { .cjk { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* ---------- Panel kiri (navy) ---------- */
.cjk-panel { background: radial-gradient(circle at 88% 12%, rgba(254,179,0,.22) 0, transparent 42%), linear-gradient(135deg, #005da7 0%, #28376b 60%, #1e2a4f 100%); color: #fff; padding: 24px 20px 22px; display: flex; flex-direction: column; }
@media (min-width: 860px) { .cjk-panel { padding: 40px 36px; } }
.cjk-judul { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0; }
@media (min-width: 860px) { .cjk-judul { font-size: 32px; } }
.cjk-lead { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.74); margin: 10px 0 0; max-width: 36em; }
@media (min-width: 860px) { .cjk-lead { font-size: 14px; } }

/* Kartu contoh: seperti tracker asli, mobil melaju sekali saat tampil */
.cjk-contoh { margin-top: 20px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 16px 16px 14px; }
@media (min-width: 860px) { .cjk-contoh { margin-top: 28px; padding: 20px 20px 18px; } }
.cjk-contoh-atas { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cjk-contoh-nama { font-size: 12.5px; font-weight: 700; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cjk-contoh-tanda { flex-shrink: 0; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.cjk-contoh-angka { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.cjk-contoh-angka small { font-size: 18px; font-weight: 800; margin-left: 2px; color: rgba(255,255,255,.7); }
.cjk-jalan { position: relative; height: 30px; margin-top: 14px; border-radius: 9999px; background: rgba(255,255,255,.1); }
.cjk-jalan::before { content: ''; position: absolute; left: 16px; right: 36px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 9px, transparent 9px 18px); }
.cjk-jalan-isi { position: absolute; left: 0; top: 0; bottom: 0; width: 68%; border-radius: 9999px; background: var(--kuning); }
.cjk-mobil { position: absolute; top: 50%; left: 68%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 9999px; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.cjk-mobil .material-symbols-outlined { font-size: 18px; font-variation-settings: 'FILL' 1, 'wght' 600; }
.cjk-finis { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 18px; color: rgba(255,255,255,.8); }
.cjk-contoh-bawah { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 11px; color: rgba(255,255,255,.65); }
.cjk-contoh-bawah b { color: #fff; font-weight: 700; }
.cjk-jalan.tunggu .cjk-jalan-isi { width: 6%; }
.cjk-jalan.tunggu .cjk-mobil { left: 6%; }
.cjk-jalan.siap .cjk-jalan-isi { transition: width 1.4s cubic-bezier(.22,1,.36,1) .15s; }
.cjk-jalan.siap .cjk-mobil { transition: left 1.4s cubic-bezier(.22,1,.36,1) .15s; }

.cjk-poin { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.cjk-poin li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.8); }
.cjk-poin .material-symbols-outlined { font-size: 18px; color: var(--kuning); flex-shrink: 0; margin-top: 1px; }
@media (max-width: 859px) { .cjk-poin { display: none; } }

/* ---------- Form kanan ---------- */
.cjk-form-wrap { padding: 20px 18px 22px; display: flex; flex-direction: column; }
@media (min-width: 860px) { .cjk-form-wrap { padding: 36px 40px; justify-content: center; } }
.cjk-tanya { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.cjk-tab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--isi); border-radius: 16px; }
.cjk-tab button { appearance: none; border: 0; background: transparent; border-radius: 12px; padding: 9px 4px; font: 700 12px 'Sora', sans-serif; color: var(--redup); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.cjk-tab button .material-symbols-outlined { font-size: 20px; }
.cjk-tab button[aria-selected="true"] { background: #fff; color: var(--biru); box-shadow: 0 1px 3px rgba(30,42,79,.12); }
.cjk-tab button[aria-selected="true"] .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 500; }
@media (min-width: 400px) { .cjk-tab button { flex-direction: row; justify-content: center; gap: 6px; font-size: 12.5px; padding: 10px 6px; } .cjk-tab button .material-symbols-outlined { font-size: 18px; } }
.cjk-info { font-size: 12px; line-height: 1.55; color: var(--redup); margin: 12px 2px 0; min-height: 3.1em; }

.cjk-form { margin-top: 14px; }
.cjk-baris + .cjk-baris { margin-top: 12px; }
.cjk-label { display: block; font-size: 12px; font-weight: 700; color: var(--tinta); margin: 0 0 6px 2px; }
.cjk-input-wrap { position: relative; }
.cjk-input { width: 100%; box-sizing: border-box; height: 48px; border-radius: 14px; border: 1.5px solid var(--garis); background: #fff; padding: 0 14px; font: 600 14.5px 'Sora', sans-serif; color: var(--tinta); outline: none; transition: border-color .15s, box-shadow .15s; }
.cjk-input::placeholder { color: #98a0aa; font-weight: 500; }
.cjk-input:focus { border-color: var(--biru-2); box-shadow: 0 0 0 3px rgba(41,118,199,.15); }
.cjk-input.salah { border-color: var(--merah); }
.cjk-input.pin { letter-spacing: .35em; font-weight: 800; font-size: 17px; }
.cjk-input.pin::placeholder { letter-spacing: normal; font-weight: 500; font-size: 14.5px; }
.cjk-input.kode { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 17px; }
.cjk-input.kode::placeholder { text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: 14.5px; }
.cjk-input.sandi { padding-right: 48px; }
.cjk-mata { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--redup); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cjk-mata:hover { background: var(--isi); }
.cjk-mata .material-symbols-outlined { font-size: 20px; }
.cjk-catatan { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #eef4fb; font-size: 11.5px; line-height: 1.5; color: #24456b; }
.cjk-catatan .material-symbols-outlined { font-size: 17px; flex-shrink: 0; color: var(--biru); }
.cjk-salah { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--merah-bg); color: var(--merah); font-size: 12px; font-weight: 600; line-height: 1.5; }
.cjk-kirim { appearance: none; border: 0; width: 100%; height: 50px; margin-top: 16px; border-radius: 9999px; background: var(--biru); color: #fff; font: 800 14px 'Sora', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background .15s, transform .1s; }
.cjk-kirim:hover { background: var(--biru-2); }
.cjk-kirim:active { transform: scale(.985); }
.cjk-kirim:disabled { opacity: .7; cursor: wait; }
.cjk-kirim .material-symbols-outlined { font-size: 20px; }

.cjk-hasil { margin-top: 16px; }
.cjk-hasil-judul { font-size: 12.5px; font-weight: 800; margin: 0 0 8px; }
.cjk-item { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; text-align: left; padding: 12px 12px 12px 14px; margin-top: 8px; border: 1.5px solid var(--garis); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.cjk-item:hover { border-color: var(--biru-2); background: #f7fafd; }
.cjk-item-game { flex-shrink: 0; font-size: 10px; font-weight: 800; padding: 4px 7px; border-radius: 8px; background: var(--navy); color: var(--kuning); }
.cjk-item-isi { flex: 1; min-width: 0; }
.cjk-item-judul { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cjk-item-sub { display: block; font-size: 11px; color: var(--redup); margin-top: 2px; }
.cjk-bar { display: block; height: 5px; border-radius: 9999px; background: var(--isi); margin-top: 7px; overflow: hidden; }
.cjk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--kuning); }
.cjk-item > .material-symbols-outlined { color: var(--biru); flex-shrink: 0; }

.cjk-bantu { margin: 16px 0 0; font-size: 12px; color: var(--redup); text-align: center; }
.cjk-bantu a { color: var(--biru); font-weight: 700; text-decoration: none; }
.cjk-bantu a:hover { text-decoration: underline; }
.cjk [hidden] { display: none !important; }
.cjk :focus-visible { outline: 2px solid var(--biru); outline-offset: 2px; }
.cjk-panel :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) { .cjk-jalan.siap .cjk-jalan-isi, .cjk-jalan.siap .cjk-mobil { transition: none; } .cjk-kirim, .cjk-tab button, .cjk-input { transition: none; } }
.cjk-contoh-bawah { flex-wrap: wrap; row-gap: 2px; }
.cjk-contoh-bawah span { white-space: nowrap; }
@media (max-width: 359px) {
  .cjk-panel { padding: 20px 16px; }
  .cjk-form-wrap { padding: 18px 14px 20px; }
  .cjk-tab button { font-size: 11px; padding: 8px 2px; }
  .cjk-contoh-angka { font-size: 34px; }
}

/* ---------- Versi ringkas (beranda) ---------- */
.cjk.ringkas { border-radius: 24px; }
.cjk.ringkas .cjk-poin, .cjk.ringkas .cjk-tanya, .cjk.ringkas .cjk-contoh-atas, .cjk.ringkas .cjk-contoh-angka { display: none; }
.cjk.ringkas .cjk-panel { padding: 20px 18px; }
.cjk.ringkas .cjk-judul { font-size: 20px; }
.cjk.ringkas .cjk-lead { font-size: 12.5px; margin-top: 6px; }
.cjk.ringkas .cjk-contoh { margin-top: 14px; padding: 12px 14px 10px; border-radius: 16px; }
.cjk.ringkas .cjk-jalan { margin-top: 0; height: 26px; }
.cjk.ringkas .cjk-mobil { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cjk.ringkas .cjk-mobil .material-symbols-outlined { font-size: 16px; }
.cjk.ringkas .cjk-contoh-bawah { margin-top: 8px; }
.cjk.ringkas .cjk-form-wrap { padding: 18px; }
.cjk.ringkas .cjk-info { min-height: 0; margin-top: 8px; font-size: 11.5px; }
.cjk.ringkas .cjk-form { margin-top: 10px; }
.cjk.ringkas .cjk-input { height: 44px; }
.cjk.ringkas .cjk-kirim { height: 46px; margin-top: 12px; }
.cjk.ringkas .cjk-bantu { margin-top: 10px; }
@media (min-width: 860px) {
  .cjk.ringkas { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .cjk.ringkas .cjk-panel { padding: 28px 28px; justify-content: center; }
  .cjk.ringkas .cjk-judul { font-size: 24px; }
  .cjk.ringkas .cjk-form-wrap { padding: 24px 28px; }
  .cjk.ringkas .cjk-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: end; }
  .cjk.ringkas .cjk-baris + .cjk-baris { margin-top: 0; }
  .cjk.ringkas .cjk-baris.penuh, .cjk.ringkas .cjk-catatan, .cjk.ringkas .cjk-salah, .cjk.ringkas .cjk-kirim { grid-column: 1 / -1; }
}
@media (max-width: 859px) {
  .cjk.ringkas .cjk-lead, .cjk.ringkas .cjk-contoh-bawah { display: none; }
  .cjk.ringkas .cjk-contoh { margin-top: 12px; padding: 8px; border-radius: 9999px; }
}
