/* Styles of the server-rendered site that are not in the CSS taken over from the Nuxt build (public/nuxt/entry.*.css):
   former scoped component styles and replacements for client-only libraries (marquee, Swiper). */

/* Team logo ticker in the top bar (was vue3-marquee): two copies of the list, moved by exactly one copy */
.ssr-marquee { width: 100%; }
.ssr-marquee__track { display: flex; width: max-content; animation: ssr-marquee 60s linear infinite; }
.ssr-marquee:hover .ssr-marquee__track { animation-play-state: paused; }
@keyframes ssr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ssr-marquee__track { animation: none; } }

.ssr-newsletter-btn { background-image: url('/ssr/img/footer-button-bg.svg'); }

[hidden] { display: none !important; }

/* Newsletter dialog */
.ssr-dialog { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); padding: 16px; }
.ssr-dialog__box { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }

/* Carousel (replaces Swiper): --cv / --cv-md visible items, --cg gap */
.ssr-carousel { display: flex; gap: var(--cg, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ssr-carousel::-webkit-scrollbar { display: none; }
.ssr-carousel__item { flex: 0 0 calc((100% - (var(--cv) - 1) * var(--cg)) / var(--cv)); scroll-snap-align: start; min-width: 0; display: flex; }
.ssr-carousel__item > * { width: 100%; }
@media (min-width: 768px) { .ssr-carousel__item { flex-basis: calc((100% - (var(--cv-md) - 1) * var(--cg)) / var(--cv-md)); } }

/* News hero slides */
.ssr-hero-bg { opacity: 0; transition: opacity .6s ease; }
.ssr-hero-bg.is-active { opacity: 1; }

/* Game card (was scoped in cards/GameCard.vue) */
.gc-card { display: flex; flex-direction: column; }
.gc-card .gc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 14px 14px; flex: 1; }
.gc-card .gc-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.gc-card .gc-guest { order: 3; }
.gc-card .gc-center { order: 2; min-width: 84px; }
.gc-card .gc-logo { width: 52px; height: 52px; }
.gc-card .gc-name { font-size: 13px; }
.gc-card .gc-foot { padding: 8px 0 0 14px; }
.gc-row { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; padding: 10px 14px; gap: 6px; }
.gc-row .gc-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.gc-row .gc-team { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.gc-row .gc-guest { order: 3; }
.gc-row .gc-center { order: 2; min-width: 88px; }
.gc-row .gc-logo { width: 40px; height: 40px; flex-shrink: 0; }
.gc-row .gc-name { font-size: 13px; max-width: 100%; hyphens: auto; }
.gc-cta { background: #FF6F00; color: #fff; padding: 5px 16px 5px 18px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.gc-row .gc-cta { background: transparent; color: #FF6F00; padding: 0; clip-path: none; }
.gc-live { border-left: 4px solid #FF6F00; }
.gc-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: gc-pulse 1.4s infinite; }
@keyframes gc-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .gc-dot { animation: none; } }

/* Page change in progress (public/js/site.js): shown after 250 ms */
.ssr-loading { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(246, 242, 233, .7); backdrop-filter: blur(2px); }
.ssr-loading__spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid rgba(21, 21, 21, .15); border-top-color: #FF6F00; animation: ssr-spin .8s linear infinite; }
.ssr-loading__text { font-family: inherit; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: #151515; }
@keyframes ssr-spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .ssr-loading__spinner { animation-duration: 2.4s; } }
