*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Gradient defaults */
  --bg-left: #111827;
  --bg-right: #374151;

  /* UI tokens */
  --card-radius: 20px;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --card-glass-bg: rgba(255, 255, 255, 0.08);
  --card-glass-border: rgba(255, 255, 255, 0.12);
  --card-glass-blur: 20px;
  --progress-bar-height: 4px;
  --max-card-width: 400px;
  --transition-duration: 900ms;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Safe areas */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* ---- Background layers ---- */
#background-layer,
#background-layer-fg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--bg-left), var(--bg-right));
  transform: scale(1.08);
  transition:
    opacity var(--transition-duration) ease-in-out,
    background var(--transition-duration) ease-in-out;
  opacity: 1;
  filter: blur(32px) saturate(1.4) contrast(1.1) brightness(0.85);
}

#background-layer-fg {
  opacity: 0;
}

/* CRT scanline overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
  animation: scanlineScroll 8s linear infinite;
}

@keyframes scanlineScroll {
  from { background-position: 0 0; }
  to { background-position: 0 100vh; }
}

/* Floating particles */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 40%, rgba(0,255,200,0.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 70%, rgba(0,200,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, rgba(255,100,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 10%, rgba(255,255,100,0.25) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(0,255,200,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 15% 55%, rgba(100,180,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,0.25) 50%, transparent 100%);
  background-size: 200% 200%;
  animation: floatParticles 20s ease-in-out infinite alternate;
}

@keyframes floatParticles {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 50% 100%; }
}

/* ---- Body ---- */
body {
  background: linear-gradient(135deg, var(--bg-left) 0%, var(--bg-right) 100%);
  background-image: var(--background-image);
  transition: background var(--transition-duration) ease-in-out;
  margin: 0;
  padding: 0;
  font-family: var(
    --secondary-font-family,
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif
  );
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Title area ---- */
.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: var(--max-card-width);
  margin: 0 auto;
  padding: calc(var(--sat) + 0.5rem) 1rem calc(var(--sab) + 0.5rem);
  position: relative;
  z-index: 1;
}

.slider-container h2 {
  margin-bottom: 2rem;
}

.slider-title {
  font-family: var(--font-family, inherit);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  margin: 0 0 0.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  animation: glitchAppear 0.8s var(--spring) 0.25s forwards;
  text-shadow:
    0 0 7px rgba(var(--neon-r, 0), var(--neon-g, 200), var(--neon-b, 255), 0.8),
    0 0 20px rgba(var(--neon-r, 0), var(--neon-g, 200), var(--neon-b, 255), 0.4),
    0 0 40px rgba(var(--neon-r, 0), var(--neon-g, 200), var(--neon-b, 255), 0.2);
}

#header_logo.logo,
#header_logo2.logo,
header a .logo {
  text-align: center;
  margin: 0 auto !important;
  max-width: 300px !important;
  max-height: 300px !important;
  padding: 50px;
}

.slider-container > h3 {
  font-family: var(--font-family, inherit);
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  font-weight: 400;
  text-align: center;
  opacity: 0;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  animation: fadeSlideDown 0.5s var(--smooth) 0.35s forwards;
}

h3 {
  display: block;
  text-align: center;
  margin: 0 auto;
  font-size: var(--secondary-font-size, 1rem) !important;
  line-height: var(--secondary-font-size, 1rem) !important;
  font-weight: 700;
  max-width: 90%;
  text-transform: uppercase;
  color: var(--primary-color, #fff);
  padding: 0.75rem 1rem 0;
}

/* ---- Splide overrides ---- */
.splide {
  width: 100%;
  max-width: var(--max-card-width);
  height: 80vh;
  height: 80dvh;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.5s var(--smooth) 0.4s forwards;
}

.splide__track {
  height: 100% !important;
  overflow: hidden !important;
  position: relative;
}

.splide__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  height: 100%;
  margin: 0.75rem 0 !important;
  padding: 0 !important;
}

/* ---- Cards ---- */
.splide__slide {
  background-image: var(--background-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: var(--card-radius);
  flex: 0 0 46%;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transform: scale(1);
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.4s var(--smooth);
  will-change: transform;
}

/* Animated neon border ring */
.splide__slide::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--card-radius) + 2px);
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    rgba(0, 220, 255, 0.6) 15%,
    transparent 30%,
    rgba(180, 0, 255, 0.5) 50%,
    transparent 65%,
    rgba(0, 255, 150, 0.5) 80%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.4;
  transition: opacity 0.4s var(--smooth);
  animation: rotateBorder 4s linear infinite;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

