/* GINTONIC PUBLIC CSS - fichero único para la parte pública */
/* /includes/style.css */
* { box-sizing: border-box; }

/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root{
  --pc-bg:#d7e2ef;
  --pc-surface:#ffffff;
  --pc-surface-2:#f8fafc;
  --pc-border:#d9e2ee;
  --pc-border-soft:#e7edf5;
  --pc-text:#162233;
  --pc-text-soft:#5f6f82;
  --pc-primary:#16324f;
  --pc-primary-2:#1f6f8b;
  --pc-accent:#f4b400;
  --pc-success:#198754;
  --pc-danger:#c43d33;
  --pc-shadow:0 14px 36px rgba(15, 23, 42, 0.10);
  --pc-shadow-soft:0 8px 22px rgba(15, 23, 42, 0.07);
  --pc-radius:18px;
  --pc-radius-sm:12px;
  --pc-max:1120px;
  --pc-nav-max:980px;
}

/* =========================================================
   FONDO Y BASE
   ========================================================= */
html{
  min-height: 100%;
  background: radial-gradient(1400px 900px at 20% 0%, #d7e2ef 0%, #c4d1e2 45%, #afbdd1 100%);
}

body{
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  padding: 20px 14px 34px;
  color: var(--pc-text);
  background: transparent;
}

body > .card,
body > .table-wrap,
body > .notice,
body > .rules,
body > h1,
body > h2,
body > hr,
body > .site-nav-outer,
body > .site-nav-divider{
  max-width: var(--pc-max);
  margin-left: auto;
  margin-right: auto;
}

hr{
  border:0;
  border-top:1px solid #e9e9e9;
  margin: 16px 0 22px;
}

/* =========================================================
   NAVEGACIÓN PÚBLICA
   ========================================================= */
.site-nav-outer{
  width:min(100%, var(--pc-max));
  margin:0 auto 14px;
}

.site-nav-wrap,
.site-nav-divider{
  max-width:var(--pc-nav-max);
  margin:0 auto;
  padding:0 12px;
  box-sizing:border-box;
}

.mobile-nav-toggle{
  display:none;
  width:100%;
  padding:12px 14px;
  border:1px solid var(--pc-border);
  border-radius:14px;
  background:#fff;
  font-weight:700;
  cursor:pointer;
  box-sizing:border-box;
  color:var(--pc-primary);
  box-shadow:var(--pc-shadow-soft);
}

.main-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  align-items:center;
  width:100%;
  padding:12px;
  background:rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border:1px solid var(--pc-border);
  border-radius:18px;
  box-sizing:border-box;
  position:relative;
  z-index:50;
  box-shadow:var(--pc-shadow-soft);
}

.main-nav .nav-link,
.main-nav .nav-trigger{
  text-decoration:none;
  color:var(--pc-text);
  padding:9px 13px;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  background:#f6f8fb;
  border:none;
  white-space:nowrap;
  box-sizing:border-box;
  line-height:1.2;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-trigger:hover{
  background:#eaf1f8;
  color:var(--pc-primary);
  transform:translateY(-1px);
}

.main-nav .is-active{
  background:linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-primary-2) 100%) !important;
  color:#fff !important;
  font-weight:800;
  box-shadow:0 8px 18px rgba(22,50,79,.18);
}

.nav-item{ position:relative; }
.nav-trigger{ display:inline-flex; align-items:center; gap:8px; }
.nav-caret{ font-size:.80em; line-height:1; opacity:.75; transform:translateY(1px); }

.nav-dropdown{
  position:absolute;
  top:calc(100% + 2px);
  left:0;
  min-width:250px;
  background:#fff;
  border:1px solid var(--pc-border);
  border-radius:16px;
  box-shadow:var(--pc-shadow);
  padding:8px;
  z-index:1000;
  display:none;
  flex-direction:column;
  gap:4px;
}

.nav-item.desktop-open > .nav-dropdown{ display:flex; }
.nav-item.desktop-open > .nav-trigger{
  background:#eaf1f8;
  color:var(--pc-primary);
}

.nav-dropdown a{
  text-decoration:none;
  color:var(--pc-text);
  padding:9px 11px;
  border-radius:10px;
  display:block;
  white-space:nowrap;
  font-weight:600;
}

