:root {
  --bg: #0a0b14;
  --bg-soft: #10121f;
  --card: rgba(23, 26, 43, .72);
  --card-solid: #151827;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --txt: #eceef7;
  --muted: #9ba0b8;
  --dim: #6f7590;
  --acc: #7c5cff;
  --acc-2: #46e0c8;
  --acc-3: #ff7ab8;
  --ok: #35d39a;
  --bad: #ff5f7a;
  --warn: #ffc25c;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .85);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: 0; pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.glow-a { width: 520px; height: 520px; background: #5b3cff; top: -180px; left: -120px; }
.glow-b { width: 460px; height: 460px; background: #0f9d8f; bottom: -200px; right: -100px; animation-delay: -7s; }
@keyframes float { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(30px,40px,0) } }

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: rgba(124, 92, 255, .45); }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 26px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(10, 11, 20, .72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--acc), #4a2fd0);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  box-shadow: 0 8px 20px -8px var(--acc);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.brand-text strong { font-weight: 700; }
.brand-text em { font-style: normal; color: var(--acc-2); letter-spacing: .3em; font-size: 11px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: .2s; }
.nav a:hover { color: var(--txt); background: rgba(255,255,255,.05); }
.nav a.active { color: var(--txt); background: rgba(124, 92, 255, .16); box-shadow: inset 0 0 0 1px rgba(124,92,255,.35); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: clamp(22px, 4vw, 44px) clamp(16px, 4vw, 44px) 80px; }
.footer {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 26px 20px 34px; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line);
}
.footer em { color: var(--muted); }

