/* MTG Daily Trivia — dark, one-thumb, one question at a time. */
:root {
  --bg: #14101c; --panel: #1d1826; --panel-2: #262031; --line: #352d44;
  --ink: #f2eff7; --dim: #9c93ad; --accent: #a48fff; --warn: #f0a33c;
  --good: #4ade80; --bad: #f87171;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); min-height: 100vh; }

.topbar { display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; }
.hub-link { color: var(--dim); text-decoration: none; font-size: .78rem; font-weight: 700; }
.app-title { font-weight: 800; letter-spacing: -.02em; }
.daynum { color: var(--accent); font-weight: 800; }
.streak { margin-left: auto; color: var(--warn); font-weight: 800; font-size: .9rem; }

main { max-width: 560px; margin: 0 auto; padding: 0 .9rem 3rem; }
.hint { color: var(--dim); font-size: .84rem; }

.progress { display: flex; gap: .35rem; margin: .5rem 0 1rem; }
.pdot { flex: 1; height: 6px; border-radius: 99px; background: var(--panel-2); }
.pdot.done-right { background: var(--good); }
.pdot.done-wrong { background: var(--bad); }
.pdot.current { background: var(--accent); }

.qcat {
  display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 99px; padding: .2rem .65rem; margin-bottom: .6rem;
}
.qcat.rules { background: rgba(88, 160, 216, .18); color: #58a0d8; }
.qcat.cards { background: rgba(88, 179, 104, .18); color: #58b368; }
.qcat.history { background: rgba(217, 185, 63, .18); color: #d9b93f; }

.qtext { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1rem; line-height: 1.4; }

.opts { display: flex; flex-direction: column; gap: .55rem; }
.opt {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px;
  font: inherit; font-size: .95rem; font-weight: 600; text-align: left;
  padding: .8rem .9rem; cursor: pointer; min-height: 48px; touch-action: manipulation;
}
.opt:active { border-color: var(--accent); }
.opt.right { border-color: var(--good); background: rgba(74, 222, 128, .12); }
.opt.wrong { border-color: var(--bad); background: rgba(248, 113, 113, .12); }
.opt:disabled { cursor: default; opacity: .9; }
.opt.dim { opacity: .45; }

.explain {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .9rem; margin-top: .8rem; font-size: .88rem; color: var(--dim);
}
.nextrow { margin-top: 1rem; text-align: right; }
.primary {
  border: none; border-radius: 12px; background: var(--accent); color: #170f2b;
  font: inherit; font-weight: 800; padding: .7rem 1.5rem; cursor: pointer;
}

.result { text-align: center; margin-top: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.result h2 { margin: 0 0 .2rem; letter-spacing: -.02em; }
.result .sub { color: var(--dim); font-size: .9rem; margin-bottom: .7rem; }
.result .sub b { color: var(--warn); }
.share-grid { font-size: 1.25rem; letter-spacing: .12em; margin: .4rem 0 .9rem; }
.hidden { display: none !important; }
