:root {
  --black: #050505;
  --black-deep: #000000;
  --panel: #0a0a0a;
  --panel-hover: #101010;
  --off-white: #f4f2ec;
  --muted: #8f8d87;
  --muted-soft: #5f5d58;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --gold: #c9a66b;
  --gold-bright: #e1c28a;
  --danger: #b76d62;
  --intro-duration: 3000ms;
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--off-white);
  background:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.07), transparent 30%),
    linear-gradient(180deg, #050505 0%, #020202 55%, #000 100%);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

[hidden] { display: none !important; }
body.is-loading { overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* INTRO */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 820ms cubic-bezier(.4, 0, .2, 1),
    visibility 820ms step-end;
}

.intro-loader.is-morphing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-loader__content {
  width: min(60vw, 520px);
  display: grid;
  justify-items: center;
  gap: clamp(26px, 4vw, 40px);
}

.intro-loader__logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: blur(8px);
  transform: scale(.68);
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
  animation: logoApproach var(--intro-duration) cubic-bezier(.16, 1, .3, 1) forwards;
}

.intro-loader.is-preparing-morph .intro-loader__logo { animation-play-state: paused; }

.intro-logo-morph {
  position: fixed;
  z-index: 10001;
  display: block;
  margin: 0;
  pointer-events: none;
  object-fit: contain;
  transform-origin: center center;
  will-change: left, top, width, height, opacity;
}

.loading-bar {
  width: min(330px, 52vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03);
  opacity: 0;
  animation: loadingBarAppear 350ms 180ms ease-out forwards;
}

.loading-bar__fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,.55);
  transform: scaleX(0);
  transform-origin: left center;
  animation: loadingBarFill 2750ms 180ms cubic-bezier(.65, 0, .35, 1) forwards;
}

.loading-bar.is-complete {
  animation: loadingBarExit 300ms cubic-bezier(.4, 0, .2, 1) forwards;
}

/* SHELL + HEADER */
.site-shell {
  position: relative;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.012);
  transition:
    opacity 700ms ease,
    transform 1100ms cubic-bezier(.16, 1, .3, 1),
    visibility 0s linear 700ms;
}

body.is-ready .site-shell {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

body.is-logo-transition .site-shell {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: none;
}

body.is-logo-transition .site-header__logo { opacity: 0; }

.site-header {
  position: relative;
  z-index: 100;
  min-height: 110px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
  padding: 20px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(2,2,2,.76);
  backdrop-filter: blur(18px);
}

.main-nav {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  min-width: 0;
}

.main-nav__link,
.header-logout {
  position: relative;
  padding: 8px 0;
  border: 0;
  color: #77756f;
  background: transparent;
  font-size: clamp(10px, 1.05vw, 13px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: var(--gold);
  transition: right 240ms cubic-bezier(.16,1,.3,1);
}

.main-nav__link:hover,
.main-nav__link.is-active { color: var(--off-white); }
.main-nav__link.is-active::after { right: 0; }

.site-brand {
  justify-self: center;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__logo {
  display: block;
  width: min(210px, 32vw);
  height: auto;
  opacity: .96;
  transition: opacity 180ms ease;
}

.header-actions { justify-self: end; min-width: 0; }
.header-logout {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
}
.header-logout:hover { color: var(--gold-bright); }

.app-view { min-height: calc(100vh - 110px); }
.app-view:not(.is-active) { display: none; }

/* SHARED */
.section-eyebrow,
.card-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
}

.primary-button {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--gold-bright);
  color: #080706;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(201,166,107,.14);
}
.primary-button--full { width: 100%; }

.form-message {
  min-height: 17px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* RANKING */
.ranking-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 88px) 24px 72px;
}

.ranking-hero {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.ranking-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 44px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}

.ranking-hero__eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .42em;
}

.ranking-hero h1,
.control-hero h1,
.login-card h1 {
  margin: 0;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .82;
}

.ranking-hero h1 { font-size: clamp(62px, 10vw, 112px); }

.ranking-hero__category {
  min-height: 18px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.category-switcher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 28px;
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(7,7,7,.82);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

.category-group { min-width: 0; }
.category-group__label {
  display: block;
  margin: 0 0 11px;
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .28em;
}
.category-group__buttons { display: flex; gap: 7px; min-width: 0; }
.category-switcher__divider { width: 1px; height: 38px; background: var(--line); }

.category-button,
.compact-category,
.filter-button {
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: #9c9a94;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.category-button:hover,
.compact-category:hover,
.filter-button:hover {
  color: var(--off-white);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.035);
}
.category-button.is-active,
.compact-category.is-active,
.filter-button.is-active {
  color: #050505;
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  transform: translateY(-1px);
}

.ranking-board {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(5,5,5,.82);
  box-shadow: 0 28px 100px rgba(0,0,0,.38);
}

.ranking-board__header,
.ranking-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 150px;
  align-items: center;
}

.ranking-board__header {
  min-height: 54px;
  padding: 0 26px;
  color: var(--muted-soft);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .26em;
}
.ranking-board__header span:last-child { text-align: right; }
.ranking-list { padding: 0; margin: 0; list-style: none; }

.ranking-row {
  position: relative;
  min-height: 74px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: transparent;
  animation: rowEnter 500ms cubic-bezier(.16,1,.3,1) both;
  transition: background 180ms ease, transform 180ms ease;
}
.ranking-row:last-child { border-bottom: 0; }
.ranking-row:hover { z-index: 1; background: var(--panel-hover); transform: translateX(4px); }
.ranking-row.is-leading {
  background: linear-gradient(90deg, rgba(201,166,107,.11), transparent 44%), rgba(255,255,255,.012);
}
.ranking-row.is-leading::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201,166,107,.55);
}

.ranking-position { display: flex; align-items: center; }
.ranking-position__badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: #b3b1ab;
  background: #070707;
  font-size: 12px;
  font-weight: 900;
}
.ranking-row[data-rank="1"] .ranking-position__badge {
  color: #080706;
  border-color: var(--gold-bright);
  background: linear-gradient(145deg, #efd49c, #b58b4e);
}
.ranking-row[data-rank="2"] .ranking-position__badge {
  color: #080808;
  border-color: #ddd;
  background: linear-gradient(145deg, #f1f1f1, #a9a9a9);
}
.ranking-row[data-rank="3"] .ranking-position__badge {
  color: #080605;
  border-color: #c99068;
  background: linear-gradient(145deg, #dba47a, #8a5636);
}
.ranking-player {
  min-width: 0;
  padding-right: 22px;
  color: var(--off-white);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
  letter-spacing: .015em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-points {
  justify-self: end;
  color: var(--off-white);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 900;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.ranking-points small {
  margin-left: 6px;
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
}
.ranking-note {
  margin: 18px 0 0;
  color: var(--muted-soft);
  font-size: 10px;
  letter-spacing: .08em;
  text-align: center;
}
.ranking-list.is-changing .ranking-row { opacity: 0; transform: translateY(8px); }

/* LOGIN */
.control-auth {
  position: relative;
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 70px 24px 90px;
}
.control-auth::before,
.control-auth::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.control-auth::before {
  width: min(70vw, 880px);
  aspect-ratio: 1;
  border: 1px solid rgba(201,166,107,.12);
  transform: rotate(45deg);
}
.control-auth::after {
  width: min(46vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.05);
  transform: rotate(45deg);
}
.control-auth__halo {
  position: absolute;
  width: min(76vw, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,166,107,.09), rgba(255,255,255,.018) 34%, transparent 68%);
  filter: blur(26px);
}
.login-card {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid var(--line-strong);
  background: rgba(5,5,5,.9);
  box-shadow: 0 40px 120px rgba(0,0,0,.58);
  backdrop-filter: blur(20px);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.login-card__brand {
  width: min(230px, 70%);
  margin: 0 0 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.login-card__brand img { display: block; width: 100%; height: auto; }
.login-card h1 { margin-top: 14px; font-size: clamp(42px, 8vw, 68px); }
.login-card__description {
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.field-label,
.setup-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
}
.password-field { position: relative; }
.password-field input,
.setup-card input,
.stat-card input,
.pair-form input,
.search-field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--off-white);
  background: #050505;
  outline: 0;
  transition: border-color 180ms ease, background 180ms ease;
}
.password-field input { height: 56px; padding: 0 62px 0 16px; letter-spacing: .14em; }
.password-field input:focus,
.setup-card input:focus,
.stat-card input:focus,
.pair-form input:focus,
.search-field input:focus { border-color: var(--gold); background: #080808; }
.password-field button {
  position: absolute;
  right: 0;
  top: 0;
  height: 56px;
  padding: 0 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
}

/* CONTROL DASHBOARD */
.control-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 86px) 24px 80px;
}
.control-hero {
  position: relative;
  margin-bottom: 54px;
  padding-left: 20px;
}
.control-hero::before {
  content: "";
  position: absolute;
  inset: 2px auto 0 0;
  width: 2px;
  background: var(--gold);
}
.control-hero h1 { margin-top: 12px; font-size: clamp(52px, 8vw, 92px); }
.control-hero > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.control-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.progress-card,
.stat-card,
.control-panel {
  border: 1px solid var(--line);
  background: rgba(6,6,6,.86);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.progress-card {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
}
.progress-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(201,166,107,.08), transparent 40%);
}
.progress-card__copy { position: relative; z-index: 1; }
.progress-card__copy strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(42px, 6vw, 72px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.06em;
}
.progress-card__copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
.progress-ring {
  position: relative;
  z-index: 1;
  width: 138px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold-bright) var(--progress), rgba(255,255,255,.07) 0);
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #060606;
  box-shadow: inset 0 0 0 1px var(--line);
}
.progress-ring > div { position: relative; display: grid; justify-items: center; }
.progress-ring strong { font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.progress-ring span { margin-top: 4px; color: var(--muted-soft); font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.05);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-bright);
  transition: width 500ms cubic-bezier(.16,1,.3,1);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  min-height: 121px;
  display: grid;
  align-content: space-between;
  padding: 24px;
}
.stat-card span { color: var(--muted-soft); font-size: 8px; font-weight: 700; letter-spacing: .18em; line-height: 1.5; }
.stat-card strong { font-size: 36px; font-style: italic; font-weight: 900; letter-spacing: -.05em; }
.stat-card--gold {
  border-color: rgba(201,166,107,.3);
  background: linear-gradient(135deg, rgba(201,166,107,.13), rgba(6,6,6,.9) 60%);
}
.stat-card--gold strong { color: var(--gold-bright); }
.stat-card--settings form { display: flex; gap: 8px; }
.stat-card input { min-width: 0; height: 37px; padding: 0 10px; font-weight: 800; }
.stat-card button {
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  color: var(--off-white);
  background: rgba(255,255,255,.035);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}

.control-panel { margin-top: 18px; overflow: hidden; }
.panel-heading {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(24px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.panel-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
}
.panel-heading__number {
  color: rgba(255,255,255,.06);
  font-size: 66px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.08em;
}
.pair-form { padding: clamp(24px, 4vw, 38px); }
.form-step + .form-step { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-step__label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
}
.form-grid--two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair-form label > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}
.pair-form input { height: 52px; padding: 0 15px; }
.pair-form input::placeholder, .search-field input::placeholder { color: #4e4c48; }
.form-step--split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.segment-control, .compact-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.segment-control__button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
}
.segment-control__button.is-active {
  color: #080706;
  border-color: var(--gold);
  background: var(--gold-bright);
}
.form-step--actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.welcome-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  cursor: pointer;
}
.welcome-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.welcome-toggle__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #050505;
  transition: border-color 180ms ease, background 180ms ease;
}
.welcome-toggle__mark::after {
  content: "✓";
  opacity: 0;
  color: #080706;
  font-weight: 900;
  transform: scale(.6);
  transition: opacity 180ms ease, transform 180ms ease;
}
.welcome-toggle input:checked + .welcome-toggle__mark {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}
.welcome-toggle input:checked + .welcome-toggle__mark::after { opacity: 1; transform: scale(1); }
.welcome-toggle strong { display: block; font-size: 10px; letter-spacing: .12em; }
.welcome-toggle small { display: block; margin-top: 5px; color: var(--muted-soft); font-size: 10px; line-height: 1.4; }

.delivery-tools {
  display: grid;
  grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr);
  gap: 16px;
  padding: 22px clamp(20px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
}
.search-field input { height: 44px; padding: 0 15px; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.delivery-filter { display: flex; justify-content: flex-end; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.filter-button { min-width: 44px; height: 44px; font-size: 9px; }
.filter-button:first-child { min-width: 68px; }
.delivery-board { overflow: hidden; }
.delivery-board__header,
.delivery-row {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) 120px 190px 44px;
  align-items: center;
  gap: 14px;
}
.delivery-board__header {
  min-height: 50px;
  padding: 0 26px;
  color: var(--muted-soft);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.014);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
}
.delivery-row {
  min-height: 76px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background 180ms ease;
}
.delivery-row:last-child { border-bottom: 0; }
.delivery-row:hover { background: rgba(255,255,255,.02); }
.delivery-index { color: var(--muted-soft); font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; }
.delivery-pair { min-width: 0; }
.delivery-pair strong {
  display: block;
  overflow: hidden;
  color: var(--off-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.delivery-pair span { display: block; margin-top: 5px; color: var(--muted-soft); font-size: 9px; }
.category-chip {
  width: fit-content;
  min-width: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
}
.delivery-status {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.delivery-status:hover { color: var(--off-white); border-color: var(--gold); }
.delivery-status.is-delivered {
  color: #080706;
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}
.delete-pair {
  width: 34px;
  height: 34px;
  border: 0;
  color: #5e5c57;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.delete-pair:hover { color: var(--danger); }
.delivery-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 40px;
  color: var(--muted-soft);
  text-align: center;
}
.delivery-empty strong { display: block; color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.delivery-empty p { margin: 10px 0 0; font-size: 11px; line-height: 1.6; }

/* INITIAL SETUP */
.setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(18px);
}
.setup-card {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(34px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  background: #060606;
  box-shadow: 0 50px 160px rgba(0,0,0,.7);
}
.setup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.setup-card__number {
  position: absolute;
  top: 20px;
  right: 28px;
  color: rgba(255,255,255,.055);
  font-size: 70px;
  font-style: italic;
  font-weight: 900;
}
.setup-card h2 {
  position: relative;
  margin: 16px 0 18px;
  max-width: 390px;
  font-size: clamp(34px, 7vw, 54px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}
.setup-card > p:not(.section-eyebrow) { margin: 0 0 28px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.setup-card input { height: 62px; margin-bottom: 18px; padding: 0 18px; font-size: 22px; font-weight: 900; }

.setup-cancel-button {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 1px solid rgba(204,72,72,.72);
  color: #fff;
  background: rgba(160,40,40,.28);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.setup-cancel-button:hover {
  transform: translateY(-2px);
  border-color: var(--danger);
  background: rgba(190,45,45,.44);
}
.setup-cancel-button:focus-visible {
  outline: 2px solid var(--danger);
  outline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 15px 18px;
  border: 1px solid rgba(201,166,107,.34);
  color: var(--off-white);
  background: rgba(7,7,7,.96);
  box-shadow: 0 22px 70px rgba(0,0,0,.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* Restablecer control de welcome packs */
.control-reset-section {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 10px;
  padding: clamp(24px, 4vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(204,72,72,.22);
  background:
    linear-gradient(115deg, rgba(160,40,40,.075), transparent 44%),
    rgba(255,255,255,.012);
}

.control-reset-section__copy h2 {
  margin: 8px 0 8px;
  color: var(--off-white);
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}

.control-reset-section__copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted-soft);
  font-size: 10px;
  line-height: 1.7;
}

.reset-control-button {
  flex: 0 0 auto;
  min-width: 190px;
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(204,72,72,.62);
  color: #fff;
  background: rgba(160,40,40,.17);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.reset-control-button span {
  font-size: 18px;
  line-height: 1;
}

.reset-control-button:hover {
  border-color: rgba(230,91,91,.95);
  background: rgba(160,40,40,.3);
  transform: translateY(-2px);
}

.reset-control-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.confirmation-card--reset::before {
  background: linear-gradient(to bottom, transparent, var(--danger), transparent);
}

@media (max-width: 700px) {
  .control-reset-section {
    width: min(100% - 28px, 1180px);
    align-items: stretch;
    flex-direction: column;
  }

  .reset-control-button { width: 100%; }
}

.site-footer {
  margin-top: 12px;
  padding: 30px 24px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
  text-align: center;
}
.site-footer p { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .18em; line-height: 1.8; }
.site-footer p:first-child { color: var(--muted); }

@keyframes logoApproach {
  0% { opacity: 0; filter: blur(8px); transform: scale(.68); }
  18% { opacity: 1; }
  72% { filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: scale(.92); }
}
@keyframes loadingBarAppear { to { opacity: 1; } }
@keyframes loadingBarFill { to { transform: scaleX(1); } }
@keyframes loadingBarExit {
  from { opacity: 1; transform: translateY(0) scaleX(1); }
  to { opacity: 0; transform: translateY(-5px) scaleX(.94); }
}
@keyframes rowEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto 1fr; padding-inline: 22px; }
  .main-nav { gap: 14px; }
  .main-nav__link { font-size: 10px; }
  .control-overview { grid-template-columns: 1fr; }
  .progress-card { min-height: 230px; }
  .delivery-board__header,
  .delivery-row { grid-template-columns: 56px minmax(0,1fr) 90px 170px 36px; padding-inline: 18px; }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 126px;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    padding-block: 16px 12px;
  }
  .site-brand { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; order: 2; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .app-view { min-height: calc(100vh - 126px); }
  .control-auth { min-height: calc(100vh - 126px); }

  .category-switcher { grid-template-columns: 1fr; align-items: stretch; gap: 18px; padding: 18px; }
  .category-switcher__divider { width: 100%; height: 1px; }
  .category-group__buttons { overflow-x: auto; padding: 0 0 4px; scrollbar-width: thin; }
  .form-step--split { grid-template-columns: 1fr; gap: 28px; }
  .delivery-tools { grid-template-columns: 1fr; }
  .delivery-filter { justify-content: flex-start; }
  .delivery-board__header { display: none; }
  .delivery-row {
    grid-template-columns: 44px minmax(0,1fr) auto;
    grid-template-areas:
      "index pair category"
      "index status delete";
    gap: 9px 12px;
    min-height: 104px;
    padding-block: 16px;
  }
  .delivery-index { grid-area: index; align-self: start; padding-top: 4px; }
  .delivery-pair { grid-area: pair; }
  .category-chip { grid-area: category; justify-self: end; }
  .delivery-status { grid-area: status; justify-self: start; }
  .delete-pair { grid-area: delete; justify-self: end; }
}

@media (max-width: 600px) {
  .intro-loader__content { width: min(78vw, 390px); }
  .loading-bar { width: min(280px, 58vw); }
  .site-header { padding-inline: 14px; }
  .site-header__logo { width: min(176px, 48vw); }
  .main-nav { gap: 22px; }
  .main-nav__link { font-size: 9px; }
  .header-logout { font-size: 0; width: 34px; height: 34px; border: 1px solid var(--line); }
  .header-logout::after { content: "SALIR"; font-size: 7px; }

  .ranking-page { padding: 48px 14px 52px; }
  .ranking-hero { margin-bottom: 46px; }
  .ranking-hero__eyebrow { font-size: 9px; }
  .ranking-hero__category { font-size: 10px; letter-spacing: .2em; }
  .category-switcher { margin-bottom: 14px; }
  .ranking-board__header,
  .ranking-row { grid-template-columns: 62px minmax(0, 1fr) 92px; }
  .ranking-board__header { min-height: 46px; padding: 0 14px; font-size: 8px; }
  .ranking-row { min-height: 66px; padding: 0 14px; }
  .ranking-position__badge { width: 32px; height: 32px; font-size: 11px; }
  .ranking-player { padding-right: 10px; font-size: 13px; }
  .ranking-points { font-size: 16px; }
  .ranking-points small { display: none; }
  .ranking-row:hover { transform: none; }

  .control-auth { padding: 46px 14px 70px; }
  .login-card { padding: 32px 24px; }
  .login-card__brand { margin-bottom: 30px; }
  .control-page { padding: 48px 14px 60px; }
  .control-hero { margin-bottom: 38px; }
  .control-hero h1 { font-size: 50px; }
  .progress-card { grid-template-columns: 1fr; justify-items: start; }
  .progress-ring { width: 112px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 106px; padding: 17px; }
  .stat-card strong { font-size: 30px; }
  .stat-card--settings { grid-column: 1 / -1; }
  .panel-heading { min-height: 94px; padding: 22px 20px; }
  .panel-heading__number { font-size: 50px; }
  .pair-form { padding: 22px 20px; }
  .form-grid--two { grid-template-columns: 1fr; }
  .form-step--actions { align-items: stretch; flex-direction: column; }
  .form-step--actions .primary-button { width: 100%; }
  .delivery-tools { padding: 18px 14px; }
  .delivery-row { padding-inline: 14px; }
  .delivery-status { padding-inline: 10px; font-size: 7px; }
  .setup-card { padding: 34px 24px; }
  .setup-card__number { font-size: 54px; right: 20px; }
  .toast { right: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader__logo,
  .loading-bar,
  .loading-bar__fill,
  .ranking-row { animation-duration: 1ms; animation-delay: 0ms !important; }
  .intro-loader,
  .site-shell,
  .ranking-row,
  .category-button,
  .compact-category,
  .filter-button,
  .progress-track span { transition-duration: 1ms; }
}

/* =========================================================
   PRO PADEL SERIES VERSION 2
   Navegación, entregas individuales y confirmación de borrado
   ========================================================= */

body.has-modal-open { overflow: hidden; }

/* Navegación principal: ocupa de forma ordenada el espacio izquierdo. */
.main-nav {
  justify-self: stretch;
  justify-content: space-evenly;
  width: 100%;
  max-width: 560px;
  gap: clamp(22px, 3vw, 58px);
  padding-right: clamp(4px, 1vw, 18px);
}

.main-nav__link {
  font-size: clamp(14px, 1.35vw, 18px);
  letter-spacing: -.035em;
}

/* Logo centrado dentro de la tarjeta de acceso. */
.login-card__brand {
  margin: 0 auto 38px;
  text-align: center;
}

.login-card__brand img { margin-inline: auto; }

/* Registro individual de welcome packs. */
.player-registration-grid { align-items: stretch; }

.player-registration-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.player-registration-card > label:first-child { min-width: 0; }

.welcome-toggle--player {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: #050505;
  transition: border-color 180ms ease, background 180ms ease;
}

.welcome-toggle--player:hover {
  border-color: rgba(201,166,107,.55);
  background: #080808;
}

.welcome-toggle--player:has(input:checked) {
  border-color: rgba(201,166,107,.72);
  background: rgba(201,166,107,.055);
}

.form-step--submit { align-items: center; }

.registration-help {
  max-width: 650px;
  margin: 0;
  color: var(--muted-soft);
  font-size: 10px;
  line-height: 1.65;
}

.registration-help strong {
  color: var(--gold-bright);
  font-weight: 900;
  letter-spacing: .08em;
}

/* Filtro especial para entregas parciales. */
.filter-button--pending {
  min-width: 118px;
  border-color: rgba(201,166,107,.3);
}

.filter-button--pending:not(.is-active) { color: var(--gold); }

/* Vista de pendientes: muestra cada jugador y permite completar la entrega faltante. */
.delivery-board.is-pending-view .delivery-board__header,
.delivery-board.is-pending-view .delivery-row {
  grid-template-columns: 64px minmax(210px, .85fr) 92px minmax(390px, 1.35fr) 44px;
}

.delivery-row--pending {
  min-height: 132px;
  background: linear-gradient(90deg, rgba(201,166,107,.035), transparent 42%);
}

.pending-player-actions {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pending-player {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 7px 8px 7px 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.pending-player.is-missing {
  border-color: rgba(201,166,107,.34);
  background: rgba(201,166,107,.04);
}

.pending-player__copy { min-width: 0; }

.pending-player__copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .2em;
}

.pending-player__copy strong {
  display: block;
  overflow: hidden;
  color: var(--off-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pending-pack-button {
  min-width: 118px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--gold);
  color: #090806;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.pending-pack-button:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.pending-pack-button.is-delivered,
.pending-pack-button:disabled {
  color: var(--muted-soft);
  border-color: var(--line-strong);
  background: transparent;
  cursor: default;
  opacity: .72;
}

/* Confirmación personalizada al eliminar una pareja. */
.confirmation-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.confirmation-modal[hidden] { display: none; }
.confirmation-modal.is-visible { opacity: 1; }

.confirmation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(16px);
}

.confirmation-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: clamp(30px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(201,166,107,.35);
  background: #070707;
  box-shadow: 0 36px 110px rgba(0,0,0,.68);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.16,1,.3,1);
}

.confirmation-modal.is-visible .confirmation-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.confirmation-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--danger), transparent);
}

.confirmation-card__mark {
  position: absolute;
  top: -18px;
  right: 20px;
  color: rgba(255,255,255,.045);
  font-size: 116px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.confirmation-card h2 {
  position: relative;
  margin: 14px 0 18px;
  color: var(--off-white);
  font-size: clamp(36px, 7vw, 58px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}

.confirmation-card > p:not(.section-eyebrow) {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.confirmation-card__pair {
  position: relative;
  display: block;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  color: var(--off-white);
  background: rgba(255,255,255,.018);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.confirmation-card__actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.secondary-button,
.danger-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
}

.secondary-button {
  color: var(--muted);
  background: transparent;
}

.secondary-button:hover { color: var(--off-white); border-color: var(--muted); }

.danger-button {
  color: #fff;
  border-color: rgba(204,72,72,.66);
  background: rgba(160,40,40,.26);
}

.danger-button:hover { border-color: var(--danger); background: rgba(190,45,45,.4); }

@media (max-width: 1180px) {
  .main-nav__link { font-size: clamp(12px, 1.25vw, 15px); }
  .delivery-board.is-pending-view .delivery-board__header,
  .delivery-board.is-pending-view .delivery-row {
    grid-template-columns: 54px minmax(180px,.8fr) 82px minmax(330px,1.3fr) 36px;
    padding-inline: 18px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    justify-content: flex-start;
    gap: 22px;
    max-width: none;
  }
  .main-nav__link { font-size: 12px; }
}

@media (max-width: 820px) {
  .main-nav {
    justify-content: center;
    width: auto;
    padding-right: 0;
  }
  .main-nav__link { font-size: 12px; }

  .delivery-board.is-pending-view .delivery-row {
    grid-template-columns: 44px minmax(0,1fr) auto;
    grid-template-areas:
      "index pair category"
      "index status status"
      "index delete delete";
    min-height: 184px;
  }
  .delivery-row--pending .pending-player-actions { grid-area: status; }
  .delivery-row--pending .delete-pair { grid-area: delete; justify-self: end; }
}

@media (max-width: 600px) {
  .main-nav { gap: 30px; }
  .main-nav__link { font-size: 11px; }
  .player-registration-card { padding: 14px; }
  .welcome-toggle--player { padding: 10px; }
  .registration-help { font-size: 9px; }

  .pending-player {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .pending-pack-button { width: 100%; }
  .delivery-board.is-pending-view .delivery-row { min-height: 260px; }

  .confirmation-card__actions { grid-template-columns: 1fr; }
}


/* VERSION 5 · REGLAMENTO */
.header-actions {
  justify-self: end;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 28px);
}

.main-nav__link--utility::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: var(--gold);
  transition: right 240ms cubic-bezier(.16,1,.3,1);
}

.main-nav__link--utility:hover,
.main-nav__link--utility.is-active {
  color: var(--off-white);
}

.main-nav__link--utility.is-active::after {
  right: 0;
}

.rules-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0 clamp(72px, 8vw, 108px);
}

.rules-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    radial-gradient(circle at top right, rgba(201,166,107,.18), transparent 38%),
    #0a0a0a;
  box-shadow: 0 32px 60px rgba(0,0,0,.26);
}

.rules-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -55% auto;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,166,107,.22), transparent 66%);
  pointer-events: none;
}

.rules-hero h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 118px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .9;
}

.rules-hero__lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.7;
}

.rules-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.highlight-card {
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.highlight-card__value {
  display: block;
  color: var(--gold-bright);
  font-size: clamp(24px, 3.2vw, 42px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}

.highlight-card__label {
  display: block;
  margin-top: 10px;
  color: var(--off-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.55;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.rules-card {
  grid-column: span 4;
  padding: 24px 24px 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: 0 22px 44px rgba(0,0,0,.18);
}

.rules-card--featured {
  grid-column: span 8;
  background:
    linear-gradient(180deg, rgba(201,166,107,.10), rgba(255,255,255,.015) 24%, rgba(255,255,255,.012));
}

.rules-card--full {
  grid-column: span 8;
}

.rules-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.rules-card__index {
  color: rgba(255,255,255,.18);
  font-size: clamp(28px, 4vw, 54px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}

.rules-card .card-kicker {
  color: var(--off-white);
  font-size: clamp(28px, 4vw, 54px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}

.rules-card p,
.rules-list {
  margin: 0;
  color: #d4d0c7;
  font-size: 14px;
  line-height: 1.75;
}

.rules-list {
  padding-left: 18px;
}

.rules-list li + li {
  margin-top: 10px;
}

.rules-card strong,
.rules-list strong {
  color: var(--off-white);
}

@media (max-width: 1100px) {
  .rules-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-card,
  .rules-card--featured,
  .rules-card--full {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .header-actions {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .rules-page {
    width: min(100% - 18px, 1200px);
    padding-top: 28px;
  }

  .rules-hero {
    border-radius: 24px;
    padding: 24px 20px;
  }

  .rules-highlights,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rules-card,
  .rules-card--featured,
  .rules-card--full {
    grid-column: auto;
    border-radius: 22px;
    padding: 22px 18px 20px;
  }

  .highlight-card {
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .header-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    width: 100%;
    justify-content: center;
    gap: 24px;
    padding-top: 6px;
  }

  .header-logout {
    order: 2;
  }
}


/* VERSION 8 · REORGANIZACIÓN DEL REGLAMENTO */
.rules-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.rules-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.rules-columns .rules-card,
.rules-columns .rules-card--featured,
.rules-columns .rules-card--full {
  grid-column: auto;
  width: 100%;
  min-height: 0;
}

.rules-column--wide .rules-card {
  background:
    linear-gradient(180deg, rgba(201,166,107,.10), rgba(255,255,255,.015) 24%, rgba(255,255,255,.012));
}

.rules-column--compact .rules-card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}

@media (max-width: 900px) {
  .rules-columns {
    grid-template-columns: 1fr;
  }

  .rules-column--compact {
    grid-row: 2;
  }
}


/* VERSION 10 · PROGRAMACIÓN DESDE ARCHIVO VOLA */
.schedule-page {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) 0 clamp(72px, 8vw, 108px);
}

.schedule-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(4px, 1vw, 12px) 30px;
}

.schedule-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(54px, 8.4vw, 116px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .88;
}

.schedule-hero__copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.schedule-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.schedule-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.schedule-summary strong {
  color: var(--gold-bright);
  font-size: 18px;
  font-style: italic;
  letter-spacing: -.04em;
}

.schedule-date-nav {
  display: flex;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: rgba(255,255,255,.018);
  scrollbar-width: thin;
}

.schedule-date-button {
  flex: 1 0 112px;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.schedule-date-button:hover {
  color: var(--off-white);
  background: rgba(255,255,255,.035);
}

.schedule-date-button.is-active {
  color: #080706;
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, var(--gold-bright), #b98d4e);
  transform: translateY(-2px);
}

.schedule-date-button span {
  grid-column: 1 / -1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .22em;
}

.schedule-date-button strong {
  font-size: 28px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}

.schedule-date-button small {
  align-self: end;
  padding-bottom: 2px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.schedule-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(4,4,4,.88);
  box-shadow: 0 34px 80px rgba(0,0,0,.28);
}

.schedule-board__date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201,166,107,.12), transparent 42%);
}

.schedule-board__date span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.schedule-board__date strong {
  font-size: clamp(18px, 2.4vw, 32px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
}

.schedule-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--gold) #0b0b0b;
}

.schedule-grid {
  min-width: 1180px;
  display: grid;
  grid-template-columns: 92px repeat(4, minmax(245px, 1fr));
  gap: 1px;
  background: var(--line);
}

.schedule-grid__corner,
.schedule-court-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  background: #090909;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .24em;
}

.schedule-court-heading:last-of-type {
  color: var(--gold-bright);
}

.schedule-hour {
  min-height: 190px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 24px 10px;
  background: #080808;
}

.schedule-hour strong {
  font-size: 19px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
}

.schedule-hour span {
  color: var(--muted-soft);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .2em;
}

.schedule-match-card,
.schedule-empty-slot {
  min-height: 190px;
  padding: 17px;
  background:
    radial-gradient(circle at top right, rgba(201,166,107,.07), transparent 34%),
    #0c0c0c;
}

.schedule-match-card {
  display: flex;
  flex-direction: column;
  transition: background 180ms ease, transform 180ms ease;
}

.schedule-match-card:hover {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at top right, rgba(201,166,107,.16), transparent 38%),
    #111;
}

.schedule-match-card__head,
.schedule-match-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-match-card__head strong {
  min-width: 0;
  color: var(--gold-bright);
  font-size: 13px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.schedule-match-card__head > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(201,166,107,.22);
  border-radius: 999px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
}

.schedule-match-card__meta {
  margin-top: 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.schedule-teams {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-content: center;
  gap: 6px;
  padding-top: 10px;
}

.schedule-pair {
  display: grid;
  gap: 3px;
}

.schedule-pair span {
  display: block;
  overflow: hidden;
  color: #e8e5dd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-pair span::before {
  content: "·";
  margin-right: 6px;
  color: var(--gold);
}

.schedule-pair span.is-bye {
  color: var(--muted-soft);
  font-weight: 500;
}

.schedule-versus {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-soft);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .18em;
}

.schedule-versus::before,
.schedule-versus::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.schedule-empty-slot {
  display: grid;
  place-items: center;
  color: #35342f;
  background: #070707;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}

.schedule-note {
  margin: 18px 6px 0;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: .08em;
  text-align: right;
}

@media (max-width: 1180px) {
  .header-actions .main-nav__link { font-size: 11px; }
  .header-actions { gap: 18px; }
}

@media (max-width: 900px) {
  .schedule-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-summary { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .schedule-page {
    width: min(100% - 14px, 1500px);
    padding-top: 28px;
  }

  .schedule-hero {
    padding-inline: 6px;
  }

  .schedule-date-nav {
    border-radius: 20px 20px 0 0;
  }

  .schedule-board {
    border-radius: 0 0 22px 22px;
  }

  .schedule-board__date {
    padding: 18px;
  }

  .schedule-summary span {
    min-height: 38px;
    padding-inline: 12px;
  }

  .schedule-note { text-align: left; }
}


/* VERSION 11 · NAVEGACIÓN SIMÉTRICA, BUSCADOR Y DESCARGA DE PROGRAMACIÓN */
@media (min-width: 821px) {
  .site-header {
    grid-template-columns: minmax(310px, 1fr) auto minmax(310px, 1fr);
  }

  .main-nav,
  .header-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
    gap: clamp(28px, 3.2vw, 58px);
  }

  .header-actions .header-logout {
    position: absolute;
    right: clamp(14px, 2vw, 28px);
    bottom: 8px;
  }
}

.schedule-search {
  position: relative;
  z-index: 8;
  padding: 22px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(201,166,107,.10), transparent 30%),
    rgba(255,255,255,.018);
}

.schedule-search__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.schedule-search__heading h2 {
  margin: 6px 0 0;
  color: var(--off-white);
  font-size: clamp(24px, 3vw, 42px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1;
}

.schedule-search__hint {
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}

.schedule-search__field {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(201,166,107,.32);
  border-radius: 18px;
  background: #080808;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.schedule-search__field:focus-within {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(201,166,107,.08);
}

.schedule-search__icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
}

.schedule-search__icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -7px;
  bottom: -3px;
  background: var(--gold);
  transform: rotate(45deg);
  transform-origin: left center;
}

.schedule-search__field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--off-white);
  background: transparent;
  font: italic 900 14px Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
}

.schedule-search__field input::placeholder {
  color: #57554f;
}

.schedule-search__field button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 20px;
  cursor: pointer;
}

.schedule-search-results {
  max-height: 440px;
  margin-top: 12px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #070707;
  box-shadow: 0 26px 52px rgba(0,0,0,.36);
}

.schedule-search-results__summary {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}

.schedule-search-result {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 18px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.schedule-search-result:last-child {
  border-bottom: 0;
}

.schedule-search-result:hover,
.schedule-search-result:focus-visible {
  outline: 0;
  background: rgba(201,166,107,.08);
}

.schedule-search-result__top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.schedule-search-result__top strong {
  color: var(--gold-bright);
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-search-result__top span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.schedule-search-result__players {
  min-width: 0;
  overflow: hidden;
  color: var(--off-white);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-search-result__arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  padding: 8px 10px;
  border: 1px solid rgba(201,166,107,.25);
  border-radius: 999px;
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.schedule-search-empty {
  display: grid;
  gap: 6px;
  padding: 26px 18px;
  text-align: center;
}

.schedule-search-empty strong {
  color: var(--off-white);
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
}

.schedule-search-empty span {
  color: var(--muted);
  font-size: 10px;
}

.schedule-date-nav {
  border-radius: 0;
}

.schedule-match-card {
  cursor: pointer;
}

.schedule-match-card:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: -3px;
}

.schedule-match-card.is-search-highlight {
  z-index: 3;
  animation: scheduleFoundPulse 2.4s ease;
}

@keyframes scheduleFoundPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(201,166,107,0); }
  18%, 70% { box-shadow: inset 0 0 0 3px var(--gold-bright), 0 0 34px rgba(201,166,107,.34); }
}

.schedule-download-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
  overflow-y: auto;
  overflow-x: hidden;
}

.schedule-download-card {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  max-height: min(92vh, 980px);
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(300px, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  margin: auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(201,166,107,.36);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 0%, rgba(201,166,107,.16), transparent 30%),
    #090909;
  box-shadow: 0 40px 100px rgba(0,0,0,.68);
  overflow: auto;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.16,1,.3,1);
}

.schedule-download-modal.is-visible .schedule-download-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-download-card__close {
  position: sticky;
  top: 12px;
  margin-left: auto;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(0,0,0,.55);
  font-size: 22px;
  cursor: pointer;
}

.schedule-download-card__preview {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 26px 60px rgba(0,0,0,.42);
}

