@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@500;600;700;800&display=swap");

:root {
  --bg-main: #050a15;
  --bg-elevated: #0a1324;
  --bg-card: rgba(14, 27, 46, 0.7);
  --bg-card-strong: rgba(10, 22, 38, 0.9);
  --text-main: #edf4ff;
  --text-muted: #afbdd3;
  --line: rgba(142, 180, 220, 0.22);
  --line-strong: rgba(142, 180, 220, 0.38);
  --accent: #63c4ff;
  --accent-soft: rgba(99, 196, 255, 0.18);
  --accent-soft-strong: rgba(99, 196, 255, 0.3);
  --card-border: rgba(99, 196, 255, 0.28);
  --panel-glass: linear-gradient(180deg, rgba(17, 35, 60, 0.78), rgba(8, 18, 33, 0.9));
  --panel-glass-strong: linear-gradient(180deg, rgba(20, 40, 68, 0.82), rgba(10, 23, 42, 0.92));
  --vignette: radial-gradient(circle at 50% 28%, rgba(32, 70, 117, 0.12), rgba(1, 5, 10, 0.65) 72%);
  --danger: #ff6f6f;
  --radius-sm: 0.7rem;
  --radius-md: 1rem;
  --radius-lg: 1.3rem;
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 16px 30px rgba(0, 0, 0, 0.34);
  --glow: 0 0 0 1px rgba(99, 196, 255, 0.2), 0 0 18px -11px rgba(99, 196, 255, 0.4), 0 14px 26px rgba(0, 0, 0, 0.28);
  --divider-glow: 0 5px 12px -8px rgba(99, 196, 255, 0.4);
  --neon-text-shadow: 0 0 6px rgba(99, 196, 255, 0.14);
  --neon-text-shadow-strong: 0 0 10px rgba(99, 196, 255, 0.2);
  --neon-border-color: rgba(99, 196, 255, 0.3);
  --neon-box-shadow: 0 0 0 1px rgba(99, 196, 255, 0.16), 0 0 14px -10px rgba(99, 196, 255, 0.34), 0 12px 24px rgba(0, 0, 0, 0.3);
  --neon-box-shadow-hover: 0 0 0 1px rgba(99, 196, 255, 0.3), 0 0 20px -10px rgba(99, 196, 255, 0.44), 0 14px 26px rgba(0, 0, 0, 0.34);
  --neon-border-shadow: 0 0 0 1px rgba(99, 196, 255, 0.16), 0 0 15px -11px rgba(99, 196, 255, 0.36);
  --title-font: "Orbitron", "Rajdhani", "Exo 2", "Inter", sans-serif;
  --body-font: "Inter", "Roboto", system-ui, -apple-system, sans-serif;
  --max-width: min(1160px, 92%);
  --topbar-height: 60px;
  --topbar-logo-size: clamp(56px, 7vw, 84px);
  --topbar-icon-size: clamp(24px, 2.6vw, 32px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: auto;
  overflow-y: auto;
}

body {
  margin: 0;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: linear-gradient(180deg, #070d1b 0%, #050a14 58%, #03070f 100%);
  padding-top: var(--topbar-height);
}

body.no-scroll {
  overflow: hidden;
}

.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 24%, rgba(32, 70, 117, 0.1), rgba(1, 5, 10, 0.55) 72%);
  opacity: 0.82;
}

