/* =========================================================================
   Polla Mundialera — brand layer over Convecta tokens.
   Festive Mundial energy, kept legible. Built on colors_and_type.css.
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Defensive: keep editor text-instrumentation spans inline so they don't break layout */
.__om-t { display: inline !important; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: #F4EFE6;
  min-height: 100vh;
}
button, input, select { font-family: inherit; }
#root { min-height: 100vh; }

/* warm festive canvas */
.app-stage {
  min-height: 100vh;
  background:
    radial-gradient(820px 520px at 88% -8%, rgba(243,147,57,.16), transparent 60%),
    radial-gradient(720px 520px at -6% 8%, rgba(73,185,165,.14), transparent 60%),
    radial-gradient(700px 600px at 50% 120%, rgba(189,86,156,.10), transparent 60%),
    #F4EFE6;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 0 80px;
}

/* ---------- Top brand bar + mode switch --------------------------------- */
.topbar {
  width: 100%; max-width: 1320px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px 8px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px; position: relative;
  background: radial-gradient(circle at 32% 28%, #fff 0 3px, transparent 4px),
              conic-gradient(from 200deg, var(--c-orange), var(--c-red), var(--c-magenta), var(--c-plum), var(--c-teal), var(--c-orange));
  box-shadow: 0 8px 18px rgba(243,147,57,.35);
  display: grid; place-items: center;
  overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: #15171c;
  background-image:
    radial-gradient(circle at 50% 38%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 26% 64%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 74% 64%, #fff 0 12%, transparent 13%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.brand-name { line-height: 1.05; }
.brand-name b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: -.02em; color: var(--n-900); white-space: nowrap;
}
.brand-name span {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-orange-deep); margin-top: 3px; white-space: nowrap;
}
.brand-name.on-dark b { color: #fff; }

.modeswitch {
  display: inline-flex; background: #fff; border-radius: var(--r-pill);
  padding: 4px; box-shadow: var(--shadow-1); border: 1px solid var(--border);
}
.modeswitch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--fg-2); padding: 9px 18px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all 150ms ease-out;
}
.modeswitch button.is-active { background: var(--n-900); color: #fff; }
.poweredby { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--fg-3); }
.poweredby img { height: 15px; opacity: .8; }

/* ---------- Generic atoms ----------------------------------------------- */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; line-height: 1; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; white-space: nowrap;
  transition: background 150ms, box-shadow 150ms, transform 80ms, color 150ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-orange); color: #fff; box-shadow: 0 6px 14px rgba(243,147,57,.32); }
.btn-primary:hover { background: var(--c-orange-deep); }
.btn-secondary { background: #fff; color: var(--n-800); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--n-50); }
.btn-dark { background: var(--n-900); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: rgba(0,0,0,.05); color: var(--fg-1); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 8px 13px; font-size: 12.5px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 11.5px; font-family: var(--font-display);
  font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.chip-orange { background: var(--c-orange-tint); color: var(--c-orange-deep); }
.chip-red { background: var(--c-red-tint); color: var(--c-red-deep); }
.chip-teal { background: var(--c-teal-tint); color: #1d7a68; }
.chip-magenta { background: var(--c-magenta-tint); color: var(--c-magenta-deep); }
.chip-blue { background: var(--c-blue-tint); color: var(--c-blue-deep); }
.chip-neutral { background: var(--n-100); color: var(--n-700); }
.chip-live { background: var(--c-red); color: #fff; }
.chip-live .dot { background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--fg-2); }
.input {
  font-family: var(--font-body); font-size: 14px; padding: 11px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: #fff; color: var(--fg-1); outline: none; width: 100%;
}
.input:focus { border-color: var(--c-orange); box-shadow: var(--ring-focus); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23706F6F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }

/* points-at-stake pill */
.pts-pill {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  color: var(--c-orange-deep); background: var(--c-orange-tint);
  padding: 4px 10px; border-radius: var(--r-pill); flex: none;
}
.pts-pill svg, .pts-pill i { width: 13px; height: 13px; }

/* ======================= PARTICIPANT (mobile) =========================== */
.phone {
  width: 402px; height: 858px; flex: none;
  background: #0d0f13; border-radius: 54px; padding: 11px;
  box-shadow: 0 40px 90px rgba(31,31,31,.34), 0 0 0 2px rgba(0,0,0,.5), inset 0 0 0 2px #2a2d34;
  position: relative; margin-top: 8px;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
  background: var(--n-50); position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 30px; background: #0d0f13; border-radius: 0 0 18px 18px; z-index: 50;
}
.statusbar {
  height: 50px; flex: none; display: flex; align-items: flex-end;
  justify-content: space-between; padding: 0 24px 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--n-900);
  position: relative; z-index: 40;
}
.statusbar.on-dark { color: #fff; }
.statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar { width: 0; }
.scr { padding: 4px 18px 24px; }

/* screen header */
.shead { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.shead-hi { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.shead-name { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; color: var(--n-900); }
.scr-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--n-900); padding: 6px 0 4px; }
.avatar {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--c-orange), var(--c-magenta));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px;
  display: grid; place-items: center; box-shadow: var(--shadow-2);
}
.avatar-sm { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
.avatar-xs { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }

/* section heading */
.sec { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 12px; }
.sec h3 { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--n-900); }
.sec a { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--c-emerald); cursor: pointer; }

