/* Meiword Right or Wrong — "Benar atau Salah?" */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --indigo: #1e1b4b; --indigo2: #6366f1; --gold: #f59e0b;
  --cream: #fffbf2; --card: #ffffff; --ink: #26233d; --muted: #6f6a8a;
  --line: #efe9dc; --green: #16a34a; --green-bg: #f0fdf4; --red: #dc2626; --red-bg: #fef2f2;
}
body {
  font-family: 'Inter', system-ui, sans-serif; color: var(--ink); min-height: 100vh;
  background-color: var(--cream);
  background-image: radial-gradient(#ecd9a8 1.3px, transparent 1.3px);
  background-size: 22px 22px;
}
h1, h2, h3, .grotesque { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 16px 48px; }
a { color: var(--indigo2); }
.backlink { display: inline-block; font-weight: 700; font-size: 14px; text-decoration: none; margin-bottom: 14px; }
.backlink:hover { text-decoration: underline; }

/* ---------- header / hero ---------- */
.hero { text-align: center; padding: 18px 0 6px; }
.hero-badge {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--indigo); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(30,27,75,.25);
}
.hero h1 { font-size: 42px; font-weight: 800; color: var(--indigo); letter-spacing: -.5px; }
.hero .tag { font-size: 17px; font-weight: 700; color: var(--gold); margin-top: 2px; }
.hero p { color: var(--muted); max-width: 560px; margin: 10px auto 0; font-size: 15px; line-height: 1.55; }
.hero p b { color: var(--ink); }

