:root {
  --bg: #46178f;
  --bg-2: #381272;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5b5b66;
  --line: #e6e3ee;
  --on-bg: #ffffff;
  --on-bg-2: rgba(255, 255, 255, .78);
  --red: #e21b3c;
  --blue: #1368ce;
  --yellow: #d89e00;
  --green: #26890c;
  --good: #66bf39;
  --bad: #f35;
  --radius: 10px;
  --shadow: 0 4px 0 rgba(0, 0, 0, .25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 10%, rgba(255,255,255,.08) 0 140px, transparent 141px),
                    radial-gradient(circle at 90% 85%, rgba(0,0,0,.12) 0 220px, transparent 221px);
  background-attachment: fixed;
  color: var(--on-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: rgba(0,0,0,.08); padding: .05em .3em; border-radius: 4px; }
.hidden { display: none !important; }

.btn {
  border: 0; border-radius: var(--radius); padding: 12px 22px; font-weight: 800; font-size: 17px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .05s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.dark { background: #333; color: #fff; }
.btn.go { background: var(--green); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }

.wordmark { font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.wordmark b { color: #ffd23f; }

.avatar { border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.2); flex: none; display: block; }

.status-dot { position: fixed; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #b00020; color: #fff; z-index: 50; }

/* answer tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 14px; border: 0; border-radius: 6px; padding: 14px 16px;
  color: #fff; font-weight: 700; text-align: left; box-shadow: var(--shadow); min-height: 72px; position: relative;
  transition: opacity .25s, transform .25s;
}
.tile svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.tile .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tile code { background: rgba(0,0,0,.18); }
.tile.dim { opacity: .28; }
.tile .mark { margin-left: auto; font-size: 30px; line-height: 1; }

.timebar { height: 8px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.timebar i { display: block; height: 100%; background: #fff; border-radius: 999px; transform-origin: left; }

.katex { font-size: 1.05em; }