/* hero points card — "estadio de noche" */
.ptcard {
  border-radius: var(--r-2xl); padding: 22px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(420px 220px at 88% -20%, rgba(243,147,57,.55), transparent 60%),
    radial-gradient(360px 260px at -10% 120%, rgba(73,185,165,.4), transparent 60%),
    linear-gradient(150deg, #21242c, #15171c);
  box-shadow: var(--shadow-3);
}
.ptcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 100% 30px; opacity: .5;
}
.ptcard > * { position: relative; z-index: 1; }
.ptcard-eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ptcard-num { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: .92; letter-spacing: -.04em; margin-top: 6px; }
.ptcard-num small { font-size: 20px; font-weight: 700; color: rgba(255,255,255,.6); margin-left: 6px; letter-spacing: 0; }
.ptcard-groups { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.ptcard-gpos {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-pill);
  padding: 6px 12px 6px 6px; backdrop-filter: blur(4px);
}
.ptcard-gpos .badge-pos { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; color: #fff; }
.ptcard-gpos .gname { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; }
.ptcard-gpos .gname small { display: block; font-size: 10px; color: rgba(255,255,255,.55); font-weight: 600; }

/* upcoming-to-bet card (compact) */
.umatch {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: 14px; box-shadow: var(--shadow-1); cursor: pointer;
  transition: box-shadow 150ms, transform 80ms; display: flex; flex-direction: column; gap: 10px;
}
.umatch:hover { box-shadow: var(--shadow-2); }
.umatch-top { display: flex; align-items: center; justify-content: space-between; }
.umatch-meta { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.umatch-teams { display: flex; align-items: center; gap: 12px; }
.umt { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.umt b { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--n-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.umt.right { flex-direction: row-reverse; text-align: right; }
.umatch-vs { font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--fg-mute); }
.countdown { font-family: var(--font-mono); font-size: 11.5px; color: var(--c-red-deep); font-weight: 700; }

/* recent result row */
.rrow {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  margin-bottom: 8px;
}
.rrow-score { display: flex; align-items: center; gap: 8px; flex: 1; }
.rrow-team { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--n-900); }
.rrow-num { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--n-900); padding: 0 2px; }
.rrow-earn { font-family: var(--font-display); font-weight: 800; font-size: 13px; flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.rrow-earn small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--fg-3); }

/* ----- Apostar match card ----- */
.mcard {
  background: #fff; border-radius: var(--r-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-1); margin-bottom: 16px; overflow: hidden;
}
.mcard.is-locked { background: var(--n-50); }
.mcard-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); gap: 8px;
}
.mcard-head .meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.mcard-head .stage { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-head .kick { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.mcard-body { padding: 18px 16px; }
.mcard-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mteam { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.mteam b { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--n-900); line-height: 1.2; }
.mcard-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mcard-mid .vs { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--fg-mute); }

/* score stepper */
.score-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 14px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; }
.stepper button {
  width: 34px; height: 44px; border: 1px solid var(--border-strong); background: #fff;
  color: var(--fg-1); cursor: pointer; font-size: 18px; display: grid; place-items: center;
  transition: background 120ms;
}
.stepper button:hover { background: var(--n-100); }
.stepper button:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.stepper button:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.stepper .val {
  width: 50px; height: 44px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  font-size: 24px; color: var(--n-900); background: var(--bg-sunken);
}
.score-dash { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--fg-mute); }
.score-final { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--n-900); }

