/* GOGO FISH поверх общих стилей комнаты (shared/css/app.css). */

#field { background: radial-gradient(120% 80% at 50% 30%, #1a2a6a 0%, #0b0620 65%); }
.logo b { color: var(--cyan); text-shadow: 0 0 14px rgba(46, 230, 255, 0.7); }

.tag { transform: translate(-50%, -100%); }
.mini li.me { outline: 1px solid rgba(255, 255, 255, 0.35); }
.mini .st { color: var(--gold); }
#hud-phase.x2 { color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 59, 0.7); }

.hint.hot {
  background: var(--pink); color: #fff; font-size: 17px;
  animation: hint-beat 0.5s ease-in-out infinite alternate;
}
.hint.pull { background: rgba(182, 255, 59, 0.92); color: #102000; }
@keyframes hint-beat { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.07); } }

/* Натяжение лески: зелёное — тяни, жёлтое — рыба вот-вот рванёт, красное — лопнет. */
.line {
  position: absolute; left: 50%; bottom: calc(132px + var(--safe-b)); transform: translateX(-50%);
  width: min(280px, 70vw); height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.15);
  overflow: visible;
}
.line i {
  display: block; height: 100%; width: 0; border-radius: 7px; background: var(--lime);
  transition: width 0.08s linear, background 0.15s;
}
.line.warn i { background: var(--gold); }
.line.danger i { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.line::after {
  content: attr(data-left); position: absolute; left: 0; right: 0; bottom: 18px;
  font: 700 12px/1 system-ui, sans-serif; color: var(--ink); text-align: center; white-space: nowrap;
  text-shadow: 0 1px 2px #000;
}

.count {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); margin: 0;
  font: 900 96px/1 system-ui, sans-serif; color: #fff; pointer-events: none; z-index: 15;
  text-shadow: 0 0 30px rgba(46, 230, 255, 0.9), 0 4px 0 #000;
  animation: count-in 0.9s ease-out;
}
.count.go { font-size: 54px; color: var(--lime); text-shadow: 0 0 24px rgba(182, 255, 59, 0.9), 0 3px 0 #000; }
@keyframes count-in { from { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.news {
  position: absolute; left: 50%; top: calc(104px + var(--safe-t)); transform: translateX(-50%); margin: 0;
  padding: 8px 16px; border-radius: 14px; background: rgba(11, 6, 32, 0.8); border: 1px solid var(--line);
  font-weight: 800; font-size: 15px; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; z-index: 12; animation: count-in 0.35s ease-out;
}
.news.gold, .news.x2 { background: rgba(255, 210, 59, 0.95); color: #1b1200; }
.news.rare { border-color: var(--cyan); box-shadow: 0 0 16px rgba(46, 230, 255, 0.5); }
.callout.plus { color: var(--lime); text-shadow: 0 0 12px rgba(182, 255, 59, 0.8), 0 2px 0 #000; }

/* Карточка улова */
.catch {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 18;
  width: min(300px, 86vw); padding: 14px 16px 12px; border-radius: 22px; text-align: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  pointer-events: none; animation: card-in 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes card-in { from { transform: translate(-50%, -40%) scale(0.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.catch canvas { width: 100%; height: auto; display: block; }
.catch p { margin: 4px 0 0; }
.catch .rar { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.catch .rar[data-r="1"] { color: var(--lime); }
.catch .rar[data-r="2"] { color: var(--cyan); }
.catch .rar[data-r="3"] { color: #c58bff; }
.catch .rar[data-r="4"] { color: var(--gold); }
.catch .nm { font: 900 24px/1.1 system-ui, sans-serif; }
.catch .row2 { display: flex; justify-content: center; gap: 14px; font-size: 16px; font-weight: 700; }
.catch .row2 b { color: var(--lime); }

/* Награды финала */
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.awards li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); font-size: 14px;
}
.awards .bdg.ic { width: 40px; height: 40px; }
.awards .aw { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.awards .aw span { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.awards .who { display: flex; align-items: center; gap: 6px; font-weight: 700; max-width: 40%; }
.awards .who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.awards li.none { color: var(--mute); justify-content: center; }

@media (max-height: 560px) and (orientation: landscape) {
  .count { font-size: 64px; }
  .line { bottom: calc(110px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .hint.hot, .count, .news, .catch { animation: none; }
}
