:root {
  color-scheme: dark;
  --bg: #000;
  --card: #10161f;
  --line: #223041;
  --ink: #f2f6fa;
  --muted: #8fa3b8;
  --accent: #4fc3f7;
  --accent2: #7ee0a3;
  --t1: #5b9cff;
  --t2: #f0b25c;
  --t3: #ef7b8f;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-user-select: none; user-select: none;
}
#app, .screen { width: 600px; height: 600px; }
.screen { display: flex; flex-direction: column; padding: 18px 22px; }
.hidden { display: none !important; }

.top { margin-bottom: 12px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
h1 { font-size: 26px; margin-top: 2px; }

.list { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.deck {
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  padding: 10px 14px; display: flex; justify-content: space-between; align-items: center;
}
.deck .name { font-size: 17px; font-weight: 600; }
.deck .count { font-size: 13px; color: var(--muted); white-space: nowrap; margin-left: 10px; }
.deck.focused { border-color: var(--accent); box-shadow: 0 0 10px rgba(79,195,247,.35); }
.deck.shuffle .name { color: var(--accent2); }

.drill-top { display: flex; justify-content: space-between; align-items: flex-start; }
.progress { font-size: 14px; color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tier, .cat {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  letter-spacing: .04em; white-space: nowrap;
}
.tier.t1 { background: rgba(91,156,255,.18); color: var(--t1); }
.tier.t2 { background: rgba(240,178,92,.18); color: var(--t2); }
.tier.t3 { background: rgba(239,123,143,.18); color: var(--t3); }
.cat { background: var(--card); border: 1px solid var(--line); color: var(--muted); }

#qa { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.question { font-size: 21px; font-weight: 650; line-height: 1.35; }
.answer {
  flex: 1; overflow-y: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 15px; scroll-behavior: smooth;
}
.answer p { font-size: 17px; line-height: 1.45; }
.push { margin-top: 10px; color: var(--muted); font-style: italic; }
.push::before { content: "If they push: "; font-style: normal; font-weight: 700; color: var(--accent2); }

.hint {
  margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted);
}
