/* ============================================================
   team-strip.css — the eight teams as pickable tiles.
   Used on Discover and the Xavier Cup tab (components/team-strip.js).

   All eight stay on one row down to tablet width, then wrap to
   two rows of four: a sprite shrunk below ~40px stops reading.
   ============================================================ */

.team-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--space-2);
}

.team-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 6px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  text-align: center;
  transition: transform 160ms, border-color 160ms, box-shadow 160ms;
}
.team-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.team-tile.is-selected {
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--tx-accent), var(--shadow-sm);
}

.team-tile__crest {
  display: block;
  width: 100%;
  height: clamp(48px, 6vw, 72px);
}
.team-tile__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(14, 43, 85, 0.18));
}

.team-tile__name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.team-tile__short {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .team-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .team-tile { padding: 10px 4px 8px; }
  .team-tile__name { font-size: 11.5px; }
}
