/**
 * WC Premium — Micro-interacciones, efectos de scroll, tilt 3D, neon
 */

/* ── Cursor Spotlight ── */
#quin-cursor-spotlight {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 226, 119, 0.055) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  will-change: left, top;
}

/* ── Ripple ── */
.quin-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0);
  animation: quin-ripple 0.65s linear;
  pointer-events: none;
  z-index: 9;
}

@keyframes quin-ripple {
  to { transform: scale(4.5); opacity: 0; }
}

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  [data-quin-reveal] {
    opacity: 0;
    transition:
      opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-quin-reveal="up"]    { transform: translateY(28px); }
  [data-quin-reveal="left"]  { transform: translateX(-28px); }
  [data-quin-reveal="right"] { transform: translateX(28px); }
  [data-quin-reveal="zoom"]  { transform: scale(0.88); }
  [data-quin-reveal="flip"]  { transform: perspective(600px) rotateY(20deg) translateZ(-16px); }

  [data-quin-reveal].quin-revealed {
    opacity: 1;
    transform: none;
  }

  /* Stagger children */
  .quin-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity  0.55s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .quin-stagger.quin-revealed > *:nth-child(1)  { transition-delay: 0.04s; }
  .quin-stagger.quin-revealed > *:nth-child(2)  { transition-delay: 0.09s; }
  .quin-stagger.quin-revealed > *:nth-child(3)  { transition-delay: 0.14s; }
  .quin-stagger.quin-revealed > *:nth-child(4)  { transition-delay: 0.19s; }
  .quin-stagger.quin-revealed > *:nth-child(5)  { transition-delay: 0.24s; }
  .quin-stagger.quin-revealed > *:nth-child(6)  { transition-delay: 0.29s; }
  .quin-stagger.quin-revealed > *:nth-child(n+7){ transition-delay: 0.34s; }
  .quin-stagger.quin-revealed > * { opacity: 1; transform: none; }
}

/* ── 3D Tilt ── */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bento-card {
    transform-style: preserve-3d;
    transition: transform 0.07s linear, box-shadow 0.3s !important;
  }
  .bento-card:hover {
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(75, 226, 119, 0.14),
      0 0 40px rgba(75, 226, 119, 0.07) !important;
  }
}

/* ── Animated Gradient Border ── */
@keyframes quin-border-spin {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.quin-glow-card {
  position: relative;
  isolation: isolate;
}
.quin-glow-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, #4be277, #afc7ff 40%, #ffb3ad 68%, #4be277);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  animation: quin-border-spin 3.5s ease infinite;
  filter: blur(1px);
}
.quin-glow-card:hover::before,
.quin-glow-card:focus-within::before {
  opacity: 0.7;
}

/* ── Score Neon ── */
@keyframes quin-neon-score {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(75, 226, 119, 0.55));
  }
  50% {
    filter:
      drop-shadow(0 0 14px rgba(75, 226, 119, 0.9))
      drop-shadow(0 0 32px rgba(75, 226, 119, 0.45));
  }
}
.quin-pts-value {
  animation: quin-neon-score 4s ease-in-out infinite !important;
  display: inline-block;
}

/* ── Gradient Text Sweep ── */
@keyframes quin-gradient-sweep {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}
.quin-gradient-sweep {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #4be277 22%,
    #afc7ff 45%,
    #ffffff 60%,
    #4be277 78%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: quin-gradient-sweep 5.5s linear infinite;
}

/* ── Button Hover Glow ── */
@media (hover: hover) {
  .wc-page--app button:hover,
  .wc-page--unified button:hover,
  .wc-page--app .btn-primary:hover,
  .wc-page--unified .btn-primary:hover,
  .wc-page--app .wc-grupo-save:hover,
  .wc-page--unified .wc-grupo-save:hover {
    filter: brightness(1.1) !important;
    box-shadow:
      4px 4px 0 #060e20,
      0 0 28px rgba(75, 226, 119, 0.45),
      0 0 56px rgba(75, 226, 119, 0.18) !important;
  }
}

