/* ============================================================
   THE BOT: only what this page invents. Tokens, the frame, the navbar, the
   footer, the type scale and the buttons all come from the shared sheets.
   Prefixed bt-, because juq.css owns the short global names.
   ============================================================ */
.bt-page { padding-bottom: var(--s-10); }
.bt-where { margin: 0 0 var(--s-6); font: var(--t-mono)/1.6 var(--f-mono); color: var(--muted); }
.bt-where b { color: var(--ink); }

/* ---------- sections ---------- */
.bt-sec { margin-top: var(--s-8); }
.bt-sec-h { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-4); }
.bt-sec-h h2 { margin: 0; font: 700 var(--t-label)/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.bt-sec-h .rule { flex: 1; height: var(--bw); background: var(--line); }
.bt-sec-h .n { font: var(--t-micro)/1.5 var(--f-mono); color: var(--muted); }

.bt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--s-4); }
.bt-card {
  min-width: 0; padding: var(--s-5);
  border: var(--bw) solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.bt-card h3 { margin: 0; font: 700 var(--t-md)/1.4 var(--f-mono); color: var(--accent); }
.bt-card p { margin: var(--s-2) 0 0; font-size: var(--t-sm); line-height: 1.55; color: var(--muted); }

/* A line the way chat shows it. */
.bt-line {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  margin-top: var(--s-3); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm); background: var(--surface-2);
  font: var(--t-sm)/1.6 var(--f-mono); word-break: break-word;
}
.bt-line b { color: var(--ink); }
/* "SOURCE" in the example line is link text that opens the site's own viewer,
   the one place a source can be a word rather than an address: Twitch chat
   can only link the address itself. */
