/* Daily Trivia */
.trv-title,
.trv-page-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}
.trv-title { margin: 1.5rem 0 0.2rem; }
.trv-page-title { margin: 1rem 0 0.2rem; }
.trv-sub {
  text-align: center;
  color: rgba(255,255,255,0.65);
  margin: 0.2rem 0 1.5rem;
}
.trv-page-topic {
  text-align: center;
  font-family: 'Silkscreen', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd57a;
  margin: 0 0 0.5rem;
}

/* Hub cards */
#trv-home .cq-card-body { flex: 1; min-width: 0; }
.trv-status {
  flex-shrink: 0;
  font-family: 'Silkscreen', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #6bcf7a;
  white-space: nowrap;
}

/* Game */
#trv-game {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  color: #fff;
}
.trv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Silkscreen', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.trv-header strong { color: #fff; }

.trv-progress { display: flex; gap: 4px; margin-bottom: 1.2rem; }
.trv-pip {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.trv-pip.is-r1      { background: #6bcf7a; }
.trv-pip.is-r2      { background: #ffd57a; }
.trv-pip.is-rx      { background: #ff6b7a; }
.trv-pip.is-current { background: rgba(255,255,255,0.5); }

.trv-ready { text-align: center; padding: 1.5rem 0; }
.trv-ready-text { color: rgba(255,255,255,0.75); margin: 0 0 0.5rem; }

.trv-question {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 0.5rem 0 1rem;
  min-height: 3.6rem;
}

/* Speed bonus bar */
.trv-speed {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.trv-speed-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.trv-speed-fill {
  height: 100%;
  width: 100%;
  background: #6bcf7a;
}
.trv-speed-fill.is-fading { background: #ffd57a; }
.trv-speed-label {
  min-width: 3rem;
  text-align: right;
  font-family: 'Silkscreen', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
}
.trv-hint {
  margin: 0 0 1rem;
  font-family: 'Silkscreen', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #ffd57a;
}

/* Choices */
.trv-choices { display: flex; flex-direction: column; gap: 0.55rem; }
.trv-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(120,200,255,0.4);
  border-radius: 6px;
  background: rgba(120,200,255,0.08);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.trv-choice:hover:not(:disabled) { background: rgba(120,200,255,0.18); border-color: rgba(120,200,255,0.75); }
.trv-choice:disabled { cursor: default; }
.trv-choice-letter {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  font-family: 'Silkscreen', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.trv-choice-text { flex: 1; }
.trv-choice.is-picked { border-color: #fff; }
.trv-choice.is-wrong {
  border-color: rgba(255,107,122,0.7);
  background: rgba(255,107,122,0.14);
  color: rgba(255,255,255,0.6);
}
.trv-choice.is-wrong .trv-choice-letter { background: rgba(255,107,122,0.35); color: #fff; }
.trv-choice.is-correct {
  border-color: #6bcf7a;
  background: rgba(107,207,122,0.18);
}
.trv-choice.is-correct .trv-choice-letter { background: #6bcf7a; color: #08121e; }
.trv-choices:has(.is-correct) .trv-choice:not(.is-correct):not(.is-wrong) { opacity: 0.5; }

/* Feedback */
.trv-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
.trv-fb-result {
  font-family: 'Silkscreen', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}
.trv-fb-result.is-r1 { color: #6bcf7a; }
.trv-fb-result.is-r2 { color: #ffd57a; }
.trv-fb-result.is-rx { color: #ff6b7a; }
.trv-fb-points { margin-top: 0.3rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.trv-fb-explain { margin: 0.6rem 0 0; color: rgba(255,255,255,0.85); line-height: 1.5; }

.trv-next-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.9rem;
  background: rgba(120,200,255,0.15);
  border: 1px solid rgba(120,200,255,0.45);
  color: #a8dcff;
  font-family: 'Silkscreen', monospace;
  letter-spacing: 0.08em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}
.trv-error { margin-top: 0.8rem; color: #ff6b7a; text-align: center; }

/* End screen */
.trv-end { text-align: center; padding: 1rem 0; }
.trv-end-title { font-family: 'Silkscreen', monospace; font-size: 1.4rem; letter-spacing: 0.1em; }
.trv-end-score { font-size: 3rem; font-family: 'Silkscreen', monospace; color: #ffd57a; margin: 0.5rem 0; }
.trv-end-max   { font-size: 1.4rem; color: rgba(255,255,255,0.45); }
.trv-end-count { color: rgba(255,255,255,0.65); }
.trv-end-grid  {
  font-family: inherit;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: 0.15rem;
  margin: 0.6rem 0 1rem;
  white-space: pre;
}
.trv-share-preview { margin: 1.5rem 0 1rem; }
.trv-end-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.trv-end-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 6px;
  font-family: 'Silkscreen', monospace;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-decoration: none;
}
.trv-end-btn.is-primary { background: rgba(120,200,255,0.15); border-color: rgba(120,200,255,0.45); color: #a8dcff; }

.trv-recap-title {
  margin: 2rem 0 0.6rem;
  font-family: 'Silkscreen', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.trv-recap { list-style: none; margin: 0; padding: 0; text-align: left; }
.trv-recap-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  margin-bottom: 0.4rem;
  border-radius: 0 4px 4px 0;
}
.trv-recap-item.is-r1 { border-left-color: #6bcf7a; }
.trv-recap-item.is-r2 { border-left-color: #ffd57a; }
.trv-recap-item.is-rx { border-left-color: #ff6b7a; }
.trv-recap-q { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.trv-recap-a { font-weight: 600; }
.trv-recap-pts {
  margin-left: 0.5rem;
  font-family: 'Silkscreen', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 480px) {
  .trv-title, .trv-page-title { font-size: 2.1rem; }
  #trv-game { padding: 0.75rem; }
  .trv-question { font-size: 1.15rem; min-height: 3.2rem; }
  .trv-choice { font-size: 0.95rem; padding: 0.55rem 0.75rem; }
}
