/* UEFA Champions League Bracket - Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --uefa-blue: #0a1628;
  --uefa-blue-mid: #0d2137;
  --uefa-blue-light: #1a3a5c;

  --uefa-gold: #c9a227;
  --uefa-gold-light: #e8c547;
  --uefa-white: #f0f4f8;

  --card-bg: #0f2a44;
  --card-border: #d4af37;
  --card-glow: rgba(212, 175, 55, 0.4);
}

@keyframes starball-rotate-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes starball-rotate-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes starball-rotate-cw-topleft {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes starball-rotate-ccw-bottomright {
  from { transform: translate(-100%, -100%) rotate(0deg); }
  to { transform: translate(-100%, -100%) rotate(-360deg); }
}

@keyframes uclOrbitL {
  0%   { translate: 0px 0px; }
  25%  { translate: 160px 0px; }
  50%  { translate: 160px 160px; }
  75%  { translate: 0px 160px; }
  100% { translate: 0px 0px; }
}

@keyframes uclOrbitR {
  0%   { translate: 0px 0px; }
  25%  { translate: -120px 0px; }
  50%  { translate: -120px -120px; }
  75%  { translate: 0px -120px; }
  100% { translate: 0px 0px; }
}

body {
  margin: 0;
  position: relative;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  
  /* фон как в графике ЛЧ */
  background:
  radial-gradient(circle at 50% 45%, rgba(120,190,255,0.28) 0%, rgba(0,0,0,0) 55%),
  conic-gradient(from 210deg at 50% 45%,
  rgba(255,255,255,0.06) 0deg,
  rgba(255,255,255,0.00) 35deg,
  rgba(255,255,255,0.05) 70deg,
  rgba(255,255,255,0.00) 110deg,
  rgba(255,255,255,0.04) 160deg,
  rgba(255,255,255,0.00) 220deg,
  rgba(255,255,255,0.05) 300deg,
  rgba(255,255,255,0.00) 360deg
  ),
  linear-gradient(135deg, #0a1c40 0%, #071633 40%, #020a1a 100%);
  
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  
  color: var(--uefa-white);
  overflow-x: hidden;
  }

body::before {
  content: "";
  position: fixed;
  top: -10px;
left: -350px;
  width: 1700px;
  height: 1700px;
  background: url("assets/logos/starball.png") center / contain no-repeat;
  opacity: 0.95;
  filter: blur(0px);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
  animation: starball-rotate-cw-topleft 150s linear infinite, uclOrbitL 18s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  bottom: -200px;
right: -1300px;
top: 500px;
left: auto;
transform: none;
  width: 1000px;
  height: 1000px;
  background: url("assets/logos/starball.png") center / contain no-repeat;
  opacity: 0.55;
  filter: blur(0px);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
  animation: starball-rotate-ccw-bottomright 150s linear infinite, uclOrbitR 14s ease-in-out infinite;
}

.container,
.bracket-wrapper,
main {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-x: hidden;
}

/* Single-page scroll layout: sections stack from top */
.container:has(> #main-bracket) {
  justify-content: flex-start;
}

.page-section {
  scroll-margin-top: 0;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 140px;
  width: 100%;
}

.page-section + .page-section {
  margin-top: 180px;
}

/* Main Bracket: tighter spacing so bracket + "Road To Budapest" fits on Full HD */
#main-bracket.page-section {
  padding-top: 48px;
  padding-bottom: 72px;
}

.header-area {
  --header-bg-alpha: 0;
  --header-blur: 0;
  --header-shadow-opacity: 0;
  --header-padding-top: 44;
  --header-nav-margin: 10;
  --header-content-offset: 0;
  --header-title-scale: 1;
  --header-title-block-offset: 0;
  --header-season-opacity: 1;
  --header-title-recenter: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transform: translateY(calc(-8px + var(--header-content-offset) * 1px)) translateZ(0);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-top: calc(var(--header-padding-top) * 1px);
  padding-left: 16px;
  padding-right: 16px;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, var(--header-shadow-opacity)),
    0 0 1px rgba(212, 175, 55, calc(var(--header-shadow-opacity) * 0.4));
}

/* Full-width background: opacity and blur interpolate with scroll */
.header-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
  width: 100vw;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(7, 22, 40, var(--header-bg-alpha)) 0%,
    rgba(5, 16, 30, calc(var(--header-bg-alpha) * 0.95)) 100%
  );
  backdrop-filter: blur(calc(var(--header-blur) * 1px));
  -webkit-backdrop-filter: blur(calc(var(--header-blur) * 1px));
  pointer-events: none;
  z-index: -1;
}

.header-link-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-bottom: calc(var(--header-nav-margin) * 1px);
}

.header-link-row.nav-container {
  justify-content: space-between;
  gap: 0;
}

.header-link-row .nav-left,
.header-link-row .nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Language switcher: fixed top-right corner of viewport */
.lang-switcher-fixed {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
}
.lang-switcher-fixed .lang-switcher-btn {
  background: none;
  border: none;
  color: rgba(212, 175, 55, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.lang-switcher-fixed .lang-switcher-btn:hover {
  color: var(--uefa-gold-light);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}
.lang-switcher-fixed .lang-switcher-btn.active {
  color: var(--uefa-gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
.lang-switcher-fixed .lang-switcher-sep {
  color: rgba(212, 175, 55, 0.4);
  font-size: 0.7rem;
  user-select: none;
}

/* Header row: desktop nav + hamburger (hidden on desktop) */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: calc(var(--header-nav-margin) * 1px);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--uefa-gold);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hamburger-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--uefa-gold-light);
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(280px, 85vw);
  max-width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.98) 0%, rgba(15, 42, 68, 0.98) 100%);
  border-left: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}