.schedule-download-card__preview canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.schedule-download-card__content h2 {
  margin: 14px 0 16px;
  color: var(--off-white);
  font-size: clamp(28px, 4vw, 48px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}

.schedule-download-card__content p:not(.section-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.schedule-download-card__content > strong {
  display: block;
  margin-top: 18px;
  padding: 14px;
  border-left: 2px solid var(--gold);
  color: var(--off-white);
  background: rgba(255,255,255,.025);
  font-size: 11px;
  line-height: 1.55;
}

.schedule-download-card__actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  margin-top: 24px;
}

.schedule-download-card__actions .primary-button,
.schedule-download-card__actions .secondary-button {
  width: 100%;
  min-height: 52px;
  margin: 0;
}

@media (max-width: 900px) {
  .schedule-download-card {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
  }

  .schedule-download-card__preview {
    width: min(100%, 480px);
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 154px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px 8px;
  }

  .site-brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .main-nav,
  .header-actions {
    width: 100%;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    gap: clamp(12px, 3vw, 24px);
  }

  .main-nav { grid-column: 1; }
  .header-actions { grid-column: 2; }

  .header-actions .header-logout {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .app-view { min-height: calc(100vh - 154px); }
  .control-auth { min-height: calc(100vh - 154px); }
}

@media (max-width: 640px) {
  .main-nav,
  .header-actions {
    gap: 10px;
  }

  .main-nav__link,
  .header-actions .main-nav__link {
    font-size: 8px;
  }

  .schedule-search {
    padding: 16px 12px;
    border-radius: 20px 20px 0 0;
  }

  .schedule-search__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .schedule-search__hint {
    display: none;
  }

  .schedule-search-result {
    grid-template-columns: 1fr;
  }

  .schedule-search-result__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .schedule-search-result__players {
    white-space: normal;
    line-height: 1.45;
  }

  .schedule-search-result__arrow {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .schedule-download-modal {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .schedule-download-card {
    padding: 16px;
    border-radius: 24px;
  }

  .schedule-download-card__actions {
    grid-template-columns: 1fr;
  }
}


/* VERSION 13 · MODAL DE DESCARGA CENTRADO */
.schedule-download-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.5vw, 28px);
  overflow: auto;
}

.schedule-download-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - clamp(28px, 5vw, 56px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: auto;
  padding: clamp(24px, 4vw, 40px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 30px;
}

.schedule-download-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
}

.schedule-download-card__preview {
  flex: 0 0 auto;
  width: min(100%, 410px);
  margin: 0 auto;
  border-radius: 22px;
}

.schedule-download-card__content {
  width: min(100%, 580px);
  margin: 0 auto;
  text-align: center;
}

.schedule-download-card__content h2 {
  max-width: 560px;
  margin: 12px auto 14px;
  font-size: clamp(25px, 4.2vw, 42px);
}

.schedule-download-card__content p:not(.section-eyebrow) {
  max-width: 520px;
  margin-inline: auto;
}

.schedule-download-card__content > strong {
  max-width: 540px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-left: 0;
  border-top: 1px solid rgba(201,166,107,.55);
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: center;
}

.schedule-download-card__actions {
  width: min(100%, 520px);
  margin: 22px auto 0;
}

.schedule-download-card__actions button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-height: 820px) and (min-width: 701px) {
  .schedule-download-card {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(300px, 1fr);
    gap: 30px;
    align-items: center;
  }

  .schedule-download-card__preview {
    width: 100%;
  }

  .schedule-download-card__content {
    text-align: left;
  }

  .schedule-download-card__content h2,
  .schedule-download-card__content p:not(.section-eyebrow),
  .schedule-download-card__content > strong,
  .schedule-download-card__actions {
    margin-left: 0;
    margin-right: 0;
  }

  .schedule-download-card__content > strong {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .schedule-download-modal {
    padding: 10px;
  }

  .schedule-download-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    gap: 16px;
    padding: 22px 14px 18px;
    border-radius: 22px;
  }

  .schedule-download-card__preview {
    width: min(100%, 340px);
    border-radius: 18px;
  }

  .schedule-download-card__content h2 {
    font-size: clamp(23px, 7vw, 34px);
  }

  .schedule-download-card__actions {
    grid-template-columns: 1fr;
  }
}


/* VERSION 14 · CENTRADO REAL EN EL VIEWPORT */
body > .schedule-download-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 28px);
  overflow: auto;
  overscroll-behavior: contain;
}

body > .schedule-download-modal[hidden] {
  display: none;
}

body > .schedule-download-modal .schedule-download-card {
  flex: 0 1 auto;
  margin: 0;
  max-height: calc(100dvh - clamp(24px, 5vw, 56px));
}

@supports not (height: 100dvh) {
  body > .schedule-download-modal {
    height: 100vh;
    min-height: 100vh;
  }

  body > .schedule-download-modal .schedule-download-card {
    max-height: calc(100vh - 32px);
  }
}


/* VERSION 15 · MODAL DE PROGRAMACIÓN SIEMPRE CENTRADO */
body > .schedule-download-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2500 !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: clamp(12px, 2.5vw, 28px) !important;
  overflow: hidden !important;
  overscroll-behavior: contain;
}

body > .schedule-download-modal[hidden] {
  display: none !important;
}

body > .schedule-download-modal .confirmation-modal__backdrop {
  position: absolute;
  inset: 0;
}

body > .schedule-download-modal .schedule-download-card {
  position: relative;
  width: min(680px, calc(100vw - 24px)) !important;
  max-width: 680px !important;
  max-height: calc(100dvh - clamp(24px, 5vw, 56px)) !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

@media (max-height: 820px) and (min-width: 701px) {
  body > .schedule-download-modal .schedule-download-card {
    width: min(960px, calc(100vw - 32px)) !important;
    max-width: 960px !important;
  }
}

@media (max-width: 700px) {
  body > .schedule-download-modal {
    padding: 10px !important;
  }

  body > .schedule-download-modal .schedule-download-card {
    width: min(100%, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 20px) !important;
  }
}

@supports not (height: 100dvh) {
  body > .schedule-download-modal {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  body > .schedule-download-modal .schedule-download-card {
    max-height: calc(100vh - 32px) !important;
  }
}


/* VERSION 16 · CABECERA Y FECHAS DE PROGRAMACIÓN */
.schedule-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 clamp(4px, 1vw, 12px) 34px;
  text-align: center;
}

.schedule-hero .section-eyebrow {
  text-align: center;
}

.schedule-hero h1 {
  width: 100%;
  text-align: center;
}

.schedule-hero__copy {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.schedule-summary {
  display: none !important;
}

.schedule-date-button {
  min-width: 150px;
  grid-template-columns: auto auto;
}

.schedule-date-button span {
  font-size: 9px;
  letter-spacing: .16em;
  white-space: nowrap;
}

.schedule-board__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(24px, 3.5vw, 38px) 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(201,166,107,.15), transparent 62%);
}

.schedule-board__date > span {
  color: var(--off-white);
  font-size: clamp(34px, 5vw, 68px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}

.schedule-board__date-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.schedule-board__date-meta strong {
  color: var(--gold-bright);
  font-size: clamp(18px, 2vw, 28px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.035em;
}

.schedule-board__date-meta small {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.schedule-board__date-meta small::before {
  content: "";
  width: 1px;
  height: 18px;
  margin-right: 6px;
  background: rgba(255,255,255,.18);
}

.schedule-board__date-meta b {
  color: var(--off-white);
  font-size: 18px;
  font-style: italic;
  letter-spacing: -.04em;
}

.schedule-download-card__content {
  padding-top: 4px;
}

.schedule-download-card__content > .section-eyebrow,
.schedule-download-card__content > #scheduleDownloadMatchName {
  display: none !important;
}

.schedule-download-card__content h2 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .schedule-date-button {
    flex-basis: 142px;
    min-width: 142px;
  }

  .schedule-board__date-meta {
    gap: 9px;
  }

  .schedule-board__date-meta small::before {
    height: 14px;
    margin-right: 2px;
  }
}


/* VERSION 21 · PANEL DE CONTROL DE PROGRAMACIÓN */
.schedule-search__heading > div { width: 100%; }

.schedule-admin-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2700 !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: clamp(12px, 2.5vw, 28px) !important;
  overflow: hidden !important;
}

.schedule-admin-modal[hidden] { display: none !important; }

.schedule-admin-card {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(440px, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  padding: clamp(24px, 3.5vw, 44px);
  overflow: auto;
  border: 1px solid rgba(201,166,107,.42);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 4%, rgba(201,166,107,.16), transparent 28%),
    #080808;
  box-shadow: 0 42px 120px rgba(0,0,0,.76);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.16,1,.3,1);
}

.schedule-admin-modal.is-visible .schedule-admin-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-admin-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(0,0,0,.72);
  font-size: 22px;
  cursor: pointer;
}

.schedule-admin-preview {
  position: sticky;
  top: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 28px 70px rgba(0,0,0,.48);
}

.schedule-admin-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.schedule-admin-panel { min-width: 0; }

.schedule-admin-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 2px 54px 24px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-admin-heading img {
  width: min(178px, 34%);
  height: auto;
  margin-top: 2px;
}

.schedule-admin-heading h2 {
  margin: 0 0 8px;
  color: var(--off-white);
  font-size: clamp(29px, 4vw, 48px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .92;
}

.schedule-admin-heading p {
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
}

.schedule-admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.schedule-admin-actions button {
  position: relative;
  min-height: 112px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--off-white);
  background: rgba(255,255,255,.022);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.schedule-admin-actions button:hover {
  border-color: rgba(201,166,107,.56);
  background: rgba(201,166,107,.065);
  transform: translateY(-2px);
}

.schedule-admin-actions button > span {
  position: absolute;
  top: 8px;
  right: 12px;
  color: rgba(255,255,255,.055);
  font-size: 42px;
  font-style: italic;
  font-weight: 900;
}

.schedule-admin-actions strong,
.schedule-admin-actions small {
  position: relative;
  display: block;
}

.schedule-admin-actions strong {
  margin-bottom: 9px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.schedule-admin-actions small {
  max-width: 190px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.schedule-admin-workspace {
  min-height: 250px;
  margin-top: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0,0,0,.28);
}

.schedule-admin-empty {
  min-height: 196px;
  display: grid;
  place-content: center;
  text-align: center;
}

.schedule-admin-empty span,
.schedule-admin-form__heading span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2em;
}

.schedule-admin-empty strong {
  margin: 10px 0 8px;
  font-size: 17px;
  font-style: italic;
  font-weight: 900;
}

.schedule-admin-empty p,
.schedule-admin-form__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.schedule-admin-form,
.schedule-result-form { display: grid; gap: 16px; }

.schedule-admin-form__heading h3 {
  margin: 8px 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.04em;
}

.schedule-admin-form label {
  display: grid;
  gap: 8px;
}

.schedule-admin-form label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.schedule-admin-form select,
.schedule-admin-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--off-white);
  background: #0c0c0c;
  font-size: 12px;
  font-weight: 700;
}

.schedule-result-editor {
  padding: 16px;
  border: 1px solid rgba(201,166,107,.26);
  border-radius: 18px;
  background: rgba(201,166,107,.025);
}

.schedule-result-editor__teams {
  display: grid;
  grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.schedule-result-editor__pair {
  min-width: 0;
  display: grid;
  gap: 7px;
  text-align: center;
}

.schedule-result-editor__pair strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-result-editor__versus {
  color: var(--gold);
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  text-align: center;
}

.schedule-result-editor__sets {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.schedule-score-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr);
  gap: 12px;
  align-items: center;
}

.schedule-score-row > strong {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .08em;
  text-align: center;
}

.schedule-score-control {
  display: grid;
  grid-template-columns: 36px minmax(36px,1fr) 36px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #080808;
}

.schedule-score-control button {
  height: 100%;
  border: 0;
  color: var(--gold-bright);
  background: rgba(255,255,255,.035);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.schedule-score-control output {
  color: var(--off-white);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.schedule-match-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(201,166,107,.22);
}

.schedule-match-result span {
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.schedule-match-result strong {
  color: var(--off-white);
  font-size: 9px;
  font-weight: 900;
}

.schedule-admin-session .schedule-match-card {
  border-color: rgba(201,166,107,.24);
}

.schedule-admin-session .schedule-match-card:hover {
  border-color: rgba(201,166,107,.62);
}

@media (max-width: 960px) {
  .schedule-admin-card {
    grid-template-columns: 1fr;
    width: min(700px, calc(100vw - 20px));
  }

  .schedule-admin-preview {
    position: relative;
    width: min(100%, 440px);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .schedule-admin-modal { padding: 8px !important; }
  .schedule-admin-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    gap: 22px;
    padding: 18px 12px;
    border-radius: 22px;
  }
  .schedule-admin-heading {
    display: grid;
    gap: 14px;
    padding-right: 44px;
  }
  .schedule-admin-heading img { width: 170px; }
  .schedule-admin-actions { grid-template-columns: 1fr; }
  .schedule-result-editor__teams { grid-template-columns: minmax(0,1fr) 38px minmax(0,1fr); }
  .schedule-score-row { grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); gap: 6px; }
  .schedule-score-control { grid-template-columns: 30px minmax(30px,1fr) 30px; }
}

@supports not (height: 100dvh) {
  .schedule-admin-modal { height: 100vh !important; }
  .schedule-admin-card { max-height: calc(100vh - 24px); }
}


/* VERSION 22 · PANEL ADMINISTRATIVO Y PROGRAMACIÓN MANUAL */
.schedule-admin-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 52px 22px;
  text-align: center;
}

.schedule-admin-heading img {
  width: min(220px, 48%);
  margin: 0 auto 5px;
}

.schedule-admin-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  white-space: nowrap;
}

.schedule-admin-heading p { margin-top: 2px; }

.schedule-admin-actions[hidden],
.schedule-admin-workspace[hidden] { display: none !important; }

.schedule-admin-card.is-tool-open .schedule-admin-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.schedule-admin-card.is-tool-open .schedule-admin-workspace {
  flex: 1;
  display: grid;
  align-content: center;
  margin-top: 20px;
}

.schedule-admin-actions button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
}

.schedule-admin-form select optgroup {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.schedule-admin-form select option {
  color: var(--off-white);
  font-size: 12px;
  font-weight: 700;
}

.schedule-result-editor__pair > span {
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.schedule-download-card.has-result .schedule-download-card__actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 650px);
}

.schedule-result-download {
  border-color: rgba(201,166,107,.56) !important;
  color: var(--gold-bright) !important;
}

.schedule-empty-slot.is-actionable {
  border-color: rgba(201,166,107,.26);
  color: var(--gold-bright);
  background: rgba(201,166,107,.035);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.schedule-empty-slot.is-actionable:hover,
.schedule-empty-slot.is-actionable:focus-visible {
  border-color: rgba(201,166,107,.72);
  background: rgba(201,166,107,.09);
  transform: translateY(-2px);
}

.schedule-add-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2800 !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: clamp(12px, 2.5vw, 28px) !important;
  overflow: hidden !important;
}

.schedule-add-modal[hidden] { display: none !important; }

.schedule-add-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(24px, 4vw, 42px);
  overflow: auto;
  border: 1px solid rgba(201,166,107,.44);
  border-radius: 30px;
  background: radial-gradient(circle at 80% 0%, rgba(201,166,107,.15), transparent 32%), #080808;
  box-shadow: 0 42px 120px rgba(0,0,0,.76);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.16,1,.3,1);
}

.schedule-add-modal.is-visible .schedule-add-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-add-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(0,0,0,.72);
  font-size: 22px;
  cursor: pointer;
}

.schedule-add-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 44px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.schedule-add-heading img { width: min(230px, 55%); }
.schedule-add-heading > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2em;
}
.schedule-add-heading h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
}
.schedule-add-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.schedule-add-form { display: grid; gap: 20px; margin-top: 24px; }
.schedule-add-form label { display: grid; gap: 8px; }
.schedule-add-form label > span,
.schedule-pair-picker__label {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}
.schedule-add-form select,
.schedule-pair-picker input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--off-white);
  background: #0b0b0b;
  font-size: 11px;
  font-weight: 800;
}

.schedule-add-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.schedule-pair-picker {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(201,166,107,.24);
  border-radius: 18px;
  background: rgba(201,166,107,.025);
}

.schedule-pair-picker__selected {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
.schedule-pair-picker__selected.has-selection {
  border-style: solid;
  border-color: rgba(201,166,107,.48);
  color: var(--off-white);
}

.schedule-pair-picker__results {
  position: absolute;
  top: 112px;
  left: 16px;
  right: 16px;
  z-index: 5;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(201,166,107,.42);
  border-radius: 12px;
  background: #070707;
  box-shadow: 0 20px 50px rgba(0,0,0,.68);
}
.schedule-pair-picker__results p {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.schedule-pair-picker__results button {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--off-white);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.schedule-pair-picker__results button:hover { background: rgba(201,166,107,.08); }
.schedule-pair-picker__results button strong { font-size: 10px; }
.schedule-pair-picker__results button span { color: var(--muted); font-size: 9px; }

@media (max-width: 700px) {
  .schedule-admin-heading { padding-inline: 42px; }
  .schedule-admin-heading img { width: min(190px, 62%); }
  .schedule-admin-heading h2 { font-size: 25px; }
  .schedule-download-card.has-result .schedule-download-card__actions { grid-template-columns: 1fr; }
  .schedule-add-modal { padding: 8px !important; }
  .schedule-add-card { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 22px 12px; border-radius: 22px; }
  .schedule-add-pairs { grid-template-columns: 1fr; }
  .schedule-pair-picker__results { position: static; max-height: 190px; }
}


@supports not (height: 100dvh) {
  .schedule-add-modal { height: 100vh !important; }
  .schedule-add-card { max-height: calc(100vh - 24px); }
}


/* VERSION 23 · PANEL SIN SCROLL Y MARCADOR DE TRANSMISIÓN */
@media (min-width: 961px) {
  .schedule-admin-card {
    align-items: stretch;
    overflow: hidden;
  }

  .schedule-admin-preview {
    position: relative;
    top: auto;
    align-self: start;
  }

  .schedule-admin-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .schedule-admin-card.is-tool-open .schedule-admin-workspace {
    min-height: 0;
    margin-top: 12px;
    padding: 18px 20px;
    overflow: hidden;
  }
}

.schedule-admin-actions strong {
  font-size: 13px;
  letter-spacing: .065em;
}

.schedule-admin-actions small {
  font-size: 9.5px;
}

.schedule-admin-delete-result {
  grid-column: 1 / -1;
  min-height: 82px !important;
  border-color: rgba(183,109,98,.34) !important;
}

.schedule-admin-delete-result:not(:disabled) strong {
  color: #d99084;
}

.schedule-admin-delete-result:not(:disabled):hover {
  border-color: rgba(183,109,98,.72) !important;
  background: rgba(183,109,98,.075) !important;
}

.schedule-admin-form,
.schedule-result-form {
  width: 100%;
  gap: 12px;
}

.schedule-admin-form__heading h3 {
  margin: 6px 0;
  font-size: clamp(20px, 2.4vw, 28px);
}

.schedule-admin-form__heading p {
  line-height: 1.45;
}

.schedule-admin-form select,
.schedule-admin-form input {
  min-height: 44px;
}

.schedule-admin-form__actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  margin-top: 2px;
}

.schedule-admin-form__actions button {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.schedule-admin-form__actions button:disabled {
  cursor: not-allowed;
  filter: grayscale(.75);
  opacity: .42;
}

.schedule-result-editor {
  padding: 13px;
}

.schedule-result-editor__teams {
  padding-bottom: 12px;
}

.schedule-result-editor__sets {
  gap: 8px;
  margin-top: 11px;
}

.schedule-score-control {
  min-height: 40px;
}

.schedule-download-card.has-result .schedule-download-card__actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-download-card__actions .schedule-result-download {
  border-color: rgba(201,166,107,.56) !important;
  color: var(--gold-bright) !important;
  background: rgba(201,166,107,.035) !important;
}

.schedule-download-card__actions .schedule-result-download:hover {
  border-color: var(--gold) !important;
  background: rgba(201,166,107,.09) !important;
}

@media (max-height: 820px) and (min-width: 961px) {
  .schedule-admin-card {
    width: min(1120px, calc(100vw - 28px));
    max-height: calc(100dvh - 20px);
    grid-template-columns: minmax(330px, 450px) minmax(420px, 1fr);
    gap: 28px;
    padding: 20px 24px;
  }

  .schedule-admin-heading {
    padding-bottom: 15px;
  }

  .schedule-admin-heading img {
    width: min(185px, 42%);
  }

  .schedule-admin-actions {
    margin-top: 15px;
  }

  .schedule-admin-actions button {
    min-height: 96px;
    padding: 14px;
  }

  .schedule-admin-delete-result {
    min-height: 68px !important;
  }
}

@media (max-width: 960px) {
  .schedule-admin-card {
    overflow-y: auto;
  }

  .schedule-admin-form__actions {
    grid-template-columns: 1fr;
  }
}


/* VERSION 24 · CONFIRMACIÓN, SWITCH DE VISTA Y PAREJA GANADORA */
.schedule-admin-visual {
  position: sticky;
  top: 0;
  display: grid;
  align-self: start;
  gap: 12px;
  min-width: 0;
}

.schedule-admin-visual .schedule-admin-preview {
  position: relative;
  top: auto;
}

.schedule-preview-switch {
  width: min(100%, 330px);
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 7px 14px;
  border: 1px solid rgba(201,166,107,.36);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.schedule-preview-switch:hover:not(:disabled) {
  border-color: rgba(201,166,107,.72);
  background: rgba(201,166,107,.065);
}

.schedule-preview-switch:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.schedule-preview-switch > span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
  transition: color 180ms ease;
}

.schedule-preview-switch > span:first-child,
.schedule-preview-switch.is-result > span:last-child {
  color: var(--gold-bright);
}

.schedule-preview-switch.is-result > span:first-child {
  color: var(--muted);
}

.schedule-preview-switch > i {
  position: relative;
  width: 54px;
  height: 28px;
  border: 1px solid rgba(201,166,107,.42);
  border-radius: 999px;
  background: #050505;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.02);
}

.schedule-preview-switch > i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  box-shadow: 0 4px 14px rgba(201,166,107,.34);
  transition: transform 220ms cubic-bezier(.16,1,.3,1);
}

.schedule-preview-switch.is-result > i::after {
  transform: translateX(26px);
}

.schedule-result-delete-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3400 !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: 18px !important;
}

.schedule-result-delete-modal[hidden] { display: none !important; }

.schedule-result-delete-card {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100vw - 32px));
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(183,109,98,.54);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(183,109,98,.16), transparent 34%),
    #080808;
  box-shadow: 0 34px 100px rgba(0,0,0,.78);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.16,1,.3,1);
}

.schedule-result-delete-modal.is-visible .schedule-result-delete-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-result-delete-card__mark {
  position: absolute;
  top: -28px;
  right: 18px;
  color: rgba(183,109,98,.09);
  font-size: 132px;
  font-weight: 200;
  line-height: 1;
}

.schedule-result-delete-card > p:first-of-type {
  position: relative;
  margin: 0;
  color: #d99084;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}

.schedule-result-delete-card h2 {
  position: relative;
  margin: 12px 0;
  color: var(--off-white);
  font-size: clamp(27px, 5vw, 38px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
}

.schedule-result-delete-card #scheduleResultDeleteDescription {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.schedule-result-delete-card > strong {
  position: relative;
  display: block;
  margin-top: 18px;
  padding: 13px 14px;
  border-left: 2px solid rgba(183,109,98,.72);
  color: var(--off-white);
  background: rgba(255,255,255,.025);
  font-size: 10px;
  line-height: 1.55;
}

.schedule-result-delete-card__actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  margin-top: 22px;
}

.schedule-result-delete-card__actions button {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.danger-button {
  border: 1px solid rgba(183,109,98,.7);
  color: #fff0ed;
  background: linear-gradient(135deg, #9f584e, #763d36);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.danger-button:hover {
  filter: brightness(1.12);
}

.schedule-match-card.has-match-winner {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(201,166,107,.28);
}

.schedule-match-card.has-match-winner::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(201,166,107,.18);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(201,166,107,.12);
  pointer-events: none;
}

.schedule-pair.is-match-winner {
  position: relative;
  margin-inline: -7px;
  padding: 8px 9px 8px 13px;
  border-left: 3px solid var(--gold-bright);
  border-radius: 0 10px 10px 0;
  background:
    linear-gradient(90deg, rgba(201,166,107,.16), rgba(201,166,107,.035) 72%, transparent);
  box-shadow: inset 0 0 0 1px rgba(201,166,107,.12), 0 8px 22px rgba(0,0,0,.18);
}

.schedule-pair.is-match-winner > span:not(.is-bye) {
  color: #fff8e8;
  font-weight: 900;
}

.schedule-winner-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--gold-bright);
}

.schedule-winner-badge span {
  color: var(--gold-bright) !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

.schedule-winner-badge span::before { display: none; }

.schedule-winner-badge strong {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .16em;
}

.schedule-match-card.has-match-winner .schedule-match-result span {
  color: var(--gold-bright);
}

@media (max-width: 960px) {
  .schedule-admin-visual {
    position: relative;
    top: auto;
    width: min(100%, 440px);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .schedule-preview-switch {
    width: 100%;
  }

  .schedule-result-delete-card {
    padding: 28px 18px 20px;
  }

  .schedule-result-delete-card__actions {
    grid-template-columns: 1fr;
  }
}


/* VERSION 25 · BÚSQUEDA DE PAREJAS Y CABECERA DE MESA DE CONTROL */
.main-nav__control-stack {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0;
  min-width: max-content;
}

.main-nav__control-stack .header-logout {
  min-height: 14px;
  padding: 0;
  color: var(--gold);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}

.main-nav__control-stack .header-logout:hover {
  color: var(--gold-bright);
}

.control-hero {
  padding-left: 0;
  text-align: center;
}

.control-hero::before {
  display: none;
}

.control-hero .section-eyebrow,
.control-hero h1,
.control-hero > p:last-child {
  text-align: center;
}

.control-hero > p:last-child {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 820px) {
  .main-nav__control-stack .header-logout {
    width: auto;
    height: auto;
    border: 0;
    font-size: 6px;
  }

  .main-nav__control-stack .header-logout::after {
    content: none;
  }
}


/* VERSION 26 · PROGRAMACIÓN MANUAL COMPACTA Y MARCADOR CENTRADO */
.schedule-add-card {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: clamp(18px, 2.6vw, 28px);
  overflow: visible;
}

.schedule-add-heading {
  gap: 5px;
  padding: 0 48px 15px;
}

.schedule-add-heading img {
  width: min(178px, 42%);
}

.schedule-add-heading h2 {
  font-size: clamp(25px, 3.2vw, 35px);
}

.schedule-add-heading p {
  font-size: 10px;
  line-height: 1.4;
}

.schedule-add-form {
  gap: 14px;
  margin-top: 15px;
}

.schedule-add-settings {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.schedule-add-form label {
  gap: 6px;
}

.schedule-add-form select,
.schedule-pair-picker input {
  min-height: 43px;
  border-radius: 10px;
  font-size: 10px;
}

.schedule-add-pairs {
  gap: 12px;
}

.schedule-pair-picker {
  gap: 7px;
  padding: 13px;
  border-radius: 16px;
}

.schedule-pair-picker__selected {
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto;
  place-items: stretch;
  align-items: center;
  gap: 10px;
  padding: 8px 9px 8px 12px;
  font-size: 9px;
}

.schedule-pair-picker__selected:not(.has-selection) {
  display: grid;
  place-items: center;
}

.schedule-pair-picker__selected-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.schedule-pair-picker__selected-copy strong,
.schedule-pair-picker__selected-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-pair-picker__selected-copy strong {
  color: var(--off-white);
  font-size: 11px;
  font-weight: 900;
}

.schedule-pair-picker__selected-copy > span {
  color: var(--off-white);
  font-size: 11px;
  font-weight: 800;
}

.schedule-pair-picker__remove {
  min-width: 72px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(183,109,98,.46);
  border-radius: 9px;
  color: #e3a198;
  background: rgba(183,109,98,.07);
  cursor: pointer;
}

.schedule-pair-picker__remove > span {
  font-size: 15px;
  line-height: 1;
}

.schedule-pair-picker__remove > strong {
  font-size: 7px;
  letter-spacing: .08em;
}

.schedule-pair-picker__remove:hover {
  border-color: rgba(183,109,98,.82);
  background: rgba(183,109,98,.14);
}

.schedule-pair-picker__results {
  top: 96px;
  max-height: 210px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #0c0c0c;
}

.schedule-pair-picker__results::-webkit-scrollbar {
  width: 8px;
}

.schedule-pair-picker__results::-webkit-scrollbar-track {
  margin: 7px 0;
  border-radius: 999px;
  background: #0c0c0c;
}

.schedule-pair-picker__results::-webkit-scrollbar-thumb {
  border: 2px solid #0c0c0c;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}

.schedule-pair-picker__results button {
  padding: 10px 13px;
}

.schedule-pair-picker__results button strong,
.schedule-pair-picker__results button span {
  font-size: 11px;
}

.schedule-add-form > .primary-button {
  min-height: 46px;
  margin: 0;
}

@media (max-height: 720px) and (min-width: 701px) {
  .schedule-add-card {
    width: min(940px, calc(100vw - 24px));
    padding: 16px 22px;
  }

  .schedule-add-heading {
    grid-template-columns: 150px auto;
    grid-template-rows: auto auto auto;
    justify-items: start;
    align-items: center;
    column-gap: 22px;
    padding: 0 42px 12px 0;
    text-align: left;
  }

  .schedule-add-heading img {
    grid-row: 1 / 4;
    width: 150px;
  }

  .schedule-add-heading h2 {
    font-size: 27px;
  }
}

@media (max-width: 700px) {
  .schedule-add-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px 12px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .schedule-add-settings,
  .schedule-add-pairs {
    grid-template-columns: 1fr;
  }

  .schedule-pair-picker__results {
    position: static;
    max-height: 180px;
  }
}


/* VERSION 27 · ADAPTACIÓN MÓVIL COMPACTA, CREATIVA Y ACCESIBLE */
@media (max-width: 700px) {
  :root {
    --mobile-edge: 10px;
    --mobile-radius: 18px;
  }

  html {
    scroll-padding-top: 106px;
    overscroll-behavior-y: none;
  }

  body {
    min-width: 320px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    -webkit-text-size-adjust: 100%;
  }

  button,
  input,
  select {
    touch-action: manipulation;
  }

  input,
  select {
    font-size: 16px !important;
  }

  .site-shell {
    width: 100%;
    overflow: clip;
  }

  /* Cabecera móvil: logo limpio y navegación de cuatro accesos. */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 104px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 52px 42px;
    gap: 3px 5px;
    padding: calc(4px + env(safe-area-inset-top, 0)) 8px 7px;
    border-bottom-color: rgba(201,166,107,.18);
    background: rgba(2,2,2,.94);
    box-shadow: 0 12px 36px rgba(0,0,0,.36);
    backdrop-filter: blur(22px) saturate(125%);
  }

  .site-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
  }

  .site-header__logo {
    width: 142px;
    max-width: 42vw;
  }

  .main-nav,
  .header-actions {
    display: contents;
  }

  .main-nav__control-stack {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(27px, 1fr) 10px;
    align-items: center;
    justify-items: stretch;
    gap: 0;
  }

  .main-nav > .main-nav__link {
    grid-column: 2;
    grid-row: 2;
  }

  .header-actions > .main-nav__link:first-child {
    grid-column: 3;
    grid-row: 2;
  }

  .header-actions > .main-nav__link:last-child {
    grid-column: 4;
    grid-row: 2;
  }

  .main-nav__link,
  .header-actions .main-nav__link {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 3px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    color: #8f8d87;
    background: rgba(255,255,255,.018);
    font-size: clamp(6.5px, 2vw, 8px);
    font-style: normal;
    letter-spacing: .035em;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .main-nav__control-stack .main-nav__link {
    min-height: 28px;
    padding-bottom: 1px;
    border-radius: 10px 10px 4px 4px;
  }

  .main-nav__link::after {
    left: 22%;
    right: 22%;
    bottom: 2px;
    height: 2px;
    border-radius: 99px;
  }

  .main-nav__link.is-active {
    color: var(--off-white);
    border-color: rgba(201,166,107,.28);
    background: linear-gradient(180deg, rgba(201,166,107,.10), rgba(201,166,107,.025));
  }

  .main-nav__control-stack .header-logout {
    position: static !important;
    width: 100%;
    min-height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: var(--gold);
    background: transparent;
    font-size: 5.5px !important;
    letter-spacing: .08em;
    line-height: 1;
  }

  .main-nav__control-stack .header-logout::after {
    content: none;
  }

  .app-view,
  .control-auth {
    min-height: calc(100dvh - 104px);
  }

  /* Elementos compartidos. */
  .section-eyebrow,
  .card-kicker {
    font-size: 7.5px;
    letter-spacing: .27em;
  }

  .primary-button,
  .secondary-button,
  .danger-button {
    min-height: 46px;
    padding-inline: 15px;
    font-size: 8px;
    letter-spacing: .12em;
    border-radius: 11px;
  }

  .site-footer {
    margin-top: 2px;
    padding: 22px 14px calc(24px + env(safe-area-inset-bottom, 0));
  }

  .site-footer p {
    font-size: 7px;
    letter-spacing: .14em;
  }

  /* Ranking móvil. */
  .ranking-page {
    width: 100%;
    padding: 28px var(--mobile-edge) 38px;
  }

  .ranking-hero {
    margin-bottom: 34px;
  }

  .ranking-hero::after {
    bottom: -18px;
    width: 34px;
  }

  .ranking-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
    letter-spacing: .32em;
  }

  .ranking-hero h1 {
    font-size: clamp(52px, 17vw, 68px);
    line-height: .88;
  }

  .ranking-hero__category {
    min-height: 14px;
    margin-top: 13px;
    font-size: 8px;
    letter-spacing: .16em;
  }

  .category-switcher {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px 10px;
    border-radius: var(--mobile-radius);
  }

  .category-switcher__divider {
    display: none;
  }

  .category-group__label {
    margin-bottom: 7px;
    font-size: 7px;
    letter-spacing: .18em;
    text-align: center;
  }

  .category-group__buttons {
    display: flex;
    gap: 4px;
    overflow: visible;
    padding: 0;
  }

  .category-button {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 9px;
    letter-spacing: .04em;
  }

  .ranking-board {
    border-radius: var(--mobile-radius);
    box-shadow: 0 18px 54px rgba(0,0,0,.34);
  }

  .ranking-board__header,
  .ranking-row {
    grid-template-columns: 50px minmax(0, 1fr) 72px;
  }

  .ranking-board__header {
    min-height: 42px;
    padding: 0 10px;
    font-size: 7px;
    letter-spacing: .15em;
  }

  .ranking-row {
    min-height: 58px;
    padding: 0 10px;
  }

  .ranking-position__badge {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .ranking-player {
    padding-right: 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .ranking-points {
    font-size: 14px;
  }

  .ranking-note {
    margin-top: 13px;
    padding-inline: 4px;
    font-size: 8px;
    line-height: 1.55;
    text-align: center;
  }

  /* Programación móvil. */
  .schedule-page {
    width: calc(100% - 12px);
    padding: 24px 0 36px;
  }

  .schedule-hero {
    padding: 0 8px 22px;
  }

  .schedule-hero .section-eyebrow {
    font-size: 7px;
  }

  .schedule-hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(43px, 14vw, 58px);
    line-height: .9;
  }

  .schedule-hero__copy {
    max-width: 320px;
    margin: 0 auto;
    font-size: 10px;
    line-height: 1.5;
  }

  .schedule-search {
    margin-bottom: 8px;
    padding: 13px 11px;
    border-radius: var(--mobile-radius);
  }

  .schedule-search__heading {
    margin-bottom: 9px;
  }

  .schedule-search__heading h2 {
    margin-top: 4px;
    font-size: 17px;
    letter-spacing: -.035em;
  }

  .schedule-search__field {
    min-height: 46px;
    border-radius: 12px;
  }

  .schedule-search__field input {
    min-width: 0;
    height: 44px;
    padding-right: 42px;
    font-size: 16px !important;
    letter-spacing: .02em;
  }

  .schedule-search__field input::placeholder {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .schedule-search__field button {
    width: 42px;
    height: 42px;
  }

  .schedule-search-results {
    max-height: min(42dvh, 330px);
    overflow-y: auto;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #090909;
  }

  .schedule-search-result {
    min-height: 72px;
    padding: 11px;
    border-radius: 0;
  }

  .schedule-search-result__top strong,
  .schedule-search-result__players {
    font-size: 10px;
  }

  .schedule-search-result__top span {
    font-size: 7px;
  }

  .schedule-date-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 7px;
    border-radius: var(--mobile-radius) var(--mobile-radius) 0 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .schedule-date-nav::-webkit-scrollbar {
    display: none;
  }

  .schedule-date-button {
    flex: 0 0 112px;
    min-width: 112px;
    min-height: 54px;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px 8px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  .schedule-date-button span {
    font-size: 7px;
    letter-spacing: .1em;
  }

  .schedule-date-button strong {
    font-size: 12px;
  }

  .schedule-date-button small {
    font-size: 7px;
  }

  .schedule-board {
    border-radius: 0 0 var(--mobile-radius) var(--mobile-radius);
  }

  .schedule-board__date {
    min-height: 88px;
    gap: 7px;
    padding: 14px 10px 13px;
  }

  .schedule-board__date > span {
    font-size: clamp(31px, 11vw, 42px);
  }

  .schedule-board__date-meta {
    gap: 7px;
  }

  .schedule-board__date-meta strong {
    font-size: 15px;
  }

  .schedule-board__date-meta small {
    font-size: 7px;
    letter-spacing: .12em;
  }

  .schedule-board__date-meta b {
    font-size: 14px;
  }

  .schedule-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #090909;
  }

  .schedule-scroll::-webkit-scrollbar {
    height: 8px;
  }

  .schedule-scroll::-webkit-scrollbar-track {
    background: #090909;
  }

  .schedule-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #090909;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  }

  .schedule-grid {
    min-width: max-content;
    grid-template-columns: 54px repeat(4, minmax(228px, 74vw));
  }

  .schedule-grid__corner,
  .schedule-court-heading {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 46px;
    padding: 8px;
    background: #090909;
  }

  .schedule-grid__corner {
    left: 0;
    z-index: 6;
  }

  .schedule-court-heading {
    font-size: 8px;
    letter-spacing: .12em;
    scroll-snap-align: start;
  }

  .schedule-hour {
    position: sticky;
    left: 0;
    z-index: 3;
    min-height: 118px;
    padding: 9px 4px;
    background: #080808;
    box-shadow: 5px 0 12px rgba(0,0,0,.28);
  }

  .schedule-hour strong {
    font-size: 10px;
  }

  .schedule-hour span {
    font-size: 6px;
  }

  .schedule-match-card,
  .schedule-empty-slot {
    min-height: 118px;
  }

  .schedule-match-card {
    gap: 7px;
    padding: 9px;
    scroll-snap-align: start;
  }

  .schedule-match-card__head strong {
    max-width: 148px;
    font-size: 8px;
  }

  .schedule-match-card__head > span,
  .schedule-match-card__meta {
    font-size: 6.5px;
  }

  .schedule-pair {
    gap: 2px;
  }

  .schedule-pair > span {
    font-size: 9px;
    line-height: 1.22;
  }

  .schedule-winner-badge strong {
    font-size: 6px;
  }

  .schedule-empty-slot {
    padding: 8px;
    font-size: 7px;
  }

  .schedule-note {
    margin: 12px 6px 0;
    font-size: 7.5px;
    line-height: 1.5;
    text-align: center;
  }

  /* Reglamento móvil. */
  .rules-page {
    width: 100%;
    padding: 28px var(--mobile-edge) 40px;
  }

  .rules-hero {
    margin-bottom: 24px;
    padding: 0 4px 22px;
    text-align: center;
  }

  .rules-hero::before {
    left: 50%;
    bottom: 0;
    width: 34px;
    height: 1px;
    transform: translateX(-50%);
  }

  .rules-hero h1 {
    margin-top: 9px;
    font-size: clamp(44px, 15vw, 60px);
  }

  .rules-hero__lead {
    max-width: 330px;
    margin: 12px auto 0;
    font-size: 10px;
    line-height: 1.55;
  }

  .rules-highlights {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 3px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .rules-highlights::-webkit-scrollbar {
    display: none;
  }

  .highlight-card {
    flex: 0 0 min(76vw, 270px);
    min-height: 116px;
    padding: 18px;
    border-radius: var(--mobile-radius);
    scroll-snap-align: center;
  }

  .highlight-card__value {
    font-size: 30px;
  }

  .highlight-card__label {
    font-size: 7px;
    letter-spacing: .13em;
  }

  .rules-columns,
  .rules-column {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .rules-card,
  .rules-columns .rules-card,
  .rules-columns .rules-card--featured,
  .rules-columns .rules-card--full {
    min-height: 0;
    padding: 17px 16px;
    border-radius: var(--mobile-radius);
  }

  .rules-card__header {
    margin-bottom: 10px;
  }

  .rules-card p,
  .rules-list {
    font-size: 10.5px;
    line-height: 1.6;
  }

  .rules-list {
    padding-left: 17px;
  }

  /* Acceso y Mesa de Control móvil. */
  .control-auth {
    padding: 24px var(--mobile-edge) 42px;
  }

  .control-auth__halo {
    width: 88vw;
    height: 88vw;
  }

  .login-card,
  .setup-card {
    width: 100%;
    padding: 26px 20px;
    border-radius: 22px;
  }

  .login-card__brand {
    width: min(190px, 64vw);
    margin-bottom: 22px;
  }

  .login-card h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .login-card__description {
    margin-bottom: 22px;
    font-size: 10px;
    line-height: 1.55;
  }

  .password-field input,
  .setup-card input {
    min-height: 52px;
  }

  .password-field button {
    min-width: 60px;
    height: 52px;
  }

  .control-page {
    width: 100%;
    padding: 28px var(--mobile-edge) 44px;
  }

  .control-hero {
    margin-bottom: 25px;
  }

  .control-hero h1 {
    margin-top: 9px;
    font-size: clamp(40px, 13vw, 54px);
    line-height: .9;
  }

  .control-hero > p:last-child {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.5;
  }

  .control-overview {
    gap: 9px;
    margin-bottom: 9px;
  }

  .progress-card {
    min-height: 156px;
    grid-template-columns: minmax(0, 1fr) 88px;
    justify-items: stretch;
    gap: 12px;
    padding: 18px;
    border-radius: var(--mobile-radius);
  }

  .progress-card__copy strong {
    margin-top: 9px;
    font-size: 38px;
  }

  .progress-card__copy p {
    font-size: 7px;
    letter-spacing: .11em;
  }

  .progress-ring {
    width: 86px;
  }

  .progress-ring strong {
    font-size: 19px;
  }

  .progress-ring span {
    font-size: 5.5px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    min-height: 88px;
    padding: 14px;
    border-radius: 14px;
  }

  .stat-card span {
    font-size: 6.5px;
    letter-spacing: .12em;
  }

  .stat-card strong {
    font-size: 26px;
  }

  .stat-card--settings {
    grid-column: 1 / -1;
  }

  .stat-card--settings form {
    align-items: center;
  }

  .stat-card input {
    height: 44px;
  }

  .stat-card button {
    min-width: 44px;
    min-height: 44px;
  }

  .control-panel {
    margin-top: 9px;
    border-radius: var(--mobile-radius);
  }

  .panel-heading {
    min-height: 76px;
    padding: 16px;
  }

  .panel-heading h2 {
    font-size: 20px;
  }

  .panel-heading__number {
    right: 14px;
    font-size: 42px;
  }

  .pair-form {
    padding: 17px 14px;
  }

  .pair-form input {
    height: 48px;
  }

  .form-step,
  .form-step--split {
    gap: 14px;
  }

  .form-grid--two {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-step--actions {
    gap: 9px;
  }

  .delivery-tools {
    gap: 10px;
    padding: 13px 10px;
  }

  .search-field input {
    min-height: 46px;
  }

  .delivery-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .filter-button,
  .compact-category {
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 8px;
  }

  .delivery-row {
    min-height: 96px;
    gap: 7px 9px;
    padding: 13px 10px;
  }

  .delivery-index {
    font-size: 13px;
  }

  .delivery-pair strong,
  .delivery-pair span {
    font-size: 9px;
  }

  .category-chip,
  .delivery-status {
    min-height: 28px;
    padding-inline: 8px;
    font-size: 6.5px;
  }

  .delete-pair {
    width: 38px;
    height: 38px;
  }

  /* Descarga para jugadores. */
  body > .schedule-download-modal {
    padding: 6px !important;
  }

  body > .schedule-download-modal .schedule-download-card {
    width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    gap: 12px;
    padding: 14px 12px 12px;
    border-radius: 22px;
  }

  .schedule-download-card__close {
    top: 9px;
    right: 9px;
    width: 38px;
    height: 38px;
  }

  .schedule-download-card__preview {
    width: min(100%, 310px);
    border-radius: 18px;
  }

  .schedule-download-card__content {
    width: 100%;
    padding: 0 2px 2px;
  }

  .schedule-download-card__content h2 {
    max-width: 310px;
    margin: 0 auto 8px;
    font-size: clamp(21px, 7vw, 28px);
    line-height: 1;
  }

  .schedule-download-card__content p:not(.section-eyebrow) {
    max-width: 330px;
    font-size: 9.5px;
    line-height: 1.5;
  }

  .schedule-download-card__actions,
  .schedule-download-card.has-result .schedule-download-card__actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }

  .schedule-download-card__actions .secondary-button:first-child {
    grid-column: 1 / -1;
  }

  .schedule-download-card__actions button {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 7px;
  }

  /* Panel administrativo de un partido. */
  .schedule-admin-modal {
    padding: 4px !important;
  }

  .schedule-admin-card {
    width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px 10px 12px;
    overflow-y: auto;
    border-radius: 20px;
  }

  .schedule-admin-card__close {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-self: end;
    width: 38px;
    height: 38px;
    margin: 0 0 -38px;
    background: rgba(5,5,5,.92);
  }

  .schedule-admin-visual {
    position: relative;
    width: min(100%, 292px);
    gap: 8px;
  }

  .schedule-admin-preview {
    width: 100%;
    border-radius: 17px;
  }

  .schedule-preview-switch {
    width: 100%;
    min-height: 42px;
    grid-template-columns: 1fr 46px 1fr;
    padding: 6px 8px 6px 10px;
  }

  .schedule-preview-switch span {
    font-size: 6.5px;
  }

  .schedule-admin-panel {
    width: 100%;
  }

  .schedule-admin-heading {
    gap: 5px;
    padding: 0 42px 12px;
  }

  .schedule-admin-heading img {
    width: 136px;
    margin-bottom: 1px;
  }

  .schedule-admin-heading h2 {
    font-size: 22px;
  }

  .schedule-admin-heading p {
    font-size: 6.5px;
    letter-spacing: .16em;
  }

  .schedule-admin-actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
  }

  .schedule-admin-actions button {
    min-height: 88px;
    padding: 11px 10px;
    border-radius: 13px;
  }

  .schedule-admin-actions button > span {
    font-size: 10px;
  }

  .schedule-admin-actions strong {
    font-size: 9.5px;
    line-height: 1.12;
  }

  .schedule-admin-actions small {
    margin-top: 4px;
    font-size: 7px;
    line-height: 1.35;
  }

  .schedule-admin-delete-result {
    grid-column: 1 / -1;
    min-height: 66px !important;
  }

  .schedule-admin-card.is-tool-open {
    gap: 9px;
  }

  .schedule-admin-card.is-tool-open .schedule-admin-visual {
    width: min(100%, 208px);
  }

  .schedule-admin-card.is-tool-open .schedule-preview-switch {
    min-height: 38px;
  }

  .schedule-admin-card.is-tool-open .schedule-admin-heading {
    padding-bottom: 7px;
  }

  .schedule-admin-card.is-tool-open .schedule-admin-heading img {
    width: 112px;
  }

  .schedule-admin-card.is-tool-open .schedule-admin-heading h2 {
    font-size: 18px;
  }

  .schedule-admin-card.is-tool-open .schedule-admin-workspace {
    margin-top: 5px;
    padding: 12px 10px;
    overflow: visible;
    border-radius: 14px;
  }

  .schedule-admin-form,
  .schedule-result-form {
    gap: 9px;
  }

  .schedule-admin-form__heading h3 {
    margin: 4px 0;
    font-size: 19px;
  }

  .schedule-admin-form__heading p {
    font-size: 8.5px;
  }

  .schedule-admin-form select,
  .schedule-admin-form input {
    min-height: 46px;
  }

  .schedule-admin-form__actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .schedule-admin-form__actions button {
    min-height: 44px;
    padding-inline: 7px;
  }

  .schedule-result-editor {
    padding: 10px 8px;
    border-radius: 13px;
  }

  .schedule-result-editor__teams {
    grid-template-columns: minmax(0,1fr) 30px minmax(0,1fr);
    gap: 5px;
    padding-bottom: 9px;
  }

  .schedule-result-editor__pair strong {
    font-size: 8.5px;
    line-height: 1.25;
  }

  .schedule-result-editor__versus {
    font-size: 11px;
  }

  .schedule-result-editor__sets {
    gap: 6px;
    margin-top: 8px;
  }

  .schedule-score-row {
    grid-template-columns: minmax(0,1fr) 38px minmax(0,1fr);
    gap: 5px;
  }

  .schedule-score-row > strong {
    font-size: 7px;
  }

  .schedule-score-control {
    min-height: 38px;
    grid-template-columns: 34px minmax(28px,1fr) 34px;
  }

  .schedule-score-control button {
    width: 34px;
    min-height: 38px;
  }

  .schedule-score-control output {
    font-size: 17px;
  }

  /* Programación manual. */
  .schedule-add-modal {
    padding: 4px !important;
  }

  .schedule-add-card {
    width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
    padding: 14px 10px 12px;
    overflow-y: auto;
    border-radius: 20px;
  }

  .schedule-add-card__close {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-self: end;
    float: right;
    width: 38px;
    height: 38px;
    margin-bottom: -38px;
    background: rgba(5,5,5,.92);
  }

  .schedule-add-heading {
    gap: 4px;
    padding: 0 42px 11px;
  }

  .schedule-add-heading img {
    width: 125px;
  }

  .schedule-add-heading > span {
    font-size: 6px;
  }

  .schedule-add-heading h2 {
    font-size: 24px;
  }

  .schedule-add-heading p {
    font-size: 8.5px;
    line-height: 1.35;
  }

  .schedule-add-form {
    gap: 10px;
    margin-top: 11px;
  }

  .schedule-add-settings {
    grid-template-columns: 1fr 1.25fr;
    gap: 7px;
  }

  .schedule-add-form label,
  .schedule-pair-picker {
    gap: 5px;
  }

  .schedule-add-form label > span,
  .schedule-pair-picker__label {
    font-size: 6.5px;
  }

  .schedule-add-form select,
  .schedule-pair-picker input {
    min-height: 44px;
    padding-inline: 9px;
    border-radius: 10px;
  }

  .schedule-add-pairs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .schedule-pair-picker {
    padding: 10px;
    border-radius: 13px;
  }

  .schedule-pair-picker__selected {
    min-height: 48px;
    padding: 7px 8px;
  }

  .schedule-pair-picker__selected-copy strong,
  .schedule-pair-picker__selected-copy > span {
    font-size: 10px;
  }

  .schedule-pair-picker__remove {
    min-width: 66px;
    min-height: 38px;
  }

  .schedule-pair-picker__results {
    position: static;
    max-height: 176px;
    overflow-y: auto;
    border-radius: 10px;
  }

  .schedule-pair-picker__results button {
    min-height: 50px;
    padding: 9px 10px;
  }

  .schedule-add-form > .primary-button {
    position: sticky;
    bottom: 0;
    z-index: 6;
    min-height: 48px;
    box-shadow: 0 -12px 28px rgba(0,0,0,.58);
  }

  /* Confirmaciones. */
  .confirmation-modal {
    padding: 8px;
  }

  .confirmation-card,
  .schedule-result-delete-card {
    width: calc(100vw - 20px);
    padding: 24px 18px 18px;
    border-radius: 20px;
  }

  .confirmation-card h2,
  .schedule-result-delete-card h2 {
    font-size: 27px;
  }

  .confirmation-card__actions,
  .schedule-result-delete-card__actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .toast {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0));
    width: auto;
    max-width: none;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 8px;
    text-align: center;
  }

  /* Evita efectos hover pegados en pantallas táctiles. */
  .ranking-row:hover,
  .schedule-match-card:hover,
  .schedule-empty-slot.is-actionable:hover,
  .schedule-admin-actions button:hover,
  .primary-button:hover {
    transform: none;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-inline: 5px;
    gap: 3px;
  }

  .main-nav__link,
  .header-actions .main-nav__link {
    font-size: 6.3px;
  }

  .category-switcher {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .category-group__buttons {
    justify-content: center;
  }

  .category-button {
    flex: 0 1 54px;
  }

  .schedule-grid {
    grid-template-columns: 50px repeat(4, minmax(218px, 78vw));
  }

  .schedule-admin-actions {
    grid-template-columns: 1fr;
  }

  .schedule-admin-delete-result {
    grid-column: 1;
  }

  .schedule-admin-form__actions,
  .confirmation-card__actions,
  .schedule-result-delete-card__actions {
    grid-template-columns: 1fr;
  }

  .schedule-add-settings {
    grid-template-columns: 1fr;
  }
}


/* VERSION 28 · CIERRE DE SESIÓN AL FINAL DE MESA DE CONTROL EN MÓVIL */
.mobile-control-logout {
  display: none;
}

@media (max-width: 700px) {
  .main-nav__control-stack .header-logout {
    display: none !important;
  }

  .mobile-control-logout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 17px 14px;
    overflow: hidden;
    border: 1px solid rgba(201,166,107,.28);
    border-radius: 16px;
    background:
      radial-gradient(circle at 100% 0%, rgba(201,166,107,.12), transparent 44%),
      rgba(255,255,255,.018);
  }

  .mobile-control-logout::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  }

  .mobile-control-logout__copy {
    min-width: 0;
  }

  .mobile-control-logout__copy .card-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 6px;
  }

  .mobile-control-logout__copy strong {
    display: block;
    color: var(--off-white);
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.02em;
  }

  .mobile-control-logout__copy p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.4;
  }

  .mobile-control-logout__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(201,166,107,.55);
    border-radius: 11px;
    color: var(--gold-bright);
    background: rgba(201,166,107,.07);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .1em;
    cursor: pointer;
  }

  .mobile-control-logout__button span {
    font-size: 13px;
    transform: rotate(45deg);
  }
}

