/* Reto Chamusca — crear + landing + podio animado. Mobile-first. */
.cha-view {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Hero del partido ---- */
.cha-hero {
  position: relative;
  text-align: center;
  padding: 22px 16px 18px;
  border-radius: var(--r-lg, 22px);
  background: var(--surface, #fff);
  border: 1px solid var(--hairline, #E6E9EE);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cha-hero__glow {
  position: absolute; inset: -40% 20% auto 20%; height: 180px;
  background: var(--grad-brand); filter: blur(60px); opacity: .16; pointer-events: none;
}
.cha-eyebrow { margin: 0 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3, #8A93A3); }
.cha-title { margin: 0; font-family: var(--font-display, sans-serif); font-weight: 800; color: var(--ink); }
.cha-match { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cha-match__team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.cha-match__team b { font-size: .92rem; color: var(--ink); text-align: center; }
.cha-match__vs { font-family: var(--font-display, sans-serif); font-weight: 700; color: var(--ink-3); font-size: 1.1rem; }
.cha-when { margin: 12px 0 0; font-size: .82rem; color: var(--ink-2, #4A5160); }
.cha-hero__sub { margin: 12px 0 0; font-size: .9rem; color: var(--ink-2); }

.cha-creator { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 0; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.cha-creator .gz-ico { width: 16px; height: 16px; color: var(--brand-2); }

/* ---- Card (crear / unirse) ---- */
.cha-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 16px; border-radius: var(--r-md, 16px);
  background: var(--surface, #fff); border: 1px solid var(--hairline, #E6E9EE); box-shadow: var(--shadow-sm);
}
.cha-join__title { margin: 0; text-align: center; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.cha-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border-radius: var(--r-sm, 10px); border: 1px solid var(--hairline, #E6E9EE);
  background: var(--surface-soft, #F6F7F9); font-size: 1rem; color: var(--ink);
}
.cha-input:focus { outline: 2px solid var(--brand-1, #4F46E5); outline-offset: 1px; background: #fff; }

/* ---- Stepper de marcador ---- */
.cha-stepper { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.cha-stepper__side { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.cha-stepper__crest { box-shadow: var(--shadow-sm); border-radius: 50%; }
.cha-stepper__name { font-size: .82rem; color: var(--ink-2); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cha-stepper__ctr { display: flex; align-items: center; gap: 10px; }
.cha-stepper__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hairline, #E6E9EE);
  background: var(--surface-soft, #F6F7F9); color: var(--ink); font-size: 1.4rem; line-height: 1; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform var(--t-fast, 140ms) var(--ease);
}
.cha-stepper__btn:active { transform: scale(.9); }
.cha-stepper__num { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 2rem; min-width: 1.4ch; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink); }
.cha-stepper__sep { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.6rem; color: var(--ink-3); padding-top: 44px; }

/* ---- Botones ---- */
.cha-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border: none; border-radius: var(--r-pill, 999px);
  font-weight: 700; font-size: 1rem; cursor: pointer; color: #fff; background: var(--grad-brand);
  box-shadow: var(--shadow-md); transition: transform var(--t-fast, 140ms) var(--ease), opacity var(--t, 220ms);
}
.cha-btn:active { transform: translateY(1px) scale(.99); }
.cha-btn:disabled { opacity: .6; cursor: default; }
.cha-btn .gz-ico { width: 18px; height: 18px; }
.cha-btn--big { width: 100%; padding: 15px; font-size: 1.05rem; }
.cha-btn--ghost { background: var(--surface-soft, #F6F7F9); color: var(--ink); box-shadow: none; border: 1px solid var(--hairline); }
.cha-btn--share { background: var(--ink, #0C1019); }

.cha-err { margin: 0; color: var(--loss, #DC2626); font-size: .86rem; text-align: center; }
.cha-locked { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 0; padding: 14px; border-radius: var(--r-md, 16px); background: var(--surface-soft); color: var(--ink-2); font-weight: 600; }
.cha-locked .gz-ico { width: 16px; height: 16px; }

/* ---- Pálpitos (lista) ---- */
.cha-entries__title, .cha-podium__title { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.cha-entries__empty { margin: 0; color: var(--ink-3); font-size: .9rem; }
.cha-entries__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cha-entries__row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm, 10px); background: var(--surface-soft, #F6F7F9);
}
.cha-entries__row.is-mine { background: color-mix(in srgb, var(--brand-1) 10%, var(--surface-soft)); border: 1px solid color-mix(in srgb, var(--brand-1) 30%, transparent); }
.cha-entries__rank { font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 1.4ch; }
.cha-entries__name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cha-entries__name em { color: var(--brand-2); font-style: normal; font-weight: 700; font-size: .82rem; }
.cha-entries__score { font-family: var(--font-display, sans-serif); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.cha-entries__pts { font-size: .82rem; font-weight: 700; color: var(--goal, #16A34A); }
.cha-entries__rank--medal { font-size: 1.05rem; min-width: 1.6ch; text-align: center; }
.cha-entries__row.is-tied .cha-entries__rank { color: var(--brand-2, #7C3AED); }
.cha-entries__note { margin: 8px 0 0; font-size: .8rem; color: var(--ink-3); text-align: center; }
.cha-scoring { margin: 14px 0 0; font-size: .82rem; line-height: 1.5; color: var(--ink-2); background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--r-md, 16px); padding: 11px 13px; }
.cha-scoring strong { color: var(--ink); font-weight: 700; }

/* ---- Podio animado ---- */
.cha-podium { position: relative; padding: 16px; border-radius: var(--r-lg, 22px); background: var(--surface, #fff); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); overflow: hidden; }
.cha-podium__result { margin: 0 0 14px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.cha-podium__empty { margin: 0; color: var(--ink-3); }
.cha-podium__stand { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.cha-podium__slot { flex: 1; max-width: 33%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cha-podium__slot--empty { visibility: hidden; }
.cha-podium__medal { font-size: 1.8rem; line-height: 1; }
.cha-podium__names { display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 100%; }
.cha-podium__name { font-weight: 700; color: var(--ink); font-size: .86rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cha-podium__slot.is-tied .cha-podium__name { font-size: .78rem; }
.cha-podium__tied { font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.cha-podium__pick { font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cha-podium__bar {
  width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px;
  border-radius: var(--r-sm, 10px) var(--r-sm, 10px) 0 0; color: #fff; font-weight: 800;
  transform-origin: bottom; animation: cha-rise var(--t-slow, 380ms) var(--ease) both;
}
.cha-podium__pts { font-size: .82rem; }
.cha-podium__slot--1 .cha-podium__bar { height: 86px; background: linear-gradient(180deg, #F6C944, #E0A21B); }
.cha-podium__slot--2 .cha-podium__bar { height: 64px; background: linear-gradient(180deg, #C7CDD6, #9AA3B2); animation-delay: .08s; }
.cha-podium__slot--3 .cha-podium__bar { height: 48px; background: linear-gradient(180deg, #E2A877, #C07C45); animation-delay: .16s; }
@keyframes cha-rise { from { transform: scaleY(.05); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }

.cha-confetti-host { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cha-confetti {
  position: absolute; top: -8px; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation-name: cha-fall; animation-timing-function: cubic-bezier(.22,.61,.36,1); animation-fill-mode: forwards;
}
@keyframes cha-fall {
  0% { transform: translate(0,0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--cx, 0), 360px) rotate(var(--cr, 360deg)); opacity: 0; }
}

/* ---- Momentos bonus (en vivo: medio tiempo / pre-penales) ---- */
.cha-moment {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  border-radius: var(--r-md, 16px);
  background: color-mix(in srgb, var(--live) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--live) 35%, var(--hairline));
  box-shadow: var(--shadow-sm);
}
.cha-moment__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cha-moment__title { font-weight: 800; color: var(--ink); }
.cha-moment__pts { font-weight: 800; color: #fff; background: var(--live, #FF3B30); border-radius: var(--r-pill, 999px); padding: 3px 10px; font-size: .8rem; }
.cha-moment__q { margin: 0; color: var(--ink-2); font-size: .95rem; }
.cha-moment__opts { display: grid; gap: 8px; }
.cha-moment__opts--2 { grid-template-columns: 1fr 1fr; }
.cha-moment__opts--3 { grid-template-columns: 1fr 1fr 1fr; }
.cha-moment__opt {
  padding: 12px 8px; border-radius: var(--r-sm, 10px); border: 1px solid var(--hairline);
  background: var(--surface, #fff); color: var(--ink); font-weight: 700; font-size: .9rem; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: transform var(--t-fast, 140ms) var(--ease), border-color var(--t, 220ms), background var(--t, 220ms);
}
.cha-moment__opt:active { transform: scale(.97); }
.cha-moment__opt.is-picked { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.cha-moment__answered { margin: 0; text-align: center; font-size: .84rem; font-weight: 700; color: var(--goal, #16A34A); }

/* ---- Compartir ---- */
.cha-share { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cha-share__hint { margin: 0; font-size: .86rem; color: var(--ink-2); }
.cha-share__count { margin: 0; font-weight: 700; color: var(--ink); }
.cha-share__brought { margin: 0; font-size: .84rem; font-weight: 700; color: var(--brand-2, #7C3AED); }
.cha-share__shared { margin: 0; font-size: .84rem; font-weight: 700; color: var(--ink-2, #4A5160); }
.cha-invitedby { margin: 0; text-align: center; font-size: .84rem; color: var(--ink-3, #8A93A3); }
.cha-share__row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cha-share__qrbtn { padding: 13px 16px; }
.cha-qr { margin-top: 4px; padding: 12px; background: #fff; border: 1px solid var(--hairline, #E6E9EE); border-radius: var(--r-md, 16px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cha-qr__img { display: block; width: 200px; height: 200px; max-width: 62vw; }
.cha-qr__dl { padding: 9px 16px; font-size: .9rem; }

.cha-foot { text-align: center; font-size: .84rem; color: var(--ink-3); margin: 6px 0 0; }
.cha-foot__link { background: none; border: none; color: var(--brand-1, #4F46E5); font-weight: 700; cursor: pointer; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .cha-podium__bar { animation: none; }
  .cha-stepper__btn { transition: none; }
}

/* ---- CTA en el Match Center ---- */
.mc-chamusca-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; margin: 0; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand-2) 30%, var(--hairline)); border-radius: var(--r-md, 16px);
  background: color-mix(in srgb, var(--brand-1) 6%, var(--surface)); box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast, 140ms) var(--ease);
}
.mc-chamusca-cta:active { transform: scale(.99); }
.mc-chamusca-cta__icon { display: inline-flex; width: 38px; height: 38px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--grad-brand); color: #fff; }
.mc-chamusca-cta__icon .gz-ico { width: 20px; height: 20px; }
.mc-chamusca-cta__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mc-chamusca-cta__title { font-weight: 700; color: var(--ink); }
.mc-chamusca-cta__text { font-size: .84rem; color: var(--ink-2); }
.mc-chamusca-cta__chev { color: var(--ink-3); font-weight: 700; }

/* Lista "tus chamuscas de este partido" — panel DESTACADO de marca para que no
   se pierda sobre el fondo blanco del Match Center. */
.mc-chamusca-mine {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
  padding: 12px 12px 14px;
  border-radius: var(--r-md, 16px);
  background: color-mix(in srgb, var(--brand-3, #EC4899) 8%, var(--surface, #fff));
  border: 1px solid color-mix(in srgb, var(--brand-3, #EC4899) 32%, var(--hairline, #E6E9EE));
  box-shadow: var(--shadow-sm);
}
.mc-chamusca-mine__title {
  margin: 0 0 2px; display: flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--brand-2, #7C3AED);
}
.mc-chamusca-mine__title .gz-ico { width: 16px; height: 16px; color: var(--brand-2, #7C3AED); }
.mc-chamusca-mine__item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 12px; border-radius: var(--r-sm, 10px);
  border: 1px solid var(--hairline, #E6E9EE); border-left: 3px solid var(--brand-3, #EC4899);
  background: var(--surface, #fff); box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast, 140ms) var(--ease), box-shadow var(--t, 220ms) var(--ease);
}
.mc-chamusca-mine__item:active { transform: scale(.99); }
.mc-chamusca-mine__code {
  font-family: var(--font-display, sans-serif); font-weight: 800; letter-spacing: .06em; font-size: .8rem;
  color: #fff; background: var(--grad-brand); padding: 3px 10px; border-radius: var(--r-pill, 999px);
}
.mc-chamusca-mine__meta { flex: 1; font-size: .82rem; color: var(--ink-2, #4A5160); font-weight: 600; }
.mc-chamusca-mine__item .mc-chamusca-cta__chev { color: var(--brand-2, #7C3AED); font-size: 1.15rem; font-weight: 800; }