.nav-dropdown a:hover{ background:#f4f7fb; }
.nav-dropdown a.active-sub{
  background:#e9f1fb;
  color:var(--pc-primary);
  font-weight:800;
}

.nav-sep{
  color:#9aa8b8;
  padding:8px 2px;
  align-self:center;
}

.site-nav-divider hr{ margin:0; }

/* =========================================================
   MARCA / LOGO CABECERA
   ========================================================= */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand-image-only {
  display: inline-flex;
  align-items: center;
}

.site-brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.site-brand-logo-full {
  height: 58px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

.site-brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-brand-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #16324f;
}

.site-brand-subtitle {
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f4b400;
}

/* =========================================================
   TÍTULOS
   ========================================================= */
.section-title{
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  color: var(--pc-primary);
  letter-spacing: -0.02em;
}

h1{
  font-size: 30px;
  margin: 16px 0 12px;
  color: var(--pc-primary);
  letter-spacing: -0.02em;
}

h2{
  font-size: 22px;
  margin: 18px 0 10px;
  color: var(--pc-primary);
}

h3, h4{
  color: var(--pc-primary);
}

.small-help,
.muted{
  color: var(--pc-text-soft);
}

/* =========================================================
   TARJETAS
   ========================================================= */
.card{
  background:rgba(255,255,255,.96);
  border:1px solid var(--pc-border);
  border-radius:var(--pc-radius);
  box-shadow:var(--pc-shadow);
  padding:18px;
}

.subtle{
  background:linear-gradient(180deg, #f7faff 0%, #f1f5fa 100%);
  border:1px solid var(--pc-border-soft);
  padding:12px 14px;
  border-radius:14px;
  margin:12px 0 16px;
}

/* =========================================================
   MENSAJES
   ========================================================= */
.ok,
.bad,
.notice{
  border-radius:14px;
  padding:12px 14px;
  margin: 14px 0;
}

.ok{
  background:#ecfdf5;
  border:1px solid #b7ebce;
  color:#155a35;
}

.bad{
  background:#fff1f1;
  border:1px solid #efc4c4;
  color:#8e2828;
}

.notice{
  border:1px solid #d6e5fb;
  background:#f3f7ff;
}

.notice.danger{
  border-color:#efc4c4;
  background:#fff1f1;
}

/* =========================================================
   FORMULARIOS
   ========================================================= */
.field { min-width: 0; }

.field label{
  display:block;
  font-weight:650;
  margin:0 0 6px;
  line-height:1.2;
}

label{
  display:block;
  font-weight:650;
  margin:0 0 6px;
  line-height:1.2;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
input[type="email"],
select,
textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid #cfcfcf;
  border-radius:12px;
  background:#fff;
  outline:none;
  color:var(--pc-text);
  font:inherit;
}

textarea{
  resize:vertical;
  min-height:120px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus{
  border-color:#7a7a7a;
  box-shadow:0 0 0 3px rgba(0,0,0,0.06);
}

input[type="date"],
input[type="datetime-local"]{
  appearance: auto;
  -webkit-appearance: auto;
  box-sizing: border-box;
  min-height: 40px;
  padding-right: 40px;
  line-height: normal;
  font-size: 14px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator{
  opacity: 1;
  cursor: pointer;
}

.small-help{
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.35;
  white-space:normal;
  padding-bottom:2px;
}

.pass-wrap{
  position: relative;
}

.pass-wrap input{
  padding-right: 44px;
}

.pass-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  cursor:pointer;
  padding:6px 8px;
  border-radius:10px;
  line-height:1;
  opacity:.75;
}

.pass-toggle:hover{
  background:rgba(0,0,0,0.06);
  opacity:1;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn,
button,
input[type="submit"],
input[type="button"]{
  background:linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-primary-2) 100%);
  color:#fff;
  border:0;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  padding:10px 15px;
  box-shadow:0 8px 18px rgba(22,50,79,.16);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-decoration:none;
  display:inline-block;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
}

.btn-secondary{
  background:#eef3f8;
  color:var(--pc-primary);
  border:1px solid var(--pc-border);
  box-shadow:none;
}

.btn-secondary:hover{
  background:#e3ebf4;
  color:var(--pc-primary);
}

/* =========================================================
   GRID GENERAL
   ========================================================= */
.match-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px 18px;
  align-items:start;
}

/* =========================================================
   PISTAS / SORTEOS INTERIORES
   ========================================================= */
.pista-card{
  margin-top:14px;
  border:1px solid #dfe8f5;
  border-radius:14px;
  background:linear-gradient(180deg, #f7fbff 0%, #ffffff 65%);
}

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

.pista-card h3{
  margin:0;
  font-size:18px;
}

.pista-head h3{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.05);
}

.pista-card:nth-of-type(1){
  background: linear-gradient(180deg, #e9f2ff 0%, #ffffff 68%);
  border-color: #cfe0ff;
}
.pista-card:nth-of-type(2){
  background: linear-gradient(180deg, #eafaf0 0%, #ffffff 68%);
  border-color: #c9efd7;
}
.pista-card:nth-of-type(3){
  background: linear-gradient(180deg, #fff6e6 0%, #ffffff 68%);
  border-color: #ffe0ad;
}
.pista-card:nth-of-type(4){
  background: linear-gradient(180deg, #fde9f3 0%, #ffffff 68%);
  border-color: #f7c7df;
}

/* =========================================================
   AUTOCOMPLETE
   ========================================================= */
.ac-wrap{ position:relative; }

.ac-suggestions{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  background:#fff;
  border:1px solid #cfd6e6;
  border-radius:12px;
  box-shadow:0 14px 26px rgba(0,0,0,0.12);
  z-index:9999;
  max-height:220px;
  overflow:auto;
  display:none;
}

.ac-item{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid #f0f0f0;
}

.ac-item:last-child{ border-bottom:0; }
.ac-item:hover{ background:#f4f8ff; }
.ac-item .nick{ font-weight:650; }

.player-ac.invalid,
input.invalid{
  border-color:#d83b3b !important;
  background:#fff5f5 !important;
  box-shadow:0 0 0 3px rgba(216,59,59,0.12) !important;
}

/* =========================================================
   TABLAS
   ========================================================= */
.table-wrap,
.table-responsive{
  width:100%;
  max-width:100%;
  margin-top:14px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:16px;
  border:1px solid var(--pc-border);
  background:#fff;
  box-shadow:0 6px 20px rgba(15,23,42,.06);
}

.table-responsive > table,
.table-wrap > table{
  margin:0;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:760px;
}

thead th{
  position:sticky;
  top:0;
  background:#edf3fa;
  color:var(--pc-primary);
  text-align:left;
  font-weight:800;
  padding:12px;
  border-bottom:1px solid #e3e6ee;
}

tbody td{
  padding:10px 12px;
  border-bottom:1px solid #eef0f4;
  vertical-align:top;
}

tbody tr:nth-child(even){ background:#fbfdff; }
tbody tr:hover{ background:#eef5ff; }

table th:first-child,
table td:first-child{
  width:70px;
  text-align:right;
  color:#333;
}

table th:nth-child(4),
table td:nth-child(4){
  width:90px;
  text-align:center;
}

/* Se elimina el estilo global de la 5ª columna porque hacía que
   cualquier tabla con cinco columnas mostrara ese encabezado y sus celdas
   más pequeñas y en tipografía monoespaciada. Si alguna tabla concreta
   necesita ese formato, conviene aplicarlo con una clase específica. */

/* =========================================================
   RULES / TEXTOS
   ========================================================= */
.rules{ line-height:1.55; }
.rules h2{ margin-top:18px; }
.rules h3{ margin-top:14px; }

/* =========================================================
   FOOTER
   ========================================================= */
/* Bloque base del footer gestionado más abajo con la versión completa */

/* =========================================================
   UTILIDADES
   ========================================================= */
.text-right{ text-align:right !important; }
.no-underline{ text-decoration:none !important; }
.btn-link{ text-decoration:none !important; display:inline-block; }
.fw-700{ font-weight:700; }
.fs-12{ font-size:12px; }
.is-hidden{ display:none; }
.overflow-auto{ overflow:auto; }
.max-h-360{ max-height:360px; }
.minw-260{ min-width:260px; }
.inline-badge{ display:inline-block; padding:4px 8px; margin:0; }
.list-clean{ margin:0; padding-left:18px; }
.actions-row{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.filters-inline{ display:flex; gap:12px; flex-wrap:wrap; align-items:end; margin:12px 0; }
.media-toolbar{ display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.media-toolbar-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.field-end{ display:flex; align-items:end; }
.card-spaced{ margin-top:12px; }
.card-gap-bottom{ margin-bottom:14px; }
.bad-spaced{ margin-top:12px; }
.table-spaced{ margin-top:12px; }
.match-grid-spaced{ margin-top:12px; }
.small-help-spaced{ margin-top:10px; }

.mt-0{ margin-top:0 !important; }
.mt-6{ margin-top:6px !important; }
.mt-8{ margin-top:8px !important; }
.mt-10{ margin-top:10px !important; }
.mt-12{ margin-top:12px !important; }
.mt-16{ margin-top:16px !important; }
.mt-18{ margin-top:18px !important; }
.mb-8{ margin-bottom:8px !important; }
.mb-10{ margin-bottom:10px !important; }
.mb-12{ margin-bottom:12px !important; }
.mb-14{ margin-bottom:14px !important; }
.ml-6{ margin-left:6px !important; }
.ml-8{ margin-left:8px !important; }
.my-10{ margin:10px 0 !important; }
.my-12-8{ margin:12px 0 8px !important; }
.my-16-8{ margin:16px 0 8px !important; }

.table-simple{ width:100%; border-collapse:collapse; }
.th-basic{ text-align:left; padding:10px; border-bottom:1px solid #eee; }
.td-basic{ padding:10px; border-bottom:1px solid #f3f4f6; }
.td-empty{ padding:12px; }

/* =========================================================
   FOTOS JORNADAS
   ========================================================= */
.slide-image{
  width:100%;
  max-height:70vh;
  object-fit:contain;
  border-radius:16px;
  display:block;
  background:#f4f7fb;
}

/* =========================================================
   SORTEO PÚBLICO
   ========================================================= */
.big{
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.02em;
}

.topline{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:12px 0 14px;
}

.select{
  padding:10px 12px;
  border:1px solid var(--pc-border);
  border-radius:12px;
  background:#fff;
  font-weight:700;
}

.hr{
  height:1px;
  background:var(--pc-border);
  margin:16px 0;
}

.code{
  font-weight:900;
  letter-spacing:.6px;
  color:var(--pc-primary);
}

.pista{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--pc-border);
  border-radius:14px;
  background:linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%);
}

.pair{
  padding:8px 0;
  border-bottom:1px dashed #e7edf5;
}

.pair:last-child{ border-bottom:0; }

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin-top:10px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid var(--pc-border);
  border-radius:999px;
  background:#fff;
  color:var(--pc-text);
  font-weight:600;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#6b7280;
}

.badge.published{ background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.badge.scheduled{ background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.badge.draft{ background:#f8fafc; border-color:#dbe3ee; color:#617085; }

#countdown{
  display:inline-block;
  margin-top:8px;
  padding:10px 12px;
  border:1px solid var(--pc-border);
  border-radius:12px;
  background:#fbfcfe;
}

/* =========================================================
   IMAGEN PISTAS / ZOOM
   ========================================================= */
.zoom-img{
  display:inline-block;
  position:relative;
  margin:12px 0 18px;
  cursor:zoom-in;
}

.zoom-img .img-thumb{
  width:220px;
  height:auto;
  border-radius:12px;
  display:block;
}

.zoom-img .zoom-overlay{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
  background:rgba(0,0,0,0.55);
  align-items:center;
  justify-content:center;
  padding:24px;
}

.zoom-img .zoom-overlay img{
  max-width:min(1000px, 92vw);
  max-height:88vh;
  height:auto;
  width:auto;
  border-radius:14px;
  box-shadow:0 10px 35px rgba(0,0,0,0.45);
}

.zoom-img:hover .zoom-overlay{
  display:flex;
}

/* =========================================================
   ADMIN
   ========================================================= */
.admin-buttons {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin-top:14px;
}

.admin-buttons .btn {
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:44px;
  padding:10px 16px;
  line-height:1.2;
  box-sizing:border-box;
}

/* =========================================================
   RANKING EVOLUCIÓN
   ========================================================= */
.evo-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px;
}

.evo-card {
  background: rgba(255,255,255,.96);
  border:1px solid var(--pc-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--pc-shadow-soft);
  margin-bottom: 16px;
}

.evo-toolbar,
.evo-legend-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.evo-toolbar{ margin-bottom:14px; }

.evo-toolbar button,
.evo-toolbar select,
.evo-legend-actions button {
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--pc-border);
  background:#fff;
  cursor:pointer;
  color:var(--pc-text);
  font-weight:700;
  box-shadow:none;
}

.evo-status,
.small-muted,
.evo-scroll-hint{
  font-size:13px;
  color:var(--pc-text-soft);
}

.evo-debug {
  margin:10px 0 14px;
  font-size:13px;
  color:#3f4d5d;
  background:#f8fafe;
  border:1px solid #e3eaf3;
  border-radius:12px;
  padding:10px 12px;
}

.evo-error {
  display:none;
  margin:10px 0 14px;
  font-size:14px;
  color:#842029;
  background:#f8d7da;
  border:1px solid #f5c2c7;
  border-radius:12px;
  padding:10px 12px;
}

.canvas-scroll {
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  border-radius:14px;
  scroll-behavior:auto;
}

.canvas-inner { min-width:100%; }
.canvas-wrap { position:relative; height:72vh; min-height:460px; }

.evo-legend {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:8px;
  margin-top:10px;
}

.evo-legend label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  background:#fafcff;
  border:1px solid #e8eef6;
  padding:8px 10px;
  border-radius:12px;
}

/* =========================================================
   FASES FINALES
   ========================================================= */
.phase-bracket-wrap{
  overflow-x:auto;
  margin-top:18px;
  padding-bottom:8px;
}

.phase-bracket{
  min-width:1080px;
  display:grid;
  grid-template-columns:360px 150px 360px;
  gap:24px;
  align-items:center;
}

.phase-left,
.phase-right{
  display:grid;
}

.phase-left{
  grid-template-rows:1fr 1fr;
  gap:64px;
  padding-top:20px;
}

.phase-center{
  position:relative;
  height:560px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.phase-right{
  grid-template-rows:1fr 1fr;
  gap:108px;
  padding-top:78px;
}

.phase-match{
  background:#fff;
  border:1px solid var(--pc-border);
  border-radius:18px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.phase-match h3{
  margin:0 0 6px 0;
  font-size:1rem;
}

.phase-date{
  font-size:.88rem;
  color:var(--pc-text-soft);
  margin-bottom:10px;
}

.phase-team{
  background:#fafcff;
  border:1px solid #e9eff6;
  border-radius:12px;
  padding:10px 12px;
  line-height:1.45;
  min-height:48px;
  display:flex;
  align-items:center;
}

.phase-team + .phase-team{
  margin-top:8px;
}

.phase-vs{
  text-align:center;
  font-weight:700;
  color:var(--pc-text-soft);
  margin:8px 0;
}

.phase-center svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.phase-subtitle{
  margin-top:8px;
  color:var(--pc-text-soft);
  font-size:.95rem;
}

.phase-legend{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  margin-top:12px;
  font-size:.95rem;
  color:#555;
}

.phase-legend-item{
  display:flex;
  align-items:center;
  gap:8px;
}

.phase-legend-line{
  width:34px;
  height:0;
  border-top-width:4px;
  border-top-style:solid;
  border-radius:999px;
}

.phase-legend-line.win{ border-top-color:#198754; }
.phase-legend-line.lose{ border-top-color:#dc3545; }

/* =========================================================
   HOME / INDEX
   ========================================================= */
.home-shell {
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto 32px;
}

.home-hero {
  padding: 18px;
}

.home-intro {
  margin-bottom: 16px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.home-hero-main,
.home-hero-side {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  padding: 18px;
}

.home-hero-main h2,
.home-hero-side h2,
.section-head h2,
.quick-link-card h3 {
  margin-top: 0;
}

.home-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-links-grid--rules {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 14px;
  min-height: 150px;
}

.quick-link-card p {
  margin: 0;
  color: var(--pc-text-soft);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.info-panel {
  background: #f8fafc;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.home-list {
  margin: 0 0 14px;
  padding-left: 18px;
}

.home-list li + li {
  margin-top: 6px;
}

/* Tarjetas de situación actual */
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  margin:18px 0 0;
}

.stat-card {
  background:#ffffff;
  border:1px solid #d9e2ec;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(15, 23, 42, 0.08);
  padding:18px;
}

.stat-label {
  color:#48617a;
  font-size:0.9rem;
  font-weight:700;
  margin-bottom:8px;
}

.stat-value {
  color:#16324f;
  font-size:2rem;
  font-weight:800;
  line-height:1.1;
  margin-bottom:6px;
}

.stat-help {
  color:#6b7280;
  font-size:0.9rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .home-hero-grid,
  .home-grid-two,
  .stats-grid,
  .quick-links-grid--rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  .mobile-nav-toggle{ display:block; }

  .main-nav{
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:10px;
    margin-top:8px;
  }

  .main-nav.is-open{ display:flex; }

  .nav-item,
  .main-nav .nav-link{
    width:100%;
  }

  .main-nav .nav-link,
  .main-nav .nav-trigger{
    width:100%;
    justify-content:space-between;
  }

  .nav-dropdown{
    position:static;
    min-width:unset;
    width:100%;
    margin-top:6px;
    box-shadow:none;
    border:1px solid #ededed;
  }

  .nav-item.desktop-open > .nav-dropdown{ display:none; }
  .nav-item.open > .nav-dropdown{ display:flex; }
  .nav-sep{ display:none; }

  .phase-bracket{
    min-width:960px;
    grid-template-columns:320px 140px 320px;
    gap:16px;
    align-items:center;
  }

  .phase-center{
    height:540px;
  }

  .phase-right{
    gap:96px;
    padding-top:72px;
  }

  .phase-left{
    gap:52px;
  }

  .match-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .zoom-img:hover .zoom-overlay{ display:none; }
  .zoom-img .img-thumb{ width:100%; max-width:380px; }

  .evo-wrap{ padding:10px; }
  .canvas-wrap{ height:62vh; min-height:420px; }

  .filters-inline,
  .actions-row,
  .media-toolbar,
  .media-toolbar-actions{
    align-items:stretch;
  }
}

@media (max-width: 760px) {
  .site-brand-logo {
    height: 42px;
  }

  .site-brand-logo-full {
    height: 44px;
    max-width: 220px;
  }

  .site-brand-title {
    font-size: 1.2rem;
  }

  .site-brand-subtitle {
    font-size: 0.95rem;
  }

  .home-shell {
    width: min(100% - 16px, 100%);
  }

  .home-hero-grid,
  .home-grid-two,
  .stats-grid,
  .quick-links-grid,
  .quick-links-grid--rules {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-actions {
    flex-direction: column;
  }

  .home-actions .btn,
  .section-head .btn {
    width: 100%;
  }

  .quick-link-card {
    min-height: auto;
  }
}

/* ===== RANKING ===== */

.rank-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 10px;
  border-radius:999px;
  font-weight:800;
  border:1px solid var(--pc-border);
  background:#f4f7fb;
  color:var(--pc-primary);
}

.ranking-gold{
  background:linear-gradient(135deg, #f7d774 0%, #e5b93c 100%);
  border-color:#d2a62d;
  color:#5a4300;
}

.ranking-silver{
  background:linear-gradient(135deg, #edf1f5 0%, #cfd6dd 100%);
  border-color:#b8c1cb;
  color:#44515f;
}

.ranking-bronze{
  background:linear-gradient(135deg, #e8bb93 0%, #c98a5d 100%);
  border-color:#b87444;
  color:#5b3316;
}

.rank-row-gold{
  background:linear-gradient(90deg, rgba(247,215,116,.22) 0%, rgba(255,255,255,1) 72%) !important;
}

.rank-row-silver{
  background:linear-gradient(90deg, rgba(214,221,229,.28) 0%, rgba(255,255,255,1) 72%) !important;
}

.rank-row-bronze{
  background:linear-gradient(90deg, rgba(201,138,93,.18) 0%, rgba(255,255,255,1) 72%) !important;
}

.ranking-leader{
  display:grid;
  grid-template-columns:90px 1fr auto;
  gap:18px;
  align-items:center;
}

.ranking-leader-pos{
  width:90px;
  height:90px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:1.8rem;
  font-weight:900;
  box-shadow:0 8px 22px rgba(15, 23, 42, 0.10);
}

.ranking-leader-main{
  min-width:0;
}

.ranking-leader-name{
  font-size:1.55rem;
  font-weight:800;
  line-height:1.1;
}

.ranking-leader-name a{
  text-decoration:none;
}

.ranking-leader-stats{
  display:grid;
  gap:8px;
  background:#f8fafc;
  border:1px solid var(--pc-border);
  border-radius:14px;
  padding:14px 16px;
  min-width:190px;
}

.ranking-player-link{
  color:#16324f;
  font-weight:800;
  text-decoration:none;
  letter-spacing:0.15px;
}

.ranking-player-link:hover{
  color:#1f6f8b;
  text-decoration:underline;
  text-underline-offset:2px;
}

.ranking-help-message{
  margin-top:6px;
  font-size:0.95rem;
  color:var(--pc-text-soft);
  font-weight:600;
}

@media (max-width: 760px){
  .ranking-leader{
    grid-template-columns:1fr;
    text-align:center;
  }

  .ranking-leader-pos{
    margin:0 auto;
  }

  .ranking-leader-stats{
    min-width:0;
  }
}

/* ===== JORNADAS ===== */

.latest-positions-list{
  display:grid;
  gap:10px;
}

.latest-position-item{
  padding:10px 12px;
  border:1px solid var(--pc-border);
  border-radius:12px;
  background:#f8fafc;
  line-height:1.45;
}

/* ===== INDEX TOP 5 COMPACTO ===== */

.compact-table-wrap{
  overflow-x: visible;
}

.compact-rank-table{
  min-width: 0 !important;
  width: 100%;
  table-layout: auto;
}

.compact-rank-table thead th,
.compact-rank-table tbody td{
  padding: 9px 10px;
}

.compact-rank-table th:first-child,
.compact-rank-table td:first-child{
  width: 72px;
  text-align: center;
}

.compact-rank-table th:nth-child(2),
.compact-rank-table td:nth-child(2){
  width: auto;
}

.compact-rank-table th:nth-child(3),
.compact-rank-table td:nth-child(3){
  width: 110px;
  white-space: nowrap;
}

.compact-rank-table .rank-chip{
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
}

/* ===== INDEX ÚLTIMA JORNADA DESTACADA ===== */

.last-jornada-hero{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:16px;
  align-items:center;
  padding:16px;
  border:1px solid var(--pc-border);
  border-radius:16px;
  background:linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
  margin-bottom:14px;
}

.last-jornada-chip{
  width:72px;
  height:72px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:1.15rem;
  font-weight:900;
  color:var(--pc-primary);
  background:linear-gradient(135deg, #ffffff 0%, #e7eef8 100%);
  border:1px solid var(--pc-border);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}

.last-jornada-main{
  min-width:0;
}

.last-jornada-title{
  font-size:1.35rem;
  font-weight:800;
  color:var(--pc-primary);
  line-height:1.1;
}

.last-jornada-meta{
  margin-top:6px;
  color:var(--pc-text-soft);
  font-weight:600;
}

.last-jornada-side{
  text-align:right;
  min-width:160px;
}

@media (max-width: 760px){
  .last-jornada-hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .last-jornada-chip{
    margin:0 auto;
  }

  .last-jornada-side{
    text-align:center;
    min-width:0;
  }
}

/* ===== INDEX SORTEO DESTACADO ===== */

.last-sorteo-hero{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:16px;
  align-items:center;
  padding:16px;
  border:1px solid var(--pc-border);
  border-radius:16px;
  background:linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
  margin-bottom:14px;
}

.last-sorteo-chip{
  width:72px;
  height:72px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:1.5rem;
  font-weight:900;
  color:var(--pc-primary);
  background:linear-gradient(135deg, #ffffff 0%, #e7eef8 100%);
  border:1px solid var(--pc-border);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}

.last-sorteo-main{
  min-width:0;
}

.last-sorteo-title{
  font-size:1.35rem;
  font-weight:800;
  color:var(--pc-primary);
  line-height:1.1;
}

.last-sorteo-meta{
  margin-top:6px;
  color:var(--pc-text-soft);
  font-weight:600;
}

.last-sorteo-side{
  text-align:right;
  min-width:160px;
}

.sorteo-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:0.9rem;
  font-weight:800;
  border:1px solid var(--pc-border);
  background:#f8fafc;
  color:var(--pc-text-soft);
}

.sorteo-status-scheduled{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e40af;
}

.sorteo-status-published{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#065f46;
}

.sorteo-status-draft{
  background:#f8fafc;
  border-color:#dbe3ee;
  color:#617085;
}

@media (max-width: 760px){
  .last-sorteo-hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .last-sorteo-chip{
    margin:0 auto;
  }

  .last-sorteo-side{
    text-align:center;
    min-width:0;
  }
}

/* ===== INDEX FASES FINALES DESTACADO ===== */

.last-fases-hero{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:16px;
  align-items:center;
  padding:16px;
  border:1px solid var(--pc-border);
  border-radius:16px;
  background:linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
  margin-bottom:14px;
}

.last-fases-chip{
  width:72px;
  height:72px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:1.5rem;
  font-weight:900;
  color:var(--pc-primary);
  background:linear-gradient(135deg, #ffffff 0%, #e7eef8 100%);
  border:1px solid var(--pc-border);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}

.last-fases-main{
  min-width:0;
}

.last-fases-title{
  font-size:1.35rem;
  font-weight:800;
  color:var(--pc-primary);
  line-height:1.1;
}

.last-fases-meta{
  margin-top:6px;
  color:var(--pc-text-soft);
  font-weight:600;
}

.last-fases-side{
  text-align:right;
  min-width:160px;
}

.fases-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:0.9rem;
  font-weight:800;
  border:1px solid #e7d59a;
  background:linear-gradient(135deg, #f7e6a7 0%, #efc95d 100%);
  color:#6a4c00;
}

@media (max-width: 760px){
  .last-fases-hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .last-fases-chip{
    margin:0 auto;
  }

  .last-fases-side{
    text-align:center;
    min-width:0;
  }
}

/* ===== HOME HERO DESTACADO ===== */

.home-hero-main--highlight{
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
  border: 1px solid var(--pc-border);
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eaf1f8;
  color:var(--pc-primary);
  font-size:.82rem;
  font-weight:800;
  margin-bottom:12px;
}

.hero-title-main{
  margin:0 0 12px;
  font-size:2rem;
  line-height:1.05;
  color:var(--pc-primary);
  letter-spacing:-0.03em;
}

.hero-lead{
  margin:0 0 16px;
  font-size:1.02rem;
  line-height:1.55;
  color:#223246;
  max-width:60ch;
}

.hero-mini-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:16px;
}

.hero-mini-stat{
  background:#fff;
  border:1px solid var(--pc-border);
  border-radius:14px;
  padding:12px 14px;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}

.hero-mini-label{
  display:block;
  font-size:.82rem;
  font-weight:700;
  color:var(--pc-text-soft);
  margin-bottom:6px;
}

.hero-mini-value{
  display:block;
  font-size:1rem;
  font-weight:800;
  color:var(--pc-primary);
}

/* ===== SITUACIÓN ACTUAL MEJORADA ===== */

.situation-card{
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,251,255,.96) 100%);
}

.stat-card--accent{
  position:relative;
  overflow:hidden;
}

.stat-card--accent::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg, var(--pc-primary) 0%, var(--pc-primary-2) 100%);
}

.stat-card--accent .stat-value{
  font-size:2.15rem;
  letter-spacing:-0.02em;
}

.stat-card--accent .stat-label{
  text-transform:none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 980px){
  .hero-mini-stats{
    grid-template-columns:1fr;
  }

  .hero-title-main{
    font-size:1.7rem;
  }
}

/* ===== RESUMEN JORNADA ===== */

.resumen-pistas-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.resumen-pista-card{
  border:1px solid var(--pc-border);
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.resumen-pista-card--gold{
  border-color:#e7d59a;
  background:linear-gradient(180deg, #fff8df 0%, #fffdf5 100%);
  box-shadow:0 12px 28px rgba(199, 149, 0, 0.10);
}

.resumen-pista-title-wrap{
  min-width:0;
}

.resumen-pair-block{
  border:1px solid var(--pc-border);
  background:#f8fafc;
  border-radius:14px;
  padding:12px 14px;
}

.resumen-pair-block + .resumen-pair-block{
  margin-top:12px;
}

.resumen-pair-block--gold{
  border-color:#ead28b;
  background:linear-gradient(180deg, #fff6d6 0%, #fffaf0 100%);
}

.resumen-pair-label{
  font-size:.88rem;
  font-weight:800;
  color:var(--pc-primary);
  margin-bottom:6px;
}

.resumen-pair-names{
  font-size:1rem;
  line-height:1.5;
  color:var(--pc-text);
}

@media (max-width: 760px){
  .resumen-pistas-grid{
    grid-template-columns:1fr;
  }
}

.phase-dot{
  display:inline-block;
  width:14px;
  height:14px;
  border-radius:50%;
  margin-right:8px;
  transform:translateY(2px);
}

.phase-dot--in{
  background:#22c55e;
}

.phase-dot--out{
  background:#ef4444;
}

.movement-up{
  color:#15803d;
  font-weight:800;
}

.movement-down{
  color:#b91c1c;
  font-weight:800;
}

.movement-same{
  color:var(--pc-text-soft);
  font-weight:700;
}

/* ===== FOTOS JORNADAS ===== */

.gallery-featured-link{
  display:block;
  text-decoration:none;
}

.gallery-featured-image{
  width:100%;
  max-height:72vh;
  object-fit:contain;
  border-radius:18px;
  display:block;
  background:#f4f7fb;
  border:1px solid var(--pc-border);
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.gallery-card{
  background:#fff;
  border:1px solid var(--pc-border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--pc-shadow-soft);
}

.gallery-thumb-link{
  display:block;
  text-decoration:none;
}

.gallery-thumb-image{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  display:block;
  background:#eef3f8;
}

.gallery-card-body{
  padding:12px 14px;
}

.gallery-card-title{
  font-size:0.95rem;
  font-weight:800;
  color:var(--pc-primary);
  margin-bottom:6px;
}

.gallery-card-caption{
  font-size:0.92rem;
  line-height:1.45;
  color:var(--pc-text);
}

.gallery-card-caption--muted{
  color:var(--pc-text-soft);
}

@media (max-width: 980px){
  .gallery-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .gallery-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   SORTEO PÚBLICO MODERNO
   ========================================================= */
.sorteo-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg, #16324f 0%, #2c5d86 100%);
  color:#ffffff;
  font-weight:800;
  font-size:13px;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(22,50,79,.16);
}

.sorteo-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}

.sorteo-summary-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid #d6e1ee;
  border-radius:16px;
  padding:14px;
  box-shadow:0 8px 18px rgba(15, 23, 42, .06);
}

.sorteo-summary-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#667085;
  margin-bottom:8px;
}

.sorteo-summary-value{
  font-size:20px;
  font-weight:800;
  color:#16324f;
}

.sorteo-countdown-wrap{
  display:flex;
  justify-content:center;
  margin-top:10px;
}

.sorteo-countdown{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-width:220px;
  padding:18px 24px;
  border-radius:18px;
  background:#16324f !important;
  background-image:linear-gradient(135deg, #16324f 0%, #2c5d86 100%) !important;
  color:#ffffff !important;
  font-size:clamp(2rem, 5vw, 3.2rem);
  font-weight:900;
  letter-spacing:.08em;
  line-height:1;
  box-shadow:0 14px 32px rgba(22,50,79,.22);
  border:1px solid rgba(22,50,79,.18);
  text-shadow:0 1px 2px rgba(0,0,0,.25);
  opacity:1 !important;
}

.sorteo-countdown-help{
  margin-top:14px;
  text-align:center;
}

.sorteo-pistas-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}

.sorteo-pista-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid #d6e1ee;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 18px rgba(15, 23, 42, .06);
}

.sorteo-pista-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.sorteo-pista-head h3{
  margin:0;
  font-size:20px;
}

.sorteo-pairs-list{
  display:grid;
  gap:10px;
}

.sorteo-pair-item{
  background:#f8fafc;
  border:1px solid #d6e1ee;
  border-radius:14px;
  padding:12px 14px;
}

.sorteo-pair-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#667085;
  margin-bottom:6px;
}

.sorteo-pair-names{
  font-size:16px;
  font-weight:800;
  color:#1f2937;
}

.sorteo-players-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:12px;
}

.sorteo-player-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:#f8fafc;
  border:1px solid #d6e1ee;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(15, 23, 42, .06);
}

.sorteo-player-order{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:linear-gradient(135deg, #16324f 0%, #2c5d86 100%);
  color:#ffffff;
  font-weight:900;
  font-size:14px;
}

.sorteo-player-name{
  font-weight:800;
  color:#1f2937;
  min-width:0;
  word-break:break-word;
}

@media (max-width: 640px){
  .sorteo-summary-grid,
  .sorteo-pistas-grid,
  .sorteo-players-grid{
    grid-template-columns:1fr;
  }

  .sorteo-countdown{
    min-width:unset;
    width:100%;
    font-size:2.1rem;
  }
}

/* =========================================================
   HISTÓRICO DE SORTEOS
   ========================================================= */
.sorteo-history-toolbar{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.sorteo-history-jump{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:260px;
  flex:1 1 280px;
}

.sorteo-history-select{
  width:100%;
  min-width:220px;
}

.sorteo-history-toolbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.sorteo-history-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.sorteo-summary-value--sm{
  font-size:1rem;
  line-height:1.45;
}

.sorteo-summary-value--code{
  font-size:1rem;
  letter-spacing:.04em;
  word-break:break-word;
}

@media (max-width: 760px){
  .sorteo-history-toolbar{
    align-items:stretch;
  }

  .sorteo-history-jump{
    min-width:100%;
    flex-basis:100%;
  }

  .sorteo-history-toolbar-right{
    width:100%;
    justify-content:space-between;
  }

  .sorteo-history-actions .btn,
  .sorteo-history-toolbar .btn{
    width:auto;
  }
}

/* =========================================================
   HISTORICO PISTAS
   ========================================================= */
.history-issues-list{
  margin:10px 0 0 18px;
  padding:0;
}

.history-search-form{
  margin-top:6px;
}

.history-search-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:14px;
  align-items:end;
}

.historico-pistas-summary-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.historico-pistas-stat-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.historico-pistas-stat-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--pc-text-soft);
  margin-bottom:8px;
}

.historico-pistas-stat-value{
  font-size:24px;
  font-weight:900;
  color:var(--pc-primary);
}

.historico-pistas-columns{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.historico-pistas-panel{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--pc-shadow-soft);
}

.historico-pistas-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.historico-pistas-panel-head h3{
  margin:0;
}

.historico-pistas-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg, #16324f 0%, #2c5d86 100%);
  color:#fff;
  font-weight:800;
  font-size:13px;
  box-shadow:0 8px 18px rgba(22,50,79,.16);
}

.historico-pistas-track-list{
  display:grid;
  gap:12px;
}

.historico-pistas-track-item{
  display:grid;
  gap:7px;
}

.historico-pistas-track-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.historico-pistas-track-title{
  font-weight:800;
  color:var(--pc-text);
}

.historico-pistas-track-value{
  font-weight:800;
  color:var(--pc-primary);
}

.historico-pistas-track-value small{
  color:var(--pc-text-soft);
  font-weight:700;
}

.historico-pistas-track-bar{
  width:100%;
  height:12px;
  background:#eaf0f7;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #d8e1ec;
}

.historico-pistas-track-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(135deg, #16324f 0%, #2c5d86 100%);
  min-width:0;
}

.historico-pistas-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(135deg, #16324f 0%, #2c5d86 100%);
  color:#fff;
  font-weight:800;
  font-size:13px;
  line-height:1;
}

.historico-pistas-pill--soft{
  background:linear-gradient(135deg, #5d7896 0%, #7f9ab6 100%);
}

.notice-danger{
  border-left:4px solid #dc2626;
  background:#fff5f5;
}

@media (max-width: 980px){
  .historico-pistas-summary-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .history-search-grid,
  .historico-pistas-summary-grid,
  .historico-pistas-columns{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   EMPAREJAMIENTOS
   ========================================================= */
.emparejamientos-search-grid{
  grid-template-columns:minmax(0, 1.2fr) minmax(220px, .7fr) auto;
}

.emparejamientos-form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.emparejamientos-summary-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.emparejamientos-stat-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.emparejamientos-stat-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--pc-text-soft);
  margin-bottom:8px;
}

.emparejamientos-stat-value{
  font-size:24px;
  font-weight:900;
  color:var(--pc-primary);
}

.emparejamientos-next-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.emparejamientos-next-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.emparejamientos-next-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--pc-text-soft);
  margin-bottom:8px;
}

.emparejamientos-next-value{
  font-size:20px;
  font-weight:800;
  color:var(--pc-primary);
}

.emparejamientos-next-value--sm{
  font-size:1rem;
  line-height:1.45;
}

.emparejamientos-columns{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.emparejamientos-panel{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--pc-shadow-soft);
}

.emparejamientos-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.emparejamientos-panel-head h3{
  margin:0;
}

@media (max-width: 980px){
  .emparejamientos-summary-grid,
  .emparejamientos-next-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .emparejamientos-search-grid,
  .emparejamientos-summary-grid,
  .emparejamientos-next-grid,
  .emparejamientos-columns{
    grid-template-columns:1fr;
  }

  .emparejamientos-form-actions{
    width:100%;
  }
}

/* =========================================================
   FASE FINAL ORO / PLATA
   ========================================================= */
.fase-final-meta{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}

.fase-final-meta-item{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.fase-final-meta-label{
  display:block;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--pc-text-soft);
  margin-bottom:8px;
}

.fase-final-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.fase-final-player-card{
  display:flex;
  align-items:stretch;
  gap:12px;
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:18px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.fase-final-player-rank{
  width:54px;
  min-width:54px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #16324f 0%, #2c5d86 100%);
  color:#fff;
  font-size:1.1rem;
  font-weight:900;
  box-shadow:0 8px 18px rgba(22,50,79,.16);
}

.fase-final-player-body{
  min-width:0;
  flex:1;
}

.fase-final-player-name{
  font-size:1.05rem;
  font-weight:900;
  color:var(--pc-primary);
  margin-bottom:8px;
}

.fase-final-player-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.fase-final-player-stats span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#f3f7fb;
  border:1px solid #e1e8f1;
  color:var(--pc-text);
  font-size:.88rem;
  font-weight:700;
}

.fase-final-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  background:linear-gradient(135deg, #16324f 0%, #2c5d86 100%);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  margin-bottom:8px;
}

.fase-final-badge--gold{
  background:linear-gradient(135deg, #c79100 0%, #f4b400 100%);
  color:#1f2937;
}

.fase-final-badge--soft{
  background:linear-gradient(135deg, #7589a3 0%, #95a8bf 100%);
  color:#fff;
}

.phase-match--gold{
  border-color:#efd98a;
  background:linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.phase-match--consolation{
  border-color:#dbe4ee;
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

@media (max-width: 980px){
  .fase-final-meta{
    grid-template-columns:1fr;
  }

  .fase-final-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   AJUSTES FASE PLATA
   ========================================================= */
.fase-final-badge--silver{
  background:linear-gradient(135deg, #6b7a8c 0%, #a7b3c2 100%);
  color:#ffffff;
}

.fase-final-badge--silver-strong{
  background:linear-gradient(135deg, #b8c2cf 0%, #e6ebf2 100%);
  color:#243447;
}

.phase-match--silver{
  border-color:#d8e0ea;
  background:linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
}
/* =========================================================
   ENFRENTAMIENTOS DIRECTOS
   ========================================================= */
.enfrentamientos-search-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) auto;
  gap:14px;
  align-items:end;
}

.enfrentamientos-form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.enfrentamientos-summary-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.enfrentamientos-stat-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.enfrentamientos-stat-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--pc-text-soft);
  margin-bottom:8px;
}

.enfrentamientos-stat-value{
  font-size:24px;
  font-weight:900;
  color:var(--pc-primary);
}

.enfrentamientos-stat-value--sm{
  font-size:1rem;
  line-height:1.4;
}

.enfrentamientos-note{
  padding:14px 16px;
  border:1px solid #dbe6f2;
  border-radius:14px;
  background:#f8fbff;
  color:var(--pc-text-soft);
  line-height:1.5;
}

.enfrentamientos-result{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:62px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid #e5e7eb;
}

.enfrentamientos-result.win{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#065f46;
}

.enfrentamientos-result.lose{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#be123c;
}

@media (max-width: 980px){
  .enfrentamientos-summary-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .enfrentamientos-search-grid,
  .enfrentamientos-summary-grid{
    grid-template-columns:1fr;
  }

  .enfrentamientos-form-actions{
    width:100%;
  }
}
/* =========================================================
   RENDIMIENTO JUGADOR
   ========================================================= */
.rendimiento-search-grid{
  grid-template-columns:minmax(0, 1fr) auto;
}

.rendimiento-summary-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.rendimiento-stat-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.rendimiento-stat-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--pc-text-soft);
  margin-bottom:8px;
}

.rendimiento-stat-value{
  font-size:24px;
  font-weight:900;
  color:var(--pc-primary);
}

.rendimiento-two-columns{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.rendimiento-panel{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--pc-shadow-soft);
}

.rendimiento-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.rendimiento-panel-head h3{
  margin:0;
}

.rendimiento-list{
  display:grid;
  gap:8px;
}

.rendimiento-list li{
  line-height:1.5;
}

@media (max-width: 980px){
  .rendimiento-summary-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .rendimiento-search-grid,
  .rendimiento-summary-grid,
  .rendimiento-two-columns{
    grid-template-columns:1fr;
  }
}
/* =========================================================
   TARDONES
   ========================================================= */
.tardones-filter-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) auto;
  gap:14px;
  align-items:end;
}

.tardones-form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tardones-summary-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.tardones-stat-card{
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border:1px solid var(--pc-border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--pc-shadow-soft);
}

.tardones-stat-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--pc-text-soft);
  margin-bottom:8px;
}

.tardones-stat-value{
  font-size:24px;
  font-weight:900;
  color:var(--pc-primary);
}

.tardones-stat-value--sm{
  font-size:1rem;
  line-height:1.4;
}

.tardones-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid #e5e7eb;
  line-height:1;
}

.tardones-pill--danger{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#be123c;
}

@media (max-width: 980px){
  .tardones-summary-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .tardones-filter-grid,
  .tardones-summary-grid{
    grid-template-columns:1fr;
  }

  .tardones-form-actions{
    width:100%;
  }
}



/* header*/

.site-header-shell{
  width:100%;
}

.site-header-inner{
  width:min(100% - 32px, var(--pc-max, 1120px));
  margin:0 auto;
}

.site-header-divider-shell{
  margin-bottom: 24px;
}

.site-header-brand-row{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:10px;
}

.site-nav-wrap--full{
  width:100%;
}

.main-nav--full{
  width:100%;
  box-sizing:border-box;
}

.site-nav-divider{
  width:100%;
}

.site-nav-divider hr{
  width:100%;
  margin:0;
}

@media (max-width: 900px){
  .site-header-inner{
    width:min(100% - 20px, var(--pc-max, 1120px));
  }

  .main-nav--full{
    width:100%;
  }
}
/* footer*/
.site-footer{
  width:min(1100px, calc(100% - 32px));
  margin:28px auto 24px;
}

.site-footer-card{
  padding:14px 18px;
  text-align:center;
}

.site-footer-title{
  margin:0 0 6px;
  font-size:0.98rem;
  font-weight:700;
  line-height:1.4;
}

.site-footer-text{
  display:block;
  font-size:0.92rem;
  line-height:1.55;
  opacity:.92;
  max-width:760px;
  margin:0 auto;
}


/* ===== Jornadas: foto dentro del bloque resumen de última jornada ===== */

.jornada-latest-main{
  display:grid;
  grid-template-columns:minmax(540px, 1.08fr) minmax(340px, 1fr);
  gap:18px;
  align-items:stretch;
}

.jornada-latest-summary{
  height:100%;
}

.jornada-latest-summary-grid{
  display:grid;
  grid-template-columns:190px minmax(220px, 1fr);
  gap:18px;
  align-items:stretch;
  min-height:100%;
}

.jornada-latest-meta{
  min-width:0;
}

.jornada-latest-thumb-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}

.jornada-latest-thumb-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  text-decoration:none;
}

.jornada-latest-thumb-img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:340px;
  object-fit:contain;
  object-position:center top;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(15, 23, 42, .10);
}