@media (max-width: 390px) {
  .mobile-control-logout {
    grid-template-columns: 1fr;
  }

  .mobile-control-logout__button {
    width: 100%;
  }
}


/* VERSION 29 · PROGRAMACIÓN MÓVIL MEDIANTE BÚSQUEDA DE PAREJAS */
.schedule-mobile-results {
  display: none;
}

@media (max-width: 700px) {
  .schedule-hero {
    overflow: hidden;
  }

  .schedule-hero h1 {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(34px, 10.5vw, 46px);
    letter-spacing: -.075em;
    line-height: .92;
    white-space: nowrap;
  }

  .schedule-date-nav,
  .schedule-board,
  .schedule-note {
    display: none !important;
  }

  .schedule-search {
    margin-bottom: 12px;
  }

  .schedule-search-results {
    max-height: min(46dvh, 380px);
    margin-top: 8px;
    border: 1px solid rgba(201,166,107,.24);
    background: #080808;
    box-shadow: 0 18px 44px rgba(0,0,0,.46);
  }

  .schedule-mobile-pair-option {
    width: 100%;
    min-height: 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 11px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: var(--off-white);
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  .schedule-mobile-pair-option:last-child {
    border-bottom: 0;
  }

  .schedule-mobile-pair-option:active,
  .schedule-mobile-pair-option:focus-visible {
    background: rgba(201,166,107,.08);
  }

  .schedule-mobile-pair-option__copy {
    min-width: 0;
  }

  .schedule-mobile-pair-option__copy small {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
  }

  .schedule-mobile-pair-option__copy strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
  }

  .schedule-mobile-pair-option__count {
    min-width: 53px;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 7px;
    border: 1px solid rgba(201,166,107,.25);
    border-radius: 11px;
    background: rgba(201,166,107,.055);
  }

  .schedule-mobile-pair-option__count b {
    color: var(--gold-bright);
    font-size: 16px;
    line-height: 1;
  }

  .schedule-mobile-pair-option__count small {
    color: var(--muted);
    font-size: 5.5px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .schedule-mobile-results:not([hidden]) {
    display: block;
    margin-top: 10px;
  }

  .schedule-mobile-results__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 9px;
    padding: 13px 12px;
    border: 1px solid rgba(201,166,107,.28);
    border-radius: 15px;
    background:
      radial-gradient(circle at 100% 0%, rgba(201,166,107,.11), transparent 44%),
      rgba(255,255,255,.018);
  }

  .schedule-mobile-results__heading span {
    min-width: 0;
  }

  .schedule-mobile-results__heading small {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .14em;
  }

  .schedule-mobile-results__heading strong {
    display: block;
    color: var(--off-white);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
  }

  .schedule-mobile-results__heading > b {
    max-width: 76px;
    padding: 8px 9px;
    border-radius: 10px;
    color: var(--gold-bright);
    background: rgba(201,166,107,.08);
    font-size: 7px;
    line-height: 1.35;
    text-align: center;
  }

  .schedule-mobile-match-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .schedule-mobile-match-card {
    position: relative;
    width: 100%;
    display: grid;
    gap: 11px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 17px;
    color: var(--off-white);
    background:
      radial-gradient(circle at 100% 0%, rgba(201,166,107,.10), transparent 36%),
      #090909;
    box-shadow: 0 14px 34px rgba(0,0,0,.25);
    text-align: left;
    cursor: pointer;
  }

  .schedule-mobile-match-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  }

  .schedule-mobile-match-card:active,
  .schedule-mobile-match-card:focus-visible {
    border-color: rgba(201,166,107,.48);
    transform: translateY(-1px);
  }

  .schedule-mobile-match-card__top,
  .schedule-mobile-match-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .schedule-mobile-match-card__top > span small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .schedule-mobile-match-card__top > span strong {
    font-size: 13px;
  }

  .schedule-mobile-match-card__top > b {
    max-width: 48%;
    padding: 6px 8px;
    border-radius: 9px;
    color: var(--gold-bright);
    background: rgba(201,166,107,.08);
    font-size: 7px;
    line-height: 1.25;
    text-align: right;
  }

  .schedule-mobile-match-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .schedule-mobile-match-card__facts > span {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 9px 7px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    text-align: center;
  }

  .schedule-mobile-match-card__facts small {
    color: var(--muted);
    font-size: 5.5px;
    font-weight: 900;
    letter-spacing: .1em;
  }

  .schedule-mobile-match-card__facts strong {
    overflow: hidden;
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  .schedule-mobile-match-card__matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    align-items: stretch;
    gap: 7px;
  }

  .schedule-mobile-match-card__team {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.018);
    text-align: center;
  }

  .schedule-mobile-match-card__team.is-selected-pair {
    border-color: rgba(201,166,107,.38);
    background: rgba(201,166,107,.07);
  }

  .schedule-mobile-match-card__team strong {
    overflow: hidden;
    font-size: 8px;
    line-height: 1.25;
    text-overflow: ellipsis;
  }

  .schedule-mobile-match-card__matchup > b {
    align-self: center;
    color: var(--gold);
    font-size: 8px;
    font-style: italic;
    font-weight: 900;
    text-align: center;
  }

  .schedule-mobile-match-card__score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
  }

  .schedule-mobile-match-card__score.is-complete {
    border-color: rgba(201,166,107,.35);
    background: rgba(201,166,107,.06);
  }

  .schedule-mobile-match-card__score small {
    color: var(--muted);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .schedule-mobile-match-card__score strong {
    color: var(--gold-bright);
    font-size: 11px;
  }

  .schedule-mobile-match-card__footer {
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.07);
  }

  .schedule-mobile-match-card__footer span {
    color: var(--muted);
    font-size: 6px;
    font-weight: 800;
  }

  .schedule-mobile-match-card__footer strong {
    color: var(--gold-bright);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .08em;
  }
}

@media (max-width: 360px) {
  .schedule-hero h1 {
    font-size: 32px;
  }

  .schedule-mobile-match-card {
    padding: 12px 10px;
  }

  .schedule-mobile-match-card__facts {
    gap: 5px;
  }

  .schedule-mobile-match-card__matchup {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 5px;
  }
}


/* VERSION 30 · AJUSTES MÓVILES DE REGLAMENTO, NAVEGACIÓN Y GALERÍA */
@media (max-width: 700px) {
  /* Alinea Mesa de Control con los otros tres accesos. */
  .main-nav__control-stack {
    height: 40px;
    display: block;
    grid-template-rows: none;
  }

  .main-nav__control-stack .main-nav__link {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 4px 3px;
    border-radius: 10px;
  }

  /* Reglamento: título seguro y tres indicadores visibles a la vez. */
  .rules-hero {
    overflow: hidden;
  }

  .rules-hero h1 {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(34px, 11vw, 44px);
    letter-spacing: -.065em;
    line-height: .95;
    white-space: nowrap;
  }

  .rules-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    margin: 0 0 12px;
    padding: 0;
    scroll-snap-type: none;
  }

  .highlight-card {
    min-width: 0;
    min-height: 96px;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 12px 6px;
    border-radius: 13px;
    text-align: center;
    scroll-snap-align: none;
  }

  .highlight-card__value {
    font-size: clamp(19px, 6vw, 27px);
    white-space: nowrap;
  }

  .highlight-card__label {
    margin-top: 7px;
    font-size: clamp(5px, 1.55vw, 6.5px);
    letter-spacing: .065em;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .mobile-control-logout__button {
    gap: 0;
  }
}

@media (max-width: 360px) {
  .rules-hero h1 {
    font-size: 33px;
  }

  .rules-highlights {
    gap: 4px;
  }

  .highlight-card {
    min-height: 92px;
    padding-inline: 4px;
  }
}


/* VERSION 31 · MODO CLARO COMPLETO */
.theme-toggle {
  position: absolute;
  top: 12px;
  right: clamp(22px, 4vw, 64px);
  z-index: 4;
  width: 42px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(201,166,107,.48);
  transform: translateY(-1px);
}

.theme-toggle__track {
  position: relative;
  width: 32px;
  height: 14px;
  display: block;
  border-radius: inherit;
  background: rgba(255,255,255,.09);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(201,166,107,.36);
  transition: transform 260ms cubic-bezier(.16,1,.3,1), background 180ms ease;
}

.theme-toggle__glyph {
  width: 4px;
  height: 4px;
  border: 1px solid #16120c;
  border-radius: 50%;
}

html[data-theme="light"] {
  color-scheme: light;
  --black: #f5f2ea;
  --black-deep: #ffffff;
  --panel: #ffffff;
  --panel-hover: #f4f0e7;
  --off-white: #171612;
  --muted: #69645b;
  --muted-soft: #8d877b;
  --line: rgba(35,31,24,.10);
  --line-strong: rgba(35,31,24,.18);
  --gold: #9f7435;
  --gold-bright: #bd8b43;
  --danger: #a54f45;
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(35,31,24,.16);
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 18px rgba(60,48,29,.10), inset 0 0 0 1px rgba(255,255,255,.7);
}

html[data-theme="light"] .theme-toggle__track {
  background: rgba(159,116,53,.16);
}

html[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(18px);
  background: #191713;
  box-shadow: none;
}

html[data-theme="light"] .theme-toggle__glyph {
  width: 5px;
  height: 5px;
  border: 0;
  background: #f5f2ea;
  box-shadow: -2px -1px 0 0 #191713;
}