.bt-srclink {
  appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; letter-spacing: .06em; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.bt-srclink:hover, .bt-srclink:focus-visible { color: var(--ink); outline: none; }
.bt-em { height: 28px; width: auto; vertical-align: middle; }
.bt-emoji { font-size: var(--t-h2); line-height: 1; }

/* ---------- the odds ---------- */
table.bt-odds { width: 100%; border-collapse: collapse; font: var(--t-sm)/1.5 var(--f-mono); }
.bt-odds th {
  text-align: left; padding: var(--s-2) 0; border-bottom: var(--bw) solid var(--line);
  font: 700 var(--t-micro)/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.bt-odds td { padding: var(--s-2) 0; border-bottom: var(--bw) solid var(--line); vertical-align: middle; }
.bt-odds th.n, .bt-odds td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* INSIDE THE CELL, NOT ON IT. A td made a flexbox stops being a table cell,
   and its bottom border then sits at its own height rather than the row's: the
   underline broke at the edge of every emote cell. */
.bt-syms { display: inline-flex; align-items: center; gap: var(--s-3); vertical-align: middle; }
.bt-odds tfoot td { border: 0; padding-top: var(--s-3); color: var(--muted); font-size: var(--t-micro); }
.bt-odds tfoot b { color: var(--ink); }

/* ---------- the boards ---------- */
/* The globe is every win; a symbol is who has hit that triple most. Rounded
   rectangles, the lit one underlined in the accent, the way the site's other
   segmented controls read. */
.bt-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0 var(--s-2); }
.bt-tab {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 36px; padding: var(--s-1) var(--s-2);
  border: var(--bw) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--muted); font: var(--t-md)/1 var(--f-mono);
}
.bt-tab:hover, .bt-tab:focus-visible { border-color: var(--accent); color: var(--ink); outline: none; }
.bt-tab.on { border-color: var(--accent); background: var(--surface); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.bt-tab .bt-em { height: 22px; }
.bt-tab .bt-emoji { font-size: var(--t-md); }
.bt-board ol { list-style: none; margin: 0; padding: 0; }
.bt-board li {
  display: grid; grid-template-columns: 2.2em 24px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center;
  padding: var(--s-2) 0; border-bottom: var(--bw) solid var(--line); font: var(--t-sm)/1.5 var(--f-mono);
}
.bt-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.bt-face { width: 24px; height: 24px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.bt-face-blank {
  width: 24px; height: 24px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font: 700 var(--t-micro)/1 var(--f-mono);
}
.bt-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-won { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-meta { grid-column: 3 / 5; margin-top: -2px; font-size: var(--t-micro); color: var(--muted); }

/* ---------- the quotes ---------- */
.bt-search { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.bt-search input {
  flex: 1; min-width: 0; padding: var(--s-3) var(--s-4);
  background: var(--surface-2); color: var(--ink);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-sm);
  font: var(--t-sm)/1.4 var(--f-mono);
}
.bt-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bt-quote {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: start;
  padding: var(--s-4); border: var(--bw) solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.bt-quote + .bt-quote { margin-top: var(--s-3); }
.bt-qt { margin: 0; font-size: var(--t-sm); line-height: 1.65; word-break: break-word; }
/* a word changed for Twitch, in its brackets */
.bt-swap { font-style: italic; color: var(--accent); }
.bt-qt .bt-em { height: 24px; }
.bt-kw {
  display: inline-block; margin-top: var(--s-2);
  font: 700 var(--t-micro)/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.bt-acts { display: flex; flex-direction: column; gap: var(--s-2); }
.bt-acts .btn { padding: var(--s-2) var(--s-3); font-size: var(--t-micro); white-space: nowrap; }
.bt-empty { color: var(--muted); font: var(--t-mono)/1.6 var(--f-mono); }
.bt-more { margin-top: var(--s-4); }

/* ---------- the source viewer ----------
   OPENS LIKE A VAULT, the way a Taste Tester card does, at the user's ask.
   Three jobs on three elements, because a clip-path animation on the
   scrolling card itself runs and does nothing (the vault reveal trap): a bare
   clipper that only clips, the card underneath that only scrolls, and a frame
   OUTSIDE the clip that carries the outline and the shadow, so the seam is a
   bright edge from the first frame and the shadow is never clipped. CSS
   keyframes toggled by a class, never animate(); inset() with no round and
   no value built from a string, or the browser drops the keyframe silently. */
.bt-stage { position: relative; width: min(760px, 100%); }
.bt-clip { will-change: clip-path; }
.bt-src .modal-card { width: 100%; border-color: transparent; box-shadow: none; }
.bt-frame {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  border: var(--bw) solid var(--ink); border-radius: var(--radius);
  box-shadow: 9px 9px 0 var(--accent);
}
[data-skin="sweet"] .bt-frame { border-color: transparent; box-shadow: 0 22px 60px var(--shadow); }
.bt-src.open .bt-clip { animation: btVaultOpen 0.6s cubic-bezier(0.76, 0, 0.24, 1) both; }
.bt-src.open .bt-frame { animation: btFrameOpen 0.6s cubic-bezier(0.76, 0, 0.24, 1) both; }
/* Shuts on the same curve, a little quicker: the full 600ms to leave reads as
   lag. Higher specificity than the open rules, so it wins the property. */
.bt-src.open.closing .bt-clip { animation: btVaultShut 0.42s cubic-bezier(0.76, 0, 0.24, 1) both; }
.bt-src.open.closing .bt-frame { animation: btFrameShut 0.42s cubic-bezier(0.76, 0, 0.24, 1) both; }
.bt-src.open.closing { animation: btBackdropOut 0.42s ease both; }
@keyframes btVaultOpen { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes btVaultShut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(50% 0 50% 0); } }
@keyframes btFrameOpen { from { top: 50%; bottom: 50%; } to { top: 0; bottom: 0; } }
@keyframes btFrameShut { from { top: 0; bottom: 0; } to { top: 50%; bottom: 50%; } }
@keyframes btBackdropOut { to { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .bt-src .bt-clip, .bt-src .bt-frame, .bt-src.open.closing { animation: none; }
}
.bt-src-q { margin: 0 0 var(--s-4); font-size: var(--t-sm); line-height: 1.6; }
.bt-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; }
.bt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bt-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bt-src-link { margin: var(--s-3) 0 0; font: var(--t-micro)/1.5 var(--f-mono); color: var(--muted); word-break: break-all; }

@media (max-width: 640px) {
  .bt-quote { grid-template-columns: 1fr; }
  .bt-acts { flex-direction: row; }
}

/* the phone pass (2026-10-08): a finger needs about 40px where a mouse needs 26 */
@media (pointer: coarse) {
  .bt-acts .btn { min-height: 40px; }
  .bt-srclink { min-height: 32px; }
}
