* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0e11;
  --bg-2: #141419;
  --card: #17171c;
  --card-2: #1e1e25;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.16);
  --text: #ececf1;
  --muted: #9797a3;
  --accent: #d97757;
  --accent-strong: #e6906e;
  --accent-ink: #17100b;
  --accent-soft: rgba(217,119,87,0.12);
  --good: #86c7a2;
  --bad: #d98793;
  --serif: Georgia, "Iowan Old Style", Palatino, "Times New Roman", serif;
  --radius: 16px;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 50% -20%, #191920, transparent 70%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.4px;
  color: var(--text); text-decoration: none;
}
.logo span {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.logo-mark { height: 38px; width: auto; display: block; }
.header-right { display: flex; align-items: center; gap: 16px; }
.home-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.home-link:hover { color: var(--text); }
.tagline { color: var(--muted); font-size: 0.88rem; }
.icon-btn {
  background: transparent; border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 1rem; padding: 7px 10px; cursor: pointer; color: var(--text);
  transition: border-color 0.15s ease;
}
.icon-btn:hover { border-color: var(--accent); }

main { max-width: 860px; margin: 0 auto; padding: 26px 20px 70px; }

.screen { display: none; }
.screen.active { display: block; animation: fadein 0.3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}
.card.center { text-align: center; }

h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.9rem; letter-spacing: -0.4px; margin-bottom: 20px;
}
h2 { letter-spacing: -0.3px; }