html[data-theme="light"] body {
  color: var(--off-white);
  background:
    radial-gradient(circle at 50% -18%, rgba(159,116,53,.11), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2ea 58%, #eee9df 100%);
}

html[data-theme="light"] body::before {
  opacity: .24;
  background-image:
    linear-gradient(rgba(41,36,28,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,36,28,.035) 1px, transparent 1px);
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(35,31,24,.10);
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 40px rgba(62,51,34,.08);
}

html[data-theme="light"] .site-header__logo,
html[data-theme="light"] .login-card__brand img,
html[data-theme="light"] .schedule-admin-heading img,
html[data-theme="light"] .schedule-add-heading img {
  filter: invert(1);
}

html[data-theme="light"] .main-nav__link,
html[data-theme="light"] .header-logout {
  color: #777168;
}

html[data-theme="light"] .main-nav__link:hover,
html[data-theme="light"] .main-nav__link.is-active,
html[data-theme="light"] .main-nav__link--utility:hover,
html[data-theme="light"] .main-nav__link--utility.is-active {
  color: #171612;
}

html[data-theme="light"] :is(
  .category-switcher,
  .ranking-board,
  .schedule-search,
  .schedule-board,
  .rules-hero,
  .rules-card,
  .login-card,
  .setup-card,
  .control-hero,
  .control-overview,
  .control-panel,
  .stat-card,
  .progress-card,
  .player-registration-card,
  .delivery-board,
  .mobile-control-logout,
  .schedule-download-card,
  .schedule-admin-card,
  .schedule-add-card,
  .confirmation-card,
  .schedule-result-delete-card,
  .schedule-mobile-match-card
) {
  border-color: rgba(35,31,24,.11);
  background-color: rgba(255,255,255,.88);
  box-shadow: 0 18px 48px rgba(55,45,31,.075);
}

html[data-theme="light"] :is(
  .ranking-board__header,
  .ranking-row,
  .delivery-board__header,
  .delivery-row,
  .pending-player,
  .schedule-match-card,
  .schedule-search-result,
  .schedule-mobile-pair-option,
  .schedule-mobile-match-card__facts > span,
  .schedule-mobile-match-card__team,
  .schedule-mobile-match-card__score,
  .schedule-pair-picker__selected,
  .schedule-admin-actions button,
  .schedule-admin-workspace,
  .schedule-add-settings label,
  .schedule-pair-picker,
  .highlight-card,
  .form-step,
  .registration-help
) {
  border-color: rgba(35,31,24,.10);
  background: rgba(255,255,255,.68);
}

html[data-theme="light"] :is(
  .ranking-row:hover,
  .schedule-match-card:hover,
  .schedule-search-result:hover,
  .schedule-mobile-pair-option:hover,
  .schedule-admin-actions button:hover
) {
  background: #f5f0e6;
}

html[data-theme="light"] :is(
  input,
  select,
  .search-field,
  .schedule-search__field,
  .password-field,
  .schedule-pair-picker__label
) {
  color: #171612;
  border-color: rgba(35,31,24,.14);
  background-color: rgba(255,255,255,.92);
}

html[data-theme="light"] input::placeholder {
  color: #999185;
}

html[data-theme="light"] :is(
  .category-button,
  .segment-control__button,
  .schedule-date-button,
  .compact-category-button,
  .secondary-button,
  .setup-cancel-button,
  .reset-control-button
) {
  color: #575148;
  border-color: rgba(35,31,24,.13);
  background: rgba(255,255,255,.74);
}

html[data-theme="light"] :is(
  .category-button.is-active,
  .segment-control__button.is-active,
  .schedule-date-button.is-active,
  .compact-category-button.is-active
) {
  color: #171612;
  border-color: rgba(159,116,53,.46);
  background: rgba(159,116,53,.12);
}

html[data-theme="light"] :is(.primary-button, .pending-pack-button, .mobile-control-logout__button) {
  color: #fffdf8;
  border-color: #9f7435;
  background: linear-gradient(135deg, #bd8b43, #91682f);
}

html[data-theme="light"] :is(.schedule-court-heading, .schedule-hour, .schedule-grid__corner) {
  color: #514b42;
  border-color: rgba(35,31,24,.10);
  background: #f4f0e7;
}

html[data-theme="light"] :is(.schedule-search-results, .schedule-pair-picker__results) {
  border-color: rgba(35,31,24,.12);
  background: #fff;
  box-shadow: 0 20px 45px rgba(55,45,31,.14);
}

html[data-theme="light"] :is(.rules-list li, .schedule-note, .ranking-note, .site-footer) {
  color: #6e675d;
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(35,31,24,.09);
}

html[data-theme="light"] .confirmation-modal__backdrop {
  background: rgba(49,42,32,.46);
}

html[data-theme="light"] :is(
  .schedule-download-card__close,
  .schedule-admin-card__close,
  .schedule-add-card__close
) {
  color: #4f493f;
  border-color: rgba(35,31,24,.13);
  background: rgba(255,255,255,.88);
}

html[data-theme="light"] :is(.schedule-download-card__preview, .schedule-admin-preview) {
  border-color: rgba(35,31,24,.14);
  background: #111;
}

html[data-theme="light"] .schedule-preview-switch {
  border-color: rgba(35,31,24,.13);
  background: rgba(255,255,255,.86);
}

html[data-theme="light"] .schedule-admin-delete-result {
  border-color: rgba(165,79,69,.25) !important;
  background: rgba(165,79,69,.055) !important;
}

html[data-theme="light"] .toast {
  color: #fff;
  border-color: rgba(159,116,53,.4);
  background: #27231d;
}

html[data-theme="light"] .progress-track,
html[data-theme="light"] .loading-placeholder {
  background: rgba(35,31,24,.09);
}

html[data-theme="light"] .welcome-toggle__mark {
  border-color: rgba(35,31,24,.18);
  background: #fff;
}

@media (max-width: 700px) {
  .theme-toggle {
    top: calc(14px + env(safe-area-inset-top, 0));
    right: 10px;
    width: 38px;
    height: 22px;
  }

  .theme-toggle__track {
    width: 29px;
    height: 13px;
  }

  .theme-toggle__thumb {
    width: 9px;
    height: 9px;
  }

  html[data-theme="light"] .theme-toggle__thumb {
    transform: translateX(16px);
  }

  html[data-theme="light"] .site-header {
    border-bottom-color: rgba(159,116,53,.20);
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 34px rgba(55,45,31,.12);
  }

  html[data-theme="light"] .main-nav__link,
  html[data-theme="light"] .header-actions .main-nav__link {
    color: #6f685e;
    border-color: rgba(35,31,24,.09);
    background: rgba(255,255,255,.72);
  }

  html[data-theme="light"] .main-nav__link.is-active {
    color: #171612;
    border-color: rgba(159,116,53,.34);
    background: linear-gradient(180deg, rgba(159,116,53,.14), rgba(159,116,53,.045));
  }

  html[data-theme="light"] .schedule-mobile-match-card__footer {
    border-top-color: rgba(35,31,24,.09);
  }
}


/* VERSION 32 · CONTRASTE REFORZADO PARA MODO CLARO */
html[data-theme="light"] {
  --off-white: #171511;
  --muted: #5a544b;
  --muted-soft: #716a5f;
  --gold: #8f6429;
  --gold-bright: #aa7934;
}

/* Textos principales y secundarios sobre superficies claras. */
html[data-theme="light"] :is(
  .ranking-player,
  .ranking-points,
  .panel-heading h2,
  .delivery-pair strong,
  .pending-player__copy strong,
  .confirmation-card h2,
  .confirmation-card__pair,
  .highlight-card__label,
  .rules-card .card-kicker,
  .rules-card strong,
  .rules-list strong,
  .schedule-search__heading h2,
  .schedule-search-result__players,
  .schedule-search-empty strong,
  .schedule-board__date > span,
  .schedule-board__date-meta b,
  .schedule-admin-heading h2,
  .schedule-admin-actions button,
  .schedule-score-control output,
  .schedule-match-result strong,
  .schedule-result-delete-card h2,
  .schedule-result-delete-card > strong,
  .schedule-pair-picker__selected-copy strong,
  .schedule-pair-picker__selected-copy > span,
  .mobile-control-logout__copy strong,
  .schedule-mobile-pair-option,
  .schedule-mobile-results__heading strong,
  .schedule-mobile-match-card
) {
  color: #171511;
}

html[data-theme="light"] :is(
  .rules-card p,
  .rules-list,
  .rules-list li,
  .schedule-download-card__content p:not(.section-eyebrow),
  .schedule-admin-heading p,
  .schedule-add-heading p,
  .schedule-admin-actions button small,
  .schedule-admin-form label,
  .schedule-add-form label,
  .schedule-pair-picker__label,
  .schedule-note,
  .ranking-note,
  .registration-help,
  .mobile-control-logout__copy p,
  .schedule-mobile-pair-option__copy small,
  .schedule-mobile-results__heading small,
  .schedule-mobile-match-card small,
  .schedule-mobile-match-card__footer span
) {
  color: #5a544b;
}

/* Nombres y datos de los partidos: antes conservaban blanco del tema oscuro. */
html[data-theme="light"] .schedule-pair span:not(.is-bye) {
  color: #242019;
}

html[data-theme="light"] .schedule-pair span.is-bye {
  color: #746d62;
}

html[data-theme="light"] .schedule-pair.is-match-winner > span:not(.is-bye) {
  color: #2a1e0d;
  text-shadow: none;
}

html[data-theme="light"] :is(
  .schedule-mobile-match-card__team strong,
  .schedule-mobile-match-card__facts strong,
  .schedule-mobile-match-card__score strong,
  .schedule-mobile-match-card__footer strong,
  .schedule-mobile-pair-option__copy strong
) {
  color: #211e18;
}

/* Números decorativos visibles sin confundirse con el fondo. */
html[data-theme="light"] :is(
  .panel-heading__number,
  .setup-card__number,
  .confirmation-card__mark,
  .schedule-admin-actions button > span
) {
  color: rgba(38, 32, 24, .095);
}

html[data-theme="light"] .rules-card__index {
  color: rgba(38, 32, 24, .28);
}

html[data-theme="light"] .ranking-position__badge {
  color: #5c554c;
}

/* Formularios, menús y listas desplegables. */
html[data-theme="light"] :is(
  .schedule-admin-form select,
  .schedule-admin-form input,
  .schedule-add-form select,
  .schedule-pair-picker input,
  .schedule-search__field input,
  .password-field input,
  .setup-card input,
  .stat-card input,
  .pair-form input,
  .search-field input
) {
  color: #171511;
  caret-color: #8f6429;
}

html[data-theme="light"] :is(
  .schedule-admin-form select option,
  .schedule-add-form select option
) {
  color: #171511;
  background: #ffffff;
}

html[data-theme="light"] :is(
  input::placeholder,
  .schedule-search__field input::placeholder,
  .pair-form input::placeholder,
  .search-field input::placeholder
) {
  color: #80786d;
  opacity: 1;
}

html[data-theme="light"] .schedule-pair-picker__results button {
  color: #211e18;
  background: #ffffff;
}

html[data-theme="light"] .schedule-pair-picker__results button:hover {
  background: #f2ece1;
}

html[data-theme="light"] .schedule-pair-picker__remove {
  color: #8d4038;
}

/* Estados deshabilitados: legibles, pero claramente inactivos. */
html[data-theme="light"] :is(button, input, select):disabled {
  color: #777065;
}

html[data-theme="light"] :is(
  .secondary-button:disabled,
  .schedule-admin-actions button:disabled,
  .schedule-preview-switch:disabled
) {
  color: #777065;
  border-color: rgba(35,31,24,.11);
  background: #eee9df;
  opacity: .78;
}

/* Mantiene texto blanco solo donde existe un fondo oscuro o dorado suficiente. */
html[data-theme="light"] :is(
  .primary-button,
  .pending-pack-button,
  .mobile-control-logout__button,
  .danger-button,
  .setup-cancel-button,
  .reset-control-button
) {
  color: #fffdf8;
}

/* Contraste adicional en etiquetas pequeñas y pies. */
html[data-theme="light"] :is(
  .card-kicker,
  .section-eyebrow,
  .schedule-search__hint,
  .ranking-points span,
  .stat-card span,
  .progress-card span,
  .delivery-status,
  .pending-player__copy span
) {
  opacity: 1;
}

html[data-theme="light"] .schedule-empty-slot {
  color: #777064;
}

html[data-theme="light"] .site-footer p {
  color: #625b51;
}


/* VERSION 33 · CONTROLES DE VISTA Y DISEÑO DE IMAGEN */
.schedule-download-visual,
.schedule-admin-visual {
  display: grid;
  align-self: start;
  gap: 12px;
  min-width: 0;
}

.schedule-download-visual {
  width: min(100%, 430px);
  justify-self: center;
}

.schedule-download-visual .schedule-download-card__preview {
  width: 100%;
}

.schedule-preview-controls {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.schedule-preview-controls .schedule-preview-switch {
  width: 100%;
  margin: 0;
}

.schedule-color-switch > span:first-child,
.schedule-color-switch.is-light > span:last-child {
  color: var(--gold-bright);
}

.schedule-color-switch.is-light > span:first-child {
  color: var(--muted);
}

.schedule-color-switch.is-light > i::after {
  transform: translateX(26px);
}

.schedule-download-card__preview,
.schedule-admin-preview {
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

html[data-theme="light"] .schedule-preview-switch {
  color: #665f55;
  background: rgba(255,255,255,.72);
  border-color: rgba(141,104,48,.30);
}

html[data-theme="light"] .schedule-preview-switch > i {
  background: #f4efe5;
  border-color: rgba(141,104,48,.38);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.025);
}

@media (min-width: 901px) {
  .schedule-download-card {
    width: min(1100px, calc(100vw - 40px)) !important;
    max-width: 1100px !important;
    display: grid !important;
    grid-template-columns: minmax(340px, 440px) minmax(320px, 1fr) !important;
    align-items: center !important;
  }
}

@media (max-width: 700px) {
  .schedule-download-visual {
    width: min(100%, 318px);
    gap: 7px;
  }

  .schedule-preview-controls {
    gap: 6px;
  }

  .schedule-preview-controls .schedule-preview-switch {
    min-height: 39px;
    grid-template-columns: 1fr 44px 1fr;
    gap: 7px;
    padding: 5px 8px;
  }

  .schedule-preview-controls .schedule-preview-switch > span {
    font-size: 6.2px;
    letter-spacing: .12em;
  }

  .schedule-preview-controls .schedule-preview-switch > i {
    width: 44px;
    height: 25px;
  }

  .schedule-preview-controls .schedule-preview-switch > i::after {
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
  }

  .schedule-preview-controls .schedule-preview-switch.is-result > i::after,
  .schedule-preview-controls .schedule-color-switch.is-light > i::after {
    transform: translateX(20px);
  }

  .schedule-admin-visual {
    width: min(100%, 304px) !important;
  }
}


/* VERSION 34 · AJUSTES DE CONTRASTE Y MESA DE CONTROL EN MODO CLARO */

/* Canchas disponibles: mayor legibilidad en ambos temas. */
.schedule-empty-slot {
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .15em;
  text-align: center;
}

.schedule-empty-slot.is-actionable {
  font-size: 10px;
}

html[data-theme="light"] .schedule-empty-slot,
html[data-theme="light"] .schedule-empty-slot.is-actionable {
  color: #171511;
  border-color: rgba(143,100,41,.30);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}

html[data-theme="light"] .schedule-empty-slot.is-actionable:hover,
html[data-theme="light"] .schedule-empty-slot.is-actionable:focus-visible {
  color: #171511;
  border-color: rgba(143,100,41,.72);
  background: #fbf7ef;
}

/* Evita bloques blancos innecesarios sobre el fondo claro de Mesa de Control. */
html[data-theme="light"] .control-hero,
html[data-theme="light"] .control-overview {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

/* Resumen: tarjetas blancas y textos oscuros. */
html[data-theme="light"] .progress-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .stat-card--gold {
  color: #171511;
  border-color: rgba(35,31,24,.11);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(55,45,31,.075);
}

html[data-theme="light"] .stat-card span,
html[data-theme="light"] .stat-card strong,
html[data-theme="light"] .stat-card--gold span,
html[data-theme="light"] .stat-card--gold strong {
  color: #171511;
}

html[data-theme="light"] .progress-card::after {
  background:
    radial-gradient(circle at 88% 18%, rgba(201,166,107,.18), transparent 28%),
    linear-gradient(120deg, rgba(201,166,107,.07), transparent 42%);
}

/* Círculo de progreso claro con contraste y profundidad. */
html[data-theme="light"] .progress-ring {
  padding: 1px;
  background:
    conic-gradient(#aa7934 var(--progress), rgba(143,100,41,.13) 0);
  box-shadow:
    0 14px 34px rgba(143,100,41,.15),
    inset 0 0 0 1px rgba(143,100,41,.16);
}

html[data-theme="light"] .progress-ring::before {
  inset: 9px;
  background:
    radial-gradient(circle at 50% 35%, #ffffff, #f8f3e9 74%);
  box-shadow:
    inset 0 0 0 1px rgba(143,100,41,.20),
    0 0 0 5px rgba(255,255,255,.72);
}

html[data-theme="light"] .progress-ring strong {
  color: #171511;
}

html[data-theme="light"] .progress-ring span {
  color: #655d52;
}

html[data-theme="light"] .progress-track {
  background: rgba(143,100,41,.10);
}

html[data-theme="light"] .progress-track span {
  background: linear-gradient(90deg, #8f6429, #c59650);
}

/* Casillas individuales del welcome pack. */
html[data-theme="light"] .welcome-toggle--player {
  border: 1px solid rgba(143,100,41,.52);
  border-radius: 14px;
  background: #ffffff;
}

html[data-theme="light"] .welcome-toggle--player:hover {
  border-color: rgba(143,100,41,.82);
  background: #fbf7ef;
}

html[data-theme="light"] .welcome-toggle--player:has(input:checked) {
  border-color: #9f7435;
  background: rgba(159,116,53,.09);
}

html[data-theme="light"] .welcome-toggle__mark {
  border: 1px solid rgba(143,100,41,.72);
  border-radius: 10px;
  background: #ffffff;
}

html[data-theme="light"] .welcome-toggle input:checked + .welcome-toggle__mark {
  border-color: #9f7435;
  background: #bd8b43;
}

html[data-theme="light"] .welcome-toggle input:checked + .welcome-toggle__mark::after {
  color: #171511;
}

/* Restablecer: contenido visible y acción claramente destructiva. */
html[data-theme="light"] .control-reset-section {
  border-color: rgba(165,79,69,.28);
  background: rgba(165,79,69,.045);
}

html[data-theme="light"] .control-reset-section__copy h2 {
  color: #171511;
}

html[data-theme="light"] .control-reset-section__copy p {
  color: #655d52;
}

html[data-theme="light"] .reset-control-button {
  color: #8d4038;
  border-color: rgba(165,79,69,.50);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}

html[data-theme="light"] .reset-control-button span {
  color: #8d4038;
}

html[data-theme="light"] .reset-control-button:hover {
  color: #6f2d27;
  border-color: rgba(165,79,69,.82);
  background: rgba(165,79,69,.09);
}

/* Herramientas administrativas: botones legibles en modo claro. */
html[data-theme="light"] .schedule-admin-form__actions .secondary-button,
html[data-theme="light"] .schedule-admin-form__actions .primary-button {
  color: #171511;
}

html[data-theme="light"] .schedule-admin-form__actions .primary-button {
  border-color: rgba(143,100,41,.50);
  background: linear-gradient(135deg, #d2a45e, #b9853f);
}

html[data-theme="light"] .schedule-admin-form__actions .secondary-button {
  border-color: rgba(35,31,24,.16);
  background: #ffffff;
}

html[data-theme="light"] .schedule-admin-form__actions button:disabled {
  color: #777065;
  background: #eee9df;
}

/* Registro de resultado: laterales oscuros, centro claro y borde dorado. */
html[data-theme="light"] .schedule-score-control {
  border: 1px solid rgba(143,100,41,.72);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}

html[data-theme="light"] .schedule-score-control button {
  color: #ffffff;
  background: #171511;
}

html[data-theme="light"] .schedule-score-control button:hover {
  background: #2a261f;
}

html[data-theme="light"] .schedule-score-control output {
  color: #171511;
  background: #ffffff;
}

/* Mantiene estos ajustes también en la disposición móvil. */
@media (max-width: 700px) {
  .schedule-empty-slot,
  .schedule-empty-slot.is-actionable {
    font-size: 10px;
  }

  html[data-theme="light"] .progress-ring {
    box-shadow: 0 10px 26px rgba(143,100,41,.14), inset 0 0 0 1px rgba(143,100,41,.16);
  }
}


/* VERSION 35 · BUSCADOR INDIVIDUAL DE JUGADORES EN MESA DE CONTROL */
.control-player-search {
  position: relative;
  display: grid;
  gap: 9px;
}

.control-player-search > label {
  min-width: 0;
}

.control-player-search input[type="search"] {
  width: 100%;
  border-radius: 12px;
}

.control-player-search input[type="search"]::-webkit-search-cancel-button {
  opacity: .58;
  cursor: pointer;
}

.control-player-search__results {
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 230px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(201,166,107,.48);
  border-radius: 13px;
  background: #070707;
  box-shadow: 0 22px 52px rgba(0,0,0,.62);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255,255,255,.05);
}

.control-player-search__results::-webkit-scrollbar { width: 8px; }
.control-player-search__results::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.control-player-search__results::-webkit-scrollbar-thumb {
  border: 2px solid #070707;
  border-radius: 999px;
  background: var(--gold);
}

.control-player-search__results p {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.control-player-search__results button {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--off-white);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.control-player-search__results button:last-child { border-bottom: 0; }
.control-player-search__results button:hover,
.control-player-search__results button:focus-visible { background: rgba(201,166,107,.10); }
.control-player-search__results button strong { font-size: 11px; font-weight: 900; }
.control-player-search__results button span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
}

.control-player-search__selected {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 9px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--muted-soft);
  background: rgba(255,255,255,.012);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.control-player-search__selected.has-selection {
  grid-template-columns: minmax(0,1fr) auto;
  place-items: stretch;
  align-items: center;
  gap: 10px;
  border-style: solid;
  border-color: rgba(201,166,107,.52);
  color: var(--off-white);
  background: rgba(201,166,107,.055);
  text-align: left;
}

.control-player-search__selected > strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-player-search__selected button {
  min-width: 78px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(201,166,107,.42);
  border-radius: 9px;
  color: var(--gold-bright);
  background: rgba(201,166,107,.06);
  cursor: pointer;
}

.control-player-search__selected button > span { font-size: 15px; line-height: 1; }
.control-player-search__selected button > strong { font-size: 7px; letter-spacing: .08em; }

html[data-theme="light"] .control-player-search__results {
  border-color: rgba(151,111,48,.45);
  background: #fffdf8;
  box-shadow: 0 22px 46px rgba(65,49,25,.14);
}

html[data-theme="light"] .control-player-search__results::-webkit-scrollbar-track { background: #eee7da; }
html[data-theme="light"] .control-player-search__results::-webkit-scrollbar-thumb { border-color: #fffdf8; }
html[data-theme="light"] .control-player-search__results button { color: #171612; border-color: rgba(35,31,24,.09); }
html[data-theme="light"] .control-player-search__results button:hover,
html[data-theme="light"] .control-player-search__results button:focus-visible { background: #f5efe3; }
html[data-theme="light"] .control-player-search__results button span { color: #716b61; }
html[data-theme="light"] .control-player-search__selected {
  border-color: rgba(35,31,24,.17);
  color: #777168;
  background: rgba(255,255,255,.72);
}
html[data-theme="light"] .control-player-search__selected.has-selection {
  border-color: rgba(151,111,48,.46);
  color: #171612;
  background: #fffaf0;
}
html[data-theme="light"] .control-player-search__selected button {
  color: #5d4319;
  background: #f5ead4;
}

@media (max-width: 700px) {
  .control-player-search__results {
    position: static;
    max-height: 190px;
    margin-top: -2px;
  }

  .control-player-search__selected {
    min-height: 46px;
  }
}


/* VERSION 36 · WELCOME PACK ÚNICO POR JUGADOR */
.control-player-search__result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.control-player-search__received-inline,
.control-player-search__received-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid rgba(201,166,107,.55);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(201,166,107,.10);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.control-player-search__selected-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.control-player-search__selected-identity > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-toggle--player.is-already-delivered {
  border-color: rgba(201,166,107,.62);
  background: rgba(201,166,107,.10);
  cursor: not-allowed;
}

.welcome-toggle--player.is-already-delivered .welcome-toggle__mark {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.welcome-toggle--player.is-already-delivered small {
  color: var(--gold-bright);
  font-weight: 900;
  letter-spacing: .06em;
}

html[data-theme="light"] .control-player-search__received-inline,
html[data-theme="light"] .control-player-search__received-badge {
  color: #6c4c18;
  border-color: rgba(155,108,38,.45);
  background: #f5ead6;
}

html[data-theme="light"] .welcome-toggle--player.is-already-delivered {
  border-color: rgba(155,108,38,.55);
  background: #fbf3e4;
}

html[data-theme="light"] .welcome-toggle--player.is-already-delivered small {
  color: #6c4c18;
}

@media (max-width: 700px) {
  .control-player-search__result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .control-player-search__received-inline,
  .control-player-search__received-badge {
    white-space: normal;
  }
}


/* VERSION 40 · SUPABASE AUTH Y ESTADO DE CONEXIÓN */
.login-email-field {
  width: 100%;
  height: 56px;
  margin-bottom: 24px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--off-white);
  background: #050505;
  outline: 0;
  transition: border-color 180ms ease, background 180ms ease;
}

.login-email-field:focus {
  border-color: var(--gold);
  background: #080808;
}

.database-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin: 18px 0 0;
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.database-status::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-soft);
  box-shadow: 0 0 0 3px rgba(255,255,255,.035);
}

.database-status[data-state="online"] { color: var(--gold-bright); }
.database-status[data-state="online"]::before {
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201,166,107,.13), 0 0 12px rgba(201,166,107,.44);
}
.database-status[data-state="saving"]::before { animation: ppsDatabasePulse 900ms ease-in-out infinite alternate; }
.database-status[data-state="error"] { color: #d18a7f; }
.database-status[data-state="error"]::before { background: #d18a7f; }

@keyframes ppsDatabasePulse { to { opacity: .35; transform: scale(.72); } }

html[data-theme="light"] .login-email-field {
  color: #171511;
  background: #fff;
  border-color: rgba(38,32,24,.20);
}
html[data-theme="light"] .login-email-field:focus { background: #fff; border-color: #a77b3f; }
html[data-theme="light"] .database-status { color: #5d554a; }
html[data-theme="light"] .database-status[data-state="online"] { color: #7d5725; }

@media (max-width: 700px) {
  .login-email-field { height: 50px; margin-bottom: 18px; font-size: 16px; }
  .database-status { margin-top: 14px; line-height: 1.45; }
}


/* VERSION 41 · AJUSTES SUPABASE, FAVICON Y EXPORTACIÓN MÓVIL */
.database-status[hidden] { display: none !important; }

@media (max-width: 700px) {
  .schedule-hero h1,
  .rules-hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 8.2vw, 40px);
    overflow-wrap: anywhere;
  }

  .schedule-download-visual,
  .schedule-download-card__preview,
  .schedule-preview-controls,
  .schedule-download-card__content,
  .schedule-download-card__actions {
    margin-inline: auto;
    justify-self: center;
  }

  .schedule-download-visual {
    width: min(100%, 318px);
    justify-items: center;
    align-items: center;
  }

  .schedule-download-card__preview {
    width: min(100%, 318px);
  }

  .schedule-download-card__content {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .schedule-download-card__actions,
  .schedule-download-card.has-result .schedule-download-card__actions {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .schedule-preview-controls {
    width: min(100%, 318px);
  }
}

html[data-theme="light"] .control-page,
html[data-theme="light"] .control-dashboard {
  background: transparent;
}


/* VERSION 42 · AJUSTES MÓVILES DE EXPORTACIÓN */
@media (max-width: 700px) {
  body > .schedule-download-modal,
  body > .schedule-download-modal .schedule-download-card,
  body > .schedule-download-modal .schedule-download-visual,
  body > .schedule-download-modal .schedule-download-card__preview,
  body > .schedule-download-modal .schedule-download-card__content,
  body > .schedule-download-modal .schedule-download-card__actions,
  body > .schedule-download-modal .schedule-preview-controls,
  body > .schedule-download-modal .schedule-preview-switch {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body > .schedule-download-modal {
    overflow-x: hidden !important;
  }

  body > .schedule-download-modal .schedule-download-card {
    overflow-x: hidden !important;
    padding-inline: 10px;
  }

  body > .schedule-download-modal .schedule-download-card__preview {
    width: min(100%, 300px) !important;
  }

  body > .schedule-download-modal .schedule-download-visual,
  body > .schedule-download-modal .schedule-preview-controls,
  body > .schedule-download-modal .schedule-download-card__content,
  body > .schedule-download-modal .schedule-download-card__actions {
    width: min(100%, 300px) !important;
  }

  body > .schedule-download-modal .schedule-download-card__actions,
  body > .schedule-download-modal .schedule-download-card.has-result .schedule-download-card__actions {
    grid-template-columns: 1fr;
  }

  body > .schedule-download-modal .schedule-download-card__actions .secondary-button:first-child {
    grid-column: auto;
  }
}


/* VERSION 43 · AJUSTES MÓVILES DE EXPORTACIÓN Y BOTÓN DE TEMA */
@media (min-width: 701px) {
  .theme-toggle {
    top: 50%;
    right: clamp(22px, 4vw, 64px);
    transform: translateY(-50%);
  }

  .theme-toggle:hover {
    transform: translateY(calc(-50% - 1px));
  }
}

@media (max-width: 700px) {
  body > .schedule-download-modal,
  body > .schedule-download-modal * {
    box-sizing: border-box;
  }

  body > .schedule-download-modal .schedule-download-card {
    width: min(100%, calc(100vw - 16px)) !important;
    padding-inline: 8px !important;
  }

  body > .schedule-download-modal .schedule-download-card__preview,
  body > .schedule-download-modal .schedule-download-visual,
  body > .schedule-download-modal .schedule-preview-controls,
  body > .schedule-download-modal .schedule-download-card__content,
  body > .schedule-download-modal .schedule-download-card__actions {
    width: min(100%, 288px) !important;
    max-width: 288px !important;
  }

  body > .schedule-download-modal .schedule-download-card__content h2 {
    max-width: 288px;
    font-size: clamp(19px, 6.5vw, 24px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  body > .schedule-download-modal .schedule-download-card__content p:not(.section-eyebrow) {
    max-width: 288px;
  }

  body > .schedule-download-modal .schedule-preview-controls .schedule-preview-switch {
    min-width: 0;
  }

  body > .schedule-download-modal .schedule-preview-controls .schedule-preview-switch > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}


/* VERSION 44 · CORRECCIÓN REAL DE CONFIRMACIONES MÓVILES */
body > #deleteConfirmModal,
body > #resetConfirmModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 6000 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 12px !important;
}

body > #deleteConfirmModal[hidden],
body > #resetConfirmModal[hidden] {
  display: none !important;
}

body > #deleteConfirmModal .confirmation-card,
body > #resetConfirmModal .confirmation-card {
  width: min(480px, calc(100vw - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-y: auto !important;
  margin: 0 !important;
}

@supports not (height: 100dvh) {
  body > #deleteConfirmModal,
  body > #resetConfirmModal {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  body > #deleteConfirmModal .confirmation-card,
  body > #resetConfirmModal .confirmation-card {
    max-height: calc(100vh - 24px) !important;
  }
}


/* VERSION 45 · MESA DE CONTROL Y ENTREGA DE POLERA OFICIAL */
.login-card {
  padding-top: clamp(24px, 3.5vw, 34px);
}

.login-card__brand {
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.login-card > .section-eyebrow,
.control-hero > .section-eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  font-weight: 900;
}

.login-card > .section-eyebrow,
.login-card h1 {
  text-align: center;
}

.login-card h1 {
  margin-top: 10px;
  margin-bottom: 28px;
}

.control-page {
  padding-top: clamp(34px, 4.5vw, 54px);
}

.control-hero {
  margin-bottom: 26px;
}

.control-hero h1 {
  margin-top: 8px;
}

.registration-panel__heading {
  align-items: flex-end;
}

.registration-panel__title {
  flex: 0 0 auto;
}

.registration-heading-options {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 22px;
}

.registration-heading-option {
  min-width: 0;
}

.registration-heading-option .form-step__label {
  margin-bottom: 8px;
  text-align: right;
}

.registration-heading-option .segment-control,
.registration-heading-option .compact-categories {
  justify-content: flex-end;
}

.registration-heading-option .segment-control__button,
.registration-heading-option .compact-category {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 8px;
}

.registration-heading-option--category {
  max-width: 430px;
}

.player-delivery-toggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.welcome-toggle--player {
  min-height: 72px;
  width: 100%;
}

.welcome-toggle--player > span:last-child {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.welcome-toggle--player strong {
  width: 100%;
  font-size: clamp(12px, 1.25vw, 16px);
  line-height: 1.2;
  letter-spacing: .08em;
}

.shirt-toggle--player {
  background: rgba(201,166,107,.025);
}

.registration-submit-button {
  width: 100%;
  min-height: 64px;
  font-size: 13px;
  letter-spacing: .18em;
}

.form-step--submit {
  display: block;
}

.control-player-search__received-badge--shirt {
  color: var(--off-white);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}

html[data-theme="light"] .shirt-toggle--player {
  background: rgba(159,116,53,.045);
}

@media (max-width: 900px) {
  .registration-panel__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .registration-heading-options {
    width: 100%;
    justify-content: space-between;
  }

  .registration-heading-option .form-step__label {
    text-align: left;
  }

  .registration-heading-option .segment-control,
  .registration-heading-option .compact-categories {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .login-card {
    padding-top: 18px;
  }

  .login-card__brand {
    width: min(185px, 62vw);
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .login-card > .section-eyebrow,
  .control-hero > .section-eyebrow {
    font-size: 9px;
  }

  .login-card h1 {
    margin-top: 8px;
    margin-bottom: 22px;
  }

  .control-page {
    padding-top: 20px;
  }

  .control-hero {
    margin-bottom: 14px;
  }

  .registration-panel__heading {
    gap: 14px;
  }

  .registration-heading-options {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
    gap: 10px;
  }

  .registration-heading-option .form-step__label {
    margin-bottom: 6px;
    font-size: 7px;
  }

  .registration-heading-option .segment-control,
  .registration-heading-option .compact-categories {
    gap: 5px;
  }

  .registration-heading-option .segment-control__button,
  .registration-heading-option .compact-category {
    min-height: 34px;
    padding-inline: 7px;
    font-size: 6.5px;
    letter-spacing: .07em;
  }

  .welcome-toggle--player {
    min-height: 66px;
  }

  .welcome-toggle--player strong {
    font-size: 12px;
  }

  .registration-submit-button {
    min-height: 60px;
    font-size: 11px;
  }
}


/* VERSION 46 · GÉNERO, POLERAS, PENDIENTES Y AJUSTES GENERALES */

/* Ranking: cada grupo ocupa todo el ancho disponible hasta el divisor. */
@media (min-width: 821px) {
  .category-switcher {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
  }

  .category-group {
    width: 100%;
  }

  .category-group__buttons {
    width: 100%;
    display: flex;
  }

  .category-group__buttons .category-button {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .category-switcher__divider {
    align-self: stretch;
    height: auto;
  }
}

/* Reglamento: la columna derecha termina al mismo nivel que la izquierda. */
@media (min-width: 901px) {
  .rules-columns {
    align-items: stretch;
  }

  .rules-column--compact {
    height: 100%;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
  }

  .rules-column--compact .rules-card {
    height: 100%;
  }
}

/* Agregar pareja: controles alineados con el título y contenido más compacto. */
.registration-panel__heading {
  align-items: center;
}

.registration-panel__title h2 {
  margin-bottom: 0;
}

.registration-heading-options {
  align-items: center;
}

.registration-heading-option .form-step__label {
  margin-bottom: 6px;
}

.form-step--players {
  margin-top: 0;
}

.pair-form {
  padding-top: 18px;
}

.form-step--submit {
  margin-top: 18px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  display: flex;
  justify-content: center;
}

.registration-submit-button {
  width: min(100%, 420px);
  min-height: 62px;
  font-size: 15px;
}

/* Tabla conjunta de welcome packs y poleras. */
.delivery-board__header,
.delivery-row {
  grid-template-columns: 62px minmax(0, 1fr) 112px 165px 165px 44px;
}

.delivery-status--shirt {
  border-color: rgba(255,255,255,.18);
}

.delivery-status--shirt.is-delivered {
  border-color: rgba(201,166,107,.65);
}

/* Pendientes: cada jugador muestra pack y polera uno al lado del otro. */
.delivery-board.is-pending-view .delivery-board__header,
.delivery-board.is-pending-view .delivery-row {
  grid-template-columns: 62px minmax(190px, .8fr) 92px minmax(235px, .72fr) minmax(235px, .72fr) 44px;
}

.delivery-row--pending .pending-player-actions {
  grid-column: 4 / 6;
}

.pending-column-placeholder {
  display: none;
}

.pending-player {
  grid-template-columns: minmax(120px, 1fr) minmax(250px, auto);
}

.pending-player__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 7px;
}

.pending-pack-button--shirt {
  border-color: rgba(255,255,255,.18);
  color: var(--off-white);
}

.pending-pack-button--shirt:not(:disabled):hover {
  border-color: rgba(201,166,107,.62);
}

@media (max-width: 1180px) and (min-width: 821px) {
  .delivery-board__header,
  .delivery-row {
    grid-template-columns: 50px minmax(160px, 1fr) 82px 138px 138px 38px;
    padding-inline: 14px;
    gap: 10px;
  }

  .delivery-board.is-pending-view .delivery-board__header,
  .delivery-board.is-pending-view .delivery-row {
    grid-template-columns: 50px minmax(160px, .8fr) 82px minmax(200px, .7fr) minmax(200px, .7fr) 38px;
  }
}

@media (max-width: 900px) {
  .registration-panel__heading {
    align-items: stretch;
  }

  .registration-heading-options {
    align-items: stretch;
  }
}

@media (max-width: 820px) {
  .delivery-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "index pair category"
      "index welcome welcome"
      "index shirt delete";
    min-height: 138px;
  }

  .delivery-row > .delivery-status:not(.delivery-status--shirt) {
    grid-area: welcome;
    justify-self: stretch;
  }

  .delivery-row > .delivery-status--shirt {
    grid-area: shirt;
    justify-self: stretch;
  }

  .delivery-board.is-pending-view .delivery-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "index pair category"
      "index pending pending"
      "index delete delete";
    min-height: 250px;
  }

  .delivery-row--pending .pending-player-actions {
    grid-area: pending;
  }

  .pending-player {
    grid-template-columns: 1fr;
  }

  .pending-player__buttons {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .registration-panel__heading {
    gap: 10px;
  }

  .registration-heading-options {
    align-items: start;
  }

  .pair-form {
    padding-top: 12px;
  }

  .registration-submit-button {
    width: min(100%, 320px);
    min-height: 58px;
    font-size: 13px;
  }

  .delivery-row {
    min-height: 148px;
  }

  .delivery-board.is-pending-view .delivery-row {
    min-height: 292px;
  }

  .pending-player__buttons {
    grid-template-columns: 1fr 1fr;
  }

  .pending-pack-button {
    min-height: 42px;
    padding-inline: 6px;
    font-size: 6.5px;
  }
}


/* VERSION 47 · ESTADO DE GÉNERO Y BOTÓN DE POLERA */
.pending-pack-button--shirt:not(:disabled) {
  color: #090806 !important;
}


/* VERSION 48 · OPTIMIZACIÓN MÓVIL DE MESA DE CONTROL, RANKING Y REGLAMENTO */
@media (max-width: 700px) {
  /* Mesa de Control: densidad cómoda y mejor uso del ancho. */
  .control-page {
    --control-mobile-gap: 10px;
    padding: 16px 9px calc(34px + env(safe-area-inset-bottom, 0));
  }

  .control-hero {
    margin-bottom: 10px;
    padding-inline: 4px;
  }

  .control-hero > .section-eyebrow {
    margin-bottom: 5px;
    font-size: 9px;
    letter-spacing: .22em;
  }

  .control-hero h1 {
    margin-top: 0;
    font-size: clamp(37px, 11.8vw, 49px);
    line-height: .88;
  }

  .control-overview {
    gap: 7px;
    margin-bottom: 7px;
  }

  .progress-card {
    min-height: 126px;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
    padding: 14px;
    border-radius: 17px;
  }

  .progress-card__copy .card-kicker {
    font-size: 6.5px;
  }

  .progress-card__copy strong {
    margin-top: 6px;
    font-size: 32px;
  }

  .progress-card__copy p {
    margin-top: 3px;
    font-size: 6.4px;
  }

  .progress-ring {
    width: 74px;
  }

  .progress-ring strong {
    font-size: 17px;
  }

  .stat-grid {
    gap: 7px;
  }

  .stat-card {
    min-height: 76px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  .stat-card span {
    font-size: 6px;
  }

  .stat-card strong {
    margin-top: 5px;
    font-size: 23px;
  }

  .stat-card--settings {
    min-height: 68px;
  }

  .stat-card--settings form {
    gap: 6px;
  }

  .stat-card input,
  .stat-card button {
    min-height: 40px;
    height: 40px;
  }

  .control-panel {
    margin-top: 7px;
    border-radius: 17px;
  }

  .registration-panel__heading,
  .panel-heading--delivery {
    min-height: auto;
    padding: 14px 12px;
  }

  .registration-panel__heading {
    gap: 10px;
  }

  .registration-panel__title .card-kicker,
  .panel-heading--delivery .card-kicker {
    font-size: 6.5px;
  }

  .registration-panel__title h2,
  .panel-heading--delivery h2 {
    margin-top: 5px;
    font-size: 21px;
  }

  .registration-heading-options {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.45fr);
    gap: 7px;
  }

  .registration-heading-option .form-step__label {
    margin-bottom: 4px;
    font-size: 6.4px;
  }

  .registration-heading-option .segment-control,
  .registration-heading-option .compact-categories {
    gap: 4px;
  }

  .registration-heading-option .segment-control__button,
  .registration-heading-option .compact-category {
    min-height: 32px;
    padding-inline: 5px;
    border-radius: 8px;
    font-size: 6.2px;
  }

  .pair-form {
    padding: 10px;
  }

  .player-registration-grid {
    gap: 8px;
  }

  .player-registration-card {
    gap: 9px;
    padding: 10px;
    border-radius: 13px;
  }

  .control-player-search label > span {
    margin-bottom: 5px;
    font-size: 6.6px;
  }

  .pair-form input {
    height: 45px;
    padding-inline: 12px;
    font-size: 16px;
  }

  .control-player-search__selected {
    min-height: 30px;
    padding: 7px 9px;
    font-size: 6.5px;
  }

  .player-delivery-toggles {
    gap: 7px;
  }

  .welcome-toggle--player {
    min-height: 52px;
    padding: 9px 10px;
    border-radius: 11px;
  }

  .welcome-toggle--player strong {
    font-size: 10px;
    letter-spacing: .055em;
  }

  .welcome-toggle__mark {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }

  .form-step--submit {
    margin-top: 11px !important;
  }

  .registration-submit-button {
    width: min(100%, 280px);
    min-height: 52px;
    font-size: 12px;
  }

  .delivery-tools {
    gap: 7px;
    padding: 9px;
  }

  .search-field input {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 16px;
  }

  .delivery-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .filter-button {
    min-height: 37px;
    padding-inline: 4px;
    font-size: 6.6px;
    letter-spacing: .04em;
  }

  .filter-button--pending {
    min-width: 0;
  }

  .delivery-board {
    border-radius: 0 0 16px 16px;
  }

  .delivery-row,
  .delivery-board.is-pending-view .delivery-row {
    min-height: 0;
    padding: 11px 9px;
    gap: 7px 8px;
  }

  .delivery-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "index pair category"
      "welcome welcome welcome"
      "shirt shirt delete";
  }

  .delivery-index {
    grid-area: index;
    align-self: start;
    padding-top: 4px;
    font-size: 11px;
  }

  .delivery-pair {
    grid-area: pair;
    align-self: start;
  }

  .delivery-pair strong {
    font-size: 9px;
    line-height: 1.25;
    white-space: normal;
  }

  .delivery-pair span {
    margin-top: 3px;
    font-size: 6px;
  }

  .category-chip {
    grid-area: category;
    min-height: 27px;
    padding-inline: 7px;
    font-size: 6px;
  }

  .delivery-row > .delivery-status:not(.delivery-status--shirt) {
    grid-area: welcome;
  }

  .delivery-row > .delivery-status--shirt {
    grid-area: shirt;
  }

  .delivery-status {
    width: 100%;
    min-height: 40px;
    justify-self: stretch;
    font-size: 7px;
  }

  .delete-pair {
    grid-area: delete;
    justify-self: end;
    align-self: center;
    width: 40px;
    height: 40px;
    touch-action: manipulation;
  }

  .delivery-board.is-pending-view .delivery-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "index pair category"
      "pending pending pending"
      "delete delete delete";
  }

  .delivery-row--pending .pending-player-actions {
    grid-area: pending;
    gap: 6px;
  }

  .pending-player {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 9px;
    border-radius: 11px;
  }

  .pending-player__copy span {
    margin-bottom: 3px;
    font-size: 6.2px;
  }

  .pending-player__copy strong {
    font-size: 9px;
    white-space: normal;
  }

  .pending-player__buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .pending-pack-button {
    min-width: 0;
    min-height: 43px;
    padding-inline: 5px;
    border-radius: 9px;
    font-size: 6.7px;
    touch-action: manipulation;
  }

  .delivery-row--pending .delete-pair {
    grid-area: delete;
    justify-self: end;
    margin-top: 1px;
  }

  .control-reset-section {
    margin-top: 8px;
    padding: 14px 12px;
    gap: 12px;
    border-radius: 16px;
  }

  .control-reset-section__copy h2 {
    margin: 5px 0 5px;
    font-size: 20px;
  }

  .control-reset-section__copy p {
    font-size: 8px;
    line-height: 1.45;
  }

  .reset-control-button {
    width: 100%;
    min-height: 50px;
    touch-action: manipulation;
  }

  .mobile-control-logout {
    margin-top: 8px;
    padding: 13px 12px;
    border-radius: 16px;
  }

  /* Ranking: dos grupos equilibrados, divisor visible y botones realmente legibles. */
  .category-switcher {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    padding: 12px 9px;
  }

  .category-switcher__divider {
    display: block;
    width: 1px;
    height: auto;
    align-self: stretch;
    background: var(--line-strong);
  }

  .category-group {
    width: 100%;
  }

  .category-group__label {
    margin-bottom: 7px;
    font-size: 7.4px;
  }

  .category-group__buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .category-group__buttons .category-button {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding-inline: 3px;
    font-size: 9.4px;
    letter-spacing: .035em;
  }

  /* Reglamento: tarjetas consistentes, mismo ancho y ritmo vertical. */
  .rules-page {
    padding-inline: 10px;
  }

  .rules-columns,
  .rules-column,
  .rules-column--wide,
  .rules-column--compact {
    width: 100%;
    gap: 9px;
  }

  .rules-column--compact {
    grid-template-rows: none;
  }

  .rules-columns .rules-card,
  .rules-columns .rules-card--featured,
  .rules-columns .rules-card--full,
  .rules-column--compact .rules-card {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 17px 15px;
    border-radius: 15px;
  }

  .rules-card__header {
    margin-bottom: 10px;
  }

  .rules-card p,
  .rules-list li {
    font-size: 10px;
    line-height: 1.55;
  }
}


/* VERSION 49 · GUARDADO DE IMÁGENES EN IPHONE */
.ios-image-save-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.ios-image-save-modal.is-visible { opacity: 1; }

.ios-image-save-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(14px);
}

.ios-image-save-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: calc(100dvh - 24px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 16px 16px;
  overflow: auto;
  border: 1px solid rgba(201,166,107,.42);
  border-radius: 22px;
  color: var(--off-white);
  background: #080808;
  box-shadow: 0 32px 90px rgba(0,0,0,.7);
  text-align: center;
}

.ios-image-save-card__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--off-white);
  background: rgba(255,255,255,.04);
  font-size: 22px;
}

.ios-image-save-card h2 {
  max-width: 330px;
  margin: 0;
  font-size: clamp(25px, 7vw, 38px);
  font-style: italic;
  line-height: .95;
}

.ios-image-save-card > p:not(.section-eyebrow) {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.ios-image-save-card__preview {
  width: min(100%, 330px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: #111;
}

.ios-image-save-card__preview img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-touch-callout: default;
  user-select: auto;
}

.ios-image-save-card__actions {
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
}

html[data-theme="light"] .ios-image-save-card {
  color: #171512;
  background: #fff;
  border-color: rgba(23,21,18,.22);
}

html[data-theme="light"] .ios-image-save-card__close {
  color: #171512;
  border-color: rgba(23,21,18,.16);
  background: rgba(0,0,0,.03);
}

@media (max-width: 700px) {
  .ios-image-save-modal { padding: 7px; }
  .ios-image-save-card {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    padding: 20px 10px 12px;
  }
  .ios-image-save-card__preview,
  .ios-image-save-card__actions {
    width: min(100%, 310px);
  }
}


/* VERSION 50 · DOBLE PROGRESO E INVENTARIO DE TALLAS */
.control-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.delivery-progress-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.delivery-progress-panel .progress-card {
  min-height: 202px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
}

.delivery-progress-panel .progress-card__copy strong {
  margin-top: 13px;
  font-size: clamp(34px, 4.2vw, 55px);
}

.delivery-progress-panel .progress-ring {
  width: 112px;
}

.delivery-progress-panel .progress-ring strong {
  font-size: 22px;
}

.progress-card--shirts::after {
  background: linear-gradient(120deg, rgba(255,255,255,.035), transparent 45%), linear-gradient(300deg, rgba(201,166,107,.08), transparent 52%);
}

.progress-ring--shirts {
  background: conic-gradient(#e5c99a var(--progress), rgba(255,255,255,.07) 0);
}

.stat-grid--progress {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stat-grid--progress .stat-card {
  min-width: 0;
  min-height: 94px;
  padding: 15px 13px;
}

.stat-grid--progress .stat-card span {
  font-size: 7px;
  letter-spacing: .12em;
}

.stat-grid--progress .stat-card strong {
  font-size: 27px;
}

.stat-grid--progress .stat-card--settings form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.stat-grid--progress .stat-card--settings input,
.stat-grid--progress .stat-card--settings button {
  width: 100%;
  height: 30px;
}

.stat-card--action {
  width: 100%;
  border: 1px solid rgba(201,166,107,.3);
  color: var(--off-white);
  text-align: left;
  background: linear-gradient(135deg, rgba(201,166,107,.10), rgba(6,6,6,.9) 62%);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.stat-card--action:hover {
  border-color: rgba(201,166,107,.72);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(201,166,107,.16), rgba(6,6,6,.94) 62%);
}

.shirt-sizes-modal {
  z-index: 2850;
  overflow: auto;
}

.shirt-sizes-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(201,166,107,.38);
  border-radius: 28px;
  background: #070707;
  box-shadow: 0 38px 120px rgba(0,0,0,.72);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.16,1,.3,1);
}

.shirt-sizes-modal.is-visible .shirt-sizes-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.shirt-sizes-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--off-white);
  background: rgba(255,255,255,.035);
  font-size: 24px;
  cursor: pointer;
}

.shirt-sizes-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}

.shirt-sizes-card > p:not(.section-eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.shirt-size-editor {
  margin-top: 25px;
  padding: 18px;
  border: 1px solid rgba(201,166,107,.24);
  border-radius: 22px;
  background: rgba(201,166,107,.025);
}

.shirt-size-editor__heading,
.shirt-size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.shirt-size-editor__heading {
  padding: 0 4px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
}

.shirt-size-editor__rows {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.shirt-size-row__label {
  color: var(--gold-bright);
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  text-align: center;
}

.shirt-size-control {
  min-height: 46px;
}

.shirt-size-control--unavailable {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted-soft);
  background: rgba(255,255,255,.012);
}

.shirt-size-summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}

.shirt-size-summary span {
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.shirt-size-summary strong {
  color: var(--gold-bright);
  font-size: 32px;
  font-style: italic;
  font-weight: 900;
}

.shirt-sizes-card__actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 18px;
}

.shirt-sizes-card__actions button {
  width: 100%;
  min-height: 50px;
}

html[data-theme="light"] .delivery-progress-panel .progress-card,
html[data-theme="light"] .stat-grid--progress .stat-card,
html[data-theme="light"] .shirt-sizes-card {
  background: #fff;
}

html[data-theme="light"] .stat-card--action {
  color: #171512;
  background: linear-gradient(135deg, rgba(159,116,53,.10), #fff 62%);
}

html[data-theme="light"] .shirt-size-editor,
html[data-theme="light"] .shirt-size-summary {
  background: #faf7f0;
}

html[data-theme="light"] .shirt-size-control--unavailable {
  background: #f7f3ea;
}

@media (max-width: 1100px) {
  .control-overview {
    grid-template-columns: 1fr;
  }

  .delivery-progress-panel .progress-card {
    min-height: 190px;
  }
}

@media (max-width: 700px) {
  .control-overview {
    gap: 13px;
  }

  .delivery-progress-panel {
    gap: 7px;
  }

  .delivery-progress-panel .progress-card {
    min-height: 144px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 17px 15px;
  }

  .delivery-progress-panel .progress-card__copy strong {
    margin-top: 8px;
    font-size: clamp(30px, 10vw, 42px);
  }

  .delivery-progress-panel .progress-card__copy p {
    font-size: 7px;
    letter-spacing: .12em;
  }

  .delivery-progress-panel .progress-ring {
    width: 82px;
  }

  .delivery-progress-panel .progress-ring::before {
    inset: 6px;
  }

  .delivery-progress-panel .progress-ring strong {
    font-size: 18px;
  }

  .delivery-progress-panel .progress-ring span {
    font-size: 5px;
    letter-spacing: .1em;
  }

  .stat-grid--progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .stat-grid--progress .stat-card {
    min-height: 74px;
    padding: 11px;
  }

  .stat-grid--progress .stat-card span {
    font-size: 6px;
  }

  .stat-grid--progress .stat-card strong {
    font-size: 24px;
  }

  .stat-grid--progress .stat-card--settings form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stat-grid--progress .stat-card--settings input,
  .stat-grid--progress .stat-card--settings button {
    height: 28px;
  }

  .shirt-sizes-modal {
    padding: 7px;
  }

  .shirt-sizes-card {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    padding: 25px 11px 12px;
    border-radius: 22px;
  }

  .shirt-sizes-card h2 {
    padding-right: 35px;
    font-size: clamp(28px, 9vw, 38px);
  }

  .shirt-sizes-card > p:not(.section-eyebrow) {
    font-size: 9px;
  }

  .shirt-size-editor {
    margin-top: 15px;
    padding: 10px 7px;
    border-radius: 16px;
  }

  .shirt-size-editor__heading,
  .shirt-size-row {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 5px;
  }

  .shirt-size-editor__heading {
    font-size: 6px;
    letter-spacing: .08em;
  }

  .shirt-size-control {
    grid-template-columns: 31px minmax(30px, 1fr) 31px;
    min-height: 42px;
  }

  .shirt-size-control button {
    font-size: 18px;
  }

  .shirt-size-row__label {
    font-size: 13px;
  }

  .shirt-size-summary {
    min-height: 55px;
    padding: 10px 13px;
  }

  .shirt-size-summary strong {
    font-size: 26px;
  }

  .shirt-sizes-card__actions {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 11px;
  }
}


/* VERSION 51 · INVENTARIO DE TALLAS Y ORDEN DE INDICADORES */
.stat-grid--progress .stat-card {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.stat-grid--progress .stat-card span,
.stat-grid--progress .stat-card strong {
  width: 100%;
  text-align: center;
}

.stat-grid--progress .stat-card--settings form {
  width: min(100%, 118px);
  margin-inline: auto;
  justify-items: center;
}

.stat-grid--progress .stat-card--settings input,
.stat-grid--progress .stat-card--settings button {
  text-align: center;
}

.stat-card--action {
  border-color: var(--line-strong);
  color: var(--off-white);
  background: rgba(255,255,255,.018);
  box-shadow: none;
}

.stat-card--action:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  box-shadow: none;
}

html[data-theme="light"] .stat-card--action {
  color: #171512;
  border-color: rgba(35,31,24,.16);
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] .stat-card--action:hover {
  border-color: rgba(35,31,24,.30);
  background: #faf8f3;
}

.shirt-sizes-modal,
.shirt-sizes-card,
.shirt-size-editor,
.shirt-size-editor__rows,
.shirt-size-row,
.shirt-size-control {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.shirt-sizes-modal {
  overflow-x: hidden;
}

.shirt-sizes-card {
  overflow-x: hidden;
  overflow-y: auto;
}

.shirt-sizes-card > .section-eyebrow,
.shirt-sizes-card h2 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 52px;
  padding-right: 52px;
  text-align: center;
}

.shirt-size-editor {
  width: 100%;
  overflow: hidden;
}

.shirt-size-editor__heading,
.shirt-size-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(54px, 88px) minmax(0, 1fr);
}

.shirt-size-control {
  width: 100%;
  grid-template-columns: minmax(34px, .72fr) minmax(40px, 1fr) minmax(34px, .72fr);
}

.shirt-size-control button,
.shirt-size-control output {
  min-width: 0;
}

.shirt-size-control output {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--off-white);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .shirt-size-control output {
  color: #171512;
}

.shirt-size-control button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

@media (max-width: 700px) {
  .shirt-sizes-card {
    width: min(100%, calc(100vw - 12px));
    padding-left: 8px;
    padding-right: 8px;
  }

  .shirt-sizes-card > .section-eyebrow,
  .shirt-sizes-card h2 {
    padding-left: 40px;
    padding-right: 40px;
  }

  .shirt-size-editor {
    padding-left: 5px;
    padding-right: 5px;
  }

  .shirt-size-editor__heading,
  .shirt-size-row {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 4px;
  }

  .shirt-size-control {
    grid-template-columns: 30px minmax(32px, 1fr) 30px;
  }

  .shirt-size-control output {
    font-size: 17px;
  }
}

/* VERSION 52 · ENTREGA DE POLERAS POR TALLA E INVENTARIO RESTANTE */
.shirt-delivery-block {
  min-width: 0;
  display: grid;
  gap: 0;
}

.shirt-delivery-block .shirt-toggle--player {
  border-radius: 14px 14px 0 0;
}

.registration-shirt-sizes {
  min-width: 0;
  padding: 11px 12px 10px;
  border: 1px solid rgba(201,166,107,.28);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(201,166,107,.045);
}

.registration-shirt-sizes[hidden] {
  display: none !important;
}

.registration-shirt-sizes__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
}

.registration-shirt-sizes__options {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 6px;
}

.registration-shirt-size {
  min-width: 0;
  min-height: 50px;
  display: grid;
  place-content: center;
  gap: 3px;
  padding: 6px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--off-white);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.registration-shirt-size:hover:not(:disabled) {
  border-color: rgba(201,166,107,.65);
  transform: translateY(-1px);
}

.registration-shirt-size.is-selected {
  border-color: var(--gold);
  color: #100d08;
  background: var(--gold-bright);
}

.registration-shirt-size:disabled {
  cursor: not-allowed;
  opacity: .34;
}

.registration-shirt-size strong {
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.registration-shirt-size small {
  font-size: 5.8px;
  font-weight: 900;
  letter-spacing: .06em;
}

.registration-shirt-sizes > small {
  display: block;
  margin-top: 8px;
  color: var(--muted-soft);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.35;
  text-align: center;
}

html[data-theme="light"] .registration-shirt-sizes {
  border-color: rgba(159,116,53,.25);
  background: rgba(159,116,53,.055);
}

html[data-theme="light"] .registration-shirt-size {
  color: #171512;
  background: #fff;
}

html[data-theme="light"] .registration-shirt-size.is-selected {
  color: #fff;
  background: #171512;
}

.stat-card--inventory strong {
  color: var(--gold-bright);
}

.shirt-inventory-card,
.shirt-assignment-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(201,166,107,.38);
  border-radius: 28px;
  background: #070707;
  box-shadow: 0 38px 120px rgba(0,0,0,.72);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.16,1,.3,1);
}

.shirt-assignment-card {
  width: min(560px, calc(100vw - 32px));
}

.shirt-inventory-modal.is-visible .shirt-inventory-card,
.shirt-assignment-modal.is-visible .shirt-assignment-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.shirt-inventory-card > .section-eyebrow,
.shirt-inventory-card h2,
.shirt-assignment-card > .section-eyebrow,
.shirt-assignment-card h2 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 50px;
  text-align: center;
}

.shirt-inventory-card h2,
.shirt-assignment-card h2 {
  margin-top: 10px;
  margin-bottom: 18px;
  font-size: clamp(32px, 5.5vw, 52px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}

.shirt-inventory-editor {
  margin-top: 8px;
}

.shirt-inventory-cell {
  min-width: 0;
  min-height: 66px;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  text-align: center;
}

.shirt-inventory-cell strong {
  color: var(--gold-bright);
  font-size: 25px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.shirt-inventory-cell span,
.shirt-inventory-cell small {
  color: var(--muted-soft);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .09em;
}

.shirt-inventory-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.shirt-inventory-summary-grid .shirt-size-summary {
  min-width: 0;
  min-height: 88px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  margin: 0;
  text-align: center;
}

.shirt-sizes-card__actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.shirt-assignment-card__player {
  display: block;
  margin: 0 auto 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--off-white);
  background: rgba(255,255,255,.02);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.shirt-assignment-options {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.shirt-assignment-options button {
  min-width: 0;
  min-height: 76px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid rgba(201,166,107,.34);
  border-radius: 14px;
  color: var(--off-white);
  background: rgba(201,166,107,.045);
  cursor: pointer;
}

.shirt-assignment-options button:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(201,166,107,.12);
}

.shirt-assignment-options button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .3;
}

.shirt-assignment-options strong {
  color: var(--gold-bright);
  font-size: 25px;
  font-style: italic;
  font-weight: 900;
}

.shirt-assignment-options span {
  color: var(--muted-soft);
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .09em;
}

.shirt-assignment-card__hint {
  margin: 14px 0 0;
  color: var(--muted-soft);
  font-size: 8px;
  line-height: 1.55;
  text-align: center;
}

html[data-theme="light"] .shirt-inventory-card,
html[data-theme="light"] .shirt-assignment-card {
  background: #fff;
}

html[data-theme="light"] .shirt-inventory-cell,
html[data-theme="light"] .shirt-assignment-card__player,
html[data-theme="light"] .shirt-assignment-options button {
  color: #171512;
  background: #faf7f0;
}

@media (max-width: 700px) {
  .registration-shirt-sizes {
    padding: 8px 7px 7px;
    border-radius: 0 0 11px 11px;
  }

  .shirt-delivery-block .shirt-toggle--player {
    border-radius: 11px 11px 0 0;
  }

  .registration-shirt-sizes__options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .registration-shirt-size {
    min-height: 44px;
    padding: 5px 2px;
  }

  .registration-shirt-size strong {
    font-size: 12px;
  }

  .registration-shirt-size small {
    font-size: 5px;
  }

  .shirt-inventory-card,
  .shirt-assignment-card {
    width: min(100%, calc(100vw - 12px));
    max-height: calc(100dvh - 12px);
    padding: 25px 8px 12px;
    border-radius: 22px;
  }

  .shirt-inventory-card > .section-eyebrow,
  .shirt-inventory-card h2,
  .shirt-assignment-card > .section-eyebrow,
  .shirt-assignment-card h2 {
    padding-inline: 40px;
  }

  .shirt-inventory-card h2,
  .shirt-assignment-card h2 {
    font-size: clamp(27px, 8.7vw, 37px);
  }

  .shirt-inventory-editor {
    padding: 8px 5px;
  }

  .shirt-inventory-cell {
    min-height: 58px;
    padding: 5px 2px;
  }

  .shirt-inventory-cell strong {
    font-size: 20px;
  }

  .shirt-inventory-cell span,
  .shirt-inventory-cell small {
    font-size: 5px;
    letter-spacing: .04em;
  }

  .shirt-inventory-summary-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .shirt-inventory-summary-grid .shirt-size-summary {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    align-items: center;
    padding: 9px 12px;
  }

  .shirt-inventory-summary-grid .shirt-size-summary span {
    text-align: left;
  }

  .shirt-assignment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .shirt-assignment-options button {
    min-height: 64px;
  }
}


/* VERSION 53 · CAMBIOS EXCLUSIVOS PARA MÓVIL */
@media (max-width: 700px) {
  /* Ranking: masculino arriba, femenino abajo y cada categoría en una sola fila horizontal. */
  .category-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 13px 10px;
  }

  .category-switcher__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--line-strong);
  }

  .category-group {
    width: 100%;
    min-width: 0;
  }

  .category-group__label {
    display: block;
    margin-bottom: 7px;
    text-align: left;
    font-size: 8px;
  }

  .category-group__buttons {
    width: 100%;
    display: flex;
    grid-template-columns: none;
    gap: 5px;
    padding: 0;
    overflow: visible;
  }

  .category-group__buttons .category-button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 42px;
    padding-inline: 2px;
    font-size: clamp(8px, 2.45vw, 10px);
    letter-spacing: .02em;
  }

  /* Reglamento: se oculta solo el resumen inicial del kinesiólogo. */
  .rules-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .rules-highlights .highlight-card {
    width: 100%;
    min-width: 0;
    min-height: 104px;
  }

  /* Guardado móvil: dos acciones claras y sin botón de cierre flotante. */
  .ios-image-save-card {
    overflow-x: hidden;
  }

  .ios-image-save-card__actions {
    grid-template-columns: 1fr 1.15fr;
  }

  .ios-image-save-card__actions button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 8px;
  }

  .ios-image-save-card__help {
    max-width: 310px;
  }
}


/* VERSION 54 · TEXTO DE REGLAMENTO Y GUARDADO MÓVIL */
@media (max-width: 700px) {
  .rules-highlights .highlight-card__label {
    font-size: clamp(7.5px, 2.15vw, 9px) !important;
    letter-spacing: .075em;
    line-height: 1.3;
  }

  .ios-image-save-card__help {
    min-height: 42px;
  }

  .ios-image-save-card__preview img {
    -webkit-touch-callout: default;
    user-select: auto;
  }
}


/* VERSION 56 · RESUMEN DE REGLAMENTO UNIFICADO EN WEB Y MÓVIL */
.rules-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-highlights .highlight-card {
  width: 100%;
  min-width: 0;
}


/* VERSION 57 · HOME LANDING */
body.show-home-landing {
  background:
    radial-gradient(circle at 20% 0%, rgba(201,166,107,.14), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(201,166,107,.09), transparent 26%),
    #050505;
}

.home-view {
  min-height: calc(100vh - 120px);
}

.home-landing {
  position: relative;
  min-height: calc(100vh - 145px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.01)),
    linear-gradient(180deg, rgba(5,5,5,.16), rgba(5,5,5,.72));
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.home-landing__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.72) 38%, rgba(5,5,5,.32) 64%, rgba(5,5,5,.78) 100%),
    radial-gradient(circle at 72% 28%, rgba(201,166,107,.20), transparent 18%),
    radial-gradient(circle at 78% 70%, rgba(201,166,107,.12), transparent 24%);
  pointer-events: none;
}