/* HUD corner brackets */
.splide__slide::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--card-radius) - 6px);
  pointer-events: none;
  z-index: 4;
  opacity: 0.25;
  transition: opacity 0.4s var(--smooth);
  background:
    linear-gradient(to right, rgba(0,220,255,0.6) 0%, transparent 0%) top left,
    linear-gradient(to bottom, rgba(0,220,255,0.6) 0%, transparent 0%) top left,
    linear-gradient(to right, rgba(0,220,255,0.6) 0%, transparent 0%) bottom right,
    linear-gradient(to bottom, rgba(0,220,255,0.6) 0%, transparent 0%) bottom right;
  background-size: 20px 2px, 2px 20px;
  background-repeat: no-repeat;
}

/* Active card emphasis */
.splide__slide.is-active {
  transform: scale(1.03);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 200, 255, 0.12),
    0 0 60px rgba(0, 200, 255, 0.06);
}

.splide__slide.is-active::before {
  opacity: 0.9;
}

.splide__slide.is-active::after {
  opacity: 0.6;
  animation: hudPulse 2s ease-in-out infinite;
}

@keyframes hudPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

.splide__slide a {
  display: block;
  text-decoration: none;
  height: 100%;
  color: inherit;
}

.splide__slide > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* ---- Slide overlay — HUD style ---- */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2.5rem 1rem 0.875rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 10, 30, 0.5) 50%,
    transparent 100%
  );
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  border-top: 1px solid rgba(0, 200, 255, 0.1);
}

.slide-overlay h3 {
  font-family: var(--font-family, "Inter", sans-serif);
  font-size: var(--font-size);
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
}

.slide-overlay p {
  font-family: var(--secondary-font-family, "Inter", sans-serif);
  font-size: 0.825rem;
  margin: 0.25rem 0 0;
  color: rgba(0, 220, 255, 0.7);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Small arrow hint on cards with links */
.slide-overlay .slide-arrow-hint {
  position: absolute;
  right: 1rem;
  bottom: 0.875rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 20, 40, 0.6);
  border: 1px solid rgba(0, 200, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition:
    transform 0.3s var(--spring),
    background 0.3s var(--smooth),
    box-shadow 0.3s var(--smooth);
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.15);
}

.slide-overlay .slide-arrow-hint svg {
  stroke: rgba(0, 220, 255, 0.9);
}

.splide__slide:active .slide-arrow-hint {
  transform: scale(0.92) translateX(2px);
  background: rgba(0, 200, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.4);
}

/* ---- Progress indicator (segmented pills) ---- */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 30px;
  margin: 0.875rem auto 0;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.5s var(--smooth) 0.6s forwards;
}

.progress-bar .progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(0, 200, 255, 0.2);
  transition: all 0.4s var(--spring);
}

.progress-bar .progress-dot.active {
  width: 28px;
  background: linear-gradient(90deg, rgba(0, 220, 255, 0.9), rgba(120, 0, 255, 0.8));
  border-color: rgba(0, 220, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 220, 255, 0.5), 0 0 20px rgba(0, 220, 255, 0.2);
}

/* Hide the old progress div (JS sets width on it) */
.progress-bar .progress {
  display: none;
}

/* ---- Edge fade overlays (hint at more content) ---- */
.splide__track::before,
.splide__track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3rem;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--smooth);
}

.splide__track::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.splide__track::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}

/* Show fades once slider is mounted (JS adds this class) */
.splide.is-initialized .splide__track::before,
.splide.is-initialized .splide__track::after {
  opacity: 1;
}

/* ---- Navigation arrows ---- */
/* Override Splide's default --ttb positioning entirely */
.splide__arrows,
.splide__arrows--ttb {
  position: absolute !important;
  right: 0.5rem !important;
  left: auto !important;
  top: auto !important;
  bottom: 0.75rem !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  gap: 0.375rem;
  z-index: 5;
}

