/* Chain: the words so far as chips (yours paper, theirs blue), the letter to beat in a shrinking dial. */
.cats { grid-template-columns: repeat(5, 1fr); margin: 0; }
.cats button b { font-size: 12.5px; }
.cats[hidden] { display: none; }
.chain { flex: 1; min-height: 110px; overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-end; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: rgba(24,26,29,.5); overscroll-behavior: contain; }
.chain:empty::before { content: "The chain starts here"; margin: auto; color: var(--muted); font-size: 13px; }
.chip { display: inline-flex; align-items: baseline; padding: 7px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--paper); color: var(--ink); animation: chipIn .3s cubic-bezier(.3,1.6,.5,1); }
.chip.opp { background: var(--opp); }
.chip b { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.chip.fail { background: rgba(196,70,26,.2); color: var(--bad); border: 1px dashed rgba(231,163,155,.6); }
@keyframes chipIn { from { transform: scale(.6); opacity: 0; } }
.turn { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-strong); }
.turn.mine { border-color: rgba(244,243,239,.8); box-shadow: 0 0 22px rgba(201,220,246,.25); }
.letter { position: relative; width: 66px; height: 66px; flex: none; display: grid; place-items: center; }
.letter svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.letter circle { fill: none; stroke-width: 7; }
.letter .track { stroke: rgba(255,255,255,.1); }
.letter .arc { stroke: var(--paper); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.turn.low .arc { stroke: var(--bad); }
.turn.theirs .arc { stroke: var(--opp); }
.letter b { font-size: 32px; font-weight: 700; text-transform: uppercase; text-shadow: var(--glow); }
.turn-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.turn-text small { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.turn-text b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.turn-text span { font-size: 13px; color: var(--soft); }
.say { display: flex; gap: 8px; }
.say input { flex: 1; min-width: 0; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--ink); padding: 0 16px; font-size: 17px; font-weight: 500; }
.say input:focus { outline: none; box-shadow: 0 0 0 4px rgba(175,202,238,.4); }
.say input.shake { animation: shake .3s; box-shadow: 0 0 0 3px rgba(231,163,155,.7); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.say .btn { height: 50px; flex: none; }
.game { gap: 10px; }
