:root {
  --lav: #d4c2dc;
  --lav-deep: #a273a5;
  --lime: #a3ca43;
  --lime-d: #8bb52e;
  --wine: #682635;
  --wine-d: #4a1c28;
  --gold: #d9c9a7;
  --gold-d: #c4b48e;
  --ink: #2c1420;
  --cream: #f6f1e4;
  --white: #fff;
  --shadow: 0 10px 30px rgba(58, 21, 34, 0.18);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  min-height: 100dvh;
}
html[data-rama="femenil"] { background: var(--lav); }
html[data-rama="varonil"] { background: var(--wine); }
body {
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  background: transparent;
}
#app { width: 100%; max-width: 100%; min-height: 100dvh; }

a { color: inherit; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

.page {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ——— Home ——— */
.home { min-height: 100vh; }
.home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}
.account { position: relative; margin-left: auto; flex: 0 0 auto; }
.account-btn {
  height: 42px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .16);
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}
.account-btn svg { width: 22px; height: 22px; }
.account-btn.on, .account.open .account-btn { background: var(--gold); color: var(--wine-d); }
.account-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 40;
}
.account.open .account-panel { display: grid; gap: 8px; }
.account-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f1ea;
  text-decoration: none;
  font-weight: 800;
}
.account-panel input { width: 100%; }
.site-switch { position: relative; z-index: 30; }
.site-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .14);
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}
.rama-page.femenil .site-switch-btn { background: rgba(255, 255, 255, .55); }
.donador-hero {
  min-height: 240px;
  background:
    radial-gradient(520px 220px at 78% 8%, rgba(217, 201, 167, .32), transparent 58%),
    linear-gradient(160deg, #4a1c28, #682635 60%, #3a1522);
}
.varonil .group-card .mes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  background: rgba(217, 201, 167, .16);
}
.mes-label {
  font-family: Oswald, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--gold);
}
.varonil input[type="month"] {
  background: var(--gold);
  color: var(--wine-d);
  border: 0;
  border-radius: 999px;
  font-family: Oswald, sans-serif;
  letter-spacing: .3px;
  padding: 8px 14px;
  color-scheme: light;
}
.varonil input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .75;
}
.varonil .board tr.leader td { background: rgba(217, 201, 167, .18); }
.varonil .board th, .varonil .board td { border-bottom-color: rgba(255,255,255,.08); }
.site-switch-mark {
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px,
    linear-gradient(currentColor, currentColor) 0 5px / 100% 2px,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2px;
  background-repeat: no-repeat;
}
.site-switch-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-switch-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  padding: 6px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.site-switch.open .site-switch-list { display: grid; }
.site-switch-list a {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}
.site-switch-list a.active { background: var(--lime); }
.varonil .site-switch-list a.active { background: var(--gold); color: var(--wine-d); }
.site-switch-split {
  margin: 4px 8px 0;
  padding: 8px 4px 2px;
  border-top: 1px solid #efe6dc;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .6;
}
.home-hero {
  text-align: center;
  padding: 12px 16px 8px;
}
.home-hero img { width: 150px; margin: 0 auto 8px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.home-kicker {
  font-family: Oswald, sans-serif;
  font-size: clamp(28px, 6vw, 48px);
  letter-spacing: 1px;
  line-height: .95;
  margin: 0;
  text-transform: uppercase;
  font-style: italic;
}
.home-kicker span { color: var(--gold); }
.home-sub { opacity: .85; margin: 8px 0 22px; }
.branch-pick {
  display: grid;
  gap: 18px;
  padding: 0 16px 40px;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .branch-pick { grid-template-columns: 1fr 1fr; }
}
.poster {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.poster img.cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  z-index: -1;
}
.poster .shade {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(20,8,16,.82) 100%);
}
.poster-body { position: relative; z-index: 1; padding: 22px; }
.poster .rama {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin: 0;
}
.poster h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 52px);
  letter-spacing: .4px;
  text-transform: uppercase;
  margin: 0;
  line-height: .95;
  color: #fff;
  text-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.poster .chip {
  display: inline-block;
  margin-top: 12px;
  background: var(--lime);
  color: #1d2a08;
  font-family: Oswald, sans-serif;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .4px;
}
.poster.femenil .rama { color: #f4eaf3; }
.poster.varonil .chip { background: var(--gold); color: var(--wine-d); }

.home-foot {
  text-align: center;
  padding: 8px 16px 28px;
  font-size: 13px;
  opacity: .7;
}

/* ——— Rama shell ——— */
.rama-page.femenil { background: var(--lav); color: var(--ink); }
.rama-page.varonil { background: var(--wine); color: var(--cream); }

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  position: sticky; top: 0; z-index: 20;
}
.rama-page.femenil .topbar { background: rgba(212,194,220,.92); backdrop-filter: blur(10px); }
.rama-page.varonil .topbar { background: rgba(74,28,40,.92); backdrop-filter: blur(10px); }
.topbar img { height: 72px; width: auto; }
.site-switch { min-width: 0; max-width: min(100%, 280px); }
.topbar .titles { flex: 1; min-width: 0; }
.topbar .titles small,
.topbar .titles strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .titles small {
  font-family: Oswald, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .8;
}
.topbar .titles strong {
  display: block;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1.1;
}
.back {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: .8;
}