.jornada-latest-thumb-empty{
  width:100%;
  min-height:220px;
  border:1px dashed var(--pc-border, #cfd8e3);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  color:#6b7280;
  font-weight:700;
  font-size:.98rem;
  background:rgba(255,255,255,.45);
}

.jornada-latest-positions{
  height:100%;
}

@media (max-width: 1100px){
  .jornada-latest-main{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .jornada-latest-summary-grid{
    grid-template-columns:1fr;
  }

  .jornada-latest-thumb-wrap{
    justify-content:center;
  }

  .jornada-latest-thumb-img{
    width:100%;
    max-width:100%;
    height:auto;
    max-height:420px;
    object-fit:contain;
    object-position:center top;
    border-radius:12px;
  }

  .jornada-latest-thumb-empty{
    min-height:220px;
  }
}

@media (max-width: 640px){
  .jornada-latest-thumb-img{
    max-height:380px;
  }
}
/* ===== Resumen jornada: warning arriba + foto miniatura en medallistas ===== */

.resumen-top-grid{
  display:grid;
  grid-template-columns:minmax(420px, 1.05fr) minmax(320px, .95fr);
  gap:18px;
  align-items:stretch;
}

.resumen-warning-panel{
  height:100%;
}

.compact-list li + li{
  margin-top:6px;
}

.resumen-medal-photo-grid{
  display:grid;
  grid-template-columns:minmax(220px, 1fr) 180px;
  gap:16px;
  align-items:start;
}


.resumen-photo-mini-wrap{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-width:0;
}

.resumen-photo-mini-link{
  display:block;
  width:100%;
  max-width:180px;
  text-decoration:none;
}

.resumen-photo-mini-img{
  display:block;
  width:100%;
  height:220px;
  object-fit:cover;
  object-position:center top;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(15, 23, 42, .10);
}

.resumen-photo-mini-empty{
  width:100%;
  max-width:180px;
  min-height:220px;
  border:1px dashed var(--pc-border, #cfd8e3);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
  color:#6b7280;
  font-weight:700;
  background:rgba(255,255,255,.45);
}

@media (max-width: 1100px){
  .resumen-top-grid{
    grid-template-columns:1fr;
  }

  .resumen-medal-photo-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .resumen-photo-mini-img{
    width:100%;
    max-width:100%;
    height:auto;
    max-height:420px;
    object-fit:contain;
    object-position:center top;
    border-radius:12px;
  }

  .resumen-photo-mini-empty{
    min-height:220px;
  }
}
.resumen-summary-row{
  align-items:start;
}

/* =========================================================
   BUSCADOR DEL HEADER
   ========================================================= */
.site-header-brand-row{
  gap: 16px;
  flex-wrap: wrap;
}

.site-search-wrap{
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
  min-width: 180px;
}

.site-search-form{
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--pc-shadow-soft);
  transition: box-shadow .18s, border-color .18s;
}

.site-search-form:focus-within{
  border-color: var(--pc-primary-2);
  box-shadow: 0 0 0 3px rgba(31,111,139,.13), var(--pc-shadow-soft);
}

.site-search-input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 9px 4px 9px 14px;
  font-size: .92rem;
  color: var(--pc-text);
  font-family: inherit;
  min-width: 0;
}

.site-search-input::placeholder{ color: var(--pc-text-soft); }
.site-search-input::-webkit-search-cancel-button{ cursor: pointer; }

.site-search-btn{
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--pc-text-soft);
  display: flex;
  align-items: center;
  transition: color .15s;
}
.site-search-btn:hover{ color: var(--pc-primary); }

/* Dropdown de sugerencias */
.site-search-dropdown{
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  box-shadow: var(--pc-shadow);
  z-index: 2000;
  overflow: hidden;
  flex-direction: column;
}

.site-search-dropdown.is-open{ display: flex; }

.ssd-group-label{
  padding: 8px 14px 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--pc-text-soft);
  text-transform: uppercase;
}

.ssd-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--pc-text);
  transition: background .13s;
  outline: none;
}

.ssd-item:hover,
.ssd-item:focus{
  background: var(--pc-surface-2);
  color: var(--pc-primary);
}

.ssd-icon{ font-size: 1rem; flex-shrink: 0; }

.ssd-main{
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 600;
  font-size: .91rem;
  min-width: 0;
}

.ssd-sub{
  font-weight: 400;
  font-size: .8rem;
  color: var(--pc-text-soft);
}

.ssd-item mark,
.ssd-all mark{
  background: rgba(244,180,0,.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.ssd-all{
  display: block;
  padding: 9px 14px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--pc-primary-2);
  text-decoration: none;
  border-top: 1px solid var(--pc-border-soft);
  text-align: right;
  transition: background .13s;
  outline: none;
}

.ssd-all:hover,
.ssd-all:focus{ background: var(--pc-surface-2); }

.ssd-empty{
  padding: 14px;
  font-size: .88rem;
  color: var(--pc-text-soft);
  text-align: center;
}

@media (max-width: 900px){
  .site-search-wrap{
    max-width: 100%;
    flex: 1 1 100%;
    order: 3;
  }
  .site-header-brand-row{
    flex-wrap: wrap;
  }
}

/* =========================================================
   NAVEGACIÓN MÓVIL — BARRA INFERIOR + DRAWER
   ========================================================= */

/* Ocultar en escritorio */
.mobile-bottom-nav,
.mobile-drawer-overlay,
.mobile-drawer { display: none; }

@media (max-width: 900px) {

  /* ── Ocultar el botón hamburguesa clásico ── */
  .mobile-nav-toggle { display: none !important; }

  /* ── Barra inferior fija ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: var(--pc-surface);
    border-top: 1px solid var(--pc-border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 18px rgba(15,23,42,0.09);
  }

  .mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 8px;
    text-decoration: none;
    color: var(--pc-text-soft);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    border: none;
    background: none;
    transition: color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
  }

  .mobile-bottom-nav__item:active,
  .mobile-bottom-nav__item.is-active {
    color: var(--pc-primary);
    background: var(--pc-border-soft);
  }

  .mobile-bottom-nav__icon {
    font-size: 1.35rem;
    line-height: 1;
  }

  .mobile-bottom-nav__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pc-primary-2);
    margin-top: 2px;
    opacity: 0;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__dot {
    opacity: 1;
  }

  /* ── Overlay del drawer ── */
  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, 0.45);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }

  .mobile-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Drawer lateral ── */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 88vw);
    z-index: 901;
    background: var(--pc-surface);
    border-left: 1px solid var(--pc-border);
    box-shadow: -8px 0 32px rgba(15,23,42,0.14);
    transform: translateX(100%);
    transition: transform .27s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--pc-border-soft);
    position: sticky;
    top: 0;
    background: var(--pc-surface);
    z-index: 1;
  }

  .mobile-drawer__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pc-text);
  }

  .mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--pc-border);
    border-radius: 10px;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--pc-text-soft);
    transition: background .13s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__close:active { background: var(--pc-border-soft); }

  .mobile-drawer__group {
    border-bottom: 1px solid var(--pc-border-soft);
    padding: 6px 0;
  }

  .mobile-drawer__group-label {
    padding: 8px 16px 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pc-text-soft);
  }

  .mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: .92rem;
    color: var(--pc-text);
    text-decoration: none;
    transition: background .12s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__link:active { background: var(--pc-border-soft); }
  .mobile-drawer__link.is-active { color: var(--pc-primary); font-weight: 700; }

  .mobile-drawer__link-icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
  }

  /* ── Ajustar padding del body para la barra inferior ── */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ── Selector de tema en el drawer móvil ── */
