/*
 * LFPZ_MODERN_V2
 * Rediseño visual global de Liga Fantástica PZ.
 * Capa exclusivamente estética: no modifica datos, reglas ni lógica.
 */

:root {
  --lf-navy-950: #061b3a;
  --lf-navy-900: #08244b;
  --lf-navy-800: #0b3569;
  --lf-blue-700: #075fbd;
  --lf-blue-600: #0875e1;
  --lf-blue-100: #e8f2ff;
  --lf-gold-500: #f3bf2c;
  --lf-gold-300: #ffda6e;
  --lf-red-600: #bb2539;
  --lf-green-700: #13734a;
  --lf-green-600: #168858;
  --lf-green-100: #e8f7ef;
  --lf-ink: #0b1f3a;
  --lf-muted: #637087;
  --lf-line: #dce3ee;
  --lf-line-strong: #c8d3e2;
  --lf-surface: #ffffff;
  --lf-surface-soft: #f5f8fc;
  --lf-bg: #edf2f8;
  --lf-radius-sm: 10px;
  --lf-radius: 16px;
  --lf-radius-lg: 22px;
  --lf-shadow-sm: 0 4px 14px rgba(9, 31, 64, 0.07);
  --lf-shadow: 0 18px 50px rgba(9, 31, 64, 0.1);
  --lf-focus: 0 0 0 4px rgba(8, 117, 225, 0.18);
}

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

body {
  min-width: 0;
  margin: 0;
  color: var(--lf-ink);
  background:
    radial-gradient(circle at 6% 2%, rgba(8, 117, 225, 0.09), transparent 25rem),
    radial-gradient(circle at 96% 18%, rgba(243, 191, 44, 0.1), transparent 24rem),
    var(--lf-bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 0;
  box-shadow: var(--lf-focus) !important;
}

.site {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topline {
  height: 5px;
  background:
    linear-gradient(
      90deg,
      var(--lf-blue-600) 0 68%,
      var(--lf-gold-500) 68% 78%,
      var(--lf-red-600) 78% 86%,
      #ffffff 86% 100%
    );
}

.header {
  position: relative;
  min-height: 214px;
  padding: 44px 42px 38px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 12%, rgba(59, 151, 255, 0.32), transparent 24rem),
    linear-gradient(125deg, var(--lf-navy-950), var(--lf-navy-800) 58%, #07528f);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -96px;
  width: 510px;
  height: 245px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.header::after {
  content: "";
  position: absolute;
  right: 125px;
  bottom: -126px;
  width: 245px;
  height: 245px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.11) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(255, 255, 255, 0.11) 49.6% 50.4%, transparent 50.4%);
}

.brandrow {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 900px;
  gap: 28px;
  align-items: center;
}

.pz-logo-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 14px;
}

.pz-logo-img {
  display: block;
  width: min(295px, 28vw);
  max-width: 100%;
  height: auto;
  padding: 7px 10px;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(2, 15, 34, 0.25);
}

