/* TIPOFF - name the category before the model does. The page shell, reveal and share box are in games.css. */

/* Clues */
.tp-clues { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.tp-clue {
  display: grid; grid-template-columns: max-content 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--border);
}
.tp-clue-n {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); white-space: nowrap;
}
.tp-clue-word { font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.1; color: var(--text-faint); }
.tp-clue.is-shown { background: var(--surface); border-color: var(--border-light); }
.tp-clue.is-shown .tp-clue-word { color: var(--text); }
.tp-clue.is-new { border-color: var(--accent); animation: tp-in 0.35s ease; }
.tp-clue-guess { font-size: 13px; color: #d88a6a; text-decoration: line-through; }
.tp-clue-guess.is-right { color: var(--green); text-decoration: none; }
@keyframes tp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* The model's confidence */
.tp-model { margin-bottom: 18px; }
.tp-model[hidden] { display: none; }
.tp-model-label {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--text-dim);
}
.tp-model-track { position: relative; height: 8px; background: var(--surface-2); border-radius: 4px; }
.tp-model-fill {
  height: 100%; width: 0; border-radius: 4px; background: var(--accent-dim);
  transition: width 0.6s ease, background 0.3s;
}
.tp-model-fill.is-called { background: var(--accent); }
.tp-model-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text-faint); }
.tp-model-note { margin-top: 8px; font-size: 13px; color: var(--text-faint); }

/* Input */
.tp-form { display: flex; gap: 10px; margin-bottom: 10px; }
.tp-form[hidden] { display: none; }
.tp-input {
  flex: 1; min-width: 0;
  font-family: 'Geist', sans-serif; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-light); border-radius: 4px;
  padding: 13px 16px; transition: border-color 0.2s;
}
.tp-input:focus { outline: none; border-color: var(--accent); }
.tp-input::placeholder { color: var(--text-faint); }
.tp-submit { padding: 13px 22px; }
.tp-choice {
  font-family: 'Geist', sans-serif; font-size: 14px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 999px;
  padding: 4px 14px; cursor: pointer;
}
.tp-choice:hover { border-color: var(--accent); }

/* Reveal: what the model thought, clue by clue */
.tp-timeline-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px;
}
.tp-timeline { list-style: none; margin-bottom: 20px; }
.tp-step {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 90px 44px 110px; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px;
}
.tp-step-clue { color: var(--text); overflow-wrap: anywhere; }
.tp-step-pick { color: var(--text-dim); overflow-wrap: anywhere; }
.tp-step.is-answer .tp-step-pick { color: var(--accent); }
.tp-step-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.tp-step-bar span { display: block; height: 100%; background: var(--accent-dim); }
.tp-step.is-answer .tp-step-bar span { background: var(--accent); }
.tp-step-pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); text-align: right; }
.tp-step-tags { display: flex; gap: 6px; justify-content: flex-end; }
.tp-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid;
}
.tp-tag.is-you { color: var(--green); border-color: var(--green); }
.tp-tag.is-model { color: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  .tp-clue { padding: 10px 12px; gap: 10px; }
  .tp-clue-word { font-size: 19px; }
  .tp-form { flex-wrap: wrap; }
  .tp-input { flex-basis: 100%; }
  .tp-submit, .tp-skip { flex: 1; justify-content: center; }
  .tp-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; row-gap: 4px; }
  .tp-step-bar { grid-column: 1 / 3; }
  .tp-step-tags { grid-column: 3; grid-row: 1; }
  .tp-step-pct { grid-column: 3; }
}
