/* Kadro tahtası (board.js): giriş sayfası (gate.css) ve kadrospor.com ana sayfası. */

.board {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--navy, #12284a);
}

.pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Sayfa dokunarak kayabilsin (ana sayfa); yalnızca noktalar sürüklenir. */
  touch-action: pan-y;
  /* Zemin: taktik defteri gibi nokta ızgarası (SVG pattern değil: <base href> altında url(#…) kırılabilir). */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1.3px, transparent 1.7px);
  background-size: 28px 28px;
  user-select: none;
  -webkit-user-select: none;
}

.pitch .chalk { fill: rgba(255, 255, 255, 0.5); pointer-events: none; }
.pitch .dot { fill: #fff; cursor: grab; touch-action: none; transition: fill 0.25s; }
.pitch .dot.accent { fill: var(--lime, #c5f05a); }
/* Yoklamada işaretlenen sporcu */
.pitch.roll .dot.accent { fill: #fff; }
.pitch .dot.checked, .pitch.roll .dot.checked { fill: var(--lime, #c5f05a); }
.pitch .dot.dragging { cursor: grabbing; }
.pitch .ring {
  fill: none;
  stroke: var(--lime, #c5f05a);
  stroke-width: 2;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.pitch .ring.live { animation: ring 2.4s ease-out infinite; }
.board.paused .ring.live { animation-play-state: paused; }

@keyframes ring {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.4); }
}

.lineup {
  position: absolute;
  top: clamp(24px, 5vh, 56px);
  left: clamp(24px, 4vw, 56px);
  margin: 0;
  color: #fff;
  pointer-events: none;
}

.board.horizontal .lineup { left: auto; right: 20px; top: 16px; text-align: right; }

.lineup p { margin: 0; }

.lineup-team {
  min-height: 1.5em;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
}

.lineup-shape {
  min-height: 1em;
  font: 800 clamp(64px, 8.5vw, 128px)/0.92 "Bricolage Grotesque", Figtree, sans-serif;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board.horizontal .lineup-team { font-size: 13px; }
.board.horizontal .lineup-shape { font-size: 44px; }

.lineup-shape .ch { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .pitch .ring.live { animation: none; }
  .pitch .dot { transition: none; }
}
