#screen-pick.builder-screen {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: none;
  flex-direction: column;
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at 50% 0, rgba(30, 117, 48, .44), transparent 34%),
    linear-gradient(180deg, #063017 0%, #020906 100%);
}

#screen-pick.builder-screen.active {
  display: flex;
}

.builder-header {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.builder-header h2 {
  font-size: clamp(20px, 5.8vw, 25px);
}

.builder-header p {
  font-size: 13px;
  margin-top: 5px;
}

.builder-tip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 26, .34);
  background: rgba(2, 28, 14, .76);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
}

.builder-tip span {
  font-size: 18px;
}

.builder-pitch {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .20);
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 0 12.5%, transparent 12.5% 25%, rgba(255,255,255,.055) 25% 37.5%, transparent 37.5% 50%, rgba(255,255,255,.055) 50% 62.5%, transparent 62.5% 75%, rgba(255,255,255,.045) 75% 87.5%, transparent 87.5%),
    linear-gradient(180deg, #2f8b28, #13561e 58%, #0a3719);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 20px 36px rgba(0, 0, 0, .35);
}

.builder-pitch::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 9px;
  pointer-events: none;
}

.builder-pitch::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.24);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.field-position {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 52px;
  max-width: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  z-index: 3;
}

.field-ball {
  width: clamp(25px, 7.2vw, 34px);
  height: clamp(25px, 7.2vw, 34px);
  border-radius: 50%;
  background: linear-gradient(145deg, #23b83b, #0d6425);
  border: 3px solid var(--yellow);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .48);
}

.field-name {
  display: block;
  max-width: 92px;
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .55);
  font-size: clamp(9px, 2.8vw, 11px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 2px 4px #000;
  white-space: normal;
}

.field-position.filled .field-name {
  background: rgba(4, 31, 13, .82);
  color: #fff;
  border: 1px solid rgba(255, 210, 26, .32);
}

.builder-footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 356px;
  margin: 10px auto 0;
}

.builder-counter {
  margin-bottom: 7px;
  text-align: center;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.builder-footer .primary-button {
  min-height: 50px;
}

.player-sheet {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  background: rgba(0, 0, 0, .58);
}

.player-sheet.active {
  display: flex;
}

.player-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 390px;
  border-radius: 20px 20px 16px 16px;
  padding: 18px;
  border: 1px solid rgba(255, 210, 26, .32);
  background: linear-gradient(180deg, rgba(9, 53, 24, .98), rgba(3, 22, 11, .98));
  box-shadow: 0 -18px 40px rgba(0, 0, 0, .45);
}

.sheet-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

#player-sheet-kicker {
  display: block;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}

#player-sheet-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
  text-transform: uppercase;
}

.player-sheet-options {
  display: grid;
  gap: 9px;
}

.sheet-player {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.sheet-player span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #23b83b, #0d6425);
  border: 2px solid var(--yellow);
}

.sheet-player strong {
  font-size: 14px;
}

.sheet-player small {
  color: #ffcf4a;
  font-size: 10px;
}

.sheet-player.selected {
  border-color: var(--yellow);
  background: rgba(255, 210, 26, .14);
}

.sheet-player:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (min-width: 431px) {
  #screen-pick.builder-screen {
    max-width: 430px;
    margin: 0 auto;
  }
}

@media (max-height: 760px) {
  #screen-pick.builder-screen {
    padding: 12px 14px 10px;
  }

  .builder-tip {
    padding: 7px 10px;
    margin-bottom: 8px;
  }

  .builder-header p {
    font-size: 12px;
  }

  .builder-footer .primary-button {
    min-height: 46px;
  }

  .builder-pitch {
    max-width: 330px;
  }
}