@media (max-width: 900px) {
  .mobile-drawer__theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--pc-border);
    border-radius: 10px;
    background: none;
    cursor: pointer;
    font-size: 1.15rem;
    margin-left: auto;
    margin-right: 8px;
    transition: background .13s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-drawer__theme-btn:active { background: var(--pc-border-soft); }

  .mobile-drawer__theme-panel {
    border-bottom: 1px solid var(--pc-border-soft);
    padding: 10px 14px 12px;
    background: var(--pc-surface-2);
  }

  .mobile-drawer__theme-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pc-text-soft);
    margin: 0 0 8px;
  }

  .mobile-drawer__theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .mobile-drawer__theme-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--pc-border);
    border-radius: 20px;
    background: var(--pc-surface);
    cursor: pointer;
    font-size: .85rem;
    color: var(--pc-text);
    transition: background .12s, border-color .12s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__theme-option:active { background: var(--pc-border-soft); }

  .mobile-drawer__theme-option.is-active {
    border-color: var(--pc-primary-2);
    background: var(--pc-border-soft);
    font-weight: 700;
    color: var(--pc-primary);
  }
}

/* =========================================================
   BANNER SORTEO INMINENTE
   ========================================================= */
.sorteo-urgente-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--pc-max);
  margin: 0 auto 18px;
  padding: 14px 20px;
  background: var(--pc-surface);
  border: 2px solid var(--pc-accent);
  border-radius: var(--pc-radius-sm);
  box-shadow: 0 4px 16px rgba(244,180,0,.18);
  animation: banner-pulse 2.5s ease-in-out infinite;
}

@keyframes banner-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(244,180,0,.18); }
  50%       { box-shadow: 0 4px 24px rgba(244,180,0,.40); }
}

.sorteo-urgente-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  animation: icon-bounce 1.2s ease-in-out infinite;
}

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

.sorteo-urgente-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--pc-text);
}

.sorteo-urgente-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.sorteo-urgente-fecha {
  font-size: .85rem;
  color: var(--pc-text-soft);
}

.sorteo-urgente-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  background: #f4b400;
  color: #162233;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, transform .12s;
  white-space: nowrap;
}

.sorteo-urgente-btn:hover {
  background: #e0a500;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .sorteo-urgente-banner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .sorteo-urgente-btn {
    width: 100%;
    text-align: center;
  }
}



/* =========================================================
   OCULTAR ACCESOS RÁPIDOS EN MÓVIL
   (duplican la barra inferior)
   ========================================================= */
@media (max-width: 900px) {
  .hide-on-mobile { display: none !important; }
}

/* =========================================================
   COMPARATIVA HEAD-TO-HEAD
   ========================================================= */
.enf-compare-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--pc-border-soft);
  border-radius: var(--pc-radius-sm);
  overflow: hidden;
}

.enf-cmp-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  padding: 10px 16px;
  background: var(--pc-surface-2);
  border-bottom: 1px solid var(--pc-border-soft);
}

.enf-cmp-player {
  font-weight: 700;
  font-size: .95rem;
  color: var(--pc-primary);
}

.enf-cmp-header .enf-cmp-player:last-child { text-align: right; }

.enf-cmp-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  padding: 9px 16px;
  border-bottom: 1px solid var(--pc-border-soft);
  align-items: center;
  transition: background .1s;
}
.enf-cmp-row:last-of-type { border-bottom: 0; }
.enf-cmp-row:hover { background: var(--pc-surface-2); }

.enf-cmp-label {
  text-align: center;
  font-size: .8rem;
  color: var(--pc-text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.enf-cmp-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pc-text);
}

.enf-cmp-row .enf-cmp-val:last-child { text-align: right; }

.enf-cmp-better {
  color: var(--pc-success) !important;
}
.enf-cmp-worse {
  color: var(--pc-text-soft) !important;
  font-weight: 400 !important;
}

.enf-cmp-streak {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--pc-surface-2);
  border-top: 1px solid var(--pc-border-soft);
  font-size: .88rem;
  color: var(--pc-text-soft);
  flex-wrap: wrap;
}

.enf-cmp-streak strong { color: var(--pc-primary); }

@media (max-width: 640px) {
  .enf-cmp-row,
  .enf-cmp-header {
    grid-template-columns: 1fr 1.2fr 1fr;
    padding: 8px 10px;
  }
  .enf-cmp-label { font-size: .7rem; }
  .enf-cmp-val   { font-size: .92rem; }
}


/* ===== Sorteo: campana push ===== */
.section-head--stack-mobile{
  gap:14px;
}

.sorteo-push-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid var(--pc-border, rgba(15,23,42,.16));
  background:var(--pc-surface, #fff);
  color:var(--pc-text, #162233);
  box-shadow:var(--pc-shadow-soft, 0 10px 24px rgba(15,23,42,.08));
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.sorteo-push-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(15,23,42,.12);
}

.sorteo-push-btn:disabled{
  opacity:.72;
  cursor:not-allowed;
  transform:none;
}

.sorteo-push-btn.is-active{
  border-color:rgba(16,185,129,.42);
  background:rgba(16,185,129,.10);
}

.sorteo-push-btn-icon{
  font-size:1.1rem;
  line-height:1;
}

.sorteo-push-panel{
  display:grid;
  gap:12px;
}

.sorteo-push-copy{
  display:grid;
  gap:4px;
  color:var(--pc-text, #162233);
}

.sorteo-push-copy strong{
  font-size:.95rem;
}

.sorteo-push-copy span{
  color:var(--pc-text-soft, #5b677a);
  line-height:1.45;
}

.sorteo-push-status{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:600;
}

.sorteo-push-status--muted{
  background:rgba(15,23,42,.05);
  border-color:rgba(15,23,42,.08);
  color:var(--pc-text-soft, #5b677a);
}

.sorteo-push-status--success{
  background:rgba(16,185,129,.12);
  border-color:rgba(16,185,129,.24);
  color:#0f766e;
}

.sorteo-push-status--warn{
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.24);
  color:#b45309;
}

.sorteo-push-status--error{
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.24);
  color:#b91c1c;
}

@media (max-width: 720px){
  .section-head--stack-mobile{
    align-items:stretch;
  }

  .sorteo-push-btn{
    width:100%;
  }
}


/* =========================================================
   PORRA
   ========================================================= */
.porra-pairs-table table{
  min-width:0;
  table-layout:auto;
}

.porra-pairs-table thead th,
.porra-pairs-table tbody td{
  vertical-align:middle;
}

.porra-pairs-table th:first-child,
.porra-pairs-table td:first-child{
  width:120px;
  text-align:left;
}

.porra-pairs-table th:nth-child(3),
.porra-pairs-table td:nth-child(3){
  width:140px;
  text-align:left;
}

.porra-pairs-table--select th:first-child,
.porra-pairs-table--select td:first-child{
  width:82px;
  text-align:center;
}

.porra-select-col{
  text-align:center !important;
}

.porra-select-cell input[type="radio"]{
  transform:scale(1.05);
}

.porra-pair-num{
  display:inline-block;
  font-weight:800;
  white-space:nowrap;
}

.porra-pair-players{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-weight:700;
  color:var(--pc-primary);
}

.porra-pair-sep{
  color:#7f90a5;
  font-weight:700;
}

.porra-state-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:90px;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  line-height:1;
  border:1px solid transparent;
}

.porra-state-badge--live{
  color:#0f4f8f;
  background:#edf5ff;
  border-color:#d7e7fb;
}

.porra-state-badge--winner{
  color:#9a6700;
  background:#fff6d6;
  border-color:#f2de9a;
}

@media (max-width: 640px){
  .porra-pairs-table th:first-child,
  .porra-pairs-table td:first-child{
    width:96px;
  }

  .porra-pairs-table th:nth-child(3),
  .porra-pairs-table td:nth-child(3){
    width:110px;
  }

  .porra-state-badge{
    min-width:72px;
    padding:6px 8px;
    font-size:12px;
  }
}

.porra-table{
  width:100%;
  min-width:0;
  table-layout:auto;
}

.porra-table th,
.porra-table td{
  white-space:normal;
}

.porra-table th:first-child,
.porra-table td:first-child{
  width:auto;
  text-align:left;
  color:inherit;
}

.porra-table th:nth-child(4),
.porra-table td:nth-child(4){
  width:auto;
  text-align:left;
}

.porra-table--summary{
  min-width:640px;
}

.porra-table--summary th,
.porra-table--summary td{
  text-align:center;
}

.porra-table--summary th:first-child,
.porra-table--summary td:first-child,
.porra-table--summary th:nth-child(4),
.porra-table--summary td:nth-child(4){
  text-align:center;
}

.porra-table--ranking{
  min-width:980px;
}

.porra-table--ranking th:nth-child(1),
.porra-table--ranking td:nth-child(1){
  width:74px;
  text-align:center;
}

.porra-table--ranking th:nth-child(3),
.porra-table--ranking td:nth-child(3),
.porra-table--ranking th:nth-child(5),
.porra-table--ranking td:nth-child(5),
.porra-table--ranking th:nth-child(6),
.porra-table--ranking td:nth-child(6),
.porra-table--ranking th:nth-child(7),
.porra-table--ranking td:nth-child(7),
.porra-table--ranking th:nth-child(8),
.porra-table--ranking td:nth-child(8),
.porra-table--ranking th:nth-child(9),
.porra-table--ranking td:nth-child(9){
  text-align:center;
}

.porra-table--ranking th:nth-child(4),
.porra-table--ranking td:nth-child(4){
  min-width:138px;
}

.porra-table--pairs{
  min-width:720px;
}

.porra-table--pairs th:nth-child(1),
.porra-table--pairs td:nth-child(1){
  width:88px;
  white-space:nowrap;
}

.porra-table--pairs th:nth-child(4),
.porra-table--pairs td:nth-child(4){
  width:132px;
}

.porra-table--pairs-select{
  min-width:760px;
}

.porra-table--pairs-select th:nth-child(1),
.porra-table--pairs-select td:nth-child(1){
  width:88px;
  text-align:center;
}

.porra-table--apuestas{
  min-width:980px;
}

.porra-table--apuestas th:nth-child(2),
.porra-table--apuestas td:nth-child(2),
.porra-table--apuestas th:nth-child(3),
.porra-table--apuestas td:nth-child(3),
.porra-table--apuestas th:nth-child(4),
.porra-table--apuestas td:nth-child(4),
.porra-table--apuestas th:nth-child(5),
.porra-table--apuestas td:nth-child(5){
  text-align:center;
}

.porra-table--palmares-summary{
  min-width:640px;
}

.porra-table--palmares-summary th,
.porra-table--palmares-summary td{
  text-align:center;
}

.porra-table--palmares-history{
  min-width:1080px;
}

.porra-table td strong{
  color:inherit;
}

/* =========================================================
   MI SORTEO — ¿Con quién juego?
   ========================================================= */
.mi-sorteo-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mi-sorteo-form { margin-top: 4px; }

.mi-sorteo-search-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mi-sorteo-result {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  border-radius: var(--pc-radius-sm);
  background: var(--pc-surface-2);
}

.mi-sorteo-result--pending  { border-left: 4px solid var(--pc-accent); }
.mi-sorteo-result--notfound { border-left: 4px solid var(--pc-text-soft); }

.mi-sorteo-result-icon  { font-size: 2rem; flex-shrink: 0; }
.mi-sorteo-result-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }

.mi-sorteo-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.mi-sorteo-result-header h2 { margin: 0; }

.mi-sorteo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mi-sorteo-card {
  border-radius: var(--pc-radius-sm);
  padding: 16px 14px;
  text-align: center;
  border: 1px solid var(--pc-border-soft);
  background: var(--pc-surface-2);
}

.mi-sorteo-card--partner { border-color: var(--pc-primary-2); background: rgba(31,111,139,.07); }
.mi-sorteo-card--pista   { border-color: var(--pc-accent);    background: rgba(244,180,0,.07); }
.mi-sorteo-card--rival   { border-color: var(--pc-border); }

.mi-sorteo-card-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--pc-text-soft);
  margin-bottom: 8px;
}

.mi-sorteo-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pc-text);
  line-height: 1.4;
}

.mi-sorteo-share { margin-top: 4px; }

/* ── Botón push (escritorio) ── */
.push-bell-btn {
  background: none;
  border: 1.5px solid var(--pc-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px 10px;
  line-height: 1;
  transition: background .15s;
  color: var(--pc-text);
  margin-left: .4rem;
}
.push-bell-btn:hover { background: var(--pc-border-soft); }

@media (max-width: 760px) {
  .mi-sorteo-search-row { flex-direction: column; }
  .mi-sorteo-search-row .btn { width: 100%; }
}

/* =========================================================
   RANKING — flechas de movimiento
   ========================================================= */
.mv-up {
  color: var(--pc-success);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
}
.mv-down {
  color: var(--pc-danger);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
}
.mv-same {
  color: var(--pc-text-soft);
  font-size: .85rem;
}
.text-center { text-align: center; }

/* =========================================================
   MI HISTORIAL
   ========================================================= */
.mi-historial-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mi-historial-nick {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pc-text);
}

.mi-historial-rank-badge {
  text-align: center;
  min-width: 64px;
}

.mi-historial-rank-pos {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pc-primary);
  line-height: 1;
}

.mi-historial-streak {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mi-historial-streak-icon { font-size: 2rem; }

.mi-historial-streak-num {
  font-size: 1.15rem;
  font-weight: 700;
}

.mi-historial-jornadas {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.mi-historial-jornada-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pc-border-soft);
}

.mi-historial-jornada-row:last-child { border-bottom: 0; }

.mi-historial-jornada-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.mi-historial-jno-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pc-primary-2);
  text-decoration: none;
}

.mi-historial-jno-link:hover { text-decoration: underline; }

.mi-historial-jornada-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mi-historial-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mi-hist-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
}

.mi-hist-badge--win   { background: rgba(25,135,84,.15); color: var(--pc-success); }
.mi-hist-badge--loss  { background: rgba(196,61,51,.12); color: var(--pc-danger); }
.mi-hist-badge--medal { background: rgba(244,180,0,.15); color: #b8860b; }
.mi-hist-badge--late  { background: rgba(196,61,51,.10); color: var(--pc-danger); }

.mi-historial-jornada-pts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 40px;
}

.mi-historial-jornada-pts strong { font-size: 1.1rem; }


/* =========================================================
   AJUSTE FINO NAV MÓVIL
   Evita que los estilos globales de button/btn rompan la barra
   ========================================================= */
@media (max-width: 900px) {
  .mobile-bottom-nav {
    background: var(--pc-surface) !important;
    background-image: none !important;
    border-radius: 0 !important;
    overflow: hidden;
  }

  .mobile-bottom-nav__item,
  .mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item:focus,
  .mobile-bottom-nav__item:active {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--pc-text-soft) !important;
    padding: 10px 4px 8px !important;
    transform: none !important;
    filter: none !important;
    text-decoration: none;
  }

  .mobile-bottom-nav__item.is-active,
  .mobile-bottom-nav__item[aria-current="page"] {
    background: var(--pc-border-soft) !important;
    color: var(--pc-primary) !important;
  }

  .mobile-bottom-nav__dot {
    background: var(--pc-primary-2) !important;
  }

  .mobile-drawer__close,
  .mobile-drawer__theme-btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--pc-text-soft) !important;
  }

  .mobile-drawer__close:hover,
  .mobile-drawer__theme-btn:hover,
  .mobile-drawer__close:focus,
  .mobile-drawer__theme-btn:focus,
  .mobile-drawer__close:active,
  .mobile-drawer__theme-btn:active {
    background: var(--pc-border-soft) !important;
    color: var(--pc-text) !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===== Liga Gintonic: admin extras ===== */
.grid-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;max-width:var(--pc-max);margin:0 auto 20px;}
.stat-number{font-size:2.4rem;font-weight:900;margin:.2rem 0;color:var(--pc-primary);}
.form-checks{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0 18px;}
.form-checks label{display:inline-flex;align-items:center;gap:8px;font-weight:700;}
.form-checks input[type="checkbox"]{width:auto;margin:0;}
.btn.secondary{background:#64748b;}
.btn.small{padding:6px 10px;border-radius:9px;font-size:.9rem;}

/* /assets/style.css · capa pública Gintonic sobre /includes/style.css */
.public-header { margin-bottom: 18px; }
.nav-brand { padding: 4px 6px 4px 2px; margin-right: 2px; }
.nav-brand:hover { transform: none; }
.nav-spacer { flex: 1 1 auto; }
.nav-link-admin { background: rgba(244,180,0,.16) !important; color: var(--pc-primary) !important; }

.container,
.gt-wrap {
  width: min(100%, var(--pc-max));
  margin: 0 auto 36px;
  padding: 0;
}

.gt-page { padding-bottom: 38px; }

.gt-hero,
.gt-hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 18px;
  padding: 24px;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(244,180,0,.22), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.94));
}

.gt-hero h1,
.gt-hero-card h1 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.gt-kicker,
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--pc-primary-2);
  opacity: .9;
  font-weight: 900;
}

.gt-muted { color: var(--pc-text-soft); }

.gt-actions,
.gt-pill-row,
.ranking-meta,
.jornada-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.gt-pill,
.ranking-meta span,
.jornada-summary span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,111,139,.10);
  border: 1px solid rgba(31,111,139,.16);
  color: var(--pc-primary);
  font-weight: 700;
}

.gt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.gt-feature-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-feature-card h2,
.gt-feature-card h3 { margin-top: 0; }
.gt-feature-card ul { margin: 4px 0 0; padding-left: 20px; }
.gt-feature-card li { margin: 6px 0; }

.table-scroll,
.gt-table-scroll { overflow-x: auto; }

.season-selector,
.filters,
.gt-search-form { color: var(--pc-text); }

.season-selector label,
.filters label,
.gt-field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-primary);
}