.home-landing__backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,.48), rgba(0,0,0,0));
}

.home-landing__grid {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(30px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
}

.home-landing__copy {
  display: grid;
  gap: 20px;
  align-content: center;
  max-width: 620px;
}

.home-landing__eyebrow {
  margin: 0;
  color: #c9a66b;
  letter-spacing: .42em;
  font-size: .8rem;
  font-weight: 700;
}

.home-landing h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  line-height: .92;
  color: #f6f2ea;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.home-landing__subtitle {
  margin: 0;
  max-width: 54ch;
  color: rgba(246,242,234,.82);
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  line-height: 1.7;
}

.home-landing__event-card {
  display: inline-grid;
  gap: 8px;
  padding: 18px 22px;
  width: fit-content;
  min-width: 250px;
  border-radius: 24px;
  border: 1px solid rgba(201,166,107,.34);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.home-landing__event-card strong {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1;
  color: #f6f2ea;
}

.home-landing__event-card span:last-child,
.home-landing__event-label {
  color: rgba(246,242,234,.74);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-landing__actions,
.home-landing__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-landing__primary,
.home-landing__secondary,
.home-landing__quicklink {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-landing__primary {
  padding: 16px 28px;
  border-radius: 999px;
  background: #c9a66b;
  color: #080706;
  font-weight: 900;
  letter-spacing: .15em;
}

.home-landing__primary:hover,
.home-landing__secondary:hover,
.home-landing__quicklink:hover { transform: translateY(-2px); }

.home-landing__secondary {
  padding: 16px 24px;
  border-radius: 999px;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  color: #f6f2ea;
  font-weight: 800;
  letter-spacing: .14em;
}

.home-landing__quicklink {
  min-width: 150px;
  padding: 14px 18px;
  border-radius: 18px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(246,242,234,.92);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.home-landing__quicklink:hover,
.home-landing__secondary:hover {
  border-color: rgba(201,166,107,.34);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0,0,0,.16);
}

.home-landing__visual {
  display: grid;
  justify-items: center;
  align-items: center;
}

.home-landing__poster-wrap {
  position: relative;
  width: min(100%, 700px);
  display: grid;
  justify-items: center;
}

.home-landing__poster-glow {
  position: absolute;
  inset: auto 10% 6% 10%;
  height: 28%;
  background: radial-gradient(circle, rgba(201,166,107,.42), rgba(201,166,107,0));
  filter: blur(42px);
  opacity: .95;
}

.home-landing__poster {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.44));
  animation: homePosterFloat 6s ease-in-out infinite;
}

.home-landing__poster-badge {
  position: absolute;
  right: 14px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  min-width: 180px;
  border-radius: 20px;
  border: 1px solid rgba(201,166,107,.32);
  background: rgba(5,5,5,.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.home-landing__poster-badge span {
  color: rgba(246,242,234,.58);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-landing__poster-badge strong {
  color: #f6f2ea;
  font-size: 1rem;
  letter-spacing: .08em;
}

@keyframes homePosterFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

html[data-theme="light"] body.show-home-landing {
  background:
    radial-gradient(circle at 14% 0%, rgba(0,0,0,.06), transparent 26%),
    radial-gradient(circle at 85% 14%, rgba(0,0,0,.04), transparent 24%),
    #f7f4ed;
}

html[data-theme="light"] .home-landing {
  border-color: rgba(23,21,18,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.86)),
    #f7f4ed;
  box-shadow: 0 24px 60px rgba(23,21,18,.08);
}

html[data-theme="light"] .home-landing__backdrop {
  background:
    linear-gradient(90deg, rgba(247,244,237,.95) 0%, rgba(247,244,237,.88) 38%, rgba(247,244,237,.56) 64%, rgba(247,244,237,.92) 100%),
    radial-gradient(circle at 74% 24%, rgba(23,21,18,.09), transparent 18%),
    radial-gradient(circle at 80% 72%, rgba(23,21,18,.07), transparent 24%);
}

html[data-theme="light"] .home-landing__backdrop::before {
  background-image:
    linear-gradient(rgba(23,21,18,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,21,18,.05) 1px, transparent 1px);
}

html[data-theme="light"] .home-landing h1,
html[data-theme="light"] .home-landing__event-card strong,
html[data-theme="light"] .home-landing__secondary,
html[data-theme="light"] .home-landing__quicklink,
html[data-theme="light"] .home-landing__poster-badge strong {
  color: #171512;
}

html[data-theme="light"] .home-landing__subtitle,
html[data-theme="light"] .home-landing__event-label,
html[data-theme="light"] .home-landing__event-card span:last-child,
html[data-theme="light"] .home-landing__poster-badge span {
  color: rgba(23,21,18,.68);
}

html[data-theme="light"] .home-landing__event-card,
html[data-theme="light"] .home-landing__secondary,
html[data-theme="light"] .home-landing__quicklink,
html[data-theme="light"] .home-landing__poster-badge {
  border-color: rgba(23,21,18,.14);
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 30px rgba(23,21,18,.06);
}

html[data-theme="light"] .home-landing__primary {
  background: #171512;
  color: #f7f4ed;
}

@media (max-width: 1024px) {
  .home-landing__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-landing__copy {
    max-width: none;
    text-align: center;
    justify-items: center;
  }

  .home-landing__subtitle { max-width: 64ch; }
  .home-landing__actions, .home-landing__quicklinks { justify-content: center; }
}

@media (max-width: 700px) {
  .home-view { min-height: auto; }
  .home-landing {
    min-height: auto;
    border-radius: 28px;
  }
  .home-landing__grid {
    padding: 22px 16px 18px;
  }
  .home-landing h1 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }
  .home-landing__subtitle {
    font-size: .96rem;
    line-height: 1.6;
  }
  .home-landing__event-card {
    width: 100%;
    min-width: 0;
  }
  .home-landing__actions,
  .home-landing__quicklinks {
    width: 100%;
    flex-direction: column;
  }
  .home-landing__primary,
  .home-landing__secondary,
  .home-landing__quicklink {
    width: 100%;
  }
  .home-landing__poster-wrap { width: 100%; }
  .home-landing__poster-badge {
    position: static;
    margin-top: -6px;
    width: 100%;
    text-align: center;
  }
}


/* VERSION 58 · CINEMATIC HOME */
body.show-home-landing {
  background: #040404;
}

.home-view {
  min-height: calc(100vh - 120px);
}

.home-stage {
  position: relative;
  min-height: calc(100vh - 142px);
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
  background: #040404;
  box-shadow: 0 26px 84px rgba(0,0,0,.34);
}

.home-stage__backgrounds,
.home-stage__veil {
  position: absolute;
  inset: 0;
}

.home-stage__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 1.2s ease;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.home-stage__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,4,4,.92) 0%, rgba(4,4,4,.68) 36%, rgba(4,4,4,.28) 64%, rgba(4,4,4,.78) 100%);
}

.home-stage__bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-stage__bg--0 {
  background-image: url('assets/inicio-torneo-actual.png');
  background-size: cover;
}

.home-stage__bg--1,
.home-stage__bg--2,
.home-stage__bg--3,
.home-stage__bg--4 {
  background-image:
    radial-gradient(circle at 70% 40%, rgba(201,166,107,.16), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.home-stage__bg--1::before,
.home-stage__bg--2::before,
.home-stage__bg--3::before,
.home-stage__bg--4::before {
  content: '';
  position: absolute;
  inset: 8% 5% 8% 36%;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
  background: rgba(12,12,12,.55);
  filter: blur(0px);
}

.home-stage__bg--1::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    linear-gradient(180deg, #121212, #0a0a0a);
}

.home-stage__bg--2::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)),
    linear-gradient(180deg, #101010, #090909);
}

.home-stage__bg--3::before,
.home-stage__bg--4::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)),
    linear-gradient(180deg, #0f0f0f, #080808);
}

.home-stage__veil {
  background:
    radial-gradient(circle at 72% 16%, rgba(201,166,107,.18), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 0);
  pointer-events: none;
}

.home-stage__nav {
  position: absolute;
  top: 30px;
  left: 34px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.home-stage__nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 14px 0 0;
  margin: 0;
  color: rgba(255,255,255,.48);
  font-weight: 800;
  letter-spacing: .08em;
  position: relative;
  cursor: pointer;
}

.home-stage__nav-item + .home-stage__nav-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.28);
}

.home-stage__nav-item.is-active { color: #ffffff; }

.home-stage__layout {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 92px 34px 34px;
}

.home-stage__copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.home-stage__eyebrow {
  margin: 0;
  color: #f4efe6;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
}

.home-stage__brand-block[data-hidden='true'] {
  display: none;
}

.home-stage__brand {
  display: block;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.28));
}

