/* ═══════════════════════════════════════════════════════════════════════
 * public/static/game-live-tiles.css — Cycle M shared tile styles
 * ═══════════════════════════════════════════════════════════════════════
 * Mobile-first: 44px min touch targets, 16px base font, no hover-dependent
 * affordances, respects prefers-reduced-motion. Consumed by:
 *   - coach-portal .cp-row .game-live-slot
 *   - parent-portal .sched-row .game-live-slot
 *   - game-center Live-now rail
 *   - homepage live strip
 * ═══════════════════════════════════════════════════════════════════════ */

.game-live-slot {
  display: block;
  margin-top: 0.5rem;
  min-height: 0;
}

/* Tile — used across every surface. Always ≥44px tap target. */
.game-live-tile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: transform 0.05s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.game-live-tile:active {
  transform: scale(0.98);
}

.glt-ico {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

.glt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.glt-hd {
  font-weight: 700;
  font-size: 0.88rem;
  color: inherit;
}

.glt-ticker {
  font-size: 0.78rem;
  color: currentColor;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Continue scoring — the primary CTA for the scorer holding the lock. */
.game-live-tile-continue {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}
.game-live-tile-continue:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

/* Live view (someone else scoring). */
.game-live-tile-view {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.game-live-tile-view:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Take over (stale scorer + authorized user). */
.game-live-tile-takeover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}
.game-live-tile-takeover:focus-visible {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
}

/* Start scoring. */
.game-live-tile-green {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}
.game-live-tile-green:focus-visible {
  outline: 3px solid #10b981;
  outline-offset: 2px;
}

/* Set lineup (scheduled + within 24h + no lineup). */
.game-live-tile-amber {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}
.game-live-tile-amber:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

/* Final recap. */
.game-live-tile-final {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}
.game-live-tile-final:focus-visible {
  outline: 3px solid #6b7280;
  outline-offset: 2px;
}

/* Pulse animation for the "continue scoring" tile — respects reduced-motion. */
@keyframes gltPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .game-live-tile { transition: none; }
  .game-live-tile-continue .glt-ico i {
    animation: none !important;
  }
}

/* ─── Live-now rail (M-3 + M-6) ───────────────────────────────── */
.live-now-rail {
  /* Container is now vertically stacked (head above track). The horizontal
     scroll happens inside .live-now-rail-track. */
  display: block;
  margin-bottom: 1.25rem;
}
.live-now-rail-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0 0.1rem;
}
.live-now-rail-dot {
  width: 10px; height: 10px; background: #ef4444; border-radius: 50%;
  animation: gltPulse 1.5s infinite;
  flex-shrink: 0;
}
.live-now-rail-title {
  font-family: 'Source Serif 4', serif; font-size: 1rem; font-weight: 700;
  color: #101820; margin: 0;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.live-now-rail-count {
  font-size: 0.72rem; color: #92400e; font-weight: 600;
  background: #fef3c7; border-radius: 999px; padding: 0.15rem 0.55rem;
}
.live-now-rail-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.live-now-rail-track::-webkit-scrollbar { height: 6px; }
.live-now-rail-track::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.live-now-card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 44px;
}
.live-now-card-body {
  display: block;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.live-now-card-body:active { background: #fef9c3; }
.live-now-card-hd {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #b45309; margin-bottom: 0.3rem;
}
.live-now-card-hd .lnc-dot {
  width: 8px; height: 8px; background: #ef4444; border-radius: 50%;
  animation: gltPulse 1.5s infinite;
}
.live-now-card-teams {
  font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 0.3rem;
  line-height: 1.3;
}
.live-now-card-line {
  font-size: 0.85rem; color: #4b5563;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.live-now-card-meta {
  font-size: 0.72rem; color: #6b7280; margin-top: 0.25rem;
}
.live-now-card-meta .lnr-stale {
  color: #dc2626; font-weight: 600;
}
/* Admin: force-takeover button pinned to bottom of card. */
.lnc-force-btn {
  border: 0; border-top: 1px solid #fecaca;
  background: #fef2f2; color: #991b1b;
  padding: 0.55rem 1rem; font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lnc-force-btn:hover { background: #fee2e2; }
.lnc-force-btn:disabled { opacity: 0.6; cursor: wait; }

@media (prefers-reduced-motion: reduce) {
  .live-now-rail-dot,
  .live-now-card-hd .lnc-dot {
    animation: none !important;
  }
}

/* ─── Homepage live strip (M-7) ─────────────────────────────── */
.home-live-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: linear-gradient(to right, #fef3c7, #fef9c3);
  border-bottom: 1px solid #fcd34d;
  -webkit-overflow-scrolling: touch;
  font-size: 0.85rem;
}
.home-live-strip-label {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-live-strip-label .hlc-dot {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: gltPulse 1.5s infinite;
}
.home-live-strip-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex: 1; min-width: 0;
  scrollbar-width: none;
}
.home-live-strip-chips::-webkit-scrollbar { display: none; }
.home-live-strip-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #92400e;
  text-decoration: none;
  min-height: 32px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.home-live-strip-chip:active { background: #fef3c7; }
.home-live-strip-chip .hlc-dot {
  width: 6px; height: 6px; background: #ef4444; border-radius: 50%;
  animation: gltPulse 1.5s infinite;
  flex-shrink: 0;
}
.home-live-strip-chip .hlc-matchup {
  font-weight: 700;
  color: #7c2d12;
}
.home-live-strip-chip .hlc-ticker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: #92400e;
}
.home-live-strip-loading {
  cursor: default;
  color: #92400e;
  font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
  .live-now-card-hd .lnc-dot,
  .home-live-strip-chip .hlc-dot,
  .home-live-strip-label .hlc-dot { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Session 84 — clickable "LIVE · Watch" pill for the Game Center schedule
   row Status column. Replaces the non-clickable "● Live" span so parents
   have a direct path from the schedule table to /game/:id/live.
   ═══════════════════════════════════════════════════════════════════════ */
.sched-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  text-decoration: none;
  border: 1.5px solid #f59e0b;
  min-height: 28px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.sched-live-pill:hover,
.sched-live-pill:focus-visible {
  background: #fde68a;
  color: #78350f;
  outline: none;
}
.sched-live-pill:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}
.sched-live-pill:active {
  transform: scale(0.97);
}
.sched-live-dot {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: gltPulse 1.5s infinite;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .sched-live-dot { animation: none; }
}