.gt-btn { border-radius: 999px; }
.gt-btn-secondary { background: #eef3f8; color: var(--pc-primary); border: 1px solid var(--pc-border); box-shadow: none; }

.gt-alert,
.gt-card { background: rgba(255,255,255,.96); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); }
.gt-card { padding: 18px; margin-bottom: 18px; }
.gt-alert { padding: 14px 16px; margin-bottom: 18px; }
.gt-alert-warn { border-color: rgba(244,180,0,.35); background: rgba(244,180,0,.10); color: #765400; }

.gt-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.gt-stat { border: 1px solid var(--pc-border-soft); border-radius: 16px; padding: 13px; background: var(--pc-surface-2); }
.gt-stat span { display:block; color: var(--pc-text-soft); font-size: .78rem; font-weight: 800; }
.gt-stat strong { display:block; margin-top: 4px; color: var(--pc-primary); font-size: 1.25rem; }

@media (max-width: 760px) {
  body { padding-left: 10px; padding-right: 10px; }
  .main-nav { align-items: stretch; }
  .nav-brand { width: 100%; }
  .nav-sep, .nav-spacer { display: none; }
  .main-nav .nav-link { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .gt-hero, .gt-hero-card { display: block; padding: 18px; }
  .gt-actions { margin-top: 14px; }
}

.ranking-page {
    max-width: 1280px;
}

.header a.active {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ranking-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.ranking-hero h1 {
    margin: 4px 0 8px;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 800;
    opacity: .7;
}

.season-selector {
    min-width: 260px;
    display: grid;
    gap: 6px;
}

.season-selector label {
    font-weight: 800;
    font-size: 13px;
}

.season-selector select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(120, 120, 120, .35);
    background: var(--card-bg, #fff);
    color: inherit;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.ranking-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(80, 180, 70, .12);
    border: 1px solid rgba(80, 180, 70, .25);
}

.ranking-card {
    padding: 0;
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
    font-size: 14px;
}

.ranking-table th,
.ranking-table td {
    padding: 7px 8px;
    border-right: 1px solid rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.65);
    white-space: nowrap;
}

.ranking-table thead th {
    background: #f2f7f0;
    color: #111;
    text-transform: uppercase;
    font-size: 12px;
    text-align: center;
}

.ranking-table .last-col,
.ranking-table .total-col,
.ranking-table .total-cell,
.ranking-table .strong-cell {
    background: #6fd13f;
    color: #fff;
}

.ranking-table tbody td {
    background: #8e8e8e;
    color: #fff;
    font-weight: 700;
}

.ranking-table tbody tr:nth-child(even) td {
    background: #9a9a9a;
}

.ranking-table .pos-col {
    width: 48px;
    background: transparent;
    color: inherit;
    font-weight: 900;
    text-align: left;
    border-right: 2px solid rgba(0,0,0,.25);
}

.ranking-table tbody .pos-col {
    color: #111;
}

.ranking-table .name-col {
    text-align: left;
    min-width: 170px;
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 2px 0 0 rgba(0,0,0,.18);
}

.ranking-table thead .name-col {
    z-index: 2;
}

.ranking-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ranking-table .total-cell,
.ranking-table tbody .strong-cell {
    background: #55c930;
    color: #fff;
}

.ranking-table .avg-side {
    background: #f7f7f7;
    color: #111;
}

.ranking-table .diff {
    background: #5acb31;
    color: #fff;
}

.ranking-table .diff.negative {
    background: #77c747;
}

.ranking-table .diff.positive {
    background: #43bd26;
}

body[data-theme="dark"] .ranking-table thead th,
.theme-dark .ranking-table thead th {
    background: #1d2b1c;
    color: #f3f3f3;
}

body[data-theme="dark"] .ranking-table tbody .pos-col,
.theme-dark .ranking-table tbody .pos-col {
    color: #f3f3f3;
}

@media (max-width: 760px) {
    .ranking-hero {
        display: block;
    }

    .season-selector {
        margin-top: 16px;
        min-width: 0;
    }

    .ranking-table {
        font-size: 13px;
    }
}

.jornada-page { padding-bottom: 40px; }
.jornada-hero { display:flex; gap:22px; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; }
.jornada-hero h1 { margin:4px 0 6px; font-size:clamp(28px,4vw,44px); }
.eyebrow { margin:0; text-transform:uppercase; letter-spacing:.12em; font-size:12px; opacity:.72; font-weight:800; }
.filters { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.filters label { display:flex; flex-direction:column; gap:6px; font-weight:700; font-size:13px; }
.filters select { min-width:210px; border:1px solid rgba(120,120,120,.35); border-radius:12px; padding:10px 12px; background:var(--card-bg, #fff); color:inherit; }
.jornada-summary { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.jornada-summary span { display:inline-flex; gap:5px; align-items:center; padding:9px 12px; border-radius:999px; background:rgba(45,160,80,.12); border:1px solid rgba(45,160,80,.18); }
.table-card { margin-top:14px; }
.table-scroll { overflow:auto; }
.jornada-table { width:100%; border-collapse:separate; border-spacing:0; min-width:980px; }
.jornada-table th { text-transform:uppercase; font-size:12px; letter-spacing:.06em; text-align:left; padding:10px; background:rgba(45,160,80,.14); position:sticky; top:0; }
.jornada-table td { padding:10px; border-bottom:1px solid rgba(120,120,120,.18); vertical-align:top; }
.jornada-table .num { font-weight:800; white-space:nowrap; }
.jornada-table .team { font-weight:800; }
.jornada-table .score { font-weight:900; white-space:nowrap; }
.winner { color:#127a2a; }
.status { display:inline-flex; padding:4px 8px; border-radius:999px; background:rgba(120,120,120,.15); font-weight:800; font-size:12px; }
.status-jugado { background:rgba(45,160,80,.16); color:#127a2a; }
.status-retirada, .status-no_finalizado, .status-empate_por_tiempo, .status-empate_pactado { background:rgba(255,176,0,.18); color:#8a5b00; }
.status-cancelado { background:rgba(220,50,50,.15); color:#a02222; }
.match-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(310px,1fr)); gap:16px; margin-top:18px; }
.match-card { display:flex; flex-direction:column; gap:14px; }
.match-head { display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px solid rgba(120,120,120,.18); padding-bottom:10px; }
.match-head strong { font-size:18px; }
.match-head span { font-weight:900; }
.teams { display:grid; gap:12px; }
.team-box { border:1px solid rgba(120,120,120,.20); border-radius:16px; padding:12px; background:rgba(120,120,120,.05); }
.team-box.winner { border-color:rgba(45,160,80,.48); background:rgba(45,160,80,.10); }
.team-title { font-size:12px; text-transform:uppercase; letter-spacing:.08em; opacity:.74; font-weight:900; margin-bottom:8px; }
.player-line { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:5px 0; font-weight:800; }
.player-line strong { background:rgba(45,160,80,.14); padding:3px 8px; border-radius:999px; }
.sub-note { font-size:12px; opacity:.78; margin:-2px 0 4px; }
.match-note { border-top:1px solid rgba(120,120,120,.18); padding-top:10px; font-size:13px; opacity:.86; }
@media (max-width: 720px) {
  .jornada-hero { align-items:stretch; }
  .filters, .filters label, .filters select { width:100%; min-width:0; }
}

body.gintonic-page {
    background: transparent;
    color: var(--pc-text);
}

.gt-wrap {
    width: min(1180px, calc(100% - 28px));
    margin: 24px auto 48px;
}

.gt-hero-card,
.gt-card,
.gt-alert {
    background: var(--pc-surface);
    border: 1px solid var(--pc-border);
    border-radius: 22px;
    box-shadow: var(--pc-shadow);
}

.gt-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 26px;
    margin-bottom: 18px;
    background: radial-gradient(500px 180px at 100% 0%, rgba(244,180,0,.22), transparent 70%), linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.94));
}

.gt-hero-card h1,
.gt-card h2 {
    margin: 0;
    line-height: 1.1;
}

.gt-hero-card p,
.gt-card p { margin-bottom: 0; }

.gt-kicker {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pc-primary-2);
}

.gt-muted { color: var(--pc-text-soft); }

.gt-card { padding: 22px; margin-bottom: 18px; }
.gt-alert { padding: 16px 18px; margin-bottom: 18px; }
.gt-alert-warn { border-color: rgba(179,59,59,.35); color: var(--pc-danger); }

.gt-btn {
    border: 0;
    border-radius: 999px;
    background: var(--pc-primary-2);
    color: #fff;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.gt-btn:hover { background: var(--pc-primary); color: #fff; }
.gt-btn-secondary { background: rgba(23,107,67,.12); color: var(--pc-primary); }
.gt-btn-secondary:hover { background: rgba(23,107,67,.20); color: var(--pc-primary); }

.gt-search-form {
    display: grid;
    grid-template-columns: 240px minmax(260px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.gt-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
    color: var(--pc-text);
}
.gt-field input,
.gt-field select {
    width: 100%;
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    padding: 12px 13px;
    background: #fff;
    color: var(--pc-text);
    font: inherit;
}

.gt-player-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2.4fr;
    gap: 20px;
    align-items: start;
}

.gt-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 10px;
}
.gt-stat {
    border: 1px solid var(--pc-border);
    border-radius: 16px;
    padding: 13px;
    background: var(--pc-surface-2);
}
.gt-stat span {
    display: block;
    font-size: .78rem;
    color: var(--pc-text-soft);
    font-weight: 700;
}
.gt-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 1.25rem;
}

.gt-table-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.gt-table-scroll { overflow-x: auto; }
.gt-player-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1060px;
}
.gt-player-table th,
.gt-player-table td {
    padding: 12px 11px;
    border-bottom: 1px solid var(--pc-border);
    text-align: left;
    vertical-align: top;
}
.gt-player-table th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pc-text-soft);
    background: rgba(20,32,25,.04);
    position: sticky;
    top: 0;
}
.gt-player-table a { color: var(--pc-primary); font-weight: 800; text-decoration: none; }
.gt-player-table a:hover { text-decoration: underline; }
.gt-score { font-weight: 900; white-space: nowrap; }

.gt-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
}
.gt-badge.win { background: var(--pc-success); }
.gt-badge.loss { background: var(--pc-danger); }
.gt-badge.neutral { background: var(--pc-text-soft); }

.gt-empty { text-align: center; padding: 34px; }
small { color: var(--pc-text-soft); }

@media (max-width: 820px) {
    .gt-hero-card,
    .gt-player-summary,
    .gt-table-head { display: block; }
    .gt-hero-card .gt-btn { display: inline-flex; margin-top: 16px; }
    .gt-search-form { grid-template-columns: 1fr; }
    .gt-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
    .gt-player-table { min-width: 0; }
    .gt-player-table thead { display: none; }
    .gt-player-table tr {
        display: block;
        border: 1px solid var(--pc-border);
        border-radius: 18px;
        margin-bottom: 12px;
        padding: 6px 0;
        background: #fff;
    }
    .gt-player-table td {
        display: grid;
        grid-template-columns: 116px 1fr;
        gap: 8px;
        border-bottom: 0;
        padding: 8px 12px;
    }
    .gt-player-table td::before {
        content: attr(data-label);
        color: var(--pc-text-soft);
        font-weight: 800;
    }
}

.fase-final-page {
    padding-top: 1.4rem;
    padding-bottom: 2.5rem;
}

.fase-final-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: flex-start;
    overflow: hidden;
}

.fase-final-hero h1,
.ff-bracket-card h2,
.ff-grid h2 {
    margin: .15rem 0 .45rem;
}