.home-stage__title {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.home-stage__description {
  margin: 0;
  max-width: 50ch;
  color: rgba(244,239,230,.78);
  font-size: 1rem;
  line-height: 1.7;
}

.home-stage__event-card {
  display: inline-grid;
  gap: 8px;
  width: fit-content;
  min-width: 270px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid rgba(201,166,107,.34);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 28px rgba(0,0,0,.18);
}

.home-stage__event-label,
.home-stage__event-card span:last-child {
  color: rgba(244,239,230,.68);
  font-size: .79rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-stage__event-card strong {
  color: #ffffff;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1;
}

.home-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-stage__action {
  appearance: none;
  border: 1px solid rgba(201,166,107,.38);
  background: #c9a66b;
  color: #080706;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-stage__action:hover { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(0,0,0,.24); }

.home-stage__action--secondary {
  background: rgba(255,255,255,.04);
  color: #f4efe6;
  border-color: rgba(255,255,255,.16);
}

.home-stage__visuals {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
}

.home-stage__screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .55s ease, transform .55s ease;
  display: grid;
  justify-items: center;
  align-items: center;
  pointer-events: none;
}

.home-stage__screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.home-stage__poster {
  width: min(100%, 920px);
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 28px 46px rgba(0,0,0,.42));
}

.home-mock {
  width: min(100%, 900px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(9,9,9,.88);
  box-shadow: 0 32px 70px rgba(0,0,0,.34);
  overflow: hidden;
}

.home-mock__topbar {
  height: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.home-mock__hero {
  padding: 26px 28px 16px;
  display: grid;
  gap: 6px;
}

.home-mock__hero strong {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.home-mock__hero small,
.home-mock__kicker {
  color: rgba(244,239,230,.72);
}

.home-mock__kicker {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-mock__tabs,
.home-mock__date-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 28px 20px;
}

.home-mock__tabs span,
.home-mock__date-row span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.68);
  font-size: .82rem;
  font-weight: 800;
}

.home-mock__tabs span.is-active {
  background: #c9a66b;
  color: #080706;
  border-color: rgba(201,166,107,.42);
}

.home-mock__ranking-list {
  list-style: none;
  margin: 0;
  padding: 0 28px 28px;
  display: grid;
  gap: 12px;
}

.home-mock__ranking-list li {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.home-mock__ranking-list b,
.home-mock__ranking-list strong { color: #c9a66b; }
.home-mock__ranking-list span { color: #f6f2ea; font-weight: 700; }

.home-mock__schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 28px;
}

.home-mock__schedule-card,
.home-mock__highlight-row article,
.home-mock__rules-columns > div,
.home-mock__download-poster,
.home-mock__download-side {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.home-mock__schedule-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}
.home-mock__schedule-card small { color: #c9a66b; font-weight: 800; }
.home-mock__schedule-card strong { color: #ffffff; }
.home-mock__schedule-card span { color: rgba(244,239,230,.78); }

.home-mock__highlight-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 18px;
}
.home-mock__highlight-row article { padding: 22px; display: grid; gap: 10px; }
.home-mock__highlight-row b { color: #c9a66b; font-size: 2rem; line-height: 1; }
.home-mock__highlight-row span { color: #ffffff; font-weight: 800; }

.home-mock__rules-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 28px;
}
.home-mock__rules-columns > div { padding: 18px; display: grid; gap: 10px; }
.home-mock__rules-columns strong { color: #ffffff; }
.home-mock__rules-columns p { margin: 0; color: rgba(244,239,230,.76); line-height: 1.6; }

.home-mock__download-preview {
  display: grid;
  grid-template-columns: minmax(0,1fr) 220px;
  gap: 18px;
  padding: 0 28px 28px;
}
.home-mock__download-poster { padding: 20px; display: grid; gap: 18px; }
.home-mock__download-meta { display: flex; justify-content: space-between; gap: 14px; color: #c9a66b; font-size: .82rem; font-weight: 800; }
.home-mock__download-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.home-mock__download-teams > div:not(.vs) { padding: 18px 16px; border-radius: 18px; border: 1px solid rgba(201,166,107,.28); background: rgba(201,166,107,.08); text-align: center; display: grid; gap: 8px; }
.home-mock__download-teams b,.home-mock__download-teams span { color: #ffffff; }
.home-mock__download-teams .vs { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #c9a66b; font-weight: 900; }
.home-mock__download-poster > small { color: rgba(244,239,230,.62); text-align: center; }
.home-mock__download-side { padding: 18px; display: grid; align-content: start; gap: 12px; }
.home-mock__download-side span { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.66); font-weight: 800; text-align: center; }
.home-mock__download-side span.is-active { background: #c9a66b; color: #080706; border-color: rgba(201,166,107,.32); }
.home-mock__download-side button { padding: 14px 16px; margin-top: 8px; border-radius: 999px; border: 0; background: #ffffff; color: #080706; font-weight: 900; }

.home-stage__cycler {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-stage__cycler-hex {
  position: relative;
  width: 78px;
  height: 78px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border: 2px solid rgba(255,255,255,.66);
  display: grid;
  place-items: center;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  background: rgba(255,255,255,.02);
}

.home-stage__cycler-hex > span {
  display: block;
  width: 16px;
  height: 16px;
  border-top: 2px solid rgba(255,255,255,.72);
  border-right: 2px solid rgba(255,255,255,.72);
  transform: rotate(45deg) translate(-2px, 2px);
}

.home-stage__cycler:hover .home-stage__cycler-hex {
  transform: translateX(2px);
  border-color: #ffffff;
  background: rgba(255,255,255,.05);
}

.directions-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
}
.directions-modal[hidden] { display: none !important; }
.directions-modal__card {
  position: relative;
  z-index: 2;
  width: min(92vw, 640px);
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,10,.96);
  box-shadow: 0 36px 90px rgba(0,0,0,.46);
}
.directions-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.68);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.directions-modal__card h2 { margin: 6px 0 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.directions-modal__card p { margin: 0 0 22px; color: rgba(244,239,230,.74); line-height: 1.7; }
.directions-modal__apps { display: grid; gap: 14px; }
.directions-app {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.directions-app:hover { transform: translateY(-2px); border-color: rgba(201,166,107,.32); background: rgba(255,255,255,.05); }
.directions-app__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #080706;
  flex: 0 0 auto;
}
.directions-app__icon--waze { background: #8ee6ff; }
.directions-app__icon--apple { background: #f1f1f1; }
.directions-app__icon--google { background: linear-gradient(135deg, #4a8cff, #34a853 65%, #fbbc05); }
.directions-app__text { display: grid; gap: 4px; }
.directions-app__text strong { color: #ffffff; }
.directions-app__text small { color: rgba(244,239,230,.64); }

html[data-theme="light"] .home-stage {
  border-color: rgba(23,21,18,.14);
  background: #f7f4ed;
  box-shadow: 0 22px 52px rgba(23,21,18,.08);
}
html[data-theme="light"] .home-stage__bg::after {
  background: linear-gradient(90deg, rgba(247,244,237,.92) 0%, rgba(247,244,237,.78) 36%, rgba(247,244,237,.38) 64%, rgba(247,244,237,.84) 100%);
}
html[data-theme="light"] .home-stage__nav-item { color: rgba(23,21,18,.46); }
html[data-theme="light"] .home-stage__nav-item + .home-stage__nav-item::before { background: rgba(23,21,18,.28); }
html[data-theme="light"] .home-stage__nav-item.is-active,
html[data-theme="light"] .home-stage__title,
html[data-theme="light"] .home-stage__event-card strong,
html[data-theme="light"] .directions-modal__card h2,
html[data-theme="light"] .directions-app__text strong { color: #171512; }
html[data-theme="light"] .home-stage__eyebrow,
html[data-theme="light"] .home-stage__description,
html[data-theme="light"] .home-stage__event-label,
html[data-theme="light"] .home-stage__event-card span:last-child,
html[data-theme="light"] .directions-modal__card p,
html[data-theme="light"] .directions-app__text small { color: rgba(23,21,18,.7); }
html[data-theme="light"] .home-stage__event-card,
html[data-theme="light"] .home-stage__action--secondary,
html[data-theme="light"] .directions-modal__card,
html[data-theme="light"] .directions-app,
html[data-theme="light"] .home-mock {
  border-color: rgba(23,21,18,.12);
  background: rgba(255,255,255,.88);
}
html[data-theme="light"] .home-mock__topbar { background: rgba(23,21,18,.05); border-bottom-color: rgba(23,21,18,.08); }
html[data-theme="light"] .home-mock__hero strong,
html[data-theme="light"] .home-mock__schedule-card strong,
html[data-theme="light"] .home-mock__highlight-row span,
html[data-theme="light"] .home-mock__rules-columns strong,
html[data-theme="light"] .home-mock__download-teams b,
html[data-theme="light"] .home-mock__download-teams span,
html[data-theme="light"] .home-mock__ranking-list span { color: #171512; }
html[data-theme="light"] .home-mock__kicker,
html[data-theme="light"] .home-mock__hero small,
html[data-theme="light"] .home-mock__schedule-card span,
html[data-theme="light"] .home-mock__rules-columns p,
html[data-theme="light"] .home-mock__download-poster > small,
html[data-theme="light"] .home-mock__date-row span,
html[data-theme="light"] .home-mock__tabs span { color: rgba(23,21,18,.68); }
html[data-theme="light"] .home-mock__ranking-list li,
html[data-theme="light"] .home-mock__schedule-card,
html[data-theme="light"] .home-mock__highlight-row article,
html[data-theme="light"] .home-mock__rules-columns > div,
html[data-theme="light"] .home-mock__download-poster,
html[data-theme="light"] .home-mock__download-side,
html[data-theme="light"] .home-mock__download-teams > div:not(.vs) { border-color: rgba(23,21,18,.1); background: rgba(23,21,18,.03); }
html[data-theme="light"] .home-mock__download-teams .vs { background: rgba(23,21,18,.06); }
html[data-theme="light"] .home-stage__action--secondary { color: #171512; }
html[data-theme="light"] .home-stage__cycler-hex { border-color: rgba(23,21,18,.58); background: rgba(23,21,18,.02); }
html[data-theme="light"] .home-stage__cycler-hex > span { border-color: rgba(23,21,18,.78); }
html[data-theme="light"] .directions-modal__close { color: rgba(23,21,18,.68); }

@media (max-width: 1100px) {
  .home-stage__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-stage__visuals { min-height: 460px; }
  .home-stage__copy { max-width: 640px; }
}

@media (max-width: 700px) {
  .home-stage {
    min-height: auto;
    border-radius: 28px;
  }
  .home-stage__nav {
    top: 18px;
    left: 16px;
    right: 16px;
    gap: 10px;
  }
  .home-stage__nav-item { font-size: .8rem; padding-right: 8px; }
  .home-stage__layout {
    padding: 78px 16px 92px;
  }
  .home-stage__brand { width: min(100%, 300px); }
  .home-stage__title { font-size: clamp(2.7rem, 14vw, 4rem); }
  .home-stage__description { font-size: .95rem; }
  .home-stage__event-card { width: 100%; min-width: 0; }
  .home-stage__actions { flex-direction: column; }
  .home-stage__action { width: 100%; }
  .home-stage__visuals { min-height: 300px; }
  .home-stage__poster { width: 100%; max-height: none; }
  .home-mock__schedule-grid,
  .home-mock__highlight-row,
  .home-mock__rules-columns,
  .home-mock__download-preview {
    grid-template-columns: 1fr;
  }
  .home-mock__download-teams { grid-template-columns: 1fr; }
  .home-mock__download-teams .vs { justify-self: center; }
  .home-stage__cycler { right: 12px; bottom: 12px; width: 78px; height: 78px; }
  .home-stage__cycler-hex { width: 62px; height: 62px; }
  .home-stage__bg--1::before,
  .home-stage__bg--2::before,
  .home-stage__bg--3::before,
  .home-stage__bg--4::before { inset: 46% 6% 6% 6%; }
  .directions-modal__card { width: min(94vw, 420px); padding: 24px 18px; }
}


/* VERSION 59 · FULL BACKGROUND CINEMATIC HOME */
.home-stage {
  position: relative;
  min-height: calc(100vh - 142px);
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
  background: #050505;
  box-shadow: 0 32px 86px rgba(0,0,0,.38);
}

.home-stage__backgrounds,
.home-stage__bg,
.home-stage__veil {
  position: absolute;
  inset: 0;
}

.home-stage__bg {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform 1.5s cubic-bezier(.22,.61,.36,1), filter 1.2s ease;
  filter: saturate(1.04) blur(0px);
}
.home-stage__bg.is-active {
  opacity: 1;
  transform: scale(1);
}
.home-stage__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,4,4,.32) 0%, rgba(4,4,4,.52) 15%, rgba(4,4,4,.38) 40%, rgba(4,4,4,.64) 100%), linear-gradient(90deg, rgba(4,4,4,.55) 0%, rgba(4,4,4,.22) 50%, rgba(4,4,4,.55) 100%);
}

.home-stage__bg-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
}

.home-stage__bg-frame {
  position: absolute;
  inset: 9% 10%;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 60px rgba(0,0,0,.32);
  overflow: hidden;
}
.home-stage__bg--1 .home-stage__bg-frame,
.home-stage__bg--2 .home-stage__bg-frame,
.home-stage__bg--3 .home-stage__bg-frame,
.home-stage__bg--4 .home-stage__bg-frame {
  transform: perspective(1600px) rotateX(8deg) rotateY(-12deg) translateX(10%);
}

.bg-ranking__header,
.bg-schedule__top,
.bg-rules__top,
.bg-download__top {
  padding: 30px 34px 14px;
  display: grid;
  gap: 6px;
}
.bg-ranking__header span,
.bg-schedule__top span,
.bg-rules__top span,
.bg-download__top span {
  color: rgba(246,242,234,.72);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bg-ranking__header strong,
.bg-schedule__top strong,
.bg-rules__top strong,
.bg-download__top strong {
  color: #ffffff;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: .96;
  letter-spacing: -.04em;
}
.bg-schedule__top small { color: rgba(246,242,234,.72); }
.bg-ranking__tabs,
.bg-schedule__days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 34px 18px;
}
.bg-ranking__tabs span,
.bg-schedule__days span,
.bg-download__actions span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(246,242,234,.7);
  font-size: .82rem;
  font-weight: 800;
}
.bg-ranking__tabs span.is-active,
.bg-schedule__days span.is-active,
.bg-download__actions span.is-active { background: #c9a66b; color: #080706; border-color: rgba(201,166,107,.32); }
.bg-ranking__list {
  display: grid;
  gap: 14px;
  padding: 0 34px 34px;
}
.bg-ranking__list article {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.bg-ranking__list b,
.bg-ranking__list strong,
.bg-schedule__grid article small,
.bg-rules__highlights b,
.bg-download__meta,
.bg-download__teams .vs { color: #c9a66b; }
.bg-ranking__list span,
.bg-schedule__grid article strong,
.bg-rules__highlights span,
.bg-rules__cards strong,
.bg-download__teams b,
.bg-download__teams span { color: #ffffff; }

.bg-schedule__grid,
.bg-rules__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 34px 34px;
}
.bg-schedule__grid article,
.bg-rules__highlights article,
.bg-rules__cards article,
.bg-download__poster {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.bg-schedule__grid article { padding: 18px 20px; display: grid; gap: 8px; }
.bg-schedule__grid article span,
.bg-rules__cards p,
.bg-download__poster small { color: rgba(246,242,234,.74); }

.bg-rules__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 34px 18px;
}
.bg-rules__highlights article { padding: 24px; display: grid; gap: 10px; }
.bg-rules__highlights b { font-size: 2.2rem; line-height: 1; }
.bg-rules__cards article { padding: 20px; display: grid; gap: 10px; }
.bg-rules__cards p { margin: 0; line-height: 1.6; }

.bg-download__poster { width: min(760px, calc(100% - 68px)); margin: 0 auto 34px; padding: 22px; display: grid; gap: 18px; }
.bg-download__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; font-weight: 800; }
.bg-download__teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.bg-download__teams > div:not(.vs) { padding: 18px 16px; border-radius: 18px; border: 1px solid rgba(201,166,107,.28); background: rgba(201,166,107,.09); text-align: center; display: grid; gap: 8px; }
.bg-download__teams .vs { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 900; }
.bg-download__actions { display: flex; justify-content: center; gap: 10px; }
.bg-download__poster small { text-align: center; }

.home-stage__veil {
  background: radial-gradient(circle at center, rgba(0,0,0,.04) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.62) 100%);
  pointer-events: none;
}
.home-stage__veil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 18%, transparent 82%, rgba(255,255,255,.04) 100%);
  mix-blend-mode: soft-light;
}

.home-stage__nav {
  position: absolute;
  top: 30px;
  left: 34px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.home-stage__nav-item {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.5);
  font-weight: 800;
  letter-spacing: .08em;
  padding: 0 14px 0 0;
  position: relative;
  cursor: pointer;
  transition: color .22s ease;
}
.home-stage__nav-item + .home-stage__nav-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.28);
}
.home-stage__nav-item.is-active { color: #ffffff; }

.home-stage__center {
  position: relative;
  z-index: 5;
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 120px 24px 104px;
}
.home-stage__content-panel {
  width: min(860px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 38px 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(8,8,8,.58), rgba(8,8,8,.42));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  animation: homePanelReveal .7s cubic-bezier(.22,.61,.36,1);
}
@keyframes homePanelReveal {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.home-stage__eyebrow {
  margin: 0;
  color: rgba(246,242,234,.9);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.home-stage__brand-block[data-hidden='true'] { display: none; }
.home-stage__brand {
  display: block;
  width: min(100%, 430px);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.28));
}
.home-stage__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.home-stage__description {
  margin: 0;
  max-width: 56ch;
  color: rgba(246,242,234,.84);
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  line-height: 1.8;
}
.home-stage__event-card {
  display: inline-grid;
  gap: 8px;
  padding: 18px 24px;
  min-width: 290px;
  border-radius: 24px;
  border: 1px solid rgba(201,166,107,.34);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.home-stage__event-label,
.home-stage__event-card span:last-child { color: rgba(246,242,234,.68); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.home-stage__event-card strong { color: #ffffff; font-size: clamp(1.36rem, 2.6vw, 2.1rem); line-height: 1; }
.home-stage__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.home-stage__action {
  appearance: none;
  border: 1px solid rgba(201,166,107,.38);
  padding: 15px 24px;
  border-radius: 999px;
  background: #c9a66b;
  color: #080706;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.home-stage__action:hover { transform: translateY(-2px); box-shadow: 0 18px 26px rgba(0,0,0,.24); }
.home-stage__action--secondary { background: rgba(255,255,255,.05); color: #ffffff; border-color: rgba(255,255,255,.18); }

.home-stage__cycler {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 8;
  width: 94px;
  height: 94px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.home-stage__cycler-hex {
  position: relative;
  width: 78px;
  height: 78px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border: 2px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.02);
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.home-stage__cycler-hex > span { width: 16px; height: 16px; border-top: 2px solid rgba(255,255,255,.78); border-right: 2px solid rgba(255,255,255,.78); transform: rotate(45deg) translate(-2px, 2px); }
.home-stage__cycler:hover .home-stage__cycler-hex { transform: translateX(2px) scale(1.02); border-color: #ffffff; background: rgba(255,255,255,.05); box-shadow: 0 16px 26px rgba(0,0,0,.24); }

html[data-theme="light"] .home-stage {
  border-color: rgba(23,21,18,.14);
  background: #f7f4ed;
  box-shadow: 0 24px 64px rgba(23,21,18,.08);
}
html[data-theme="light"] .home-stage__bg::after {
  background: linear-gradient(180deg, rgba(247,244,237,.34) 0%, rgba(247,244,237,.5) 15%, rgba(247,244,237,.36) 40%, rgba(247,244,237,.62) 100%), linear-gradient(90deg, rgba(247,244,237,.52) 0%, rgba(247,244,237,.18) 50%, rgba(247,244,237,.52) 100%);
}
html[data-theme="light"] .home-stage__nav-item { color: rgba(23,21,18,.48); }
html[data-theme="light"] .home-stage__nav-item + .home-stage__nav-item::before { background: rgba(23,21,18,.28); }
html[data-theme="light"] .home-stage__nav-item.is-active,
html[data-theme="light"] .home-stage__eyebrow,
html[data-theme="light"] .home-stage__title,
html[data-theme="light"] .home-stage__event-card strong,
html[data-theme="light"] .bg-ranking__header strong,
html[data-theme="light"] .bg-schedule__top strong,
html[data-theme="light"] .bg-rules__top strong,
html[data-theme="light"] .bg-download__top strong,
html[data-theme="light"] .bg-ranking__list span,
html[data-theme="light"] .bg-schedule__grid article strong,
html[data-theme="light"] .bg-rules__highlights span,
html[data-theme="light"] .bg-rules__cards strong,
html[data-theme="light"] .bg-download__teams b,
html[data-theme="light"] .bg-download__teams span,
html[data-theme="light"] .directions-modal__card h2,
html[data-theme="light"] .directions-app__text strong { color: #171512; }
html[data-theme="light"] .home-stage__description,
html[data-theme="light"] .home-stage__event-label,
html[data-theme="light"] .home-stage__event-card span:last-child,
html[data-theme="light"] .bg-ranking__header span,
html[data-theme="light"] .bg-schedule__top span,
html[data-theme="light"] .bg-schedule__top small,
html[data-theme="light"] .bg-rules__top span,
html[data-theme="light"] .bg-schedule__grid article span,
html[data-theme="light"] .bg-rules__cards p,
html[data-theme="light"] .bg-download__poster small,
html[data-theme="light"] .directions-modal__card p,
html[data-theme="light"] .directions-app__text small { color: rgba(23,21,18,.72); }
html[data-theme="light"] .home-stage__content-panel,
html[data-theme="light"] .home-stage__event-card,
html[data-theme="light"] .home-stage__bg-frame,
html[data-theme="light"] .bg-ranking__list article,
html[data-theme="light"] .bg-schedule__grid article,
html[data-theme="light"] .bg-rules__highlights article,
html[data-theme="light"] .bg-rules__cards article,
html[data-theme="light"] .bg-download__poster,
html[data-theme="light"] .directions-modal__card,
html[data-theme="light"] .directions-app {
  border-color: rgba(23,21,18,.12);
  background: rgba(255,255,255,.78);
}
html[data-theme="light"] .home-stage__action--secondary { color: #171512; border-color: rgba(23,21,18,.14); background: rgba(255,255,255,.74); }
html[data-theme="light"] .bg-ranking__list b,
html[data-theme="light"] .bg-ranking__list strong,
html[data-theme="light"] .bg-schedule__grid article small,
html[data-theme="light"] .bg-rules__highlights b,
html[data-theme="light"] .bg-download__meta,
html[data-theme="light"] .bg-download__teams .vs { color: #8b6b33; }
html[data-theme="light"] .bg-ranking__tabs span,
html[data-theme="light"] .bg-schedule__days span,
html[data-theme="light"] .bg-download__actions span { color: rgba(23,21,18,.68); border-color: rgba(23,21,18,.14); }
html[data-theme="light"] .bg-download__teams > div:not(.vs) { border-color: rgba(23,21,18,.12); background: rgba(23,21,18,.03); }
html[data-theme="light"] .bg-download__teams .vs { background: rgba(23,21,18,.06); }
html[data-theme="light"] .home-stage__cycler-hex { border-color: rgba(23,21,18,.68); background: rgba(23,21,18,.03); }
html[data-theme="light"] .home-stage__cycler-hex > span { border-color: rgba(23,21,18,.78); }
html[data-theme="light"] .directions-modal__close { color: rgba(23,21,18,.68); }

@media (max-width: 1100px) {
  .home-stage__bg-frame { inset: 18% 6% 12%; }
  .home-stage__bg--1 .home-stage__bg-frame,
  .home-stage__bg--2 .home-stage__bg-frame,
  .home-stage__bg--3 .home-stage__bg-frame,
  .home-stage__bg--4 .home-stage__bg-frame { transform: perspective(1400px) rotateX(8deg) rotateY(-8deg) translateX(2%); }
}
@media (max-width: 700px) {
  .home-stage { min-height: auto; border-radius: 28px; }
  .home-stage__nav { top: 18px; left: 16px; right: 16px; gap: 10px; }
  .home-stage__nav-item { font-size: .78rem; padding-right: 8px; }
  .home-stage__center { padding: 82px 16px 96px; }
  .home-stage__content-panel { padding: 26px 18px; border-radius: 24px; gap: 16px; }
  .home-stage__brand { width: min(100%, 280px); }
  .home-stage__title { font-size: clamp(2.5rem, 13vw, 4rem); }
  .home-stage__description { font-size: .95rem; line-height: 1.7; }
  .home-stage__event-card { min-width: 0; width: 100%; }
  .home-stage__actions { width: 100%; flex-direction: column; }
  .home-stage__action { width: 100%; }
  .home-stage__bg-frame { inset: 44% 5% 8%; border-radius: 24px; }
  .home-stage__bg--1 .home-stage__bg-frame,
  .home-stage__bg--2 .home-stage__bg-frame,
  .home-stage__bg--3 .home-stage__bg-frame,
  .home-stage__bg--4 .home-stage__bg-frame { transform: none; }
  .bg-ranking__header, .bg-schedule__top, .bg-rules__top, .bg-download__top { padding: 16px 16px 10px; }
  .bg-ranking__tabs, .bg-schedule__days, .bg-ranking__list, .bg-schedule__grid, .bg-rules__highlights, .bg-rules__cards { padding-left: 16px; padding-right: 16px; }
  .bg-ranking__list, .bg-schedule__grid, .bg-rules__cards { padding-bottom: 16px; }
  .bg-ranking__header strong, .bg-schedule__top strong, .bg-rules__top strong, .bg-download__top strong { font-size: 1.3rem; }
  .bg-ranking__list article { grid-template-columns: 32px minmax(0,1fr) auto; padding: 12px 14px; gap: 10px; }
  .bg-schedule__grid, .bg-rules__cards, .bg-rules__highlights { grid-template-columns: 1fr; gap: 10px; }
  .bg-download__poster { width: calc(100% - 32px); margin-bottom: 16px; padding: 14px; }
  .bg-download__meta { flex-direction: column; }
  .bg-download__teams { grid-template-columns: 1fr; }
  .bg-download__teams .vs { justify-self: center; width: 44px; height: 44px; }
  .home-stage__cycler { right: 12px; bottom: 12px; width: 76px; height: 76px; }
  .home-stage__cycler-hex { width: 62px; height: 62px; }
  .directions-modal__card { width: min(94vw, 420px); padding: 24px 18px; }
}


/* VERSION 60 · PORTADA SIMPLE CON FONDO COMPLETO */
.home-stage--simple {
  position: relative;
  min-height: calc(100vh - 142px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.08);
  background: #050505;
  isolation: isolate;
  box-shadow: 0 30px 86px rgba(0,0,0,.38);
}

.home-stage__simple-bg,
.home-stage__simple-overlay {
  position: absolute;
  inset: 0;
}

.home-stage__simple-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  animation: homeSimpleZoom 16s ease-in-out infinite alternate;
}

@keyframes homeSimpleZoom {
  from { transform: scale(1.025); }
  to { transform: scale(1.075); }
}

.home-stage__simple-overlay {
  background:
    radial-gradient(circle at center, rgba(0,0,0,.08) 0%, rgba(0,0,0,.24) 42%, rgba(0,0,0,.66) 100%),
    linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.18) 36%, rgba(0,0,0,.55));
}

.home-stage__simple-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 72px 24px;
  text-align: center;
  animation: homeSimpleReveal .9s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes homeSimpleReveal {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-stage__simple-eyebrow {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
}

.home-stage__simple-logo {
  display: block;
  width: min(76vw, 520px);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.48));
}

.home-stage__simple-edition {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.55);
}

.home-stage__simple-edition span {
  color: #c9a66b;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.home-stage__simple-edition strong {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.home-stage__simple-edition small {
  color: rgba(255,255,255,.84);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.home-stage__simple-action {
  appearance: none;
  margin-top: 4px;
  padding: 15px 28px;
  border: 1px solid rgba(201,166,107,.5);
  border-radius: 999px;
  background: #c9a66b;
  color: #080706;
  font-weight: 900;
  letter-spacing: .14em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.home-stage__simple-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(0,0,0,.36);
  background: #ddbb7d;
}

html[data-theme="light"] .home-stage--simple {
  border-color: rgba(23,21,18,.14);
}

html[data-theme="light"] .home-stage__simple-overlay {
  background:
    radial-gradient(circle at center, rgba(255,255,255,.05) 0%, rgba(247,244,237,.16) 42%, rgba(247,244,237,.46) 100%),
    linear-gradient(180deg, rgba(247,244,237,.12), rgba(247,244,237,.04) 36%, rgba(247,244,237,.38));
}

@media (max-width: 700px) {
  .home-stage--simple {
    min-height: calc(100dvh - 120px);
    border-radius: 26px;
  }

  .home-stage__simple-content {
    gap: 18px;
    padding: 54px 18px;
  }

  .home-stage__simple-logo {
    width: min(88vw, 360px);
  }

  .home-stage__simple-edition small {
    font-size: .76rem;
    letter-spacing: .12em;
  }

  .home-stage__simple-action {
    width: min(100%, 290px);
  }
}


/* VERSION 61 · HOME HERO REFINED */
#homeView.home-view {
  margin-top: -1px;
}

.home-stage--simple {
  min-height: calc(100vh - 110px);
  border-radius: 0 0 34px 34px;
  border: 0;
  box-shadow: none;
  background: #050505;
}

.home-stage__simple-bg {
  object-position: center center;
  transform: scale(1.01);
}

@keyframes homeSimpleZoom {
  from { transform: scale(1.01); }
  to { transform: scale(1.055); }
}

.home-stage__simple-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.62) 28%, rgba(0,0,0,.28) 56%, rgba(0,0,0,.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.12) 48%, rgba(0,0,0,.36) 100%);
}

.home-stage__simple-content {
  width: min(100%, 620px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 76px clamp(24px, 6vw, 88px) 84px;
  text-align: left;
}

.home-stage__simple-eyebrow {
  font-size: clamp(1rem, 1.7vw, 1.32rem);
  letter-spacing: .22em;
}

.home-stage__simple-logo {
  width: min(74vw, 520px);
  margin-left: -4px;
}

.home-stage__simple-edition {
  justify-items: start;
  gap: 10px;
  align-items: start;
}

.home-stage__simple-edition span {
  font-size: .78rem;
}

.home-stage__simple-edition strong {
  font-size: clamp(1.85rem, 4.1vw, 3.2rem);
}

.home-stage__simple-edition small {
  font-size: .9rem;
  letter-spacing: .16em;
}

.home-stage__simple-action {
  margin-top: 6px;
}

html[data-theme="light"] .home-stage--simple {
  background: #f7f4ed;
}

html[data-theme="light"] .home-stage__simple-overlay {
  background:
    linear-gradient(90deg, rgba(247,244,237,.9) 0%, rgba(247,244,237,.78) 30%, rgba(247,244,237,.42) 58%, rgba(247,244,237,.18) 100%),
    linear-gradient(180deg, rgba(247,244,237,.12) 0%, rgba(247,244,237,.08) 48%, rgba(247,244,237,.28) 100%);
}

@media (max-width: 900px) {
  .home-stage__simple-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.36) 32%, rgba(0,0,0,.68) 100%),
      linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 54%, rgba(0,0,0,.24) 100%);
  }
  html[data-theme="light"] .home-stage__simple-overlay {
    background:
      linear-gradient(180deg, rgba(247,244,237,.1) 0%, rgba(247,244,237,.14) 32%, rgba(247,244,237,.44) 100%),
      linear-gradient(90deg, rgba(247,244,237,.82) 0%, rgba(247,244,237,.46) 54%, rgba(247,244,237,.24) 100%);
  }
}

@media (max-width: 700px) {
  #homeView.home-view {
    margin-top: -1px;
  }
  .home-stage--simple {
    min-height: calc(100dvh - 110px);
    border-radius: 0 0 24px 24px;
  }
  .home-stage__simple-bg {
    object-position: 58% center;
  }
  .home-stage__simple-content {
    width: 100%;
    padding: 46px 18px 60px;
    gap: 16px;
  }
  .home-stage__simple-logo {
    width: min(84vw, 330px);
    margin-left: -2px;
  }
  .home-stage__simple-edition strong {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }
  .home-stage__simple-edition small {
    font-size: .76rem;
    letter-spacing: .11em;
  }
  .home-stage__simple-action {
    padding-inline: 22px;
  }
}


/* VERSION 63 · FONDO COMPLETO E ICONOS DE MAPAS */
body.show-home-landing .site-header {
  border-bottom: 0 !important;
  box-shadow: none;
}

#homeView.home-view {
  min-height: 0;
  margin-top: 0;
}

.home-stage--simple {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: #111;
}

.home-stage__simple-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform: none !important;
  animation: none !important;
  background: #111;
}

.home-stage__simple-content {
  min-height: 100%;
}

.directions-app__icon {
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.directions-app__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.directions-app__icon--waze,
.directions-app__icon--apple,
.directions-app__icon--google {
  background: transparent !important;
}

@media (max-width: 900px) {
  .home-stage--simple {
    aspect-ratio: auto;
    min-height: calc(100dvh - 104px);
    background: #111;
  }

  .home-stage__simple-bg {
    object-fit: cover;
    object-position: 66% center;
  }
}

@media (max-width: 700px) {
  .home-stage--simple {
    min-height: calc(100dvh - 104px);
    border-radius: 0;
  }

  .home-stage__simple-bg {
    object-position: 68% center;
  }

  .directions-app__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
}


/* VERSION 64 · AJUSTE DE PORTADA Y CONTROL DE TEMA */
body.show-home-landing .theme-toggle {
  display: none !important;
}

body.show-home-landing .home-stage__simple-content {
  top: clamp(-96px, -6vw, -54px);
}

@media (max-width: 900px) {
  body.show-home-landing .home-stage__simple-content {
    top: -46px;
  }
}

@media (max-width: 700px) {
  body.show-home-landing .home-stage__simple-content {
    top: -32px;
  }
}


/* VERSION 65 · DIRECTIONS MODAL REFINEMENT */
.directions-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.directions-modal[hidden] {
  display: none !important;
}

.directions-modal__card {
  position: relative;
  z-index: 2;
  width: min(92vw, 640px);
  max-width: 640px;
  margin: auto;
  padding: 30px 28px;
  border-radius: 30px;
}

.directions-modal__card .section-eyebrow,
.directions-modal__card h2,
.directions-modal__card p {
  text-align: center;
}

.directions-modal__card .section-eyebrow {
  display: block;
}

.directions-modal__card p {
  max-width: 52ch;
  margin: 0 auto 22px;
}

.directions-app__text small {
  color: rgba(244,239,230,.72);
}

.directions-word {
  font-weight: 800;
}

.directions-word--waze {
  color: #7dd7f7;
}

.directions-word--apple {
  color: #ff4b4b;
}

.directions-word--google {
  color: #34a853;
}

html[data-theme="light"] .directions-app__text small {
  color: rgba(23,21,18,.7);
}

@media (max-width: 700px) {
  .directions-modal {
    padding: 16px;
  }

  .directions-modal__card {
    width: min(94vw, 420px);
    max-width: 420px;
    padding: 24px 18px;
  }
}


/* VERSION 66 · COMPACT HORIZONTAL DIRECTIONS MODAL */
.directions-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.directions-modal__card {
  width: min(90vw, 760px);
  max-width: 760px;
  padding: 24px 22px 22px;
  margin: auto;
  border-radius: 28px;
}

.directions-modal__card h2 {
  margin: 6px 0 8px;
}

.directions-modal__card p {
  max-width: 56ch;
  margin: 0 auto 18px;
}

.directions-modal__apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.directions-app {
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  padding: 18px 14px;
  border-radius: 20px;
}

.directions-app__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
}

.directions-app__text {
  justify-items: center;
  gap: 6px;
}

.directions-app__text strong {
  line-height: 1.2;
}

.directions-app__text small {
  line-height: 1.35;
}

@media (max-width: 700px) {
  .directions-modal {
    padding: 14px;
    overflow-y: auto;
  }

  .directions-modal__card {
    width: min(94vw, 420px);
    max-width: 420px;
    padding: 22px 16px 18px;
  }

  .directions-modal__apps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .directions-app {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 14px;
  }

  .directions-app__icon {
    margin: 0;
    width: 52px;
    height: 52px;
  }

  .directions-app__text {
    justify-items: start;
  }
}


/* VERSION 67 · MOBILE HOME CENTERING */
@media (max-width: 700px) {
  .home-stage__simple-bg {
    object-fit: cover;
    object-position: center center !important;
    transform: scale(1.05);
  }

  .home-stage__simple-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.44) 22%, rgba(0,0,0,.68) 56%, rgba(0,0,0,.84) 100%),
      radial-gradient(circle at center 52%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.36) 48%, rgba(0,0,0,.68) 100%),
      linear-gradient(90deg, rgba(0,0,0,.54) 0%, rgba(0,0,0,.28) 35%, rgba(0,0,0,.28) 65%, rgba(0,0,0,.54) 100%);
  }

  html[data-theme="light"] .home-stage__simple-overlay {
    background:
      linear-gradient(180deg, rgba(247,244,237,.12) 0%, rgba(247,244,237,.18) 22%, rgba(247,244,237,.38) 56%, rgba(247,244,237,.62) 100%),
      radial-gradient(circle at center 52%, rgba(247,244,237,.04) 0%, rgba(247,244,237,.22) 48%, rgba(247,244,237,.46) 100%),
      linear-gradient(90deg, rgba(247,244,237,.26) 0%, rgba(247,244,237,.10) 35%, rgba(247,244,237,.10) 65%, rgba(247,244,237,.26) 100%);
  }

  body.show-home-landing .home-stage__simple-content,
  .home-stage__simple-content {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 42px 22px 56px;
    align-items: center;
    justify-content: center;
    text-align: center;
    top: -8px !important;
    left: 0;
    right: 0;
  }

  .home-stage__simple-logo {
    margin-left: 0;
    width: min(84vw, 320px);
  }

  .home-stage__simple-edition {
    width: 100%;
    justify-items: center;
    align-items: center;
    text-align: center;
  }

  .home-stage__simple-action {
    margin-top: 8px;
    align-self: center;
  }
}


/* VERSION 68 · HOME ALWAYS DARK, NO BLUR, MOBILE BACKGROUND SHIFT */
body.show-home-landing {
  background: #050505 !important;
}

body.show-home-landing .home-stage--simple {
  background: #050505 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.show-home-landing .home-stage__simple-bg {
  filter: brightness(0.62) !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.02) !important;
}

body.show-home-landing .home-stage__simple-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.58) 32%, rgba(0,0,0,.34) 60%, rgba(0,0,0,.26) 100%),
    linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.22) 46%, rgba(0,0,0,.44) 100%) !important;
}

body.show-home-landing .home-stage__simple-content,
body.show-home-landing .home-stage__simple-eyebrow,
body.show-home-landing .home-stage__simple-edition strong,
body.show-home-landing .home-stage__simple-edition small,
body.show-home-landing .home-stage__simple-edition span {
  color: #ffffff !important;
}

body.show-home-landing .home-stage__simple-action {
  background: #c9a66b !important;
  color: #080706 !important;
  border-color: rgba(201,166,107,.45) !important;
}

body.show-home-landing .home-stage__simple-edition {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.12) !important;
}

body.show-home-landing .home-stage__simple-logo {
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.4));
}

body.show-home-landing .site-header {
  border-bottom-color: transparent !important;
}

body.show-home-landing .theme-toggle {
  display: none !important;
}

@media (max-width: 700px) {
  body.show-home-landing .home-stage__simple-bg {
    object-position: 38% center !important;
    filter: brightness(0.52) !important;
    transform: scale(1.04) !important;
  }

  body.show-home-landing .home-stage__simple-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.36) 18%, rgba(0,0,0,.58) 52%, rgba(0,0,0,.78) 100%),
      linear-gradient(90deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.24) 34%, rgba(0,0,0,.24) 66%, rgba(0,0,0,.50) 100%) !important;
  }

  body.show-home-landing .home-stage__simple-content {
    width: min(100%, 420px) !important;
    margin: 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 42px 22px 56px !important;
  }

  body.show-home-landing .home-stage__simple-logo {
    width: min(84vw, 320px) !important;
    margin-left: 0 !important;
  }

  body.show-home-landing .home-stage__simple-edition {
    width: 100% !important;
    justify-items: center !important;
    align-items: center !important;
    text-align: center !important;
  }
}


/* VERSION 69 · DARK HEADER ON HOME IN LIGHT THEME */
html[data-theme="light"] body.show-home-landing .site-header,
body.show-home-landing .site-header {
  background: rgba(2,2,2,.88) !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) !important;
}

html[data-theme="light"] body.show-home-landing .site-header__logo {
  filter: none !important;
}

html[data-theme="light"] body.show-home-landing .main-nav__link,
html[data-theme="light"] body.show-home-landing .header-actions .main-nav__link,
html[data-theme="light"] body.show-home-landing .header-logout {
  color: #77756f !important;
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="light"] body.show-home-landing .main-nav__link:hover,
html[data-theme="light"] body.show-home-landing .main-nav__link.is-active,
html[data-theme="light"] body.show-home-landing .header-actions .main-nav__link:hover,
html[data-theme="light"] body.show-home-landing .header-actions .main-nav__link.is-active {
  color: #f4efe6 !important;
}

@media (max-width: 700px) {
  html[data-theme="light"] body.show-home-landing .site-header,
  body.show-home-landing .site-header {
    background: rgba(2,2,2,.94) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] body.show-home-landing .site-header__logo {
    filter: none !important;
  }
}


/* VERSION 74 · REPROGRAMAR Y ELIMINAR PARTIDOS */
.schedule-admin-move,
.schedule-admin-delete-match {
  grid-column: 1 / -1;
  min-height: 82px !important;
}

.schedule-admin-move {
  border-color: rgba(201,166,107,.34) !important;
  background: rgba(201,166,107,.035) !important;
}

.schedule-admin-move strong {
  color: var(--gold-bright) !important;
}

.schedule-admin-move:hover {
  border-color: rgba(201,166,107,.72) !important;
  background: rgba(201,166,107,.09) !important;
}

.schedule-admin-delete-match {
  border-color: rgba(190,72,65,.48) !important;
  background: rgba(190,72,65,.045) !important;
}

.schedule-admin-delete-match strong {
  color: #f08d82 !important;
}

.schedule-admin-delete-match:hover {
  border-color: rgba(224,91,82,.82) !important;
  background: rgba(190,72,65,.12) !important;
}

.schedule-move-form {
  display: grid;
  gap: 15px;
}

.schedule-move-current {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(201,166,107,.25);
  border-radius: 17px;
  background: rgba(201,166,107,.05);
}

.schedule-move-current > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.schedule-move-current strong {
  color: var(--off-white);
  font-size: 13px;
  line-height: 1.35;
}

.schedule-move-current small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.schedule-move-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.schedule-move-fields label {
  display: grid;
  gap: 8px;
}

.schedule-move-fields label > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.schedule-move-fields select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--off-white);
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.schedule-match-delete-card > small {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.5;
  text-align: center;
}

@media (max-height: 820px) and (min-width: 961px) {
  .schedule-admin-move,
  .schedule-admin-delete-match {
    min-height: 68px !important;
  }
}

@media (max-width: 700px) {
  .schedule-move-fields {
    grid-template-columns: 1fr;
  }

  .schedule-admin-move,
  .schedule-admin-delete-match {
    min-height: 76px !important;
  }
}


/* VERSION 75 · FOTOGRAFÍAS */
.photos-page {
  width: min(1260px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 34px 0 56px;
}
.photos-hero {
  text-align: center;
  margin-bottom: 28px;
}
.photos-hero__lead {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--text-soft, rgba(255,255,255,.76));
}
.photos-search {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  background: rgba(10,10,10,.72);
  border: 1px solid rgba(212,175,117,.22);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .photos-search {
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.12);
}
.photos-search__heading h2 { margin: 4px 0 0; }
.photos-search__field {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,117,.24);
  background: rgba(0,0,0,.34);
}
html[data-theme="light"] .photos-search__field { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.14); }
.photos-search__icon { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; position: relative; opacity: .62; }
.photos-search__icon::after { content:''; position:absolute; width:8px; height:2px; background: currentColor; right:-7px; bottom:-4px; transform: rotate(45deg); border-radius: 999px; }
.photos-search__field input {
  background: transparent; border: 0; color: inherit; min-height: 54px; font: inherit; outline: none;
}
.photos-search__field button { background: transparent; border: 0; color: inherit; font-size: 1.7rem; cursor: pointer; }
.photos-search-results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.photos-search-result, .photos-search-results__empty {
  width: 100%; text-align: left; border-radius: 18px; padding: 14px 16px; border: 1px solid rgba(212,175,117,.18);
  background: rgba(255,255,255,.03); color: inherit;
}
.photos-search-result { cursor: pointer; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.photos-search-result:hover { transform: translateY(-2px); border-color: rgba(212,175,117,.46); background: rgba(212,175,117,.08); }
.photos-search-result strong { display: block; font-size: 1rem; letter-spacing: .08em; }
.photos-search-result small { display: block; margin-top: 4px; opacity: .74; }
.photos-player {
  display: grid; gap: 28px;
}
.photos-player-stage {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(0,0,0,.84), rgba(6,6,6,.94));
  border: 1px solid rgba(212,175,117,.18);
  transition: min-height .8s ease, padding .8s ease;
}
.photos-player-stage__bglogo {
  position: absolute; inset: 0; background: url('assets/logo-pro-padel-series-v92-white.png') center/52% no-repeat; opacity: .08; filter: grayscale(1);
}
.photos-player-stage__content {
  position: relative; z-index: 1;
  width: min(760px, 100%);
  padding: 54px 24px;
  transform: translateY(0);
  transition: transform .8s ease, padding .8s ease;
}
.photos-player-stage__eyebrow { display:block; font-size: .8rem; letter-spacing: .34em; color: #d4af75; margin-bottom: 14px; }
.photos-player-stage h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: .08em; }
.photos-player-stage p { margin: 14px auto 0; max-width: 640px; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.65; }
.photos-player-stage.is-gallery-ready { min-height: 180px; }
.photos-player-stage.is-gallery-ready .photos-player-stage__content { transform: translateY(-34px); padding-top: 30px; padding-bottom: 24px; }
.photos-gallery { animation: fadePhotoGallery .6s ease both; }
@keyframes fadePhotoGallery { from { opacity: 0; transform: translateY(18px);} to { opacity:1; transform: translateY(0);} }
.photos-gallery__header {
  display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom: 16px;
}
.photos-gallery__header h3 { margin: 6px 0 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.photos-gallery__meta { opacity:.78; text-align:right; }
.photos-grid {
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.photo-thumb {
  position:relative; overflow:hidden; border-radius: 0; padding:0; border:1px solid rgba(255,255,255,.08); background:#050505; cursor:pointer; aspect-ratio: 1.35/1;
}
.photo-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .35s ease, opacity .35s ease; }
.photo-thumb:hover img { transform: scale(1.04); opacity:.92; }
.photo-thumb__meta {
  position:absolute; left:0; right:0; bottom:0; padding:12px 12px 10px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.88)); display:grid; gap:3px; text-align:left;
}
.photo-thumb__meta strong { font-size:.74rem; letter-spacing:.18em; color:#ffffff; }
.photo-thumb__meta small { font-size:.7rem; color:rgba(255,255,255,.78); }
.photos-pagination {
  margin-top: 18px; display:flex; align-items:center; justify-content:flex-end; gap:16px;
}
.photos-pagination button {
  width:44px; height:44px; border-radius:999px; border:1px solid rgba(212,175,117,.32); background: rgba(255,255,255,.04); color:inherit; font-size:1.5rem; cursor:pointer;
}
.photos-pagination button:disabled { opacity:.38; cursor:not-allowed; }
.photo-viewer-modal {
  position: fixed; inset: 0; z-index: 200; display:grid; place-items:center; padding: 28px;
}
.photo-viewer-modal__dialog {
  position: relative; z-index: 1; width: min(92vw, 1080px); display:grid; gap:20px;
}
.photo-viewer-modal__close {
  position:absolute; top:-10px; right:-8px; width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.18); background:#0a0a0a; color:#fff; font-size:1.6rem; cursor:pointer; z-index:2;
}
.photo-viewer-frame {
  background:#050505; border: 1px solid rgba(255,255,255,.08); border-radius: 30px; padding: 26px 26px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.44);
}
.photo-viewer-frame__logo { display:block; width:min(320px, 48%); margin:0 auto 18px; }
.photo-viewer-frame__image-wrap {
  border: 2px solid rgba(0,0,0,.72); background:#000; border-radius: 24px; overflow:hidden; min-height: 420px; display:grid; place-items:center;
}
.photo-viewer-frame__image-wrap img { max-width:100%; max-height:72vh; object-fit:contain; display:block; }
.photo-viewer-modal__actions { display:flex; justify-content:flex-end; gap:14px; }
html[data-theme="light"] .photo-viewer-frame { background:#fff; }
html[data-theme="light"] .photo-viewer-frame__image-wrap { border-color:#111; }
@media (max-width: 980px) {
  .photos-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .photos-page { width: min(100vw - 28px, 100%); padding-top: 24px; }
  .photos-search { padding: 18px; border-radius: 24px; }
  .photos-player-stage { min-height: 300px; border-radius: 28px; }
  .photos-player-stage__bglogo { background-size: 76%; }
  .photos-player-stage__content { padding: 42px 18px; }
  .photos-player-stage.is-gallery-ready { min-height: 148px; }
  .photos-player-stage.is-gallery-ready .photos-player-stage__content { transform: translateY(-16px); }
  .photos-gallery__header { flex-direction: column; align-items: flex-start; }
  .photos-gallery__meta { text-align:left; }
  .photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-thumb { aspect-ratio: 1/1; }
  .photos-pagination { justify-content: center; }
  .photo-viewer-modal { padding: 18px; }
  .photo-viewer-modal__dialog { width: min(100vw - 24px, 100%); }
  .photo-viewer-frame { padding: 18px 18px 16px; border-radius: 24px; }
  .photo-viewer-frame__logo { width:min(220px, 62%); margin-bottom: 14px; }
  .photo-viewer-frame__image-wrap { min-height: 280px; border-radius: 18px; }
  .photo-viewer-modal__actions { display:grid; grid-template-columns:1fr; }
}


/* VERSION 76 · GALERÍA DIRECTA POR JUGADOR */
.photos-search-result {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photos-search-result small {
  display: none !important;
}

.photos-player {
  gap: 0;
}

.photos-gallery {
  scroll-margin-top: 126px;
}

.photos-gallery__header {
  padding-top: 8px;
}

@media (max-width: 700px) {
  .photos-search-result {
    min-height: 50px;
    font-size: .94rem;
  }

  .photos-gallery {
    scroll-margin-top: 108px;
  }
}


/* VERSION 77 · GOOGLE DRIVE LIVE */
.photos-gallery-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(212,175,117,.18);
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.72);
  text-align: center;
  letter-spacing: .08em;
}
html[data-theme="light"] .photos-gallery-empty { color: rgba(23,21,18,.7); background: rgba(0,0,0,.025); }


/* VERSION 78 · PORTADA LIMPIA Y APERTURA ANIMADA DE GALERÍA */
.photos-page {
  width: min(1320px, calc(100vw - 64px));
  min-height: calc(100svh - 150px);
  padding: 0 0 64px;
}

.photos-entry {
  position: relative;
  min-height: calc(100svh - 168px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 38px;
  padding: 44px 24px 84px;
  transition:
    min-height .9s cubic-bezier(.22, 1, .36, 1),
    padding .9s cubic-bezier(.22, 1, .36, 1),
    gap .9s cubic-bezier(.22, 1, .36, 1);
}

.photos-entry::before {
  content: '';
  position: absolute;
  width: min(720px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,117,.11), rgba(212,175,117,0) 68%);
  filter: blur(14px);
  pointer-events: none;
  transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

.photos-entry__brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 13px;
  transform: translateY(-8px) scale(1);
  transform-origin: center top;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1);
}

.photos-entry__brand img {
  display: block;
  width: min(520px, 72vw);
  height: auto;
}

.photos-entry__brand span {
  color: #d4af75;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .42em;
  text-indent: .42em;
}

.photos-search {
  position: relative;
  z-index: 8;
  width: min(680px, 88vw);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  transition: width .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="light"] .photos-search {
  background: transparent;
  border: 0;
}

.photos-search__field {
  position: relative;
  z-index: 2;
  min-height: 66px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,117,.4);
  background: rgba(7,7,7,.9);
  box-shadow: 0 20px 70px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
  transition: min-height .7s ease, border-color .25s ease, box-shadow .25s ease;
}

.photos-search__field:focus-within {
  border-color: rgba(212,175,117,.88);
  box-shadow: 0 24px 80px rgba(0,0,0,.38), 0 0 0 4px rgba(212,175,117,.08);
}

html[data-theme="light"] .photos-search__field {
  background: rgba(255,255,255,.94);
  border-color: rgba(155,116,57,.38);
}

.photos-search__field input {
  min-height: 64px;
  text-align: center;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.photos-search__field input::placeholder {
  color: rgba(255,255,255,.58);
}
html[data-theme="light"] .photos-search__field input::placeholder { color: rgba(20,18,15,.48); }

.photos-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  z-index: 20;
  max-height: min(44vh, 380px);
  overflow-y: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(212,175,117,.24);
  border-radius: 24px;
  background: rgba(5,5,5,.97);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(22px);
}

html[data-theme="light"] .photos-search-results { background: rgba(255,255,255,.98); }

.photos-search-result,
.photos-search-results__empty {
  min-height: 52px;
  padding: 14px 17px;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

.photos-search-result:hover {
  transform: none;
  background: rgba(212,175,117,.12);
}

.photos-page.is-gallery-mode .photos-entry {
  min-height: 224px;
  gap: 18px;
  padding: 22px 24px 28px;
}

.photos-page.is-gallery-mode .photos-entry::before {
  opacity: .3;
  transform: scale(.56);
}

.photos-page.is-gallery-mode .photos-entry__brand {
  transform: translateY(0) scale(.46);
  margin-bottom: -74px;
}

.photos-page.is-gallery-mode .photos-search {
  width: min(560px, 88vw);
  transform: translateY(2px);
}

.photos-page.is-gallery-mode .photos-search__field {
  min-height: 54px;
}

.photos-page.is-gallery-mode .photos-search__field input { min-height: 52px; }

.photos-player {
  display: grid;
  gap: 0;
  opacity: 0;
  transform: translateY(46px) scale(.985);
  clip-path: inset(0 0 100% 0 round 28px);
  transition:
    opacity .72s ease .12s,
    transform .9s cubic-bezier(.22, 1, .36, 1),
    clip-path .9s cubic-bezier(.22, 1, .36, 1);
}

.photos-player.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0 round 28px);
}

.photos-gallery {
  scroll-margin-top: 112px;
  padding: 28px 0 0;
  animation: none;
}

.photos-gallery__header {
  padding: 0 2px 18px;
  margin: 0;
}

.photos-gallery__header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  letter-spacing: .05em;
}

.photos-page.is-gallery-loading .photos-grid {
  min-height: 300px;
}

