/* Confirmation bias. All rules scoped under .cb-* (the app inlines only this file). */

/* the chat */
.cb-chat { width: 100%; max-width: 380px; margin: 0 auto; height: 300px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 18px; background: linear-gradient(#141a2e, #0f1424); border: 1px solid var(--line); padding: 10px 10px 12px;
  -webkit-mask-image: linear-gradient(transparent 0, #000 36px); mask-image: linear-gradient(transparent 0, #000 36px); }
.cb-log { display: flex; flex-direction: column; gap: 7px; }
.cb-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; animation: cbPop .3s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes cbPop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.cb-msg span { padding: 8px 11px; border-radius: 16px; font: 600 15px/1.3 var(--sans); }
.cb-msg img, .cb-jo { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #f4d27a; }
.cb-jo { display: grid; place-items: center; font: 800 13px var(--sans); font-style: normal; color: #1b1b28; background: #7fd3ff; }
.cb-from-alex span, .cb-from-jo span { background: #262d47; color: var(--text); border-bottom-left-radius: 5px; }
.cb-from-me { align-self: flex-end; }
.cb-from-me span { background: var(--violet); color: #fff; border-bottom-right-radius: 5px; }
.cb-from-me.cb-late span { background: #4a3a9c; }
.cb-dots { display: inline-flex; gap: 4px; padding: 3px 2px; }
.cb-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: cbDot 1s ease-in-out infinite; }
.cb-dots i:nth-child(2) { animation-delay: .15s; } .cb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 50% { transform: translateY(-4px); opacity: .5; } }

/* the six questions */
.cb-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cb-q { all: unset; box-sizing: border-box; min-height: 52px; padding: 7px 10px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 700 13.5px/1.25 var(--sans); color: var(--text); cursor: pointer; display: flex; align-items: center; -webkit-tap-highlight-color: transparent; box-shadow: 0 3px 0 #2b2e38; }
.cb-q:active { transform: translateY(2px); box-shadow: 0 1px 0 #2b2e38; }
.cb-q:focus-visible { outline: 2px solid var(--violet-bright); }
.cb-q.cb-sent { opacity: .35; border-color: var(--violet); box-shadow: none; }

/* the number game */
.cb-wason { width: 100%; max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cb-rule { display: flex; align-items: center; gap: 12px; padding: 7px 16px; border-radius: 16px; background: var(--surface); border: 2px solid var(--mint); }
.cb-trip { font: 800 22px var(--mono); color: var(--text); }
.cb-fits { font: 800 13px var(--sans); color: var(--mint); text-transform: uppercase; letter-spacing: .06em; }
.cb-tests { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cb-trow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); animation: cbPop .3s cubic-bezier(.3,1.4,.5,1) both; }
.cb-trow b { font: 800 15px var(--mono); white-space: nowrap; letter-spacing: -.02em; }
.cb-trow i { font: 800 16px var(--sans); font-style: normal; color: var(--mint); }
.cb-trow.cb-break { border: 2px solid var(--gold); background: rgba(252,192,80,.1); }
.cb-guess { display: flex; align-items: baseline; gap: 10px; padding: 6px 14px; border-radius: 12px; border: 2px dashed var(--line-strong); opacity: 0; transition: opacity .4s, border-color .4s; }
.cb-guess small { font: 800 12px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.cb-guess b { font: 700 18px var(--serif); }
.cb-wason.cb-guessed .cb-guess { opacity: 1; }
.cb-wason.cb-broken .cb-guess b { text-decoration: line-through 2px; color: var(--dim); }

/* the search */
.cb-find { width: 100%; max-width: 360px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cb-maya { height: 104px; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.cb-bar { all: unset; box-sizing: border-box; width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--raised); border: 2px solid var(--line-strong); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cb-glass { width: 14px; height: 14px; border: 3px solid var(--dim); border-radius: 50%; flex: none; }
.cb-qq { font: 600 16px var(--sans); color: var(--text); }
.cb-hits { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.cb-hits i { display: block; font: 700 14.5px var(--sans); font-style: normal; padding: 8px 12px; border-radius: 12px; background: var(--surface); border-left: 5px solid var(--violet); animation: cbPop .3s cubic-bezier(.3,1.4,.5,1) both; }
.cb-hits.cb-agree i { border-left-color: var(--gold); }
.cb-scard { width: 100%; max-width: 320px; margin: 0 auto; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: var(--raised); border: 2px solid var(--line-strong); font: 700 17px var(--sans); color: var(--text); }
.cb-scard.right { border-color: var(--mint); }
.cb-scard.wrong { border-color: var(--red); flex-wrap: wrap; border-radius: 22px; }
.cb-scard .why { flex-basis: 100%; font: 600 14px var(--sans); color: var(--dim); }

/* a better question: the options are chips in the chat */
.cb-short { height: 250px; justify-content: space-between; }
.cb-tray .choices.cb-pick { gap: 8px; }
.cb-tray .cb-pick .choice { font-size: 15px; border-radius: 16px; padding: 10px 12px; min-height: 48px; }
.cb-tray .cb-pick.locked, .cb-tray .cb-pick:has(.locked) { display: none; }

@media (max-height: 700px) {
  .cb-chat { height: 252px; }
  .cb-short { height: 236px; }
  .cb-msg span { font-size: 14px; padding: 7px 10px; }
  .cb-q { min-height: 46px; font-size: 13px; }
  .cb-maya { height: 72px; }
  .cb-hits i { padding: 6px 10px; font-size: 14px; }
}