/* knockout passer */
.passer { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.passer-label { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--fg-2); margin-bottom: 10px; }
.passer-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.passer-opt {
  display: flex; align-items: center; gap: 9px; padding: 11px 12px; cursor: pointer;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-md); background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--n-800);
  transition: all 120ms;
}
.passer-opt:hover { border-color: var(--c-plum); }
.passer-opt.is-sel { border-color: var(--c-plum); background: var(--c-plum-tint); color: var(--c-plum-deep); box-shadow: inset 0 0 0 1px var(--c-plum); }

/* side bets */
.sidebets { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 14px; }
.sidebets-h { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-magenta-deep); }
.sidebet { }
.sidebet-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sidebet-q span { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--n-800); }
.yesno { display: flex; gap: 8px; }
.yesno button {
  flex: 1; padding: 9px; border: 1.5px solid var(--border-strong); background: #fff;
  border-radius: var(--r-md); cursor: pointer; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; color: var(--fg-2); transition: all 120ms;
}
.yesno button.is-sel-yes { border-color: var(--c-emerald); background: var(--c-teal-tint); color: #1d7a68; }
.yesno button.is-sel-no { border-color: var(--c-red); background: var(--c-red-tint); color: var(--c-red-deep); }
.numfield { display: flex; align-items: center; gap: 8px; }
.numfield .input { max-width: 110px; }
.numfield .unit { font-size: 12.5px; color: var(--fg-3); }

.mcard-foot { padding: 0 16px 16px; }
.locked-banner {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--n-100); border-top: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--fg-2);
}
.saved-banner {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; margin-top: 4px;
  background: var(--c-teal-tint); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: #1d7a68;
}

/* filter chips row */
.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { height: 0; }
.fchip {
  flex: none; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  color: var(--fg-2); cursor: pointer; white-space: nowrap; transition: all 120ms;
}
.fchip.is-active { background: var(--n-900); color: #fff; border-color: var(--n-900); }

/* ----- Clasificación ----- */
.gselect { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 14px; scrollbar-width: none; }
.gselect::-webkit-scrollbar { height: 0; }
.gtab {
  flex: none; display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px;
  border-radius: var(--r-pill); border: 1.5px solid var(--border); background: #fff; cursor: pointer;
  transition: all 120ms;
}
.gtab.is-active { border-color: var(--n-900); box-shadow: var(--shadow-1); }
.gtab .gbadge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 11px; color: #fff; }
.gtab .gtab-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--n-900); }
.gtab .gtab-name small { display: block; font-weight: 600; font-size: 10px; color: var(--fg-3); }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 6px 0 18px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pod-ava { position: relative; }
.pod-ava .crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: var(--c-orange); }
.pod-medal { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 11px; color: #fff; border: 2px solid #fff; box-shadow: var(--shadow-1); }
.pod-name { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--n-900); text-align: center; line-height: 1.15; }
.pod-pts { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.pod-block { width: 100%; border-radius: var(--r-md) var(--r-md) 0 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 26px; }
.pod-1 .pod-block { height: 78px; background: linear-gradient(180deg, var(--c-orange), var(--c-orange-deep)); }
.pod-2 .pod-block { height: 58px; background: linear-gradient(180deg, var(--n-400), var(--n-500)); }
.pod-3 .pod-block { height: 44px; background: linear-gradient(180deg, #C8965B, #a87a44); }

/* ranking rows */
.rank { display: flex; flex-direction: column; gap: 6px; }
.rrk {
  display: grid; grid-template-columns: 30px auto 1fr auto auto; align-items: center; gap: 11px;
  padding: 11px 13px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
}
.rrk.is-me { border-color: var(--c-orange); background: var(--c-orange-tint); box-shadow: inset 0 0 0 1px var(--c-orange); }
.rrk-pos { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--fg-2); text-align: center; }
.rrk-name { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--n-900); }
.rrk-name small { display: block; font-weight: 600; font-size: 11px; color: var(--fg-3); }
.rrk-move { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.move-up { color: var(--c-emerald); }
.move-down { color: var(--c-red); }
.move-flat { color: var(--fg-mute); }
.rrk-pts { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--n-900); }
.rrk-pts small { font-size: 10px; color: var(--fg-3); font-weight: 700; }

/* ----- Mis apuestas stats ----- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 15px;
  display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden;
}
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; color: var(--n-900); }
.stat .lbl { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.stat .ic { position: absolute; top: 12px; right: 12px; opacity: .25; }

.hrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 8px;
}
.hrow-badge { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.hrow-badge.hit { background: var(--c-emerald); }
.hrow-badge.partial { background: var(--intent-warning); }
.hrow-badge.miss { background: var(--n-300); color: var(--n-600); }
.hrow-mid b { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--n-900); display: flex; align-items: center; gap: 6px; }
.hrow-mid small { font-size: 11.5px; color: var(--fg-3); }
.hrow-pts { font-family: var(--font-display); font-weight: 800; font-size: 16px; text-align: right; }
.hrow-pts small { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--fg-3); }

/* bottom nav */
.pnav {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 8px 8px 22px;
}
.pnav button {
  border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 6px 0; color: var(--fg-3);
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px; transition: color 120ms;
}
.pnav button.is-active { color: var(--c-orange-deep); }
.pnav button .nav-ic { width: 24px; height: 24px; display: grid; place-items: center; }

/* ---------- Topbar right cluster + device switch ----------------------- */
.topbar-right { display: flex; align-items: center; gap: 16px; }
.device-switch button { padding: 9px 12px; }

/* ======================= PARTICIPANT — desktop web ====================== */
.browser {
  width: min(1120px, 95vw); height: 826px; flex: none; margin-top: 6px;
  background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 40px 90px rgba(31,31,31,.22), 0 0 0 1px rgba(0,0,0,.03);
  display: flex; flex-direction: column;
}
.browser-bar {
  height: 48px; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 0 16px; background: var(--n-50); border-bottom: 1px solid var(--border);
}
.browser-lights { display: flex; gap: 7px; }
.browser-lights span { width: 12px; height: 12px; border-radius: 99px; background: var(--n-300); }
.browser-lights span:nth-child(1) { background: #FF5F57; }
.browser-lights span:nth-child(2) { background: #FEBC2E; }
.browser-lights span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 7px;
  justify-content: center; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px; font-size: 12.5px; color: var(--fg-2);
}
.browser-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--n-50); }
.web-scroll { flex: 1; overflow-y: auto; }

