/* ============================================================
   RGOLAZO · Quiniela Mundial 2026 · RG Asesores
   Paleta oficial del brand book 2021
   ============================================================ */
:root {
  --navy: #1d1b4e;
  --navy-deep: #12102f;
  --navy-card: #262457;
  --navy-card-2: #2e2c66;
  --blue: #007bb6;
  --blue-2: #008fc0;
  --blue-3: #6cacd4;
  --yellow: #ffc912;
  --orange: #f79b34;
  --orange-2: #f38621;
  --orange-3: #e46125;
  --gray: #6d6e71;
  --text: #ffffff;
  --text-dim: #aab3d8;
  --text-faint: #7d86b3;
  --ok: #35c46f;
  --danger: #ff5d5d;
  --grad: linear-gradient(120deg, var(--yellow), var(--orange-2) 55%, var(--orange-3));
  --grad-blue: linear-gradient(120deg, var(--blue-2), var(--blue));
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0,143,192,.25), transparent 60%),
    radial-gradient(900px 500px at -10% 15%, rgba(243,134,33,.16), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 84px; /* espacio para tabbar móvil */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue-3); }
button { font-family: var(--font); cursor: pointer; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(18,16,47,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108,172,212,.15);
}
.header .logo { height: 30px; width: auto; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand-name .r { color: var(--yellow); }
.brand-sub { font-size: 10.5px; color: var(--text-dim); letter-spacing: 1.6px; text-transform: uppercase; }
.header .spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 8px; background: var(--navy-card); border: 1px solid rgba(108,172,212,.2); padding: 5px 10px 5px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ---------- Nav ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-around;
  background: rgba(18,16,47,.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(108,172,212,.18);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar button {
  background: none; border: 0; color: var(--text-faint);
  font-size: 10.5px; font-weight: 700; display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding: 4px 6px; border-radius: 10px;
  position: relative;
}
.tabbar button .ico { font-size: 20px; line-height: 1; }
.tabbar button.active { color: var(--yellow); }
.tabbar button .dot {
  position: absolute; top: 0; right: 4px; min-width: 16px; height: 16px;
  border-radius: 8px; background: var(--orange-3); color: #fff;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-weight: 800;
}
@media (min-width: 900px) {
  body { padding-bottom: 20px; }
  .tabbar { position: sticky; top: 58px; bottom: auto; justify-content: center; gap: 8px; border-top: 0; border-bottom: 1px solid rgba(108,172,212,.15); }
  .tabbar button { flex-direction: row; font-size: 13px; gap: 7px; padding: 8px 16px; }
  .tabbar button .ico { font-size: 17px; }
  .tabbar button.active { background: rgba(255,201,18,.12); }
}

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 18px 14px 40px; }
.view-title { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.view-sub { color: var(--text-dim); font-size: 13.5px; margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 26px 14px 10px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 800; line-height: 1.05; }
.hero h1 .gol { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-dim); margin: 10px auto 0; max-width: 560px; font-size: 14.5px; }
.hero .cta-row { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.countpill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--navy-card); border: 1px solid rgba(255,201,18,.35);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.countpill b { color: var(--yellow); font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  border: 0; border-radius: 12px; font-weight: 800; font-size: 14.5px;
  padding: 12px 20px; color: #fff; transition: transform .08s ease, filter .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #221a06; box-shadow: 0 6px 18px rgba(243,134,33,.35); }
.btn-blue { background: var(--grad-blue); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(108,172,212,.4); color: var(--blue-3); }
.btn-danger { background: rgba(255,93,93,.15); border: 1.5px solid rgba(255,93,93,.5); color: var(--danger); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

/* ---------- Cards / paneles ---------- */
.card {
  background: linear-gradient(180deg, var(--navy-card), rgba(38,36,87,.65));
  border: 1px solid rgba(108,172,212,.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 18px; }

/* ---------- Bracket ---------- */
.bracket-scroll { overflow-x: auto; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; }
.bracket { display: flex; gap: 26px; min-width: max-content; align-items: stretch; }
.round-col { display: flex; flex-direction: column; min-width: 235px; }
.round-col h3 {
  text-align: center; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-3); margin-bottom: 12px; font-weight: 800;
  position: sticky; left: 0;
}
.round-col .col-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }

.match-card {
  background: linear-gradient(180deg, var(--navy-card), rgba(30,28,70,.9));
  border: 1px solid rgba(108,172,212,.18);
  border-radius: 12px; padding: 10px 12px; position: relative;
  transition: border-color .15s;
}
.match-card.pickable:hover { border-color: var(--yellow); }
.match-card .mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 6px; }
.match-card .mc-when { font-size: 11.5px; color: var(--text-dim); font-weight: 700; }
.match-card .mc-venue { font-size: 10.5px; color: var(--text-faint); margin-top: 6px; }
.chip {
  font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.chip-fin { background: rgba(109,110,113,.3); color: #c9cdd6; }
.chip-open { background: rgba(53,196,111,.16); color: var(--ok); }
.chip-lock { background: rgba(255,201,18,.14); color: var(--yellow); }
.chip-live { background: rgba(255,93,93,.16); color: var(--danger); }
.chip-pend { background: rgba(255,201,18,.14); color: var(--yellow); }
.chip-ok { background: rgba(53,196,111,.16); color: var(--ok); }

.team-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; font-weight: 600; }
.team-row .flag { font-size: 18px; width: 24px; text-align: center; }
.team-row .tname { flex: 1; }
.team-row .tscore { font-weight: 800; font-variant-numeric: tabular-nums; }
.team-row .tpens { font-size: 11.5px; color: var(--text-dim); font-weight: 700; }
.team-row.winner .tname, .team-row.winner .tscore { color: var(--yellow); }
.team-row.loser { opacity: .55; }
.team-row.tbd { color: var(--text-faint); font-weight: 500; }
.mc-mypick {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(108,172,212,.25);
  font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.mc-mypick b { color: var(--blue-3); }
.mc-mypick .pts { color: var(--yellow); font-weight: 800; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 430px; margin: 26px auto; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.auth-tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 0; font-weight: 800; font-size: 14px;
  background: var(--navy-card); color: var(--text-dim);
}
.auth-tabs button.active { background: var(--grad); color: #221a06; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 13px; border-radius: 11px; font-size: 15px; font-family: var(--font);
  background: rgba(18,16,47,.7); color: #fff; border: 1.5px solid rgba(108,172,212,.25);
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--blue-2); }
.field .hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding: 12px 46px 12px 13px; border-radius: 11px; font-size: 15px; font-family: var(--font); background: rgba(18,16,47,.7); color: #fff; border: 1.5px solid rgba(108,172,212,.25); outline: none; }
.pw-wrap input:focus { border-color: var(--blue-2); }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 17px; padding: 7px; opacity: .8; line-height: 1; }
.pw-eye:hover { opacity: 1; }
.form-msg { font-size: 13px; margin: 8px 0; font-weight: 600; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.link-btn { background: none; border: 0; color: var(--blue-3); font-size: 13px; font-weight: 600; text-decoration: underline; }

/* ---------- Picks ---------- */
.round-group { margin-bottom: 26px; }
.round-group > h3 { font-size: 15px; font-weight: 800; color: var(--blue-3); margin-bottom: 10px; letter-spacing: .8px; text-transform: uppercase; }
.pick-card { padding: 14px; margin-bottom: 12px; }
.pick-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pick-when { font-size: 12.5px; color: var(--text-dim); font-weight: 700; }
.pick-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.pick-team { text-align: center; }
.pick-team .flag { font-size: 34px; }
.pick-team .name { font-size: 13.5px; font-weight: 700; margin-top: 2px; }
.pick-vs { color: var(--text-faint); font-weight: 800; font-size: 12px; text-align: center; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(108,172,212,.4);
  background: var(--navy-card-2); color: #fff; font-size: 19px; font-weight: 800; line-height: 1;
}
.stepper button:active { background: var(--blue); }
.stepper .val {
  min-width: 40px; text-align: center; font-size: 26px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pens-q { margin-top: 12px; text-align: center; }
.pens-q p { font-size: 12.5px; font-weight: 700; color: var(--yellow); margin-bottom: 8px; }
.pens-q .pens-opts { display: flex; gap: 8px; justify-content: center; }
.pens-q .pens-opts button {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(108,172,212,.35);
  background: var(--navy-card-2); color: var(--text-dim); font-weight: 700; font-size: 13px;
}
.pens-q .pens-opts button.sel { background: var(--grad); color: #221a06; border-color: transparent; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pick-status { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.pick-pts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pick-locked-note { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Tabla / leaderboard ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.podium .pod {
  text-align: center; padding: 16px 8px 14px; border-radius: var(--radius); position: relative;
  background: linear-gradient(180deg, var(--navy-card), rgba(30,28,70,.9));
  border: 1px solid rgba(108,172,212,.18);
}
.podium .pod.p1 { border-color: rgba(255,201,18,.6); box-shadow: 0 0 24px rgba(255,201,18,.15); order: 2; }
.podium .pod.p2 { order: 1; }
.podium .pod.p3 { order: 3; }
@media (min-width: 700px) { .podium { max-width: 640px; margin-left: auto; margin-right: auto; } }
.pod .medal { font-size: 26px; }
.pod .avatar { margin: 6px auto; }
.pod .pname { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .parea { font-size: 10.5px; color: var(--text-faint); }
.pod .ppts { font-size: 19px; font-weight: 800; color: var(--yellow); margin-top: 4px; }
.pod .prize { font-size: 10.5px; color: var(--text-dim); margin-top: 5px; border-top: 1px dashed rgba(108,172,212,.25); padding-top: 5px; }

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); text-align: left; padding: 8px 10px; }
.lb-table th.num, .lb-table td.num { text-align: center; }
.lb-table td { padding: 9px 10px; border-top: 1px solid rgba(108,172,212,.12); font-size: 14px; }
.lb-table tr.me td { background: rgba(0,143,192,.12); }
.lb-table tbody tr:hover td { background: rgba(108,172,212,.08); }
.pod:hover { border-color: var(--blue-3); }
.lb-table .rank { font-weight: 800; color: var(--text-dim); width: 34px; text-align: center; }
.lb-table .who { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.lb-table .who .sub { display: block; font-size: 11px; color: var(--text-faint); font-weight: 600; }
.lb-table .tot { font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; text-align: center; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--grad-blue); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; overflow: hidden;
}
.avatar.lg { width: 84px; height: 84px; font-size: 30px; border: 3px solid rgba(255,201,18,.5); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galería ---------- */
.gal-match { margin-bottom: 22px; }
.gal-match h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gal-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; border: 1px solid rgba(108,172,212,.2); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-item .gwho {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; padding: 14px 6px 5px;
}
.gal-item .gdel {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
}
.gal-item .gok {
  position: absolute; top: 5px; right: 34px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: var(--ok); color: #fff; font-size: 13px; font-weight: 800;
}
.upload-box {
  border: 2px dashed rgba(108,172,212,.4); border-radius: var(--radius);
  padding: 18px; text-align: center; margin-bottom: 20px;
}
.upload-box p { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.upload-row select { max-width: 260px; }

/* ---------- Perfil ---------- */
.profile-top { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 18px; }
.avatar-edit { position: relative; }
.avatar-edit .cam {
  position: absolute; bottom: 0; right: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); border: 2px solid var(--navy); font-size: 14px;
}

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.admin-tabs button {
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(108,172,212,.3);
  background: transparent; color: var(--text-dim); font-weight: 700; font-size: 13px; white-space: nowrap;
  position: relative;
}
.admin-tabs button.active { background: var(--grad-blue); color: #fff; border-color: transparent; }
.admin-tabs button .dot {
  display: inline-flex; margin-left: 6px; min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--orange-3); color: #fff; font-size: 10.5px; align-items: center; justify-content: center; padding: 0 4px;
}
.user-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-top: 1px solid rgba(108,172,212,.12); flex-wrap: wrap;
}
.user-row:first-child { border-top: 0; }
.user-row .uinfo { flex: 1; min-width: 150px; }
.user-row .uname { font-weight: 700; font-size: 14px; }
.user-row .umail { font-size: 12px; color: var(--text-dim); }
.user-row .uarea { font-size: 11px; color: var(--text-faint); }
.result-row { padding: 13px; border-top: 1px solid rgba(108,172,212,.12); }
.result-row .r-teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.result-inputs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.result-inputs input[type="number"] {
  width: 56px; padding: 9px 6px; text-align: center; border-radius: 9px; font-size: 16px; font-weight: 800;
  background: rgba(18,16,47,.7); color: #fff; border: 1.5px solid rgba(108,172,212,.3); font-family: var(--font);
}
.result-inputs .sep { font-weight: 800; color: var(--text-faint); }
.check-row { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.check-row input { width: 18px; height: 18px; accent-color: var(--orange-2); }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(10,9,28,.75); backdrop-filter: blur(4px);
  z-index: 60; display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--navy-card); border: 1px solid rgba(108,172,212,.25);
  border-radius: 18px 18px 0 0; width: 100%; max-width: 560px; max-height: 82vh;
  overflow-y: auto; padding: 18px;
}
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 18px; } }
.modal h3 { font-size: 16px; margin-bottom: 12px; }
.modal .close-x { position: sticky; float: right; top: 0; background: none; border: 0; color: var(--text-dim); font-size: 22px; }
.allpicks-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(108,172,212,.12); font-size: 13.5px; }
.allpicks-row .ap-pick { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.allpicks-row .ap-pts { color: var(--yellow); font-weight: 800; min-width: 46px; text-align: right; }

/* ---------- Toast / banners ---------- */
.toast-zone { position: fixed; bottom: 92px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 80; pointer-events: none; }
.toast {
  background: #fff; color: #1c1c28; font-weight: 700; font-size: 13.5px;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow); max-width: 92vw;
  animation: toastin .25s ease;
}
.toast.err { background: #ffe3e3; color: #8f1d1d; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }
.banner {
  padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
  margin-bottom: 14px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.45;
}
.banner-warn { background: rgba(255,201,18,.12); border: 1px solid rgba(255,201,18,.4); color: #ffe28a; }
.banner-info { background: rgba(0,143,192,.12); border: 1px solid rgba(0,143,192,.45); color: #bfe4f5; }

/* ---------- Inicio / dashboard ---------- */
.sec-title { font-size: 17px; font-weight: 800; margin: 22px 0 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.stat { padding: 13px 8px; text-align: center; cursor: pointer; transition: border-color .15s; }
.stat:hover { border-color: var(--blue-3); }
.stat .s-num { font-size: 24px; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat .s-lbl { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 3px; font-weight: 700; }
.stat .s-sub { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.next-card { padding: 18px 14px; text-align: center; margin-bottom: 6px; border-color: rgba(255,201,18,.45); box-shadow: 0 0 26px rgba(255,201,18,.08); }
.next-card .nc-label { font-size: 11px; letter-spacing: 1.4px; font-weight: 800; color: var(--text-dim); }
.next-card .nc-label b { color: var(--yellow); font-variant-numeric: tabular-nums; }
.next-card .nc-match { font-size: 21px; font-weight: 800; margin: 8px 0 3px; }
.next-card .nc-when { font-size: 12.5px; color: var(--text-dim); }
.next-card .btn { margin-top: 13px; }
.today-row { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-top: 1px solid rgba(108,172,212,.12); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.today-row:first-child { border-top: 0; }
.today-row .t-mypick { margin-left: auto; font-size: 12px; color: var(--text-dim); font-weight: 700; text-decoration: none; }
.rules-note { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; margin: 4px 2px 8px; }
.foto-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 2px 2px 10px; }
.foto-card { position: relative; min-width: 150px; width: 150px; height: 150px; border-radius: 12px; overflow: hidden; scroll-snap-align: start; border: 1px solid rgba(108,172,212,.2); flex-shrink: 0; display: block; }
.foto-card img { width: 100%; height: 100%; object-fit: cover; }
.fc-who { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); padding: 16px 7px 6px; }
.foto-more { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--blue-3); text-decoration: none; background: var(--navy-card); line-height: 1.5; }
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.prize-card { text-align: center; padding: 15px 8px; }
.prize-card .p-med { font-size: 26px; }
.prize-card .p-txt { font-size: 12px; color: var(--text-dim); margin-top: 5px; font-weight: 700; }

/* ---------- Reglas ---------- */
.rules { display: grid; gap: 9px; grid-template-columns: 1fr; margin: 14px 0 6px; }
@media (min-width: 560px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rule { display: flex; gap: 10px; align-items: center; padding: 12px; }
.rule .rpts { font-size: 20px; font-weight: 800; color: var(--yellow); white-space: nowrap; }
.rule .rtxt { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--text-faint); padding: 30px 10px; font-size: 14px; }
.spinner { margin: 40px auto; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(108,172,212,.25); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { text-align: center; color: var(--text-faint); font-size: 11.5px; padding: 30px 12px 10px; }
.footer img { height: 20px; margin: 0 auto 8px; opacity: .8; }
.searchbox { margin-bottom: 12px; }
.hidden { display: none !important; }