/* When mobile menu is open, stack container above header so menu is not overlapped */
body.mobile-menu-open .container {
  position: relative;
  z-index: 600;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu-link {
  display: block;
  padding: 14px 12px;
  color: var(--uefa-gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-menu-link:hover {
  color: var(--uefa-gold-light);
  background: rgba(212, 175, 55, 0.1);
}
.mobile-menu-lang {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-menu-lang .lang-switcher-btn {
  background: none;
  border: none;
  color: rgba(212, 175, 55, 0.7);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-menu-lang .lang-switcher-btn:hover,
.mobile-menu-lang .lang-switcher-btn.active {
  color: var(--uefa-gold-light);
  background: rgba(212, 175, 55, 0.12);
}
.mobile-menu-lang .lang-switcher-sep {
  color: rgba(212, 175, 55, 0.4);
}

@media (max-width: 1199px) {
  .header-nav-desktop {
    display: none !important;
  }
  .hamburger-btn {
    display: flex;
  }
  .lang-switcher-fixed {
    display: none;
  }
  body:has(.static-page-header) .lang-switcher-fixed {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .mobile-menu {
    display: none;
  }
}

.header-text-link {
  display: inline-block;
  color: var(--uefa-gold);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
  transform-origin: left center;
}
.header-text-link:hover,
.header-text-link:focus,
.header-text-link:active,
.header-text-link:visited {
  text-decoration: none;
}
.header-text-link:hover {
  color: var(--uefa-gold-light);
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.5), 0 0 32px rgba(212, 175, 55, 0.25);
  transform: scale(1.04);
}
.header-text-link:focus {
  outline: none;
}

/* Active state: soft glow + subtle glow underline (Rewards page) */
.header-text-link.active {
  color: var(--uefa-gold);
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.2);
}
.header-text-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 78%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.35) 25%,
    rgba(212, 175, 55, 0.75) 50%,
    rgba(212, 175, 55, 0.35) 75%,
    transparent 100%
  );
  filter: blur(1px);
  border-radius: 1px;
  pointer-events: none;
}
.header-text-link.active:hover {
  color: var(--uefa-gold-light);
  text-shadow: 0 0 16px rgba(201, 162, 39, 0.4), 0 0 24px rgba(212, 175, 55, 0.2);
  transform: scale(1.04);
}

.header-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  transform: translateY(calc(var(--header-title-block-offset) * 1px));
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform: scale(var(--header-title-scale));
  transform-origin: center center;
  min-width: 0;
}

.header-home-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.header-home-link:hover .title,
.header-home-link:hover .header-season,
.header-home-link:focus-visible .title,
.header-home-link:focus-visible .header-season {
  color: #f5e07a;
  text-shadow: 0 0 28px rgba(201, 162, 39, 0.55), 0 0 40px rgba(212, 175, 55, 0.25);
}

.title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--uefa-gold-light);
  text-shadow: 0 0 22px rgba(201, 162, 39, 0.35);
  margin: 0 0 0.25rem 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  transform: translateY(calc(var(--header-title-recenter, 0) * 1px));
}

.header-season {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--uefa-gold-light);
  text-shadow: 0 0 22px rgba(201, 162, 39, 0.35);
  margin: 0.2rem 0 0 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  opacity: var(--header-season-opacity, 1);
  max-height: calc(var(--header-season-opacity, 1) * 2.5rem);
  overflow: hidden;
}

.header-line {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
}

.header-line-right {
  justify-content: flex-end;
}

.header-line-inner {
  display: block;
  position: relative;
  height: 2px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 20%, var(--uefa-gold) 50%, rgba(212, 175, 55, 0.5) 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  border-radius: 1px;
}
.header-line-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, transparent 25%, rgba(255, 235, 200, 0.7) 50%, transparent 75%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}
.header-area:has(.header-text-link:hover) .header-line-inner::after {
  animation: header-line-sweep 0.5s ease-out forwards;
}
@keyframes header-line-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.header-nav-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin-left: 16px;
  background: rgba(12, 32, 55, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 12px;
  color: var(--uefa-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(212, 175, 55, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.header-nav-btn:hover {
  border-color: var(--uefa-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 18px rgba(212, 175, 55, 0.35);
  color: var(--uefa-gold-light);
}

.awards-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Team Rewards: premium Budapest image carousel (desktop original) */
.team-rewards-carousel {
  position: relative;
  width: 100%;
  margin: -550px 0 2rem;
  overflow: visible;
  padding: 3.5rem 0;
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 160px 150px;
}
.carousel-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: carousel-scroll 40s linear infinite;
  padding: 0 1rem;
  overflow: visible;
}
@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.carousel-slide {
  flex: 0 0 auto;
  width: 320px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  z-index: 1;
  background: linear-gradient(
    145deg,
    rgba(15, 42, 68, 0.85) 0%,
    rgba(10, 22, 40, 0.92) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    0 0 24px rgba(212, 175, 55, 0.06);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.15) 0%,
    transparent 40%,
    transparent 60%,
    rgba(10, 22, 40, 0.25) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.carousel-slide:hover {
  transform: translateY(-18px) scale(1.25);
  z-index: 25;
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(232, 197, 71, 0.25),
    0 0 96px rgba(212, 175, 55, 0.15),
    0 0 140px rgba(212, 175, 55, 0.08);
}
.carousel-slide img {
  width: 320px;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(1.05) contrast(1.08) saturate(1.05);
  transition: filter 0.45s ease;
}
.carousel-slide:hover img {
  filter: brightness(1.12) contrast(1.12) saturate(1.1);
}
.carousel-fade {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 100px;
  pointer-events: none;
  z-index: 5;
}
.carousel-fade-left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(10, 22, 40, 0.28) 0%,
    rgba(10, 22, 40, 0.1) 28%,
    rgba(10, 22, 40, 0.03) 65%,
    transparent 100%
  );
}
.carousel-fade-right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(10, 22, 40, 0.28) 0%,
    rgba(10, 22, 40, 0.1) 28%,
    rgba(10, 22, 40, 0.03) 65%,
    transparent 100%
  );
}
@keyframes carousel-shimmer {
  0% { opacity: 0; transform: translateX(-100%); }
  15% { opacity: 0.4; }
  50% { opacity: 0.6; }
  85% { opacity: 0.4; }
  100% { opacity: 0; transform: translateX(100%); }
}
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(232, 197, 71, 0.06) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: carousel-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.carousel-slide:nth-child(3n)::before { animation-delay: -2s; }
.carousel-slide:nth-child(5n)::before { animation-delay: -4s; }
@media (max-width: 1199px) {
  #team-rewards {
    overflow-x: hidden;
    overflow-y: visible;
  }
  .team-rewards-carousel {
    margin: -120px 0 2rem;
    padding: 2rem 0;
    min-height: 280px;
    overflow: visible;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
  }
  .carousel-viewport {
    padding: 60px 40px;
    min-height: 260px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .team-rewards-carousel {
    margin: 0 0 1.5rem;
    padding: 1.5rem 0;
    min-height: 320px;
    width: 100%;
    max-width: 100%;
  }
  .carousel-viewport {
    padding: 40px 24px;
    min-height: 300px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .carousel-track {
    gap: 1.5rem;
  }
  .carousel-slide,
  .carousel-slide img {
    width: 200px;
    height: 320px;
  }
  .carousel-slide {
    border-radius: 14px;
  }
  .carousel-slide::after,
  .carousel-slide::before {
    border-radius: 14px;
  }
  .carousel-fade {
    width: 40px;
  }
}

@media (max-width: 700px) {
  .team-rewards-carousel {
    margin: 0 0 1.5rem;
    padding: 2rem 0;
    min-height: 340px;
  }
  .carousel-viewport {
    padding: 50px 40px;
    min-height: 320px;
  }
  .carousel-track {
    gap: 2rem;
    padding: 0 0.5rem;
  }
  .carousel-slide,
  .carousel-slide img {
    width: 240px;
    height: 340px;
  }
  .carousel-slide {
    border-radius: 16px;
  }
  .carousel-slide::after,
  .carousel-slide::before {
    border-radius: 16px;
  }
  .carousel-slide:hover {
    transform: translateY(-12px) scale(1.2);
  }
  .carousel-fade {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .team-rewards-carousel {
    margin: 0 0 1.25rem;
    padding: 1.25rem 0;
    min-height: 300px;
  }
  .carousel-viewport {
    padding: 32px 16px;
    min-height: 280px;
  }
  .carousel-slide,
  .carousel-slide img {
    width: 180px;
    height: 280px;
  }
  .carousel-slide {
    border-radius: 12px;
  }
  .carousel-slide::after,
  .carousel-slide::before {
    border-radius: 12px;
  }
  .carousel-fade {
    width: 28px;
  }
}

@media (max-width: 360px) {
  .carousel-viewport {
    padding: 24px 12px;
    min-height: 260px;
  }
  .carousel-slide,
  .carousel-slide img {
    width: 160px;
    height: 250px;
  }
}

/* Rewards page: 8-card grid + modal */
.rewards-page {
  padding-top: 2rem;
  padding-bottom: 2rem;
  align-items: flex-start;
}

/* Team rewards: section header above nomination grid */
#team-rewards .rewards-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.team-rewards-header {
  text-align: center;
  padding: 0 1.5rem;
}

/* Section title with divider: title, line between, subtitle (1.5× shorter than main header) */
.section-title-with-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-title-with-divider > h2 {
  margin-bottom: 0.5rem;
}
.section-title-divider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  gap: 0;
}
.team-rewards-header .section-title-divider-row {
  max-width: 3600px;
  width: 200%;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}