.section {
  width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

main {
  display: grid;
  gap: clamp(1.75rem, 6vw, 2.25rem);
  padding: clamp(1.75rem, 5vw, 2.4rem) 0 clamp(2.2rem, 5vw, 3rem);
}

h1,
h2,
h3,
.hero-kicker,
.btn,
.tab-btn,
.cup-tab-btn,
.season-badge,
.topbar-title {
  font-family: var(--title-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h2 {
  margin-bottom: 1.7rem;
  font-size: clamp(1.45rem, 3.8vw, 2.05rem);
  text-shadow: var(--neon-text-shadow);
}

p,
li {
  margin-top: 0;
}

a {
  color: var(--accent);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 120;
  border-bottom: 1px solid rgba(142, 180, 220, 0.28);
  backdrop-filter: blur(8px);
  background: rgba(4, 10, 20, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.topbar-inner {
  width: var(--max-width);
  margin: 0 auto;
  min-height: var(--topbar-height);
  padding-inline: clamp(0.6rem, 2vw, 1rem);
  padding-block: clamp(4px, 1vw, 7px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 1.4vw, 1.125rem);
  flex-shrink: 1;
  text-decoration: none;
  color: inherit;
}

.topbar-logo {
  height: var(--topbar-logo-size);
  width: auto;
  max-width: none;
  max-height: none;
  flex: 0 0 auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 120, 255, 0.35));
}

.topbar-title {
  min-width: 0;
  font-size: clamp(0.92rem, 2.2vw, 1.16rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 5px rgba(98, 206, 255, 0.2);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.45rem, 1vw, 0.7rem);
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-social-link {
  width: var(--topbar-icon-size);
  height: var(--topbar-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.topbar-social-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar-social-link:hover,
.topbar-social-link:focus-visible {
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(98, 206, 255, 0.4));
}

.topbar-social-link:active {
  transform: translateY(1px);
}

.neon-text {
  text-shadow: var(--neon-text-shadow);
}

.neon-box {
  border-color: var(--neon-border-color);
  box-shadow: var(--neon-box-shadow);
}

.neon-box:hover,
.neon-box:focus-visible,
.neon-box:active {
  box-shadow: var(--neon-box-shadow-hover);
  border-color: rgba(98, 206, 255, 0.54);
}

.neon-border {
  border-color: var(--neon-border-color);
  box-shadow: var(--neon-border-shadow);
}

.neon-icon {
  color: var(--accent);
  text-shadow: var(--neon-text-shadow);
}

.sl-section-title {
  text-shadow: var(--neon-text-shadow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sl-divider {
  position: relative;
}

.sl-divider::after {
  content: none;
}

@keyframes neonPulse {
  0%,
  100% {
    text-shadow: var(--neon-text-shadow);
  }
  50% {
    text-shadow: var(--neon-text-shadow-strong);
  }
}

.topbar-preview-link {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero {
  text-align: center;
  padding-top: clamp(4rem, 9vw, 6.6rem);
  padding-bottom: clamp(2rem, 5vw, 2.8rem);
}

.hero-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero h1 {
  margin: 1rem 0 0.9rem;
  font-size: clamp(2.6rem, 10.8vw, 6rem);
  text-shadow: var(--neon-text-shadow-strong);
  animation: neonPulse 10s ease-in-out infinite;
}

.subtitle,
.hero-copy {
  margin-inline: auto;
  color: var(--text-muted);
  max-width: 70ch;
}

.subtitle {
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn,
.sl-btn,
.sl-pill,
.sponsor-cta,
.pes6-ranking-toggle,
.history-accordion-trigger,
.cup-tab-btn,
.tab-btn,
.close-btn,
.close-btn-fixed {
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.btn,
.sl-btn,
.sl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(21, 43, 72, 0.95), rgba(12, 24, 41, 0.92));
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: var(--neon-box-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.btn-primary {
  border-color: rgba(99, 196, 255, 0.68);
  background: linear-gradient(180deg, rgba(34, 71, 108, 0.98), rgba(17, 37, 58, 0.96));
  box-shadow: 0 0 0 1px rgba(99, 196, 255, 0.3), 0 0 24px -12px rgba(99, 196, 255, 0.58), 0 14px 28px rgba(0, 0, 0, 0.34);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(20, 35, 57, 0.95), rgba(12, 22, 39, 0.92));
  border-color: rgba(98, 206, 255, 0.26);
  box-shadow: 0 0 0 1px rgba(98, 206, 255, 0.12), 0 0 12px -10px rgba(98, 206, 255, 0.34), 0 10px 20px rgba(0, 0, 0, 0.24);
}

.btn:hover,
.sl-btn:hover,
.sl-pill:hover,
.btn:focus-visible,
.sl-btn:focus-visible,
.sl-pill:focus-visible,
.btn:active,
.sl-btn:active,
.sl-pill:active,
.sponsor-cta:hover,
.sponsor-cta:focus-visible,
.sponsor-cta:active,
.tab-btn:hover,
.tab-btn:focus-visible,
.tab-btn:active,
.cup-tab-btn:hover,
.cup-tab-btn:focus-visible,
.cup-tab-btn:active,
.pes6-ranking-toggle:hover,
.pes6-ranking-toggle:focus-visible,
.history-accordion-trigger:hover,
.history-accordion-trigger:focus-visible,
.close-btn:hover,
.close-btn:focus-visible,
.close-btn-fixed:hover,
.close-btn-fixed:focus-visible {
  border-color: rgba(98, 206, 255, 0.74);
  box-shadow: var(--neon-box-shadow-hover);
}

.btn:active,
.sl-btn:active,
.sl-pill:active,
.tab-btn:active,
.cup-tab-btn:active {
  transform: translateY(1px);
}

.btn[disabled],
.sl-btn[disabled],
.sl-pill[disabled],
.btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:focus-visible,
.sl-btn:focus-visible,
.sl-pill:focus-visible,
.league-card:focus-visible,
.system-panel-trigger:focus-visible,
summary:focus-visible,
.close-btn:focus-visible,
.close-btn-fixed:focus-visible,
.tab-btn:focus-visible,
.cup-tab-btn:focus-visible,
.topbar-preview-link:focus-visible {
  outline: 2px solid rgba(88, 201, 255, 0.45);
  outline-offset: 2px;
}

.hud-separator {
  position: relative;
}

.hud-separator::after {
  content: none;
}


.sl-card {
  border: 1px solid var(--card-border);
  box-shadow: var(--neon-border-shadow);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 35, 58, 0.88), rgba(10, 23, 41, 0.88));
  padding: 0.95rem;
}

.sl-card:hover,
.sl-card:focus-visible {
  border-color: rgba(88, 201, 255, 0.52);
  box-shadow: var(--neon-box-shadow-hover);
}

.panel-section,
.faq,
.league-card,
.league-modal,
.season-card,
.palmares-block,
.pes6-ranking,
.cup-crossings-panel {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--neon-border-shadow), var(--shadow-card);
  background: var(--panel-glass);
  backdrop-filter: blur(3px);
}


.panel-section,
.faq,
.about-section,
.donations-section {
  padding: clamp(1.4rem, 5vw, 2.5rem);
}

.season-status {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.season-grid,
.league-grid,
.history-layout,
.palmares-layout,
.palmares-grid,
.cup-interdivisional-rounds,
.cup-crossing-body {
  display: grid;
  gap: clamp(0.9rem, 2.8vw, 1.12rem);
}

.pes6-ranking-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-layout {
  grid-template-columns: minmax(0, 1fr);
}

.season-card {
  padding: clamp(1.1rem, 3vw, 1.7rem);
  background: var(--panel-glass-strong);
}

.season-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.season-card h3 {
  margin: 0;
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  text-shadow: var(--neon-text-shadow);
}

.season-title,
.season-note,
.system-panel-hint,
.panel-section p,
.panel-section li,
.faq p,
.about-section p,
.donation-copy,
.sponsor-description,
.league-card-content p,
.highlight-text,
.note-text,
.cup-match-label,
.cup-team-player,
.history-value.is-pending,
.history-pending-badge,
.donation-transfer-note {
  color: var(--text-muted);
}

.season-countdown-label {
  margin: 0.9rem 0 1rem;
}

.season-end {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  padding: 0.9rem;
  text-align: center;
  font-family: var(--title-font);
  font-size: clamp(1rem, 4.5vw, 1.45rem);
  letter-spacing: 0.05em;
  background: var(--bg-card-strong);
}

.season-badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  line-height: 1;
  white-space: nowrap;
}

.season-badge {
  padding: 0.38rem 0.7rem;
  color: var(--text-main);
  background: rgba(88, 201, 255, 0.11);
  border-color: rgba(88, 201, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(88, 201, 255, 0.2), 0 0 13px -7px rgba(88, 201, 255, 0.68);
}

.season-slots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.season-slots-value {
  color: var(--text-main);
  font-weight: 700;
}

.mini-badge,
.mini-badge--open,
.mini-badge--closed {
  padding: 0.24rem 0.55rem;
  background: var(--bg-card-strong);
}

.pes6-leaders-section {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.pes6-leaders-section h3 {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  font-family: var(--title-font);
  letter-spacing: 0.04em;
  color: var(--text-main);
}

#pes6-leaders {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#kof-top3,
#bounty-week-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: visible;
}

#bounty-week-section {
  margin-top: 0.5rem;
  padding-top: 0.55rem;
}

.kof-top3-card {
  flex-wrap: nowrap;
  --glow-color: #2a6cff;
  position: relative;
  overflow: hidden;
}

.kof-top3-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--glow-color), transparent 70%);
  filter: blur(30px);
  opacity: 1;
  box-shadow: 0 0 24px var(--glow-color);
  z-index: 0;
}

.kof-top3-card > * {
  position: relative;
  z-index: 1;
}

.kof-top3-glove {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.kof-top3-glove img {
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--glow-color));
}

.kof-top3-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
}


.bounty-row,
.bountyRow,
.pes6-leader-card.bounty-row,
.pes6-leader-card.bountyRow {
  min-height: 56px;
  position: relative;
  overflow: visible;
}

.bounty-row .pes6-leader-main,
.bountyRow .pes6-leader-main {
  flex-wrap: nowrap;
}

.bounty-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 1rem;
  line-height: 1;
}