/* ── Ranking Row Hover ── */
[data-quin-rank-row] {
  position: relative;
}
[data-quin-rank-row]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--quin-primary);
  opacity: 0;
  transition: opacity 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 14px rgba(75, 226, 119, 0.6);
  pointer-events: none;
}
[data-quin-rank-row]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(75, 226, 119, 0.07), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
[data-quin-rank-row]:hover::before { opacity: 1; }
[data-quin-rank-row]:hover::after  { opacity: 1; }

/* ── Avatar Ring Pulse ── */
@keyframes quin-ring-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(75, 226, 119, 0.55), 0 0 10px rgba(75, 226, 119, 0.25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(75, 226, 119, 0.3), 0 0 24px rgba(75, 226, 119, 0.5);
  }
}
.wc-avatar { animation: quin-ring-pulse 4s ease-in-out infinite !important; }

/* ── Topbar — Scroll Depth ── */
.quin-topbar-scrolled {
  background: rgba(11, 19, 38, 0.94) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border-bottom-color: rgba(75, 226, 119, 0.18) !important;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55) !important;
}

/* Topbar brand gradient sweep */
.quin-brand-text {
  background: linear-gradient(90deg, #fff 0%, #4be277 35%, #afc7ff 55%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: quin-gradient-sweep 7s linear infinite;
}

/* ── Bottom Nav Premium ── */
.quin-bottom-nav {
  background: linear-gradient(
    180deg,
    rgba(9, 15, 30, 0.72) 0%,
    rgba(9, 15, 30, 0.96) 100%
  ) !important;
  backdrop-filter: blur(32px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
  border-top: 1px solid rgba(75, 226, 119, 0.1) !important;
  box-shadow:
    0 -8px 36px rgba(0, 0, 0, 0.5),
    0 -1px 0 rgba(75, 226, 119, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* Active nav item halo */
.quin-nav-item--active {
  position: relative;
}
.quin-nav-item--active .quin-nav-icon-wrap {
  background: rgba(75, 226, 119, 0.14) !important;
}
.quin-nav-item--active .quin-nav-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(75, 226, 119, 0.22) 0%, transparent 70%);
  animation: quin-nav-halo 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes quin-nav-halo {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(1.5); }
}

/* Active indicator dot */
.quin-nav-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--quin-primary);
  box-shadow: 0 0 8px rgba(75, 226, 119, 0.85), 0 0 20px rgba(75, 226, 119, 0.4);
  animation: quin-dot-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes quin-dot-bounce {
  from { transform: translateX(-50%) scale(0); opacity: 0; }
  to   { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Nav link animated underline in topbar */
.wc-page--app .quin-nav-link,
.wc-page--unified .quin-nav-link {
  position: relative;
}
.wc-page--app .quin-nav-link::after,
.wc-page--unified .quin-nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, #4be277, #afc7ff);
  border-radius: 1px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.wc-page--app .quin-nav-link:hover::after,
.wc-page--unified .quin-nav-link:hover::after {
  right: 0;
}

/* ── Progress Bar Premium ── */
.quin-bar-outer {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.quin-bar-inner {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4be277, #a8ffcb);
  width: 0;
  transition: width 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(75, 226, 119, 0.45);
  position: relative;
  overflow: hidden;
}
.quin-bar-inner::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: quin-bar-shine 1.8s ease-in-out infinite;
}
@keyframes quin-bar-shine {
  from { transform: translateX(-60px); opacity: 0; }
  40%  { opacity: 1; }
  to   { transform: translateX(200px); opacity: 0; }
}

/* ── Table Row Hover Glow ── */
.table tbody tr {
  position: relative;
  transition: background 0.2s !important;
}
.table tbody tr::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(75, 226, 119, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.table tbody tr:hover::after { opacity: 1; }

/* ── Scrollbar Premium ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(11, 19, 38, 0.4); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(75, 226, 119, 0.45), rgba(175, 199, 255, 0.35));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4be277, #afc7ff);
}

/* ── Magnetic Wrapper ── */
[data-magnetic] {
  display: inline-block;
  transition: transform 0.15s;
  will-change: transform;
}

/* ── Tooltip ── */
[data-tip] {
  position: relative;
  cursor: default;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(17, 25, 45, 0.97);
  color: var(--text, #dae2fd);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid rgba(75, 226, 119, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  z-index: 200;
}
[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Page Load Shimmer Overlay ── */
@keyframes quin-page-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* ── Focus glow ── */
:focus-visible {
  outline: 2px solid rgba(75, 226, 119, 0.7) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(75, 226, 119, 0.15) !important;
}

/* ── Selection highlight ── */
::selection {
  background: rgba(75, 226, 119, 0.3);
  color: #fff;
}

/* ── Reduced motion overrides ── */
@media (prefers-reduced-motion: reduce) {
  .quin-pts-value,
  .wc-avatar,
  .quin-gradient-sweep,
  .quin-brand-text,
  .quin-nav-item--active .quin-nav-icon-wrap::after,
  .quin-nav-dot,
  .quin-bar-inner::after,
  .quin-glow-card::before {
    animation: none !important;
    transition: none !important;
  }
  [data-quin-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .quin-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════
   BRACKET ELIMINATORIA — Premium
   ═══════════════════════════════════════════════ */

/* Quita el scroll horizontal: el canvas se escala con JS */
.wc-bracket-board__scroll {
  overflow-x: hidden !important;
  /* Anular fade-edge de estilo.css (ya no hay scroll horizontal) */
  -webkit-mask-image: none !important;
          mask-image: none !important;
  scroll-snap-type: none !important;
  background: linear-gradient(
    135deg,
    rgba(7, 12, 26, 0.72) 0%,
    rgba(13, 20, 40, 0.78) 50%,
    rgba(7, 12, 26, 0.72) 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.28),
    0 0 0 2px rgba(59, 130, 246, 0.12),
    0 16px 48px rgba(88, 28, 135, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Canvas: JS controla el transform/marginBottom.
   NO usar !important en transform-origin: el JS establece origin=0 0 via inline style,
   y CSS !important sobreescribiría ese inline style, descentrando el cuadro. */
.wc-bracket-board__canvas {
  transform-origin: left top;
  transition: none !important;
}

/* Conectores: verde neón en lugar de blanco */
.wc-bracket-branch--left  .wc-bracket-round:not(:last-child) .wc-bracket-feeder::after,
.wc-bracket-branch--right .wc-bracket-round:not(:last-child) .wc-bracket-feeder::after {
  border-color: rgba(75, 226, 119, 0.38) !important;
}
.wc-bracket-branch--left  .wc-bracket-round:not(:last-child) .wc-bracket-matchup::before,
.wc-bracket-branch--right .wc-bracket-round:not(:last-child) .wc-bracket-matchup::before {
  background: rgba(75, 226, 119, 0.42) !important;
}

/* Etiquetas de ronda — pills de colores por fase */
.wc-bracket-round__label {
  padding: 0.2rem 0.72rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  display: inline-block !important;
  margin: 0 auto 0.6rem !important;
}
[data-round="32"] .wc-bracket-round__label {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #93c5fd !important;
}
[data-round="16"] .wc-bracket-round__label {
  background: rgba(139, 92, 246, 0.16) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: #c4b5fd !important;
}
[data-round="8"] .wc-bracket-round__label {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #fcd34d !important;
}
[data-round="4"] .wc-bracket-round__label {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

/* Participant — vidrio oscuro premium */
.wc-bracket-participant {
  background: linear-gradient(
    135deg,
    rgba(13, 20, 40, 0.9) 0%,
    rgba(20, 30, 58, 0.85) 100%
  ) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Pickable — lift + glow verde */
.wc-bracket-participant--pickable:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(75, 226, 119, 0.7) !important;
  box-shadow:
    0 4px 18px rgba(75, 226, 119, 0.22),
    0 0 0 2px rgba(75, 226, 119, 0.14) !important;
}

/* Ganador elegido — neón verde pulsante */
@keyframes quin-winner-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 200, 83, 0.32), 0 0 0 2px rgba(0, 200, 83, 0.2); }
  50%       { box-shadow: 0 0 22px rgba(0, 200, 83, 0.6), 0 0 0 3px rgba(0, 200, 83, 0.35); }
}
.wc-bracket-participant--winner,
.wc-bracket-participant--acerto,
.wc-bracket-matchup--ready label.wc-bracket-participant--pickable:has(.wc-bracket-pick-input:checked) {
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 160, 68, 0.12)) !important;
  border-color: #00e676 !important;
  animation: quin-winner-glow 2.8s ease-in-out infinite !important;
  opacity: 1 !important;
}
.wc-bracket-participant--acerto {
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5), 0 0 0 3px rgba(0, 230, 118, 0.28) !important;
}

/* Fallado — rojo */
.wc-bracket-participant--fallo {
  background: linear-gradient(135deg, rgba(213, 0, 0, 0.22), rgba(160, 0, 0, 0.12)) !important;
  border-color: #ff5252 !important;
  box-shadow: 0 0 12px rgba(213, 0, 0, 0.35), 0 0 0 2px rgba(213, 0, 0, 0.2) !important;
  opacity: 1 !important;
}

/* Matchup ready — outline pulsante */
@keyframes quin-matchup-ready {
  0%, 100% { outline-color: rgba(0, 200, 83, 0.38); }
  50%       { outline-color: rgba(0, 200, 83, 0.72); }
}
.wc-bracket-matchup--ready {
  border-radius: 10px !important;
  outline: 1.5px solid rgba(0, 200, 83, 0.38) !important;
  outline-offset: 2px !important;
  animation: quin-matchup-ready 3s ease-in-out infinite !important;
}
.wc-bracket-matchup--locked {
  outline-color: rgba(251, 191, 36, 0.55) !important;
  animation: none !important;
}

/* Badges ok/err */
.wc-bracket-participant__badge--ok {
  background: linear-gradient(135deg, #00e676, #00b248) !important;
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.5) !important;
}
.wc-bracket-participant__badge--err {
  background: linear-gradient(135deg, #ff5252, #c62828) !important;
  box-shadow: 0 2px 8px rgba(213, 0, 0, 0.5) !important;
}

/* Candado — ámbar premium */
.wc-bracket-matchup__lock {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5) !important;
}

/* HUB — Final área dorada */
@keyframes quin-copa-float {
  0%, 100% { transform: translateY(0) scale(1);    filter: drop-shadow(0 14px 28px rgba(251,191,36,0.45)) drop-shadow(0 4px 12px rgba(0,0,0,0.65)); }
  50%       { transform: translateY(-7px) scale(1.025); filter: drop-shadow(0 22px 40px rgba(251,191,36,0.65)) drop-shadow(0 8px 16px rgba(0,0,0,0.55)); }
}
.wc-bracket-hub__copa {
  animation: quin-copa-float 4.5s ease-in-out infinite !important;
}

.wc-bracket-hub__final-titulo {
  background: linear-gradient(90deg, #fbbf24 0%, #f97316 30%, #ef4444 55%, #f97316 75%, #fbbf24 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
  text-shadow: none !important;
  animation: quin-gradient-sweep 3.5s linear infinite !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  letter-spacing: 0.3em !important;
}

.wc-bracket-hub__finalists .wc-bracket-matchup {
  outline: 1.5px solid rgba(251, 191, 36, 0.42) !important;
  border-radius: 10px !important;
  padding: 0.15rem !important;
  animation: none !important;
}

/* Hint — visible en pantallas medianas, oculto en escritorio grande */
.wc-bracket-board__hint {
  display: block !important;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.55rem;
  font-style: italic;
  letter-spacing: 0.04em;
}
@media (min-width: 1440px) {
  .wc-bracket-board__hint { display: none !important; }
}

/* Intro colapsable */
.wc-elim-intro-card {
  background: rgba(8, 14, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.wc-elim-intro-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(220, 230, 255, 0.85);
  transition: background 0.2s;
}
.wc-elim-intro-summary:hover { background: rgba(255, 255, 255, 0.04); }
.wc-elim-intro-summary::-webkit-details-marker { display: none; }

.wc-elim-intro-chevron {
  margin-left: auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.38);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.wc-elim-intro-card[open] .wc-elim-intro-chevron { transform: rotate(180deg); }

.wc-elim-intro-body {
  padding: 0 1.1rem 0.9rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(210, 220, 245, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.wc-elim-intro-body strong { color: rgba(255, 255, 255, 0.95); }

/* Leyenda premium */
.wc-bracket-leyenda {
  background: rgba(7, 12, 26, 0.8) !important;
  border-color: rgba(75, 226, 119, 0.12) !important;
}
.wc-bracket-leyenda li {
  padding-left: 0.85rem;
  position: relative;
}
.wc-bracket-leyenda li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--quin-primary, #4be277);
  font-weight: 900;
}

/* Header eliminatoria - bento premium */
.wc-page--eliminatoria .wc-main--eliminatoria header.bento-card {
  border: 1px solid rgba(139, 92, 246, 0.22) !important;
  background: linear-gradient(
    135deg,
    rgba(88, 28, 135, 0.12) 0%,
    rgba(23, 31, 51, 0.55) 100%
  ) !important;
}

/* Titulo italico: evitar recorte de la ultima letra (ej. STAGE) */
.wc-page--eliminatoria .wc-elim-header.shimmer-effect {
  overflow: visible;
}
.wc-page--eliminatoria .wc-elim-header .page-h1 {
  padding-right: 0.35em;
  overflow: visible;
}
.wc-page--eliminatoria .wc-elim-header .page-h1 .quin-gradient-sweep {
  display: inline-block;
  padding-right: 0.15em;
}

/* Reducir movimiento (bracket) */
@media (prefers-reduced-motion: reduce) {
  .wc-bracket-participant--winner,
  .wc-bracket-participant--acerto,
  .wc-bracket-matchup--ready,
  .wc-bracket-hub__copa,
  .wc-bracket-hub__final-titulo {
    animation: none !important;
  }
  .wc-bracket-hub__final-titulo {
    -webkit-text-fill-color: #fbbf24 !important;
    color: #fbbf24 !important;
    background: none !important;
  }
}

/* ═══════════════════════════════════════════════
   BOTONES — Premium redesign
   ═══════════════════════════════════════════════ */

/*
 * Selectores: todos los botones de acción de las páginas app/unified.
 * Se excluyen radios, checkboxes y elementos con .no-btn-style.
 */
.wc-page--app    button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style),
.wc-page--unified button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style),
.wc-page--app    .btn-primary,
.wc-page--unified .btn-primary,
.wc-page--app    .wc-grupo-save,
.wc-page--unified .wc-grupo-save,
.wc-page--app    .wc-login-submit,
.wc-page--unified .wc-login-submit {
  position: relative !important;
  overflow: hidden !important;          /* necesario para el sheen y el ripple */
  /* Gradiente 3D: más luminoso arriba, más oscuro abajo */
  background: linear-gradient(
    170deg,
    #72f0a0 0%,
    #4be277 40%,
    #27d168 75%,
    #1db358 100%
  ) !important;
  /* Hard shadow (estética) + brillo interno en borde superior */
  box-shadow:
    4px 4px 0 #040d1a,
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
  transition:
    transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.18s,
    filter 0.14s !important;
}

/* Sheen: línea de brillo que barre en hover */
.wc-page--app    button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style)::after,
.wc-page--unified button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style)::after,
.wc-page--app    .btn-primary::after,
.wc-page--unified .btn-primary::after,
.wc-page--app    .wc-grupo-save::after,
.wc-page--unified .wc-grupo-save::after,
.wc-page--app    .wc-login-submit::after,
.wc-page--unified .wc-login-submit::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -70%;
  width: 45%;
  height: 120%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: skewX(-22deg);
  pointer-events: none;
  z-index: 1;
  transition: left 0s; /* reset instantáneo para que el siguiente hover empiece desde afuera */
}

/* Hover: levitar + sombra crece + glow + sheen viaja */
@media (hover: hover) {
  .wc-page--app    button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style):hover,
  .wc-page--unified button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style):hover,
  .wc-page--app    .btn-primary:hover,
  .wc-page--unified .btn-primary:hover,
  .wc-page--app    .wc-grupo-save:hover,
  .wc-page--unified .wc-grupo-save:hover,
  .wc-page--app    .wc-login-submit:hover,
  .wc-page--unified .wc-login-submit:hover {
    transform: translateY(-3px) !important;
    filter: brightness(1.07) !important;
    box-shadow:
      4px 7px 0 #040d1a,
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1),
      0 10px 28px rgba(75, 226, 119, 0.42),
      0 0 48px rgba(75, 226, 119, 0.14) !important;
  }

  .wc-page--app    button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style):hover::after,
  .wc-page--unified button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style):hover::after,
  .wc-page--app    .btn-primary:hover::after,
  .wc-page--unified .btn-primary:hover::after,
  .wc-page--app    .wc-grupo-save:hover::after,
  .wc-page--unified .wc-grupo-save:hover::after,
  .wc-page--app    .wc-login-submit:hover::after,
  .wc-page--unified .wc-login-submit:hover::after {
    left: 130%;
    transition: left 0.42s ease !important;
  }
}

