/* TG CUP — shared base styles (2026-10-04).
   Loaded on every page AFTER css/themes.css. Holds what has no clean
   Tailwind-utility equivalent: font defaults, icon-font safety, live
   pulse, skeleton shimmer, scrollbar hiding, mobile safe-area. */

html { scroll-behavior: smooth; }
body {
  font-family: "Roboto Condensed", sans-serif;
  -webkit-font-smoothing: antialiased;
}
input, button, select, textarea { font-family: inherit; }

/* Scoreboard numerals never shift while a live score updates. */
.font-label-score, .tabular, [data-score] { font-variant-numeric: tabular-nums; }

/* Material Symbols — and the defensive 1em clip: if the icon webfont is
   slow/blocked, the ligature name ("sports_soccer") would otherwise spill
   out as text (exactly what Stitch screen tg_cup_light_desktop_3 shows). */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  width: 1em;
  height: 1em;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}
.material-symbols-outlined.fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

/* Live indicators */
@keyframes gc-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}
.gc-live-dot, .live-dot { animation: gc-live-pulse 1.4s ease-in-out infinite; }

/* Skeleton shimmer */
@keyframes gc-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.gc-skeleton {
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgb(var(--c-surface-container)) 0px, rgb(var(--c-surface-container-low)) 120px, rgb(var(--c-surface-container)) 240px);
  background-size: 800px 100%;
  animation: gc-shimmer 1.4s linear infinite;
}

/* Hidden scrollbars on horizontally scrollable strips */
.gc-no-scrollbar, .no-scrollbar, .gc-scroll-x { scrollbar-width: none; -ms-overflow-style: none; }
.gc-no-scrollbar::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar, .gc-scroll-x::-webkit-scrollbar { display: none; }
.gc-scroll-x { overflow-x: auto; }

/* Video strip */
.gc-video-card { flex: 0 0 auto; width: 15rem; }
@media (min-width: 640px) { .gc-video-card { width: 18rem; } }
.gc-ratio-16x9 { aspect-ratio: 16 / 9; }

/* Dotted pitch texture used on red hero blocks */
.gc-dots { background-image: radial-gradient(#fff 1.5px, transparent 1.5px); background-size: 20px 20px; }

/* Demo-data marker: values that scores.mn does not send yet (possession,
   shots, slogans …) are rendered from js/demo.js and tagged with
   [data-demo]. Hover shows why. Remove config.demo.enabled to hide them. */
[data-demo] { text-decoration: underline dotted rgb(var(--c-outline) / 0.6); text-underline-offset: 3px; cursor: help; }

/* Mobile bottom nav — keep clear of the iOS home indicator */
.gc-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 1023px) { body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } }

/* Line clamp fallback */
.line-clamp-1, .line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* Team crests, club logos and player photos: square with a soft corner —
   radius 5% of the height (all of these boxes are square). Used by
   GC.crestHtml / GC.avatarHtml / GC.crestFallbackEl. */
.gc-crest { border-radius: 5%; overflow: hidden; }

/* =====================================================================
   Ивээн тэтгэгч & хамтрагчдын лого — footer-ийн дээр (js/layout.js
   renderSponsors_). MPBA сайтын (pball/css/main.css v3.28) хувилбарыг
   TG CUP-ийн өнгө рүү шилжүүлэв: lime → Kinetic Red, navy → slate.
   ===================================================================== */
.sp-section {
  position: relative;
  margin-top: 3rem;
  background:
    radial-gradient(1200px 300px at 50% 0%, rgb(var(--c-primary) / 0.06), transparent 70%),
    rgb(var(--c-surface-container-lowest));
  border-top: 1px solid rgb(var(--c-outline-variant));
  overflow: hidden;
}
.sp-section.hidden { display: none; }
.sp-section *, .sp-section *::before, .sp-section *::after { box-sizing: border-box; }
.sp-section h2 { margin: 0; }
.sp-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.75rem 0 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}
.sp-section.sp-visible .sp-inner { opacity: 1; transform: none; }
.sp-head { text-align: center; padding: 0 1rem; margin-bottom: 1.75rem; }
.sp-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--c-primary));
  background: rgb(var(--c-primary-fixed));
  padding: .3rem .7rem;
  border-radius: 4px;
}
.sp-title {
  margin-top: .6rem;
  font-size: 1.75rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  color: rgb(var(--c-on-surface));
}
.sp-group + .sp-group { margin-top: 1.5rem; }
.sp-group-label {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgb(var(--c-on-surface-variant));
  margin-bottom: .75rem; padding: 0 1rem;
}
.sp-group-label .material-symbols-outlined { font-size: 18px; color: rgb(var(--c-primary)); }

.sp-marquee {
  position: relative;
  overflow: hidden;
  padding: .75rem 0 1.75rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.sp-track {
  display: flex; width: max-content; gap: 1rem;
  animation: sp-scroll var(--sp-duration, 40s) linear infinite;
  will-change: transform;
}
.sp-marquee[data-direction="right"] .sp-track { animation-direction: reverse; }
.sp-marquee:hover .sp-track, .sp-marquee:focus-within .sp-track { animation-play-state: paused; }
@keyframes sp-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .5rem)); } }
.sp-static { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding: .75rem 1rem 1.75rem; }

.sp-card {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 168px; height: 84px; padding: .9rem 1.1rem;
  background: rgb(var(--c-surface-container-lowest));
  border: 1px solid rgb(var(--c-outline-variant));
  border-radius: .5rem;
  text-decoration: none;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1), box-shadow 320ms ease, border-color 320ms ease;
}
.sp-card::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px;
  background: rgb(var(--c-primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 380ms cubic-bezier(.2, .8, .2, 1);
}
.sp-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sp-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .62;
  transition: filter 360ms ease, opacity 360ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1);
}
.sp-fallback {
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: rgb(var(--c-outline)); text-align: center; line-height: 1.15;
  transition: color 300ms ease;
}
.sp-name {
  position: absolute; left: 50%; top: calc(100% + 6px);
  transform: translate(-50%, -4px);
  white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  font-size: 11px; font-weight: 600;
  color: #fff; background: rgb(var(--c-secondary));
  padding: .2rem .55rem; border-radius: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}
.sp-card:hover, .sp-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgb(var(--c-primary) / 0.7);
  box-shadow: 0 14px 28px -12px rgb(var(--c-secondary) / 0.35), 0 0 0 4px rgb(var(--c-primary) / 0.12);
  outline: none;
}
.sp-card:hover::after, .sp-card:focus-visible::after { transform: scaleX(1); }
.sp-card:hover .sp-logo img, .sp-card:focus-visible .sp-logo img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
.sp-card:hover .sp-fallback, .sp-card:focus-visible .sp-fallback { color: rgb(var(--c-primary)); }
.sp-card:hover .sp-name, .sp-card:focus-visible .sp-name { opacity: 1; transform: translate(-50%, 0); }
.sp-card:active { transform: translateY(-2px) scale(.98); }
@media (hover: none) { .sp-logo img { filter: none; opacity: .95; } .sp-fallback { color: rgb(var(--c-on-surface)); } }
@media (max-width: 639.98px) {
  .sp-inner { padding: 2rem 0 1.75rem; }
  .sp-title { font-size: 1.3rem; }
  .sp-card { width: 132px; height: 66px; padding: .65rem .8rem; border-radius: .4rem; }
  .sp-track, .sp-static { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-inner { opacity: 1; transform: none; transition: none; }
  .sp-track { animation: none; }
  .sp-card, .sp-card::after, .sp-logo img, .sp-name { transition: none; }
}
