/* Lari Jalur: tiga jalur, gerbang jawaban, pelari di kanvas */
.lj-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: clamp(6px, 1.2vw, 14px); background: linear-gradient(180deg, var(--sky-100), #fff); }
.lj-q { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--sky); border-radius: 16px; padding: 6px 12px; min-height: 2.6em; }
.lj-qtext { flex: 1; min-width: 0; font-weight: 800; color: var(--ink); font-size: clamp(15px, 2.4vw, 32px); line-height: 1.2; }
.lj-hud { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: clamp(13px, 1.6vw, 22px); }
#lives { color: var(--rose); letter-spacing: 2px; white-space: nowrap; }
.lj-score, .lj-prog { background: var(--sky-50); border: 2px solid var(--line); border-radius: 999px; padding: 1px 10px; font-variant-numeric: tabular-nums; }
.lj-score { border-color: var(--amber); }
.lj-stage { position: relative; flex: 1; min-height: 0; border-radius: 18px; overflow: hidden; border: 3px solid var(--sky-d); touch-action: none; user-select: none; -webkit-user-select: none; background: #bae6fd; }
.lj-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lj-opts { position: absolute; left: 0; right: 0; top: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 6px; pointer-events: none; }
.lj-opt { pointer-events: auto; min-height: 44px; border: 0; border-radius: 14px; background: rgba(255,255,255,.94); font: inherit; font-weight: 800; color: var(--ink); font-size: clamp(14px, 2.2vw, 30px); line-height: 1.1; padding: 4px 8px; cursor: pointer; box-shadow: 0 3px 0 rgba(15,23,42,.25); border-bottom: 5px solid var(--lc, var(--sky)); display: flex; align-items: center; justify-content: center; text-align: center; word-break: break-word; }
.lj-opt.on { background: var(--amber-100); }
.lj-opt.ok { background: #bbf7d0; border-bottom-color: var(--ok); }
.lj-opt.bad { background: var(--rose-100); border-bottom-color: var(--bad); }
.lj-fb { position: absolute; left: 50%; bottom: 8px; transform: translate(-50%, 16px); max-width: 94%; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 16px; font-weight: 700; font-size: clamp(13px, 1.7vw, 22px); line-height: 1.3; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; text-align: center; }
.lj-fb.show { opacity: 1; transform: translate(-50%, 0); }
.lj-fb.ok { background: var(--ok); }
.lj-fb.bad { background: var(--bad); }
@media (max-height: 520px) {
  .lj-wrap { gap: 4px; padding: 4px 8px; }
  .lj-q { border-width: 2px; padding: 2px 10px; min-height: 2.2em; }
  .lj-qtext { font-size: clamp(13px, 2.6vw, 20px); }
  .lj-stage { border-width: 2px; }
  .lj-opt { min-height: 36px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .lj-opts { grid-template-columns: repeat(3, 1fr); }
  .lj-opt { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .lj-fb { transition: none; } }

.ge-coin { display: inline-flex; align-items: center; gap: 5px; background: #fef3c7; border: 2px solid #f59e0b; border-radius: 999px; padding: 1px 10px 1px 6px; font-variant-numeric: tabular-nums; }
.ge-coin::before { content: ''; width: .95em; height: .95em; border-radius: 50%; box-sizing: border-box; background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b); border: 2px solid #b45309; }