textarea, input[type="text"], input[type="password"], input[type="email"], select {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s ease;
}
textarea:focus, input:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0 6px;
}
label {
  display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
label select, label input { margin-top: 7px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.optional { font-weight: 400; opacity: 0.7; text-transform: none; letter-spacing: 0; }

#custom-model-wrap { margin-top: 14px; }

.hint { color: var(--muted); font-size: 0.86rem; margin-top: 14px; line-height: 1.55; }
.error {
  background: rgba(217,135,147,0.08); border: 1px solid rgba(217,135,147,0.35);
  color: var(--bad); border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: 0.9rem;
}
.error a { color: var(--accent); font-weight: 600; }
.hidden { display: none !important; }

.btn {
  border: none; border-radius: 11px; cursor: pointer;
  font-size: 0.98rem; font-weight: 600; font-family: inherit;
  padding: 12px 22px; color: var(--text);
  transition: transform 0.08s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 24px rgba(217,119,87,0.25);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: transparent; border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-big { width: 100%; padding: 16px; font-size: 1.1rem; margin-top: 22px; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.setup-footer { margin-top: 14px; text-align: center; }

/* Loading */
.spinner {
  width: 54px; height: 54px; margin: 22px auto 26px;
  border-radius: 50%;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#screen-loading h2 { font-family: var(--serif); font-weight: 400; }

/* Preview */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 5px 14px; font-size: 0.82rem; color: var(--muted);
}
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.preview-actions .btn-big { width: auto; flex: 1 1 200px; margin-top: 0; }
.toggle-answers { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 12px; text-transform: none; letter-spacing: 0; }
.toggle-answers input { width: auto; }

.preview-list { list-style: none; counter-reset: q; display: grid; gap: 10px; }
.preview-list li {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 17px;
  counter-increment: q;
}
.preview-list li .q-text { font-weight: 600; line-height: 1.45; }
.preview-list li .q-text::before {
  content: counter(q, decimal-leading-zero) "  ";
  font-family: var(--serif); font-style: italic; color: var(--accent);
}
.preview-list li .q-meta { color: var(--muted); font-size: 0.8rem; margin-top: 5px; }
.preview-list li .q-answers { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.preview-list li .q-answers span {
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 3px 10px; font-size: 0.82rem; color: var(--muted);
}
.preview-list li .q-answers span.correct {
  border-color: var(--good); color: var(--good); background: rgba(134,199,162,0.07);
}

/* Game */
.game-top { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.pill {
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 0.9rem; color: var(--muted);
}
.pill-score { color: var(--accent); border-color: rgba(217,119,87,0.4); margin-left: auto; }
.pill-streak { color: var(--accent-strong); border-color: rgba(217,119,87,0.25); }

.timer-track {
  height: 5px; background: rgba(255,255,255,0.07);
  border-radius: 999px; overflow: hidden; margin-bottom: 22px;
}
.timer-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #86c7a2, #d3a874, #c47070);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.question-card {
  position: relative;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 34px;
  text-align: center;
  min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.question-card h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.55rem; line-height: 1.35;
}
.time-left {
  position: absolute; top: -16px; right: 20px;
  background: var(--bg); color: var(--accent);
  border: 1px solid rgba(217,119,87,0.5);
  min-width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

.answers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px;
  margin-top: 22px;
}
.answer-btn {
  border-radius: 13px; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 21px 18px; text-align: left;
  display: flex; align-items: center; gap: 13px;
  min-height: 72px;
  background: var(--a-bg); border: 1px solid var(--a-line);
  transition: transform 0.1s ease, filter 0.15s ease, opacity 0.3s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
}
.ans-0 { --a-bg: #33222a; --a-line: #6e4456; }
.ans-1 { --a-bg: #202b3d; --a-line: #45608a; }
.ans-2 { --a-bg: #342b1a; --a-line: #77653a; }
.ans-3 { --a-bg: #1f3126; --a-line: #497a58; }
.answer-btn:hover { filter: brightness(1.25); transform: translateY(-2px); }
.answer-btn:active { transform: translateY(0); }
.answer-btn .shape { font-size: 1.05rem; opacity: 0.55; }
.answer-btn:disabled { cursor: default; }
.answer-btn.dim { opacity: 0.28; filter: saturate(0.4); }
.answer-btn.reveal-correct {
  border-color: var(--good);
  box-shadow: 0 0 0 1px var(--good), 0 10px 34px rgba(134,199,162,0.14);
  animation: pop 0.4s ease;
}
.answer-btn.picked-wrong { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }

.feedback {
  margin-top: 22px; text-align: center;
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
  animation: fadein 0.25s ease;
}
.feedback-result {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.4rem; margin-bottom: 8px; letter-spacing: -0.3px;
}
.feedback-result.good { color: var(--good); }
.feedback-result.bad { color: var(--bad); }
.feedback-fact { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; line-height: 1.55; }

/* Results */
.results-emoji {
  font-family: var(--serif); font-style: italic;
  font-size: 4.6rem; line-height: 1; color: var(--accent);
  margin-bottom: 10px;
}
#screen-results h1 { margin-bottom: 6px; }
.results-stats { display: flex; justify-content: center; gap: 40px; margin: 26px 0 28px; }
.stat-num {
  font-family: var(--serif); font-size: 2.1rem; font-weight: 400; color: var(--text);
}
.stat-label {
  color: var(--muted); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}
.review-list { text-align: left; margin-top: 26px; }
.review-list li.right { border-left: 3px solid var(--good); }
.review-list li.wrong { border-left: 3px solid var(--bad); }
.results-stats + .preview-actions { justify-content: center; }

/* ================= MULTIPLAYER ================= */

.host-label {
  color: var(--muted); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; margin-top: 10px;
}
.host-url {
  display: inline-block; margin: 10px 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 9px 16px;
}
.room-code {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1.1;
  letter-spacing: 0.22em; color: var(--accent);
  margin: 6px 0 14px; padding-left: 0.22em; /* balance the tracking */
}
.player-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 16px 0 8px; min-height: 36px;
}
.player-chip {
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 0.9rem;
  animation: chip-in 0.3s ease;
}
@keyframes chip-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; } }
.center-actions { justify-content: center; }

.answer-btn.static { cursor: default; }
.answer-btn.static:hover { filter: none; transform: none; }
.count-badge {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem; opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; padding: 2px 10px;
}

.leaderboard { list-style: none; display: grid; gap: 8px; margin: 16px 0 20px; text-align: left; }
.leaderboard li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 15px;
}
.leaderboard .rank {
  font-family: var(--serif); font-style: italic;
  color: var(--muted); min-width: 1.5em; text-align: center;
}
.leaderboard .pname { font-weight: 600; }
.leaderboard .pts { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.leaderboard .delta { color: var(--good); font-size: 0.85rem; margin-left: auto; }
.leaderboard .delta + .pts { margin-left: 12px; }
.leaderboard li.top1 { border-color: rgba(217,119,87,0.55); }
.leaderboard li.top1 .rank { color: var(--accent); }
.leaderboard li.top2 { border-color: var(--border-strong); }
.leaderboard li.me { background: var(--accent-soft); }

/* player (phone) page */
.play-main { max-width: 560px; margin: 0 auto; padding: 22px 16px 60px; }
.join-card { max-width: 430px; margin: 30px auto 0; }
.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem; letter-spacing: 0.35em; text-transform: uppercase; text-align: center;
}
.lobby-check {
  width: 66px; height: 66px; margin: 8px auto 18px;
  border: 1px solid var(--good); border-radius: 50%; color: var(--good);
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
}
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 20px; }
.dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.18s; }
.dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes dot-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.question-card.small { padding: 30px 22px; min-height: 110px; }
.question-card.small h2 { font-size: 1.25rem; }

.result-mark {
  width: 74px; height: 74px; margin: 6px auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; border: 1px solid var(--border-strong); color: var(--muted);
}
.result-mark.good-bg { border-color: var(--good); color: var(--good); background: rgba(134,199,162,0.08); }
.result-mark.bad-bg { border-color: var(--bad); color: var(--bad); background: rgba(217,135,147,0.08); }

/* trending library (app page) */
.trending-card { margin-top: 20px; }
.trend-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.trend-title { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.trend-sub { margin-top: 6px; margin-bottom: 16px; }
.trend-list { display: grid; gap: 9px; }
.trend-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
}
.trend-rank {
  font-family: var(--serif); font-style: italic;
  color: var(--accent); font-size: 1.15rem; min-width: 1.4em; text-align: center;
}
.trend-info { flex: 1; min-width: 0; }
.trend-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-meta { color: var(--muted); font-size: 0.8rem; margin-top: 3px; }
.trend-like { padding: 8px 12px; font-size: 0.88rem; }
.trend-like.liked { color: var(--accent); opacity: 1; }
.trend-play { padding: 9px 18px; }
.trend-empty { text-align: center; padding: 10px 0; }
@media (max-width: 640px) {
  .trend-row { flex-wrap: wrap; }
  .trend-info { flex-basis: 60%; }
}

/* accounts & sign-in */
.user-pill {
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--text);
}
.user-pill:empty { display: none; }
.signout-btn { padding: 6px 10px; font-size: 0.82rem; }

.login-card { text-align: center; }
.login-goat {
  width: 64px; height: 64px; border-radius: 16px; background: #fff;
  object-fit: cover; margin: 4px auto 14px; display: block;
}
.login-sub { margin-bottom: 22px; }
.login-card label { text-align: left; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-bottom: 10px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--text); text-decoration: none;
}
.oauth-btn:hover { border-color: var(--accent); }
.oauth-g, .oauth-ms { font-weight: 800; font-size: 1.05rem; }
.oauth-g { color: #e8a87c; }
.oauth-ms { color: #8fb8e8; }
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin: 18px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.auth-toggle { text-align: center; margin-top: 16px; }
.auth-toggle a { color: var(--accent); text-decoration: none; }

.guest-link { color: var(--muted); text-decoration: none; }
.guest-link:hover { color: var(--text); }
.quick-note { margin-top: 12px; text-align: left; line-height: 1.55; }

/* comments on trending quizzes */
.comments-card { margin-top: 20px; }
.comments-list { display: grid; gap: 10px; margin: 16px 0 18px; }
.comment {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 15px;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.comment-author { color: var(--accent); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.comment-text { color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.comment-form { display: flex; gap: 10px; }
.comment-form input { flex: 1; }

.ai-note {
  text-align: center; color: var(--muted); opacity: 0.75;
  font-size: 0.78rem; padding: 18px 20px 30px;
}

.engine-hint {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin-top: 18px; line-height: 1.6;
}
.engine-hint strong { color: var(--accent); }
.engine-hint em { color: var(--text); }

/* plan system */
.plan-badge {
  border: 1px solid rgba(217,119,87,0.45); color: var(--accent);
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  letter-spacing: 0.04em;
}
.plan-badge:hover { background: var(--accent-soft); }
.plan-note-line { text-align: center; margin-top: 16px; }
.plan-note-line a { color: var(--accent); text-decoration: none; }
.setup-footer .btn { text-decoration: none; display: inline-block; }

@media (max-width: 640px) {
  header { flex-wrap: wrap; gap: 10px 14px; padding: 14px 18px; }
  .header-right { gap: 10px; }
  .answers { grid-template-columns: 1fr; }
  .tagline { display: none; }
  .card { padding: 22px; }
  .results-stats { gap: 24px; }
  .room-code { letter-spacing: 0.14em; padding-left: 0.14em; }
}

/* forgot-password */
.hint-inline { color: var(--muted); font-size: 0.78rem; font-weight: 400; }

/* uploaded-quizzes search */
#trend-search { width: 100%; margin: 4px 0 14px; }

/* ---------------- prompt composer (ChatGPT-style) ---------------- */
.composer {
  background: var(--bg-2, #131217);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 20px 20px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15), 0 10px 38px rgba(0, 0, 0, 0.4);
}
.composer textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 4px 2px 10px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.55;
  min-height: 84px;
  max-height: 320px;
  overflow-y: auto;
}
.composer textarea:focus { border: none; box-shadow: none; }
.composer-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
/* preference pills along the bottom of the box */
.composer-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card-2, #1e1e25);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 8px 6px 13px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.15s ease;
}
.opt-pill:focus-within { border-color: var(--accent); }
.opt-pill .opt-label {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.opt-pill select,
.opt-pill input {
  width: auto;
  margin: 0;
  padding: 3px 6px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
}
.opt-pill select:focus,
.opt-pill input:focus { outline: none; box-shadow: none; }
.opt-pill input { cursor: text; }
.opt-audience { flex: 1 1 150px; }
.opt-audience input { flex: 1; min-width: 90px; cursor: text; }
.composer-send {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink, #1a0f0a);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}
.composer-send:hover:not(:disabled) { transform: translateY(-1px); background: var(--accent-strong); }
.composer-send:active:not(:disabled) { transform: scale(0.94); }
.composer-send:disabled { opacity: 0.35; cursor: default; }
.composer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.chip-suggest {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.chip-suggest:hover { color: var(--text); border-color: var(--accent); }

/* sign-in prompt under comments */
.comment-signin a { color: var(--accent); font-weight: 600; }

/* ---------------- quiz editor (build manually + edit) ---------------- */
.editor-title-label { display: block; margin-bottom: 18px; }
.editor-title-label input { margin-top: 8px; }
.editor-questions { display: grid; gap: 16px; }
.editor-card {
  background: var(--card-2, #1e1e25);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.editor-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.editor-num {
  font-family: var(--serif); font-style: italic; color: var(--accent);
  font-size: 1.05rem; min-width: 2ch;
}
.editor-type { width: auto; flex: 0 0 auto; padding: 7px 10px; font-size: 0.85rem; }
.editor-time-wrap {
  display: inline-flex; align-items: center; gap: 3px; margin-left: auto;
  color: var(--muted); font-size: 0.85rem;
}
.editor-time {
  width: 56px; padding: 6px 8px; text-align: center;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem;
}
.editor-time:focus { outline: none; border-color: var(--accent); }
.editor-remove {
  background: transparent; border: 1px solid var(--border-strong); color: var(--muted);
  border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 0.9rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.editor-remove:hover { color: var(--bad); border-color: var(--bad); }
.editor-qtext { margin-bottom: 10px; }
.ans-list { display: grid; gap: 8px; }
.ans-row {
  display: flex; align-items: center; gap: 10px; margin: 0;
  text-transform: none; letter-spacing: 0;
}
.ans-row input[type="radio"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--good); cursor: pointer; }
.ans-row .ans-input { margin: 0; }
.ans-row .ans-input[readonly] { opacity: 0.75; cursor: default; }
.editor-fact { margin-top: 10px; font-size: 0.9rem; }
.editor-add { margin: 16px 0 4px; }