.web-topnav {
  flex: none; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.web-brand { display: flex; align-items: center; gap: 10px; }
.web-brand b { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; color: var(--n-900); white-space: nowrap; }
.web-nav { display: flex; gap: 4px; }
.web-nav button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font-display);
  font-weight: 700; font-size: 14px; color: var(--fg-2); padding: 9px 15px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 7px; transition: all 150ms ease-out;
}
.web-nav button:hover { color: var(--fg-1); background: var(--n-100); }
.web-nav button.is-active { background: var(--c-orange-tint); color: var(--c-orange-deep); }
.web-topnav-right { display: flex; align-items: center; gap: 12px; }
.web-pts { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--c-orange-deep); background: var(--c-orange-tint); padding: 6px 12px; border-radius: var(--r-pill); }

/* desktop content widths + multi-column */
.is-desktop .scr { padding: 28px 34px 70px; }
.is-desktop .scr-title { font-size: 30px; padding-bottom: 8px; }
.is-desktop .scr-feed { max-width: 780px; margin: 0 auto; }
.is-desktop .scr-wide { max-width: 1060px; margin: 0 auto; }
.is-desktop .scr-wide .mlist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.is-desktop .scr-wide .mlist .mcard { margin-bottom: 0; }
.is-desktop .inicio-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.is-desktop .stat-grid { grid-template-columns: repeat(4, 1fr); }
.is-desktop .shead { padding-top: 0; }
.is-desktop .fchips { flex-wrap: wrap; }

/* hide the in-screen greeting avatar on desktop (it's in the top nav) */
.is-desktop .shead > .avatar { display: none; }

/* ======================= PARTICIPANT — festive Inicio =================== */
.inicio { position: relative; }