/* Activo/Press: hunde el botón empujando en la sombra */
.wc-page--app    button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style):active,
.wc-page--unified button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style):active,
.wc-page--app    .btn-primary:active,
.wc-page--unified .btn-primary:active,
.wc-page--app    .wc-grupo-save:active,
.wc-page--unified .wc-grupo-save:active,
.wc-page--app    .wc-login-submit:active,
.wc-page--unified .wc-login-submit:active {
  transform: translate(3px, 3px) scale(0.98) !important;
  filter: brightness(0.95) !important;
  box-shadow:
    1px 1px 0 #040d1a,
    inset 0 2px 4px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(75, 226, 119, 0.18) !important;
  transition-duration: 0.06s !important;
}

/* ── Botón Submit del bracket — más grande + halo ── */
.wc-bracket-form__submit {
  min-width: 18rem !important;
  padding: 0.95rem 2rem !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.07em !important;
}

/* Animación periódica de atención en el submit del bracket */
@keyframes quin-btn-attention {
  0%, 88%, 100% { box-shadow: 4px 4px 0 #040d1a, inset 0 1px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(0,0,0,0.12); }
  92% {
    box-shadow:
      4px 4px 0 #040d1a,
      inset 0 1px 0 rgba(255,255,255,0.38),
      0 0 0 4px rgba(75, 226, 119, 0.22),
      0 0 24px rgba(75, 226, 119, 0.35);
  }
}
.wc-bracket-form__submit {
  animation: quin-btn-attention 6s ease-in-out infinite !important;
}

/* ── Botón login — texto más grande, padding generoso ── */
.wc-page--app    .wc-login-submit,
.wc-page--unified .wc-login-submit {
  font-size: 1.08rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.95rem 1.5rem !important;
}

/* ── wc-grupo-save: texto más definido ── */
.wc-page--app    .wc-grupo-save,
.wc-page--unified .wc-grupo-save {
  font-size: 0.85rem !important;
  letter-spacing: 0.06em !important;
}

/* Reducir movimiento (botones) */
@media (prefers-reduced-motion: reduce) {
  .wc-bracket-form__submit {
    animation: none !important;
  }
  .wc-page--app    button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style),
  .wc-page--unified button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style),
  .wc-page--app    .btn-primary,
  .wc-page--unified .btn-primary,
  .wc-page--app    .wc-grupo-save,
  .wc-page--unified .wc-grupo-save,
  .wc-page--app    .wc-login-submit,
  .wc-page--unified .wc-login-submit {
    transition: none !important;
  }
  .wc-page--app    button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style)::after,
  .wc-page--unified button:not([type="radio"]):not([type="checkbox"]):not(.no-btn-style)::after,
  .wc-page--app    .btn-primary::after,
  .wc-page--unified .btn-primary::after,
  .wc-page--app    .wc-grupo-save::after,
  .wc-page--unified .wc-grupo-save::after,
  .wc-page--app    .wc-login-submit::after,
  .wc-page--unified .wc-login-submit::after {
    display: none !important;
  }
}
