.registration {
  max-width: 1120px;
  margin: clamp(12px, 4vh, 38px) auto 0;
}

.registration-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.registration-photo {
  min-height: 100%;
  background: #f3c98d url('court.jpg') 59% center / cover no-repeat;
}

.registration-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: clamp(26px, 5vw, 66px);
}

.registration h1 {
  font-size: clamp(2.55rem, 5.7vw, 4.55rem);
}

.registration h1:focus {
  outline: none;
}

.registration-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font: 725 .76rem/1.3 var(--mono);
}

.registration-steps li + li::before {
  content: '›';
  display: inline-block;
  margin-right: 10px;
  color: var(--muted);
}

.registration-steps [aria-current="step"] {
  color: var(--teal);
  font-weight: 850;
}

.registration-intro {
  max-width: 32ch;
  margin: 12px 0 23px;
  color: var(--muted);
}

.registration-mode {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}

.registration-mode button {
  min-height: 41px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 750;
}

.registration-mode button:hover {
  color: var(--ink);
}

.registration-mode button[aria-pressed="true"] {
  border-color: #e8c1d3;
  background: #fae7ee;
  color: var(--pink);
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.registration-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 760;
}

.registration-field input {
  min-height: 43px;
  width: 100%;
  min-width: 0;
  padding: 7px 11px;
  border: 1px solid #d9c9ba;
  border-radius: 9px;
  background: #fffdf9;
  font-size: .94rem;
  font-weight: 600;
}

.registration-field input::placeholder {
  color: #66777b;
  opacity: 1;
}

.registration-field small,
.registration-note {
  color: var(--muted);
  font-size: .77rem;
  font-weight: 500;
}

.registration-note {
  margin-top: 14px;
}

.registration-links {
  margin-top: 11px;
}

.registration-links .text-button {
  margin-left: -8px;
}

.registration-error {
  margin: 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: #fae7ee;
  color: #8b1746;
  font-size: .85rem;
}

.registration-team-panel {
  padding: clamp(19px, 4vw, 43px);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper);
}

.registration-team-header,
.registration-team-tools,
.registration-team-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px 20px;
}

.registration-team-header {
  margin-bottom: 17px;
}

.registration-team-tools {
  margin-bottom: 17px;
}

.registration-team-tools p {
  color: var(--muted);
}

.registration-team-tools .registration-field {
  width: min(100%, 260px);
}

.registration-team-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 43vh;
  min-height: 95px;
  gap: 6px;
  overflow-y: auto;
  padding: 4px 7px 4px 4px;
  scrollbar-color: #ceafa8 transparent;
}

.registration-team {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 8px;
  min-height: 50px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf9;
  text-align: left;
}

.registration-team:not(:disabled):hover {
  border-color: #adccc2;
  background: #f1f8f1;
}

.registration-team.is-selected {
  border-color: #b96c8e;
  background: #fae7ee;
}

.registration-team:disabled {
  background: var(--canvas);
  color: var(--muted);
}

.registration-team .team-mark.tiny {
  width: 30px;
  height: 29px;
  font-size: .58rem;
}

.registration-team-name {
  font-size: .84rem;
  line-height: 1.3;
  font-weight: 740;
}

.registration-team small {
  color: var(--teal);
  font-size: .64rem;
  font-weight: 760;
}

.registration-team.is-selected small {
  color: var(--pink);
}

.registration-team:disabled small {
  color: var(--muted);
}

.registration-empty {
  align-self: center;
  grid-column: 1 / -1;
  color: var(--muted);
}

.registration-team-footer {
  align-items: center;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.registration-team-footer p {
  color: var(--muted);
  font-size: .86rem;
}

.registration-team-footer strong {
  color: var(--ink);
}

.registration-club-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 9px 18px;
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.registration-club-preview p {
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 840px) {
  .registration-team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .registration-club-preview {
    grid-template-columns: 1fr;
  }

  .registration-profile {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .registration-photo {
    min-height: clamp(100px, 24vw, 165px);
    background-position: 57% 58%;
  }
}

@media (max-width: 420px) {
  .registration-team-list {
    grid-template-columns: 1fr;
    max-height: 38vh;
  }
}