.team-rewards-header .section-title-line {
  padding: 0;
  overflow: visible;
}
.team-rewards-header .section-title-line-inner {
  width: 100%;
  max-width: none;
  min-width: 100%;
}
.player-rewards-header .section-title-divider-row {
  max-width: 3600px;
  width: 200%;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}
.player-rewards-header .section-title-line {
  padding: 0;
  overflow: visible;
}
.player-rewards-header .section-title-line-inner {
  width: 100%;
  max-width: none;
  min-width: 100%;
}
.trophy-wall-heading .section-title-divider-row {
  max-width: 900px;
}
.section-title-with-divider > p {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.section-title-line {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
}
.section-title-line-left {
  justify-content: flex-end;
}
.section-title-line-right {
  justify-content: flex-start;
}
.section-title-line-inner {
  display: block;
  height: 2px;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 20%, var(--uefa-gold) 50%, rgba(212, 175, 55, 0.5) 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  border-radius: 1px;
}

.team-rewards-header-title {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--uefa-gold-light);
  text-shadow: 0 0 22px rgba(201, 162, 39, 0.35);
  margin: 0 0 0.5rem 0;
}
.team-rewards-header-subtitle {
  font-size: 0.95rem;
  color: rgba(212, 175, 55, 0.7);
  margin: 0;
}

/* Player rewards: section header above nomination grid */
#player-rewards .rewards-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.player-rewards-header {
  text-align: center;
  padding: 0 1.5rem;
}
.player-rewards-header-title {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--uefa-gold-light);
  text-shadow: 0 0 22px rgba(201, 162, 39, 0.35);
  margin: 0 0 0.5rem 0;
}
.player-rewards-header-subtitle {
  font-size: 0.95rem;
  color: rgba(212, 175, 55, 0.7);
  margin: 0;
}

/* European Champions Trophy Wall (between Team and Player Rewards) */
.trophy-wall-section {
  width: 100%;
  padding: 56px 24px 56px;
  margin: 0;
  position: relative;
  overflow: visible;
}
.trophy-wall-inner {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.trophy-wall-title {
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uefa-gold-light);
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.35);
  margin: 0 0 0.4rem 0;
}
.trophy-wall-subtitle {
  font-size: 0.95rem;
  color: rgba(212, 175, 55, 0.8);
  margin: 0 0 2rem 0;
}
.trophy-wall-heading {
  position: relative;
  top: -100px;
}

/* Static grid layout (no scrolling) */
.trophy-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.trophy-wall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 160px;
  padding: 20px 16px;
  background: linear-gradient(145deg, rgba(15, 42, 68, 0.92) 0%, rgba(10, 22, 40, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(212, 175, 55, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  position: relative;
}
.trophy-wall-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.25),
    0 0 56px rgba(212, 175, 55, 0.12);
}
.trophy-wall-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.trophy-wall-year {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--uefa-gold-light);
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.35);
}
.trophy-wall-icon {
  width: 28px;
  height: 32px;
  object-fit: contain;
  opacity: 0.92;
}

/* Placeholder card (future winner) */
.trophy-wall-card-placeholder {
  border-style: dashed;
  border-color: rgba(212, 175, 55, 0.25);
  background: linear-gradient(145deg, rgba(15, 42, 68, 0.6) 0%, rgba(10, 22, 40, 0.75) 100%);
}
.trophy-wall-card-placeholder:hover {
  border-color: rgba(212, 175, 55, 0.4);
}
.trophy-wall-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.5);
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 50%;
}

/* Wrapper so popup is anchored to the hovered card (no drift on scroll) */
.trophy-wall-card-wrapper {
  position: relative;
}

/* Hover detail popup: when in inner (hidden), off-screen; when in wrapper, absolute to card */
.trophy-wall-popup-global {
  position: fixed;
  z-index: 300;
  width: 148px;
  height: 68px;
  padding: 8px 10px;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.97) 0%, rgba(15, 42, 68, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 32px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.trophy-wall-popup-global[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Popup anchored inside card wrapper: position relative to card, does not drift on scroll */
.trophy-wall-card-wrapper .trophy-wall-popup-global {
  position: absolute;
  left: 50%;
  top: auto;
  right: auto;
  bottom: auto;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.trophy-wall-card-wrapper .trophy-wall-popup-global.trophy-wall-popup--above {
  bottom: 100%;
  margin-bottom: 28px;
  top: auto;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
}
.trophy-wall-card-wrapper .trophy-wall-popup-global.trophy-wall-popup--above[aria-hidden="false"] {
  transform: translateX(-50%) translateY(0) scale(1);
}
.trophy-wall-card-wrapper .trophy-wall-popup-global.trophy-wall-popup--below {
  top: 100%;
  margin-top: 18px;
  bottom: auto;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
}
.trophy-wall-card-wrapper .trophy-wall-popup-global.trophy-wall-popup--below[aria-hidden="false"] {
  transform: translateX(-50%) translateY(0) scale(1);
}
.trophy-wall-inner > .trophy-wall-popup-global {
  left: -9999px;
  top: 0;
}
.trophy-wall-popup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 46px;
}
.trophy-wall-popup-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}
.trophy-wall-popup-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.trophy-wall-popup-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--uefa-gold-light);
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
  text-align: center;
  flex-shrink: 0;
}
.trophy-wall-popup-pens {
  font-size: 0.7rem;
  color: rgba(212, 175, 55, 0.85);
  text-align: center;
  margin-top: 0.35rem;
  line-height: 1.2;
}

