/* Ticker */
.gm-ticker { max-width: 600px; margin: 0 auto; }

.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 14px; flex-wrap: wrap; }
.tk-intro { margin: 0; font-size: 17px; font-weight: 600; }
.tk-prac { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--hl); padding: 3px 8px; border-radius: 3px; }

/* Clues */
.tk-clues { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.tk-clue { border: 2px solid var(--ink); border-radius: 8px; padding: 12px 14px; background: var(--paper); min-width: 0; }
.tk-clue p { margin: 6px 0 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.tk-clue.fresh { animation: tk-in .45s var(--ease); }
@keyframes tk-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.tk-cn { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.tk-cat { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px;
  border-radius: 3px; background: var(--wash); border: 1px solid var(--faint); vertical-align: 1px; }
.tk-clue.locked { border: 2px dashed var(--faint); background: none; padding: 9px 14px; }
.tk-clue.locked p { margin: 2px 0 0; font-size: 14px; color: var(--quiet); }
.tk-clue.locked .tk-cn, .tk-clue.locked .tk-cat { color: #9A9A95; }
.tk-clue.locked .tk-cat { background: none; }
.tk-clue.locked + .tk-clue.locked p { color: #9A9A95; }
.tk-clues.done { margin-top: 20px; }
.tk-clues.done .tk-clue { border-width: 1px; border-color: var(--faint); }

/* Entry */
.tk-play { margin-bottom: 14px; }
.tk-play[hidden] { display: none; }
.tk-form { display: flex; gap: 8px; }
.tk-form.shake { animation: tk-shake .35s; }
@keyframes tk-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.tk-combo { position: relative; flex: 1 1 auto; min-width: 0; }
.tk-in { width: 100%; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper);
  font: 600 17px/1 var(--sans); color: var(--ink); }
.tk-in::placeholder { color: var(--quiet); font-weight: 400; }
.tk-in:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; }
.tk-form .gm-btn { min-height: 48px; border-radius: 6px; flex: none; }
.tk-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.18);
  max-height: 290px; overflow-y: auto; }
.tk-list[hidden] { display: none; }
.tk-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 14px; cursor: pointer; font-weight: 600; }
.tk-opt small { font-weight: 400; color: var(--quiet); font-size: 13px; text-align: right; }
.tk-opt[aria-selected="true"] { background: var(--hl); }
.tk-opt.used > span { color: var(--quiet); text-decoration: line-through; }
.tk-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 0; font-size: 14px; color: var(--quiet); flex-wrap: wrap; }
.tk-skip { border: 0; background: none; padding: 6px 0; min-height: 32px; font: 600 14px/1 var(--sans); color: var(--cite); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.tk-skip[hidden] { display: none; }
.tk-skip:focus-visible, .tk-links a:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; }

/* Guesses */
.tk-rows { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.tk-rows:empty { display: none; }
.tk-row { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); column-gap: 8px; row-gap: 6px; align-items: center;
  padding: 8px 10px; border: 2px solid var(--ink); border-radius: 6px; min-height: 44px; }
.tk-row.fresh { animation: tk-in .35s var(--ease); }
.tk-n { font-size: 13px; font-weight: 700; color: var(--quiet); }
.tk-g { font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.tk-fb { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.tk-fb:empty { display: none; }
.tk-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--faint); background: var(--paper); white-space: nowrap; }
.tk-chip.ok { background: var(--hl); border-color: var(--ink); }
.tk-mark { font-size: 11px; }
.tk-row.skip { border-style: dashed; border-color: var(--faint); color: var(--quiet); }
.tk-row.skip .tk-g { font-weight: 600; font-size: 15px; }
.tk-row.hit { background: var(--cite); border-color: var(--cite); color: #fff; }
.tk-row.hit .tk-n { color: #fff; }
.tk-row.hit .tk-chip { background: #fff; color: var(--cite); border-color: #fff; }

/* Answer */
.tk-reveal:empty { display: none; }
.tk-reveal { border-top: 2px solid var(--ink); padding-top: 16px; }
.tk-ans h2 { margin: 0; font-size: clamp(36px, 10vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tk-ans.won h2 { color: var(--cite); }
.tk-ans.pop h2 { animation: tk-pop .5s var(--ease); }
@keyframes tk-pop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
.tk-k { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.tk-meta { margin: 8px 0 0; font-size: 15px; color: var(--quiet); }
.tk-off { margin: 6px 0 0; font-size: 17px; }
.tk-links { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.tk-links a { color: var(--cite); }
.tk-again { margin-top: 16px; display: flex; justify-content: flex-start; }
.tk-dlg-c { font-size: 15px; color: #333; border-left: 3px solid var(--hl); padding-left: 10px; }

@media (max-width: 480px) {
  .tk-clue p { font-size: 17px; }
  .tk-form .gm-btn { padding: 0 14px; }
  .tk-chip { font-size: 12px; padding: 3px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-clue.fresh, .tk-row.fresh, .tk-form.shake, .tk-ans.pop h2 { animation: none; }
}
