/* QCTimer — shared "Timed" toggle + count-up clock pill for the Quiet-Corner
   puzzles. Palette vars (--accent, --accent-soft, --ink-soft, fonts) come from
   each game's corner.css, so this matches the game it's dropped into. */

/* Clock icon for the Timed toggle (uses the qc-iconbtn mask) and the clock pill. */
.qc-iconbtn .ico[data-ic="clock"], .qct-clock .ico[data-ic="clock"] {
  --qci: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2713.3%27%20r%3D%277.8%27/%3E%3Cpath%20d%3D%27M12%209.5v4l2.6%201.6%27/%3E%3Cpath%20d%3D%27M9%202.9h6%27/%3E%3Cpath%20d%3D%27M12%202.9v2.3%27/%3E%3C/svg%3E");
}
/* Active toggle (fallback so it highlights even where a game lacks its own pressed rule). */
.qc-iconbtn.qct-toggle[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); border-color: transparent; }

.qct-clock {
  display: none; align-items: center; justify-content: center; gap: .4em; margin: 8px auto 0; padding: 5px 15px;
  font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--accent-ink, var(--accent)); background: var(--accent-soft); border: 1.5px solid var(--accent-line, var(--line));
  border-radius: 999px; line-height: 1;
}
.qct-clock:not([hidden]) { display: inline-flex; }
.qct-clock .ico[data-ic="clock"] {
  width: 1.1em; height: 1.1em; display: inline-block; background-color: currentColor;
  -webkit-mask: var(--qci) center/contain no-repeat; mask: var(--qci) center/contain no-repeat;
}
.qct-clock .qct-time { font-size: 1.15rem; letter-spacing: .02em; }
.qct-clock .qct-best { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.qct-clock .qct-best:not([hidden])::before { content: "·"; margin: 0 .45em 0 .3em; color: var(--ink-soft); }

/* Solved-screen time line */
.qct-timeline { font-family: var(--font-display); font-weight: 700; color: var(--accent-ink, var(--accent)); margin: 2px 0 6px; }

/* 2 Players (pass-and-play duel) launcher icon — shown only when play-duel.js is present. */
.qc-iconbtn .ico[data-ic="duel"]{
  --qci:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%278.4%27%20cy%3D%279%27%20r%3D%273%27/%3E%3Cpath%20d%3D%27M3.4%2019c.6-3%202.5-4.6%205-4.6s4.4%201.6%205%204.6%27/%3E%3Ccircle%20cx%3D%2716.2%27%20cy%3D%278%27%20r%3D%272.4%27/%3E%3Cpath%20d%3D%27M15.2%2013.5c2%20.1%203.7%201.6%204.3%204.5%27/%3E%3C/svg%3E");
}
