:root {
  --wc-green: #1a4d3e;
  --wc-green-light: #2d6a4f;
  --wc-gold: #c9a227;
  --wc-gold-light: #e8d48b;
  --wc-blue: #1d4e89;
  --wc-red: #c41e3a;

  --bg: #f4f7f5;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --border: rgba(26, 77, 62, 0.1);
  --text: #142820;
  --muted: #5a6b64;
  --accent: rgba(45, 106, 79, 0.14);
  --accent-border: var(--wc-green-light);
  --radius: 14px;
  --touch-min: 48px;

  --app-max-width: 100%;
  --header-h: 56px;
  --bottom-nav-h: 64px;

  --header-emblem-size: 36px;
  --trophy-size: 48px;
  --trophy-size-mobile: 40px;
  --theme-img-fit: contain;

  --shadow-sm: 0 2px 10px rgba(26, 77, 62, 0.07);
  --shadow-md: 0 8px 28px rgba(26, 77, 62, 0.12);
  --shadow-app: 0 0 0 1px rgba(26, 77, 62, 0.06), 0 24px 48px rgba(26, 77, 62, 0.14);
  --anim-duration: 0.28s;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  height: 100dvh;
}

body,
.app-body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: #dce8e2;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior: none;
}

/* â€”â€”â€” App shell (mobile-native frame) â€”â€”â€” */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-max-width);
  height: 100dvh;
  height: 100vh;
  max-height: 100dvh;
  max-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-app);
}

.app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  padding: 12px 16px calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
}

.panel {
  display: none;
  animation: panelIn var(--anim-duration) ease-out;
}

.panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--wc-green);
}

.scroll-hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin: 0 0 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  border: 1px dashed var(--border);
}

/* â€”â€”â€” Fondo animado â€”â€”â€” */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 106, 79, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(29, 78, 137, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(201, 162, 39, 0.1), transparent 45%),
    linear-gradient(180deg, #eef4f1 0%, #f8faf9 40%, #f4f7f5 100%);
  animation: bgShift 18s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { opacity: 1; filter: hue-rotate(0deg); }
  100% { opacity: 0.95; filter: hue-rotate(4deg); }
}

.page-bg__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url('../assets/images/bg-ball.svg');
  background-size: 140px 140px;
  background-repeat: repeat;
  color: var(--wc-green);
  animation: patternDrift 40s linear infinite;
}

@keyframes patternDrift {
  from { background-position: 0 0; }
  to { background-position: 140px 140px; }
}

.page-bg__ball {
  position: absolute;
  width: 200px;
  height: 200px;
  background: url('../assets/images/bg-ball.svg') center / contain no-repeat;
  color: var(--wc-green-light);
  opacity: 0.07;
  animation: ballFloat 12s ease-in-out infinite;
}

.page-bg__ball--1 { top: 12%; left: -4%; animation-delay: 0s; }
.page-bg__ball--2 { top: 55%; right: -6%; width: 160px; height: 160px; animation-delay: -4s; }
.page-bg__ball--3 { bottom: 8%; left: 20%; width: 120px; height: 120px; animation-delay: -8s; }

@keyframes ballFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -16px) rotate(8deg); }
}

/* Contenedor genÃ©rico para imÃ¡genes temÃ¡ticas */
.theme-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-img {
  object-fit: var(--theme-img-fit);
  display: block;
  max-width: 100%;
  height: auto;
}

.theme-img--emblem {
  width: var(--header-emblem-size);
  height: var(--header-emblem-size);
}

.theme-img--trophy {
  width: var(--trophy-size);
  height: auto;
  max-height: calc(var(--trophy-size) * 1.5);
  filter: drop-shadow(0 4px 8px rgba(201, 162, 39, 0.35));
}

/* â€”â€”â€” Header compacto â€”â€”â€” */
.site-header {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--header-h);
  padding: calc(8px + var(--safe-top)) 16px 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--wc-green) 0%,
    var(--wc-gold) 35%,
    var(--wc-red) 50%,
    var(--wc-blue) 75%,
    var(--wc-green-light) 100%
  );
  background-size: 200% 100%;
  animation: stripeSlide 6s linear infinite;
}

