/* Cuenta del competidor y página personal de torneos. */
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.competitor-header-session {
  display: grid;
  grid-template-columns: 42px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(64, 216, 255, .34);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(64, 216, 255, .1), rgba(17, 10, 56, .9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}

.competitor-header-session img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(64, 216, 255, .72);
  border-radius: 50%;
  object-fit: cover;
  background: var(--cyan);
}

.competitor-header-copy {
  min-width: 0;
}

.competitor-header-copy small,
.competitor-header-copy strong {
  display: block;
}

.competitor-header-copy small {
  margin-bottom: 2px;
  color: var(--cyan);
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .1em;
}

.competitor-header-copy strong {
  max-width: 150px;
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-header-session .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: .68rem;
  white-space: nowrap;
}

.my-tournaments-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 90px;
}

.my-tournaments-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 10%, rgba(64, 216, 255, .17), transparent 29%),
    linear-gradient(135deg, rgba(255, 49, 88, .11), transparent 44%),
    linear-gradient(145deg, rgba(24, 13, 68, .96), rgba(8, 5, 29, .96));
  box-shadow: var(--shadow);
}

.my-tournaments-hero h1 {
  max-width: 820px;
  margin: 4px 0 13px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 1000;
  letter-spacing: -.055em;
  line-height: .92;
  text-transform: uppercase;
}

.my-tournaments-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.my-tournaments-access-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(64, 216, 255, .42);
  border-radius: 999px;
  color: #a9edff;
  background: rgba(64, 216, 255, .09);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.my-tournaments-panel {
  min-width: 0;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(10, 6, 35, .92);
  box-shadow: var(--shadow);
}

.my-tournaments-session {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(64, 216, 255, .28);
  border-radius: 15px;
  background: rgba(64, 216, 255, .055);
}

.my-tournaments-session img {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(64, 216, 255, .65);
  border-radius: 50%;
  object-fit: cover;
  background: var(--cyan);
}

.my-tournaments-session small,
.my-tournaments-session strong,
.my-tournaments-session span {
  display: block;
}

.my-tournaments-session small {
  margin-bottom: 2px;
  color: var(--cyan);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.my-tournaments-session strong {
  font-size: 1rem;
}

.my-tournaments-session span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.checkin-main-notice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 17px;
  border: 1px solid rgba(255, 201, 40, .46);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 201, 40, .12), rgba(255, 49, 88, .06));
}

.checkin-main-notice > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #261900;
  background: var(--gold);
  font-size: 1.3rem;
  font-weight: 1000;
}

.checkin-main-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #fff1ad;
}

.checkin-main-notice p {
  margin: 0;
  color: #ddd8bf;
  font-size: .82rem;
  line-height: 1.55;
}

.my-tournaments-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.my-tournaments-heading .eyebrow {
  margin-bottom: 5px;
}

.my-tournaments-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.my-tournaments-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(141, 77, 255, .38);
  border-radius: 999px;
  color: #d5c5ff;
  background: rgba(141, 77, 255, .09);
  font-size: .7rem;
  font-weight: 850;
}

.my-tournaments-list {
  display: grid;
  gap: 18px;
}

.my-tournament-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 77, 255, .38);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 13, 68, .94), rgba(8, 5, 29, .97));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}

.my-tournament-card.condition-substitute {
  border-color: rgba(255, 201, 40, .5);
}

.my-tournament-image {
  min-height: 100%;
  overflow: hidden;
  background: var(--panel-strong);
}

.my-tournament-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.my-tournament-image:hover img {
  transform: scale(1.035);
}

.my-tournament-body {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
}

.my-tournament-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.my-tournament-card-heading .card-kicker {
  display: block;
  margin: 0 0 5px;
}

.my-tournament-card-heading h3 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.1;
}

.condition-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.condition-badge-starter {
  color: #bfffe6;
  background: rgba(34, 180, 126, .17);
  border: 1px solid rgba(101, 239, 189, .38);
}

.condition-badge-substitute {
  color: #ffe895;
  background: rgba(255, 201, 40, .13);
  border: 1px solid rgba(255, 201, 40, .4);
}

.my-checkin-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 201, 40, .28);
  border-radius: 12px;
  background: rgba(255, 201, 40, .07);
}

.my-checkin-status > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #211700;
  background: var(--gold);
  font-weight: 1000;
}

.my-checkin-status strong {
  display: block;
  color: #fff0ac;
  font-size: .82rem;
}

