:root {
  color-scheme:dark;
  --bg:#10191c;
  --panel:#1a262a;
  --panel2:#223237;
  --text:#eef4f1;
  --muted:#a1b5b3;
  --line:#35494b;
  --accent:#d9f582;
  --ink:#1b2c10;
  --red:#ffada9;
  --green:#9de5ba;
  --shadow:0 22px 70px #0003
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif
}
body.light {
  color-scheme:light;
  --bg:#f1f3ed;
  --panel:#fff;
  --panel2:#e7eee8;
  --text:#192c29;
  --muted:#516962;
  --line:#cbd7cd;
  --accent:#456a11;
  --ink:#fff;
  --red:#9e2927;
  --green:#236b40;
  --shadow:0 20px 60px #1835220a
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.45
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px
}
a {
  color:inherit;
  text-underline-offset:3px
}
button,input,select {
  border-radius:12px;
  border:1px solid var(--line);
  padding:11px 16px;
  background:var(--panel);
  color:var(--text)
}
button:hover:not(:disabled) {
  border-color:var(--accent)
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:clamp(30px,5vw,52px);
  line-height:1.1;
  letter-spacing:-2px
}
h2 {
  font-size:25px;
  line-height:1.3;
  letter-spacing:-.6px
}
h3 {
  font-size:19px
}
small,.muted {
  color:var(--muted)
}
.wrap {
  max-width:1192px;
  margin:auto;
  padding:0 26px
}
.top {
  border-bottom:1px solid var(--line);
  padding:20px 0
}
.flexrow {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap
}
.between {
  justify-content:space-between
}
.brand {
  font-weight:750;
  letter-spacing:.4px
}
.logo {
  background:var(--accent);
  color:var(--ink);
  padding:5px 10px;
  border-radius:7px;
  font-size:15px;
  font-weight:900
}
.primary {
  background:var(--accent);
  color:var(--ink);
  border-color:var(--accent);
  font-weight:750
}
.hero {
  padding:42px 0 30px
}
.eyebrow {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:2px;
  color:var(--muted);
  font-weight:800;
  margin-bottom:12px
}
.hero p {
  margin-top:16px;
  max-width:640px;
  color:var(--muted)
}
nav {
  display:flex;
  gap:6px;
  border-bottom:1px solid var(--line);
  margin-bottom:24px;
  overflow:auto
}
nav button {
  border:0;
  border-radius:10px 10px 0 0;
  background:transparent;
  color:var(--muted);
  white-space:nowrap;
  padding:15px 20px
}
nav button.active {
  color:var(--accent);
  border-bottom:3px solid var(--accent);
  background:var(--panel)
}
.toolbar {
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:25px;
  flex-wrap:wrap
}
.toolbar select {
  max-width:100%
}
.grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:24px
}
.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  box-shadow:var(--shadow)
}
.aside p {
  margin:13px 0
}
.aside hr {
  border:0;
  border-top:1px solid var(--line);
  margin:24px 0
}
.tag {
  display:inline-flex;
  border:1px solid var(--line);
  border-radius:7px;
  padding:3px 9px;
  font-size:12px;
  color:var(--muted);
  gap:5px
}
.code {
  font-weight:800;
  letter-spacing:-1px;
  font-size:36px
}
.bar {
  height:6px;
  background:var(--panel2);
  border-radius:8px;
  overflow:hidden;
  margin:15px 0
}
.bar span {
  height:100%;
  display:block;
  background:var(--accent);
  transition:width .3s
}
.flip {
  perspective:1400px
}
.flip-inner {
  display:grid;
  transform-style:preserve-3d;
  transition:transform .5s
}
.flip-inner.turned {
  transform:rotateY(180deg)
}
.face {
  grid-area:1/1;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  min-height:430px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  justify-content:center;
  gap:16px;
  padding:28px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow)
}
.back {
  transform:rotateY(180deg);
  align-items:flex-start;
  text-align:left;
  justify-content:flex-start
}
.face p {
  max-width:620px
}
.flip[role=button] {
  cursor:pointer
}
.art {
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
  border-radius:14px;
  position:relative;
  flex-shrink:0
}
.art img {
  max-height:230px;
  max-width:100%;
  object-fit:contain
}
.art.clip img {
  max-width:none;
  max-height:none;
  position:absolute;
  object-fit:initial
}
.credit {
  font-size:10px;
  color:var(--muted);
  text-align:center;
  margin-top:8px
}
.actions {
  display:flex;
  gap:12px;
  margin-top:20px
}
.actions>* {
  flex:1
}
.good {
  border-color:var(--green)!important;
  color:var(--green)!important;
  background:color-mix(in srgb,var(--green) 9%,var(--panel))!important
}
.bad {
  border-color:var(--red)!important;
  color:var(--red)!important;
  background:color-mix(in srgb,var(--red) 8%,var(--panel))!important
}
.answer {
  display:block;
  text-align:left;
  width:100%;
  padding:17px 20px;
  margin-top:11px;
  border-radius:14px
}
.answer:disabled {
  opacity:1
}
.feedback {
  padding:20px;
  border-left:3px solid var(--accent);
  background:var(--panel2);
  margin-top:22px;
  border-radius:10px
}
.feedback p {
  margin:10px 0
}
.question {
  display:grid;
  grid-template-columns:190px 1fr;
  gap:24px;
  align-items:center;
  margin:25px 0
}
.question.noart {
  grid-template-columns:1fr
}
.question .art img {
  max-height:220px
}
.speedbuttons {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px
}
.speedbuttons button {
  min-height:65px;
  font-weight:750
}
.search {
  width:100%;
  margin-bottom:24px
}
.cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.entry {
  padding:22px
}
.entry-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px
}
.entry p {
  margin:12px 0
}
.entry .art {
  height:170px;
  margin:15px 0
}
.entry .art img {
  max-height:165px
}
.entry summary,summary {
  cursor:pointer;
  color:var(--muted);
  padding:10px 0
}
pre {
  white-space:pre-wrap;
  font:12px/1.6 ui-monospace,monospace;
  overflow:auto;
  background:var(--bg);
  padding:16px;
  border-radius:10px;
  max-height:400px
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:24px 0
}
.stat {
  padding:20px;
  background:var(--panel2);
  border-radius:14px
}
.stat strong {
  display:block;
  font-size:30px
}
.empty {
  text-align:center;
  padding:55px 20px
}
.footer {
  border-top:1px solid var(--line);
  margin-top:50px;
  padding:25px 0;
  font-size:12px;
  color:var(--muted)
}
.sectiontitle {
  margin:32px 0 16px;
  font-size:19px
}
.screenreader {
  position:absolute;
  left:-10000px
}
.notice {
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  margin-top:15px;
  font-size:13px
}
.timer {
  font-variant-numeric:tabular-nums;
  font-size:23px;
  color:var(--accent)
}
.sourcebtn {
  margin-top:12px;
  font-size:12px
}
.modal {
  position:fixed;
  inset:0;
  z-index:50;
  background:#000a;
  padding:25px;
  display:flex;
  justify-content:center;
  align-items:center
}
.modal>.panel {
  width:850px;
  max-width:100%;
  max-height:90vh;
  overflow:auto
}
.fullimage {
  width:100%;
  background:white
}
.pill {
  background:var(--panel2);
  border-radius:99px;
  padding:7px 14px;
  font-size:12px
}
.score {
  font-size:70px;
  font-weight:850;
  color:var(--accent);
  letter-spacing:-4px
}
.list-error {
  margin:16px 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px
}
.list-error p {
  margin:8px 0
}
@media(max-width:850px) {
  .grid {
    grid-template-columns:1fr
  }
  .aside {
    display:none
  }
  .wrap {
    padding:0 16px
  }
  .hero {
    padding:30px 0
  }
  .cards {
    grid-template-columns:1fr
  }
  .question {
    grid-template-columns:1fr
  }
  .question .art {
    max-width:260px;
    margin:auto
  }
  .speedbuttons {
    grid-template-columns:repeat(2,1fr)
  }
  .face {
    min-height:460px;
    padding:22px
  }
  .panel {
    padding:20px
  }
  .stats {
    gap:6px
  }
  .stat {
    padding:12px
  }
  .stat strong {
    font-size:24px
  }
  nav button {
    padding:14px 12px
  }
  .top small {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important
  }
}

.boot-message { padding: 30px; }
.text-accent {color:var(--accent)}
.text-danger {color:var(--red)}
.text-success {color:var(--green)}
.mb-12 {margin-bottom:12px}
.mt-20 {margin-top:20px}
.mt-10 {margin-top:10px}
.my-15 {margin:15px 0}
.my-20 {margin:20px 0}
.my-14 {margin:14px 0}
.next-button {display:block;margin-top:16px}

[data-spacing="my-15"] {margin:15px 0}
[data-spacing="my-20"] {margin:20px 0}
[data-spacing="my-14"] {margin:14px 0}
