/* Лингора «Бильярд 3D» 2026-10-08 */
.pool { position: fixed; inset: 0; z-index: 58; background: #150A26; overflow: hidden; animation: onbIn .3s var(--ease-out, ease) both; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; color: #FDF7FF; }
.pool.out { animation: onbOut .2s ease both; }
.pool-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.pool-hud { position: absolute; left: 0; right: 0; top: 0; padding: max(8px, env(safe-area-inset-top)) 12px 0; pointer-events: none;
  background: linear-gradient(#150A26 60%, rgba(21, 10, 38, 0)); }
.pool-hud > * { pointer-events: auto; }
.pool-top { gap: 8px; }
.pool .icon-btn { color: #FDF7FF; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.pool-players { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pool-pl { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1.5px solid transparent; transition: border-color .2s, box-shadow .2s; }
.pool-pl.turn { border-color: #FFC45C; box-shadow: 0 0 0 3px rgba(255, 196, 92, .2); }
.pool-av { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.pool-av.me { background: linear-gradient(135deg, #8B2FD9, #C2268E); }
.pool-av.mascot svg { width: 100%; height: 100%; }
.pool-pl.turn .pool-av.mascot svg { animation: lpJump 1s ease-in-out infinite; }
.pool-bs { display: flex; flex-wrap: wrap; gap: 2px; max-width: 54px; min-width: 0; }
.pool-open { display: inline-flex; gap: 2px; opacity: .7; }
.pool .pb { --c: #fff; width: 12px; height: 12px; border-radius: 50%; background: var(--c); font-size: 0; display: inline-block; box-shadow: inset -2px -2px 3px rgba(0, 0, 0, .35); }
.pool .pb.st { background: linear-gradient(#F7F3EA 0 28%, var(--c) 28% 72%, #F7F3EA 72%); }
.pool .pb.in { opacity: .22; }
.pool .pb.eight { box-shadow: 0 0 0 2px #FFC45C; }
.pool-vs { flex: 0 0 auto; white-space: nowrap; font-size: 12px; font-weight: 900; opacity: .6; }
.pool-msg { text-align: center; font-weight: 900; font-size: 15px; min-height: 22px; margin: 2px 0 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.pool-msg.pop { animation: unoPop .35s var(--spring, ease) both; }
.pool-pow { position: absolute; right: max(8px, env(safe-area-inset-right)); top: 34%; height: 38%; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .2s; }
.pool-pow.dock { gap: 0; }
.pool-pow.dock .pool-pow-l, .pool-pow.dock .pool-pow-h { display: none; }
.pool-pow.dock .pool-track { width: 100%; background: rgba(20, 8, 36, .72); border-color: rgba(255, 196, 92, .55); box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }
.pool-pow.dock .pool-track b { height: 22px; }
.pool-pow.off, .pool-bottom.off { opacity: .25; pointer-events: none; }
.pool-pow-l, .pool-pow-h { font-size: 10px; font-weight: 900; opacity: .8; }
.pool-pow-h { font-size: 16px; animation: poolNudge 1.6s ease-in-out infinite; }
.pool-track { position: relative; flex: 1 1 auto; width: 38px; border-radius: 19px; background: rgba(0, 0, 0, .45); border: 1.5px solid rgba(255, 255, 255, .18); overflow: hidden; touch-action: none; cursor: grab; }
.pool-track i { position: absolute; left: 0; right: 0; top: 0; height: 100%; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(#3EDBB0, #FFC45C 55%, #FF4D5E); }
.pool-track b { position: absolute; left: 4px; right: 4px; top: 4px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.pool-track b::after { content: ""; position: absolute; left: 8px; right: 8px; top: 11px; height: 2px; background: #C2268E; border-radius: 2px; box-shadow: 0 -5px 0 #C2268E, 0 5px 0 #C2268E; opacity: .6; }
@keyframes poolNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.pool-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 16px max(10px, env(safe-area-inset-bottom)) 16px; display: flex; flex-direction: column; gap: 6px; align-items: center;
  background: linear-gradient(rgba(21, 10, 38, 0), #150A26 45%); transition: opacity .2s; }
.pool-hint { font-size: 12.5px; font-weight: 700; opacity: .85; text-align: center; min-height: 16px; }
.pool-fine { --off: 0px; position: relative; width: min(100%, 320px); height: 50px; border-radius: 25px; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .16);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px; overflow: hidden; touch-action: none; cursor: ew-resize; }
.pool-fine span { font-size: 22px; font-weight: 900; opacity: .7; position: relative; z-index: 1; }
.pool-fine i { width: 3px; height: 22px; border-radius: 2px; background: rgba(255, 255, 255, .35); transform: translateX(var(--off)); }
.pool-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.pool-load .mascot { width: 84px; height: 84px; animation: lpJump 1s ease-in-out infinite; }
.pool-res { position: absolute; }
@media (max-width: 380px) {
  .pool-av { width: 30px; height: 30px; flex-basis: 30px; }
  .pool-bs { max-width: 46px; }
  .pool .pb { width: 10px; height: 10px; }
  .pool-players { gap: 4px; }
}
@media (max-height: 680px) {
  .pool-av { width: 28px; height: 28px; flex-basis: 28px; }
  .pool-fine { height: 44px; }
  .pool-pow { top: 30%; height: 40%; }
}
@media (prefers-reduced-motion: reduce) { .pool-pow-h, .pool-pl.turn .pool-av.mascot svg, .pool-load .mascot { animation: none; } }