.trophy-wall-section + #player-rewards.page-section {
  margin-top: 80px;
}

@media (max-width: 900px) {
  .trophy-wall-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 600px) {
  .trophy-wall-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .trophy-wall-section {
    padding: 40px 16px 40px;
  }
}
@media (max-width: 480px) {
  .trophy-wall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 12px;
  }
  .trophy-wall-section {
    padding: 32px 12px 32px;
  }
  .trophy-wall-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
  .trophy-wall-subtitle {
    font-size: 0.85rem;
  }
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}
.rewards-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Scroll-reveal: initial state (before .is-revealed) */
.rewards-card-wrapper .rewards-card-title {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc((var(--reveal-stagger, 0)) * 1ms);
}
.rewards-card-wrapper .rewards-card {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  transition-delay: calc((var(--reveal-stagger, 0) + var(--reveal-title-lead, 80)) * 1ms);
}
.rewards-card-wrapper.is-revealed .rewards-card-title {
  opacity: 1;
  transform: translateY(0);
}
.rewards-card-wrapper.is-revealed .rewards-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.rewards-card-wrapper.is-revealed .rewards-card:hover {
  transform: translateY(0) scale(1) translateZ(0);
}

.rewards-card-title {
  font-size: 1.12rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(225, 195, 90, 0.98);
  margin: 0;
  text-align: center;
  line-height: 1.25;
  width: 100%;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}
.rewards-card {
  position: relative;
  width: 100%;
  background: rgba(12, 32, 55, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 12px rgba(212, 175, 55, 0.06);
  min-height: 260px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rewards-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(212, 175, 55, 0.1);
  transform: translateZ(0);
}
.rewards-card-inner {
  padding: 1.5rem 1.25rem;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.rewards-card-selection {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
}
/* Select Team button as large centered panel (empty state) */
.rewards-card:not(.has-selection) .rewards-card-selection > .rewards-card-btn {
  width: 62%;
  min-width: 140px;
  min-height: 82px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 32, 55, 0.7);
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.rewards-card:not(.has-selection) .rewards-card-selection > .rewards-card-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
  transform: scale(1.03);
}
.rewards-card-selection:not(:empty) {
  margin: 0;
}
.rewards-card-selection .rewards-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.rewards-card.has-selection .rewards-card-selection .rewards-card-logo {
  width: 144px;
  height: 144px;
  max-width: 100%;
  object-fit: contain;
}
.rewards-card-selection .rewards-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--uefa-gold-light);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.rewards-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.rewards-card-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  color: var(--uefa-gold);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.rewards-card-btn:hover {
  color: var(--uefa-gold-light);
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.4);
  transform: scale(1.04);
  border-color: var(--uefa-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.rewards-card-btn-secondary {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-color: rgba(212, 175, 55, 0.35);
}
.rewards-card-clear {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.rewards-card-clear:hover {
  color: var(--uefa-white);
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.05);
}
.rewards-card.activated {
  animation: rewards-card-pop 0.28s ease-out forwards;
}
.rewards-card.activated::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 40%, rgba(212, 175, 55, 0.9) 50%, rgba(212, 175, 55, 0.5) 60%, transparent 100%);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
  animation: rewards-border-sweep 0.3s ease-out forwards;
}
@keyframes rewards-card-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes rewards-border-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.rewards-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.rewards-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.rewards-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.rewards-modal-content {
  position: relative;
  background: rgba(13, 33, 55, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.12);
  padding: 1.5rem;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: auto;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.rewards-modal.is-open .rewards-modal-content {
  transform: scale(1);
}
.rewards-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--uefa-gold-light);
  margin: 0 0 1rem 0;
  text-align: center;
  letter-spacing: 0.05em;
}
.rewards-modal-grid {
  display: grid;
  gap: 1rem;
}

/* Team picker: 4 columns, up to 16 items (4x4) */
.picker-grid--teams {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  grid-auto-rows: minmax(130px, auto);
}

/* Player picker: 5 columns, 10 items (2x5) */
.picker-grid--players {
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(130px, auto);
}

.rewards-modal-content:has(.picker-grid--players) {
  max-width: 860px;
}

.rewards-modal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-height: 130px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  background: rgba(12, 32, 55, 0.75);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rewards-modal-item:hover:not(.is-disabled) {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
  transform: scale(1.02);
}
.rewards-modal-item.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rewards-modal-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  margin-top: 0.15rem;
}
.rewards-modal-item .rewards-modal-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Player tile: portrait same width as card; ~15% taller than square to show head/hair */
.player-tile .player-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}
.player-tile .player-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--uefa-white);
  margin: 0;
  line-height: 1.2;
  max-width: 100%;
  word-wrap: break-word;
}
.player-tile .player-club {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.2;
}

.rewards-modal-item .rewards-modal-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--uefa-white);
  margin: 0;
  line-height: 1.2;
  max-width: 100%;
  word-wrap: break-word;
}
.rewards-modal-item .rewards-modal-team {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.2;
}