.my-checkin-status p {
  margin: 3px 0 0;
  color: #d7d1b9;
  font-size: .75rem;
  line-height: 1.45;
}

.my-checkin-status.checkin-confirmado {
  border-color: rgba(101, 239, 189, .35);
  background: rgba(34, 180, 126, .08);
}

.my-checkin-status.checkin-confirmado > span {
  color: #05271b;
  background: #65efbd;
}

.my-checkin-status.checkin-confirmado strong {
  color: #bfffe6;
}

.my-checkin-status.checkin-ausente,
.my-checkin-status.checkin-documentacion_incompleta {
  border-color: rgba(255, 49, 88, .38);
  background: rgba(255, 49, 88, .08);
}

.my-checkin-status.checkin-ausente > span,
.my-checkin-status.checkin-documentacion_incompleta > span {
  color: #fff;
  background: var(--red);
}

.my-tournament-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.my-tournament-details > div {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.my-tournament-details .detail-wide {
  grid-column: 1 / -1;
}

.my-tournament-details small,
.my-tournament-details strong {
  display: block;
}

.my-tournament-details small,
.my-tournament-referees > small {
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.my-tournament-details strong {
  color: #eeeafd;
  font-size: .77rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.my-tournament-referees {
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid rgba(141, 77, 255, .28);
  border-radius: 11px;
  background: rgba(141, 77, 255, .055);
}

.my-tournament-referees > small {
  display: block;
}

.referee-first-names {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.referee-first-names span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #eadfff;
  background: rgba(141, 77, 255, .2);
  font-size: .72rem;
  font-weight: 800;
}

.referee-first-names .referee-pending {
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
}

.my-tournament-whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  border: 1px solid rgba(101, 239, 189, .34);
  border-radius: 12px;
  background: rgba(34, 180, 126, .07);
}

.my-tournament-whatsapp strong,
.my-tournament-whatsapp small {
  display: block;
}

.my-tournament-whatsapp strong {
  color: #caffea;
  font-size: .82rem;
}

.my-tournament-whatsapp small {
  margin-top: 4px;
  color: #a7c8ba;
  font-size: .69rem;
  line-height: 1.4;
}

.whatsapp-group-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 14px;
  color: #05271b;
  background: #65efbd;
  font-size: .7rem;
}

.whatsapp-group-button:hover,
.whatsapp-group-button:focus-visible {
  background: #96ffd8;
}

.whatsapp-group-button.is-disabled {
  color: #8aa89d;
  background: rgba(101, 239, 189, .08);
  cursor: not-allowed;
}

.my-tournament-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 11px;
}

.my-tournaments-empty {
  padding: clamp(28px, 6vw, 52px);
  border: 1px dashed rgba(141, 77, 255, .4);
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, .025);
}

.my-tournaments-empty > span {
  font-size: 2.4rem;
}

.my-tournaments-empty h3 {
  margin: 12px 0 7px;
}

.my-tournaments-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.my-tournaments-panel > .form-message,
#my-tournaments-message {
  margin: 14px 0 0;
}

@media (max-width: 1050px) {
  .header-tools .event-pill { display: none; }
}

@media (max-width: 760px) {
  .my-tournament-card { grid-template-columns: 150px minmax(0, 1fr); }
  .my-tournament-whatsapp { align-items: flex-start; flex-direction: column; }
  .whatsapp-group-button { width: 100%; text-align: center; }
}

@media (max-width: 620px) {
  .site-header:has(.competitor-header-session:not([hidden])) {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-tools,
  .competitor-header-session {
    width: 100%;
  }

  .competitor-header-copy strong {
    max-width: none;
  }

  .my-tournaments-layout {
    width: min(100% - 28px, 1120px);
    margin-top: 12px;
  }

  .my-tournaments-hero,
  .my-tournaments-session,
  .my-tournament-card-heading {
    align-items: flex-start;
  }

  .my-tournaments-hero {
    flex-direction: column;
  }

  .my-tournaments-hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.8rem);
  }

  .my-tournaments-session {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .my-tournaments-session .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .my-tournaments-heading,
  .my-tournament-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .my-tournament-image {
    height: 190px;
  }

  .my-tournament-details {
    grid-template-columns: 1fr;
  }

  .my-tournament-details .detail-wide {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .competitor-header-session {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .competitor-header-session img {
    width: 38px;
    height: 38px;
  }

  .competitor-header-session .button {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }
}