.bounty-row .pes6-leader-user {
  letter-spacing: 0.03em;
  text-align: left;
}

.bounty-row .pes6-leader-info {
  flex: 1 1 auto;
}

.bounty-row-glove.is-empty {
  opacity: 0;
  pointer-events: none;
}

.bounty-row.is-glow {
  --glow-color: #2a6cff;
}

.bounty-row.is-glow .pes6-leader-user {
  text-shadow: 0 0 12px color-mix(in srgb, var(--glow-color) 65%, transparent);
}

.bounty-row.has-particles,
.bountyRow.has-particles {
  overflow: visible;
}

.bounty-particles,
.bountyParticles {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 90px;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.bountyRow .leftGroup,
.bountyRow .rightGroup {
  position: relative;
  z-index: 3;
}

.bounty-particle,
.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--bountyColor);
  opacity: 0;
  filter: blur(0.6px);
  animation: floatUp 2.2s infinite;
}

.particle.p0 { left: 2px; top: 62px; animation-delay: -0.2s; animation-duration: 1.7s; }
.particle.p1 { left: 15px; top: 69px; animation-delay: -0.8s; animation-duration: 2.1s; }
.particle.p2 { left: 27px; top: 65px; animation-delay: -1.4s; animation-duration: 2.6s; }
.particle.p3 { left: 38px; top: 71px; animation-delay: -0.4s; animation-duration: 1.9s; }
.particle.p4 { left: 50px; top: 63px; animation-delay: -1.7s; animation-duration: 2.8s; }
.particle.p5 { left: 61px; top: 68px; animation-delay: -0.1s; animation-duration: 2.3s; }
.particle.p6 { left: 74px; top: 64px; animation-delay: -1.1s; animation-duration: 2.5s; }
.particle.p7 { left: 85px; top: 70px; animation-delay: -0.6s; animation-duration: 1.8s; }
.particle.p8 { left: 97px; top: 66px; animation-delay: -1.9s; animation-duration: 2.4s; }
.particle.p9 { left: 110px; top: 72px; animation-delay: -0.9s; animation-duration: 2s; }

@keyframes floatUp {
  0% {
    transform: translate(0, 12px) scale(.85);
    opacity: 0;
  }
  25% {
    opacity: .6;
  }
  100% {
    transform: translate(16px, -46px) scale(1.15);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bountyParticles {
    display: none;
  }

  .bounty-particle,
  .particle {
    animation: none;
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .kof-top3-glove {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

.pes6-leader-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  overflow: hidden;
  flex-wrap: wrap;
  border: 1px solid var(--line);
}

.pes6-leader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.25;
  z-index: 0;
}

[data-division="primera"]::before {
  background-image: url("assets/pes6-bg-1.png");
}

[data-division="segunda"]::before {
  background-image: url("assets/pes6-bg-2.png");
}

[data-division="tercera"]::before {
  background-image: url("assets/pes6-bg-3.png");
}

.pes6-leader-card * {
  position: relative;
  z-index: 1;
}

.pes6-leader-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.pes6-leader-shield {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
}

.pes6-leader-shield img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pes6-leader-info {
  min-width: 0;
}

.pes6-leader-user {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.92rem;
}

.pes6-leader-badges {
  margin-top: 0.28rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pes6-leader-division {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.pes6-leaders-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.league-card {
  overflow: hidden;
  cursor: pointer;
}

.league-card:hover,
.league-card:focus-visible,
.season-card:hover,
.system-panel-trigger:hover,
.sponsor-card:hover,
.sponsor-card:focus-visible {
  border-color: rgba(88, 201, 255, 0.52);
  box-shadow: var(--shadow-card);
}

.league-card-banner,
.modal-banner {
  width: 100%;
  height: clamp(230px, 33vw, 330px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.league-card-content {
  padding: 1.4rem;
}

.league-card-content h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.sponsor-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sponsor-card .league-card-content {
  display: grid;
  gap: 0.75rem;
}

.sponsor-description + .sponsor-description {
  margin-top: 0.6rem;
}

.sponsor-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(23, 45, 74, 0.95), rgba(12, 24, 42, 0.92));
  color: var(--text-main);
  font-family: var(--title-font);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-panel-trigger {
  cursor: pointer;
}

.system-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.system-panel-indicator {
  font-size: 1.15rem;
  color: var(--accent);
  text-shadow: var(--neon-text-shadow);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card-strong);
  padding: 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  text-shadow: 0 0 7px rgba(88, 201, 255, 0.16);
}

.faq details p {
  margin: 0.8rem 0 0;
}

.donations-section h2 {
  text-transform: none;
  text-shadow: var(--neon-text-shadow-strong);
}

.donation-copy {
  white-space: pre-line;
  margin-bottom: 0;
}

.donation-goal {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.donation-goal-text {
  margin: 0;
  font-family: var(--title-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.donation-goal-track {
  width: 100%;
  height: 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card-strong);
  overflow: hidden;
}

.donation-goal-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(88, 201, 255, 0.48), var(--accent));
}

.donation-actions {
  margin-top: 1rem;
  justify-content: flex-start;
}

.donation-transfer-card,
.palmares-block,
.pes6-ranking,
.system-card,
.history-section,
.history-accordion-item,
.cup-round-section,
.cup-match-card {
  border: 1px solid var(--card-border);
  box-shadow: var(--neon-border-shadow);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  padding: 0.95rem;
}

.donation-transfer-card {
  margin-top: 1rem;
}

.donation-transfer-card h3 {
  margin: 0 0 0.6rem;
}

.donation-transfer-item {
  margin: 0.2rem 0;
}

.palmares-card,
.pes6-ranking-row,
.history-row {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(10, 19, 34, 0.82);
  padding: 0.75rem;
}

.pes6-ranking-row {
  position: relative;
  height: auto;
  max-height: none;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 16px;
  border-color: rgba(119, 210, 255, 0.33);
  background: linear-gradient(180deg, rgba(17, 36, 62, 0.94), rgba(10, 22, 40, 0.95));
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.13), 0 0 18px -13px rgba(119, 210, 255, 0.45), 0 14px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pes6-ranking-row.is-top {
  border-color: rgba(119, 210, 255, 0.54);
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.22), 0 0 20px -12px rgba(119, 210, 255, 0.5), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.pes6-ranking-row:hover {
  border-color: rgba(160, 228, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(160, 228, 255, 0.27), 0 0 22px -12px rgba(119, 210, 255, 0.5), 0 14px 24px rgba(0, 0, 0, 0.32);
}

.palmares-trophy,
.history-trophy {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.palmares-subtitle,
.pes6-ranking-subtitle,
.history-section h4,
.history-label,
.cup-history-heading,
.cup-history-title,
.cup-round-title {
  margin: 0 0 0.7rem;
}

.cup-interdivisional-section {
  padding-top: 0;
}

.cup-interdivisional-card {
  cursor: pointer;
}

#pes6-season-card {
  position: relative;
  overflow: hidden;
}

#pes6-season-card .rot-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 800ms ease;
  z-index: 0;
}

#pes6-season-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,10,20,0.45) 0%,
    rgba(5,10,20,0.70) 100%
  );
  z-index: 1;
}

#pes6-season-card > * {
  position: relative;
  z-index: 2;
}


#kof-season-card {
  position: relative;
  overflow: hidden;
}