/* Player picker responsive (5 cols → 3 → 2 → 1) */
@media (max-width: 900px) {
  .picker-grid--players {
    grid-template-columns: repeat(3, 1fr);
  }
  .rewards-modal-content:has(.picker-grid--players) {
    max-width: 720px;
  }
}
@media (max-width: 600px) {
  .rewards-modal-item {
    min-height: 120px;
    padding: 0.85rem 0.5rem;
  }
  .rewards-modal-item .rewards-modal-logo {
    width: 56px;
    height: 56px;
  }
  .player-tile .player-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 10px;
  }
  .rewards-modal-item .rewards-modal-name,
  .player-tile .player-name {
    font-size: 0.75rem;
  }
  .picker-grid--teams {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .picker-grid--players {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
@media (max-width: 420px) {
  .picker-grid--players {
    grid-template-columns: 1fr;
  }
  .rewards-modal-content:has(.picker-grid--players) {
    max-width: 100%;
  }
}
@media (max-width: 400px) {
  .picker-grid--teams {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .rewards-modal-content {
    max-width: calc(100vw - 24px);
    max-height: 90vh;
    margin: 12px auto;
    padding: 1.25rem;
  }
  .rewards-modal-content:has(.picker-grid--players) {
    max-width: calc(100vw - 24px);
  }
  .picker-grid--teams {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .picker-grid--players {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}
@media (max-width: 480px) {
  .rewards-modal-content {
    max-width: calc(100vw - 20px);
    margin: 10px auto;
    padding: 1rem;
  }
  .rewards-modal-content:has(.picker-grid--players) {
    max-width: calc(100vw - 20px);
  }
  .rewards-modal-close {
    min-width: 44px;
    min-height: 44px;
  }
  .picker-grid--teams {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .picker-grid--players {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .rewards-modal-item {
    min-height: 100px;
    padding: 0.75rem 0.5rem;
  }
  .rewards-modal-item .rewards-modal-logo {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 414px) {
  .rewards-modal-content {
    max-width: calc(100vw - 16px);
    margin: 8px auto;
  }
}
@media (max-width: 390px), (max-width: 375px), (max-width: 360px) {
  .picker-grid--players {
    grid-template-columns: 1fr;
  }
  .rewards-modal-content:has(.picker-grid--players) {
    max-width: calc(100vw - 16px);
  }
}
.rewards-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--uefa-gold);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.rewards-modal-close:hover {
  color: var(--uefa-gold-light);
  background: rgba(212, 175, 55, 0.15);
}

/* Generate Awards button */
.generate-awards-cta {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.generate-awards-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 20px 48px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.95);
  background: linear-gradient(145deg, var(--uefa-gold-light) 0%, var(--uefa-gold) 50%, rgba(180, 150, 50, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 0 24px rgba(212, 175, 55, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.generate-awards-btn-main {
  display: block;
}
.generate-awards-btn-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(10, 22, 40, 0.75);
}
.generate-awards-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45), 0 0 32px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.7);
}
@media (max-width: 768px) {
  .generate-awards-btn {
    padding: 16px 36px;
    font-size: 1.1rem;
    min-height: 48px;
  }
}
@media (max-width: 480px) {
  .generate-awards-btn {
    padding: 14px 28px;
    font-size: 1rem;
    min-height: 48px;
  }
}

/* Results modal – UCL Awards Result Card (compact poster) */
.results-modal-content {
  max-width: 560px;
  width: 100%;
}
@media (max-width: 600px) {
  .results-modal-content {
    max-width: calc(100vw - 24px);
    margin: 12px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .results-card {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .results-modal-content {
    max-width: calc(100vw - 16px);
    margin: 8px;
  }
}
.results-modal-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.results-card {
  --results-card-bg: linear-gradient(165deg, #0a1628 0%, #0d2137 35%, #0f2a42 70%, #0a1628 100%);
  --results-card-border: rgba(212, 175, 55, 0.4);
  --results-gold: #c9a227;
  --results-gold-soft: rgba(212, 175, 55, 0.25);
  width: 100%;
  min-width: 300px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: var(--results-card-bg);
  border: 1px solid var(--results-card-border);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset, 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 162, 39, 0.06);
  overflow: hidden;
}
/* Hero – winner focal point (compact) */
.results-hero {
  text-align: center;
  padding: 1rem 1rem 0.75rem;
  position: relative;
}
.results-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.results-hero-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--results-gold);
  text-transform: uppercase;
  margin: 0 0 0.35rem 0;
  text-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
  position: relative;
}
.results-hero-club {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
}
/* Thin gold divider between sections */
.results-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--results-gold-soft) 15%, var(--results-gold-soft) 85%, transparent 100%);
  margin: 0;
}
.results-divider.results-divider-hidden {
  display: none;
}
/* Sections – styled text lists */
.results-section {
  padding: 0.5rem 1rem 0.65rem;
}
.results-section:last-child {
  padding-bottom: 0.65rem;
}
.results-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--results-gold);
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.25);
}
.results-text-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.results-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.results-row-nomination {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.results-row-sep {
  color: rgba(212, 175, 55, 0.5);
  font-weight: 400;
  flex: 0 0 auto;
}
.results-row-value {
  color: #fff;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.results-action-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--uefa-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.results-action-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--uefa-gold-light);
}
.results-action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.results-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  color: var(--uefa-gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.results-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Hide empty sections */
.results-section.results-section-empty {
  display: none;
}
.results-hero.results-hero-empty {
  display: none;
}

/* Export-only card: explicit styles so html2canvas renders identically to the modal card */
#export-results-wrapper {
  position: fixed;
  left: -99999px;
  top: 0;
  z-index: -1;
  width: 480px;
  background-color: #0a1628;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
#export-results-wrapper .results-card {
  width: 480px;
  min-width: 480px;
  max-width: 480px;
  margin: 0;
  background: linear-gradient(165deg, #0a1628 0%, #0d2137 35%, #0f2a42 70%, #0a1628 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset, 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 162, 39, 0.06);
  overflow: hidden;
  box-sizing: border-box;
}
#export-results-wrapper .results-hero {
  text-align: center;
  padding: 1rem 1rem 0.75rem;
  position: relative;
  background: transparent;
}
#export-results-wrapper .results-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
#export-results-wrapper .results-hero-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c9a227;
  text-transform: uppercase;
  margin: 0 0 0.35rem 0;
  text-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
  position: relative;
}
#export-results-wrapper .results-hero-club {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
}
#export-results-wrapper .results-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.25) 15%, rgba(212, 175, 55, 0.25) 85%, transparent 100%);
  margin: 0;
}
#export-results-wrapper .results-divider.results-divider-hidden {
  display: none;
}
#export-results-wrapper .results-section {
  padding: 0.5rem 1rem 0.65rem;
  background: transparent;
}
#export-results-wrapper .results-section:last-child {
  padding-bottom: 0.65rem;
}
#export-results-wrapper .results-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c9a227;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.25);
}
#export-results-wrapper .results-text-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
#export-results-wrapper .results-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
#export-results-wrapper .results-row-nomination {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
#export-results-wrapper .results-row-sep {
  color: rgba(212, 175, 55, 0.5);
  font-weight: 400;
  flex: 0 0 auto;
}
#export-results-wrapper .results-row-value {
  color: #ffffff;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .rewards-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    gap: 28px;
  }
  .rewards-card {
    min-height: 260px;
  }
}
@media (max-width: 700px) {
  .rewards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 24px;
    padding: 0 1rem;
  }
  .rewards-card {
    min-height: 240px;
  }
  .rewards-card.has-selection .rewards-card-selection .rewards-card-logo {
    width: 120px;
    height: 120px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .rewards-card.has-selection .rewards-card-selection .rewards-card-logo {
    width: 96px;
    height: 96px;
    max-width: 100%;
  }
  .rewards-card-selection .rewards-card-name {
    font-size: 0.8rem;
  }
  .rewards-card-inner {
    padding: 1rem 0.75rem;
    min-height: 160px;
  }
}

.page-footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  padding: 1.5rem 20px 32px;
}

.footer-subtitle {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 400;
  color: #fff;
  margin: 0;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 175, 55, 0.15);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .footer-subtitle {
    font-size: clamp(1.85rem, 6vw, 3rem);
  }
}