/* ---------- mode card ---------- */
.mode-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 22px; margin-top: 24px; box-shadow: 0 4px 14px rgba(30,27,75,.05);
  display: flex; gap: 18px; align-items: center; text-align: left;
}
.mode-ic {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; background: #eef2ff;
  display: flex; align-items: center; justify-content: center;
}
.mode-card h2 { font-size: 21px; color: var(--indigo); }
.mode-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; }
.chip-free { background: var(--green-bg); color: var(--green); }
.chip-bank { background: #fff7e6; color: #b45309; }
.chip-best { background: #eef2ff; color: var(--indigo); }
.btn-play {
  margin-left: auto; flex: 0 0 auto; background: var(--gold); color: #231a04; font-weight: 800;
  font-size: 16px; border: none; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 0 #d97706; transition: transform .08s, box-shadow .08s;
}
.btn-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #d97706; }
@media (max-width: 620px) { .mode-card { flex-direction: column; text-align: center; } .mode-ic { margin: 0 auto; } .btn-play { margin: 6px auto 0; } .chips { justify-content: center; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.step h3 { font-size: 15px; color: var(--indigo); margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.note-strip {
  margin-top: 16px; background: #eef2ff; border-radius: 14px; padding: 13px 16px;
  font-size: 13.5px; color: var(--indigo); line-height: 1.6; text-align: center;
}
footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 34px; }

/* ---------- play: HUD ---------- */
.hud { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.hud .stat { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 86px; }
.hud .stat .k { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); }
.hud .stat .v { font-size: 19px; font-weight: 800; color: var(--indigo); font-family: 'Bricolage Grotesque', sans-serif; }
.timebar { height: 10px; background: #eee7d5; border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.timebar-fill { height: 100%; width: 100%; background: var(--gold); border-radius: 999px; }
.timebar-fill.low { background: var(--red); }

/* ---------- play: card ---------- */
.rw-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 26px 22px; box-shadow: 0 6px 18px rgba(30,27,75,.06); text-align: center; }
.rw-hint { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; min-height: 18px; }
.rw-en { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(23px, 5vw, 32px); font-weight: 700; color: var(--indigo); line-height: 1.35; }
.rw-id { color: var(--muted); font-size: 15px; margin-top: 10px; }
.verdict-row { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.btn-verdict {
  flex: 1; max-width: 220px; border: none; border-radius: 16px; padding: 16px 10px; cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 800; color: #fff;
  transition: transform .08s, opacity .15s;
}
.btn-verdict:active { transform: scale(.97); }
.btn-verdict:disabled { opacity: .45; cursor: default; }
.btn-right { background: var(--green); box-shadow: 0 4px 0 #15803d; }
.btn-wrong { background: var(--red); box-shadow: 0 4px 0 #b91c1c; }
.chips-zone { display: none; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.chips-zone.on { display: flex; }
.word-chip {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 700; color: var(--indigo);
  background: #f6f3ff; border: 2px solid #ddd6fe; border-radius: 12px; padding: 8px 13px; cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s;
}
.word-chip:hover { background: #ede9fe; }
.word-chip.miss { background: var(--red-bg); border-color: #fecaca; color: var(--red); text-decoration: line-through; cursor: default; }
.word-chip.hit { background: var(--green-bg); border-color: #86efac; color: var(--green); cursor: default; }
.word-chip.reveal { background: var(--green-bg); border-color: var(--green); color: var(--green); cursor: default; animation: pulse .5s ease 2; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.shake { animation: shake .3s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- feedback ---------- */
.feedback { display: none; margin-top: 22px; border-radius: 16px; padding: 18px; text-align: left; }
.feedback.on { display: block; }
.feedback.good { background: var(--green-bg); border: 1.5px solid #bbf7d0; }
.feedback.partial { background: #fffbeb; border: 1.5px solid #fde68a; }
.feedback.bad { background: var(--red-bg); border: 1.5px solid #fecaca; }
.feedback .fb-head { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.feedback.good .fb-head { color: var(--green); }
.feedback.partial .fb-head { color: #b45309; }
.feedback.bad .fb-head { color: var(--red); }
.fb-fix { font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.fb-fix b { color: var(--green); background: #dcfce7; border-radius: 6px; padding: 0 5px; }
.fb-note { color: #4c4763; font-size: 14px; line-height: 1.6; margin-top: 8px; }
.btn-next {
  margin-top: 14px; background: var(--indigo); color: #fff; border: none; border-radius: 999px;
  padding: 12px 26px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 4px 0 #12102e;
}
.btn-next:active { transform: translateY(3px); box-shadow: 0 1px 0 #12102e; }

/* ---------- end ---------- */
.end-card { text-align: center; }
.stars { display: flex; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.stars svg { width: 44px; height: 44px; }
.end-title { font-size: 30px; color: var(--indigo); font-weight: 800; }
.end-stats { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; flex-wrap: wrap; }
.end-stats .stat { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 96px; }
.end-stats .k { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); }
.end-stats .v { font-size: 22px; font-weight: 800; color: var(--indigo); font-family: 'Bricolage Grotesque', sans-serif; }
.review { margin-top: 20px; text-align: left; }
.review h2 { font-size: 18px; color: var(--indigo); margin-bottom: 10px; }
.rev-item { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 9px; }
.rev-top { display: flex; gap: 9px; align-items: flex-start; }
.rev-badge { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; padding: 3px 9px; border-radius: 999px; margin-top: 3px; }
.rev-badge.perfect { background: var(--green-bg); color: var(--green); }
.rev-badge.partial { background: #fffbeb; color: #b45309; }
.rev-badge.missed { background: var(--red-bg); color: var(--red); }
.rev-en { font-weight: 700; font-size: 15px; line-height: 1.45; }
.rev-fix { font-size: 14px; margin-top: 5px; line-height: 1.55; }
.rev-fix b { color: var(--green); }
.rev-note { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.55; }
.rev-listen { margin-left: auto; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.end-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.btn-ghost { background: var(--card); border: 1.5px solid var(--line); color: var(--indigo); font-weight: 800; font-size: 15px; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none; }
.btn-wa { background: #22c55e; color: #fff; border: none; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 #16a34a; }
.cta-card { margin-top: 18px; background: var(--indigo); border-radius: 18px; padding: 20px; display: flex; gap: 16px; align-items: center; text-align: left; }
.cta-card h3 { color: #fff; font-size: 18px; }
.cta-card p { color: #c7d2fe; font-size: 13.5px; line-height: 1.55; margin-top: 3px; }
.cta-card a { flex: 0 0 auto; background: var(--gold); color: #231a04; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 11px 20px; text-decoration: none; }
@media (max-width: 620px) { .cta-card { flex-direction: column; text-align: center; } }

/* ---------- levels (revisi 2026-10-23) ---------- */
.mode-card + .mode-card { margin-top: 14px; }
.lvl-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 30px; font-weight: 800; color: var(--indigo); }
.chip-done { background: var(--green-bg); color: var(--green); }
.chip-lock { background: #f3efe3; color: #8a8570; }
.mode-card.locked { opacity: .72; }
.mode-card.locked .btn-play { background: #e7e1cf; color: #8a8570; box-shadow: none; cursor: default; }
.pass-note { font-weight: 700; font-size: 15px; margin-top: 10px; min-height: 20px; }
.pass-note.pass-ok { color: var(--green); }
.pass-note.pass-no { color: #b45309; }