#kof-season-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/kof_bg.png");
  background-size: cover;
  background-position: center;
  filter: blur(24px);
  opacity: 0.38;
  transform: scale(1.1);
  z-index: 0;
}

#kof-season-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 20, 0.66) 0%,
    rgba(5, 10, 20, 0.84) 100%
  );
  z-index: 1;
}

#kof-season-card > * {
  position: relative;
  z-index: 2;
}

.inter-card-bg {
  position: relative;
  overflow: hidden;
}

.inter-card-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/interdivisional-bg.png");
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  opacity: 0.45;
  transform: scale(1.08);
  z-index: 0;
}

.inter-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,10,20,0.6),
    rgba(5,10,20,0.8)
  );
  z-index: 1;
}

.inter-card-bg > * {
  position: relative;
  z-index: 2;
}


.card-copa-premier.inactive-card,
.card-copa-premier.inactive-card.neon-box {
  box-shadow: none;
  border-color: var(--line-strong);
}

.card-copa-premier.inactive-card.neon-box:hover,
.card-copa-premier.inactive-card.neon-box:focus-visible,
.card-copa-premier.inactive-card.neon-box:active {
  box-shadow: none;
  border-color: var(--line-strong);
}

.card-copa-premier.inactive-card .neon-box {
  box-shadow: none;
  border-color: var(--line-strong);
}

.card-copa-premier.inactive-card .sl-tab.is-active,
.card-copa-premier.inactive-card .cup-tab-btn.is-active,
.card-copa-premier.inactive-card .sl-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  box-shadow: none;
}

#interdivisional-season-card.inactive-card,
#interdivisional-season-card.inactive-card.neon-box {
  box-shadow: none;
  border-color: var(--line-strong);
}

#interdivisional-season-card.inactive-card.neon-box:hover,
#interdivisional-season-card.inactive-card.neon-box:focus-visible,
#interdivisional-season-card.inactive-card.neon-box:active {
  box-shadow: none;
  border-color: var(--line-strong);
}

#interdivisional-season-card.inactive-card .neon-box {
  box-shadow: none;
  border-color: var(--line-strong);
}

.cup-card-actions {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(88, 201, 255, 0.24);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.card-copa-premier::before {
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("/sudaka-league/assets/copa-premier-bg.png") center/cover no-repeat;
}

.inter-panel-bg {
  position: relative;
  overflow: hidden;
}

.inter-panel-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/interdivisional-bg.png");
  background-size: cover;
  background-position: center;
  filter: blur(7px);
  opacity: 0.3;
  transform: scale(1.08);
  z-index: 0;
}

.inter-panel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,10,20,0.7),
    rgba(5,10,20,0.9)
  );
  z-index: 1;
}

.inter-panel-bg > * {
  position: relative;
  z-index: 2;
}


.cup-premier-panel-bg::before {
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("/sudaka-league/assets/copa-premier-bg.png") center/cover no-repeat;
}


.cup-countdown-chip {
  margin-top: 0.55rem;
  border-color: rgba(88, 201, 255, 0.5);
  background: rgba(6, 14, 26, 0.78);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 7px rgba(88, 201, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(88, 201, 255, 0.18), 0 0 16px -10px rgba(88, 201, 255, 0.52);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.cup-countdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}

.cup-countdown-text {
  line-height: 1.1;
}
.cup-toggle-label {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(88, 201, 255, 0.24);
  color: var(--accent);
  font-size: 0.78rem;
  text-shadow: 0 0 7px rgba(88, 201, 255, 0.24);
}

.cup-crossings-panel {
  margin-top: 0.8rem;
  padding: 0.9rem;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: max-height 280ms ease, opacity 220ms ease;
}

.cup-crossings-panel.is-open {
  opacity: 1;
  max-height: 2600px;
}

.cup-card-tabs,
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cup-card-tabs {
  margin-bottom: 0.75rem;
}

.cup-tab-btn,
.tab-btn,
.sl-tab {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(11, 20, 33, 0.82);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.48rem 0.72rem;
  cursor: pointer;
}

.cup-tab-btn.is-active,
.tab-btn.is-active,
.sl-tab.is-active,
.sl-tab[aria-selected="true"] {
  border-color: rgba(88, 201, 255, 0.72);
  background: rgba(88, 201, 255, 0.14);
  box-shadow: var(--neon-box-shadow-hover);
}

.cup-tab-panel {
  display: none;
}

.cup-tab-panel.is-active {
  display: block;
}

.cup-history-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.cup-history-toolbar select,
.copy-box textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: rgba(7, 14, 25, 0.82);
  color: var(--text-main);
  padding: 0.55rem 0.65rem;
}