@media (max-width: 1199px) {
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-section {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
  .page-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .page-section + .page-section {
    margin-top: 100px;
  }
  #main-bracket.page-section {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .header-area {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 0.75rem;
  }
  .header-link-row {
    gap: 8px;
  }
  .header-link-row .nav-left,
  .header-link-row .nav-right {
    gap: 20px;
  }
  .header-text-link {
    font-size: clamp(0.85rem, 2vw, 1rem);
  }
  .title {
    font-size: clamp(1.15rem, 4vw, 1.6rem);
  }
  .header-season {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
  .header-line {
    padding: 0 8px;
  }
}

@media (max-width: 600px) {
  .header-area {
    padding-top: calc(var(--header-padding-top) * 1px);
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 0.75rem;
  }
  .header-line {
    padding: 0 8px;
  }
  .page-footer {
    padding: 1rem 16px 24px;
  }
  .footer-subtitle {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }
  .page-section {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .page-section + .page-section {
    margin-top: 72px;
  }
  #main-bracket.page-section {
    padding-top: 24px;
    padding-bottom: 36px;
  }
  .header-link-row .nav-left,
  .header-link-row .nav-right {
    gap: 16px;
  }
  .header-text-link {
    font-size: 0.85rem;
  }
  .title {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }
  .header-season {
    font-size: clamp(1rem, 5vw, 1.3rem);
  }
  .rewards-grid {
    max-width: 100%;
    padding: 0 1rem;
  }
  .team-rewards-header,
  .player-rewards-header {
    padding: 0 1rem;
  }
}

.page-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.page-wrapper::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  height: 120%;
  max-height: 900px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(186, 230, 253, 0.03) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Bracket scroll container: desktop = centered wrapper only; tablet/mobile = horizontal scroll (in media query) */
.bracket-scroll-container,
.bracket-scroll-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

/* Bracket layout */
.bracket-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  position: relative;
  min-height: 560px;
  transform-origin: center center;
  width: fit-content;
  margin: 0 auto;
}

.connector-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.connector-overlay-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.connector-overlay-svg .connector-line {
  fill: none;
  stroke: var(--uefa-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.connector-overlay-svg .connector-line.pulse-line {
  animation: bracket-line-pulse 480ms ease-out forwards;
}

@keyframes bracket-line-pulse {
  0% {
    stroke: var(--uefa-gold);
    stroke-width: 1.5;
    opacity: 0.7;
  }
  35% {
    stroke: #f0d84a;
    stroke-width: 2.8;
    opacity: 1;
  }
  100% {
    stroke: var(--uefa-gold);
    stroke-width: 1.5;
    opacity: 0.7;
  }
}

.bracket-side,
.bracket-center {
  z-index: 1;
}

.bracket-side {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.5rem;
  position: relative;
  min-width: 0;
}

.bracket-left {
  justify-content: flex-end;
}

.bracket-right {
  justify-content: flex-start;
}

/* Rounds */
.round {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.round-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uefa-gold);
  margin-bottom: 0.25rem;
}

.bracket-center > .final-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uefa-gold);
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Final pulse reaction: anticipation */
.bracket-center.final-approach .match-final {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(212, 175, 55, 0.25), 0 0 20px rgba(255, 215, 0, 0.2);
  outline-color: rgba(232, 197, 71, 0.9);
  transition: box-shadow 0.35s ease, outline-color 0.35s ease;
}
.bracket-center.final-approach > .final-label {
  color: var(--uefa-gold-light);
  text-shadow: 0 0 14px rgba(201, 162, 39, 0.5);
}

/* Final pulse reaction: hit (max glow + label shimmer) */
.bracket-center.final-hit .match-final {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(212, 175, 55, 0.4), 0 0 28px rgba(255, 215, 0, 0.35);
  outline-color: var(--uefa-gold-light);
  transition: box-shadow 0.4s ease, outline-color 0.4s ease;
}
.bracket-center.final-hit > .final-label {
  animation: final-label-hit 0.85s ease-out forwards;
}

@keyframes final-label-hit {
  0% {
    color: var(--uefa-gold-light);
    text-shadow: 0 0 14px rgba(201, 162, 39, 0.5);
  }
  25% {
    color: #f5e07a;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.7), 0 0 30px rgba(255, 215, 0, 0.4);
  }
  100% {
    color: var(--uefa-gold);
    text-shadow: 0 0 12px rgba(201, 162, 39, 0.35);
  }
}

.matches {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.round.quarterfinal {
  flex: 1;
  justify-content: center;
}

.round.quarterfinal .matches {
  justify-content: center;
  gap: 10.75rem;
}

.bracket-left .round.quarterfinal,
.bracket-right .round.quarterfinal {
  flex: 1;
  justify-content: center;
}

.bracket-right .matches {
  align-items: flex-start;
}

/* Connectors between rounds */
.bracket-connector {
  flex: 0 0 52px;
  min-width: 52px;
  align-self: stretch;
  color: var(--uefa-gold);
  opacity: 0.65;
  position: relative;
  z-index: 0;
}

.bracket-connector .connector-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bracket-connector .connector-path {
  stroke: currentColor;
}

.bracket-connector-final {
  flex: 0 0 20px;
  min-width: 20px;
}

/* Responsive fit: scale down only when needed to avoid cropping */
@media (max-width: 1600px) {
  .bracket-wrapper {
    transform: scale(0.92);
  }
}

@media (max-width: 1400px) {
  .bracket-wrapper {
    transform: scale(0.85);
    gap: 48px;
  }
}

@media (max-width: 1200px) {
  .bracket-wrapper {
    transform: scale(0.78);
    gap: 40px;
  }
}

/* Desktop only (1200px+): bracket size balanced with page width */
@media (min-width: 1200px) {
  .bracket-wrapper {
    transform: scale(0.88);
    transform-origin: center center;
  }
}

/* Match cards */
.match {
  position: relative;
  width: 220px;
  min-height: 120px;
  background: rgba(12, 32, 55, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: 2px solid rgba(212, 175, 55, 0.85);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 16px rgba(212, 175, 55, 0.12);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.25s ease, border-color 0.25s ease;
}

.match:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 22px rgba(212, 175, 55, 0.2), 0 0 12px rgba(255, 215, 0, 0.6);
  outline-color: rgba(232, 197, 71, 0.95);
}

.match:has(.team-slot.selected) {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(212, 175, 55, 0.35), 0 0 16px rgba(255, 215, 0, 0.5);
  outline-color: var(--uefa-gold-light);
}

.match-final {
  outline-width: 2px;
}

.winner-slot-container {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  text-align: center;
  width: 100%;
  max-width: 220px;
}
.winner-label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--uefa-gold);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.winner-logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
}
.winner-logo-display .winner-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35));
}
.winner-logo-display .winner-logo.placeholder {
  opacity: 0.5;
  filter: grayscale(40%) drop-shadow(0 0 6px rgba(0, 0, 0, 0.2));
}

/* Match card: Team VS Team layout */
.match-vs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  min-height: 72px;
}

.team-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.team-slot:hover {
  background: rgba(255, 255, 255, 0.06);
}
.team-slot.selected {
  border-color: var(--uefa-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}

.match-vs .team-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
}

.vs {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--uefa-gold);
  opacity: 0.9;
}

/* Right side: same layout (team | VS | team) */
.bracket-right .match .match-vs {
  flex-direction: row;
}

.team-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
}