.ff-hero-meta,
.ff-reserve-list {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ff-controls-card {
    margin-top: 1rem;
}

.ff-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.ff-controls label {
    display: grid;
    gap: .35rem;
    min-width: 220px;
    color: var(--muted, #64748b);
    font-weight: 700;
}

.ff-controls select {
    width: 100%;
    border: 1px solid var(--border, rgba(148,163,184,.35));
    border-radius: 14px;
    padding: .75rem .85rem;
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
    font-weight: 700;
}

.ff-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 1rem;
    margin-top: 1rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ff-table th,
.ff-table td {
    white-space: nowrap;
}

.seed-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    color: var(--accent, #15803d);
    font-weight: 900;
}

.muted-pill {
    background: rgba(148, 163, 184, .16);
    color: var(--muted, #64748b);
}

.badge-danger-soft {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

.ff-unavailable-list {
    display: grid;
    gap: .7rem;
}

.ff-unavailable-item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .75rem;
    border-radius: 16px;
    border: 1px solid var(--border, rgba(148,163,184,.25));
    background: rgba(148, 163, 184, .08);
}

.ff-unavailable-item small {
    display: block;
    color: var(--muted, #64748b);
    margin-top: .15rem;
}

.ff-bracket-card,
.alert-card {
    margin-top: 1rem;
}

.alert-card {
    border-color: rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .08);
}

.ff-bracket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ff-match-card {
    border: 1px solid var(--border, rgba(148,163,184,.28));
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(148,163,184,.08));
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.ff-match-head {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .8rem;
    color: var(--muted, #64748b);
    font-weight: 800;
}

.ff-player-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    padding: .65rem .7rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, .10);
}

.ff-player-line strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-player-line small {
    color: var(--muted, #64748b);
    font-weight: 800;
}

.ff-versus {
    text-align: center;
    color: var(--muted, #64748b);
    font-weight: 900;
    font-size: .78rem;
    text-transform: uppercase;
    margin: .35rem 0;
}

@media (max-width: 860px) {
    .fase-final-hero,
    .section-title-row {
        flex-direction: column;
    }

    .ff-hero-meta {
        justify-content: flex-start;
    }

    .ff-grid,
    .ff-bracket-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   GINTONIC - NAV, PUBLIC/ADMIN COMMON OVERRIDES
   ========================================================= */
:root{
  --gt-bg:#f4f8f7; --gt-bg-soft:#eaf2ef; --gt-card:#ffffff; --gt-card-soft:#f8fbfa;
  --gt-text:#102235; --gt-muted:#617184; --gt-line:rgba(16,34,53,.13);
  --gt-primary:#08273b; --gt-primary-2:#0b4249; --gt-accent:#a9e818; --gt-accent-2:#d9ff58;
  --gt-shadow:0 18px 45px rgba(6,31,47,.12); --gt-radius:22px;
}
body.gintonic-page, body.gt-page, body.admin-page{background:radial-gradient(circle at top left, rgba(169,232,24,.14), transparent 34rem), linear-gradient(180deg, var(--gt-bg), #fff 55%); color:var(--gt-text);}
.container{max-width:1180px;margin:0 auto;padding:22px 16px 38px;}
.card{background:linear-gradient(180deg,var(--gt-card),var(--gt-card-soft));border:1px solid var(--gt-line);border-radius:var(--gt-radius);box-shadow:var(--gt-shadow);}
.site-nav-outer{max-width:1240px;margin:18px auto 8px;padding:0 16px;position:sticky;top:8px;z-index:50;}
.site-nav-wrap{background:linear-gradient(135deg,var(--gt-primary),var(--gt-primary-2));border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 14px 32px rgba(2,22,35,.22);}
.main-nav{display:flex;align-items:center;gap:6px;min-height:70px;padding:0 18px;}
.nav-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;margin-right:12px;padding-right:18px;border-right:1px solid rgba(255,255,255,.16);}
.nav-logo{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(0,0,0,.28));}
.nav-brand-title{display:block;color:#fff;font-weight:900;letter-spacing:.22em;font-size:1.05rem;line-height:1;}
.nav-brand-subtitle{display:block;color:var(--gt-accent-2);font-weight:800;letter-spacing:.28em;font-size:.68rem;margin-top:5px;}
.nav-link,.nav-trigger{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:0 12px;border:0;background:transparent;color:rgba(255,255,255,.92);font-weight:800;font-size:.88rem;text-decoration:none;cursor:pointer;border-radius:12px;white-space:nowrap;}
.nav-link:hover,.nav-trigger:hover,.nav-link.is-active,.nav-trigger.is-active{color:#fff;background:rgba(255,255,255,.08);}
.nav-link.is-active:after,.nav-trigger.is-active:after,.nav-item:hover>.nav-trigger:after{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:3px;background:var(--gt-accent);border-radius:999px;}
.nav-item{position:relative;}
.nav-caret{font-size:.66rem;color:var(--gt-accent-2);}
.nav-dropdown{position:absolute;left:0;top:calc(100% + 7px);min-width:220px;background:linear-gradient(145deg,#09263a,#0e4048);border:1px solid rgba(255,255,255,.14);border-radius:13px;padding:10px;box-shadow:0 18px 34px rgba(0,0,0,.26);display:none;}
.nav-item:hover>.nav-dropdown,.nav-item.desktop-open>.nav-dropdown{display:block;}
.nav-dropdown a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;color:#f4fbff;text-decoration:none;font-weight:750;font-size:.91rem;}
.nav-dropdown a:hover,.nav-dropdown a.active-sub{background:rgba(169,232,24,.12);color:#fff;}
.nav-spacer{flex:1;}.nav-icon-link{font-size:1.25rem}.nav-link-admin{border:1px solid rgba(255,255,255,.18)}
.mobile-nav-toggle{display:none;margin:10px 12px;padding:10px 14px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-weight:800;}
.site-footer{max-width:1180px;margin:8px auto 28px;padding:0 16px}.site-footer-card{padding:18px 20px;text-align:center}.site-footer-title{font-weight:900;margin:0}.site-footer-text{color:var(--gt-muted)}
.theme-chip{cursor:pointer}.btn,.btn-primary,.btn-secondary{border-radius:999px;font-weight:900;text-decoration:none;}
@media(max-width:980px){.mobile-nav-toggle{display:inline-flex}.main-nav{display:none;align-items:stretch;flex-direction:column;padding:8px 12px 14px}.main-nav.is-open{display:flex}.nav-brand{border-right:0;border-bottom:1px solid rgba(255,255,255,.14);padding:8px 0 14px}.nav-link,.nav-trigger{width:100%;justify-content:space-between}.nav-spacer{display:none}.nav-dropdown{position:static;box-shadow:none;margin:0 0 8px 12px;min-width:0;background:rgba(0,0,0,.16)}.nav-item.open>.nav-dropdown{display:block}.nav-item:hover>.nav-dropdown{display:none}.nav-item.open:hover>.nav-dropdown{display:block}}

/* Public tone */
:root{--gt-bg:#f3f8f6;--gt-bg-soft:#e9f4ef;--gt-primary:#071f32;--gt-primary-2:#0b4650;--gt-accent:#a9e818;}


/* Migrado desde cuadro_final.php */
.page-container{
    max-width:1400px;
    margin:30px auto;
    padding:0 20px;
}

.page-header{
    margin-bottom:25px;
}

.page-header h1{
    color:#fff;
    font-size:38px;
    margin-bottom:10px;
    font-weight:800;
}

.page-header p{
    color:#9fb3c8;
    font-size:16px;
}

.cuadro-final-card{
    background:linear-gradient(180deg,#09162b 0%, #07101f 100%);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:18px;
    padding:25px;
    box-shadow:0 10px 35px rgba(0,0,0,0.35);
}

.cuadro-final-actions{
    margin-bottom:20px;
    text-align:right;
}

.btn-primary{
    display:inline-block;
    background:#f5b400;
    color:#111;
    padding:12px 18px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
    transition:0.2s;
}

.btn-primary:hover{
    transform:translateY(-2px);
    opacity:0.92;
}

.cuadro-final-image{
    text-align:center;
}

.img-cuadro-final{
    width:100%;
    max-width:1600px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 10px 30px rgba(0,0,0,0.45);
}

@media(max-width:768px){

    .page-header h1{
        font-size:30px;
    }

    .cuadro-final-card{
        padding:15px;
    }

    .btn-primary{
        width:100%;
        text-align:center;
    }
}

/* =========================================================
   FIX 20260511 - Header Gintonic
   - Sin hueco entre menu y desplegable
   - Header en una sola caja visual
   - Fondo acorde al tema mediante variables --gt-*
   ========================================================= */
html{
  background: var(--gt-page-bg, radial-gradient(circle at top left, rgba(169,232,24,.14), transparent 34rem), linear-gradient(180deg, var(--gt-bg), #fff 55%)) !important;
}
body.gintonic-page,
body.gt-page,
body.public-page{
  background: var(--gt-page-bg, radial-gradient(circle at top left, rgba(169,232,24,.14), transparent 34rem), linear-gradient(180deg, var(--gt-bg), #fff 55%)) !important;
  color: var(--gt-text) !important;
}
.site-nav-outer{
  width:min(100%, 1240px) !important;
  max-width:1240px !important;
  margin:18px auto 14px !important;
  padding:0 16px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.site-nav-wrap{
  width:100% !important;
  max-width:none !important;
  margin:0 auto !important;
  padding:0 !important;
  background:linear-gradient(135deg,var(--gt-primary),var(--gt-primary-2)) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:16px !important;
  box-shadow:0 14px 32px rgba(2,22,35,.22) !important;
  overflow:visible !important;
}
.main-nav{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:16px !important;
  padding:0 18px !important;
  min-height:70px !important;
  overflow:visible !important;
}
.nav-item{position:relative !important;}
.nav-dropdown{
  top:100% !important;
  margin-top:0 !important;
  padding-top:10px !important;
  z-index:9999 !important;
  display:none;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.desktop-open > .nav-dropdown{
  display:block !important;
}
.nav-item:hover > .nav-trigger,
.nav-item:focus-within > .nav-trigger{
  color:#fff !important;
  background:rgba(255,255,255,.08) !important;
}
.mobile-nav-toggle{
  box-shadow:none !important;
}
@media(max-width:980px){
  .site-nav-wrap{padding:8px !important;}
  .main-nav{padding:8px 10px 12px !important;min-height:0 !important;}
  .nav-dropdown{position:static !important;padding-top:8px !important;margin:0 0 8px 12px !important;}
  .nav-item:hover > .nav-dropdown{display:none !important;}
  .nav-item.open > .nav-dropdown,
  .nav-item.open:hover > .nav-dropdown{display:block !important;}
}

/* =========================================================
   FIX 20260511 - Header no fijo al hacer scroll
   El menú público debe desplazarse con la página y no tapar contenido.
   ========================================================= */
.site-nav-outer,
.site-header-shell,
.site-header-inner,
.site-nav-wrap,
.main-nav{
  position: static !important;
  top: auto !important;
}

/* Mantener los desplegables anclados a cada item del menú */
.main-nav .nav-item,
.nav-item{
  position: relative !important;
}

@media(max-width:980px){
  .site-nav-outer,
  .site-header-shell,
  .site-header-inner,
  .site-nav-wrap,
  .main-nav{
    position: static !important;
    top: auto !important;
  }
}

/* =========================================================
   FIX 20260511 - Submenús por encima del contenido
   El header NO queda fijo, pero conserva una capa superior
   para que los desplegables no se oculten bajo hero/cards/tablas.
   ========================================================= */
.site-nav-outer,
.public-header{
  position: relative !important;
  z-index: 5000 !important;
}
.site-nav-wrap,
.main-nav{
  position: relative !important;
  z-index: 5001 !important;
  overflow: visible !important;
}
.nav-item{
  position: relative !important;
  z-index: 5002 !important;
}
.nav-dropdown{
  position: absolute !important;
  z-index: 6000 !important;
}
main,
.page-wrap,
.gt-page-wrap,
.page-shell,
.hero,
.gt-hero,
.card,
.gt-card,
.ranking-card,
.table-card{
  position: relative;
  z-index: 1;
}
@media(max-width:980px){
  .nav-dropdown{
    position: static !important;
    z-index: auto !important;
  }
}



/* =========================================================
   1vs1.php - Comparativa directa entre jugadores
   Añadir al final de /includes/public.css
   ========================================================= */
.gt-compare-page {
    display: grid;
    gap: 1.15rem;
}

.gt-compare-hero {
    align-items: center;
}

.gt-compare-form {
    display: grid;
    grid-template-columns: minmax(170px, .7fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: .9rem;
    align-items: end;
}

.gt-h2h-title-card h2 {
    margin: .2rem 0 .25rem;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.gt-h2h-title-card h2 span {
    color: var(--gt-accent, #a7f05a);
    font-size: .75em;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gt-h2h-scoreboard {
    display: grid;
    grid-template-columns: 1fr .9fr 1fr;
    gap: 1rem;
}

.gt-h2h-player-card,
.gt-h2h-center-card {
    text-align: center;
}

.gt-h2h-player-card h3 {
    margin: .2rem 0 .5rem;
    font-size: 1.35rem;
}

.gt-h2h-big,
.gt-h2h-total {
    font-weight: 900;
    line-height: 1;
    color: var(--gt-accent, #a7f05a);
    text-shadow: 0 10px 30px rgba(167, 240, 90, .16);
}

.gt-h2h-big {
    font-size: clamp(3rem, 7vw, 5rem);
}

.gt-h2h-total {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    margin: .35rem 0 .75rem;
}

.gt-h2h-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
}

.gt-h2h-mini-grid span,
.gt-h2h-stats-grid article {
    border: 1px solid var(--gt-border, rgba(255,255,255,.12));
    border-radius: 16px;
    padding: .75rem;
    background: var(--gt-soft, rgba(255,255,255,.055));
}

.gt-h2h-mini-grid strong {
    display: block;
    font-size: 1.25rem;
}

.gt-h2h-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gt-h2h-stats-grid article span {
    display: block;
    color: var(--gt-muted, rgba(255,255,255,.68));
    font-size: .85rem;
    margin-bottom: .35rem;
}

.gt-h2h-stats-grid article strong {
    display: block;
    font-size: 1.55rem;
}

.gt-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.gt-h2h-table th,
.gt-h2h-table td {
    white-space: nowrap;
}

.gt-h2h-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    border-radius: 999px;
    padding: .28rem .65rem;
    font-weight: 800;
    font-size: .82rem;
    border: 1px solid var(--gt-border, rgba(255,255,255,.14));
}

.gt-h2h-badge.is-win {
    background: rgba(167, 240, 90, .16);
    color: var(--gt-accent, #a7f05a);
}

.gt-h2h-badge.is-loss {
    background: rgba(255, 93, 93, .15);
    color: #ffb1b1;
}

.gt-h2h-badge.is-draw {
    background: rgba(255, 210, 92, .15);
    color: #ffe39a;
}

@media (max-width: 980px) {
    .gt-compare-form,
    .gt-h2h-scoreboard,
    .gt-h2h-stats-grid {
        grid-template-columns: 1fr;
    }

    .gt-section-head {
        display: block;
    }
}


/* ================================
   Estado de forma público
   Página: /estado_forma.php
   ================================ */
.gt-form-page {
    display: grid;
    gap: 1.15rem;
}

.gt-form-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.gt-form-filter-card {
    padding: 1rem;
}

.gt-form-filter {
    display: flex;
    align-items: end;
    gap: .85rem;
    flex-wrap: wrap;
}

.gt-form-filter .gt-field {
    min-width: 220px;
}

.gt-form-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.gt-form-summary-grid .gt-card {
    padding: 1rem;
}

.gt-form-summary-grid span {
    display: block;
    color: var(--gt-muted, #6b7280);
    font-size: .86rem;
    margin-bottom: .25rem;
}

.gt-form-summary-grid strong {
    font-size: 1.15rem;
}

.gt-form-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gt-form-rules {
    margin: 0;
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.gt-form-rules li {
    border: 1px solid var(--gt-border, rgba(148, 163, 184, .28));
    background: var(--gt-soft, rgba(255,255,255,.62));
    border-radius: 999px;
    padding: .5rem .75rem;
    font-size: .9rem;
}

.gt-form-ranking-card {
    overflow: visible;
}

.gt-form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
}

.gt-form-table th,
.gt-form-table td {
    padding: .75rem .7rem;
    border-bottom: 1px solid var(--gt-border, rgba(148, 163, 184, .25));
    text-align: right;
    white-space: nowrap;
}

.gt-form-table th:first-child,
.gt-form-table td:first-child,
.gt-form-table th:nth-child(2),
.gt-form-table td:nth-child(2) {
    text-align: left;
}

.gt-form-table thead th {
    color: var(--gt-muted, #64748b);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--gt-table-head, rgba(15, 23, 42, .04));
}

.gt-form-table tbody tr:hover {
    background: var(--gt-row-hover, rgba(132, 204, 22, .08));
}

.gt-form-table tbody tr.is-first,
.gt-form-table tbody tr.is-second,
.gt-form-table tbody tr.is-third {
    background: linear-gradient(90deg, rgba(132,204,22,.13), transparent 62%);
}

.gt-pos-col {
    width: 70px;
}

.gt-form-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    border-radius: 999px;
    padding: .3rem .55rem;
    font-weight: 800;
    background: var(--gt-accent-soft, rgba(132, 204, 22, .16));
    color: var(--gt-accent-strong, #3f6212);
}

.gt-form-player {
    min-width: 190px;
}

.gt-form-player strong,
.gt-form-player span {
    display: block;
}

.gt-form-player span {
    color: var(--gt-muted, #64748b);
    font-size: .82rem;
    margin-top: .12rem;
}

.gt-diff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    border-radius: 999px;
    padding: .18rem .5rem;
    font-weight: 800;
}

.gt-diff.is-positive {
    background: rgba(34, 197, 94, .13);
    color: #15803d;
}

.gt-diff.is-negative {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

@media (max-width: 800px) {
    .gt-form-hero,
    .gt-form-info-card {
        align-items: stretch;
        flex-direction: column;
    }

    .gt-form-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gt-form-filter {
        align-items: stretch;
    }

    .gt-form-filter .gt-field,
    .gt-form-filter .gt-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .gt-form-summary-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   Rendimiento individual Gintonic
   Añadir al final de /includes/public.css
   ========================================================= */
.gt-player-performance .gt-performance-hero,
.gt-player-performance .gt-player-head-card,
.gt-player-performance .gt-performance-balance,
.gt-player-performance .gt-chart-card,
.gt-player-performance .gt-streak-card,
.gt-player-performance .gt-history-card {
  position: relative;
}

.gt-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.gt-player-head-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gt-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(150, 220, 40, .42);
  background: rgba(150, 220, 40, .13);
  color: var(--pc-primary);
  font-weight: 900;
  white-space: nowrap;
}

.gt-performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.gt-perf-stat {
  margin-bottom: 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gt-perf-stat span {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pc-text-soft);
  font-weight: 800;
}

.gt-perf-stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1;
  color: var(--pc-primary);
}

.gt-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gt-balance-panel {
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.52);
}

.gt-balance-panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.gt-balance-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--pc-text);
}

.gt-balance-panel li + li { margin-top: 7px; }

.gt-diff {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 900;
}
.gt-diff.is-positive { background: rgba(25,135,84,.14); color: var(--pc-success); }
.gt-diff.is-negative { background: rgba(196,61,51,.14); color: var(--pc-danger); }

.gt-svg-chart-wrap {
  width: 100%;
  min-height: 245px;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.22));
  overflow: hidden;
  padding: 8px;
}

.gt-svg-chart {
  width: 100%;
  height: 245px;
  display: block;
}

.gt-svg-chart .grid {
  stroke: rgba(95,111,130,.22);
  stroke-width: 1;
}
.gt-svg-chart .axis {
  stroke: rgba(95,111,130,.42);
  stroke-width: 1.4;
}
.gt-svg-chart .line {
  fill: none;
  stroke: var(--pc-primary-2);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gt-svg-chart .point {
  fill: var(--pc-accent);
  stroke: var(--pc-primary);
  stroke-width: 2;
}

.gt-chart-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--pc-text-soft);
  font-size: .82rem;
}
.gt-chart-labels span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.48);
  border: 1px solid var(--pc-border-soft);
}

.gt-streak-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gt-streak-grid article {
  text-align: center;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  padding: 16px 12px;
  background: rgba(255,255,255,.52);
}

.gt-streak-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--pc-primary);
}
.gt-streak-grid strong.is-good { color: var(--pc-success); }
.gt-streak-grid strong.is-bad { color: var(--pc-danger); }
.gt-streak-grid strong.is-neutral { color: var(--pc-accent); }
.gt-streak-grid span {
  display: block;
  margin-top: 7px;
  color: var(--pc-text-soft);
  font-size: .86rem;
  font-weight: 700;
}

.gt-last-results {
  margin-top: 16px;
}
.gt-last-results p {
  margin: 0 0 9px;
  color: var(--pc-text-soft);
  font-weight: 800;
}
.gt-last-results small { font-weight: 500; }
.gt-last-results > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gt-result-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15,23,42,.14);
}
.gt-result-dot.win { background: var(--pc-success); }
.gt-result-dot.loss { background: var(--pc-danger); }
.gt-result-dot.draw { background: var(--pc-accent); color: #152033; }

.gt-performance-table {
  min-width: 1060px;
}
.gt-performance-table th,
.gt-performance-table td {
  vertical-align: top;
}
.gt-performance-table .gt-score {
  font-weight: 900;
  color: var(--pc-primary);
  white-space: nowrap;
}
.gt-badge.draw {
  background: var(--pc-accent);
  color: #152033;
}

@media (max-width: 900px) {
  .gt-player-head-card,
  .gt-actions-row {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .gt-player-head-card { flex-direction: column; }
  .gt-performance-grid,
  .gt-balance-grid,
  .gt-streak-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gt-performance-grid,
  .gt-balance-grid,
  .gt-streak-grid {
    grid-template-columns: 1fr;
  }
  .gt-svg-chart { height: 210px; }
  .gt-svg-chart-wrap { min-height: 210px; }
}
/* ###############################################################*/







/* =========================================================
   GINTONIC MOBILE FINAL RESET - 20260512
   Sustituye todos los parches móviles anteriores.
   Objetivo:
   - Sin barra vacía arriba en móvil.
   - Botón de menú fijo abajo.
   - Panel lateral derecho con scroll interno.
   - Submenús siempre visibles tipo app/PádelCorral.
   - Evita que tablas/gráficas ensanchen la página.
   ========================================================= */
@media (max-width: 980px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.gintonic-page,
  body.gt-page,
  body.public-page,
  body.admin-page {
    padding-top: 18px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* El header de escritorio no ocupa alto en móvil */
  body.gintonic-page .site-nav-outer,
  body.gintonic-page .site-nav-outer.public-header,
  body.gintonic-page .site-nav-outer.admin-header {
    width: 0 !important;
    max-width: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 2147483000 !important;
  }

  body.gintonic-page .site-nav-wrap {
    width: 0 !important;
    max-width: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: static !important;
  }

  /* Botón inferior fijo */
  body.gintonic-page #mobileNavToggle.mobile-nav-toggle,
  body.gintonic-page .mobile-nav-toggle {
    display: flex !important;
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    z-index: 2147483646 !important;
    width: auto !important;
    max-width: none !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, var(--gt-primary, #062236), var(--gt-primary-2, #087d85)) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: .95rem !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: 0 18px 38px rgba(0,0,0,.28) !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  body.gintonic-page #mobileNavToggle.mobile-nav-toggle::before {
    content: "☰";
    font-size: 1.05rem;
    line-height: 1;
  }

  /* Panel lateral derecho */
  body.gintonic-page #mainNav.main-nav,
  body.gintonic-page .main-nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 2147483645 !important;
    width: min(86vw, 340px) !important;
    max-width: 340px !important;
    min-width: 278px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 14px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    border: 0 !important;
    border-left: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 18px 0 0 18px !important;
    background: linear-gradient(180deg, #071f32 0%, #062438 48%, #041827 100%) !important;
    box-shadow: -20px 0 42px rgba(0,0,0,.34) !important;
    transform: translateX(calc(100% + 18px)) !important;
    transition: transform .22s ease !important;
    pointer-events: auto !important;
  }

  body.gintonic-page #mainNav.main-nav.is-open,
  body.gintonic-page .main-nav.is-open {
    transform: translateX(0) !important;
  }

  /* Marca */
  body.gintonic-page #mainNav .nav-brand,
  body.gintonic-page .main-nav .nav-brand {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    background: transparent !important;
    text-decoration: none !important;
  }

  body.gintonic-page #mainNav .nav-logo,
  body.gintonic-page .main-nav .nav-logo {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    object-fit: contain !important;
  }

  body.gintonic-page #mainNav .nav-brand-title,
  body.gintonic-page .main-nav .nav-brand-title {
    color: #fff !important;
    font-size: 1rem !important;
    letter-spacing: .18em !important;
    line-height: 1 !important;
  }

  body.gintonic-page #mainNav .nav-brand-subtitle,
  body.gintonic-page .main-nav .nav-brand-subtitle {
    color: var(--gt-accent-2, #a9e818) !important;
    font-size: .62rem !important;
    letter-spacing: .22em !important;
    margin-top: 4px !important;
  }

  /* Enlaces y grupos sin alturas gigantes */
  body.gintonic-page #mainNav .nav-link,
  body.gintonic-page #mainNav .nav-trigger,
  body.gintonic-page .main-nav .nav-link,
  body.gintonic-page .main-nav .nav-trigger {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: rgba(255,255,255,.94) !important;
    font-size: .92rem !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: left !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.gintonic-page #mainNav .nav-link:hover,
  body.gintonic-page #mainNav .nav-link:focus,
  body.gintonic-page #mainNav .nav-link.is-active,
  body.gintonic-page .main-nav .nav-link:hover,
  body.gintonic-page .main-nav .nav-link:focus,
  body.gintonic-page .main-nav .nav-link.is-active {
    background: rgba(169,232,24,.13) !important;
    color: #fff !important;
  }

  body.gintonic-page #mainNav .nav-link::after,
  body.gintonic-page #mainNav .nav-trigger::after,
  body.gintonic-page .main-nav .nav-link::after,
  body.gintonic-page .main-nav .nav-trigger::after {
    display: none !important;
    content: none !important;
  }

  body.gintonic-page #mainNav .nav-item,
  body.gintonic-page .main-nav .nav-item {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 10px !important;
    padding: 0 0 10px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
    position: static !important;
    z-index: auto !important;
  }

  body.gintonic-page #mainNav .nav-trigger,
  body.gintonic-page .main-nav .nav-trigger {
    pointer-events: none !important;
    cursor: default !important;
    color: rgba(255,255,255,.62) !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    padding: 6px 6px 8px !important;
    background: transparent !important;
  }

  body.gintonic-page #mainNav .nav-caret,
  body.gintonic-page .main-nav .nav-caret {
    display: none !important;
  }

  body.gintonic-page #mainNav .nav-dropdown,
  body.gintonic-page .main-nav .nav-dropdown {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.gintonic-page #mainNav .nav-dropdown a,
  body.gintonic-page .main-nav .nav-dropdown a {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 9px 12px 9px 20px !important;
    border-radius: 10px !important;
    color: rgba(255,255,255,.92) !important;
    background: transparent !important;
    font-size: .88rem !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-decoration: none !important;
  }

  body.gintonic-page #mainNav .nav-dropdown a:hover,
  body.gintonic-page #mainNav .nav-dropdown a:focus,
  body.gintonic-page #mainNav .nav-dropdown a.active-sub,
  body.gintonic-page .main-nav .nav-dropdown a:hover,
  body.gintonic-page .main-nav .nav-dropdown a:focus,
  body.gintonic-page .main-nav .nav-dropdown a.active-sub {
    background: rgba(169,232,24,.13) !important;
    color: #fff !important;
  }

  body.gintonic-page #mainNav .nav-spacer,
  body.gintonic-page .main-nav .nav-spacer,
  body.gintonic-page #mainNav .nav-sep,
  body.gintonic-page .main-nav .nav-sep {
    display: none !important;
  }

  body.gintonic-page #mainNav .nav-icon-link,
  body.gintonic-page .main-nav .nav-icon-link {
    margin-top: 4px !important;
  }

  /* Compatibilidad: ocultar restos del menú móvil de PádelCorral si existen sin HTML esperado */
  body.gintonic-page .mobile-bottom-nav,
  body.gintonic-page .mobile-drawer,
  body.gintonic-page .mobile-drawer-overlay {
    display: none !important;
  }

  /* Contenedores generales */
  body.gintonic-page .container,
  body.gintonic-page .gt-wrap,
  body.gintonic-page .page-container,
  body.gintonic-page .page-shell,
  body.gintonic-page .jornada-page,
  body.gintonic-page .ranking-page,
  body.gintonic-page .fase-final-page,
  body.gintonic-page .gt-player-performance,
  body.gintonic-page .gt-form-page,
  body.gintonic-page .gt-compare-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }

  body.gintonic-page .card,
  body.gintonic-page .gt-card,
  body.gintonic-page .ranking-card,
  body.gintonic-page .table-card,
  body.gintonic-page .hero-card,
  body.gintonic-page .gt-hero-card,
  body.gintonic-page .jornada-hero,
  body.gintonic-page .ranking-hero,
  body.gintonic-page .ff-controls-card,
  body.gintonic-page .ff-bracket-card,
  body.gintonic-page .cuadro-final-card {
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 20px !important;
  }

  /* Tablas y gráficas: scroll horizontal interno, sin romper el ancho del móvil */
  body.gintonic-page .table-scroll,
  body.gintonic-page .gt-table-scroll,
  body.gintonic-page .table-responsive,
  body.gintonic-page .table-wrap,
  body.gintonic-page .gt-svg-chart-wrap,
  body.gintonic-page .chart-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.gintonic-page .ranking-table,
  body.gintonic-page .jornada-table,
  body.gintonic-page .gt-table,
  body.gintonic-page .data-table,
  body.gintonic-page .gt-h2h-table,
  body.gintonic-page .gt-form-table,
  body.gintonic-page .gt-player-table,
  body.gintonic-page .gt-performance-table,
  body.gintonic-page .ff-table {
    width: max-content !important;
    min-width: 680px !important;
    max-width: none !important;
  }

  body.gintonic-page .gt-svg-chart,
  body.gintonic-page svg.gt-svg-chart {
    min-width: 620px !important;
    max-width: none !important;
  }

  body.gintonic-page img,
  body.gintonic-page video,
  body.gintonic-page iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Formularios en una columna */
  body.gintonic-page .gt-search-form,
  body.gintonic-page .gt-compare-form,
  body.gintonic-page .gt-form-filter,
  body.gintonic-page .filters,
  body.gintonic-page .filters-form,
  body.gintonic-page .form-grid,
  body.gintonic-page .gt-grid-4 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.gintonic-page input,
  body.gintonic-page select,
  body.gintonic-page textarea,
  body.gintonic-page button,
  body.gintonic-page .btn,
  body.gintonic-page .gt-btn {
    max-width: 100% !important;
  }
}




/* Mis parejas / Mis rivales */
.gt-rel-page { padding-bottom: 2.5rem; }
.gt-rel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  overflow: hidden;
}
.gt-rel-hero h1 { margin: .15rem 0 .45rem; }
.gt-rel-hero p { max-width: 58rem; }
.gt-rel-form {
  display: grid;
  grid-template-columns: minmax(12rem, .45fr) minmax(18rem, 1fr) auto;
  gap: .9rem;
  align-items: end;
}
.gt-rel-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gt-rel-title-card h2 { margin: .1rem 0 .25rem; }
.gt-rel-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin: 1rem 0;
}
.gt-rel-kpis .gt-card {
  padding: 1rem;
}
.gt-rel-kpis span {
  display: block;
  font-size: .82rem;
  opacity: .72;
  margin-bottom: .35rem;
}
.gt-rel-kpis strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1;
}
.gt-rel-table-card { margin-top: 1rem; }
.gt-rel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 56rem;
}
.gt-rel-table th,
.gt-rel-table td {
  padding: .8rem .7rem;
  text-align: left;
  border-bottom: 1px solid var(--gt-border, rgba(15, 23, 42, .10));
  vertical-align: middle;
}
.gt-rel-table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .72;
}
.gt-rel-table td small {
  display: block;
  margin-top: .15rem;
  opacity: .68;
  font-size: .76rem;
}
.gt-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--gt-soft, rgba(169,232,24,.14));
  font-weight: 800;
}
.gt-rel-details { margin-top: 1.2rem; display: grid; gap: .8rem; }
.gt-rel-detail-card { padding: 0; overflow: hidden; }
.gt-rel-detail-card summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  list-style: none;
}
.gt-rel-detail-card summary::-webkit-details-marker { display: none; }
.gt-rel-detail-card summary:after {
  content: '▾';
  opacity: .75;
  transition: transform .18s ease;
}
.gt-rel-detail-card[open] summary:after { transform: rotate(180deg); }
.gt-rel-match-list { display: grid; gap: .65rem; padding: 0 1.1rem 1.1rem; }
.gt-rel-match {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: .7rem 1rem;
  align-items: center;
  padding: .85rem;
  border-radius: 1rem;
  border: 1px solid var(--gt-border, rgba(15, 23, 42, .10));
  background: rgba(255,255,255,.50);
}
.gt-rel-match span { display: block; opacity: .78; font-size: .9rem; }
.gt-rel-match > div:nth-child(2) { text-align: right; display: grid; gap: .35rem; justify-items: end; }
.gt-rel-match-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.gt-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .65rem;
  font-size: .78rem;
  font-weight: 800;
  border: 1px solid transparent;
}
.gt-badge.is-win { background: rgba(34,197,94,.14); color: #15803d; border-color: rgba(34,197,94,.24); }
.gt-badge.is-loss { background: rgba(239,68,68,.12); color: #b91c1c; border-color: rgba(239,68,68,.22); }
.gt-badge.is-draw { background: rgba(245,158,11,.14); color: #92400e; border-color: rgba(245,158,11,.24); }
.gt-badge.is-pending { background: rgba(100,116,139,.13); color: #475569; border-color: rgba(100,116,139,.20); }

body.theme-night .gt-rel-match {
  background: rgba(15, 30, 51, .72);
  border-color: rgba(148, 163, 184, .18);
}
body.theme-night .gt-badge.is-win { color: #86efac; background: rgba(34,197,94,.14); }
body.theme-night .gt-badge.is-loss { color: #fca5a5; background: rgba(239,68,68,.13); }
body.theme-night .gt-badge.is-draw { color: #fde68a; background: rgba(245,158,11,.14); }
body.theme-night .gt-badge.is-pending { color: #cbd5e1; background: rgba(148,163,184,.13); }

@media (max-width: 860px) {
  .gt-rel-hero { align-items: flex-start; flex-direction: column; }
  .gt-rel-form { grid-template-columns: 1fr; }
  .gt-rel-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt-rel-detail-card summary { align-items: flex-start; flex-direction: column; }
  .gt-rel-match { grid-template-columns: 1fr; }
  .gt-rel-match > div:nth-child(2) { text-align: left; justify-items: start; }
  .gt-rel-match-wide { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gt-rel-kpis { grid-template-columns: 1fr; }
}

/* =========================================================
   torneo_fase_final.php - Fase final pública manual
   Añadir al final de /var/www/html/gintonic/includes/public.css
   ========================================================= */
.torneo-fase-final-manual-page{
  display:grid;
  gap:18px;
}
.tffm-hero-card{
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  overflow:hidden;
}
.tffm-hero-card h1{
  margin:.15rem 0 .45rem;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1;
  color:var(--gt-primary,#071f32);
}
.tffm-hero-card p{margin:.25rem 0;color:var(--gt-muted,#617184)}
.tffm-kicker{
  margin:0 0 .25rem!important;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:900;
  font-size:.78rem;
  color:var(--gt-primary-2,#0b4650)!important;
}
.tffm-season{font-weight:900;color:var(--gt-text,#102235)!important}
.tffm-hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:220px}
.tffm-progress{display:inline-flex;padding:9px 13px;border-radius:999px;background:rgba(169,232,24,.18);font-weight:900;color:var(--gt-primary,#071f32)}
.tffm-filter-card{padding:16px 18px}
.tffm-filter-form{display:grid;gap:8px}
.tffm-filter-form label{font-weight:900;color:var(--gt-primary,#071f32)}
.tffm-filter-form select{
  width:100%;border:1px solid var(--gt-line,rgba(16,34,53,.13));border-radius:14px;padding:12px 14px;background:#fff;color:var(--gt-text,#102235);font-weight:800;
}
.tffm-alert{padding:18px 20px;color:var(--gt-primary,#071f32);font-weight:800}
.tffm-round-block{display:grid;gap:12px}
.tffm-round-title{display:flex;align-items:center;gap:10px;margin-top:4px}
.tffm-round-title span{width:12px;height:34px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12)}
.tffm-round-title h2{margin:0;color:var(--gt-primary,#071f32);font-size:1.45rem}
.tffm-gold .tffm-round-title span{background:#f6b600;box-shadow:0 0 0 5px rgba(246,182,0,.16)}
.tffm-red .tffm-round-title span{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.13)}
.tffm-final .tffm-round-title span{background:linear-gradient(180deg,#f6b600,#22c55e);box-shadow:0 0 0 5px rgba(246,182,0,.14)}
.tffm-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tffm-match-card{
  padding:18px;
  border-left:5px solid #22c55e;
  box-shadow:0 14px 32px rgba(6,31,47,.10);
}
.tffm-gold .tffm-match-card{border-left-color:#f6b600}
.tffm-red .tffm-match-card{border-left-color:#ef4444}
.tffm-final .tffm-match-card{border-left-color:#f6b600}
.tffm-match-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.tffm-match-number{display:inline-flex;margin-bottom:5px;padding:5px 10px;border-radius:999px;background:rgba(7,31,50,.08);font-weight:900;color:var(--gt-primary,#071f32);font-size:.82rem}
.tffm-match-head h3{margin:0;color:var(--gt-primary,#071f32);font-size:1.08rem}
.tffm-match-head p{margin:4px 0 0;color:var(--gt-muted,#617184);font-weight:800;font-size:.88rem}
.tffm-status{white-space:nowrap;border-radius:999px;padding:7px 10px;background:#e9eef2;color:var(--gt-primary,#071f32);font-weight:900;font-size:.82rem}
.tffm-status-jugado{background:rgba(34,197,94,.16);color:#166534}
.tffm-status-publicado{background:rgba(59,130,246,.14);color:#1e40af}
.tffm-status-retirada,.tffm-status-cancelado{background:rgba(239,68,68,.13);color:#991b1b}
.tffm-status-no_finalizado,.tffm-status-empate_pactado,.tffm-status-empate_por_tiempo{background:rgba(246,182,0,.17);color:#854d0e}
.tffm-date{margin:0 0 12px;padding:9px 11px;border-radius:14px;background:rgba(7,31,50,.05);font-weight:850;color:var(--gt-primary,#071f32)}
.tffm-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:stretch;margin:12px 0}
.tffm-team{padding:14px;border:1px solid var(--gt-line,rgba(16,34,53,.13));border-radius:18px;background:#fff;min-height:90px;display:flex;flex-direction:column;justify-content:center;gap:7px}
.tffm-team span{font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;color:var(--gt-muted,#617184);font-weight:900}
.tffm-team strong{font-size:1.03rem;line-height:1.32;color:var(--gt-text,#102235)}
.tffm-team.is-winner{border-color:rgba(34,197,94,.55);background:linear-gradient(180deg,rgba(34,197,94,.13),#fff)}
.tffm-vs{align-self:center;font-weight:1000;color:#22c55e;font-size:.86rem}
.tffm-result-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.tffm-result-row>div{padding:12px;border-radius:16px;background:rgba(7,31,50,.05)}
.tffm-result-row span{display:block;font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;color:var(--gt-muted,#617184);font-weight:900;margin-bottom:4px}
.tffm-result-row strong{color:var(--gt-primary,#071f32);font-size:1rem}
.tffm-winner{background:rgba(34,197,94,.13)!important}
.tffm-bet-warning{margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(239,68,68,.12);color:#991b1b;font-weight:900}
.tffm-comment{margin-top:10px;padding:12px;border-radius:16px;background:rgba(7,31,50,.04);border:1px dashed var(--gt-line,rgba(16,34,53,.13))}
.tffm-comment span{display:block;font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;color:var(--gt-muted,#617184);font-weight:900;margin-bottom:5px}
.tffm-comment p{margin:0;color:var(--gt-text,#102235)}
.tffm-general-comments{padding:20px}.tffm-general-comments h2{margin:.1rem 0 .7rem;color:var(--gt-primary,#071f32)}
@media(max-width:900px){
  .tffm-hero-card{display:grid}.tffm-hero-actions{align-items:flex-start;min-width:0}.tffm-match-grid{grid-template-columns:1fr}.tffm-teams{grid-template-columns:1fr}.tffm-vs{text-align:center}.tffm-result-row{grid-template-columns:1fr}.tffm-match-head{display:grid}.tffm-status{width:max-content}
}


/* =========================================================
   Porra fase final pública
   Añadir al final de /var/www/html/gintonic/includes/public.css
   ========================================================= */
.porra-ff-page,
.porra-ff-public-list,
.porra-ff-ranking-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 46px;
}

.porra-ff-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.porra-ff-userbox,
.porra-ff-ranking-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.porra-ff-userbox a,
.porra-ff-ranking-summary span {
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 110, .18);
  background: rgba(255,255,255,.72);
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
  color: #073052;
}

.public-alert {
  max-width: 1180px;
  margin: 12px auto;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
}
.public-alert.ok { background: rgba(118, 217, 88, .18); border: 1px solid rgba(41, 166, 40, .25); }
.public-alert.error { background: rgba(255, 95, 95, .16); border: 1px solid rgba(200, 45, 45, .25); }

.porra-ff-filter-card,
.porra-ff-login-card {
  margin-bottom: 18px;
}

.porra-ff-filter,
.porra-ff-login-form,
.porra-ff-bet-form {
  display: grid;
  gap: 10px;
}

.porra-ff-filter label,
.porra-ff-login-form label,
.porra-ff-bet-form label {
  font-weight: 900;
  color: #052846;
}

.porra-ff-filter select,
.porra-ff-login-form input,
.porra-ff-bet-form select {
  width: 100%;
  border: 1px solid rgba(6, 36, 60, .16);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  padding: 12px 14px;
  font: inherit;
}

.porra-ff-login-card {
  max-width: 520px;
}

.porra-ff-round-title {
  margin: 26px 0 12px;
  color: #062947;
  font-size: 1.35rem;
}

.porra-ff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.porra-ff-wide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.porra-ff-bet-card,
.porra-ff-apuestas-card {
  border-left: 5px solid #55c936;
  overflow: hidden;
}

.porra-ff-bet-card.is-closed {
  border-left-color: #9aa6b2;
  opacity: .92;
}

.porra-ff-bet-card header,
.porra-ff-apuestas-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.porra-ff-bet-card header span,
.porra-ff-apuestas-card header span {
  display: inline-flex;
  margin-top: 4px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 76, 110, .08);
  font-weight: 800;
  font-size: .85rem;
}

.porra-ff-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.porra-ff-versus > div {
  border-radius: 16px;
  border: 1px solid rgba(6, 36, 60, .12);
  background: rgba(255,255,255,.76);
  padding: 12px;
  min-height: 74px;
}

.porra-ff-versus small {
  display: block;
  color: #47708a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.porra-ff-versus span {
  font-weight: 1000;
  color: #49bd32;
}

.porra-ff-current-bet {
  border-radius: 14px;
  background: rgba(82, 198, 56, .12);
  padding: 10px 12px;
}

.porra-ff-bet-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  margin-top: 14px;
}
.porra-ff-bet-form label { display: none; }

.porra-ff-apuestas-table-wrap,
.porra-ff-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(6, 36, 60, .10);
}

.porra-ff-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.86);
}

.porra-ff-table th,
.porra-ff-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(6, 36, 60, .08);
  text-align: left;
}

.porra-ff-table th {
  background: rgba(6, 36, 60, .08);
  color: #062947;
  font-weight: 1000;
}

.porra-ff-table tr.is-empty td {
  color: #6f7e89;
  background: rgba(245,248,250,.66);
}

.porra-ff-ranking-table tbody tr:nth-child(1) td {
  background: rgba(87, 204, 54, .16);
  font-weight: 900;
}

@media (max-width: 860px) {
  .porra-ff-hero,
  .porra-ff-bet-card header,
  .porra-ff-apuestas-card header {
    flex-direction: column;
    align-items: stretch;
  }
  .porra-ff-grid { grid-template-columns: 1fr; }
  .porra-ff-versus { grid-template-columns: 1fr; }
  .porra-ff-versus > span { text-align: center; }
  .porra-ff-bet-form { grid-template-columns: 1fr; }
  .porra-ff-bet-form label { display: block; }
}

/* FAQ porra fase final */
.faq-porra-page.container {
  max-width: 1280px;
  margin: 0 auto 36px;
  padding: 0;
}

.faq-porra-page .faq-porra-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.faq-porra-page .faq-porra-hero h1 {
  margin: 4px 0 8px;
}

.faq-porra-actions,
.faq-porra-actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.faq-porra-card {
  margin-bottom: 18px;
}

.faq-porra-highlight {
  border-left: 5px solid var(--pc-accent, #64d33f);
}

.faq-porra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.faq-porra-grid > .card {
  margin-bottom: 0;
}

.faq-porra-set-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.faq-porra-set-options span {
  min-width: 68px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(100, 211, 63, .16);
  border: 1px solid rgba(100, 211, 63, .35);
  font-weight: 900;
  color: var(--pc-primary, #082b4c);
}

.faq-porra-points {
  display: grid;
  gap: 12px;
}

.faq-porra-points div {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(8, 43, 76, .06);
  border: 1px solid rgba(8, 43, 76, .10);
}

.faq-porra-points strong {
  display: block;
  color: #008b3e;
  margin-bottom: 6px;
}

.faq-porra-points span {
  display: block;
}

@media (max-width: 760px) {
  .faq-porra-page.container {
    width: min(100% - 18px, 1280px);
  }

  .faq-porra-page .faq-porra-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-porra-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Cambiar contraseña - público
   Añadir al final de /var/www/html/gintonic/includes/public.css
   ========================================================= */
.cambiar-pass-page {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.cambiar-pass-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.cambiar-pass-hero h1 {
  margin: .15rem 0 .5rem;
}

.cambiar-pass-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cambiar-pass-alert {
  margin-bottom: 1rem;
  border-left: 5px solid #66d43c;
}

.cambiar-pass-alert p {
  margin: .35rem 0 0;
}

.cambiar-pass-alert.error {
  border-left-color: #ff4d4f;
}

.cambiar-pass-alert.info {
  border-left-color: #1b7295;
}

.cambiar-pass-card,
.cambiar-pass-help {
  margin-bottom: 1rem;
}

.cambiar-pass-card h2,
.cambiar-pass-help h2 {
  margin-top: 0;
}

.cambiar-pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cambiar-pass-page .form-row {
  margin-bottom: 1rem;
}

.cambiar-pass-page label {
  display: block;
  font-weight: 800;
  color: var(--gt-ink, #08233d);
  margin-bottom: .4rem;
}

.cambiar-pass-page input[type="text"],
.cambiar-pass-page input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(8,35,61,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  padding: .75rem .9rem;
  font: inherit;
  color: var(--gt-ink, #08233d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.cambiar-pass-page small {
  display: block;
  margin-top: .35rem;
  color: var(--gt-muted, #5f7183);
}

.gt-ac-wrap {
  position: relative;
}

.gt-ac-suggestions {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid rgba(8,35,61,.15);
  border-radius: 16px;
  box-shadow: 0 18px 35px rgba(8,35,61,.18);
  overflow: hidden;
}

.gt-ac-suggestions.is-open {
  display: block;
}

.gt-ac-item {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: .75rem .9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--gt-ink, #08233d);
}

.gt-ac-item:hover {
  background: rgba(102,212,60,.12);
}

.gt-ac-item span {
  font-size: .82rem;
  color: var(--gt-muted, #5f7183);
}

.is-soft-hidden {
  opacity: .55;
}

.cambiar-pass-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: .25rem;
}

.cambiar-pass-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cambiar-pass-help-grid > div {
  border: 1px solid rgba(8,35,61,.08);
  background: rgba(255,255,255,.65);
  border-radius: 16px;
  padding: 1rem;
}

.cambiar-pass-help-grid p {
  margin: .35rem 0 0;
  color: var(--gt-muted, #5f7183);
}

@media (max-width: 780px) {
  .cambiar-pass-hero {
    display: block;
  }
  .cambiar-pass-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }
  .cambiar-pass-grid,
  .cambiar-pass-help-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Ranking evolución - Liga Gintonic
   Añadir al final de /var/www/html/gintonic/includes/public.css
   ========================================================= */
.ranking-evo-page {
  display: grid;
  gap: 1rem;
}

.ranking-evo-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.ranking-evo-hero h1 {
  margin: .15rem 0 .45rem;
}

.ranking-evo-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gt-muted, #5f7183);
}

.ranking-evo-meta {
  flex-wrap: wrap;
}

.ranking-evo-card {
  display: grid;
  gap: 1rem;
}

.ranking-evo-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.ranking-evo-field {
  display: grid;
  gap: .35rem;
}

.ranking-evo-field label {
  font-weight: 800;
  font-size: .88rem;
  color: var(--gt-ink, #08233d);
}

.ranking-evo-field select,
.ranking-evo-field input {
  width: 100%;
  border: 1px solid rgba(8,35,61,.15);
  border-radius: 14px;
  padding: .75rem .85rem;
  background: #fff;
  color: var(--gt-ink, #08233d);
  outline: none;
}

.ranking-evo-field select:focus,
.ranking-evo-field input:focus {
  border-color: rgba(102,212,60,.7);
  box-shadow: 0 0 0 4px rgba(102,212,60,.16);
}

.ranking-evo-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ranking-evo-help {
  border: 1px solid rgba(102,212,60,.28);
  background: rgba(102,212,60,.10);
  color: var(--gt-ink, #08233d);
  border-radius: 16px;
  padding: .85rem 1rem;
  font-size: .95rem;
}

.ranking-evo-error {
  display: none;
  border: 1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.08);
  color: #991b1b;
  border-radius: 16px;
  padding: .85rem 1rem;
  font-weight: 700;
}

.ranking-evo-chart-scroll {
  overflow-x: auto;
  border: 1px solid rgba(8,35,61,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.ranking-evo-chart-inner {
  height: 560px;
  padding: 1rem;
}

.ranking-evo-chart-inner canvas {
  width: 100% !important;
  height: 100% !important;
}

.ranking-evo-legend {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.ranking-evo-player-pill {
  border: 1px solid rgba(8,35,61,.12);
  background: rgba(255,255,255,.82);
  color: var(--gt-ink, #08233d);
  border-radius: 999px;
  padding: .45rem .7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  font-size: .86rem;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.ranking-evo-player-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8,35,61,.10);
}

.ranking-evo-player-pill span {
  width: .72rem;
  height: .72rem;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9);
}

.ranking-evo-player-pill.is-hidden {
  opacity: .42;
  text-decoration: line-through;
}

.ranking-evo-table-wrap {
  margin-top: .25rem;
}

.ranking-evo-table th,
.ranking-evo-table td {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ranking-evo-hero,
  .ranking-evo-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ranking-evo-actions {
    justify-content: flex-start;
  }

  .ranking-evo-chart-inner {
    height: 500px;
  }
}

@media (max-width: 640px) {
  .ranking-evo-chart-inner {
    height: 460px;
    padding: .75rem;
  }

  .ranking-evo-player-pill {
    font-size: .8rem;
  }
}

/* Ajustes dinámica ranking evolución */
.ranking-evo-toolbar-dynamic {
  grid-template-columns: auto minmax(130px, 170px) minmax(150px, 190px) 1fr;
  align-items: end;
}

.ranking-evo-play-actions {
  justify-content: flex-start;
  align-items: end;
}

.ranking-evo-status,
.ranking-evo-scroll-hint {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: .62rem .9rem;
  background: rgba(8,35,61,.06);
  color: var(--gt-ink, #08233d);
  font-weight: 900;
  white-space: nowrap;
}

.ranking-evo-scroll-hint {
  min-height: auto;
  border-radius: 16px;
  background: rgba(245,158,11,.12);
  color: #7c4a03;
  margin-top: -.25rem;
}

@media (max-width: 900px) {
  .ranking-evo-toolbar-dynamic {
    grid-template-columns: 1fr;
  }

  .ranking-evo-status {
    justify-content: center;
    white-space: normal;
  }
}

/* =========================================================
   Liga Gintonic: enlaces a ficha de jugador y foto perfil
   ========================================================= */
.gt-player-link {
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  border-bottom: 1px dotted rgba(22, 50, 79, .42);
}

.gt-player-link:hover,
.gt-player-link:focus {
  color: var(--pc-primary);
  border-bottom-color: var(--pc-primary);
}

.gt-player-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.gt-player-photo-wrap {
  flex: 0 0 auto;
}

.gt-player-photo {
  width: clamp(76px, 12vw, 118px);
  height: clamp(76px, 12vw, 118px);
  border-radius: 26px;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255,255,255,.78);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
  background: rgba(255,255,255,.65);
}

.gt-player-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  color: var(--pc-primary);
  background: linear-gradient(135deg, rgba(150,220,40,.22), rgba(31,111,139,.16));
}

@media (max-width: 680px) {
  .gt-player-head-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .gt-player-head-main {
    align-items: flex-start;
  }

  .gt-player-photo {
    width: 86px;
    height: 86px;
    border-radius: 22px;
  }
}

/* =========================================================
   Liga Gintonic: ficha rendimiento jugador con foto completa
   ========================================================= */
.gt-player-profile-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.gt-player-photo-card,
.gt-player-data-card {
  margin-bottom: 0;
}

.gt-player-photo-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gt-player-photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(150,220,40,.18), rgba(31,111,139,.14));
  border: 3px solid rgba(255,255,255,.82);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
}

.gt-player-photo-full {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,.72);
}

.gt-player-photo-frame .gt-player-photo-fallback {
  font-weight: 950;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--pc-primary);
}

.gt-player-data-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.gt-player-data-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gt-player-data-title h2 {
  margin: 0 0 8px;
}

.gt-player-data-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gt-player-data-item {
  border: 1px solid rgba(22, 50, 79, .10);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  padding: 16px 14px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gt-player-data-item span {
  display: block;
  color: var(--pc-text-soft);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gt-player-data-item strong {
  color: var(--pc-primary);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
  font-weight: 950;
}

@media (max-width: 900px) {
  .gt-player-profile-layout {
    grid-template-columns: 1fr;
  }

  .gt-player-photo-card {
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }

  .gt-player-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gt-player-data-title {
    flex-direction: column;
  }

  .gt-player-data-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PARTICIPANTES
   ========================================================= */
.gt-participants-page {
  width: min(100%, var(--pc-max));
  margin: 0 auto;
}

.gt-participants-hero,
.gt-participants-search-card {
  margin-bottom: 20px;
}

.gt-participants-search {
  display: grid;
  grid-template-columns: 240px minmax(220px, 1fr) auto auto auto;
  gap: 14px;
  align-items: end;
}


.gt-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid rgba(22, 50, 79, .12);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.72);
  color: var(--pc-primary);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(3, 40, 61, .06);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.gt-check-pill input {
  width: 18px;
  height: 18px;
  accent-color: var(--pc-accent);
  cursor: pointer;
}

.gt-final-only-check {
  justify-self: start;
}

.gt-participants-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.gt-participants-meta span {
  border: 1px solid rgba(22, 50, 79, .10);
  background: rgba(255,255,255,.70);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--pc-text-soft);
  font-size: .9rem;
}

.gt-participants-meta strong {
  color: var(--pc-primary);
}

.gt-participants-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gt-participant-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

.gt-participant-photo {
  min-height: 170px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.86);
  background: linear-gradient(135deg, rgba(238,252,222,.82), rgba(237,247,255,.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.gt-participant-photo img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  display: block;
}

.gt-participant-photo span {
  color: var(--pc-primary);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.gt-participant-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}

.gt-participant-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.gt-participant-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.22rem, 2.6vw, 1.75rem);
}

.gt-participant-head h2 a {
  color: var(--pc-primary);
  text-decoration: none;
}

.gt-participant-head h2 a:hover {
  text-decoration: underline;
}

.gt-participant-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gt-participant-stats div {
  border: 1px solid rgba(22, 50, 79, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  padding: 14px 12px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gt-participant-stats span {
  display: block;
  color: var(--pc-text-soft);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.gt-participant-stats strong {
  color: var(--pc-primary);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  font-weight: 950;
}

.gt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
}

.gt-pagination-count {
  font-weight: 900;
  color: var(--pc-primary);
}

.gt-btn-disabled {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 920px) {
  .gt-participants-search {
    grid-template-columns: 1fr;
  }

  .gt-participant-card {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .gt-participant-photo {
    min-height: 132px;
    border-radius: 20px;
  }

  .gt-participant-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gt-participants-page {
    padding-inline: 2px;
  }

  .gt-participant-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .gt-participant-photo {
    min-height: 112px;
    align-self: start;
  }

  .gt-participant-photo img {
    max-height: 132px;
  }

  .gt-participant-head {
    flex-direction: column;
    gap: 8px;
  }

  .gt-participant-head .gt-rank-pill {
    align-self: flex-start;
  }

  .gt-participant-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gt-participant-stats div {
    min-height: 70px;
    padding: 10px 9px;
    border-radius: 15px;
  }

  .gt-participant-stats span {
    font-size: .62rem;
    margin-bottom: 5px;
  }

  .gt-participant-stats strong {
    font-size: 1.25rem;
  }

  .gt-pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .gt-participant-card {
    grid-template-columns: 1fr;
  }

  .gt-participant-photo {
    width: 100%;
    min-height: 180px;
  }

  .gt-participant-photo img {
    max-height: 220px;
  }
}


/* Eventos Gintonic / Pozos verano */
.gt-main{max-width:1180px;margin:0 auto;padding:22px 14px}.event-hero{display:flex;gap:22px;align-items:center;background:linear-gradient(135deg,rgba(13,54,82,.96),rgba(19,113,110,.88));color:#fff}.event-hero h1{margin:.2rem 0;font-size:clamp(2rem,5vw,4rem);line-height:1}.event-hero .lead{font-size:1.1rem;max-width:780px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:.78rem;opacity:.85}.event-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.event-section{margin-top:22px}.event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.event-card{overflow:hidden;padding:0}.event-card-img{width:100%;height:190px;object-fit:cover;display:block}.event-card-body{padding:16px}.event-badge{display:inline-flex;border-radius:999px;background:rgba(15,91,94,.12);color:#0b5960;padding:5px 10px;font-size:.82rem;font-weight:800}.event-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.event-list-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.08)}.event-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.event-photo-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;box-shadow:0 10px 24px rgba(0,0,0,.12)}.event-detail-hero{display:grid;grid-template-columns:minmax(260px,430px) 1fr;gap:22px;align-items:center}.event-detail-cover{width:100%;max-height:420px;object-fit:cover;border-radius:22px}.event-text{font-size:1.05rem;line-height:1.65}.event-sponsor-box{display:flex;gap:18px;align-items:center}.event-sponsor-box img{width:110px;height:110px;object-fit:contain;border-radius:20px;background:#fff;padding:8px}.event-ranking-list{display:grid;gap:10px}.event-ranking-row{display:grid;grid-template-columns:70px 1fr 100px;align-items:center;gap:12px;margin:0}.event-filter-form{margin-bottom:15px}.event-filter-form select{padding:10px;border-radius:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid rgba(0,0,0,.08);text-align:left}.btn.small{padding:6px 9px;font-size:.82rem}.btn-danger{background:#a91d2b!important;color:#fff!important}@media(max-width:760px){.event-two-cols,.event-detail-hero{grid-template-columns:1fr}.event-card-img{height:230px}.event-ranking-row{grid-template-columns:48px 1fr 70px}.event-sponsor-box{align-items:flex-start}.event-sponsor-box img{width:84px;height:84px}.gt-main{padding:14px 10px}}

/* Porra fase final: partidos resueltos plegados */
.porra-ff-apuestas-card.is-resolved {
  border-left-color: #9aa6b2;
  padding: 0;
  overflow: hidden;
}

.porra-ff-resolved-details {
  display: block;
}

.porra-ff-resolved-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(245, 248, 250, .92);
}

.porra-ff-resolved-details > summary::-webkit-details-marker {
  display: none;
}

.porra-ff-resolved-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #062947;
}

.porra-ff-status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 76, 110, .08);
  font-weight: 800;
  font-size: .85rem;
}

.porra-ff-resolved-pairs {
  color: #47687d;
  font-weight: 800;
}

.porra-ff-open-toggle {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #0b4f71;
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(5, 42, 70, .16);
}

.porra-ff-resolved-details[open] .porra-ff-open-toggle::before {
  content: 'Cerrar';
}

.porra-ff-resolved-details[open] .porra-ff-open-toggle {
  font-size: 0;
}

.porra-ff-resolved-details[open] .porra-ff-open-toggle::before {
  font-size: .92rem;
}

.porra-ff-resolved-body {
  padding: 18px;
}

.porra-ff-apuestas-meta {
  display: inline-flex;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(82, 198, 56, .12);
  color: #0f4c2f;
  font-weight: 900;
  font-size: .88rem;
}

.porra-ff-apuestas-card.is-resolved .porra-ff-resolved-body > header {
  display: none;
}

@media (max-width: 700px) {
  .porra-ff-resolved-details > summary {
    align-items: stretch;
    flex-direction: column;
  }

  .porra-ff-open-toggle {
    text-align: center;
  }
}


/* ==========================================================
   Eventos públicos - detalle + carrusel de fotos
   23/05/2026
   ========================================================== */
.event-detail-hero-v2 {
  display: grid !important;
  grid-template-columns: minmax(280px, 430px) 1fr !important;
  gap: 24px !important;
  align-items: center !important;
}
.event-detail-cover-box {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13,54,82,.08), rgba(19,113,110,.10));
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-detail-cover-box .event-detail-cover,
.event-detail-cover {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(13,54,82,.08), rgba(19,113,110,.10));
}
.event-detail-info {
  min-width: 0;
}
.event-detail-info h1 {
  margin: .45rem 0 .6rem;
}
.event-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.event-section-title-row h2 {
  margin: 0;
}
.event-carousel-controls {
  display: flex;
  gap: 8px;
}
.event-carousel-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #0b3f57;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 31, 46, .18);
}
.event-photo-carousel {
  display: flex;
  gap: 0;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
}
.event-photo-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  scroll-snap-align: center;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(7, 31, 46, .10);
  box-shadow: 0 18px 42px rgba(7, 31, 46, .12);
  overflow: hidden;
}
.event-photo-slide img {
  width: 100%;
  height: min(64vh, 560px);
  object-fit: contain;
  display: block;
  background: linear-gradient(135deg, rgba(13,54,82,.08), rgba(19,113,110,.10));
}
.event-photo-slide figcaption {
  padding: 10px 14px 12px;
  font-size: .95rem;
  color: var(--pc-text-soft, #5b677a);
}
.event-photo-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch;
}
.event-photo-thumb {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(11, 63, 87, .18);
  background: #fff;
}
.event-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Listado /eventos: evita banners cortados en PC */
.event-grid {
  grid-template-columns: 1fr !important;
}
.event-card {
  overflow: hidden;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 430px) 1fr !important;
  align-items: stretch !important;
}
.event-card-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px !important;
  max-height: 420px !important;
  object-fit: contain !important;
  background: linear-gradient(135deg, rgba(13,54,82,.08), rgba(19,113,110,.10));
  display: block !important;
}
.event-card-body {
  padding: 28px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
}
.event-card-body h3 { margin: .2rem 0 .1rem; }
.event-card-body p { margin: .2rem 0; }

@media (max-width: 760px) {
  .event-detail-hero-v2,
  .event-card {
    grid-template-columns: 1fr !important;
  }
  .event-detail-cover-box .event-detail-cover,
  .event-detail-cover {
    max-height: none !important;
  }
  .event-card-img {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
  }
  .event-card-body {
    padding: 16px !important;
    display: block !important;
  }
  .event-section-title-row {
    align-items: flex-start;
  }
  .event-photo-slide {
    flex-basis: 100%;
  }
  .event-photo-slide img {
    height: 68vh;
    max-height: 620px;
  }
  .event-carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }
}

/* ==========================================================
   Partner exclusivo de evento
   23/05/2026
   ========================================================== */
.event-partner-box-v2 {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr;
  gap: 20px;
  align-items: center;
}
.event-partner-logo-box {
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(7, 31, 46, .10);
  box-shadow: 0 12px 28px rgba(7, 31, 46, .08);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.event-partner-logo-box img,
.event-sponsor-box.event-partner-box-v2 img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.event-partner-content h2 {
  margin: .25rem 0 .5rem;
}
.event-partner-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(19, 113, 110, .12);
  color: #0b3f57;
  font-size: .82rem;
  font-weight: 900;
}
.event-partner-desc {
  font-weight: 700;
  color: var(--pc-text, #0b2f4a);
}
.event-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .event-partner-box-v2 {
    grid-template-columns: 1fr;
  }
  .event-partner-logo-box {
    min-height: 110px;
  }
}

/* Partners múltiples asociados a eventos */
.event-partners-multi-box {
  display: block;
}

.event-partner-content-full {
  width: 100%;
}

.event-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.event-partner-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(8, 45, 72, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.event-partner-card-logo {
  flex: 0 0 88px;
  width: 88px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(8, 45, 72, .10);
}

.event-partner-card-logo img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.event-partner-card-body {
  min-width: 0;
  flex: 1;
}

.event-partner-card-role {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(13, 93, 122, .10);
  color: #0b5068;
  font-size: .78rem;
  font-weight: 800;
}

.event-partner-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.event-partner-card p {
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .event-partner-card {
    flex-direction: column;
  }

  .event-partner-card-logo {
    width: 100%;
  }
}