.photos-gallery-empty {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photos-gallery-loader {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(212,175,117,.2);
  border-top-color: #d4af75;
  animation: photosGallerySpin .85s linear infinite;
}

@keyframes photosGallerySpin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .photos-page {
    width: min(100vw - 24px, 100%);
    min-height: calc(100svh - 116px);
    padding-bottom: 40px;
  }

  .photos-entry {
    min-height: calc(100svh - 130px);
    gap: 30px;
    padding: 30px 10px 72px;
  }

  .photos-entry__brand img { width: min(370px, 82vw); }
  .photos-entry__brand span { font-size: .62rem; letter-spacing: .34em; text-indent: .34em; }
  .photos-search { width: min(100%, 560px); }
  .photos-search__field { min-height: 60px; padding: 0 18px; }
  .photos-search__field input { min-height: 58px; font-size: .82rem; letter-spacing: .1em; }
  .photos-search-results { max-height: 38vh; border-radius: 20px; }

  .photos-page.is-gallery-mode .photos-entry {
    min-height: 196px;
    padding: 14px 8px 22px;
    gap: 12px;
  }

  .photos-page.is-gallery-mode .photos-entry__brand {
    transform: scale(.48);
    margin-bottom: -58px;
  }

  .photos-page.is-gallery-mode .photos-search { width: 100%; }
  .photos-page.is-gallery-mode .photos-search__field { min-height: 52px; }
  .photos-page.is-gallery-mode .photos-search__field input { min-height: 50px; }
  .photos-player { transform: translateY(34px) scale(.99); }
  .photos-gallery { padding-top: 18px; scroll-margin-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .photos-entry,
  .photos-entry::before,
  .photos-entry__brand,
  .photos-search,
  .photos-player {
    transition-duration: .01ms !important;
  }
}


/* VERSION 81 · GALERÍA, VISOR Y DESCARGA DIRECTA */
.photos-entry__back {
  position: absolute;
  top: 28px;
  right: 24px;
  z-index: 12;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(212,175,117,.45);
  border-radius: 999px;
  background: rgba(5,5,5,.82);
  color: #fff;
  font: inherit;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1), border-color .2s ease;
}
.photos-entry__back:hover { border-color: #d4af75; }
.photos-entry__back[hidden] { display: block; }

.photos-page.is-gallery-mode .photos-entry {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px 24px;
}
.photos-page.is-gallery-mode .photos-entry::before { opacity: .12; }
.photos-page.is-gallery-mode .photos-entry__brand {
  justify-items: start;
  gap: 6px;
  margin: 0;
  transform: none;
}
.photos-page.is-gallery-mode .photos-entry__brand img { width: min(245px, 36vw); }
.photos-page.is-gallery-mode .photos-entry__brand span {
  padding-left: 4px;
  font-size: .55rem;
  letter-spacing: .34em;
}
.photos-page.is-gallery-mode .photos-search {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-14px) scale(.98);
}
.photos-page.is-gallery-mode .photos-entry__back {
  position: relative;
  top: auto;
  right: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.photos-gallery { padding-top: 8px; }
.photos-gallery__header {
  display: grid;
  place-items: center;
  padding: 20px 12px 30px;
  text-align: center;
}
.photos-gallery__welcome { display: grid; justify-items: center; gap: 8px; }
.photos-gallery__welcome > span {
  color: #d4af75;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .36em;
  text-indent: .36em;
}
.photos-gallery__header h2 {
  margin: 0;
  max-width: min(920px, 92vw);
  font-size: clamp(2.15rem, 6vw, 5.4rem);
  line-height: .96;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.photos-gallery__meta {
  margin-top: 5px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .68;
  text-transform: uppercase;
}

.photo-viewer-modal[hidden] { display: none !important; }
.photo-viewer-modal {
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  background: rgba(0,0,0,.12);
  transition: opacity .22s ease, visibility .22s ease;
}
.photo-viewer-modal.is-visible { opacity: 1; visibility: visible; }
.photo-viewer-modal .confirmation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(14px);
}
.photo-viewer-modal__dialog {
  max-height: calc(100svh - 36px);
  transform: translateY(18px) scale(.985);
  opacity: 0;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}
.photo-viewer-modal.is-visible .photo-viewer-modal__dialog { transform: translateY(0) scale(1); opacity: 1; }
.photo-viewer-frame { max-height: calc(100svh - 130px); display: grid; grid-template-rows: auto minmax(0,1fr); }
.photo-viewer-frame__image-wrap { position: relative; min-height: min(62vh, 620px); }
.photo-viewer-frame__image-wrap img {
  width: 100%;
  height: 100%;
  max-height: min(70vh, 780px);
  opacity: 0;
  transition: opacity .22s ease;
}
.photo-viewer-modal.is-image-ready .photo-viewer-frame__image-wrap img { opacity: 1; }
.photo-viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  color: rgba(255,255,255,.78);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
}
.photo-viewer-loading[hidden] { display: none !important; }
.photo-viewer-loading span {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(212,175,117,.22);
  border-top-color: #d4af75;
  border-radius: 50%;
  animation: photosGallerySpin .8s linear infinite;
}
.photo-viewer-modal__actions button:disabled { opacity: .58; cursor: wait; }

@media (max-width: 700px) {
  .photos-page.is-gallery-mode .photos-entry {
    min-height: 104px;
    padding: 14px 8px 18px;
    gap: 10px;
  }
  .photos-page.is-gallery-mode .photos-entry__brand img { width: min(190px, 48vw); }
  .photos-page.is-gallery-mode .photos-entry__brand span { font-size: .46rem; }
  .photos-entry__back {
    min-height: 42px;
    padding: 0 13px;
    font-size: .62rem;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  .photos-gallery__header { padding: 18px 8px 26px; }
  .photos-gallery__header h2 { font-size: clamp(2rem, 11vw, 3.6rem); }
  .photos-gallery__welcome > span { font-size: .68rem; }
  .photo-viewer-frame { max-height: calc(100svh - 176px); }
  .photo-viewer-frame__image-wrap { min-height: 44vh; }
  .photo-viewer-frame__image-wrap img { max-height: 58vh; }
}


/* VERSION 82 · CENTRADO EXACTO Y DESCARGA RESILIENTE */
.photos-player,
.photos-gallery,
.photos-gallery__header,
.photos-gallery__welcome,
.photos-grid,
.photos-pagination {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.photos-gallery__header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}
.photos-gallery__welcome {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.photos-gallery__welcome > span,
.photos-gallery__header h2,
.photos-gallery__meta {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
.photos-gallery__header h2 {
  max-width: 100%;
  padding-inline: 12px;
  overflow-wrap: anywhere;
}
.photo-viewer-modal__actions .primary-button:not(:disabled) {
  cursor: pointer;
}
@media (max-width: 700px) {
  .photos-gallery__header { padding-inline: 0; }
  .photos-gallery__header h2 { padding-inline: 6px; }
}


/* VERSION 84 · GUARDADO MÓVIL Y PRUEBA EN TELÉFONO */
.mobile-photo-save-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.mobile-photo-save-modal.is-visible { opacity: 1; visibility: visible; }
.mobile-photo-save-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
}
.mobile-photo-save-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: calc(100svh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(212,175,117,.28);
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 30px 100px rgba(0,0,0,.7);
  transform: translateY(16px) scale(.985);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.mobile-photo-save-modal.is-visible .mobile-photo-save-card { transform: translateY(0) scale(1); }
.mobile-photo-save-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-photo-save-card__heading img { width: min(190px, 52vw); height: auto; }
.mobile-photo-save-card__heading button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
}
.mobile-photo-save-card__image {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #000;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}
.mobile-photo-save-card__image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58svh;
  object-fit: contain;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}
.mobile-photo-save-card__instructions {
  padding: 16px 18px 4px;
  text-align: center;
}
.mobile-photo-save-card__instructions span {
  color: #d4af75;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .22em;
}
.mobile-photo-save-card__instructions strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: .95rem;
  letter-spacing: .08em;
}
.mobile-photo-save-card__instructions p {
  margin: 8px auto 0;
  max-width: 560px;
  color: rgba(255,255,255,.68);
  font-size: .76rem;
  line-height: 1.5;
}
.mobile-photo-save-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
}
.mobile-photo-save-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
@media (max-width: 700px) {
  .mobile-photo-save-modal { padding: 8px; }
  .mobile-photo-save-card { max-height: calc(100svh - 12px); border-radius: 20px; }
  .mobile-photo-save-card__image img { max-height: 52svh; }
  .mobile-photo-save-card__actions { grid-template-columns: 1fr; }
}


/* VERSION 88 · SELECCIÓN MÚLTIPLE DE FOTOGRAFÍAS */
.photos-gallery__toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 4px;
}
.photos-multiselect-toggle {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(212,175,117,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: inherit;
  font: inherit;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}
.photos-multiselect-toggle:hover { border-color: #d4af75; transform: translateY(-1px); }
.photos-multiselect-toggle.is-active {
  border-color: #d4af75;
  background: #d4af75;
  color: #070707;
}
.photos-selection-count {
  min-width: 210px;
  color: rgba(255,255,255,.55);
  text-align: right;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease;
}
html[data-theme="light"] .photos-selection-count { color: rgba(0,0,0,.5); }
.photos-selection-count.has-selection { color: #d4af75; }
.photo-thumb {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}
.photo-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0 solid #d4af75;
  background: transparent;
  pointer-events: none;
  transition: border-width .18s ease, background .18s ease;
}
.photo-thumb__selection {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.76);
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  box-shadow: 0 4px 16px rgba(0,0,0,.34);
  opacity: 0;
  transform: scale(.76);
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,1,.36,1), background .18s ease, border-color .18s ease;
}
.photo-thumb__selection i {
  width: 9px;
  height: 5px;
  border-left: 2px solid #070707;
  border-bottom: 2px solid #070707;
  transform: translateY(-1px) rotate(-45deg);
  opacity: 0;
}
.photos-gallery.is-multiselect-mode .photo-thumb__selection,
.photo-thumb.is-selected .photo-thumb__selection {
  opacity: 1;
  transform: scale(1);
}
.photo-thumb.is-selected::after {
  border-width: 4px;
  background: rgba(212,175,117,.14);
}
.photo-thumb.is-selected .photo-thumb__selection {
  border-color: #d4af75;
  background: #d4af75;
}
.photo-thumb.is-selected .photo-thumb__selection i { opacity: 1; }
.photo-thumb.is-long-pressing { transform: scale(.975); }
.photo-thumb.is-long-pressing::after {
  border-width: 3px;
  background: rgba(212,175,117,.1);
}
.photo-viewer-modal.is-multiselect-preview .photo-viewer-frame__image-wrap img { cursor: pointer; }
.photo-viewer-modal.is-multiselect-preview .photo-viewer-frame__image-wrap::after {
  content: 'PRESIONA LA FOTOGRAFÍA PARA VOLVER A LA GALERÍA';
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  max-width: calc(100% - 28px);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.84);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 700px) {
  .photos-gallery__toolbar {
    gap: 10px;
    padding: 4px 0 2px;
  }
  .photos-multiselect-toggle {
    min-height: 40px;
    padding: 0 12px;
    font-size: .59rem;
    letter-spacing: .07em;
    white-space: nowrap;
  }
  .photos-selection-count {
    min-width: 0;
    max-width: 46%;
    font-size: .58rem;
    line-height: 1.35;
    letter-spacing: .07em;
  }
  .photo-thumb__selection {
    top: 7px;
    right: 7px;
    width: 27px;
    height: 27px;
  }
  .photo-viewer-modal.is-multiselect-preview .photo-viewer-frame__image-wrap::after {
    bottom: 9px;
    font-size: .54rem;
  }
}


/* VERSION 89 · NUEVA DISTRIBUCIÓN Y SELECCIÓN POR PULSACIÓN LARGA */
.photos-entry__brand { display: none !important; }

.photos-entry {
  gap: 0;
}

.photos-page.is-gallery-mode .photos-entry {
  min-height: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.photos-page.is-gallery-mode .photos-search {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.photos-player {
  padding-top: 0;
}

.photos-gallery {
  padding-top: 0;
}

.photos-gallery__header {
  padding: 10px 8px 24px;
}

.photos-gallery__controls {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 0 22px;
}

.photos-gallery__actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.photos-multiselect-toggle,
.photos-selected-download {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(212,175,117,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: inherit;
  font: inherit;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease, opacity .22s ease;
}

.photos-multiselect-toggle:hover,
.photos-selected-download:not(:disabled):hover {
  border-color: #d4af75;
  transform: translateY(-1px);
}

.photos-selected-download {
  border-color: rgba(212,175,117,.62);
  background: rgba(212,175,117,.1);
}

.photos-selected-download:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.photos-selection-count {
  width: 100%;
  min-width: 0;
  max-width: none;
  text-align: center;
}

.photos-gallery__footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0 6px;
}

.photos-gallery__back {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(212,175,117,.44);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: inherit;
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.photos-gallery__back:hover {
  border-color: #d4af75;
  background: rgba(212,175,117,.08);
  transform: translateY(-1px);
}

.photos-gallery__back[hidden] { display: none !important; }

@media (max-width: 700px) {
  .photos-page.is-gallery-mode .photos-entry {
    min-height: 0;
    height: 0;
    padding: 0;
  }

  .photos-gallery__header {
    padding: 8px 6px 22px;
  }

  .photos-gallery__actions {
    gap: 8px;
  }

  .photos-multiselect-toggle,
  .photos-selected-download {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0 9px;
    font-size: .56rem;
    line-height: 1.15;
    letter-spacing: .045em;
  }

  .photos-selection-count {
    font-size: .62rem;
    line-height: 1.35;
    letter-spacing: .08em;
  }

  .photos-gallery__back {
    width: min(100%, 330px);
    min-height: 44px;
    font-size: .64rem;
  }
}


/* VERSION 90 · NOMBRE DE JUGADOR Y DESCARGA MÚLTIPLE */
#photoGalleryPlayerName {
  font-family: inherit;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.45rem, 6.6vw, 6rem);
  letter-spacing: -.035em;
}

@media (max-width: 700px) {
  #photoGalleryPlayerName {
    font-size: clamp(2.25rem, 12vw, 4rem);
  }
}


/* VERSION 94 · IMPORTADOR DE PROGRAMACIÓN VOLA */
.vola-import-panel {
  position: relative;
  overflow: hidden;
}

.vola-import-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold, #c9a84c);
}

.vola-import-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.vola-import-badge,
.vola-import-preview__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(201, 168, 76, .55);
  border-radius: 999px;
  color: var(--gold, #c9a84c);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  white-space: nowrap;
}

.vola-import-description {
  max-width: 850px;
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, .68);
  line-height: 1.65;
}

.vola-import-grid {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(320px, 1.25fr);
  gap: 18px;
  align-items: stretch;
}

.vola-file-picker,
.vola-paste-field {
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.vola-file-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.vola-file-picker:hover,
.vola-file-picker:focus-within {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, .72);
  background: rgba(201, 168, 76, .07);
}

.vola-file-picker__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid rgba(201, 168, 76, .7);
  border-radius: 50%;
  color: var(--gold, #c9a84c);
  font-size: 28px;
  line-height: 1;
}

.vola-file-picker strong,
.vola-paste-field label {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.vola-file-picker small {
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  letter-spacing: .08em;
}

.vola-paste-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.vola-paste-field textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  padding: 13px 14px;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vola-paste-field textarea:focus {
  outline: none;
  border-color: rgba(201, 168, 76, .8);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .1);
}

.vola-review-button {
  align-self: flex-start;
}

.vola-import-preview {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(201, 168, 76, .09), rgba(255, 255, 255, .025));
}

.vola-import-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.vola-import-preview__header div {
  display: grid;
  gap: 3px;
}

.vola-import-preview__header div span {
  color: rgba(255, 255, 255, .5);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.vola-import-preview__header div strong {
  color: #fff;
  font-size: 15px;
  word-break: break-word;
}

.vola-import-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.vola-import-stats article {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(0, 0, 0, .18);
}

.vola-import-stats span {
  color: rgba(255, 255, 255, .5);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.vola-import-stats strong {
  color: var(--gold, #c9a84c);
  font-size: 25px;
}

#volaImportDateSummary,
.vola-import-warning {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.55;
}

.vola-import-warning {
  color: #f0c875;
}

.vola-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vola-import-actions button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.vola-import-message {
  min-height: 22px;
  margin-top: 12px;
}

body.theme-light .vola-import-description,
body.theme-light #volaImportDateSummary {
  color: rgba(15, 15, 15, .66);
}

body.theme-light .vola-file-picker,
body.theme-light .vola-paste-field,
body.theme-light .vola-import-preview {
  background: #fff;
  border-color: rgba(0, 0, 0, .12);
}

body.theme-light .vola-file-picker strong,
body.theme-light .vola-paste-field label,
body.theme-light .vola-import-preview__header div strong {
  color: #111;
}

body.theme-light .vola-file-picker small,
body.theme-light .vola-import-preview__header div span,
body.theme-light .vola-import-stats span {
  color: rgba(0, 0, 0, .52);
}

body.theme-light .vola-paste-field textarea {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, .14);
  color: #111;
}

body.theme-light .vola-import-stats article {
  background: #f7f7f7;
  border-color: rgba(0, 0, 0, .1);
}

@media (max-width: 820px) {
  .vola-import-heading,
  .vola-import-preview__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .vola-import-grid {
    grid-template-columns: 1fr;
  }

  .vola-file-picker,
  .vola-paste-field {
    min-height: 0;
  }

  .vola-file-picker {
    padding: 22px 18px;
  }

  .vola-import-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vola-import-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vola-import-actions button,
  .vola-review-button {
    width: 100%;
  }
}


/* VERSION 95 · ADMINISTRACIÓN EN PROGRAMACIÓN, REGLAMENTO EDITABLE Y CRÉDITO FOTOGRÁFICO */
.site-brand-stack {
  grid-column: 2;
  justify-self: center;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.site-brand-stack .site-brand { grid-column: auto; grid-row: auto; }
.site-brand-stack .site-header__logo { width: min(190px, 30vw); }
.site-brand-stack .theme-toggle {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
}
.site-brand-stack .theme-toggle:hover { transform: translateY(-1px) !important; }
.site-header { min-height: 118px; padding-block: 12px; }
.app-view { min-height: calc(100vh - 118px); }
.control-auth { min-height: calc(100vh - 118px); }

.admin-only-panel,
.admin-only-inline { display: none !important; }
body.schedule-admin-session .admin-only-panel { display: block !important; }
body.schedule-admin-session .admin-only-inline { display: inline-flex !important; }

.schedule-vola-import {
  width: 100%;
  margin: 34px 0 0;
  border-radius: 24px;
  overflow: hidden;
}
.schedule-vola-import .vola-import-description { max-width: 850px; }

.rules-update-button {
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 230px;
}

.rules-custom {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.rules-custom__heading { margin-bottom: 18px; }
.rules-custom__heading h2 {
  margin: 8px 0 0;
  color: var(--off-white);
  font-size: clamp(25px, 4vw, 42px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
}
.rules-custom__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.rules-card--custom { min-height: 100%; }

.rules-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 18px;
}
.rules-editor-modal[hidden] { display: none !important; }
.rules-editor-card {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(900px, calc(100dvh - 36px));
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(7,7,7,.98);
  box-shadow: 0 34px 120px rgba(0,0,0,.65);
}
.rules-editor-card__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--off-white);
  background: rgba(255,255,255,.03);
  font-size: 24px;
  cursor: pointer;
}
.rules-editor-card h2 {
  margin: 10px 48px 8px 0;
  color: var(--off-white);
  font-size: clamp(31px, 5vw, 55px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}
.rules-editor-card__lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.rules-editor-form { display: grid; gap: 12px; }
.rules-editor-form input,
.rules-editor-form textarea,
.rules-editor-form select {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--off-white);
  background: rgba(255,255,255,.035);
  font: inherit;
  line-height: 1.5;
}
.rules-editor-form textarea { min-height: 112px; resize: vertical; }
.rules-editor-form__chooser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.rules-editor-form__chooser > div { min-width: 0; }
.rules-add-text-button { justify-self: start; }
.rules-draft {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.rules-draft__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}
.rules-draft__heading strong { color: var(--gold-bright); font-size: 13px; }
.rules-draft ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rules-draft li:not(.rules-draft__empty) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  color: var(--off-white);
  background: rgba(255,255,255,.025);
  font-size: 12px;
  line-height: 1.55;
}
.rules-draft li button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(230,91,91,.3);
  border-radius: 9px;
  color: #f08c83;
  background: rgba(230,91,91,.07);
  font-size: 20px;
  cursor: pointer;
}
.rules-draft__empty,
.rules-saved__empty {
  margin: 0;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: .12em;
}
.rules-editor-form__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 6px;
}
.rules-saved {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.rules-saved__heading h3 {
  margin: 6px 0 14px;
  color: var(--off-white);
  font-size: 20px;
}
.rules-saved__list { display: grid; gap: 8px; }
.rules-saved__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
.rules-saved__item > div:first-child { display: grid; gap: 3px; min-width: 0; }
.rules-saved__item strong { color: var(--off-white); font-size: 12px; }
.rules-saved__item span { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.rules-saved__item > div:last-child { display: flex; gap: 7px; }
.rules-saved__item button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
}
.rules-saved__item button:last-child { color: #e98a82; border-color: rgba(230,91,91,.28); }
.rules-editor-message.is-error { color: var(--danger); }

.photos-credit {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: clamp(36px, 6vw, 70px) auto 0;
  padding: 24px 16px 6px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.photos-credit > span {
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .38em;
}
.photos-credit img {
  display: block;
  width: min(220px, 52vw);
  height: auto;
  opacity: .94;
}

html[data-theme="light"] .rules-editor-card {
  background: rgba(255,255,255,.99);
  box-shadow: 0 34px 100px rgba(55,45,31,.22);
}
html[data-theme="light"] .rules-editor-form input,
html[data-theme="light"] .rules-editor-form textarea,
html[data-theme="light"] .rules-editor-form select,
html[data-theme="light"] .rules-draft,
html[data-theme="light"] .rules-draft li:not(.rules-draft__empty),
html[data-theme="light"] .rules-saved__item {
  background: #fffdf8;
  border-color: rgba(35,31,24,.12);
}
html[data-theme="light"] .rules-saved__item button,
html[data-theme="light"] .rules-editor-card__close {
  color: #5f594f;
  background: #fff;
  border-color: rgba(35,31,24,.12);
}
html[data-theme="light"] .photos-credit img { filter: invert(1); }

@media (max-width: 820px) {
  .site-header {
    min-height: 128px !important;
    grid-template-rows: 74px 42px !important;
  }
  .site-brand-stack {
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 2px;
  }
  .site-brand-stack .site-header__logo { width: 136px; max-width: 42vw; }
  .site-brand-stack .theme-toggle { width: 36px; height: 20px; }
  .app-view,
  .control-auth { min-height: calc(100dvh - 128px) !important; }
}

@media (max-width: 700px) {
  .site-brand-stack .theme-toggle {
    position: static !important;
    width: 36px;
    height: 20px;
  }
  body.show-home-landing .site-brand-stack .theme-toggle { display: none !important; }
  .schedule-vola-import { margin-top: 24px; border-radius: 18px; }
  .rules-update-button { width: 100%; min-width: 0; }
  .rules-custom__grid { grid-template-columns: 1fr; }
  .rules-editor-modal { padding: 8px; }
  .rules-editor-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 24px 14px 20px;
    border-radius: 20px;
  }
  .rules-editor-form__chooser,
  .rules-editor-form__actions { grid-template-columns: 1fr; }
  .rules-editor-form__chooser .secondary-button,
  .rules-add-text-button { width: 100%; }
  .rules-saved__item { align-items: stretch; flex-direction: column; }
  .rules-saved__item > div:last-child { width: 100%; }
  .rules-saved__item button { flex: 1; }
  .photos-credit { margin-top: 34px; }
}

/* VERSION 97 · REGLAMENTO FLEXIBLE, CRÉDITO SUPERIOR Y EDICIÓN DE RANKING */
/* El interruptor queda centrado bajo el texto “PADEL SERIES”, no bajo el ancho total del logo. */
.site-brand-stack .theme-toggle {
  transform: translateX(-20px) !important;
}
.site-brand-stack .theme-toggle:hover {
  transform: translate(-20px, -1px) !important;
}

.photos-credit--top {
  position: relative;
  z-index: 3;
  margin: 0 auto clamp(22px, 3vw, 34px);
  padding: 0 16px;
  border-top: 0;
}
.photos-credit--top img {
  width: min(230px, 54vw);
}

.rules-custom-entry {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.rules-custom-entry[hidden] { display: none !important; }
.rules-custom-entry .rules-add-text-button { width: max-content; }
html[data-theme="light"] .rules-custom-entry {
  border-color: rgba(35,31,24,.12);
  background: #fffdf8;
}

.ranking-admin-panel {
  width: min(780px, 100%);
  margin: 26px auto 0;
  text-align: center;
}
.ranking-edit-toggle {
  min-width: 230px;
}
.ranking-edit-tools {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(201,166,107,.28);
  border-radius: 16px;
  background: rgba(201,166,107,.055);
}
.ranking-edit-tools[hidden] { display: none !important; }
.ranking-edit-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.7;
}
.ranking-edit-tools > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ranking-row.is-editable {
  cursor: pointer;
  outline: none;
}
.ranking-row.is-editable::after {
  content: "EDITAR";
  position: absolute;
  top: 7px;
  right: 10px;
  color: var(--gold-bright);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
  opacity: .72;
}
.ranking-row.is-editable:hover,
.ranking-row.is-editable:focus-visible {
  z-index: 2;
  background: linear-gradient(90deg, rgba(201,166,107,.13), rgba(201,166,107,.035));
  box-shadow: inset 0 0 0 1px rgba(201,166,107,.35);
}

.ranking-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1650;
  display: grid;
  place-items: center;
  padding: 18px;
}
.ranking-editor-modal[hidden] { display: none !important; }
.ranking-editor-card {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(7,7,7,.985);
  box-shadow: 0 34px 120px rgba(0,0,0,.68);
}
.ranking-editor-card__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--off-white);
  background: rgba(255,255,255,.03);
  font-size: 24px;
  cursor: pointer;
}
.ranking-editor-card h2 {
  margin: 10px 48px 6px 0;
  color: var(--off-white);
  font-size: clamp(31px, 6vw, 52px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}
.ranking-editor-card__category {
  margin: 0 0 26px;
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.ranking-editor-form {
  display: grid;
  gap: 12px;
}
.ranking-editor-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--off-white);
  background: rgba(255,255,255,.035);
  font: inherit;
}
.ranking-editor-form__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 8px;
}
.ranking-editor-message.is-error { color: var(--danger); }
html[data-theme="light"] .ranking-edit-tools {
  background: rgba(159,116,53,.07);
  border-color: rgba(159,116,53,.25);
}
html[data-theme="light"] .ranking-editor-card {
  background: rgba(255,255,255,.99);
  box-shadow: 0 34px 100px rgba(55,45,31,.22);
}
html[data-theme="light"] .ranking-editor-form input:not([type="hidden"]),
html[data-theme="light"] .ranking-editor-card__close {
  color: #211f1b;
  background: #fffdf8;
  border-color: rgba(35,31,24,.14);
}

@media (max-width: 820px) {
  .site-brand-stack .theme-toggle {
    transform: translateX(-14px) !important;
  }
  .site-brand-stack .theme-toggle:hover {
    transform: translate(-14px, -1px) !important;
  }
}

@media (max-width: 700px) {
  .photos-credit--top {
    margin-bottom: 20px;
    padding-inline: 8px;
  }
  .photos-credit--top img { width: min(205px, 58vw); }
  .rules-custom-entry .rules-add-text-button { width: 100%; }
  .ranking-admin-panel { margin-top: 22px; }
  .ranking-edit-toggle { width: 100%; min-width: 0; }
  .ranking-edit-tools > div,
  .ranking-edit-tools button { width: 100%; }
  .ranking-editor-modal { padding: 8px; }
  .ranking-editor-card {
    max-height: calc(100dvh - 16px);
    padding: 24px 14px 20px;
    border-radius: 20px;
  }
  .ranking-editor-form__actions { grid-template-columns: 1fr; }
  .ranking-row.is-editable::after {
    top: 5px;
    right: 7px;
    font-size: 6px;
  }
}

/* VERSION 98 · INICIO EDITABLE, PUBLICACIÓN CONFIRMADA Y NAVEGACIÓN MÓVIL */
.photos-credit--top {
  gap: 1px;
}
.photos-credit--top > span {
  margin: 0 0 -1px;
  line-height: 1;
}
.photos-credit--top img {
  margin-top: 0;
}

.home-stage__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-edit-button {
  min-height: 46px;
  padding-inline: 22px;
  border-color: rgba(201,166,107,.45);
  color: var(--gold-bright);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(12px);
}

.home-editor-modal,
.vola-publish-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 18px;
}
.home-editor-modal[hidden],
.vola-publish-modal[hidden] {
  display: none !important;
}
.home-editor-card,
.vola-publish-card {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  color: var(--off-white);
  background: rgba(7,7,7,.985);
  box-shadow: 0 34px 120px rgba(0,0,0,.7);
}
.home-editor-card__close,
.vola-publish-card__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--off-white);
  background: rgba(255,255,255,.03);
  font-size: 24px;
  cursor: pointer;
}
.home-editor-card h2,
.vola-publish-card h2 {
  margin: 10px 48px 8px 0;
  font-size: clamp(32px, 6vw, 58px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}
.home-editor-card > p,
.vola-publish-card > p {
  max-width: 590px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.home-editor-form {
  display: grid;
  gap: 12px;
}
.home-editor-form input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--off-white);
  background: rgba(255,255,255,.035);
  font: inherit;
}
.home-background-picker {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 16px;
  border: 1px dashed rgba(201,166,107,.5);
  border-radius: 15px;
  color: var(--gold-bright);
  background: rgba(201,166,107,.045);
  text-align: center;
  cursor: pointer;
}
.home-background-picker span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}
.home-background-picker small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}
.home-background-preview {
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
}
.home-background-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.home-background-reset {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
}
.home-background-reset input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.home-editor-form__actions,
.vola-publish-card__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 8px;
}
.home-editor-message.is-error { color: var(--danger); }

.vola-backup-choice {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.vola-backup-choice label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
}
.vola-backup-choice label:has(input:checked) {
  border-color: rgba(201,166,107,.55);
  background: rgba(201,166,107,.075);
}
.vola-backup-choice input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--gold);
}
.vola-backup-choice span {
  display: grid;
  gap: 5px;
}
.vola-backup-choice strong {
  color: var(--off-white);
  font-size: 10px;
  letter-spacing: .1em;
}
.vola-backup-choice small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.mobile-menu-button,
.mobile-header-logout,
.mobile-nav-drawer,
.mobile-full-schedule-toggle,
.mobile-full-schedule {
  display: none;
}

html[data-theme="light"] .home-editor-card,
html[data-theme="light"] .vola-publish-card {
  color: #211f1b;
  background: rgba(255,255,255,.99);
  box-shadow: 0 34px 100px rgba(55,45,31,.22);
}
html[data-theme="light"] .home-editor-form input[type="text"],
html[data-theme="light"] .home-background-picker,
html[data-theme="light"] .vola-backup-choice label,
html[data-theme="light"] .home-editor-card__close,
html[data-theme="light"] .vola-publish-card__close {
  color: #211f1b;
  border-color: rgba(35,31,24,.15);
  background: #fffdf8;
}
html[data-theme="light"] .vola-backup-choice label:has(input:checked) {
  border-color: rgba(159,116,53,.48);
  background: rgba(159,116,53,.09);
}
html[data-theme="light"] .vola-backup-choice strong { color: #211f1b; }

@media (max-width: 700px) {
  html { scroll-padding-top: 94px; }
  body.mobile-menu-open { overflow: hidden; }

  .site-header {
    min-height: 92px !important;
    height: 92px;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: calc(7px + env(safe-area-inset-top, 0)) 12px 7px !important;
    border-bottom: 1px solid rgba(201,166,107,.18);
  }
  .site-brand-stack {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 1px;
  }
  .site-brand-stack .site-header__logo {
    width: 137px;
    max-width: 42vw;
  }
  .site-brand-stack .theme-toggle {
    width: 34px;
    height: 19px;
    transform: translateX(-13px) !important;
  }
  .site-brand-stack .theme-toggle:hover {
    transform: translate(-13px, -1px) !important;
  }
  .main-nav,
  .header-actions {
    display: none !important;
  }

  .mobile-menu-button {
    position: absolute;
    z-index: 5;
    top: calc(18px + env(safe-area-inset-top, 0));
    right: 15px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(201,166,107,.3);
    border-radius: 13px;
    color: var(--off-white);
    background: rgba(255,255,255,.025);
    cursor: pointer;
  }
  .mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 240ms ease, opacity 180ms ease;
  }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-header-logout:not([hidden]) {
    position: absolute;
    z-index: 5;
    top: calc(20px + env(safe-area-inset-top, 0));
    left: 11px;
    width: 70px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    border: 1px solid rgba(234,72,72,.48);
    border-radius: 11px;
    color: #ff8178;
    background: rgba(124,18,18,.18);
    font-size: 6.5px;
    font-weight: 900;
    letter-spacing: .075em;
    line-height: 1.15;
    text-align: center;
  }

  .mobile-nav-drawer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1550;
    display: block;
    pointer-events: none;
    overscroll-behavior: contain;
  }
  .mobile-nav-drawer[hidden] { display: none !important; }
  .mobile-nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(0,0,0,.68);
    opacity: 0;
    transition: opacity 280ms ease;
  }
  .mobile-nav-drawer__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(88vw, 390px);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 30px;
    padding: calc(22px + env(safe-area-inset-top, 0)) 22px calc(28px + env(safe-area-inset-bottom, 0));
    border-left: 1px solid rgba(201,166,107,.24);
    background:
      radial-gradient(circle at 100% 0%, rgba(201,166,107,.13), transparent 38%),
      #060606;
    box-shadow: -30px 0 80px rgba(0,0,0,.55);
    transform: translateX(104%);
    transition: transform 340ms cubic-bezier(.16,1,.3,1);
  }
  .mobile-nav-drawer.is-open { pointer-events: auto; }
  .mobile-nav-drawer.is-open .mobile-nav-drawer__backdrop { opacity: 1; }
  .mobile-nav-drawer.is-open .mobile-nav-drawer__panel { transform: translateX(0); }
  .mobile-nav-drawer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .mobile-nav-drawer__heading span {
    color: var(--gold);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .25em;
  }
  .mobile-nav-drawer__heading button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    color: var(--off-white);
    background: rgba(255,255,255,.025);
    font-size: 28px;
  }
  .mobile-nav-drawer__links {
    display: grid;
    align-content: center;
    gap: 4px;
  }
  .mobile-nav-drawer__links button {
    position: relative;
    min-height: 66px;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #f3f0e8;
    background: transparent;
    font-size: clamp(24px, 8vw, 39px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .95;
    text-align: left;
    cursor: pointer;
  }
  .mobile-nav-drawer__links button::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    color: var(--gold);
    font-size: 20px;
    transform: translateY(-50%);
    opacity: .5;
  }
  .mobile-nav-drawer__links button.is-active { color: var(--gold-bright); }

  .app-view,
  .control-auth { min-height: calc(100dvh - 92px) !important; }

  .home-stage__actions {
    width: min(300px, 86vw);
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-edit-button { width: 100%; }
  .home-editor-modal,
  .vola-publish-modal { padding: 8px; }
  .home-editor-card,
  .vola-publish-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 24px 14px 20px;
    border-radius: 20px;
  }
  .home-editor-form__actions,
  .vola-publish-card__actions { grid-template-columns: 1fr; }

  .photos-credit--top {
    gap: 0;
    margin-bottom: 17px;
  }
  .photos-credit--top > span {
    margin-bottom: -2px;
    font-size: 7px;
  }

  .schedule-hero {
    display: grid;
    justify-items: center;
    gap: 0;
    padding-bottom: 19px;
    text-align: center;
  }
  .schedule-hero__copy { display: none !important; }
  .mobile-full-schedule-toggle {
    width: min(310px, 100%);
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    padding: 10px 14px;
    border: 1px solid rgba(201,166,107,.42);
    border-radius: 12px;
    color: var(--gold-bright);
    background: rgba(201,166,107,.055);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
  }
  body.mobile-full-schedule-open .schedule-date-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 0;
    padding: 8px;
    overflow: visible;
    border-radius: 16px;
  }
  body.mobile-full-schedule-open .schedule-date-button {
    min-width: 0;
    min-height: 58px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1px;
    padding: 7px 3px;
    border-radius: 10px;
  }
  body.mobile-full-schedule-open .schedule-date-button span { font-size: 5.5px; letter-spacing: .08em; }
  body.mobile-full-schedule-open .schedule-date-button strong { font-size: 20px; }
  body.mobile-full-schedule-open .schedule-date-button small { padding: 0; font-size: 6px; }

  .mobile-full-schedule:not([hidden]) {
    display: block;
    margin-top: 10px;
  }
  .mobile-full-schedule__date {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 13px;
    border: 1px solid rgba(201,166,107,.25);
    border-radius: 15px;
    background: linear-gradient(90deg, rgba(201,166,107,.1), transparent);
  }
  .mobile-full-schedule__date span {
    color: var(--gold);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .mobile-full-schedule__date strong {
    font-size: 16px;
    font-style: italic;
    font-weight: 900;
  }
  .mobile-full-schedule__hours {
    display: grid;
    gap: 13px;
    margin-top: 10px;
  }
  .mobile-full-hour-block {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: #080808;
  }
  .mobile-full-hour-block__heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(201,166,107,.065);
  }
  .mobile-full-hour-block__heading span,
  .mobile-full-hour-block__heading small {
    color: var(--muted);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .1em;
  }
  .mobile-full-hour-block__heading small { text-align: right; }
  .mobile-full-hour-block__heading strong {
    color: var(--gold-bright);
    font-size: 19px;
    font-style: italic;
    font-weight: 900;
  }
  .mobile-full-hour-block__matches {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mobile-full-match-card {
    width: 100%;
    min-height: 170px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.075);
    color: var(--off-white);
    background:
      radial-gradient(circle at 100% 0%, rgba(201,166,107,.07), transparent 35%),
      #0b0b0b;
    text-align: center;
  }
  .mobile-full-match-card:last-child { border-bottom: 0; }
  button.mobile-full-match-card:active,
  button.mobile-full-match-card:focus-visible { background: rgba(201,166,107,.105); }
  .mobile-full-match-card__court {
    color: var(--muted-soft);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .18em;
  }
  .mobile-full-match-card__category {
    max-width: 100%;
    color: var(--gold-bright);
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
  }
  .mobile-full-match-card__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .mobile-full-match-card__meta span:not(:last-child)::after {
    content: "·";
    margin-left: 5px;
    color: var(--gold);
  }
  .mobile-full-match-card__teams {
    width: min(100%, 310px);
    display: grid;
    grid-template-rows: auto 13px auto;
    gap: 5px;
    padding-top: 3px;
  }
  .mobile-full-match-card__pair {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
  }
  .mobile-full-match-card__pair.is-winner {
    border-color: rgba(201,166,107,.38);
    background: rgba(201,166,107,.075);
  }
  .mobile-full-match-card__pair span {
    overflow-wrap: anywhere;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.25;
  }
  .mobile-full-match-card__pair span::before {
    content: "·";
    margin-right: 5px;
    color: var(--gold);
  }
  .mobile-full-match-card__pair span.is-bye { color: var(--muted-soft); }
  .mobile-full-match-card__teams > b {
    color: var(--gold);
    font-size: 7px;
    font-style: italic;
    line-height: 13px;
  }
  .mobile-full-match-card > em {
    color: var(--gold-bright);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
  }
  .mobile-full-match-card.is-empty {
    min-height: 90px;
    color: var(--muted-soft);
    background: #070707;
  }
  .mobile-full-match-card.is-empty strong {
    color: var(--muted-soft);
    font-size: 8px;
    letter-spacing: .1em;
  }
  .mobile-full-match-card.is-empty small { font-size: 7px; }

  html[data-theme="light"] .mobile-menu-button {
    color: #171512;
    border-color: rgba(23,21,18,.2);
    background: rgba(255,255,255,.76);
  }
  html[data-theme="light"] .mobile-nav-drawer__panel {
    color: #171512;
    border-left-color: rgba(35,31,24,.14);
    background: #f8f5ee;
    box-shadow: -30px 0 80px rgba(55,45,31,.2);
  }
  html[data-theme="light"] .mobile-nav-drawer__heading button,
  html[data-theme="light"] .mobile-nav-drawer__links button {
    color: #171512;
    border-color: rgba(35,31,24,.11);
  }
  html[data-theme="light"] .mobile-nav-drawer__links button.is-active { color: #9f7435; }
  html[data-theme="light"] .mobile-full-hour-block,
  html[data-theme="light"] .mobile-full-match-card {
    color: #171512;
    border-color: rgba(35,31,24,.1);
    background: #fff;
  }
  html[data-theme="light"] .mobile-full-match-card__pair {
    border-color: rgba(35,31,24,.1);
    background: #fffdf8;
  }
  html[data-theme="light"] .mobile-full-match-card.is-empty { background: #f1ede4; }
}

@media (max-width: 380px) {
  .mobile-header-logout:not([hidden]) { width: 62px; font-size: 5.8px; }
  .site-brand-stack .site-header__logo { width: 126px; }
  body.mobile-full-schedule-open .schedule-date-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* VERSION 99 · IDENTIDAD ESTABLE BYE + FORMULARIOS ADMIN PERSISTENTES AL CAMBIAR DE PESTAÑA */

/* VERSION 100 · SELECTORES CAMBIAR HORARIO SIEMPRE OSCUROS Y LEGIBLES */
#moveScheduleDate,
#moveScheduleSlot {
  color-scheme: dark;
  color: #f7f4ee !important;
  background-color: #101010 !important;
  border-color: rgba(255,255,255,.18) !important;
  -webkit-text-fill-color: #f7f4ee;
}

#moveScheduleDate:focus,
#moveScheduleSlot:focus {
  color: #ffffff !important;
  background-color: #101010 !important;
  border-color: rgba(201,166,107,.72) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,166,107,.10);
}