.cup-history-toolbar select {
  max-width: 220px;
}

.cup-crossing-team,
.cup-team-shield,
.cup-crossing-shield,
.cup-crossing-score,
.cup-crossing-division {
  border: 1px solid var(--line);
  background: rgba(10, 17, 29, 0.9);
}

.cup-crossing-team {
  margin: 0;
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
}

.cup-crossing-team.is-selectable {
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.cup-crossing-team.is-selectable:hover {
  border-color: rgba(88, 201, 255, 0.72);
}

.cup-crossing-team.is-winner,
.cup-crossing-team.cup-crossing--winner,
.cup-crossing-score.is-winner {
  border-color: rgba(88, 201, 255, 0.72);
  background: rgba(88, 201, 255, 0.12);
  box-shadow: var(--neon-box-shadow-hover);
}

.faq,
.about-section,
.donations-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cup-crossing-team.is-loser {
  opacity: 0.65;
}

.cup-crossing-shield,
.cup-team-shield {
  object-fit: contain;
  border-radius: 0.65rem;
  flex-shrink: 0;
}

.cup-crossing-shield {
  width: 42px;
  height: 42px;
  padding: 0.2rem;
}

.cup-crossing-content {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.cup-crossing-player {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.cup-crossing-division {
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.22rem 0.36rem;
  color: var(--text-muted);
}

.cup-crossing-score {
  margin-left: auto;
  min-width: 3.2rem;
  border-radius: 0.55rem;
  padding: 0.28rem 0.33rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.cup-crossing-score-main {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
}

.cup-crossing-score-pens {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.pes6-ranking-header,
.history-row-left,
.cup-match-body,
.cup-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.pes6-ranking-header,
.rankingHeaderRow {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 124px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "rank name btn"
    "rank titles btn";
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.18rem;
}

.pes6-ranking-position,
.pes6-ranking-total,
.pes6-ranking-total-label {
  white-space: nowrap;
}

.pes6-ranking-position,
.rankingPos {
  width: 80px;
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  font-family: var(--title-font);
  font-size: clamp(2.05rem, 4.4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #ccedff;
  text-shadow: 0 3px 10px rgba(71, 179, 255, 0.32);
  grid-area: rank;
  align-self: stretch;
}

.pes6-ranking-position::after,
.rankingPos::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 18px;
  bottom: 6px;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(126, 216, 255, 0.44) 0%, rgba(126, 216, 255, 0.14) 55%, rgba(126, 216, 255, 0) 100%);
  filter: blur(4px);
  opacity: 0.88;
  pointer-events: none;
}

.pes6-ranking-player,
.rankingName {
  grid-area: name;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1.08rem, 2.7vw, 1.34rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(99, 196, 255, 0.12);
}

.pes6-ranking-stats {
  grid-area: titles;
  align-self: start;
  display: block;
  white-space: nowrap;
  color: rgba(187, 214, 235, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.12;
  margin-top: 0.28rem;
}

.pes6-ranking-panel,
.history-accordion-panel {
  margin-top: 0.65rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(119, 210, 255, 0.26);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(8, 17, 30, 0.88), rgba(6, 13, 24, 0.88));
}

.pes6-ranking-panel {
  position: static;
}

.pes6-ranking-breakdown {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.pes6-ranking-details {
  margin-top: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.history-accordion-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 280ms ease, opacity 220ms ease;
}

.history-accordion-panel[data-expanded="true"] {
  opacity: 1;
}

.pes6-ranking-toggle,
.history-accordion-trigger,
.sl-pill,
.sl-btn {
  border: 1px solid rgba(99, 196, 255, 0.34);
  border-radius: 999px;
  background: rgba(12, 24, 41, 0.88);
  color: var(--text-main);
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.pes6-ranking-toggle {
  min-height: 38px;
  padding-inline: 1rem;
  justify-self: end;
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.pes6-ranking-total,
.rankingTotal {
  font-size: clamp(1.18rem, 2.9vw, 1.34rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ecf7ff;
  line-height: 1;
}

.pes6-ranking-total-label,
.rankingMeta {
  color: rgba(190, 216, 235, 0.88);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.pes6-ranking {
  border-radius: 20px;
  border-color: rgba(119, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(15, 33, 58, 0.94), rgba(8, 19, 36, 0.96));
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.2), 0 0 24px -14px rgba(119, 210, 255, 0.54), 0 16px 28px rgba(0, 0, 0, 0.34);
  padding: 1.1rem;
}

.pes6-ranking > h3 {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 11px rgba(99, 196, 255, 0.2);
}

.pes6-ranking-subtitle {
  margin: 0.45rem 0 0.9rem;
  font-size: 0.79rem;
  letter-spacing: 0.04em;
  color: rgba(177, 200, 223, 0.9);
}


/* Historial panel tuned to match ranking visual pack */
#pes6-history {
  gap: 0.85rem;
}

.history-accordion-item {
  border-radius: 20px;
  border-color: rgba(119, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(15, 33, 58, 0.94), rgba(8, 19, 36, 0.96));
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.2), 0 0 24px -14px rgba(119, 210, 255, 0.5), 0 16px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(145, 219, 255, 0.06);
  padding: 1.1rem;
}

.history-accordion-trigger {
  width: 100%;
  justify-content: space-between;
  gap: 0.7rem;
  border-color: rgba(119, 210, 255, 0.48);
  background: linear-gradient(180deg, rgba(16, 33, 58, 0.92), rgba(10, 21, 39, 0.92));
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.2), 0 0 14px -11px rgba(119, 210, 255, 0.42);
}

.history-accordion-trigger > span:first-child {
  font-family: var(--title-font);
  letter-spacing: 0.08em;
}

.history-accordion-panel {
  border-color: rgba(119, 210, 255, 0.28);
  background: linear-gradient(180deg, rgba(9, 20, 36, 0.9), rgba(6, 13, 24, 0.9));
  box-shadow: inset 0 0 0 1px rgba(145, 219, 255, 0.06);
}

.history-section {
  border-color: rgba(119, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(12, 27, 48, 0.9), rgba(7, 17, 32, 0.92));
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.13), 0 0 16px -13px rgba(119, 210, 255, 0.42), inset 0 0 0 1px rgba(145, 219, 255, 0.05);
  padding: 0.9rem;
}

.history-section + .history-section {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(145, 219, 255, 0.14);
}

.history-section h4 {
  margin-bottom: 0.72rem;
  font-family: var(--title-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 243, 255, 0.95);
  text-shadow: 0 0 9px rgba(99, 196, 255, 0.2);
}

.history-row {
  position: relative;
  align-items: center;
  gap: 0.78rem;
  padding: 0.78rem 0.84rem;
  border-radius: 15px;
  border-color: rgba(119, 210, 255, 0.34);
  background: linear-gradient(180deg, rgba(14, 30, 52, 0.93), rgba(8, 19, 36, 0.94));
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.12), 0 0 14px -12px rgba(119, 210, 255, 0.44), 0 12px 22px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.history-row + .history-row {
  margin-top: 0.52rem;
}

.history-row-left {
  justify-content: flex-start;
  gap: 0.72rem;
  min-width: 0;
}

.history-trophy {
  width: clamp(50px, 7.1vw, 58px);
  height: clamp(50px, 7.1vw, 58px);
  padding: 0.34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 220, 255, 0.26) 0%, rgba(133, 220, 255, 0.12) 44%, rgba(133, 220, 255, 0.03) 70%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(149, 226, 255, 0.2), inset 0 0 12px rgba(108, 201, 255, 0.14), 0 0 26px -10px rgba(99, 196, 255, 0.6);
  filter: drop-shadow(0 0 18px rgba(99, 196, 255, 0.32));
  flex-shrink: 0;
}

.history-label {
  margin: 0;
  font-family: var(--title-font);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(200, 229, 248, 0.92);
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 214, 255, 0.38);
  background: rgba(105, 194, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(122, 214, 255, 0.11), 0 0 12px -10px rgba(122, 214, 255, 0.52);
}

.history-value {
  min-width: 0;
  text-align: right;
  font-size: clamp(0.94rem, 2.2vw, 1.04rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(237, 247, 255, 0.98);
  text-shadow: 0 0 10px rgba(99, 196, 255, 0.14);
  overflow-wrap: anywhere;
}

.history-value.is-pending {
  text-shadow: none;
}

.history-row.is-legacy {
  border-color: rgba(119, 210, 255, 0.24);
}

.history-row.is-legacy .history-value {
  opacity: 0.65;
  text-shadow: none;
}

.history-row.is-legacy .history-trophy {
  background: radial-gradient(circle, rgba(133, 220, 255, 0.16) 0%, rgba(133, 220, 255, 0.07) 44%, rgba(133, 220, 255, 0.02) 70%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(149, 226, 255, 0.12), inset 0 0 10px rgba(108, 201, 255, 0.08), 0 0 18px -11px rgba(99, 196, 255, 0.4);
  filter: drop-shadow(0 0 14px rgba(99, 196, 255, 0.22));
}

@media (hover: hover) {
  .history-row:hover {
    transform: translateY(-2px);
    border-color: rgba(160, 228, 255, 0.66);
    box-shadow: 0 0 0 1px rgba(160, 228, 255, 0.3), 0 0 24px -11px rgba(119, 210, 255, 0.56), 0 14px 25px rgba(0, 0, 0, 0.3);
  }
}


.pes6-ranking-row .pes6-ranking-toggle,
.pes6-ranking-row .rankingBtn {
  grid-area: btn;
  align-self: center;
  width: 124px;
  min-width: 124px;
  min-height: 36px;
  padding-inline: 0.95rem;
  border-color: rgba(119, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(16, 33, 58, 0.94), rgba(10, 21, 39, 0.94));
  box-shadow: 0 0 0 1px rgba(119, 210, 255, 0.2), 0 0 14px -11px rgba(119, 210, 255, 0.44);
}

.pes6-ranking-row .pes6-ranking-toggle > span:first-child,
.pes6-ranking-row .rankingBtn > span:first-child {
  display: inline-block;
  white-space: nowrap;
}

.pes6-ranking-row .pes6-ranking-toggle:hover,
.pes6-ranking-row .pes6-ranking-toggle:focus-visible {
  border-color: rgba(150, 223, 255, 0.68);
  box-shadow: 0 0 0 1px rgba(150, 223, 255, 0.28), 0 0 18px -10px rgba(150, 223, 255, 0.42);
}

@media (max-width: 480px) {
  .pes6-ranking-header,
  .rankingHeaderRow {
    grid-template-columns: 64px minmax(0, 1fr) 108px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "rank name btn"
      "rank titles btn";
    column-gap: 0.6rem;
    row-gap: 0.14rem;
  }

  .pes6-ranking-position,
  .rankingPos {
    width: 64px;
    min-height: 56px;
    font-size: clamp(1.78rem, 7.5vw, 2.1rem);
  }

  .pes6-ranking-position::after,
  .rankingPos::after {
    bottom: 4px;
    height: 10px;
    right: 10px;
  }

  .pes6-ranking-player,
  .rankingName {
    grid-area: name;
    font-size: 0.96rem;
    line-height: 1.13;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }

  .pes6-ranking-stats,
  .rankingMeta {
    font-size: 0.61rem;
    margin-top: 0.22rem;
  }

  .pes6-ranking-toggle,
  .rankingBtn {
    grid-area: btn;
    width: 108px;
    min-width: 108px;
    min-height: 34px;
    padding-inline: 0.6rem;
    font-size: 0.61rem;
  }

  .pes6-ranking-row {
    padding: 14px;
  }

  .history-trophy {
    width: clamp(52px, 15vw, 56px);
    height: clamp(52px, 15vw, 56px);
  }

  .history-label {
    font-size: 0.62rem;
    padding: 0.24rem 0.5rem;
  }

}

@media (max-width: 360px) {
  .pes6-ranking-header,
  .rankingHeaderRow {
    grid-template-columns: 58px minmax(0, 1fr) 98px;
  }

  .pes6-ranking-toggle,
  .rankingBtn {
    width: 98px;
    min-width: 98px;
    padding-inline: 0.52rem;
  }
}

.cup-history-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
}

.cup-history-season-item,
.cup-history-phase-item {
  border-radius: 14px;
}

.cup-history-season-item + .cup-history-season-item {
  margin-top: 0.75rem;
}

.cup-history-phase-list {
  display: grid;
  gap: 0.65rem;
}

.cup-history-phase-trigger > span:first-child,
.cup-history-season-trigger > span:first-child {
  font-family: var(--title-font);
  letter-spacing: 0.06em;
}

.cup-history-season-panel,
.cup-history-phase-panel {
  transition: max-height 280ms ease, opacity 220ms ease;
}

.cup-history-phase-panel .cup-round-section {
  margin: 0;
}

.cup-round-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.cup-match-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.cup-match-body {
  justify-content: space-between;
}

.cup-match-versus {
  font-family: var(--title-font);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.cup-team {
  justify-content: flex-start;
  min-width: 0;
}

.cup-team-shield {
  width: 36px;
  height: 36px;
}

.cup-team-info {
  min-width: 0;
}

.cup-team-club,
.cup-team-player {
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

.cup-team-club {
  font-weight: 700;
}

.league-modal {
  position: fixed;
  inset: 3vh auto auto 50%;
  transform: translateX(-50%);
  width: min(980px, 95vw);
  max-height: 93vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  z-index: 60;
  padding: clamp(1rem, 3vw, 1.8rem);
}

.pes6-crt {
  position: fixed;
  background: #0b1d3a;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.3);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: none;
}

.pes6-crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.pes6-crt::before,
.pes6-crt::after {
  pointer-events: none;
}

.league-modal::before,
.league-modal::after {
  z-index: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 4, 10, 0.72);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9999;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(0, 180, 255, 0.25);
  background: rgba(10, 20, 35, 0.7);
  color: var(--text-main);
  font-size: 1.22rem;
  line-height: 1;
  cursor: pointer;
}

.tab-bar {
  margin: 1rem 0 1.1rem;
}

.tab-panel[hidden],
.modal-overlay[hidden],
.league-modal[hidden] {
  display: none !important;
}

.copy-box {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.copy-box textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.highlight-text {
  border-left: 2px solid var(--line-strong);
  padding-left: 0.62rem;
}


.kof-open-layout {
  display: grid;
  gap: 1rem;
}

.kof-open-callout {
  padding: clamp(0.85rem, 2.5vw, 1.1rem);
  border: 1px solid rgba(255, 120, 120, 0.55);
  box-shadow: 0 0 24px rgba(255, 90, 120, 0.35);
  background: linear-gradient(160deg, rgba(40, 12, 26, 0.9), rgba(16, 22, 42, 0.9));
}

.kof-open-section {
  display: grid;
  gap: 0.55rem;
}

.kof-open-callout h3,
.kof-open-section h3 {
  margin: 0;
}

.kof-open-callout p,
.kof-open-section p {
  margin: 0;
}

.kof-open-callout ul,
.kof-open-section ul,
.kof-open-section ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.pes6-start-wrapper {
  margin-top: 30px;
  text-align: center;
}

.pes6-start-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(99, 196, 255, 0.65);
  font-family: var(--title-font);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00aaff, #0066ff);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pes6-start-btn:hover,
.pes6-start-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.6);
}

.back-to-top {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 40;
}

.visitor-counter,
#visitor-counter {
  text-align: center;
  padding: 16px 12px 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.preview-main {
  width: min(1100px, 94%);
  margin: 1.4rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.preview-grid {
  display: grid;
  gap: 1rem;
}

.preview-list,
.preview-matches {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card-strong);
  padding: 1rem;
}

.preview-item {
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(9, 16, 28, 0.64);
  margin-bottom: 0.55rem;
}

.preview-item:last-child {
  margin-bottom: 0;
}

.preview-modal-demo {
  border: 1px solid rgba(88, 201, 255, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--neon-border-shadow), var(--shadow-card);
  background: rgba(3, 7, 14, 0.6);
  backdrop-filter: blur(2px);
  padding: 0.9rem;
}

.preview-modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 1rem;
}



.palmares-block-divisions {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.palmares-grid-divisions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.palmares-card-division {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  margin: 40px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.palmares-division-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.palmares-division-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(1.38rem, 6vw, 1.62rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5faff;
  text-shadow: 0 0 10px rgba(0, 180, 255, 0.7);
}

.palmares-division-winner {
  margin: 0;
  font-size: clamp(0.98rem, 3.6vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f1f7ff;
}

.palmares-card-division .palmares-trophy {
  width: clamp(80px, 20vw, 100px);
  height: clamp(80px, 20vw, 100px);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.6));
}


.palmares-block-cups {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.palmares-grid-cups {
  display: flex;
  flex-direction: column;
  gap: clamp(1.9rem, 5vw, 2.8rem);
}

.palmares-card-cup {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.palmares-card-cup .palmares-trophy {
  width: clamp(90px, 20vw, 110px);
  height: clamp(90px, 20vw, 110px);
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 0 10px rgba(0, 180, 255, 0.7));
}

.palmares-cup-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-shadow: 0 0 10px rgba(0, 180, 255, 0.8);
}

.palmares-cup-winner {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.palmares-cup-winner.is-highlight {
  color: #f3f9ff;
}

.palmares-cup-winner.is-muted {
  color: #8a95a8;
}

@media (min-width: 860px) {
  .season-grid,
  .league-grid,
  .palmares-layout,
  .preview-grid,
  .cup-round-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 56px;
    --topbar-logo-size: clamp(54px, 15vw, 70px);
  }

  .section {
    width: min(1160px, 94%);
  }

  main {
    gap: clamp(1.75rem, 7vw, 2.25rem);
    padding: clamp(1.75rem, 8vw, 2.25rem) 0 clamp(2rem, 8vw, 2.5rem);
  }

  .topbar-inner {
    width: min(1160px, 94%);
    gap: 0.65rem;
  }

  .topbar-title {
    font-size: clamp(0.76rem, 3.5vw, 0.95rem);
  }

  .hero-copy,
  .subtitle,
  .panel-section p,
  .faq p,
  .about-section p {
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .tab-btn,
  .copy-btn,
  .back-to-top,
  .cup-tab-btn,
  .pes6-start-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .pes6-start-wrapper {
    margin-top: 1.2rem;
  }

  .league-card-content,
  .season-card,
  .panel-section,
  .faq,
  .about-section,
  .donations-section,
  .league-modal {
    padding: 1rem;
  }

  .season-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .league-card-banner,
  .modal-banner {
    height: 215px;
  }

  .league-modal {
    inset: 1.5vh auto auto 50%;
    max-height: 96vh;
  }

  .cup-history-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cup-history-toolbar select {
    max-width: none;
  }

  .cup-match-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .cup-match-versus {
    align-self: center;
  }
}


.block-container {
  background: linear-gradient(145deg, rgba(10, 25, 40, 0.95), rgba(8, 18, 30, 0.95));
  border: 1px solid rgba(0, 180, 255, 0.18);
  border-radius: 18px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.18);
  position: relative;
}

.palmares-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.division-item,
.copa-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(6, 14, 24, 0.35);
  border: 1px solid rgba(0, 180, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
}

.palmares-item-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.individual-item {
  background: rgba(6, 14, 24, 0.35);
  border: 1px solid rgba(0, 180, 255, 0.10);
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.individual-item .palmares-trophy {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.copa-item .palmares-trophy,
.division-item .palmares-trophy {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.palmares-card-title {
  margin: 0;
}

.palmares-winner-line {
  margin: 0;
}

.close-btn-fixed {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: rgba(10, 20, 35, 0.8);
  border: 1px solid rgba(0, 180, 255, 0.25);
  border-radius: 10px;
  padding: 8px;
  color: var(--text-main);
  line-height: 1;
  cursor: pointer;
}

.t24-layout {
  display: grid;
  gap: 1rem;
}

.t24-card {
  background: linear-gradient(145deg, rgba(10, 25, 40, 0.95), rgba(8, 18, 30, 0.95));
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 14px;
  padding: 1rem;
}

.t24-card-title {
  margin: 0 0 0.75rem;
  color: #8ce4ff;
  text-shadow: 0 0 10px rgba(0, 190, 255, 0.45);
}

.t24-table-scroller {
  width: 100%;
}

.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  width: 100%;
}

.t24-table {
  width: 100%;
  min-width: 900px;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.t24-table th,
.t24-table td {
  padding: 0.5rem 0.45rem;
  border-bottom: 1px solid rgba(0, 180, 255, 0.16);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  min-height: 58px;
}

.t24-table th {
  color: #8ce4ff;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(5, 15, 28, 0.85);
}

.t24-player,
.t24-team {
  text-align: left !important;
}

.t24-logo-cell {
  width: 74px;
  text-align: center;
  vertical-align: middle;
}

.t24-logo-cell > * {
  margin-inline: auto;
}

.team-crest {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(70, 180, 255, 0.35));
  transition: transform .15s ease, filter .15s ease;
}

.t24-table tbody tr {
  min-height: 62px;
}

.t24-table tbody tr:hover .team-crest {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(70, 180, 255, 0.5));
}

.badge-missing {
  opacity: .6;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.t24-table tbody tr.is-top {
  background: linear-gradient(90deg, rgba(0, 170, 255, 0.14), rgba(0, 170, 255, 0.04));
}

.t24-pos,
.t24-dg {
  font-weight: 700;
}

.t24-status {
  margin: 0;
  color: rgba(229, 245, 255, 0.9);
}

.t24-status.is-error {
  color: #ff9cae;
}

@media (max-width: 768px) {
  #pes6-tab-tablas-t24 {
    overflow-x: visible;
  }

  .t24-logo-cell {
    width: 66px;
  }

  .team-crest,
  .badge-missing {
    width: 36px;
    height: 36px;
  }

  .t24-table th,
  .t24-table td,
  .t24-table tbody tr {
    min-height: 56px;
  }
}

@media (max-width: 640px) {
  .pes6-leader-division {
    width: 100%;
  }
}



.pes6-updated {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.pes6-system-header {
  margin-bottom: 1.15rem;
}


.system-accordion-item h4 {
  margin: 0;
}

.system-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(153, 224, 255, 0.98);
  font: inherit;
  font-family: var(--title-font);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-align: left;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(87, 197, 255, 0.26);
}

.system-accordion-trigger:focus-visible {
  outline: 2px solid rgba(126, 221, 255, 0.75);
  outline-offset: 4px;
  border-radius: 6px;
}

.system-accordion-chevron {
  display: inline-flex;
  transition: transform 0.25s ease;
}

.system-accordion-trigger[aria-expanded="true"] .system-accordion-chevron {
  transform: rotate(180deg);
}

.system-accordion-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.system-accordion-panel.is-open {
  opacity: 1;
}

.system-accordion-panel > :first-child {
  margin-top: 0.5rem;
}

.pes6-system-header h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  text-shadow: 0 0 14px rgba(87, 197, 255, 0.35);
}

.pes6-system-subtitle {
  margin: 0.55rem 0 0;
  font-style: italic;
  color: rgba(218, 243, 255, 0.92);
  border-left: 2px solid rgba(104, 206, 255, 0.55);
  padding-left: 0.65rem;
}

.pes6-system-block {
  padding: 0.25rem 0 0.95rem;
  border-bottom: 1px solid rgba(95, 190, 255, 0.2);
  margin-bottom: 0.95rem;
}

.pes6-system-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pes6-system-block h4 {
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
  color: rgba(153, 224, 255, 0.98);
  text-shadow: 0 0 10px rgba(87, 197, 255, 0.26);
}

.pes6-system-block p {
  margin: 0.35rem 0 0.55rem;
}

.pes6-system-block ul,
.pes6-system-block ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.28rem;
}

.pes6-system-sublist {
  margin-top: 0.35rem !important;
  padding-left: 1.9rem !important;
}

.pes6-system-quote {
  margin-top: 0.6rem !important;
  font-family: var(--title-font);
  letter-spacing: 0.02em;
  color: rgba(178, 231, 255, 0.95);
  text-shadow: 0 0 10px rgba(87, 197, 255, 0.25);
}

@media (max-width: 640px) {
  .pes6-system-block {
    padding-bottom: 0.85rem;
  }

  .pes6-system-block ul,
  .pes6-system-block ol {
    padding-left: 1rem;
  }

  .pes6-system-sublist {
    padding-left: 1.4rem !important;
  }
}