@keyframes stripeSlide {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.header-emblem {
  animation: emblemPulse 3s ease-in-out infinite;
}

@keyframes emblemPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.header-text {
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.site-header h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--wc-green), var(--wc-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-tagline {
  margin: 2px 0 0;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-tagline {
  margin: 1px 0 0;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* â€”â€”â€” Bottom navigation (native tab bar) â€”â€”â€” */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding: 6px 8px calc(6px + var(--safe-bottom));
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(26, 77, 62, 0.08);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--touch-min);
  padding: 6px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color var(--anim-duration), background var(--anim-duration), transform 0.12s;
}

.tab-btn:active {
  transform: scale(0.94);
  background: rgba(26, 77, 62, 0.06);
}

.tab-btn.active {
  color: var(--wc-green);
  background: var(--accent);
}

.tab-btn.active .tab-icon {
  transform: scale(1.08);
}

.tab-icon {
  width: 22px;
  height: 22px;
  transition: transform var(--anim-duration);
}

.tab-label {
  line-height: 1;
  letter-spacing: 0.02em;
}

@media (hover: hover) {
  .tab-btn:hover:not(.active) {
    background: rgba(26, 77, 62, 0.05);
  }
}

.tz-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.schedule-field {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.schedule-field__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-input {
  width: 100%;
  min-height: var(--touch-min);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--card-solid);
  color: var(--text);
}

.schedule-input:focus {
  outline: 2px solid rgba(26, 77, 62, 0.35);
  border-color: var(--wc-green);
}

.schedule-clear {
  flex-shrink: 0;
  align-self: flex-end;
}

.schedule-block {
  margin-bottom: 24px;
}

.schedule-section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wc-green);
}

.schedule-empty {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.flag-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--wc-green);
  letter-spacing: -0.02em;
}

/* Schedule */
.schedule-day {
  margin-bottom: 20px;
}

.schedule-day h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.match-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

.match-card:active {
  transform: scale(0.985);
}

.match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.match-card .time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wc-green);
}

.match-group {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.match-team-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.match-teams .vs {
  align-self: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-card--final {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card-solid), var(--card-solid)) padding-box,
    linear-gradient(120deg, var(--wc-gold), var(--wc-green-light)) border-box;
}

.schedule-final-trophy .theme-img--trophy {
  --trophy-size: 44px;
  animation: trophyFloat 3s ease-in-out infinite;
}

.match-card--final .match-teams {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--wc-green);
}

.match-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.phase-title {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(26, 77, 62, 0.08), transparent);
  border-left: 3px solid var(--wc-gold);
  color: var(--wc-green);
}

/* Standings */
.standings-wrap {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.group-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.group-tabs::-webkit-scrollbar {
  display: none;
}

.group-tab {
  flex-shrink: 0;
  min-height: var(--touch-min);
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.12s;
}

.group-tab:active {
  transform: scale(0.96);
}

.group-tab.active {
  background: linear-gradient(135deg, var(--accent), rgba(201, 162, 39, 0.15));
  color: var(--wc-green);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.standings-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile: tarjetas en lugar de tabla */
.standings-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.standings-table-desktop {
  display: none;
}

.standing-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.standing-card.rank-1 {
  border-left: 3px solid var(--wc-gold);
}

.standing-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.standing-pos {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wc-green);
  background: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}

.standing-name {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standing-pts {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wc-green);
  flex-shrink: 0;
}

.standing-pts small {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

.standing-stats {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
}

.standing-stats em {
  display: block;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}

.standings-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.standings-table th {
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
}

.standings-table th.team-col,
.standings-table td.team-col {
  text-align: left;
  padding-left: 4px;
}

.standings-table th.pts {
  font-weight: 700;
  color: var(--text);
}

.standings-table td {
  padding: 10px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-table .pos {
  width: 28px;
  color: var(--muted);
  font-weight: 500;
}

.standings-table tr.rank-1 .pos {
  color: var(--text);
  font-weight: 700;
}

.standings-table .pts-val {
  font-weight: 700;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.flag-round {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* Bracket */
.bracket-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}

.bracket-scroll::-webkit-scrollbar {
  display: none;
}

.bracket {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 1100px;
  padding: 8px 0 24px;
}

.bracket-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 148px;
}

.bracket-col h4 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bracket-col.final-col {
  min-width: 168px;
  justify-content: center;
}

.bracket-col.final-col h4 {
  margin-bottom: 16px;
}

.bracket-slot {
  margin: 6px 0;
  position: relative;
}

.bracket-match {
  background: var(--card);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 72px;
  font-size: 0.72rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.bracket-match.final-match {
  position: relative;
  min-height: 100px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card-solid), var(--card-solid)) padding-box,
    linear-gradient(135deg, var(--wc-gold), var(--wc-green-light), var(--wc-gold-light)) border-box;
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.2), var(--shadow-md);
  animation: finalGlow 4s ease-in-out infinite;
}

@keyframes finalGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(201, 162, 39, 0.2), var(--shadow-md); }
  50% { box-shadow: 0 0 28px rgba(201, 162, 39, 0.35), var(--shadow-md); }
}