/* ---------- generic ---------- */
.card {
  background: linear-gradient(170deg, rgba(30,33,54,.82), rgba(18,20,34,.9));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line);
}
.pill.acc { color: #c3b6ff; background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.35); }
.pill.ok { color: #8ff0cf; background: rgba(53,211,154,.12); border-color: rgba(53,211,154,.3); }
.pill.bad { color: #ffb1c0; background: rgba(255,95,122,.12); border-color: rgba(255,95,122,.3); }
.pill.warn { color: #ffd899; background: rgba(255,194,92,.12); border-color: rgba(255,194,92,.3); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05); color: var(--txt); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(140deg, #8b6cff, #5f3df0);
  border-color: transparent; box-shadow: 0 14px 30px -14px rgba(124,92,255,.9);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.danger { color: #ffb1c0; border-color: rgba(255,95,122,.35); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.09); }

.grid { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- hero ---------- */
.hero { padding: 10px 0 26px; }
.hero .eyebrow {
  display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--acc-2); font-weight: 700;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px); margin: 14px 0 12px; font-weight: 750; max-width: 20ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #b9a8ff, #7c5cff 45%, #46e0c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); max-width: 62ch; font-size: 16px; }
.stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 24px; letter-spacing: -.03em; }
.stat span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- test cards ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 38px 0 16px; }
.section-head h2 { font-size: 20px; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.test-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.test-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px 200px at 100% 0%, rgba(124,92,255,.22), transparent 70%);
}
.test-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.test-card .desc { color: var(--muted); font-size: 13.5px; min-height: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.test-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.progress-mini { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-mini > i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-2)); border-radius: 999px; }

/* ---------- setup ---------- */
.setup { padding: 26px; }
.setup h2 { font-size: 24px; margin-bottom: 6px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.mode {
  text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); cursor: pointer; transition: .18s; display: flex; flex-direction: column; gap: 6px;
}
.mode:hover { border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.09); transform: translateY(-2px); }
.mode b { font-size: 15px; }
.mode span { font-size: 13px; color: var(--muted); }
.section-list { display: grid; gap: 10px; }
.section-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: .18s;
}
.section-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.section-row .num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(124,92,255,.16); color: #c3b6ff; font-weight: 700; font-size: 14px;
}
.section-row .meta { display: flex; flex-direction: column; }
.section-row .meta small { color: var(--dim); font-size: 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--muted); position: relative; user-select: none; }
.switch input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.switch i { width: 36px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: .2s; flex: 0 0 auto; }
.switch i::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.switch input:checked + i { background: var(--acc); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch:hover i { background: rgba(255,255,255,.22); }
.switch input:checked + i:hover { background: var(--acc); }
.switch:focus-within i { box-shadow: 0 0 0 3px rgba(124,92,255,.3); }

/* ---------- runner ---------- */
.runner { max-width: 1080px; margin: 0 auto; }
.run-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.run-head .titles { display: flex; flex-direction: column; }
.run-head .titles b { font-size: 16px; }
.run-head .titles small { color: var(--dim); font-size: 12px; }
.timer {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
  font-weight: 700; letter-spacing: .03em;
}
.timer.low { color: #ffb1c0; border-color: rgba(255,95,122,.4); background: rgba(255,95,122,.1); }
.timer svg { opacity: .7; }
.bar { height: 4px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transition: width .3s; }

.q-card { padding: 22px; }
.q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.q-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 750;
  background: linear-gradient(145deg, rgba(124,92,255,.28), rgba(70,224,200,.14));
  border: 1px solid rgba(124,92,255,.4);
}
.q-stem { font-size: 17.5px; line-height: 1.55; margin: 4px 0 18px; }
.q-stem .blank { color: var(--acc-2); letter-spacing: 2px; }
.q-img {
  width: 100%; border-radius: 12px; background: #fbf9f4; display: block; margin: 4px 0 18px;
  border: 1px solid rgba(255,255,255,.14);
}
.options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255,255,255,.028); cursor: pointer; transition: .15s;
  text-align: left; width: 100%;
}
.opt:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.opt .letter {
  width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; background: rgba(255,255,255,.08); color: var(--muted);
}
.opt .txt { flex: 1; }
.opt.sel { border-color: rgba(124,92,255,.65); background: rgba(124,92,255,.13); }
.opt.sel .letter { background: var(--acc); color: #fff; }
.opt.correct { border-color: rgba(53,211,154,.55); background: rgba(53,211,154,.1); }
.opt.correct .letter { background: var(--ok); color: #04121a; }
.opt.wrong { border-color: rgba(255,95,122,.55); background: rgba(255,95,122,.1); }
.opt.wrong .letter { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }

/* umpan balik langsung: kunci + kenapa */
.q-note {
  margin-top: 16px; padding: 16px 18px; border-radius: 14px; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); animation: pop .2s ease;
}
.q-note.ok { border-color: rgba(53,211,154,.38); background: linear-gradient(180deg, rgba(53,211,154,.1), rgba(53,211,154,.025)); }
.q-note.bad { border-color: rgba(255,95,122,.38); background: linear-gradient(180deg, rgba(255,95,122,.1), rgba(255,95,122,.025)); }
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.q-note .verdict { font-weight: 700; font-size: 15px; }
.q-note.ok .verdict { color: #8ef0c6; }
.q-note.bad .verdict { color: #ffb1c0; }
.note-key {
  margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.18);
}
.note-key b { color: var(--txt); font-size: 12.5px; letter-spacing: 0; }
.note-answers { display: grid; gap: 7px; }
.note-answers .mine {
  display: block; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
}
.note-answers .mine b { color: var(--txt); font-weight: 600; }
.note-answers .mine.ok { border-color: rgba(53,211,154,.32); background: rgba(53,211,154,.09); color: #a6f4d4; }
.note-answers .mine.ok b { color: #d8fff0; }
.note-answers .mine.no { border-color: rgba(255,95,122,.32); background: rgba(255,95,122,.08); color: #ffc0cc; }
.note-answers .mine.no b { color: #ffe0e6; }
.note-why { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.why-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc-2); font-weight: 700; }
.note-why p { margin-top: 6px; color: #d6d9e4; line-height: 1.7; }

/* saklar umpan balik */
.feedback-opt { display: flex; align-items: flex-start; gap: 14px; }
.feedback-opt label { display: grid; gap: 3px; cursor: pointer; }
.feedback-opt label b { font-size: 14px; }
.feedback-opt label small { color: var(--dim); font-size: 12.5px; line-height: 1.55; max-width: 62ch; }
.fb-btn { gap: 8px; font-size: 12.5px; padding: 6px 11px; }
.fb-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); transition: .2s; }
.fb-btn.on { border-color: rgba(53,211,154,.38); color: #a6f4d4; }
.fb-btn.on .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(53,211,154,.16); }

.run-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.kbd-hint { color: var(--dim); font-size: 12px; }
.kbd {
  display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.06); font-size: 11px; font-family: var(--font); color: var(--muted);
}

/* audio */
.audio-card { padding: 16px; margin-bottom: 16px; }
.audio-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.audio-head .part-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 10px; }
.part-tabs button {
  border: none; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px;
  color: var(--muted); cursor: pointer; font-weight: 600;
}
.part-tabs button.on { background: rgba(124,92,255,.3); color: #fff; }
.play-main {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(145deg, #8b6cff, #5f3df0); box-shadow: 0 10px 24px -10px var(--acc); color: #fff;
}
.play-main:hover { filter: brightness(1.1); }
.audio-title { display: flex; flex-direction: column; min-width: 0; }
.audio-title b { font-size: 14px; }
.audio-title small { color: var(--dim); font-size: 12px; }
.track-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.track {
  padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.track:hover { border-color: var(--line-strong); color: var(--txt); }
.track.on { border-color: rgba(124,92,255,.6); background: rgba(124,92,255,.16); color: #d7ccff; }

/* reading layout */
.reading-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 16px; align-items: start; }
.passage { padding: 20px; position: sticky; top: 84px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.passage h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.passage .text {
  font-family: var(--serif); font-size: 15.5px; line-height: 1.75; color: #dcdfe9;
  overflow-y: auto; padding-right: 8px;
}
.passage .text::-webkit-scrollbar { width: 6px; }
.passage .text::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }
.reading-wrap .side { display: flex; flex-direction: column; gap: 14px; }

/* answer sheet */
.modal-back {
  position: fixed; inset: 0; z-index: 60; background: rgba(5,6,12,.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade .18s ease;
}
.modal {
  width: min(640px, 100%); max-height: 86vh; overflow: auto; background: var(--card-solid);
  border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); padding: 22px;
  animation: pop .2s ease;
}
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98) } }
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 18px 0; }
.sheet-cell {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted);
  position: relative; transition: .15s;
}
.sheet-cell:hover { border-color: var(--line-strong); }
.sheet-cell.done { background: rgba(124,92,255,.18); border-color: rgba(124,92,255,.45); color: #cfc4ff; }
.sheet-cell.flag::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn);
}
.sheet-cell.cur { box-shadow: 0 0 0 2px var(--acc-2) inset; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 4px; display: inline-block; }

