/* BOT: Human or AI? Two things side by side, a person made one and AI made the other. Tap the AI one.
   Photos are square, so neither shape gives the answer away. Writing sits in plain white cards.
   On a phone the two stack; from 640px wide they sit side by side.
   After you pick: the AI card gets a green ring if you found it, a wrong pick gets red, each card says
   AI or Human with its credit, and numbered pins (photos) or highlights (writing) show the giveaways. */
.stage { max-width: 760px; }

.bt-setup {
  margin: -6px 0 2px; text-align: center; text-wrap: balance;
  font-size: clamp(17px, 4.3vw, 19px); font-weight: 700; line-height: 1.4; color: var(--ink);
}

.bt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 4px; }
@media (min-width: 640px) { .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.bt-option {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: 20px; background: var(--white); overflow: hidden;
  box-shadow: 0 3px 0 rgba(21, 24, 29, .1);
  transition: box-shadow .2s ease;
}
.bt-tile {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0;
  background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bt-tile:disabled { cursor: default; color: var(--ink); }
.bt-option:has(.bt-tile:active:not(:disabled)) { transform: scale(.99); }
@media (hover: hover) { .bt-option:has(.bt-tile:hover:not(:disabled)) { box-shadow: 0 0 0 4px var(--ink); } }
.bt-tile:focus-visible { outline: 4px solid var(--ink); outline-offset: -4px; }

/* A or B, and "Your pick" once you've picked */
.bt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 0; pointer-events: none; }
.is-photo .bt-head { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.bt-letter {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); font: 400 21px/1 var(--display); letter-spacing: .02em;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.bt-tag[hidden] { display: none; }
.is-photo .bt-tag { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }

/* a photo, square */
.bt-frame { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; background: #E9E7E1; }
.bt-img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none; }
.bt-frame.is-broken::after {
  content: "This picture didn’t load. Try the next round."; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--muted);
}

/* writing, in a plain card */
.bt-text {
  display: block; padding: 14px 20px 22px; white-space: pre-line; overflow-wrap: anywhere;
  font-size: clamp(18px, 4.6vw, 20px); line-height: 1.5; font-weight: 500;
}
@media (min-width: 640px) { .bt-grid.is-text { align-items: stretch; } }

/* after you pick */
.bt-option.is-right { box-shadow: 0 0 0 5px var(--right); }
.bt-option.is-answer { box-shadow: 0 0 0 5px var(--right); }
.bt-option.is-wrong { box-shadow: 0 0 0 5px var(--wrong); animation: shake .45s ease; }
.bt-option.is-right { animation: pop .35s ease; }
@media (prefers-reduced-motion: reduce) { .bt-option.is-wrong, .bt-option.is-right { animation: none; } }

.bt-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; border-top: 1px solid #ECEAE4; animation: rise .3s ease; }
.bt-foot[hidden] { display: none; }
.bt-stamp { position: static; flex: none; font-size: 24px; padding: 6px 11px 5px; }
.is-ai .bt-stamp { color: var(--violet-dark, #5B33C2); }
.bt-credit { margin: 0; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.bt-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(21, 24, 29, .3); text-underline-offset: 2px; }
@media (hover: hover) { .bt-credit a:hover { color: var(--ink); text-decoration-color: var(--ink); } }

/* the giveaways: numbered pins on photos (a yellow ring around the spot), highlights in writing */
.bt-pin { position: absolute; z-index: 2; width: 0; height: 0; animation: pinpop .35s ease both; }
.bt-pin::before {
  content: ""; position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--mark); box-shadow: 0 0 0 2px rgba(21, 24, 29, .6), inset 0 0 0 2px rgba(21, 24, 29, .6);
}
.bt-pin b {
  position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); font: 800 14px/1 var(--body); box-shadow: 0 0 0 2px var(--white);
}
@keyframes pinpop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bt-pin, .bt-foot { animation: none; } }

/* the list of giveaways sits on a white card, so it's easy to read on the violet */
.bt-tells { max-width: none; margin: 18px 0 0; padding: 18px 18px 20px; border-radius: 20px; background: var(--white); }
.bt-tells .tells-title { margin-top: 4px; }
.bt-tells ol + .tells-title { margin-top: 10px; }
@media (min-width: 640px) { .bt-text { font-size: 18px; padding: 12px 18px 20px; } }