.splide__arrow,
.splide__arrows--ttb .splide__arrow--prev,
.splide__arrows--ttb .splide__arrow--next {
  position: static !important;
  transform: none !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(0, 10, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: 50%;
  opacity: 0.9;
  transition:
    opacity 0.25s var(--smooth),
    transform 0.25s var(--spring),
    background 0.25s var(--smooth),
    box-shadow 0.25s var(--smooth);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.splide__arrow:hover {
  opacity: 1;
  transform: scale(1.1) !important;
  background: rgba(0, 20, 50, 0.7);
  border-color: rgba(0, 220, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.3), inset 0 0 8px rgba(0, 200, 255, 0.1);
}

.splide__arrow:active {
  transform: scale(0.92) !important;
  opacity: 1;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

.splide__arrow svg {
  fill: rgba(0, 220, 255, 0.9);
  height: 0.875rem;
  width: 0.875rem;
  display: block !important;
  filter: drop-shadow(0 0 3px rgba(0, 200, 255, 0.5));
}

/* ---- Footer ---- */
.footer-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.6rem 0 calc(0.6rem + var(--sab));
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-navigation a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

/* ---- Swipe hint animation (first load) ---- */
.swipe-hint {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: swipeHintAppear 0.6s var(--smooth) 1.5s forwards;
  pointer-events: none;
}

.swipe-hint__icon {
  width: 28px;
  height: 28px;
  animation: swipeBounce 1.5s ease-in-out infinite 2s;
}

.swipe-hint__text {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(0, 220, 255, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 200, 255, 0.3);
}

.swipe-hint.hidden {
  opacity: 0 !important;
  animation: none;
  transition: opacity 0.3s var(--smooth);
}

@keyframes swipeHintAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes swipeBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ---- Entrance animations ---- */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Stagger card entrance — power-up style */
.splide__slide {
  opacity: 0;
  transform: translateY(40px) scale(0.9) rotateX(8deg);
  animation: cardPowerUp 0.7s var(--spring) forwards;
}

.splide__slide:nth-child(1) { animation-delay: 0.4s; }
.splide__slide:nth-child(2) { animation-delay: 0.55s; }
.splide__slide:nth-child(3) { animation-delay: 0.7s; }
.splide__slide:nth-child(4) { animation-delay: 0.85s; }
.splide__slide:nth-child(5) { animation-delay: 1.0s; }
.splide__slide:nth-child(6) { animation-delay: 1.15s; }
.splide__slide:nth-child(7) { animation-delay: 1.3s; }
.splide__slide:nth-child(8) { animation-delay: 1.45s; }

@keyframes cardPowerUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9) rotateX(8deg);
    filter: brightness(2) saturate(0);
  }
  60% {
    opacity: 1;
    filter: brightness(1.4) saturate(1.2);
  }
  80% {
    transform: translateY(-4px) scale(1.02) rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: brightness(1) saturate(1);
  }
}

/* Glitch title entrance */
@keyframes glitchAppear {
  0% {
    opacity: 0;
    transform: translateY(-20px) skewX(-5deg);
    filter: blur(8px);
    clip-path: inset(0 100% 0 0);
  }
  30% {
    opacity: 1;
    clip-path: inset(0 30% 0 0);
    filter: blur(2px);
  }
  50% {
    transform: translateY(2px) skewX(2deg);
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
  65% {
    transform: translateY(-1px) skewX(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewX(0deg);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}

/* ---- Body state classes (from existing JS) ---- */
body.home h1,
body.home h2 {
  display: block !important;
  font-family: var(--font-family);
  padding-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #background-layer,
  #background-layer-fg {
    filter: blur(24px) saturate(1.15);
  }

  .splide__slide {
    flex: 0 0 42%;
  }

  .slide-overlay h2 {
    font-size: var(--font-size);
  }
}

@media (max-width: 380px) {
  .slider-title {
    font-size: var(--font-size);
  }

  .splide__slide {
    flex: 0 0 38%;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .slider-title {
    font-size: var(--font-size);
    margin-bottom: 0;
  }

  .slider-container > h2 {
    display: none;
  }

  .splide {
    height: 70vh;
    height: 70dvh;
  }

  .splide__slide {
    flex: 0 0 60%;
  }
}

/* Tall phones get more card real estate */
@media (min-height: 800px) and (max-width: 480px) {
  .splide__slide {
    flex: 0 0 38%;
  }

  .splide {
    height: 75vh;
    height: 75dvh;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .swipe-hint {
    display: none;
  }
}

/* ---- Touch feedback ---- */
@media (hover: none) and (pointer: coarse) {
  .splide__slide:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
    filter: brightness(1.15);
  }

  .splide__slide.is-active:active {
    transform: scale(0.99);
    filter: brightness(1.2);
  }

  .splide__slide:active::before {
    opacity: 1;
  }
}

/* Cinematic vignette overlay */
.slider-container::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* Hide QR code link on mobile (used for desktop/display) */
a.scan {
  display: none;
}

/* ---- Sports Widget — Game HUD ---- */
.sports-widget {
  width: 100%;
  border-radius: 14px;
  background: rgba(0, 10, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 200, 255, 0.15);
  margin-bottom: 0.75rem;
  overflow: hidden;
  opacity: 0;
  animation: fadeSlideDown 0.5s var(--smooth) 0.3s forwards;
  font-family: var(--font-family);
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 200, 255, 0.08);
}

.sw-tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.15);
}