/* World Cup flag garland (banderines) */
.bunting {
  position: relative; margin: 2px 0 16px; padding-top: 9px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.bunting::before {
  content: ""; position: absolute; top: 4px; left: -2px; right: -2px; height: 2px;
  background: linear-gradient(90deg, var(--n-300), var(--n-400) 50%, var(--n-300));
  border-radius: 2px;
}
.bflag { position: relative; flex: none; transform-origin: top center; filter: drop-shadow(0 3px 3px rgba(0,0,0,.14)); }
.bflag::before { content: ""; position: absolute; top: -7px; left: 50%; width: 1.5px; height: 8px; background: var(--n-400); }

/* jornada badge */
.jornada-badge {
  width: 58px; height: 58px; border-radius: 16px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--fest-accent, var(--c-orange)), var(--c-red));
  color: #fff; box-shadow: var(--shadow-2);
}
.jb-k { font-family: var(--font-display); font-weight: 800; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.jb-n { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; }

/* hero zone: poster + side */
.hero-jornada { display: flex; flex-direction: column; gap: 16px; margin-bottom: 4px; }
.is-desktop .hero-jornada { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 22px; align-items: start; }

.poster-hero { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-3); background: linear-gradient(150deg, #21242c, #15171c); }
.poster-hero image-slot { display: block; width: 100%; height: 480px; color: rgba(255,255,255,.82); }
.poster-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; }
.poster-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.poster-jornada-pill { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 11px; border-radius: 99px; }
.poster-group { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.92); color: var(--n-900); font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 5px 12px 5px 5px; border-radius: 99px; }
.poster-bottom { background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.45) 62%, transparent); margin: 0 -14px -14px; padding: 30px 16px 16px; }
.poster-kicker { color: rgba(255,255,255,.72); font-family: var(--font-display); font-weight: 800; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 11px; }
.poster-lineup { display: flex; flex-direction: column; gap: 9px; }
.pl-row { display: grid; grid-template-columns: 22px 26px 1fr auto; align-items: center; gap: 10px; }
.pl-medal { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 11px; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.pl-name { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.pl-pts { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.pl-pts small { font-size: 9px; opacity: .7; margin-left: 2px; font-weight: 700; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 13px 8px; text-align: center; box-shadow: var(--shadow-1); }
.ms-n { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--n-900); }
.ms-l { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-top: 2px; }

/* poster frame variants (tweak) — clearly distinct */
.poster-dorado .poster-hero { border: 4px solid #F6C453; border-radius: 24px; box-shadow: 0 0 0 2px #b9842b, 0 0 30px rgba(246,196,83,.30), var(--shadow-3); }
.poster-estadio .poster-hero { border: 5px solid #14171d; border-radius: 18px; box-shadow: 0 0 0 2px var(--fest-accent, var(--c-orange)), var(--shadow-3); }
.poster-limpio .poster-hero { border: 0; border-radius: 14px; box-shadow: var(--shadow-2); }

/* festividad levels (tweak) */
.fest-sobrio .bunting { display: none; }
.fest-sobrio .jornada-badge { background: var(--n-800); }
.fest-fiesta .bflag svg { transform: scale(1.14); }
.fest-fiesta .poster-dorado .poster-hero { box-shadow: 0 0 0 2px #b9842b, 0 0 46px rgba(246,196,83,.5), var(--shadow-3); }
.fest-fiesta.app-stage {
  background:
    radial-gradient(820px 520px at 88% -8%, rgba(243,147,57,.24), transparent 60%),
    radial-gradient(720px 520px at -6% 8%, rgba(73,185,165,.20), transparent 60%),
    radial-gradient(700px 600px at 50% 120%, rgba(189,86,156,.16), transparent 60%),
    #F4EFE6;
}


.admin { width: 100%; max-width: 1340px; display: grid; grid-template-columns: 88px 1fr; gap: 0; align-items: start; }
.arail {
  position: sticky; top: 16px; align-self: start; height: calc(100vh - 32px);
  background: var(--n-900); border-radius: var(--r-2xl); color: #fff;
  display: flex; flex-direction: column; align-items: center; padding: 18px 0; overflow: hidden;
  position: relative;
}
.arail::before { content: ""; position: absolute; inset: -40% -60% auto auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(243,147,57,.5), transparent 65%); filter: blur(20px); }
.arail-brand { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; z-index: 1; }
.arail-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; align-items: center; z-index: 1; }
.arail-item {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
  border: 0; background: transparent; color: rgba(255,255,255,.55); position: relative;
  transition: background 150ms, color 150ms;
}
.arail-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.arail-item.is-active { background: var(--c-orange); color: #fff; box-shadow: 0 6px 16px rgba(243,147,57,.45); }
.arail-item .badge { position: absolute; top: 5px; right: 5px; background: var(--c-red); color: #fff; font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 99px; border: 2px solid var(--n-900); }
.arail-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 1; }

.awrap { padding: 4px 0 0 28px; min-width: 0; }
.aheader { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 24px; }
.acrumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.acrumb .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--c-orange); }
.atitle { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -.025em; color: var(--n-900); }
.atitle em { font-style: normal; color: var(--c-orange); }
.asub { margin-top: 10px; color: var(--fg-2); font-size: 14.5px; max-width: 520px; }
.aactions { display: flex; gap: 10px; align-items: center; }

.acard { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.acard-pad { padding: 22px; }
.acard-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.acard-h h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--n-900); }

.akpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.akpi { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-1); }
.akpi .ic { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.akpi .num { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -.02em; color: var(--n-900); }
.akpi .lbl { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); margin-top: 2px; }