.final-match {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-trophy {
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 4px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.12), transparent);
  width: 100%;
}

.final-trophy .theme-img--trophy {
  animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.final-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wc-gold);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.final-match__body {
  width: 100%;
  padding: 6px 10px 10px;
}

.bracket-slot--final {
  z-index: 2;
}

.bracket-col.final-col h4 {
  color: var(--wc-gold);
  font-weight: 700;
}

.match-datetime {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.65rem;
  margin-bottom: 6px;
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  min-height: 36px;
}

.bracket-team .placeholder-icon {
  width: 14px;
  height: 14px;
  background: #d4d2ce;
  border-radius: 3px;
  flex-shrink: 0;
}

.bracket-team .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-status {
  margin-top: 4px;
  font-size: 0.62rem;
  color: var(--muted);
}

/* Quiniela */
.quiniela-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--card-solid);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.quiniela-toolbar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.toolbar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  min-height: var(--touch-min);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, background 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--wc-green), var(--wc-green-light));
  color: #fff;
  border-color: var(--wc-green);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--wc-green-light), var(--wc-green));
  box-shadow: var(--shadow-sm);
}

.group-picks-section {
  margin-bottom: 20px;
}

.group-picks-section h3 {
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.group-picks-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-pick-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.group-pick-card h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
}

.pick-team {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--touch-min);
  padding: 12px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, border-color 0.15s;
}

.pick-team:active {
  transform: scale(0.98);
}

.pick-team.rank-1 {
  background: #eef4ea;
  border-color: #b8d4a8;
}

.pick-team.rank-2 {
  background: #f5f2ea;
  border-color: #d4c9a8;
}

.pick-team.rank-3 {
  background: #f0f0f0;
  border-color: #ccc;
}

.pick-team .rank-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

.bracket-team.clickable {
  cursor: pointer;
  border-radius: 8px;
  margin: 0 -4px;
}

.bracket-team.clickable:active {
  background: rgba(26, 77, 62, 0.1);
  transform: scale(0.98);
}

.bracket-team.selected {
  font-weight: 600;
  background: var(--accent);
}

.third-pick-select {
  width: 100%;
  margin-top: 6px;
  font-size: 0.85rem;
  padding: 10px 12px;
  min-height: var(--touch-min);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  background: #fff;
}



@media (max-width: 767px) {
  .page-bg__ball {
    opacity: 0.035;
  }

  .schedule-day h3 {
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(244, 247, 245, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 0;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg__gradient,
  .page-bg__pattern,
  .page-bg__ball,
  .header-emblem,
  .header-stripe,
  .final-trophy .theme-img--trophy,
  .bracket-match.final-match,
  .panel {
    animation: none !important;
  }

  .tab-btn:active,
  .match-card:active,
  .pick-team:active,
  .btn:active,
  .group-tab:active {
    transform: none;
  }
}

@media print {
  .page-bg,
  .bottom-nav,
  .site-header,
  .quiniela-toolbar,
  .group-picks-section,
  .scroll-hint,
  .no-print {
    display: none !important;
  }

  body,
  .app-body {
    overflow: visible;
    background: #fff;
  }

  .app-shell {
    max-width: none;
    box-shadow: none;
    min-height: auto;
  }

  .app-content {
    overflow: visible;
    padding: 0;
  }

  .panel {
    display: none !important;
  }

  #panel-quiniela.active,
  #panel-quiniela {
    display: block !important;
  }

  .bracket-scroll {
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .bracket {
    min-width: 0;
    transform: scale(0.85);
    transform-origin: top left;
  }
}

.live-updated {
  font-size: 0.75rem;
  color: var(--muted, #8b9cb3);
  margin: 0.25rem 0 0;
}

.live-updated--seed {
  color: #ffb347;
}

.match-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.match-score--live {
  color: #7dffb3;
  background: rgba(45, 212, 120, 0.15);
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.bracket-team--live-winner {
  background: rgba(45, 212, 120, 0.12);
  border-radius: 4px;
}