/* result */
.result-hero { padding: 28px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.score-ring {
  width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--acc) calc(var(--pct) * 1%), rgba(255,255,255,.07) 0);
}
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--card-solid); }
.score-ring .inner { position: relative; text-align: center; }
.score-ring b { display: block; font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.score-ring span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.result-hero .info h2 { font-size: 26px; margin-bottom: 6px; }
.result-hero .info p { color: var(--muted); max-width: 46ch; }
.result-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.sec-card { padding: 16px; }
.sec-card .top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec-card .top b { font-size: 14px; }
.sec-card .top span { font-weight: 750; font-size: 20px; }
.sec-card .sub { color: var(--dim); font-size: 12px; margin-top: 2px; }
table.skills { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
table.skills th, table.skills td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
table.skills th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
table.skills td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); min-width: 70px; overflow: hidden; }
.mini-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); }
.mini-bar.low > i { background: linear-gradient(90deg, #ff8f5f, var(--bad)); }

/* review list */
.review { display: grid; gap: 12px; }
.rev-item { padding: 16px 18px; }
.rev-item .head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.rev-item .qtext { font-size: 15px; margin-bottom: 10px; }
.rev-item .ansline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.rev-item .ansline b { font-weight: 700; }
.rev-item .exp { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(70,224,200,.07); border: 1px solid rgba(70,224,200,.2); font-size: 13.5px; color: #cfe5e1; }
.rev-item .opts-mini { display: grid; gap: 6px; margin: 8px 0; font-size: 13.5px; color: var(--muted); }
.rev-item .opts-mini div.ok { color: #9df0cf; }
.rev-item .opts-mini div.no { color: #ffb1c0; }
details.expand summary { cursor: pointer; color: var(--muted); font-size: 13px; }

/* materi */
.materi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.materi-item { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.materi-top { display: flex; gap: 12px; align-items: flex-start; }
.materi-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: rgba(124, 92, 255, .16); color: #c3b6ff; border: 1px solid rgba(124, 92, 255, .25);
}
.materi-icon.audio { background: rgba(70, 224, 200, .13); color: #8ff0cf; border-color: rgba(70, 224, 200, .25); }
.materi-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.materi-name b { font-size: 14.5px; }
.materi-item audio { width: 100%; height: 34px; color-scheme: dark; }

/* guide */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.guide-card { padding: 20px; }
.guide-card h3 { font-size: 16px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.guide-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.guide-card li { margin: 5px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv b { font-weight: 600; }

/* history */
.hist { display: grid; gap: 10px; }
.hist-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.hist-row .score { font-size: 22px; font-weight: 750; letter-spacing: -.03em; min-width: 62px; }
.hist-row .meta { display: flex; flex-direction: column; }
.hist-row .meta small { color: var(--dim); font-size: 12px; }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); }

/* toast */
.toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; }
.toast {
  padding: 11px 18px; border-radius: 12px; background: rgba(28,32,50,.96); border: 1px solid var(--line-strong);
  font-size: 13.5px; box-shadow: var(--shadow); animation: pop .2s ease;
}

@media (max-width: 900px) {
  .reading-wrap { grid-template-columns: 1fr; }
  .passage { position: static; max-height: none; }
  .passage .text {
    max-height: 300px;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
  }
  .kbd-hint { display: none; }
}
@media (max-width: 640px) {
  .nav { display: flex; gap: 0; }
  .nav a { padding: 7px 9px; font-size: 12.5px; }
  .brand-text { display: none; }
  .topbar { gap: 10px; }
}
@media (max-width: 560px) {
  .app { padding-bottom: 110px; }
  .q-card { padding: 16px; }
  .q-stem { font-size: 16px; }
  .result-hero { padding: 20px; gap: 18px; }
  .score-ring { width: 132px; height: 132px; }
  .score-ring b { font-size: 32px; }
  .topbar { gap: 12px; padding: 10px 16px; }
  .run-foot .btn { flex: 1; }
}
.hidden { display: none !important; }