.agrid { display: grid; gap: 16px; }

/* admin table */
.atable { width: 100%; border-collapse: collapse; }
.atable th { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.atable td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--fg-1); vertical-align: middle; }
.atable tr:last-child td { border-bottom: 0; }
.atable tbody tr { transition: background 120ms; }
.atable tbody tr:hover { background: var(--n-50); }
.atable .t-team { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; color: var(--n-900); }
.iconbtn { width: 34px; height: 34px; border-radius: var(--r-md); border: 1px solid var(--border); background: #fff; color: var(--fg-2); cursor: pointer; display: inline-grid; place-items: center; transition: all 120ms; }
.iconbtn:hover { color: var(--c-orange-deep); border-color: var(--c-orange); background: var(--c-orange-tint); }
.iconbtn.danger:hover { color: var(--c-red-deep); border-color: var(--c-red); background: var(--c-red-tint); }

/* admin group cards */
.gcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-1); }
.gcard-banner { height: 84px; position: relative; display: flex; align-items: flex-end; padding: 14px; }
.gcard-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.gcard-body { padding: 16px; }
.gcard-members { display: flex; align-items: center; margin-top: 12px; }
.gcard-members .avatar-xs { margin-left: -8px; border: 2px solid #fff; }
.gcard-members .avatar-xs:first-child { margin-left: 0; }
.gcard-members .more { margin-left: -8px; width: 26px; height: 26px; border-radius: 8px; background: var(--n-100); border: 2px solid #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 9px; color: var(--fg-2); }

/* form layout */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-span2 { grid-column: span 2; }
.pts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pts-input { text-align: center; }
.pts-input label { text-align: center; }

.divider-soft { height: 1px; background: var(--border); margin: 4px 0; }
.help { font-size: 12px; color: var(--fg-3); }
.toggle-row { display: flex; align-items: center; gap: 10px; }
.switch { width: 42px; height: 24px; border-radius: 99px; background: var(--n-300); position: relative; cursor: pointer; transition: background 150ms; flex: none; border: 0; }
.switch.on { background: var(--c-emerald); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; transition: transform 150ms; box-shadow: var(--shadow-1); }
.switch.on::after { transform: translateX(18px); }

/* Lucide sizing */
i[data-lucide], svg.lucide { stroke-width: 1.75; }
i[data-lucide] { display: inline-flex; }

/* utility */
.muted { color: var(--fg-3); }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

/* responsive: stack admin rail to top, shrink phone on small screens */
@media (max-width: 1000px) {
  .akpis { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-span2 { grid-column: span 1; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .poweredby { display: none; }
  .admin { grid-template-columns: 1fr; }
  .arail { position: static; height: auto; width: 100%; flex-direction: row; border-radius: var(--r-xl); padding: 12px; gap: 8px; }
  .arail-nav { flex-direction: row; flex-wrap: wrap; }
  .arail-brand { margin-bottom: 0; }
  .awrap { padding: 20px 0 0; }
  .atitle { font-size: 30px; }
  .akpis { grid-template-columns: repeat(2, 1fr); }
  .phone { transform: scale(.92); transform-origin: top center; margin-bottom: -60px; }
}