#moveScheduleDate option,
#moveScheduleSlot option,
#moveScheduleDate optgroup,
#moveScheduleSlot optgroup {
  color: #f7f4ee !important;
  background-color: #151515 !important;
  -webkit-text-fill-color: #f7f4ee;
}

#moveScheduleDate option:disabled,
#moveScheduleSlot option:disabled {
  color: #858585 !important;
  background-color: #151515 !important;
  -webkit-text-fill-color: #858585;
}

/* Esta herramienta permanece oscura incluso cuando la web está en modo claro,
   para evitar menús nativos con fondo y texto del mismo color. */
html[data-theme="light"] #moveScheduleDate,
html[data-theme="light"] #moveScheduleSlot,
html[data-theme="light"] #moveScheduleDate option,
html[data-theme="light"] #moveScheduleSlot option,
html[data-theme="light"] #moveScheduleDate optgroup,
html[data-theme="light"] #moveScheduleSlot optgroup {
  color-scheme: dark;
  color: #f7f4ee !important;
  background-color: #151515 !important;
  -webkit-text-fill-color: #f7f4ee;
}


/* VERSION 102 · TODAS LAS EDICIONES VISIBLES, MÁS RECIENTE PRIMERO */
.photos-edition-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 4px;
  padding: 13px 2px 10px;
  border-bottom: 1px solid rgba(212, 175, 117, .34);
}
.photos-edition-divider:first-child { margin-top: 0; }
.photos-edition-divider span {
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.photos-edition-divider small {
  color: rgba(255,255,255,.58);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}
html[data-theme="light"] .photos-edition-divider span { color: #171512; }
html[data-theme="light"] .photos-edition-divider small { color: rgba(23,21,18,.58); }
@media (max-width: 700px) {
  .photos-edition-divider {
    margin-top: 18px;
    gap: 10px;
    padding-bottom: 8px;
  }
  .photos-edition-divider span { font-size: .92rem; letter-spacing: .06em; }
  .photos-edition-divider small { font-size: .59rem; letter-spacing: .08em; }
}

/* V107 · extractor masivo de resultados Vola */
.vola-bulk-helper {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, .34);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
}
.vola-bulk-helper strong { display: block; margin-top: 3px; font-size: 1rem; letter-spacing: .05em; }
.vola-bulk-helper p { margin: 8px 0 0; max-width: 820px; color: rgba(255,255,255,.72); line-height: 1.55; }
.vola-bulk-helper small { grid-column: 1 / -1; color: rgba(255,255,255,.56); line-height: 1.45; }
body.theme-light .vola-bulk-helper { background: rgba(0,0,0,.025); }
body.theme-light .vola-bulk-helper p { color: rgba(0,0,0,.7); }
body.theme-light .vola-bulk-helper small { color: rgba(0,0,0,.58); }
@media (max-width: 760px) {
  .vola-bulk-helper { grid-template-columns: 1fr; }
  .vola-bulk-helper button { width: 100%; }
  .vola-bulk-helper small { grid-column: 1; }
}


/* V108 · acceso simple al extractor masivo de Vola */
.vola-bulk-helper__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.vola-extractor-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
@media (max-width: 760px) {
  .vola-bulk-helper__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .vola-bulk-helper__actions .secondary-button,
  .vola-bulk-helper__actions .vola-extractor-download {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ========================================================================== 
   V111 · SINCRONIZACIÓN PROFESIONAL DE GALERÍA
   ========================================================================== */
.photo-sync-admin {
  width: min(920px, 88vw);
  margin: 26px auto 0;
  padding: 22px;
  border: 1px solid rgba(212,175,117,.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(212,175,117,.10), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}
.photo-sync-admin__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.photo-sync-admin__heading h2 {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.8vw, 32px);
  letter-spacing: -.035em;
  color: var(--off-white);
}
.photo-sync-admin__state {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.04);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
.photo-sync-admin__state[data-state="ready"] {
  color: #c9f7c9;
  border-color: rgba(119,207,119,.28);
  background: rgba(85,180,85,.08);
}
.photo-sync-admin__state[data-state="building"] {
  color: #f7dda8;
  border-color: rgba(212,175,117,.34);
  background: rgba(212,175,117,.10);
}
.photo-sync-admin__state[data-state="awaiting_confirmation"],
.photo-sync-admin__state[data-state="failed"] {
  color: #ffb7b0;
  border-color: rgba(235,95,83,.34);
  background: rgba(235,95,83,.09);
}
.photo-sync-admin__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}
.photo-sync-admin__metrics > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}
.photo-sync-admin__metrics span,
.photo-sync-admin__metrics strong { display: block; }
.photo-sync-admin__metrics span {
  color: var(--muted-soft);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}
.photo-sync-admin__metrics strong {
  margin-top: 7px;
  overflow: hidden;
  color: var(--off-white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-sync-admin__summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.photo-sync-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.photo-sync-admin__actions .secondary-button {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 8px;
}
.photo-sync-admin__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.photo-sync-admin__hint {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.42);
  font-size: 8px;
  line-height: 1.65;
  letter-spacing: .06em;
}
.photo-sync-admin__hint b { color: rgba(255,255,255,.72); }

html[data-theme="light"] .photo-sync-admin {
  border-color: rgba(135,98,45,.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(177,128,55,.10), transparent 34%),
    rgba(255,255,255,.86);
  box-shadow: 0 24px 70px rgba(76,59,36,.13);
}
html[data-theme="light"] .photo-sync-admin__heading { border-bottom-color: rgba(30,25,18,.08); }
html[data-theme="light"] .photo-sync-admin__heading h2,
html[data-theme="light"] .photo-sync-admin__metrics strong { color: #171512; }
html[data-theme="light"] .photo-sync-admin__metrics > div {
  background: rgba(0,0,0,.025);
  border-color: rgba(30,25,18,.08);
}
html[data-theme="light"] .photo-sync-admin__hint { color: rgba(30,25,18,.48); }
html[data-theme="light"] .photo-sync-admin__hint b { color: rgba(30,25,18,.76); }

@media (max-width: 820px) {
  .photo-sync-admin {
    width: min(92vw, 620px);
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
  }
  .photo-sync-admin__heading {
    display: grid;
    grid-template-columns: 1fr;
  }
  .photo-sync-admin__state { justify-self: start; }
  .photo-sync-admin__metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-sync-admin__actions { display: grid; grid-template-columns: 1fr; }
  .photo-sync-admin__actions .secondary-button { width: 100%; }
}
.photos-page.is-gallery-mode .photo-sync-admin { display: none !important; }

/* ========================================================================== 
   V111 · DIEGOROJASPH SUPER ADMIN · MFA/TOTP
   ========================================================================== */
.super-admin-only-panel { display: none !important; }
body.super-admin-unlocked .super-admin-only-panel { display: block !important; }

.photos-credit-access {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  background: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  cursor: pointer;
  transition: transform .22s ease, opacity .22s ease, filter .22s ease;
}
.photos-credit-access:hover { transform: translateY(-1px); filter: brightness(1.06); }
.photos-credit-access:active { transform: translateY(0) scale(.99); }
.photos-credit-access:focus,
.photos-credit-access:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
  filter: brightness(1.08);
}

.super-admin-modal[hidden] { display: none !important; }
.super-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.super-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,2,2,.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.super-admin-card {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(212,175,117,.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -10%, rgba(212,175,117,.14), transparent 34%),
    linear-gradient(160deg, rgba(20,20,20,.99), rgba(7,7,7,.995));
  box-shadow: 0 40px 140px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.05);
}
.super-admin-card__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.04);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.super-admin-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 6px 42px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.super-admin-heading img {
  width: min(210px, 55vw);
  height: auto;
  margin-bottom: 10px;
}
.super-admin-heading > span {
  color: var(--gold-bright);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .28em;
}
.super-admin-heading h2 {
  margin: 7px 0 0;
  color: var(--off-white);
  font-size: clamp(30px, 5vw, 50px);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .95;
}
.super-admin-heading p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.47);
  font-size: 10px;
  line-height: 1.55;
}
.super-admin-stage { padding-top: 24px; }
.super-admin-stage[hidden] { display: none !important; }
.super-admin-form { display: grid; gap: 14px; }
.super-admin-form label { display: grid; gap: 7px; }
.super-admin-form label > span {
  color: rgba(255,255,255,.48);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
.super-admin-form input,
.super-admin-mfa-form input {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  outline: 0;
  color: #fff;
  background: rgba(255,255,255,.055);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.super-admin-form input { padding: 0 16px; font-size: 13px; }
.super-admin-form input:focus,
.super-admin-mfa-form input:focus {
  border-color: rgba(212,175,117,.62);
  background: rgba(255,255,255,.075);
  box-shadow: 0 0 0 4px rgba(212,175,117,.08);
}
.super-admin-form .primary-button { width: 100%; margin-top: 4px; min-height: 50px; }
.super-admin-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.52);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}
.super-admin-message.is-error { color: #ff9f97; }
.super-admin-message.is-success { color: #aeeeb1; }
.super-admin-security-badge {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 7px 10px;
  border: 1px solid rgba(120,211,135,.22);
  border-radius: 999px;
  color: #b7efc0;
  background: rgba(83,177,98,.07);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}
.super-admin-security-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75d889;
  box-shadow: 0 0 0 4px rgba(117,216,137,.09);
}
.super-admin-stage > h3 {
  margin: 0;
  color: var(--off-white);
  font-size: clamp(22px, 4vw, 34px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.04em;
  text-align: center;
}
.super-admin-stage > p:not(.super-admin-message):not(.super-admin-timeout) {
  width: min(540px, 100%);
  margin: 11px auto 0;
  color: rgba(255,255,255,.53);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}
.super-admin-mfa-form {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(150px, 220px);
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.super-admin-mfa-form input {
  padding: 0 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .25em;
}
.super-admin-mfa-form .primary-button { min-height: 52px; }
.super-admin-text-button {
  display: block;
  margin: 14px auto 0;
  border: 0;
  color: rgba(255,255,255,.42);
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
}
.super-admin-qr {
  display: grid;
  place-items: center;
  width: max-content;
  margin: 20px auto 0;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0,0,0,.34);
}
.super-admin-qr img { display: block; width: min(230px, 58vw); height: auto; }
.super-admin-secret {
  width: min(470px, 100%);
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  color: rgba(255,255,255,.54);
  background: rgba(255,255,255,.025);
  font-size: 9px;
}
.super-admin-secret summary { cursor: pointer; font-weight: 900; letter-spacing: .08em; }
.super-admin-secret p { margin: 10px 0 7px; line-height: 1.5; }
.super-admin-secret code {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
}
.super-admin-hub { padding-top: 20px; }
.super-admin-hub__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(212,175,117,.17);
  border-radius: 20px;
  background: rgba(212,175,117,.045);
}
.super-admin-hub__top h3 {
  margin: 5px 0 0;
  color: var(--off-white);
  font-size: clamp(23px, 4vw, 34px);
  font-style: italic;
  letter-spacing: -.04em;
}
.super-admin-hub__top p { margin: 7px 0 0; color: rgba(255,255,255,.48); font-size: 9px; }
.super-admin-aal {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 70px;
  border: 1px solid rgba(117,216,137,.22);
  border-radius: 16px;
  background: rgba(83,177,98,.06);
}
.super-admin-aal span { color: rgba(255,255,255,.42); font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.super-admin-aal strong { color: #b7efc0; font-size: 18px; letter-spacing: -.02em; }
.super-admin-timeout {
  margin: 12px 3px 0;
  color: rgba(255,255,255,.37);
  font-size: 8px;
  line-height: 1.55;
  text-align: left;
}
.super-admin-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.super-admin-modules button {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  min-height: 90px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  color: #fff;
  background: rgba(255,255,255,.028);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.super-admin-modules button:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,117,.26);
  background: rgba(212,175,117,.055);
}
.super-admin-modules button > span {
  grid-row: 1 / 3;
  align-self: start;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.super-admin-modules button strong { font-size: 10px; font-weight: 950; letter-spacing: .08em; }
.super-admin-modules button small { margin-top: 6px; color: rgba(255,255,255,.42); font-size: 8px; line-height: 1.55; }
.super-admin-hub__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.super-admin-hub__actions > * { width: 100%; min-height: 44px; }
.super-admin-danger-button {
  border: 1px solid rgba(234,92,83,.28);
  border-radius: 12px;
  color: #ffaaa4;
  background: rgba(234,92,83,.07);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  cursor: pointer;
}

html[data-theme="light"] .photos-credit-access { color: inherit; }
html[data-theme="light"] .super-admin-card {
  border-color: rgba(135,98,45,.19);
  background:
    radial-gradient(circle at 50% -10%, rgba(179,128,52,.11), transparent 35%),
    rgba(251,249,245,.995);
  box-shadow: 0 35px 120px rgba(57,46,30,.28);
}
html[data-theme="light"] .super-admin-card__close,
html[data-theme="light"] .super-admin-form input,
html[data-theme="light"] .super-admin-mfa-form input,
html[data-theme="light"] .super-admin-secret,
html[data-theme="light"] .super-admin-modules button {
  border-color: rgba(30,25,18,.11);
  color: #171512;
  background: rgba(30,25,18,.035);
}
html[data-theme="light"] .super-admin-heading { border-bottom-color: rgba(30,25,18,.08); }
html[data-theme="light"] .super-admin-heading h2,
html[data-theme="light"] .super-admin-stage > h3,
html[data-theme="light"] .super-admin-hub__top h3,
html[data-theme="light"] .super-admin-secret code { color: #171512; }
html[data-theme="light"] .super-admin-heading p,
html[data-theme="light"] .super-admin-stage > p:not(.super-admin-message):not(.super-admin-timeout),
html[data-theme="light"] .super-admin-hub__top p,
html[data-theme="light"] .super-admin-timeout,
html[data-theme="light"] .super-admin-modules button small,
html[data-theme="light"] .super-admin-text-button { color: rgba(30,25,18,.52); }
html[data-theme="light"] .super-admin-form label > span { color: rgba(30,25,18,.55); }
html[data-theme="light"] .super-admin-hub__top { border-color: rgba(135,98,45,.17); background: rgba(177,128,55,.055); }

@media (max-width: 700px) {
  .super-admin-modal { padding: 8px; align-items: end; }
  .super-admin-card {
    width: 100%;
    max-height: calc(100dvh - 8px);
    padding: 24px 15px 18px;
    border-radius: 26px 26px 16px 16px;
  }
  .super-admin-heading { padding-inline: 30px; }
  .super-admin-heading img { width: min(190px, 55vw); }
  .super-admin-mfa-form { grid-template-columns: 1fr; }
  .super-admin-mfa-form input { min-height: 58px; font-size: 26px; }
  .super-admin-modules { grid-template-columns: 1fr; }
  .super-admin-hub__top { align-items: flex-start; }
  .super-admin-hub__actions { grid-template-columns: 1fr; }
}

/* ========================================================================== 
   V115 · DIEGOROJASPH CONTROL · gestión avanzada de fotografías por edición
   ========================================================================== */
.super-admin-card { width: min(940px, 94vw); }
.photo-admin-tools {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(212,175,117,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.022);
}
.photo-admin-tools__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.photo-admin-tools__heading > div > span,
.photo-admin-edition > span,
.photo-admin-actions__label,
.photo-admin-review__heading span {
  display: block;
  color: rgba(255,255,255,.42);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .15em;
}
.photo-admin-tools__heading h4 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.02em;
}
.photo-admin-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.035);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .08em;
}
.photo-admin-status[data-state="building"],
.photo-admin-status[data-state="loading"] { color: #f4d79f; border-color: rgba(212,175,117,.26); background: rgba(212,175,117,.07); }
.photo-admin-status[data-state="preview_ready"],
.photo-admin-status[data-state="ready"],
.photo-admin-status[data-state="complete"] { color: #b9efc2; border-color: rgba(117,216,137,.24); background: rgba(83,177,98,.07); }
.photo-admin-status[data-state="awaiting_confirmation"],
.photo-admin-status[data-state="failed"] { color: #ffaaa4; border-color: rgba(234,92,83,.27); background: rgba(234,92,83,.07); }
.photo-admin-edition {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}
.photo-admin-edition select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(212,175,117,.22);
  border-radius: 14px;
  outline: 0;
  color: #fff;
  background: #111;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
}
.photo-admin-edition select:focus {
  border-color: rgba(212,175,117,.6);
  box-shadow: 0 0 0 4px rgba(212,175,117,.07);
}
.photo-admin-edition-info {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}
.photo-admin-edition-info[hidden] { display: none !important; }
.photo-admin-edition-info > div,
.photo-admin-review__metrics > div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.022);
}
.photo-admin-edition-info span,
.photo-admin-review__metrics span {
  display: block;
  color: rgba(255,255,255,.36);
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.4;
}
.photo-admin-edition-info strong,
.photo-admin-review__metrics strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}
.photo-admin-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: 16px;
}
.photo-admin-actions__label { grid-column: 1 / -1; margin-bottom: 1px; }
.photo-admin-actions button {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.028);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}
.photo-admin-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(212,175,117,.28);
  background: rgba(212,175,117,.055);
}
.photo-admin-actions button:disabled { opacity: .32; cursor: not-allowed; }
.photo-admin-actions button strong,
.photo-admin-actions button small { display: block; }
.photo-admin-actions button strong { font-size: 8px; font-weight: 950; letter-spacing: .07em; }
.photo-admin-actions button small { margin-top: 5px; color: rgba(255,255,255,.40); font-size: 7px; line-height: 1.5; }
.photo-admin-actions button.is-danger { border-color: rgba(234,92,83,.20); }
.photo-admin-actions button.is-danger strong { color: #ffaaa4; }
.photo-admin-progress,
.photo-admin-review {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background: rgba(0,0,0,.16);
}
.photo-admin-progress[hidden], .photo-admin-review[hidden] { display: none !important; }
.photo-admin-progress__top,
.photo-admin-review__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photo-admin-progress__top strong { color: #fff; font-size: 8px; letter-spacing: .08em; }
.photo-admin-progress__top span { color: rgba(255,255,255,.48); font-size: 7px; }
.photo-admin-progress__bar {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.photo-admin-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(212,175,117,.72), rgba(241,214,164,.95));
  transition: width .35s ease;
}
.photo-admin-progress p,
.photo-admin-review p,
.photo-admin-message {
  margin: 10px 0 0;
  color: rgba(255,255,255,.46);
  font-size: 8px;
  line-height: 1.6;
}
.photo-admin-review__heading strong { display: block; margin-top: 5px; color: #fff; font-size: 11px; }
.photo-admin-review__heading button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(234,92,83,.23);
  border-radius: 10px;
  color: #ffaaa4;
  background: rgba(234,92,83,.06);
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}
.photo-admin-review__metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
  margin-top: 11px;
}
.photo-admin-message { min-height: 14px; text-align: center; font-weight: 700; }
.photo-admin-message.is-error { color: #ffaaa4; }
.photo-admin-message.is-success { color: #b9efc2; }

html[data-theme="light"] .photo-admin-tools {
  border-color: rgba(135,98,45,.16);
  background: rgba(177,128,55,.025);
}
html[data-theme="light"] .photo-admin-tools__heading h4,
html[data-theme="light"] .photo-admin-edition-info strong,
html[data-theme="light"] .photo-admin-review__metrics strong,
html[data-theme="light"] .photo-admin-review__heading strong,
html[data-theme="light"] .photo-admin-progress__top strong { color: #171512; }
html[data-theme="light"] .photo-admin-tools__heading > div > span,
html[data-theme="light"] .photo-admin-edition > span,
html[data-theme="light"] .photo-admin-actions__label,
html[data-theme="light"] .photo-admin-review__heading span,
html[data-theme="light"] .photo-admin-edition-info span,
html[data-theme="light"] .photo-admin-review__metrics span,
html[data-theme="light"] .photo-admin-progress p,
html[data-theme="light"] .photo-admin-review p,
html[data-theme="light"] .photo-admin-message { color: rgba(30,25,18,.48); }
html[data-theme="light"] .photo-admin-edition select { color: #171512; background: #fff; border-color: rgba(135,98,45,.22); }
html[data-theme="light"] .photo-admin-actions button,
html[data-theme="light"] .photo-admin-edition-info > div,
html[data-theme="light"] .photo-admin-review__metrics > div,
html[data-theme="light"] .photo-admin-progress,
html[data-theme="light"] .photo-admin-review { color: #171512; border-color: rgba(30,25,18,.09); background: rgba(30,25,18,.025); }
html[data-theme="light"] .photo-admin-actions button small { color: rgba(30,25,18,.46); }

@media (max-width: 700px) {
  .photo-admin-tools { padding: 14px; }
  .photo-admin-tools__heading { align-items: flex-start; }
  .photo-admin-edition-info { grid-template-columns: 1fr; }
  .photo-admin-actions { grid-template-columns: 1fr; }
  .photo-admin-review__metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-admin-progress__top, .photo-admin-review__heading { align-items: flex-start; }
}

/* ========================================================================== 
   V125 · CONTROL DE FOTOGRAFÍAS + estabilidad del motor en segundo plano
   ========================================================================== */

/* El acceso CONTROL vive debajo de FOTOGRAFÍAS, igual que CERRAR SESIÓN bajo Mesa. */
.main-nav__photos-stack .photos-control-link {
  min-height: 14px;
  padding: 0;
  color: var(--gold);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}
.main-nav__photos-stack .photos-control-link:hover { color: var(--gold-bright); }

/* Página independiente del Super Admin; el modal queda exclusivamente para login/MFA. */
.photo-admin-page {
  width: min(1180px, calc(100vw - 42px));
  min-height: calc(100dvh - 160px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) 0 54px;
}
.photo-admin-page__hero {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 26px;
}
.photo-admin-security-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
  color: rgba(255,255,255,.48);
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1;
}
.photo-admin-security-inline i {
  width: 1px;
  height: 9px;
  background: rgba(212,175,117,.42);
}
.photo-admin-security-inline strong {
  color: #b9efc2;
  font-size: inherit;
  font-weight: 950;
  letter-spacing: inherit;
}
.photo-admin-page__hero .section-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 7px;
  letter-spacing: .21em;
}
.photo-admin-page__hero h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 58px);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .96;
}
.photo-admin-page .photo-admin-tools {
  margin-top: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 24px;
}
.photo-admin-page .photo-admin-tools__heading h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.025em;
}
.photo-admin-page__footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.photo-admin-page__footer .super-admin-danger-button {
  width: min(330px, 100%);
  min-height: 46px;
}

/* Buscador de fotografías: scrollbar integrado al sistema visual. */
.photos-search-results {
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,117,.72) rgba(255,255,255,.045);
  scrollbar-gutter: stable;
}
.photos-search-results::-webkit-scrollbar { width: 8px; }
.photos-search-results::-webkit-scrollbar-track {
  margin-block: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}
.photos-search-results::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5,5,5,.97);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(241,214,164,.95), rgba(180,139,76,.9));
}
.photos-search-results::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,230,184,1), rgba(201,166,107,1));
}

html[data-theme="light"] .photo-admin-security-inline { color: rgba(30,25,18,.48); }
html[data-theme="light"] .photo-admin-page__hero h1,
html[data-theme="light"] .photo-admin-page .photo-admin-tools__heading h2 { color: #171512; }
html[data-theme="light"] .photos-search-results {
  scrollbar-color: rgba(159,116,53,.72) rgba(30,25,18,.06);
}
html[data-theme="light"] .photos-search-results::-webkit-scrollbar-track { background: rgba(30,25,18,.06); }
html[data-theme="light"] .photos-search-results::-webkit-scrollbar-thumb {
  border-color: rgba(255,255,255,.98);
  background: linear-gradient(180deg, rgba(196,153,85,.9), rgba(145,104,44,.9));
}

@media (max-width: 700px) {
  .photo-admin-page {
    width: min(100% - 20px, 100%);
    min-height: calc(100dvh - 92px);
    padding: 26px 0 calc(34px + env(safe-area-inset-bottom, 0));
  }
  .photo-admin-page__hero { margin-bottom: 18px; }
  .photo-admin-page__hero h1 { font-size: clamp(29px, 10vw, 43px); }
  .photo-admin-page .photo-admin-tools { padding: 14px; border-radius: 20px; }
  .mobile-nav-drawer__links .mobile-nav-drawer__subaction:not([hidden]) {
    min-height: 28px;
    margin-top: -4px;
    padding: 0 0 8px 2px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--gold);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
  }
  .mobile-nav-drawer__links .mobile-nav-drawer__subaction::after {
    content: none;
  }
}

@media (min-width: 821px) {
  .header-actions .main-nav__photos-stack .photos-control-link {
    position: static !important;
    inset: auto !important;
  }
}


/* ========================================================================== 
   V132 · ANÁLISIS DIRIGIDO POR CARPETAS
   ========================================================================== */
.photo-target-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.photo-target-modal[hidden] { display: none !important; }
.photo-target-modal.is-visible { opacity: 1; pointer-events: auto; }
.photo-target-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}
.photo-target-card {
  position: relative;
  z-index: 1;
  width: min(620px, 94vw);
  padding: 22px;
  border: 1px solid rgba(212,175,117,.26);
  border-radius: 22px;
  background: #0c0c0c;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  transform: translateY(10px) scale(.99);
  transition: transform .18s ease;
}
.photo-target-modal.is-visible .photo-target-card { transform: none; }
.photo-target-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.photo-target-card__heading span,
.photo-target-field > span {
  display: block;
  color: rgba(255,255,255,.42);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .15em;
}
.photo-target-card__heading h3 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}
.photo-target-card__heading > button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.035);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.photo-target-card > p {
  margin: 15px 0 0;
  color: rgba(255,255,255,.52);
  font-size: 9px;
  line-height: 1.65;
}
.photo-target-field { display: grid; gap: 8px; margin-top: 17px; }
.photo-target-field textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(212,175,117,.22);
  border-radius: 14px;
  outline: 0;
  color: #fff;
  background: #111;
  font: 800 11px/1.55 inherit;
}
.photo-target-field textarea:focus {
  border-color: rgba(212,175,117,.62);
  box-shadow: 0 0 0 4px rgba(212,175,117,.07);
}
.photo-target-summary {
  margin-top: 9px;
  color: #d4af75;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
}
.photo-target-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.photo-target-actions button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
  cursor: pointer;
}
#photoTargetRun { border-color: rgba(212,175,117,.42); background: rgba(212,175,117,.09); }
.photo-target-actions button:disabled { opacity: .4; cursor: wait; }
.photo-target-message { min-height: 14px; color: #ffaaa4 !important; text-align: center; }
html[data-theme="light"] .photo-target-card { background: #fff; border-color: rgba(135,98,45,.22); }
html[data-theme="light"] .photo-target-card__heading h3,
html[data-theme="light"] .photo-target-field textarea { color: #171512; }
html[data-theme="light"] .photo-target-card__heading span,
html[data-theme="light"] .photo-target-field > span,
html[data-theme="light"] .photo-target-card > p { color: rgba(30,25,18,.50); }
html[data-theme="light"] .photo-target-field textarea { background: #fff; border-color: rgba(135,98,45,.22); }
html[data-theme="light"] .photo-target-card__heading > button,
html[data-theme="light"] .photo-target-actions button { color: #171512; border-color: rgba(30,25,18,.10); background: rgba(30,25,18,.03); }
@media (max-width: 700px) {
  .photo-target-modal { padding: 8px; align-items: end; }
  .photo-target-card { width: 100%; padding: 20px 15px 16px; border-radius: 24px 24px 15px 15px; }
  .photo-target-actions { grid-template-columns: 1fr; }
}

/* ========================================================================== 
   V133 · Centro de sincronización limpio
   ========================================================================== */
.photo-admin-edition-info--compact {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.photo-admin-actions--v133 .photo-admin-global-sync {
  grid-column: 1 / -1;
  min-height: 82px;
  margin-top: 6px;
  border-color: rgba(234,92,83,.42);
  background: linear-gradient(180deg, rgba(104,23,19,.18), rgba(54,8,7,.12));
}
.photo-admin-actions--v133 .photo-admin-global-sync:hover:not(:disabled) {
  border-color: rgba(255,110,101,.64);
  background: linear-gradient(180deg, rgba(126,28,23,.24), rgba(64,9,8,.18));
}
.photo-admin-actions--v133 .photo-admin-global-sync strong { color: #ff8f87; }
.photo-global-warning {
  display: grid;
  gap: 5px;
  margin: 15px 0 2px;
  padding: 13px 14px;
  border: 1px solid rgba(234,92,83,.25);
  border-radius: 13px;
  background: rgba(234,92,83,.055);
}
.photo-global-warning strong {
  color: #ffaaa4;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .12em;
}
.photo-global-warning span {
  color: rgba(255,255,255,.48);
  font-size: 8px;
  line-height: 1.55;
}
.photo-target-actions button.is-danger,
#photoGlobalConfirm {
  border-color: rgba(234,92,83,.34);
  color: #ffaaa4;
  background: rgba(234,92,83,.07);
}
#photoGlobalConfirm:hover:not(:disabled) {
  border-color: rgba(255,110,101,.6);
  background: rgba(234,92,83,.12);
}
html[data-theme="light"] .photo-global-warning {
  border-color: rgba(183,54,45,.18);
  background: rgba(183,54,45,.04);
}
html[data-theme="light"] .photo-global-warning span { color: rgba(30,25,18,.52); }
@media (max-width: 700px) {
  .photo-admin-edition-info--compact { grid-template-columns: 1fr; }
  .photo-admin-actions--v133 .photo-admin-global-sync { grid-column: auto; }
}
\n\n/* ==========================================================================\n   V134 · DIEGOROJASPH CONTROL · composición superior y feedback de sincronización\n   ========================================================================== */\n.photo-admin-security-inline {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  margin: 0 0 11px;\n  padding: 7px 10px;\n  border: 1px solid rgba(117,216,137,.24);\n  border-radius: 999px;\n  color: #b9efc2;\n  background: rgba(83,177,98,.07);\n  font-size: 7px;\n  font-weight: 950;\n  letter-spacing: .08em;\n  line-height: 1;\n}\n.photo-admin-security-inline span,\n.photo-admin-security-inline strong {\n  color: inherit;\n  font: inherit;\n  letter-spacing: inherit;\n}\n.photo-admin-security-inline i {\n  width: auto;\n  height: auto;\n  color: rgba(185,239,194,.58);\n  background: none;\n  font-style: normal;\n}\n.photo-admin-security-inline i::before { content: '|'; }\n\n.photo-admin-page__hero h1 { text-align: center; }\n\n.photo-admin-page .photo-admin-tools__heading {\n  position: relative;\n  display: grid;\n  place-items: center;\n  min-height: 50px;\n  text-align: center;\n}\n.photo-admin-page .photo-admin-tools__heading > div {\n  width: 100%;\n  text-align: center;\n}\n.photo-admin-page .photo-admin-tools__heading > div > span {\n  text-align: center;\n}\n.photo-admin-page .photo-admin-tools__heading h2 {\n  text-align: center;\n}\n.photo-admin-page .photo-admin-tools__heading .photo-admin-status {\n  position: absolute;\n  top: 50%;\n  right: 0;\n  transform: translateY(-50%);\n}\n\n.photo-admin-overview-row {\n  display: grid;\n  grid-template-columns: minmax(340px, 1.45fr) minmax(300px, 1fr);\n  gap: 10px;\n  align-items: end;\n}\n.photo-admin-overview-row .photo-admin-edition {\n  min-width: 0;\n}\n.photo-admin-overview-row .photo-admin-edition-info--compact {\n  grid-template-columns: repeat(2,minmax(0,1fr));\n  margin-top: 17px;\n}\n.photo-admin-overview-row .photo-admin-edition-info > div {\n  min-height: 50px;\n  box-sizing: border-box;\n  display: grid;\n  align-content: center;\n}\n\n.photo-admin-sync-completion {\n  display: grid;\n  gap: 6px;\n  margin-top: 10px;\n  padding: 10px 12px;\n  border: 1px solid rgba(117,216,137,.20);\n  border-radius: 13px;\n  background: linear-gradient(180deg, rgba(83,177,98,.065), rgba(83,177,98,.035));\n}\n.photo-admin-sync-completion[hidden] { display: none !important; }\n.photo-admin-sync-completion__top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n}\n.photo-admin-sync-completion__top span {\n  color: #b9efc2;\n  font-size: 6.5px;\n  font-weight: 950;\n  letter-spacing: .12em;\n}\n.photo-admin-sync-completion__top strong {\n  color: rgba(255,255,255,.62);\n  font-size: 7px;\n  font-weight: 850;\n}\n.photo-admin-sync-completion p {\n  margin: 0;\n  color: rgba(255,255,255,.72);\n  font-size: 8px;\n  font-weight: 800;\n  line-height: 1.45;\n}\n\nhtml[data-theme="light"] .photo-admin-security-inline {\n  color: #28793a;\n  border-color: rgba(40,121,58,.22);\n  background: rgba(40,121,58,.06);\n}\nhtml[data-theme="light"] .photo-admin-security-inline i { color: rgba(40,121,58,.46); }\nhtml[data-theme="light"] .photo-admin-sync-completion {\n  border-color: rgba(40,121,58,.18);\n  background: rgba(40,121,58,.045);\n}\nhtml[data-theme="light"] .photo-admin-sync-completion__top span { color: #28793a; }\nhtml[data-theme="light"] .photo-admin-sync-completion__top strong,\nhtml[data-theme="light"] .photo-admin-sync-completion p { color: rgba(30,25,18,.68); }\n\n@media (max-width: 820px) {\n  .photo-admin-page .photo-admin-tools__heading {\n    padding-top: 2px;\n    padding-bottom: 34px;\n  }\n  .photo-admin-page .photo-admin-tools__heading .photo-admin-status {\n    top: auto;\n    right: 50%;\n    bottom: 0;\n    transform: translateX(50%);\n  }\n  .photo-admin-overview-row {\n    grid-template-columns: 1fr;\n  }\n  .photo-admin-overview-row .photo-admin-edition-info--compact {\n    margin-top: 0;\n    grid-template-columns: repeat(2,minmax(0,1fr));\n  }\n}\n\n@media (max-width: 520px) {\n  .photo-admin-overview-row .photo-admin-edition-info--compact {\n    grid-template-columns: 1fr 1fr;\n  }\n  .photo-admin-sync-completion__top {\n    align-items: flex-start;\n    flex-direction: column;\n    gap: 4px;\n  }\n}\n

/* ========================================================================== 
   V135 · CONTROL UI · HARD OVERRIDES + CACHE-SAFE BUILD
   ========================================================================== */
#photoAdminView .photo-admin-page__hero {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
}
#photoAdminView .photo-admin-security-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: max-content !important;
  margin: 0 auto 10px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(117,216,137,.24) !important;
  border-radius: 999px !important;
  color: #b9efc2 !important;
  background: rgba(83,177,98,.07) !important;
  font-size: 7px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
}
#photoAdminView .photo-admin-security-inline i {
  width: auto !important;
  height: auto !important;
  background: none !important;
  color: rgba(185,239,194,.62) !important;
}
#photoAdminView .photo-admin-security-inline i::before { content: '|' !important; }
#photoAdminView .photo-admin-page__hero h1 {
  width: 100% !important;
  text-align: center !important;
}
#photoAdminView .photo-admin-tools__heading {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  min-height: 54px !important;
  text-align: center !important;
}
#photoAdminView .photo-admin-tools__heading > div,
#photoAdminView .photo-admin-tools__heading > div > span,
#photoAdminView #photoAdminToolsTitle {
  width: 100% !important;
  text-align: center !important;
}
#photoAdminView .photo-admin-tools__heading .photo-admin-status {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
}
#photoAdminView .photo-admin-overview-row {
  display: grid !important;
  grid-template-columns: minmax(360px, 1.55fr) minmax(320px, .95fr) !important;
  align-items: end !important;
  gap: 10px !important;
}
#photoAdminView .photo-admin-overview-row .photo-admin-edition {
  min-width: 0 !important;
  margin: 0 !important;
}
#photoAdminView .photo-admin-overview-row .photo-admin-edition select {
  width: 100% !important;
}
#photoAdminView .photo-admin-overview-row .photo-admin-edition-info--compact {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}
#photoAdminView .photo-admin-overview-row .photo-admin-edition-info--compact[hidden] {
  display: none !important;
}
#photoAdminView .photo-admin-overview-row .photo-admin-edition-info--compact > div {
  min-height: 56px !important;
  display: grid !important;
  align-content: center !important;
  box-sizing: border-box !important;
}
#photoAdminView .photo-admin-sync-completion {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(117,216,137,.22) !important;
  border-radius: 13px !important;
  background: rgba(83,177,98,.055) !important;
}
#photoAdminView .photo-admin-sync-completion[hidden] { display: none !important; }
@media (max-width: 820px) {
  #photoAdminView .photo-admin-tools__heading {
    padding-bottom: 34px !important;
  }
  #photoAdminView .photo-admin-tools__heading .photo-admin-status {
    top: auto !important;
    right: 50% !important;
    bottom: 0 !important;
    transform: translateX(50%) !important;
  }
  #photoAdminView .photo-admin-overview-row {
    grid-template-columns: 1fr !important;
  }
  #photoAdminView .photo-admin-overview-row .photo-admin-edition-info--compact {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