.team-logo.winner-placeholder {
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.25)) grayscale(35%);
}


/* Advance dot (winner marker) */
.advance-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--uefa-gold);
  box-shadow: 0 0 8px var(--uefa-gold);
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.bracket-right .advance-dot {
  right: auto;
  left: -5px;
}

/* Center - Final (vertically aligned with bracket sides) */
.bracket-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
  align-self: center;
}

.final-connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, transparent, var(--uefa-gold), transparent);
  opacity: 0.6;
}

.final-connector-right {
  background: linear-gradient(to top, transparent, var(--uefa-gold), transparent);
}

.trophy-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.trophy-icon svg,
.trophy-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive: stacked layout on mobile only (tablet/desktop keep horizontal + scale) */
@media (max-width: 767px) {
  .bracket-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    min-height: auto;
    transform: scale(1);
  }

  .bracket-side {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .bracket-connector {
    display: none;
  }

  .bracket-center {
    padding: 1rem 0;
  }
}

.bracket-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.bracket-left {
  align-items: flex-end;
}

.bracket-right {
  align-items: flex-start;
}

.bracket-right .matches {
  align-items: flex-start;
}

/* Rounds */
.round {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.round-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uefa-gold);
  margin-bottom: 0.25rem;
}

.bracket-center > .final-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uefa-gold);
  margin: 0 0 0.5rem 0;
}

.matches {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* Match cards (original) */
.match {
  position: relative;
  background: var(--match-bg);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 0.6rem 1rem 0.6rem 1.5rem;
  min-width: 160px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 162, 39, 0.08);
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.match:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow);
  border-color: rgba(201, 162, 39, 0.7);
  transform: translateY(-2px);
}

.match-final {
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-width: 2px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5), 0 0 50px var(--glow);
}

.match-final:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 60px var(--glow);
  transform: translateY(-2px);
}

/* Team rows */
.team-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.team-row:last-of-type {
  margin-bottom: 0;
}

.team-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-placeholder {
  color: rgba(240, 244, 248, 0.5);
  font-style: italic;
}

.score {
  width: 2.25rem;
  padding: 0.2rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  color: var(--uefa-white);
  -moz-appearance: textfield;
}

.score::-webkit-outer-spin-button,
.score::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Advance dot (winner marker) */
.advance-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--uefa-gold);
  box-shadow: 0 0 8px var(--uefa-gold);
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.bracket-right .advance-dot {
  right: auto;
  left: -5px;
}

/* Center - Final (vertically aligned with bracket sides) */
.bracket-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
  align-self: center;
}

.final-connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, transparent, var(--uefa-gold), transparent);
  opacity: 0.6;
}

.final-connector-right {
  background: linear-gradient(to top, transparent, var(--uefa-gold), transparent);
}

.trophy-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.trophy-icon svg,
.trophy-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Subtle original bracket lines */
.bracket-side::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--uefa-gold) 20%,
    var(--uefa-gold) 80%,
    transparent
  );
  opacity: 0.4;
  z-index: 0;
}

.bracket-left::before {
  right: 0;
}

.bracket-right::before {
  left: 0;
}

.bracket-left .match::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: linear-gradient(to right, var(--uefa-gold), transparent);
  opacity: 0.5;
  transform: translateY(-50%);
  pointer-events: none;
}

.bracket-right .match::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: linear-gradient(to left, var(--uefa-gold), transparent);
  opacity: 0.5;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Responsive (original): mobile only */
@media (max-width: 767px) {
  .bracket-wrapper {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .bracket-left,
  .bracket-right {
    align-items: center;
    width: 100%;
    max-width: 320px;
  }

  .bracket-left::before,
  .bracket-right::before {
    display: none;
  }

  .bracket-center {
    order: 0;
    padding: 1rem 0;
  }

  .bracket-left {
    order: 1;
  }

  .bracket-right {
    order: 2;
  }

  .final-connector {
    min-height: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .match {
    min-width: 140px;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
  }

  .team-name {
    font-size: 0.8rem;
  }

  .score {
    width: 2rem;
    font-size: 0.85rem;
  }

  .trophy-icon {
    width: 40px;
    height: 40px;
  }
}

/* Logo-only team rows (override) */
.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin-bottom: 0;
}

.team-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  display: block;
}

.team-logo.winner-placeholder {
  opacity: 0.55;
  filter: grayscale(40%);
}

.bracket-side {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.5rem;
  position: relative;
  min-width: 0;
}

.bracket-left {
  flex-direction: row;
  justify-content: flex-end;
}

.bracket-left .round {
  flex: 0 0 auto;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.bracket-right {
  flex-direction: row;
  justify-content: flex-start;
}

.bracket-right .round {
  flex: 0 0 auto;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.bracket-right .matches {
  align-items: flex-start;
}

.bracket-connector {
  flex: 0 0 52px;
  min-width: 52px;
  align-self: stretch;
  color: var(--uefa-gold);
  opacity: 0.65;
  position: relative;
  z-index: 0;
}

.bracket-connector .connector-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bracket-connector .connector-path {
  stroke: currentColor;
}

.bracket-connector-final {
  flex: 0 0 20px;
  min-width: 20px;
}

.round {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.round-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uefa-gold);
  margin-bottom: 0.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.matches {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: space-evenly;
}

.match {
  position: relative;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--match-bg);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 20px rgba(201, 162, 39, 0.1);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.match:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 32px var(--glow);
  border-color: rgba(201, 162, 39, 0.7);
}

.match-final {
  min-height: 78px;
  padding: 0.65rem 1rem;
  border-width: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 24px var(--glow);
}

.match-final:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 40px var(--glow);
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 28px;
  height: 28px;
}

.team-row:last-of-type {
  margin-bottom: 0;
}

.team-name {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--uefa-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.winner-placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.score {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 26px;
  padding: 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  color: var(--uefa-white);
  -moz-appearance: textfield;
  flex-shrink: 0;
}

.score::-webkit-outer-spin-button,
.score::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.advance-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--uefa-gold);
  box-shadow: 0 0 8px var(--uefa-gold);
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.bracket-right .advance-dot {
  right: auto;
  left: -5px;
}

.bracket-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.bracket-center::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(186, 230, 253, 0.25) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.final-connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, transparent, var(--uefa-gold), transparent);
  opacity: 0.6;
}

.final-connector-right {
  background: linear-gradient(to top, transparent, var(--uefa-gold), transparent);
}

.trophy-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.trophy-icon svg,
.trophy-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bracket-center .match-final {
  border-color: var(--uefa-gold);
  box-shadow: 0 0 25px rgba(0,0,0,0.5), 0 0 45px var(--glow);
}

