:root{
  --ffm26-card-bg1:#4b1bb2;
  --ffm26-card-bg2:#2a0b63;
  --ffm26-card-radius:18px;
  --ffm26-card-pad:14px;
  --ffm26-text:#ffffff;
  --ffm26-muted:rgba(255,255,255,.85);
  /* Fondo tipo mockup (Mundial / página oscura) */
  --ffm26-page-bg1:#1a0a2e;
  --ffm26-page-bg2:#2d0d4a;
  --ffm26-page-bg3:#150828;

  /* Login/Registro: variables dedicadas (podés sobrescribirlas desde CSS custom) */
  --ffm26-auth-box-bg: linear-gradient(155deg, rgba(120, 70, 220, .22), rgba(40, 15, 95, .42));
  --ffm26-auth-input-bg: rgba(255,255,255,.10);
  --ffm26-auth-input-border: rgba(255,255,255,.26);
  --ffm26-auth-btn-bg: linear-gradient(135deg, #7a4af0, #4a22b8);
  --ffm26-auth-btn-text: #ffffff;
}

.ffm26-fixture-list{
  display:grid;
  gap:14px;
}

.ffm26-fixtures-groups__fold{
  display:block;
  margin-bottom:14px;
}
.ffm26-fixtures-groups__head{
  cursor:pointer;
  user-select:none;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ffm26-text);
  font-weight: 800;
  background:
    linear-gradient(155deg, rgba(120, 70, 220, .18), rgba(40, 15, 95, .30));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  margin-bottom: 12px;
}
.ffm26-fixtures-groups__fold > summary::-webkit-details-marker{ display:none; }
.ffm26-fixtures-groups__fold > summary::marker{ content:""; }
.ffm26-fixtures-groups__head::after{
  content:"▾";
  opacity:.9;
  font-size:14px;
  line-height:1;
  transform: rotate(0deg);
  transition: transform .18s ease;
  flex:0 0 auto;
}
.ffm26-fixtures-groups__fold[open] > .ffm26-fixtures-groups__head::after{
  transform: rotate(180deg);
}
.ffm26-fixtures-groups__body{
  padding-bottom: 6px;
}