.hero-band {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center 30%;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-band:after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,.28) 100%);
}
.chevron {
  height: 28px;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.femenil .chevron { background: var(--lime); }
.varonil .chevron { background: var(--gold); }
.hero-caption {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 0 18px 8px;
  text-align: center;
}
.hero-caption .rama-word {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin: 0;
}
.femenil .hero-caption .rama-word { color: #815395; }
.varonil .hero-caption .rama-word { color: var(--gold); }
.hero-caption h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 68px);
  letter-spacing: .6px;
  text-transform: uppercase;
  max-width: 100%;
  margin: 0 auto;
  color: #fff;
  line-height: .95;
  text-shadow: 2px 4px 0 rgba(0,0,0,.25);
}
.phase-mark {
  font-family: Oswald, sans-serif;
  font-size: clamp(34px, 9vw, 56px);
  margin: 6px 0 0;
  color: #fff;
  letter-spacing: 1px;
}
.phase-mark em {
  font-style: normal;
  font-size: .45em;
  vertical-align: super;
}

.quote {
  margin: 0 auto;
  max-width: 720px;
  padding: 16px 22px 8px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.45;
}
.femenil .quote { color: #591e4c; }
.varonil .quote { color: var(--gold); opacity: .95; }

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  font-weight: 800;
  text-align: center;
  padding: 4px 16px 12px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px 14px;
  position: sticky;
  top: 64px;
  z-index: 15;
}
.femenil .tabs { background: var(--lav); }
.varonil .tabs { background: var(--wine); }
.tab {
  flex: 0 0 auto;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: Oswald, sans-serif;
  letter-spacing: .3px;
  background: rgba(255,255,255,.28);
}
.varonil .tab { background: rgba(255,255,255,.08); }
.tab.active {
  background: var(--lime);
  color: #1a2808;
}
.tab.disabled {
  opacity: .4;
  cursor: default;
}
.varonil .tab.active { background: var(--gold); color: var(--wine-d); }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 14px 40px; }