.brand {
  min-width: 0;
  padding: 0 0 0 28px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.brand small {
  display: block;
  margin-bottom: 8px;
  color: #a9d3ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-shadow: none;
}

.brand h2 {
  margin: 13px 0 0;
  color: var(--lf-gold-300);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.season-badge {
  position: absolute;
  right: 42px;
  bottom: 33px;
  z-index: 3;
  min-height: 38px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: none;
  backdrop-filter: blur(12px);
}

.account-bar {
  position: absolute;
  top: 18px;
  right: 42px;
  z-index: 4;
  display: flex;
  max-width: calc(100% - 84px);
  min-height: 38px;
  padding: 5px 6px 5px 12px;
  gap: 6px;
  align-items: center;
  color: #d9e9fb;
  background: rgba(2, 18, 42, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 11px;
  backdrop-filter: blur(14px);
}

.account-bar strong {
  color: #ffffff;
}

.account-bar .btn {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 10px;
}

.server-status {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.nav {
  position: relative;
  z-index: 8;
  display: flex;
  min-height: 66px;
  padding: 10px 36px;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  background: var(--lf-surface);
  border: 0;
  border-bottom: 1px solid var(--lf-line);
  box-shadow: 0 8px 25px rgba(7, 31, 62, 0.05);
  scrollbar-width: thin;
}

.nav button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  color: #526077;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav button:hover {
  color: var(--lf-navy-900);
  background: var(--lf-surface-soft);
}

.nav button.active {
  color: #ffffff;
  background: var(--lf-blue-700);
  box-shadow: 0 8px 20px rgba(7, 95, 189, 0.22);
}

.nav button:active {
  transform: translateY(1px);
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 30px 42px;
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.content {
  min-width: 0;
}

.box,
.panel {
  overflow: hidden;
  background: var(--lf-surface);
  border: 1px solid rgba(199, 211, 226, 0.82);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow-sm);
}

.box {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: var(--lf-shadow);
}

.box-title {
  padding: 16px 17px 11px;
  color: var(--lf-muted);
  background: var(--lf-surface);
  border: 0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.box-body {
  padding: 4px 17px 18px;
  color: #445169;
  font-size: 12px;
  line-height: 1.55;
}

.user-card {
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0, rgba(53, 148, 255, 0.35), transparent 13rem),
    var(--lf-navy-900);
  border: 0;
}

.user-card .box-title {
  color: #a9d3ff;
  background: transparent;
}

.user-card .box-body,
.user-card .box-body span {
  color: #dbe9f8;
}

.user-card strong {
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini-stat {
  display: flex;
  min-height: 39px;
  padding: 9px 0;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--lf-line);
}

.mini-stat:last-child {
  border-bottom: 0;
}

.user-card .mini-stat {
  border-color: rgba(255, 255, 255, 0.1);
}

.mini-stat b {
  color: var(--lf-navy-900);
  font-weight: 800;
}

.user-card .mini-stat b {
  color: var(--lf-gold-300);
}

.notice {
  padding: 13px 14px;
  color: #625116;
  background: #fff9df;
  border: 1px solid #f1dfa0;
  border-radius: var(--lf-radius-sm);
  font-size: 11px;
  line-height: 1.55;
}

.btn {
  min-height: 42px;
  padding: 10px 15px;
  color: #ffffff;
  background: var(--lf-blue-700);
  border: 1px solid transparent;
  border-radius: var(--lf-radius-sm);
  box-shadow: 0 8px 18px rgba(7, 95, 189, 0.18);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    opacity 150ms ease;
}

.btn:hover {
  filter: none;
  background: var(--lf-blue-600);
  box-shadow: 0 11px 24px rgba(7, 95, 189, 0.24);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  color: var(--lf-navy-800);
  background: #ffffff;
  border-color: var(--lf-line-strong);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--lf-surface-soft);
  border-color: #aebed3;
}

.btn.danger {
  color: #ffffff;
  background: var(--lf-red-600);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(187, 37, 57, 0.18);
}

.btn.danger:hover {
  background: #d32b41;
}

.btn.gold {
  color: var(--lf-navy-950);
  background: var(--lf-gold-500);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(243, 191, 44, 0.2);
}

.btn.gold:hover {
  background: #ffcb35;
  box-shadow: 0 11px 24px rgba(243, 191, 44, 0.28);
}

.btn[disabled] {
  opacity: 0.42;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.panel {
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  min-height: 68px;
  padding: 17px 20px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--lf-ink);
  background: var(--lf-surface);
  border: 0;
  border-bottom: 1px solid var(--lf-line);
}

.panel-head h3 {
  margin: 0;
  color: var(--lf-ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.panel-head > span:not(.badge) {
  color: var(--lf-muted);
  font-size: 11px;
  font-weight: 700;
}

.panel-body {
  padding: 20px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 322px;
  margin-bottom: 20px;
  padding: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 38px;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 24%, rgba(8, 117, 225, 0.34), transparent 22rem),
    linear-gradient(135deg, var(--lf-navy-950), var(--lf-navy-800) 68%, #07518f);
  border: 0;
  border-radius: var(--lf-radius-lg);
  box-shadow: var(--lf-shadow);
}

.hero::before {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -185px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 46%;
  top: -15%;
  bottom: auto;
  width: 1px;
  height: 130%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.16), transparent);
  border: 0;
  transform: rotate(12deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h3 {
  margin: 0 0 15px;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(34px, 4.3vw, 55px);
  font-weight: 870;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: none;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: #d9e9f9;
  font-size: 14px;
  line-height: 1.65;
}

.hero .actions {
  display: flex;
  margin-top: 24px;
  gap: 10px;
  flex-wrap: wrap;
}

.hero .actions .btn {
  min-height: 46px;
  padding-inline: 18px;
}

.hero .actions .btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero .actions .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.archive-original {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 9px;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 22px 45px rgba(0, 10, 30, 0.28);
  transform: rotate(1deg);
}

.archive-original img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 8px;
}

.archive-original figcaption {
  padding: 10px 6px 4px;
  color: var(--lf-navy-800);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.archive-original figcaption span {
  color: var(--lf-muted);
  font-weight: 600;
}

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

.news {
  position: relative;
  min-height: 148px;
  padding: 20px;
  overflow: hidden;
  background: var(--lf-surface-soft);
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--lf-blue-600);
}

.news:hover {
  border-color: #bad0e9;
  transform: translateY(-2px);
}

.news time {
  color: var(--lf-blue-700);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.news h4 {
  margin: 8px 0 7px;
  color: var(--lf-ink);
  font-size: 15px;
  font-weight: 800;
}

.news p {
  margin: 0;
  color: var(--lf-muted);
  font-size: 11px;
  line-height: 1.65;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  min-height: 30px;
  padding: 7px 10px;
  color: #445169;
  background: var(--lf-surface-soft);
  border: 1px solid var(--lf-line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
}

.badge.good {
  color: var(--lf-green-700);
  background: var(--lf-green-100);
  border-color: #b7e5ce;
}

.badge.warn {
  color: #745608;
  background: #fff7d8;
  border-color: #f0dc91;
}

.badge.blue {
  color: var(--lf-blue-700);
  background: var(--lf-blue-100);
  border-color: #bdd8f5;
}

.toolbar {
  display: flex;
  margin-bottom: 16px;
  padding: 12px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--lf-surface-soft);
  border: 1px solid var(--lf-line);
  border-radius: 13px;
}

.toolbar input,
.toolbar select,
.auth-grid input,
.score-input,
.modal-body input,
.modal-body select {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--lf-ink);
  background: #ffffff;
  border: 1px solid var(--lf-line-strong);
  border-radius: var(--lf-radius-sm);
  box-shadow: inset 0 1px 2px rgba(8, 36, 75, 0.025);
}

.toolbar input::placeholder,
.auth-grid input::placeholder,
.modal-body input::placeholder {
  color: #8a95a8;
}

.toolbar input:focus,
.toolbar select:focus,
.auth-grid input:focus,
.score-input:focus,
.modal-body input:focus,
.modal-body select:focus {
  border-color: var(--lf-blue-600);
  outline: 0;
  box-shadow: var(--lf-focus);
}

.toolbar input {
  flex: 1;
  min-width: 210px;
}

.pitch-wrap {
  display: grid;
  grid-template-columns: minmax(430px, 1.25fr) minmax(270px, 0.75fr);
  gap: 20px;
}

.pitch {
  position: relative;
  min-height: 640px;
  padding: 25px 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(255, 255, 255, 0.72) 49.85% 50.15%, transparent 50.15%),
    repeating-linear-gradient(90deg, #1b8b58 0 64px, #168052 64px 128px);
  border: 8px solid #f7fbf8;
  border-radius: 18px;
  outline: 1px solid #c8d9d0;
  box-shadow:
    inset 0 0 55px rgba(4, 50, 31, 0.2),
    0 14px 30px rgba(8, 50, 34, 0.14);
}

.pitch::before {
  width: 132px;
  height: 132px;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.pitch::after {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.line {
  gap: 9px;
}

.line.gk {
  margin-bottom: 78px;
}

.line.def {
  margin-bottom: 99px;
}

.line.mid {
  margin-bottom: 98px;
}

.player-slot {
  width: 100px;
  min-height: 86px;
  color: #ffffff;
  font-size: 9px;
  transition: transform 160ms ease;
}

.player-slot:hover {
  transform: translateY(-3px);
}

.shirt {
  width: 60px;
  height: 40px;
  margin-bottom: 6px;
  filter: drop-shadow(0 5px 4px rgba(0, 28, 17, 0.34));
}

.shirt::before {
  left: 4px;
  width: 52px;
  height: 27px;
}

.shirt .kit-crest {
  left: 17px;
  top: 7px;
}

.shirt .kit-sponsor {
  top: 15px;
}

.shirt .kit-hem {
  left: 19px;
  width: 22px;
  height: 13px;
}

.shirt.empty::before {
  background: rgba(5, 57, 35, 0.32);
  border: 2px dashed rgba(255, 255, 255, 0.72);
}

.shirt.captain::after {
  right: -1px;
  top: 8px;
  width: 20px;
  height: 20px;
  color: var(--lf-navy-950);
  background: var(--lf-gold-500);
  border: 2px solid #ffffff;
  line-height: 16px;
}

.player-slot b {
  max-width: 100%;
  padding: 5px 7px;
  overflow: hidden;
  color: #ffffff;
  background: rgba(3, 27, 47, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.player-slot small {
  margin-top: 4px;
  color: #fff0ad;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.squad-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.rule-meter {
  padding: 16px;
  color: #445169;
  background: var(--lf-surface-soft);
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  font-size: 11px;
}

.meter-row {
  min-height: 35px;
  margin: 0;
  padding: 8px 0;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--lf-line);
}

.meter-row:last-child {
  border-bottom: 0;
}

.meter-row b {
  color: var(--lf-ink);
}

.progress {
  height: 8px;
  margin: 7px 0 10px;
  overflow: hidden;
  background: #dfe6ef;
  border: 0;
  border-radius: 999px;
}

.progress i {
  background: linear-gradient(90deg, var(--lf-blue-700), #34a4ff);
  border-radius: inherit;
}

.player-list {
  max-height: 590px;
  overflow: auto;
  background: var(--lf-surface-soft);
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  scrollbar-color: #b9c7d8 transparent;
  scrollbar-width: thin;
}

.player-row,
.score-row,
.participant-card,
.transfer-row {
  min-height: 66px;
  padding: 12px 14px;
  gap: 12px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lf-line);
  font-size: 11px;
}

.player-row:nth-child(even),
.score-row:nth-child(even),
.participant-card:nth-child(even),
.transfer-row:nth-child(even) {
  background: #fbfcfe;
}

.player-row:hover,
.score-row:hover,
.participant-card:hover,
.transfer-row:hover {
  background: #f3f8ff;
}

.player-row:last-child,
.score-row:last-child,
.participant-card:last-child,
.transfer-row:last-child {
  border-bottom: 0;
}

.player-row b,
.participant-card b {
  color: var(--lf-ink);
  font-size: 12px;
}

.player-row small,
.participant-card small,
.transfer-row small {
  color: var(--lf-muted);
  line-height: 1.45;
}

.position {
  min-width: 34px;
  margin-right: 8px;
  padding: 4px 6px;
  color: #ffffff;
  background: #65758a;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.position.POR {
  background: #b18300;
}

.position.DEF {
  background: #1769aa;
}

.position.MED {
  background: #168054;
}

.position.DEL {
  background: #b43c4a;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}

th {
  padding: 13px 14px;
  color: #738097;
  background: var(--lf-surface-soft);
  border: 0;
  border-bottom: 1px solid var(--lf-line);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  padding: 14px;
  color: #344159;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lf-line);
}

tbody tr:nth-child(even),
tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

tbody tr.me,
tbody tr.me td {
  background: #fff8d9;
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.rank {
  color: var(--lf-blue-700);
  font-size: 13px;
  font-weight: 850;
}

.rules {
  display: grid;
  gap: 12px;
  counter-reset: rule;
}

.rule {
  position: relative;
  min-height: 72px;
  padding: 18px 18px 18px 64px;
  color: #445169;
  background: var(--lf-surface-soft);
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.65;
}

.rule b {
  color: var(--lf-ink);
}

.rule::before {
  left: 17px;
  top: 17px;
  width: 31px;
  height: 31px;
  color: #ffffff;
  background: var(--lf-blue-700);
  border-radius: 9px;
  font-size: 11px;
  line-height: 31px;
  box-shadow: 0 7px 14px rgba(7, 95, 189, 0.18);
}

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

.admin-card {
  min-height: 170px;
  padding: 18px;
  color: #526077;
  background: var(--lf-surface-soft);
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.6;
}

.admin-card h4 {
  margin: 0 0 10px;
  color: var(--lf-ink);
  font-size: 15px;
  font-weight: 800;
}

.score-help {
  padding: 15px 16px;
  margin-bottom: 14px;
  color: #315271;
  background: var(--lf-blue-100);
  border: 1px solid #c3dcf7;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.65;
}

.score-input {
  width: 100%;
  min-height: 42px;
  text-align: center;
  font-weight: 800;
}

.score-summary {
  padding: 13px 15px;
  margin-top: 14px;
  color: #675214;
  background: #fff9df;
  border: 1px solid #f1dfa0;
  border-radius: 12px;
}

.participant-actions {
  margin-bottom: 14px;
  gap: 9px;
}

.lineup-tags {
  gap: 6px;
}

.lineup-tag {
  padding: 5px 8px;
  color: var(--lf-blue-700);
  background: var(--lf-blue-100);
  border: 1px solid #c3dcf7;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.status-pill {
  margin-left: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.status-pill.transfer {
  color: #705508;
  background: #fff6cf;
  border-color: #ecd782;
}

.status-pill.out {
  color: #982236;
  background: #fdecef;
  border-color: #f1b8c2;
}

.squad-alert {
  padding: 12px 13px;
  margin: 8px 0;
  color: #675214;
  background: #fff9df;
  border: 1px solid #f1dfa0;
  border-radius: 10px;
}

.squad-alert.danger {
  color: #8c1f31;
  background: #fdecef;
  border-color: #f1b8c2;
}

.transfer-log {
  max-height: 250px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--lf-line);
  border-radius: 12px;
}

.transfer-log-entry {
  padding: 11px 13px;
  border-bottom: 1px solid var(--lf-line);
  line-height: 1.55;
}

.modal {
  padding: 20px;
  background: rgba(4, 17, 38, 0.74);
  backdrop-filter: blur(7px);
}

.modal-card {
  width: min(610px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: #ffffff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 10, 28, 0.34);
}

.modal-head {
  min-height: 64px;
  padding: 15px 18px;
  color: #ffffff;
  background: var(--lf-navy-900);
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.modal-head button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.modal-head button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal-body {
  padding: 20px;
  color: #445169;
  line-height: 1.6;
}

.auth-grid {
  gap: 13px;
}

.auth-grid label {
  gap: 6px;
  color: var(--lf-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.auth-links {
  margin-top: 14px;
  gap: 12px;
  font-size: 10px;
}

.auth-links button {
  min-height: 36px;
  padding: 5px;
  color: var(--lf-blue-700);
  font-weight: 750;
}

.toast {
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  color: #ffffff;
  background: var(--lf-navy-900);
  border: 0;
  border-left: 4px solid var(--lf-gold-500);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 17, 42, 0.28);
  font-size: 11px;
  line-height: 1.5;
}

.footer {
  padding: 27px 24px;
  color: #adc3dd;
  background: var(--lf-navy-950);
  border: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

/* Cobertura visual de páginas auxiliares y administración independiente. */
body > form,
body > main,
body > .container,
body > .admin-shell {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

fieldset {
  margin: 0 0 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--lf-line);
  border-radius: 14px;
}

legend {
  padding: 0 7px;
  color: var(--lf-navy-800);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .header {
    padding-right: 30px;
    padding-left: 30px;
  }

  .account-bar,
  .season-badge {
    right: 30px;
  }

  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    padding: 30px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  }

  .pitch-wrap {
    grid-template-columns: 1fr;
  }

  .squad-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .squad-side .rule-meter,
  .squad-side #squadAlerts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 850px) {
  .header {
    min-height: auto;
    padding: 74px 22px 24px;
  }

  .account-bar {
    position: absolute;
    top: 15px;
    right: 18px;
    left: 18px;
    width: auto;
    max-width: none;
    margin: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .account-bar > span,
  .account-bar .btn {
    flex: 0 0 auto;
  }

  .brandrow {
    gap: 18px;
    align-items: center;
  }

  .pz-logo-img {
    width: min(255px, 36vw);
  }

  .brand {
    padding-left: 18px;
  }

  .brand h1 {
    font-size: clamp(30px, 7vw, 48px);
  }

  .season-badge {
    position: static;
    display: inline-flex;
    margin: 20px 0 0;
  }

  .nav {
    padding-right: 18px;
    padding-left: 18px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 34px;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar > .notice {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .archive-original {
    width: min(380px, 100%);
    transform: none;
  }

  .pitch {
    min-height: 600px;
  }
}

@media (max-width: 620px) {
  .header {
    padding: 76px 16px 22px;
  }

  .brandrow {
    display: grid;
    gap: 17px;
  }

  .pz-logo-img {
    width: min(270px, 75vw);
  }

  .brand {
    padding: 0;
    border: 0;
  }

  .brand small {
    font-size: 9px;
  }

  .brand h1 {
    font-size: clamp(34px, 12vw, 47px);
  }

  .brand h2 {
    font-size: 10px;
    line-height: 1.5;
  }

  .season-badge {
    margin-top: 17px;
    font-size: 9px;
  }

  .nav {
    min-height: 62px;
    padding: 9px 12px;
    gap: 4px;
  }

  .nav button {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 11px;
  }

  .layout {
    padding: 14px 10px 28px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar > .notice {
    grid-column: auto;
  }

  .box,
  .panel {
    border-radius: 14px;
  }

  .panel {
    margin-bottom: 14px;
  }

  .panel-head {
    min-height: 60px;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head h3 {
    font-size: 18px;
  }

  .panel-head > div {
    display: flex;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .panel-head > div .btn {
    flex: 1 1 130px;
  }

  .panel-body {
    padding: 14px;
  }

  .hero {
    min-height: 0;
    margin-bottom: 14px;
    padding: 25px 19px 20px;
    gap: 24px;
    border-radius: 17px;
  }

  .hero h3 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .hero p {
    font-size: 13px;
  }

  .hero .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero .actions .btn {
    width: 100%;
  }

  .newsgrid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .news {
    min-height: 0;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .toolbar input,
  .toolbar select,
  .toolbar .btn {
    width: 100%;
    min-width: 0;
  }

  .pitch-wrap {
    gap: 14px;
  }

  .pitch {
    min-width: 0;
    min-height: 530px;
    padding: 18px 2px;
    border-width: 5px;
    border-radius: 14px;
  }

  .line {
    gap: 1px;
  }

  .line.gk {
    margin-bottom: 58px;
  }

  .line.def {
    margin-bottom: 77px;
  }

  .line.mid {
    margin-bottom: 76px;
  }

  .player-slot {
    width: min(22vw, 82px);
    min-width: 0;
  }

  .shirt {
    width: 50px;
    transform: scale(0.92);
  }

  .player-slot b {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 8px;
  }

  .squad-side {
    grid-template-columns: 1fr;
  }

  .squad-side .rule-meter,
  .squad-side #squadAlerts {
    grid-column: auto;
  }

  .player-list {
    max-height: 67vh;
  }

  .player-row,
  .score-row,
  .participant-card,
  .transfer-row {
    min-height: 70px;
    padding: 11px;
  }

  .player-row .btn,
  .transfer-row .btn {
    min-width: 72px;
  }

  .participant-card {
    grid-template-columns: 1fr;
  }

  .lineup-tags {
    justify-content: flex-start;
  }

  .rules {
    gap: 9px;
  }

  .rule {
    padding: 55px 14px 16px;
  }

  .rule::before {
    left: 14px;
    top: 14px;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    max-height: 94vh;
    border-radius: 15px;
  }

  .modal-body {
    padding: 15px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .account-bar {
    right: 10px;
    left: 10px;
  }

  .header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .layout {
    padding-right: 7px;
    padding-left: 7px;
  }

  .pitch {
    min-height: 500px;
  }

  .line.gk {
    margin-bottom: 50px;
  }

  .line.def {
    margin-bottom: 68px;
  }

  .line.mid {
    margin-bottom: 67px;
  }

  .player-slot {
    width: min(22vw, 76px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* LFPZ_KITS_V21 */
/*
 * Minicamisetas modernas para el once.
 * Mantiene las variables de colores y escudos de cada club.
 */

.pitch {
  min-height: 680px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.line.gk {
  margin-bottom: 74px;
}

.line.def {
  margin-bottom: 92px;
}

.line.mid {
  margin-bottom: 91px;
}

.player-slot {
  width: 106px;
  min-height: 98px;
}

.shirt {
  position: relative;
  width: 78px;
  height: 59px;
  margin: 0 auto 8px;
  overflow: visible;
  background: transparent;
  border: 0;
  filter:
    drop-shadow(0 3px 1px rgba(0, 20, 12, 0.16))
    drop-shadow(0 8px 7px rgba(0, 25, 15, 0.28));
  transform-origin: 50% 75%;
  transition: transform 160ms ease, filter 160ms ease;
}

.player-slot:hover .shirt {
  filter:
    drop-shadow(0 4px 2px rgba(0, 20, 12, 0.18))
    drop-shadow(0 11px 9px rgba(0, 25, 15, 0.3));
  transform: translateY(-3px) scale(1.04);
}

.shirt::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 4px;
  width: 70px;
  height: 53px;
  background:
    linear-gradient(
      103deg,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.08) 23%,
      transparent 43%,
      rgba(0, 0, 0, 0.05) 68%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      transparent 42%,
      rgba(0, 0, 0, 0.08)
    ),
    var(
      --kit-bg,
      linear-gradient(
        90deg,
        #ffffff 0 42%,
        #2e79bc 42% 58%,
        #ffffff 58%
      )
    );
  border: 0;
  border-radius: 4px 4px 7px 7px;
  clip-path: polygon(
    23% 3%,
    36% 0,
    43% 8%,
    57% 8%,
    64% 0,
    77% 3%,
    100% 20%,
    88% 43%,
    77% 36%,
    77% 100%,
    23% 100%,
    23% 36%,
    12% 43%,
    0 20%
  );
  box-shadow:
    inset 0 0 0 1px rgba(4, 24, 39, 0.16),
    inset 0 -7px 11px rgba(0, 0, 0, 0.1);
}

.shirt .kit-crest {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 23px;
  width: 8px;
  height: 10px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent 48%),
    var(--kit-crest, #ffffff);
  border: 1px solid rgba(3, 23, 39, 0.38);
  border-radius: 50% 50% 45% 45% / 36% 36% 64% 64%;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.shirt .kit-crest::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  height: 2px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 50%;
}

.shirt .kit-sponsor {
  position: absolute;
  z-index: 4;
  top: 30px;
  left: 50%;
  width: 27px;
  height: 4px;
  background: var(--kit-sponsor, rgba(10, 35, 60, 0.58));
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
  opacity: 0.86;
  transform: translateX(-50%);
}

.shirt .kit-sponsor::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -27px;
  width: 15px;
  height: 8px;
  background: rgba(7, 24, 38, 0.5);
  border: 2px solid var(--kit-border, rgba(255, 255, 255, 0.82));
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 -2px 2px rgba(255, 255, 255, 0.13);
  transform: translateX(-50%);
}

.shirt .kit-sponsor::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 31px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}

.shirt .kit-hem {
  display: none;
}

.shirt.captain::after {
  content: "C";
  position: absolute;
  z-index: 7;
  top: 7px;
  right: 0;
  display: grid;
  width: 23px;
  height: 23px;
  padding: 0;
  place-items: center;
  color: #061b3a;
  background: #f3bf2c;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(0, 24, 15, 0.3);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.shirt .kit-alert {
  position: absolute;
  z-index: 8;
  top: 7px;
  left: 1px;
  width: 23px;
  height: 23px;
  color: #ffffff;
  background: #bb2539;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(0, 24, 15, 0.3);
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  line-height: 19px;
  text-align: center;
}

.shirt.inactive {
  filter:
    grayscale(0.88)
    opacity(0.65)
    drop-shadow(0 5px 5px rgba(0, 25, 15, 0.28));
}

.shirt.empty {
  width: 78px;
  height: 59px;
}

.shirt.empty::before {
  display: block;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.11),
      rgba(3, 48, 29, 0.24)
    );
  border: 2px dashed rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.shirt.empty::after {
  content: "+";
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(3, 42, 26, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transform: translateX(-50%);
}

@media (max-width: 620px) {
  .pitch {
    min-height: 570px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .line.gk {
    margin-bottom: 55px;
  }

  .line.def {
    margin-bottom: 73px;
  }

  .line.mid {
    margin-bottom: 72px;
  }

  .player-slot {
    width: min(23vw, 84px);
    min-height: 86px;
  }

  .shirt,
  .shirt.empty {
    width: 66px;
    height: 51px;
    margin-bottom: 6px;
    transform: none;
  }

  .player-slot:hover .shirt {
    transform: none;
  }

  .shirt::before {
    left: 3px;
    width: 60px;
    height: 46px;
  }

  .shirt .kit-crest {
    top: 12px;
    left: 20px;
    width: 7px;
    height: 9px;
  }

  .shirt .kit-sponsor {
    top: 26px;
    width: 23px;
  }

  .shirt .kit-sponsor::before {
    top: -23px;
    width: 13px;
    height: 7px;
  }

  .shirt .kit-sponsor::after {
    top: 9px;
    width: 27px;
  }

  .shirt.captain::after,
  .shirt .kit-alert {
    top: 5px;
    width: 21px;
    height: 21px;
    font-size: 10px;
  }

  .shirt .kit-alert {
    line-height: 17px;
  }

  .shirt.empty::after {
    top: 12px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 390px) {
  .pitch {
    min-height: 545px;
  }

  .line.gk {
    margin-bottom: 48px;
  }

  .line.def {
    margin-bottom: 65px;
  }

  .line.mid {
    margin-bottom: 64px;
  }

  .shirt,
  .shirt.empty {
    width: 61px;
    height: 48px;
  }

  .shirt::before {
    width: 56px;
    height: 43px;
  }

  .shirt .kit-crest {
    top: 11px;
    left: 19px;
  }

  .shirt .kit-sponsor {
    top: 24px;
  }
}

/* LFPZ_KITS_END_V21 */