.ffm26-auth__alt{
  margin-top: 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.ffm26-auth__or{
  opacity: .85;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ffm26-googlebtn{
  max-width: 320px;
}

.ffm26-tip{
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  transform: translateY(-50%);
  background: rgba(0,0,0,.82);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  display: block;
  max-width: min(260px, 90vw);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.ffm26-tip.ffm26-tip--show{
  opacity: 1;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce){
  .ffm26-tip{
    transition: none;
  }
}

.ffm26-dashboard{
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 70%);
  grid-template-areas:
    "user user"
    "side main";
  gap: 14px;
  align-items: start;
}
.ffm26-dashboard__userstrip{
  grid-area: user;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
}
.ffm26-dashboard__userstrip-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
}
.ffm26-dashboard__userstrip .ffm26-dashboard__who{
  margin-bottom: 0;
  flex: 1 1 200px;
  min-width: 0;
}
.ffm26-dashboard__userstrip .ffm26-dashboard__comp{
  flex: 1 1 min(100%, 320px);
  min-width: 0;
  max-width: 100%;
}
.ffm26-dashboard__comp-label{
  margin: 0 0 8px;
}
.ffm26-dashboard__comp-form{
  margin: 0;
}
.ffm26-dashboard__comp-select{
  max-width: 100%;
}
.ffm26-dashboard__side{
  grid-area: side;
  padding: 14px;
}
.ffm26-dashboard__main{
  grid-area: main;
  min-width: 0;
}
.ffm26-dashboard__who{
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.ffm26-dashboard__name{
  font-weight: 900;
  font-size: 18px;
  color: var(--ffm26-text);
}
.ffm26-dashboard__meta{
  color: var(--ffm26-muted);
  font-size: 13px;
}

/* Recomendaciones (columna derecha, texto simple) */
.ffm26-referral{
  margin-top: 6px;
  margin-bottom: 0;
  display: grid;
  gap: 10px;
}
.ffm26-referral__toggle{
  margin: 0;
  padding: 0;
  color: #58f8ff;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
  user-select: none;
  display: inline-block;
  text-decoration: none;
  pointer-events: auto;
}
.ffm26-referral__toggle:link,
.ffm26-referral__toggle:visited,
.ffm26-referral__toggle:hover,
.ffm26-referral__toggle:active{
  color: #58f8ff;
  text-decoration: none;
}
.ffm26-referral__toggle:hover{
  text-decoration: none;
}
.ffm26-referral__toggle:focus{
  outline: 2px solid rgba(255,255,255,.25);
  outline-offset: 4px;
  border-radius: 8px;
}
.ffm26-referral__toggle--text{
  text-decoration: none;
}
.ffm26-referral__blink{
  animation: ffm26-referral-blink .55s linear infinite;
}
@keyframes ffm26-referral-blink{
  0%, 100%{ opacity: 1; }
  50%{ opacity: .15; }
}
.ffm26-referral__panel{
  padding: 0;
  border-radius: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
}
.ffm26-referral-inline.ffm26-surface{
  margin: 0 0 14px;
  padding: 14px 16px;
}
.ffm26-referral-inline[hidden]{
  display: none !important;
}

/* Cuando se abre "Recomendar", reemplaza el contenido del main */
#ffm26-dashboard-main.ffm26-main--referral > :not([data-ffm26-ref-inline]){
  display: none !important;
}

/* Form recomendar centrado y 80% */
.ffm26-referral-inline .ffm26-referral__panel{
  justify-items: center;
}
.ffm26-referral-inline .ffm26-referral__row{
  width: 100%;
  display: grid;
  justify-items: center;
}
.ffm26-referral-inline .ffm26-referral__input{
  width: min(80%, 520px);
}
.ffm26-referral-inline .ffm26-referral__actions{
  width: 100%;
  justify-content: center;
}
.ffm26-referral-inline .ffm26-referral__send{
  width: min(80%, 520px);
  text-align: center;
  justify-content: center;
}
.ffm26-referral-inline .ffm26-referral__hint,
.ffm26-referral-inline .ffm26-referral__status{
  width: min(80%, 520px);
  text-align: center;
}

.ffm26-referral-inline .ffm26-auth__hint.ffm26-referral__hint{
  text-align: center !important;
}

.ffm26-referral-inline [data-ffm26-ref-remaining-label]{
  color: #58f8ff;
}

.ffm26-referral__success{
  width: min(80%, 520px);
  text-align: center;
  margin: 6px auto 8px;
}
.ffm26-referral__success-title{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 16px;
  color: rgba(255,255,255,.98);
}
.ffm26-referral__success-sub{
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}
.ffm26-referral__row{
  margin: 0;
}
.ffm26-referral__input{
  width: 100%;
}
.ffm26-referral__actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ffm26-referral__send{
  width: auto;
  min-width: 160px;
  padding: 12px 16px;
}
.ffm26-referral__cancel{
  padding: 10px 12px;
}
.ffm26-referral__status{
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
}
.ffm26-referral__status[data-kind="ok"]{
  color: rgba(140, 255, 180, .95);
}
.ffm26-referral__status[data-kind="err"]{
  color: rgba(255, 170, 170, .95);
}
.ffm26-referral__hint{
  margin: 0;
}
.ffm26-dashboard__dock{
  display: none;
}
.ffm26-dashboard__nav{
  display: grid;
  gap: 10px;
}
.ffm26-dashboard__nav--desktop .ffm26-dashboard__btn{
  justify-content: flex-start;
  text-align: left;
}
.ffm26-dashboard__nav--desktop .ffm26-dashboard__btn-label{
  text-align: left;
}
.ffm26-dashboard__nav--desktop .ffm26-dashboard__btn:hover,
.ffm26-dashboard__nav--desktop .ffm26-dashboard__btn:focus,
.ffm26-dashboard__nav--desktop .ffm26-dashboard__btn:focus-visible{
  justify-content: flex-start;
  text-align: left;
}
.ffm26-dashboard__nav-logout{
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.ffm26-dashboard__nav-logout .ffm26-dashboard__btn{
  width: 100%;
  box-sizing: border-box;
}
.ffm26-dashboard__btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ffm26-text);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(155deg, rgba(120, 70, 220, .18), rgba(40, 15, 95, .30));
  font-weight: 800;
}
.ffm26-dashboard__btn--with-icon{
  justify-content: flex-start;
  gap: 10px;
}
.ffm26-dashboard__btn-icon{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.ffm26-dashboard__btn--with-icon .ffm26-dashboard__btn-label{
  flex: 0 0 auto;
  text-align: left;
}
.ffm26-dashboard__btn--with-icon.ffm26-dashboard__btn--badge-wrap{
  justify-content: flex-start;
  width: 100%;
}
.ffm26-dashboard__btn--with-icon.ffm26-dashboard__btn--badge-wrap .ffm26-nav-badge{
  margin-left: auto;
}
.ffm26-dashboard__btn.is-active{
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.ffm26-dashboard__btn--danger{
  background: linear-gradient(155deg, rgba(240, 80, 110, .20), rgba(80, 20, 40, .35));
}
.ffm26-dashboard__btn--badge-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.ffm26-dashboard__btn-label{
  flex: 1;
  text-align: center;
}
.ffm26-nav-badge{
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 2px rgba(0,0,0,.28), 0 0 10px rgba(229, 57, 53, .65);
  animation: ffm26-nav-badge-blink 1.15s ease-in-out infinite;
}
@keyframes ffm26-nav-badge-blink{
  0%, 100%{
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(0,0,0,.28), 0 0 8px rgba(229, 57, 53, .5);
  }
  45%{
    opacity: .35;
    transform: scale(1.25);
    box-shadow: 0 0 0 2px rgba(0,0,0,.22), 0 0 16px rgba(255, 82, 82, .95);
  }
  70%{
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(0,0,0,.28), 0 0 12px rgba(229, 57, 53, .85);
  }
}
@media (prefers-reduced-motion: reduce){
  .ffm26-nav-badge{
    animation: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,.28);
  }
}
.ffm26-profile__logout{
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: flex-start;
}
.ffm26-profile__logout-btn{
  width: auto;
  min-width: 160px;
}
@media (min-width: 861px){
  .ffm26-profile__logout--mobile-only{
    display: none !important;
  }
}

.ffm26-profile__form{
  display: grid;
  gap: 12px;
}
.ffm26-profile__row{
  margin: 0;
}
.ffm26-profile__row--center{
  text-align: center;
}
.ffm26-profile__row--center .ffm26-dashboard__btn{
  margin-left: auto;
  margin-right: auto;
}
.ffm26-profile__input,
.ffm26-profile__save{
  width: 80%;
}
@media (max-width: 640px){
  .ffm26-profile__input,
  .ffm26-profile__save{
    width: 100%;
  }
}

.ffm26-league-invites__row{
  margin-bottom: 5px;
}

/* Select competencia / select liga (panel) — personalizable en Partidos → CSS del Fixture */
.ffm26-league__select{
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 860px){
  .ffm26-dashboard{
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .ffm26-dashboard__userstrip,
  .ffm26-dashboard__side,
  .ffm26-dashboard__main{
    grid-area: auto;
  }
  .ffm26-dashboard__main{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .ffm26-dashboard__side{
    display: none !important;
  }
  .ffm26-dashboard__dock{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2px 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .ffm26-dashboard__nav--desktop{
    display: none !important;
  }
}
.ffm26-dashboard__dock-item{
  flex: 1 1 0;
  min-width: 64px;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 4px 4px;
  border-radius: 0;
  text-decoration: none;
  color: var(--ffm26-text);
  border: none;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: .02em;
  text-transform: uppercase;
  position: relative;
}

.ffm26-dashboard__dock-item.is-active{
  border: none;
  background: transparent;
  box-shadow: none;
}
.ffm26-dashboard__dock-item.is-active .ffm26-dashboard__dock-icon{
  filter: drop-shadow(0 0 10px rgba(88, 248, 255, .55));
  transform: scale(1.06);
}
.ffm26-dashboard__dock-icon{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform .18s ease, filter .18s ease;
}
.ffm26-dashboard__dock-item--badge .ffm26-dashboard__dock-icon{
  margin-top: 0;
}
.ffm26-dashboard__dock .ffm26-nav-badge{
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(22px);
}
@media (prefers-reduced-motion: reduce){
  .ffm26-dashboard__dock-icon{
    transition: none;
  }
  .ffm26-dashboard__dock-item.is-active .ffm26-dashboard__dock-icon{
    transform: none;
  }
}

/* Superficie vidrio (fixture, login, panel, avisos) */
.ffm26-surface,
.ffm26-fixture-card{
  border-radius: var(--ffm26-card-radius);
  background:
    linear-gradient(155deg, rgba(120, 70, 220, .22), rgba(40, 15, 95, .42));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 6px 28px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ffm26-fixture-card{
  color: var(--ffm26-text);
  padding: var(--ffm26-card-pad);
}

.ffm26-fixture-card__row{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:14px;
}

.ffm26-team{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.ffm26-team--home{ justify-content:flex-start; }
.ffm26-team--away{ justify-content:flex-end; }

.ffm26-team__name{
  font-weight:700;
  font-size:18px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ffm26-team__flag{
  width:56px;
  height:36px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
  flex:0 0 auto;
}
.ffm26-team__flag--placeholder{
  background:rgba(255,255,255,.18);
}

.ffm26-score{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:20px;
}
.ffm26-score__vs{
  opacity:.92;
  font-weight:700;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ffm26-score__vs--pred{
  flex-shrink: 0;
  margin: 0 2px;
}

.ffm26-fixture-card__meta{
  margin-top:10px;
  text-align:center;
  color:var(--ffm26-muted);
  font-size:14px;
}
.ffm26-fixture-card__sep{
  margin:0 10px;
  opacity:.7;
}

/* Desktop angosto / Laptop: ajuste leve para que no se rompa entre 1440→1024 */
@media (max-width: 1280px){
  .ffm26-fixture-card{
    padding: 13px;
  }
  .ffm26-fixture-card__row{
    gap: 12px;
  }
  .ffm26-team__flag{
    width: 52px;
    height: 34px;
  }
  .ffm26-team__name{
    font-size: 17px;
  }
  .ffm26-score{
    font-size: 19px;
    gap: 9px;
  }
  .ffm26-score__vs{
    font-size: 11px;
    letter-spacing: .14em;
  }
  .ffm26-fixture-card__meta{
    font-size: 13.5px;
  }
}

/* Tablet: reducir tamaños para adaptarse antes del quiebre mobile */
@media (max-width: 1024px){
  .ffm26-fixture-card{
    padding: 12px;
  }
  .ffm26-fixture-card__row{
    gap: 10px;
  }
  .ffm26-team{
    gap: 8px;
  }
  .ffm26-team__flag{
    width: 48px;
    height: 32px;
    border-radius: 9px;
  }
  .ffm26-team__name{
    font-size: 16px;
  }
  .ffm26-score{
    gap: 8px;
    font-size: 18px;
  }
  .ffm26-score__vs{
    font-size: 11px;
    letter-spacing: .12em;
  }
  .ffm26-fixture-card__meta{
    font-size: 13px;
  }
}

/* Mobile: equipos en un solo renglón; fecha/estadio centrados */
@media (max-width: 640px){
  .ffm26-fixture-card__row{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .ffm26-team{
    gap: 6px;
    min-width: 0;
  }
  .ffm26-team--home{
    justify-content: flex-start;
  }
  .ffm26-team--away{
    justify-content: flex-end;
  }
  .ffm26-team__flag,
  .ffm26-team__flag--placeholder{
    width: 40px;
    height: 26px;
  }
  .ffm26-team__name{
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .ffm26-score{
    flex-shrink: 0;
    gap: 6px;
    font-size: 16px;
  }
  .ffm26-score__vs{
    font-size: 11px;
  }
  .ffm26-fixture-card__meta{
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
  }
  .ffm26-fixture-card__sep{
    margin: 0 6px;
  }
  .ffm26-panel__input{
    width: 44px;
    max-width: 44px;
    font-size: 16px;
    padding: 6px 2px;
  }
}

.ffm26-stadium{
  position:relative;
  cursor:default;
  display:inline-flex;
  align-items:center;
}

.ffm26-stadium__tooltip{
  position:absolute;
  left:50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 220px;
  max-width: 70vw;
  background: rgba(0,0,0,.55);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  display:none;
  pointer-events:none;
  z-index: 10;
}

.ffm26-stadium__img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 10px;
}

.ffm26-stadium:hover .ffm26-stadium__tooltip{
  display:block;
}

.ffm26-live{
  animation: ffm26-live-pulse 1s ease-in-out infinite;
}

.ffm26-live__badge{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 70, 70, .95);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
}

@keyframes ffm26-live-pulse{
  0%,100% { filter: brightness(1); box-shadow: 0 0 0 rgba(255,70,70,0); }
  50% { filter: brightness(1.12); box-shadow: 0 0 0 rgba(255,70,70,0); }
}

.ffm26-notice{
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
}
.ffm26-notice--ok{ background: rgba(40, 180, 90, .85); }
.ffm26-notice--error{ background: rgba(220, 60, 60, .85); }
.ffm26-game .ffm26-notice.ffm26-surface{
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--ffm26-card-radius);
}
.ffm26-game .ffm26-notice.ffm26-surface.ffm26-notice--error{
  background:
    linear-gradient(155deg, rgba(210, 55, 75, .5), rgba(95, 22, 38, .62));
  border: 1px solid rgba(255, 170, 170, .28);
  box-shadow:
    0 6px 24px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ffm26-game .ffm26-notice.ffm26-surface.ffm26-notice--ok{
  background:
    linear-gradient(155deg, rgba(45, 165, 85, .55), rgba(22, 85, 48, .58));
  border: 1px solid rgba(160, 240, 180, .25);
  box-shadow:
    0 6px 24px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ffm26-auth__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ffm26-auth__box{
  padding: 14px;
  border-radius: 14px;
}
.ffm26-auth__box:not(.ffm26-surface){
  background: rgba(0,0,0,.04);
}
.ffm26-auth__hint{
  margin: 0;
  font-size: 13px;
  opacity: .85;
}
.ffm26-userbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin: 10px 0 16px;
  color: var(--ffm26-text);
}

/* Contador jugadores verificados [ffm26_jugadores] */
.ffm26-player-count{
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  color: inherit;
}

/* Bloque juego: fondo mockup + texto claro */
.ffm26-game{
  color: var(--ffm26-text);
  padding: 20px 16px 28px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(130, 80, 255, .35), transparent 55%),
    linear-gradient(180deg, var(--ffm26-page-bg1) 0%, var(--ffm26-page-bg2) 45%, var(--ffm26-page-bg3) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* =========================================================
   Registro/Login (bloque dedicado para customización)
   Cambiá fondos/estructura tocando SOLO .ffm26-auth... o variables :root --ffm26-auth-...
   ========================================================= */
.ffm26-auth{}
.ffm26-auth__cols{}
.ffm26-auth__box{}
.ffm26-auth__form{}
.ffm26-auth__input{}
.ffm26-auth__btn{}
.ffm26-auth__hint{}
.ffm26-googlebtn{}
.ffm26-auth__alt{}
.ffm26-auth__or{}

.ffm26-game__sectiontitle{
  margin: 6px 0 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.ffm26-game__sectiontitle::after{
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 10px auto 0;
  background: rgba(255,255,255,.32);
  border-radius: 2px;
}
.ffm26-game .ffm26-auth__box.ffm26-surface{
  padding: var(--ffm26-card-pad);
  color: var(--ffm26-text);
  background: var(--ffm26-auth-box-bg);
}
.ffm26-game .ffm26-auth__box h3{
  margin: 0 0 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ffm26-text);
}
.ffm26-auth__form p{
  margin: 0 0 10px;
}
.ffm26-auth__form p:last-of-type{
  margin-bottom: 0;
}
.ffm26-auth__input{
  box-sizing: border-box;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--ffm26-auth-input-border);
  background: var(--ffm26-auth-input-bg);
  color: var(--ffm26-text);
  font-size: 15px;
}
.ffm26-auth__input::placeholder{
  color: rgba(255,255,255,.45);
}
.ffm26-auth__input:focus{
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.14);
}
.ffm26-auth__btn{
  cursor: pointer;
  width: 100%;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 12px;
  border: none;
  color: var(--ffm26-auth-btn-text);
  background: var(--ffm26-auth-btn-bg);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.ffm26-auth__btn:hover{
  filter: brightness(1.06);
}
.ffm26-auth__btn--small{
  width: auto;
  display: inline-block;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: .05em;
}
.ffm26-game .ffm26-auth__hint{
  margin: 12px 0 0;
  color: var(--ffm26-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.ffm26-game .ffm26-userbar.ffm26-surface{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.ffm26-userbar__left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.ffm26-userbar__name{
  font-weight: 700;
  font-size: 16px;
}
.ffm26-userbar__pts{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.88);
  opacity: .95;
}
.ffm26-panel__pointsinline{
  margin: -4px 0 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
.ffm26-userbar__logout{
  margin: 0;
}
.ffm26-notice__form{
  margin: 12px 0 0;
}
.ffm26-panel__shell.ffm26-surface{
  padding: var(--ffm26-card-pad);
  margin-top: 2px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.ffm26-panel__shell .ffm26-panel__submitwrap{
  margin-top: 16px;
  margin-bottom: 0;
}

/* Panel de predicciones: mismas tarjetas que el fixture */
.ffm26-panel-form{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.ffm26-panel-list{
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.ffm26-panel__groupfold{
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 6px;
  border-radius: 14px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.ffm26-panel__groupfold > summary.ffm26-panel__grouphead{
  list-style: none;
  cursor: pointer;
  text-align: center;
  color: var(--ffm26-text);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
  padding: 14px 36px 14px 28px;
  position: relative;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ffm26-panel__groupdot{
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.ffm26-panel__groupdot--red{
  background: #e53935;
}
.ffm26-panel__groupdot--yellow{
  background: #ffc107;
}
.ffm26-panel__groupdot--green{
  background: #43a047;
}
.ffm26-panel__grouptitle{
  display: block;
  width: 100%;
}
.ffm26-panel__groupfold > summary.ffm26-panel__grouphead::-webkit-details-marker{
  display: none;
}
.ffm26-panel__groupfold > summary.ffm26-panel__grouphead::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.ffm26-panel__groupfold[open] > summary.ffm26-panel__grouphead::after{
  transform: rotate(-135deg);
  margin-top: -2px;
}
.ffm26-panel__groupfold[open] > summary.ffm26-panel__grouphead{
  border-bottom-color: rgba(255,255,255,.06);
}
.ffm26-panel__groupbody{
  padding: 4px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ffm26-panel-list > .ffm26-panel__groupfold:first-of-type{
  margin-top: 2px;
}
.ffm26-panel-card--locked{
  opacity: .9;
  filter: saturate(.92);
}
.ffm26-panel-pred{
  min-width: 0;
  gap: 8px;
}
.ffm26-panel__input{
  width: 52px;
  max-width: 52px;
  padding: 8px 4px;
  text-align: center;
  font: inherit;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ffm26-text);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
}
.ffm26-panel__input:focus{
  outline: none;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.2);
}
.ffm26-panel__input::-webkit-outer-spin-button,
.ffm26-panel__input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.ffm26-panel__input[type="number"]{
  appearance: textfield;
  -moz-appearance: textfield;
}
.ffm26-panel__lockedhint{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 210, 140, .98);
}
.ffm26-panel__submitwrap{
  margin: 20px 0 8px;
  text-align: center;
}
.ffm26-panel__submit{
  cursor: pointer;
  padding: 14px 32px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6b3ddf, #3d1999);
  box-shadow: 0 12px 28px rgba(0,0,0,.38);
}
.ffm26-panel__submit:hover{
  filter: brightness(1.08);
}
.ffm26-panel__empty.ffm26-surface{
  color: var(--ffm26-muted);
  padding: 20px 18px;
  text-align: center;
  line-height: 1.5;
}

/* Tabla de posiciones: misma tarjeta */
.ffm26-leaderboard-card{
  padding: 0;
  overflow: hidden;
}
.ffm26-leaderboard{
  width: 100%;
  border-collapse: collapse;
  color: var(--ffm26-text);
  font-size: 15px;
}
.ffm26-leaderboard thead th{
  text-align: left;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ffm26-muted);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ffm26-leaderboard tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ffm26-leaderboard tbody tr:last-child td{
  border-bottom: none;
}
.ffm26-leaderboard__rank{
  width: 48px;
  font-weight: 800;
  color: var(--ffm26-muted);
}
.ffm26-leaderboard__pts{
  text-align: right;
  font-weight: 800;
  font-size: 17px;
}

@media (max-width: 720px){
  .ffm26-auth__cols{ grid-template-columns: 1fr; }
  .ffm26-auth__btn,
  .ffm26-panel__submit,
  .ffm26-game .ffm26-userbar .ffm26-auth__btn{
    min-height: 48px;
  }
  .ffm26-auth__input{
    min-height: 48px;
    font-size: 16px;
  }
}

/* Toasts (AJAX) + accesibilidad */
.ffm26-toast-host{
  position: fixed;
  z-index: 999999;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  align-items: center;
}
.ffm26-toast{
  pointer-events: auto;
  max-width: 420px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(135deg, rgba(60, 30, 120, .96), rgba(30, 10, 70, .98));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  animation: ffm26-toast-in .28s ease-out;
}
.ffm26-toast--ok{
  border-color: rgba(120, 220, 150, .45);
}
.ffm26-toast--err{
  background: linear-gradient(135deg, rgba(130, 35, 55, .96), rgba(65, 15, 30, .98));
  border-color: rgba(255, 160, 160, .35);
}
.ffm26-toast--out{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
@keyframes ffm26-toast-in{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .ffm26-toast{ animation: none; }
  .ffm26-toast--out{ transition: none; }
}
.ffm26-sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ffm26-btn--busy{
  cursor: wait;
  opacity: .88;
}
.ffm26-panel-standalone{
  margin-top: 8px;
}

/* Figuritas (vista Mis Figuritas en el panel) */
.ffm26-figuritas-page__hint{
  opacity: .9;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 16px;
  font-weight: 600;
}
.ffm26-figuritas-hub__scratch{
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ffm26-figuritas-hub__scratch-title{
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 900;
}
.ffm26-figuritas-hub__scratch-sub{
  margin: 0 0 12px;
  font-size: 14px;
  opacity: .88;
}
.ffm26-figuritas-hub__album-title{
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
}
.ffm26-scratch--inline{
  margin: 0 auto;
}
.ffm26-figuritas-empty{
  opacity: .9;
  font-weight: 700;
  margin: 0;
}
.ffm26-figuritas-modal{
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ffm26-figuritas-modal[hidden]{
  display: none !important;
}
.ffm26-figuritas-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  cursor: pointer;
}
.ffm26-figuritas-modal__dialog{
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(120, 70, 220, .35), rgba(40, 15, 95, .55));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  color: var(--ffm26-text);
}
.ffm26-figuritas-modal__dialog--album{
  max-width: 480px;
}
.ffm26-figuritas-lightbox__img{
  display: block;
  max-width: 100%;
  max-height: min(52vh, 420px);
  width: auto;
  height: auto;
  margin: 8px auto 0;
  border-radius: 12px;
  object-fit: contain;
}
.ffm26-figuritas-lightbox__title{
  text-align: center;
  margin: 14px 36px 4px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.3;
}
.ffm26-figuritas-modal__x{
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
  padding: 4px 8px;
}
.ffm26-figuritas-modal__title:not(.ffm26-figuritas-lightbox__title){
  margin: 0 28px 6px 0;
  font-size: 1.25rem;
}
.ffm26-figuritas-modal__sub{
  margin: 0 0 14px;
  opacity: .9;
  font-size: 14px;
}
.ffm26-figuritas-modal__msg{
  margin: 14px 0 0;
  font-weight: 800;
  text-align: center;
}

/* Celebración al ganar figurita (confeti) */
.ffm26-figuritas-celebration{
  position: fixed;
  inset: 0;
  z-index: 100070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ffm26-figuritas-celebration[hidden]{
  display: none !important;
}
.ffm26-figuritas-celebration__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  cursor: pointer;
}
.ffm26-figuritas-celebration__stage{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ffm26-figuritas-celebration__confetti{
  position: absolute;
  left: 50%;
  top: 42%;
  width: 1px;
  height: 1px;
  pointer-events: none;
  overflow: visible;
}
.ffm26-confetti-piece{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w, 8px);
  height: var(--h, 12px);
  margin: calc(var(--h, 12px) / -2) 0 0 calc(var(--w, 8px) / -2);
  background: var(--c, #ff0055);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255,255,255,.35);
  opacity: 1;
  animation: ffm26-confetti-burst 2.35s cubic-bezier(0.12, 0.72, 0.12, 1) forwards;
}
@keyframes ffm26-confetti-burst{
  0%{
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  65%{
    opacity: 1;
  }
  100%{
    transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 360deg)) scale(0.3);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce){
  .ffm26-confetti-piece{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .ffm26-figuritas-celebration__dialog{
    animation: none !important;
  }
}
.ffm26-figuritas-celebration__dialog{
  position: relative;
  width: 100%;
  padding: 28px 22px 24px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(40, 12, 90, .96), rgba(18, 6, 48, .98));
  border: 2px solid rgba(255, 215, 80, .45);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 40px rgba(138, 43, 226, .45),
    0 24px 50px rgba(0,0,0,.55);
  animation: ffm26-celebration-pop 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes ffm26-celebration-pop{
  0%{
    transform: scale(0.82) translateY(12px);
    opacity: 0;
    filter: blur(4px);
  }
  70%{
    transform: scale(1.03) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
  100%{
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}
.ffm26-figuritas-celebration__kicker{
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffe566;
  text-shadow: 0 0 20px rgba(255, 229, 102, .5);
}
.ffm26-figuritas-celebration__fig-name{
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 16px rgba(120, 200, 255, .35);
}
.ffm26-figuritas-celebration__fig-name:empty{
  display: none;
}
.ffm26-figuritas-celebration__headline{
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(255,255,255,.95);
}
.ffm26-figuritas-celebration__sub{
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.45;
  opacity: .88;
  font-weight: 600;
}
.ffm26-figuritas-celebration__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  color: #1a0528;
  background: linear-gradient(180deg, #ffe566, #ffb300);
  box-shadow: 0 4px 0 rgba(180, 100, 0, .55), 0 8px 24px rgba(0,0,0,.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ffm26-figuritas-celebration__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(180, 100, 0, .55), 0 12px 28px rgba(0,0,0,.4);
}
.ffm26-figuritas-celebration__btn:active{
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(180, 100, 0, .55), 0 4px 16px rgba(0,0,0,.3);
}

.ffm26-scratch{
  position: relative;
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.2);
}
.ffm26-scratch__under{
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a1850, #1a0a30);
}
.ffm26-scratch__cta-layer{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
.ffm26-scratch__cta-layer[hidden]{
  display: none !important;
}
.ffm26-scratch__placeholder{
  font-size: 120px;
  font-weight: 900;
  opacity: .35;
  user-select: none;
}
.ffm26-scratch__cta{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}
.ffm26-scratch__tap-icon{
  display: block;
  width: 80px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  margin: 0;
  pointer-events: none;
  user-select: none;
  filter: brightness(0) invert(1) drop-shadow(0 2px 16px rgba(255,255,255,.35)) drop-shadow(0 0 24px rgba(180, 140, 255, .4));
}
.ffm26-scratch__under > img{
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}
.ffm26-scratch__canvas{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.ffm26-figuritas-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.ffm26-figuritas-grid__cell{
  text-align: center;
  border-radius: 12px;
  padding: 10px 8px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ffm26-figuritas-grid__cell:hover,
.ffm26-figuritas-grid__cell:focus-within{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.22);
  outline: none;
}
.ffm26-figuritas-grid__cell img{
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 6px;
}
.ffm26-figuritas-grid__name{
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  opacity: .95;
}