/* ——— Roles cards ——— */
.day-block { margin: 0 0 18px; }
.role-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  color: var(--ink);
  position: relative;
}
.varonil .role-card {
  background: #5a2433;
  color: var(--cream);
}
.role-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  font-family: Oswald, sans-serif;
  text-align: center;
  background: var(--lime);
  color: #24320c;
}
.varonil .role-date { background: var(--gold); color: var(--wine-d); }
.role-date .day { font-size: 38px; line-height: .9; }
.role-date .mon { font-size: 13px; letter-spacing: .4px; }
.role-body { padding: 10px 12px 12px; }
.role-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  letter-spacing: .3px;
}
.pin { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.pin svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.pin div { min-width: 0; line-height: 1.15; text-transform: uppercase; }
.pin-address {
  display: block;
  margin-top: 2px;
  font-family: Nunito, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  opacity: .8;
}
a.pin-link { color: inherit; text-decoration: none; position: relative; z-index: 2; }
a.pin-link:hover { text-decoration: underline; }
.match-maps { position: absolute; inset: 0; z-index: 1; }
.role-teams a, .role-card .cartel { position: relative; z-index: 2; }
.femenil .pin { color: #815395; }
.varonil .pin { color: var(--gold); }
.time { font-weight: 700; }
.role-card .role-meta { align-items: flex-start; }
.role-card .time {
  flex: 0 0 auto;
  font-size: 26px;
  line-height: .85;
  text-align: right;
  white-space: nowrap;
}
.role-card .time span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
}
.role-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  text-align: center;
}
.role-teams .side > div { min-width: 0; }
.team-name {
  font-family: Barlow Condensed, sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 4.2vw, 20px);
  line-height: 1.05;
  text-transform: uppercase;
}
@media (max-width: 520px) {
  .topbar {
    gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  }
  .topbar img { height: 48px; }
  .site-switch { flex: 0 0 auto; max-width: none; }
  .site-switch-label { display: none; }
  .site-switch-btn { padding: 8px 10px; }
  .topbar .titles { flex: 1 1 auto; }
  .topbar .titles strong { font-size: 14px; }
  .account-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
  .account-btn span { display: none; }
  .hero-caption { padding: 0 18px 8px; }
  .hero-caption h1 { font-size: clamp(28px, 8vw, 40px); }
  .phase-mark { font-size: clamp(24px, 6.5vw, 36px); }
  .tabs, .wrap, .quote, .venue-foot, .sale-points {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .wrap > *, .quote, .venue-foot, .social, .phase-mark { min-width: 0; max-width: 100%; }
  .role-meta, .pin, .role-body { min-width: 0; }
  .role-card { grid-template-columns: 68px minmax(0, 1fr); }
  .role-body { padding: 8px 8px 10px; }
  .role-teams { gap: 4px; }
  .role-teams .side { gap: 4px; }
  .role-teams .logo-bubble { display: none; }
  .team-name { font-size: 15px; }
  .vs { font-size: 16px; }
  .role-card .time { font-size: 22px; }
}
.team-org {
  font-size: 11px;
  letter-spacing: .3px;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs {
  font-family: Oswald, sans-serif;
  font-size: 22px;
  color: var(--lime-d);
}
.varonil .vs { color: var(--gold); }
.score-pill {
  margin-top: 4px;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 2px 8px;
  min-width: 64px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.varonil .score-pill { background: var(--gold); color: var(--wine-d); }
.status-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  margin-top: 6px;
  opacity: .7;
}
.cartel {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 180px;
}
.cartel img { width: 100%; height: 180px; object-fit: cover; }

.venue-foot {
  text-align: center;
  padding: 10px 16px 28px;
  font-size: 13px;
  line-height: 1.4;
}
.social-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}
.social-foot a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: inherit;
}
.social-foot svg { width: 18px; height: 18px; display: block; }
.femenil .social-foot a { background: rgba(89, 30, 76, .12); }
.femenil .venue-foot { color: #591e4c; }
.varonil .venue-foot { color: var(--gold); }

/* ——— Groups ——— */
.group-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .group-grid { grid-template-columns: 1fr 1fr; }
}
.group-card {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.varonil .group-card { background: #501e2e; color: var(--cream); }
.group-card h3 {
  margin: 0;
  padding: 10px 12px;
  font-family: Oswald, sans-serif;
  background: var(--lime);
  color: #24320c;
}
.varonil .group-card h3 { background: var(--gold); color: var(--wine-d); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 7px 8px; text-align: left; }
th { font-size: 11px; letter-spacing: .4px; opacity: .7; }
td.num, th.num { text-align: center; }
tr.rank-1 td:first-child { color: var(--lime-d); font-weight: 800; }
.varonil tr.rank-1 td:first-child { color: var(--gold); }
.muted { opacity: .7; font-size: 13px; }

/* ——— Seconds ——— */
.callout {
  background: rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.varonil .callout { background: rgba(0,0,0,.18); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--lime);
  color: #1a2808;
}
.badge.warn { background: #f3c14e; color: #3a2a00; }
.badge.off { background: #999; color: #fff; }

/* ——— Bracket ——— */
.bracket {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .bracket { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.round-col h4 {
  font-family: Oswald, sans-serif;
  margin: 0 0 8px;
}
.ko-match {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  min-width: 220px;
  position: relative;
}
.varonil .ko-match { background: #501e2e; color: var(--cream); }
.ko-team {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-family: Barlow Condensed, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}
.ko-team.win { font-weight: 800; }
.ko-team span.g { font-family: Oswald, sans-serif; min-width: 18px; text-align: right; white-space: nowrap; }

/* ——— Admin ——— */
.admin { background: #f6f1e6; min-height: 100vh; color: var(--ink); }
.admin-bar {
  background: #3a1522;
  color: var(--cream);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
}
.card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.group-card > p { margin: 0; padding: 12px 14px 16px; }
.row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
input[type="number"], input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="month"], textarea {
  border: 1px solid #e4d8c8;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.btn {
  border: 0;
  background: var(--wine);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.btn.alt { background: var(--lime); color: #1a2808; }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.admin-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.rama-select { display: grid; gap: 4px; font-weight: 800; }
.admin-match {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #efe6dc;
}
.admin-match .tiny { font-size: 12px; opacity: .7; }
.admin-match select,
.row select {
  border: 1px solid #e4d8c8;
  border-radius: 10px;
  padding: 8px 10px;
  max-width: 100%;
  background: #fff;
  color: var(--ink);
}
a.team-name { color: inherit; text-decoration: none; }
.role-teams .side {
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  min-width: 0;
}
.role-teams .side:last-child {
  flex-direction: row-reverse;
  text-align: right;
}
.logo-bubble {
  border-radius: 50%;
  object-fit: cover;
  background: #f4eaf3;
  display: inline-grid;
  place-items: center;
  font-family: Oswald, sans-serif;
  overflow: hidden;
  flex: 0 0 auto;
  line-height: 1;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.team-tile {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.varonil .team-tile { background: #501e2e; color: var(--cream); }
.team-tile strong {
  display: block;
  font-family: Barlow Condensed, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}
.ficha { display: grid; gap: 14px; }
.ficha-head {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.varonil .ficha-head { background: #501e2e; color: var(--cream); }
.ficha-head h2 {
  font-family: Barlow Condensed, sans-serif;
  text-transform: uppercase;
  font-size: 34px;
  line-height: .95;
  margin: 0 0 6px;
}
.ficha-head p { margin: 0 0 4px; }
.ficha-matches {
  font-family: Oswald, sans-serif;
  letter-spacing: .4px;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.stat-row span {
  background: rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.group-card a { font-weight: 800; }
.ko-notes { margin: 8px 0; padding-left: 18px; }
.ko-notes li { margin: 4px 0; }
.stack { display: grid; gap: 8px; }
.board { width: 100%; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #efe6dc; }
.board .num, .board th.num { text-align: right; }
.board tr.leader td { background: #f4f8e4; }
.donation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #efe6dc;
}
.donation ul { margin: 4px 0 0; padding-left: 18px; }
.donation-score { text-align: right; }
.donation-score b { font-family: Oswald, sans-serif; font-size: 28px; display: block; }
.merch-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.merch-card {
  display: block;
  background: #501e2e;
  color: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.merch-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #3a1522;
  display: block;
}
.merch-photo.empty {
  display: grid;
  place-items: center;
  opacity: .7;
}
.merch-body, .merch-copy { padding: 12px 14px 16px; }
.merch-body h3, .merch-copy h2 {
  margin: 0 0 6px;
  font-family: Barlow Condensed, sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.merch-body p, .merch-copy p { margin: 0 0 10px; }
.merch-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.merch-badge.on { background: var(--gold); color: var(--wine-d); }
.merch-badge.off { background: rgba(255,255,255,.14); }
.merch-detail {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .merch-detail { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.merch-thumbs { display: flex; gap: 8px; padding: 8px 0 0; }
.merch-thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #3a1522;
  cursor: pointer;
}
.merch-thumbs button.on { border-color: var(--gold); }
.merch-thumbs img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.sale-points {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 4px 14px 8px;
  text-align: center;
}
.sale-points h2 {
  margin: 0 0 4px;
  font-family: Oswald, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--gold);
}
.sale-lead { margin: 0 0 12px; color: var(--gold); }
.sale-grid {
  display: grid;
  gap: 12px;
  text-align: left;
}
@media (min-width: 720px) {
  .sale-grid { grid-template-columns: 1fr 1fr; }
}
.sale-card {
  min-width: 0;
  background: #501e2e;
  color: var(--cream);
  border-radius: 16px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.sale-kicker {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--gold);
}
.sale-card h3 {
  margin: 4px 0 6px;
  font-family: Barlow Condensed, sans-serif;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.sale-card p:last-child { margin: 0; }
.fan-row .merch-photo { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 10px; object-fit: contain; }
.fan-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px 8px 0;
  border: 0;
  border-radius: 10px;
  background: #f6f1ea;
  cursor: pointer;
  font-weight: 800;
}
.fan-drop img { width: 42px; height: 42px; object-fit: contain; object-position: center; border-radius: 8px; background: #3a1522; }
.don-line select { flex: 1; min-width: 180px; }
.don-line input[type="number"] { width: 90px; }
textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}
.team-admin-list { max-height: 520px; overflow: auto; margin-top: 8px; }
.team-admin {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #efe6dc;
}
.team-admin.catalog-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.team-admin .btn {
  width: auto;
  white-space: nowrap;
  justify-self: end;
}
.team-admin strong { display: block; }
select {
  border: 1px solid #e4d8c8;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.err { color: #b42318; font-weight: 700; }
.ok { color: #2f6b1f; font-weight: 700; }
.empty { text-align: center; padding: 30px 10px; opacity: .75; }
