/* Лингора checkers 2026-09-30 */
.ck { position: fixed; inset: 0; z-index: 56; display: flex; flex-direction: column; background: var(--bg);
  background-image: radial-gradient(120% 60% at 100% 0%, var(--bg-glow-2), transparent 60%), radial-gradient(100% 50% at 0% 100%, var(--bg-glow-1), transparent 60%);
  padding: max(8px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)); animation: onbIn .3s var(--ease-out, ease) both; overflow: hidden; }
.ck.out { animation: onbOut .2s ease both; }
.ck-rate { font-weight: 800; color: var(--saffron); white-space: nowrap; }
.ck-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 0 12px; }
.ck-lobby, .ck-wait, .ck-inv { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 6px; }
.ck-lori.mascot { width: 96px; height: 96px; }
.ck-mini { display: grid; grid-template-columns: repeat(4, 30px); grid-template-rows: repeat(4, 30px); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.ck-mini i, .ck-card-board i { display: grid; place-items: center; }
.ck-mini i.l, .ck-card-board i.l { background: #F3E3FF; }
.ck-mini i.d, .ck-card-board i.d { background: #7A3FC4; }
.ck-mini b, .ck-card-board b { width: 70%; height: 70%; border-radius: 50%; }
.ck-actions { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.ck-big { min-height: 56px; font-size: 16px; }
.ck-stats { min-height: 16px; }
.ck-ring { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--pink) var(--p, 0%), rgba(255, 255, 255, .08) 0); animation: ckRing var(--t, 20s) linear forwards; }
.ck-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg); }
.ck-ring .mascot { position: relative; animation: onbBob 2.4s ease-in-out infinite; }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes ckRing { to { --p: 100%; } }
.ck-code { font-size: clamp(34px, 11vw, 46px); font-weight: 900; letter-spacing: .12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ck-or { margin: 4px 0; }
.ck-join { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.ck-in { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ck-go { flex: 0 0 auto; min-height: 52px; }
/* game */
.ck-game { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ck-pl { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 18px; background: var(--surface); border: 2px solid transparent; transition: border-color .2s; }
.ck-pl.turn { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 111, 181, .18); animation: ckGlow 1.8s ease-in-out infinite; }
@keyframes ckGlow { 50% { box-shadow: 0 0 0 5px rgba(255, 111, 181, .3), 0 0 18px rgba(255, 111, 181, .35); } }
/* whose turn — big banner between the opponent row and the board */
.ck-turn { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line-2); }
.ck-turn:empty { display: none; }
.ck-turn.mine { background: linear-gradient(135deg, #FF6FB5, #8B5CF6); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(255, 111, 181, .35); animation: ckTurnIn .45s var(--spring, ease) both, ckGlow 1.8s .45s ease-in-out infinite; }
.ck-turn.theirs { animation: ckTurnIn .35s ease both; }
.ck-turn.over { justify-content: center; }
@keyframes ckTurnIn { from { transform: scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }
.ck-turn-av.mascot { width: 38px; height: 38px; flex: 0 0 38px; }
.ck-turn-t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ck-turn-t b { font-size: 19px; font-weight: 900; line-height: 1.15; }
.ck-turn-t .xs { display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .9; }
.ck-turn.theirs .ck-turn-t .xs { color: var(--muted); }
.ck-disc.sm { width: 12px; height: 12px; flex: 0 0 12px; display: inline-block; }
.ck-turn-clock { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 20px; }
.ck-turn-clock.low { color: #FFE066; }
.ck-turn.theirs .ck-turn-clock.low { color: #FF5C8A; }
.ck-av.mascot { width: 40px; height: 40px; flex: 0 0 40px; }
.ck-pl-t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ck-pl-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-disc { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; }
.ck-clock { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 20px; min-width: 62px; text-align: right; }
.ck-clock.low { color: #FF5C8A; animation: gmPulse 1s ease-in-out infinite; }
.ck-board-wrap { position: relative; width: min(100%, 58vh, 520px); margin: 0 auto; }
@media (max-height: 640px) { .ck-pl { min-height: 46px; padding: 4px 10px; } .ck-av.mascot { width: 34px; height: 34px; flex-basis: 34px; } .ck-turn { min-height: 44px; padding: 4px 12px; } .ck-turn-t b { font-size: 17px; } }
.ck-board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; width: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); touch-action: manipulation; }
.ck-sq { position: relative; display: grid; place-items: center; border: 0; padding: 0; margin: 0; min-width: 0; aspect-ratio: 1; cursor: pointer; font: inherit; }
.ck-sq.l { background: #F3E3FF; cursor: default; }
.ck-sq.d { background: #7A3FC4; }
.ck-sq.last { background: #9A5AE0; }
.ck-sq.last.to { box-shadow: inset 0 0 0 3px rgba(255, 196, 92, .55); }
.ck-sq.can .ck-p { box-shadow: 0 0 0 3px rgba(255, 196, 92, .75); }
.ck-sq.sel { background: #C2268E; }
.ck-sq.tgt::after { content: ""; width: 34%; height: 34%; border-radius: 50%; background: rgba(255, 196, 92, .9); box-shadow: 0 0 12px rgba(255, 196, 92, .8); animation: gmPulse 1.2s ease-in-out infinite; }
.ck-p { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; transition: transform .2s var(--spring, ease); }
.pw { background: radial-gradient(circle at 35% 30%, #FFFFFF, #FFD6EC 60%, #F08AC0); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 2px 4px rgba(0, 0, 0, .35); }
.pb { background: radial-gradient(circle at 35% 30%, #5B3AA8, #2A1760 65%, #150A38); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .45); }
.ck-p.king svg { width: 58%; height: 58%; }
.ck-p.pw.king { color: #C2268E; }
.ck-p.pb.king { color: #FFC45C; }
.ck-p.drop { animation: ckDrop .35s var(--spring, ease) both; }
@keyframes ckDrop { from { transform: scale(1.35); } to { transform: none; } }
.ck-ghost { position: absolute; left: 11%; top: 11%; pointer-events: none; animation: ckCap .45s ease-in both; }
@keyframes ckCap { 0% { transform: none; opacity: 1; } 35% { transform: scale(1.18); opacity: 1; filter: brightness(1.5); } 100% { transform: scale(0); opacity: 0; } }
.ck-p.promo { animation: ckPromo .7s var(--spring, ease) both; }
.ck-p.promo svg { animation: ckCrown .7s var(--spring, ease) both; }
@keyframes ckPromo { 0% { transform: none; box-shadow: 0 0 0 0 rgba(255, 210, 63, .9); } 40% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255, 210, 63, .7), 0 0 24px rgba(255, 210, 63, .9); } 100% { transform: none; } }
@keyframes ckCrown { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: none; } }
.ck-burst { position: absolute; inset: 6%; border-radius: 50%; border: 3px solid #FFD23F; pointer-events: none; animation: ckBurst .8s ease-out forwards; }
@keyframes ckBurst { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.ck-bar { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px; }
.ck-tool { min-height: 50px; font-weight: 800; }
.ck-tool:disabled { opacity: .45; }
.ck-emos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ck-emos[hidden], .ck-offer[hidden] { display: none; }
.ck-emo { min-height: 50px; font-size: 24px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; }
.ck-offer { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: var(--pink-soft, rgba(255, 111, 181, .15)); }
.ck-offer span { flex: 1 1 auto; font-weight: 800; }
.ck-offer .btn { min-height: 48px; }
.ck-react-fly { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ck-fly { position: absolute; left: 50%; font-size: 44px; animation: ckFly 2.1s ease-out forwards; }
.ck-fly.me { bottom: 6%; } .ck-fly.opp { top: 6%; }
@keyframes ckFly { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -30px) scale(1); opacity: 0; } }
.ck-fly.opp { animation-name: ckFlyDown; }
@keyframes ckFlyDown { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, 30px) scale(1); opacity: 0; } }
.ck-res-row { display: flex; gap: 12px; justify-content: center; align-items: center; min-height: 32px; }
.ck-delta { font-weight: 900; font-size: 20px; }
.ck-delta.up { color: #3EDBB0; } .ck-delta.down { color: #FF5C8A; }
/* entry card in the Games hub */
.gm-card.ck-card { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 84px; margin: 12px 0 10px; padding: 12px 16px; text-align: left;
  background: linear-gradient(135deg, #5B2BB5, #C2268E); color: #fff; }
.ck-card-board { display: grid; grid-template-columns: repeat(4, 14px); grid-template-rows: repeat(4, 14px); border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.ck-card-t { display: flex; flex-direction: column; min-width: 0; }
.ck-card-t b { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .ck, .ck-ring, .ck-p, .ck-p svg, .ck-fly, .ck-sq.tgt::after, .ck-clock.low, .ck-pl.turn, .ck-turn, .ck-burst { animation: none !important; transition: none !important; } .ck-ghost, .ck-burst { display: none; } }