@media (max-width: 767px) {
  .bracket-wrapper {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .bracket-left,
  .bracket-right {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 340px;
    gap: 1rem;
  }

  .bracket-left .round,
  .bracket-right .round {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .bracket-connector {
    display: none;
  }

  .bracket-center {
    order: 0;
    padding: 1.5rem 0;
  }

  .bracket-left {
    order: 1;
  }

  .bracket-right {
    order: 2;
  }

  .final-connector {
    min-height: 24px;
  }

  .matches {
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .match,
  .match-final {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    min-height: 78px;
    padding: 0.65rem 1rem;
  }

  .team-name {
    font-size: 0.8rem;
  }

  .score {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 26px;
    font-size: 0.85rem;
  }

  .trophy-icon {
    width: 40px;
    height: 40px;
  }
}

/* --- BRACKET: horizontal scroll only on mobile (desktop + tablet use original scale) --- */
body { overflow-x: hidden; }

/* Mobile only (below 768px): horizontal swipe container with fixed min-width */
@media (max-width: 767px) {
  #main-bracket .page-wrapper {
    overflow: hidden;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }
  .bracket-scroll-container,
  .bracket-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    justify-content: flex-start;
    padding-bottom: 8px;
    width: 100%;
    max-width: 100%;
  }
  .bracket-scroll-wrap .bracket-wrapper,
  .bracket-scroll-container .bracket-wrapper {
    min-width: 1100px;
    transform: none !important;
    flex-shrink: 0;
    margin: 0;
    flex-direction: row !important;
    gap: 40px;
    align-items: center;
    min-height: 560px;
  }
  .bracket-scroll-wrap .bracket-side,
  .bracket-scroll-container .bracket-side {
    flex-direction: row !important;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    align-items: stretch;
    order: unset;
    gap: 0.5rem;
  }
  .bracket-scroll-wrap .bracket-connector,
  .bracket-scroll-container .bracket-connector {
    display: block !important;
    flex: 0 0 52px !important;
    min-width: 52px !important;
  }
  .bracket-scroll-wrap .bracket-connector-final,
  .bracket-scroll-container .bracket-connector-final {
    flex: 0 0 20px !important;
    min-width: 20px !important;
  }
  .bracket-scroll-wrap .bracket-center,
  .bracket-scroll-container .bracket-center {
    order: unset !important;
    padding: 0 1rem !important;
    flex: 0 0 auto !important;
  }
  .bracket-scroll-wrap .bracket-left,
  .bracket-scroll-container .bracket-left {
    justify-content: flex-end !important;
  }
  .bracket-scroll-wrap .bracket-right,
  .bracket-scroll-container .bracket-right {
    justify-content: flex-start !important;
  }
  .bracket-scroll-wrap .round,
  .bracket-scroll-container .round {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .bracket-scroll-wrap .bracket-left .round,
  .bracket-scroll-container .bracket-left .round,
  .bracket-scroll-wrap .bracket-right .round,
  .bracket-scroll-container .bracket-right .round {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }
  .bracket-scroll-wrap .matches,
  .bracket-scroll-container .matches {
    gap: 1.5rem;
  }
  .bracket-scroll-container::-webkit-scrollbar,
  .bracket-scroll-wrap::-webkit-scrollbar {
    height: 6px;
  }
  .bracket-scroll-container::-webkit-scrollbar-track,
  .bracket-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  .bracket-scroll-container::-webkit-scrollbar-thumb,
  .bracket-scroll-wrap::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
  }
  .bracket-scroll-container::-webkit-scrollbar-thumb:hover,
  .bracket-scroll-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
  }
}

/* Site Footer - outside all layout containers */
.site-footer {
  width: 100%;
  margin-top: 120px;
  padding: 70px 20px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(3,10,28,0.6),
    rgba(1,6,18,0.95)
  );
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-divider {
  width: 260px;
  height: 2px;
  margin: 0 auto 30px auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230,199,106,1),
    transparent
  );
  box-shadow: 0 0 16px rgba(230,199,106,0.45);
}
.footer-title {
  color: #e6c76a;
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.footer-description {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.footer-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}
.footer-links a {
  color: rgba(230,199,106,0.9);
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover {
  color: #e6c76a;
  text-decoration: underline;
}
.footer-copyright {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-top: 10px;
}

/* Static pages (About, Privacy, Terms) content area */
.static-page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.65;
}
.static-page-content h1 {
  color: #e6c76a;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.static-page-content h2 {
  color: rgba(230,199,106,0.95);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.static-page-content p {
  margin-bottom: 1rem;
}
.static-page-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}
.static-page-content li {
  margin-bottom: 0.35rem;
}
.static-page-content a {
  color: rgba(230,199,106,0.95);
  text-decoration: none;
}
.static-page-content a:hover {
  text-decoration: underline;
}

/* Simplified header for static pages (About, Privacy, Terms) only */
.static-page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: linear-gradient(180deg, rgba(7, 22, 40, 0.97) 0%, rgba(5, 16, 30, 0.95) 100%);
  padding: 14px 16px 0;
  padding-right: 56px;
  box-sizing: border-box;
  border-bottom: none;
}
.static-page-header::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent 0%, rgba(230, 199, 106, 0.6) 15%, rgba(230, 199, 106, 0.8) 50%, rgba(230, 199, 106, 0.6) 85%, transparent 100%);
  box-shadow: 0 0 12px rgba(230, 199, 106, 0.3);
}
.static-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(230, 199, 106, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.static-page-back:hover {
  color: #e6c76a;
}
.static-page-back::before {
  content: "←";
  font-size: 1.1rem;
}
.static-page-header + .container .page-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.static-page-header + .container .static-page-content {
  padding-top: 1rem;
}

/* 1win promo modal – isolated, does not affect existing layout */
.onewin-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.onewin-promo-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.onewin-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.onewin-promo-dialog {
  position: relative;
  max-width: 400px;
  width: 100%;
  background: linear-gradient(165deg, rgba(13, 33, 55, 0.98) 0%, rgba(10, 22, 40, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 32px rgba(212, 175, 55, 0.1);
  padding: 1.75rem;
  text-align: center;
}
.onewin-promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e6c76a;
  margin: 0 0 0.75rem 0;
  line-height: 1.35;
}
.onewin-promo-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}
.onewin-promo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.onewin-promo-btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: none;
  font-family: inherit;
  box-sizing: border-box;
}
.onewin-promo-btn-primary {
  background: linear-gradient(145deg, #00c853 0%, #00a651 50%, #008c45 100%);
  color: #fff;
  border: 1px solid rgba(0, 166, 81, 0.6);
  box-shadow: 0 4px 14px rgba(0, 166, 81, 0.35);
  font-weight: 700;
}
.onewin-promo-btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(0, 166, 81, 0.45);
}
.onewin-promo-btn-secondary {
  background: transparent;
  color: rgba(230, 199, 106, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.onewin-promo-btn-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #e6c76a;
}
@media (max-width: 480px) {
  .onewin-promo-dialog {
    padding: 1.5rem;
    max-width: calc(100vw - 2rem);
  }
  .onewin-promo-title {
    font-size: 1.1rem;
  }
  .onewin-promo-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

