/* ═══════════════════════════════════════════════════════════════════
   #versus "Two places. One answer." 2026-10-29 rebuild.
   #planner already shows the verdict; this is the deep dive behind it,
   in three beats on a blue stage: the two coffee shops slam in, what
   Scout reads past the stars flies in and he reads it, then he calls it
   round by round (Empire takes coffee and value, Starbucks staff and
   vibe) and the stamp lands on his pick. The old dark green stage with
   its two glowing colour fields, the caps labels and the grey copy are
   gone. Shared language: together.css. Motion: versus-scene.js.
   No JS or reduced motion: the finished frame (everything read, every
   round called, the stamp down).
   ═══════════════════════════════════════════════════════════════════ */

.tg-vs { --tg-rw: min(46vw, 640px); }

/* the sentence's objects */
.tg-vs-pill { gap: .06em; padding: 0 .12em; background: var(--tg-ink); color: #fff; }
.tg-vs-pill img { width: .62em; height: .62em; border-radius: 50%; }
.tg-vs-pill i { padding: 0 .1em; font-size: .32em; font-style: normal; font-weight: 800; letter-spacing: 0; }
.tg-vs-star { gap: .12em; padding: 0 .28em 0 .22em; background: var(--tg-ink); color: #fff; letter-spacing: -.03em; }
.tg-vs-star i { color: #ffd23f; font-size: .6em; font-style: normal; }

/* ── The duel ────────────────────────────────────────────────────── */
.tg-vs-duel {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(22px, 2.6vw, 40px); row-gap: clamp(18px, 2.6vh, 28px);
  align-items: start;
}
/* what he reads: a row of sources over the two places */
.tg-vs-srcs { grid-column: 1 / 3; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 9px; }
.tg-vs-srcs .tg-stk { position: relative; z-index: 1; animation-duration: 3.8s; }
.tg-vs-srcs .tg-stk:nth-child(odd) { --r: -2.5deg; }
.tg-vs-srcs .tg-stk:nth-child(even) { --r: 2.5deg; --d: -1.4s; }
.tg-vs-srcs .tg-stk:nth-child(3n) { --d: -2.2s; }
.tg-vs-srcs .tg-stk > span { gap: 7px; padding: 8px 13px 8px 10px; border-radius: 16px; font-size: 15px; box-shadow: 0 14px 26px -16px rgba(10, 40, 80, .55); }
.tg-vs-srcs .tg-stk i { font-size: 16px; }

.tg-vs-card {
  position: relative; z-index: 2; grid-row: 2; min-width: 0;
  border-radius: 26px; background: #fff; color: var(--tg-ink);
  box-shadow: 0 34px 60px -32px rgba(8, 40, 80, .6);
}
.tg-vs-card.is-a { grid-column: 1; transform: rotate(-3deg) translateY(-6px); }
.tg-vs-card.is-a::after { content: ""; position: absolute; inset: 0; z-index: 4; border: 4px solid #111214; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; }
.tg-vs-card.is-pick::after { opacity: 1; }
.tg-vs-card.is-b { grid-column: 2; transform: rotate(3deg); }
.tg-vs-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 26px 26px 0 0; background: #dfe9f2; }   /* the card doesn't clip, so a round can be seen flying all the way from Scout */
.tg-vs-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tg-vs-stamp { top: 12px; left: 12px; rotate: -8deg; }
.tg-vs-body { padding: 14px 16px 16px; }
.tg-vs-card h3 { margin: 0; font: 800 clamp(17px, 1.45vw, 22px)/1.12 'Inter', sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.tg-vs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin: 6px 0 0; color: #3d4048; font: 700 14.5px/1.3 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
.tg-vs-meta > span:first-child { color: var(--tg-ink); }
.tg-vs-meta i { color: #e29a00; font-style: normal; }
.tg-vs-mi { margin-left: 8px; }
/* the rounds each place won */
.tg-vs-won { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-top: 12px; }
.tg-vs-r { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 8px; border-radius: 15px; background: #111214; color: #fff; font: 800 13.5px/1 'Inter', sans-serif; white-space: nowrap; }
.tg-vs-r i { font-style: normal; font-size: 14px; }
.tg-vs-card.is-b .tg-vs-r { background: #e9eef3; color: var(--tg-ink); }

.tg-vs-vs {
  position: relative; z-index: 3; grid-column: 1 / 3; grid-row: 2; align-self: start; justify-self: center;
  display: grid; place-items: center; width: 62px; height: 62px; margin-top: clamp(50px, 6vw, 84px);
  border-radius: 50%; background: #111214; color: #fff; box-shadow: 0 0 0 5px var(--c);
  font: 800 19px/1 'Inter', sans-serif; letter-spacing: -.02em;
}

/* Scout, and the call */
.tg-vs-say { grid-column: 1 / 3; grid-row: 3; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.tg-vs-scout { flex: none; width: clamp(70px, 6vw, 96px); height: auto; overflow: visible; }
.tg-vs-scout g, .tg-vs-scout path, .tg-vs-scout rect { transform-box: fill-box; }
.tg-vs-eyes { display: none; }
.tg-vs-bubble {
  position: relative; max-width: 25em; margin: 0; padding: 14px 18px 15px;
  border-radius: 22px 22px 22px 8px; background: #fff; color: var(--tg-ink);
  font: 700 15.5px/1.32 'Inter', sans-serif; letter-spacing: -.01em;
  box-shadow: 0 24px 44px -26px rgba(8, 40, 80, .6);
}
.tg-vs-bubble b { display: block; font-size: clamp(18px, 1.5vw, 21px); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
.tg-vs-bubble span { display: block; margin-top: 4px; }

/* armed: Scout reads with his eyes open; the happy face is his last word */
.tg-vs.js:not(.still) .tg-vs-eyes { display: inline; }

/* ── Narrower screens ─────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .tg-vs-duel { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .tg-vs-duel { column-gap: 12px; row-gap: 16px; }
  .tg-vs-srcs { gap: 6px; }
  .tg-vs-srcs .tg-stk > span { gap: 5px; padding: 6px 10px 6px 8px; border-radius: 13px; font-size: 13px; }
  .tg-vs-srcs .tg-stk i { font-size: 13px; }
  .tg-vs-card { border-radius: 20px; }
  .tg-vs-photo { border-radius: 20px 20px 0 0; }
  .tg-vs-card.is-a::after { border-width: 3px; }
  .tg-vs-body { padding: 10px 11px 12px; }
  .tg-vs-card h3 { font-size: 15.5px; }
  .tg-vs-meta { font-size: 12.5px; }
  .tg-vs-mi { margin-left: 0; flex-basis: 100%; }
  .tg-vs-won { gap: 4px; min-height: 26px; margin-top: 8px; }
  .tg-vs-r { height: 26px; padding: 0 8px 0 6px; font-size: 12px; }
  .tg-vs-r i { font-size: 12px; }
  .tg-vs-vs { width: 44px; height: 44px; margin-top: 52px; font-size: 14px; box-shadow: 0 0 0 4px var(--c); }
  .tg-vs-stamp { top: 8px; left: 8px; padding: 5px 9px; font-size: 13px; }
  .tg-vs-say { align-items: flex-start; gap: 10px; }
  .tg-vs-scout { width: 52px; margin-top: 4px; }
  .tg-vs-bubble { padding: 12px 14px 13px; font-size: 14px; }
  .tg-vs-bubble b { font-size: 17px; }
}

/* ── Phones and small tablets: one screen (see together.css). The two
   cards across the top; under them one zone that Scout shares, first
   with what he reads, then with his verdict. ─────────────────────────── */
@media (max-width: 899px) and (min-height: 480px) {
  .tg-vs .tg-fit { width: 360px; --fw: 360px; }
  /* the top pad: room for his pick to lift without touching the numbers */
  .tg-vs-duel { width: 360px; max-width: none; margin: 0; padding-top: 22px; column-gap: 12px; row-gap: 14px; }
  .tg-vs-card.is-a { grid-area: 1 / 1 / 2 / 2; }
  .tg-vs-card.is-b { grid-area: 1 / 2 / 2 / 3; }
  .tg-vs-vs { grid-area: 1 / 1 / 2 / 3; width: 44px; height: 44px; margin-top: 52px; font-size: 14px; box-shadow: 0 0 0 4px var(--c); }
  .tg-vs-srcs { grid-area: 2 / 1 / 3 / 3; justify-content: flex-start; align-content: flex-start; gap: 6px; padding: 2px 0 0 66px; }
  .tg-vs-srcs .tg-stk > span { gap: 5px; padding: 6px 10px 6px 8px; border-radius: 13px; font-size: 13px; }
  .tg-vs-srcs .tg-stk i { font-size: 13px; }
  .tg-vs-say { grid-area: 2 / 1 / 3 / 3; align-items: flex-start; justify-content: flex-start; gap: 10px; margin-top: 0; }
  .tg-vs-scout { width: 56px; margin-top: 2px; }
  .tg-vs-bubble { padding: 12px 14px 13px; font-size: 14px; }
  .tg-vs-bubble b { font-size: 17px; }
  /* the finished frame (still, no JS): the verdict owns the zone */
  .tg-vs.tg-stage:not(.gs) .tg-vs-srcs { visibility: hidden; }
}