.sw-tab {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--smooth);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sw-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.sw-tab.active {
  background: rgba(0, 200, 255, 0.15);
  color: rgba(0, 220, 255, 1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.15);
  text-shadow: 0 0 6px rgba(0, 200, 255, 0.4);
}

.sw-content {
  padding: 6px;
  min-height: 60px;
}

.sw-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  gap: 8px;
}

.sw-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sw-empty {
  text-align: center;
  padding: 14px 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
}

/* Game row */
.sw-game {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.sw-game + .sw-game {
  margin-top: 2px;
}

.sw-game:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sw-team {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.sw-team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.sw-team img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.sw-team .name {
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9);
}

.sw-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0 6px;
}

.sw-status {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1px;
}

.sw-status.live {
  color: #22ff66;
  text-shadow: 0 0 6px rgba(34, 255, 102, 0.6), 0 0 15px rgba(34, 255, 102, 0.3);
  animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.sw-status.finished {
  color: rgba(255, 255, 255, 0.35);
}
.sw-status.scheduled {
  color: #f59e0b;
}

.sw-scores {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.5rem;
  font-weight: 700;
}

.sw-scores .sep {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
  font-size: 0.7rem;
}

/* Standings mini table */
.sw-standings {
  width: 100%;
  border-collapse: collapse;
}

.sw-standings th {
  padding: 4px 6px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sw-standings th:nth-child(2) {
  text-align: left;
}

.sw-standings td {
  padding: 5px 6px;
  font-size: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.sw-standings td:nth-child(2) {
  text-align: left;
}

.sw-standings tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sw-standings .sw-rank {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  width: 20px;
}

.sw-standings .sw-team-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw-standings .sw-team-cell img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.sw-standings .sw-team-cell .name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.sw-standings .sw-pts {
  font-weight: 700;
  color: #fff;
}

.sw-pool-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 2px;
}
.sw-pool-header:not(:first-child) {
  margin-top: 12px;
}

/* F1 race row */
.sw-race {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
}

.sw-race + .sw-race {
  margin-top: 2px;
}

.sw-race:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sw-race-round {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  min-width: 22px;
  text-align: center;
}

.sw-race-name {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9);
}

.sw-race-date {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* View more toggle */
.sw-more {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0, 220, 255, 0.9);
  background: rgba(0, 200, 255, 0.06);
  border: none;
  border-top: 1px solid rgba(0, 200, 255, 0.15);
  cursor: pointer;
  letter-spacing: 0.05em;
  font-family: inherit;
  transition: all 0.2s var(--smooth);
  border-radius: 0 0 10px 10px;
  text-shadow: 0 0 6px rgba(0, 200, 255, 0.3);
}

.sw-more:hover {
  background: rgba(0, 200, 255, 0.12);
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.sw-more::after {
  content: " \25BE";
  font-size: 1.5rem;
  margin-left: 4px;
}

.sw-more.expanded::after {
  content: " \25B4";
}
