/* İlk oyuncu giriş ekranı. Kura / saha ekranlarının stillerine dokunmaz. */

body:has(#screen-entry.is-active) {
  background:
    radial-gradient(980px 460px at 50% -8%, rgba(28, 140, 68, 0.42), transparent 58%),
    radial-gradient(420px 320px at 0% 18%, rgba(190, 255, 220, 0.08), transparent 46%),
    radial-gradient(420px 320px at 100% 16%, rgba(190, 255, 220, 0.08), transparent 46%),
    radial-gradient(640px 380px at 50% 110%, rgba(12, 70, 36, 0.45), transparent 60%),
    linear-gradient(180deg, #101814 0%, #070c09 38%, #050806 100%);
}

body:has(#screen-entry.is-active)::before {
  background-image:
    linear-gradient(rgba(120, 255, 170, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 255, 170, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
}

body:has(#screen-entry.is-active) .app-shell {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 28px));
  padding-top: 8px;
  padding-bottom: 8px;
}

.locker-scene {
  display: none;
}

body:has(#screen-entry.is-active) .locker-scene {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 118px);
}

.locker-light {
  position: absolute;
  top: 10px;
  width: min(240px, 22vw);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f4fff8 18%, #ffffff 50%, #f4fff8 82%, transparent);
  box-shadow:
    0 0 18px 6px rgba(230, 255, 240, 0.55),
    0 28px 70px 18px rgba(170, 255, 205, 0.16);
}

.locker-light--left {
  left: 7vw;
  transform: rotate(-8deg);
}

.locker-light--right {
  right: 7vw;
  transform: rotate(8deg);
}

.locker-photo {
  position: absolute;
  display: none;
  opacity: 0.66;
  mix-blend-mode: lighten;
  pointer-events: none;
  user-select: none;
}

.locker-photo--jersey7,
.locker-photo--jersey14 {
  top: 2vh;
  width: min(210px, 15vw);
}

.locker-photo--jersey7 {
  left: max(0px, calc(50vw - 980px));
}

.locker-photo--jersey14 {
  right: max(0px, calc(50vw - 980px));
}

.locker-photo--ball {
  left: max(4px, calc(50vw - 1040px));
  bottom: 1vh;
  width: min(128px, 9vw);
}

.locker-photo--gear {
  right: max(0px, calc(50vw - 1080px));
  bottom: 0;
  width: min(250px, 16vw);
}

.locker-pitch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(420px, 40vw);
  height: 120px;
  transform: translateX(-50%);
  opacity: 0.14;
  border: 2px solid rgba(110, 255, 160, 0.7);
  background:
    linear-gradient(rgba(110, 255, 160, 0.85), rgba(110, 255, 160, 0.85)) center / 2px 100% no-repeat,
    linear-gradient(rgba(110, 255, 160, 0.85), rgba(110, 255, 160, 0.85)) center / 68% 2px no-repeat,
    radial-gradient(circle at center, transparent 36px, rgba(110, 255, 160, 0.9) 37px, rgba(110, 255, 160, 0.9) 39px, transparent 40px);
  mask-image: linear-gradient(180deg, #000 10%, transparent 88%);
}

@media (max-width: 1199px) {
  body:has(#screen-entry.is-active) .locker-scene {
    display: none;
  }
}

@media (min-width: 1200px) {
  .locker-photo {
    display: block;
  }
}

#screen-entry.panel {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  padding: 12px 16px 10px;
  border: 1px solid rgba(104, 255, 156, 0.48);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(28, 78, 46, 0.42), rgba(6, 14, 10, 0.9) 18%, rgba(4, 8, 7, 0.94)),
    rgba(5, 10, 8, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(42, 210, 96, 0.16),
    0 28px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(214, 255, 228, 0.2),
    inset 0 -48px 80px rgba(16, 120, 58, 0.08);
  backdrop-filter: blur(8px);
  font-family: Barlow, "Segoe UI", sans-serif;
}

#screen-entry.panel::before,
#screen-entry.panel::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  pointer-events: none;
}

#screen-entry.panel::before {
  top: 0;
  background: linear-gradient(90deg, transparent, #8dffb4, transparent);
  box-shadow: 0 0 16px rgba(110, 255, 160, 0.85);
}

#screen-entry.panel::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(80, 230, 130, 0.75), transparent);
  box-shadow: 0 0 16px rgba(70, 220, 120, 0.45);
}

.locker-hero {
  position: relative;
  margin-bottom: 8px;
  text-align: center;
}

.locker-hero::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: min(480px, 86%);
  height: 96px;
  transform: translateX(-50%);
  opacity: 0.16;
  pointer-events: none;
  border: 2px solid rgba(130, 255, 175, 0.85);
  background:
    linear-gradient(rgba(130, 255, 175, 0.9), rgba(130, 255, 175, 0.9)) center / 2px 100% no-repeat,
    linear-gradient(rgba(130, 255, 175, 0.9), rgba(130, 255, 175, 0.9)) center / 64% 2px no-repeat,
    radial-gradient(circle at center, transparent 26px, rgba(130, 255, 175, 0.95) 27px, rgba(130, 255, 175, 0.95) 28.5px, transparent 30px);
  mask-image: linear-gradient(180deg, #000 15%, transparent 96%);
}

.locker-crest,
.locker-title-wrap,
.locker-ribbon {
  position: relative;
  z-index: 1;
}

.locker-crest {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
  color: #3ee67a;
}

.laurel {
  width: 62px;
  height: 26px;
  filter: drop-shadow(0 0 6px rgba(62, 230, 122, 0.45));
}

.laurel ellipse {
  fill: currentColor;
}

.laurel--flip {
  transform: scaleX(-1);
}

.locker-crest__ball {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(90, 255, 150, 0.7));
}

.locker-title-wrap {
  display: inline-block;
}

.locker-title-glow {
  position: absolute;
  top: 54%;
  left: 50%;
  width: 78%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(70, 255, 130, 0.42), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.locker-title {
  position: relative;
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 4.6vw, 2.85rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(90, 255, 150, 0.42),
    0 2px 0 rgba(0, 0, 0, 0.45);
}

.locker-ribbon {
  display: block;
  width: min(540px, 94%);
  margin: 6px auto 0;
  padding: 5px 24px 6px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #79f7a4 0%, #22d262 46%, #0eae45 100%);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(0.92rem, 2vw, 1.18rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 50, 18, 0.35);
  box-shadow:
    0 0 18px rgba(55, 255, 125, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 12px rgba(0, 70, 24, 0.28);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
}

#screen-entry .meter {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#screen-entry .quota {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.squad-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.squad-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(90, 255, 150, 0.32);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
  color: #f4fff8;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
}

.squad-kicker__icon {
  flex: none;
  width: 26px;
  height: 26px;
}

.squad-kicker__text {
  max-width: 7.2rem;
}

#screen-entry .quota-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

#screen-entry .quota-list li {
  --accent: #3dff78;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon count"
    "icon name";
  align-content: center;
  column-gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 78%, transparent);
  border-radius: 12px;
  outline: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(0, 0, 0, 0.15) 55%),
    rgba(3, 8, 6, 0.78);
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--accent) 14%, transparent);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#screen-entry .quota-list li[data-quota="goalkeeper"] { --accent: #f5c518; }
#screen-entry .quota-list li[data-quota="defense"] { --accent: #3b82f6; }
#screen-entry .quota-list li[data-quota="midfield"] { --accent: #3dff78; }
#screen-entry .quota-list li[data-quota="rightWing"] { --accent: #22d3ee; }
#screen-entry .quota-list li[data-quota="leftWing"] { --accent: #c084fc; }
#screen-entry .quota-list li[data-quota="forward"] { --accent: #f59e0b; }

#screen-entry .quota-card__icon {
  grid-area: icon;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

#screen-entry .quota-wing {
  display: block;
  width: 20px;
  height: 20px;
}

#screen-entry .quota-card__icon.is-flip {
  transform: scaleX(-1);
}

#screen-entry .quota-card__count,
#screen-entry .quota-list li.is-short strong,
#screen-entry .quota-list li.is-exact strong,
#screen-entry .quota-list li.is-over strong {
  grid-area: count;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

#screen-entry .quota-card__name {
  grid-area: name;
  color: var(--accent);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

#screen-entry .quota-list li.is-exact {
  outline: none;
  box-shadow:
    0 0 12px color-mix(in srgb, var(--accent) 42%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
}

#screen-entry .quota-list li.is-over {
  --accent: #fb7185;
  outline: none;
}

#screen-entry .player-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

#screen-entry .player-field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 68px;
  grid-template-areas:
    "idx name name"
    "idx pos ovr";
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 8px 4px 5px;
  border: 1px solid rgba(120, 255, 170, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(24, 92, 48, 0.42), rgba(7, 12, 10, 0.94) 34%),
    #070b09;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#screen-entry .player-field__index {
  grid-area: idx;
  display: grid;
  width: 46px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  background: linear-gradient(180deg, #b6ffcf 0%, #3adf78 42%, #0e9a42 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -5px 7px rgba(0, 55, 20, 0.38),
    0 0 10px rgba(55, 255, 120, 0.42);
  color: #fff;
  transform: skewX(-16deg);
}

#screen-entry .player-field__index span {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.16rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 50, 18, 0.35);
  transform: skewX(8deg);
}

#screen-entry .player-field__name {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(214, 232, 220, 0.38);
  border-radius: 9px;
  background: #040605;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#screen-entry .player-field__user {
  display: grid;
  flex: none;
  color: #8b998f;
  place-items: center;
}

#screen-entry .player-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

#screen-entry .player-field input::placeholder {
  color: #7e8c82;
  font-weight: 500;
}

#screen-entry .player-field input:focus {
  outline: none;
}

#screen-entry .player-field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #040605 inset;
}

#screen-entry .player-field__name:focus-within {
  border-color: #3dff78;
  box-shadow: 0 0 0 1px rgba(61, 255, 120, 0.45), 0 0 14px rgba(61, 255, 120, 0.22);
}

#screen-entry .player-field select {
  grid-area: pos;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(214, 232, 220, 0.38);
  border-radius: 9px;
  appearance: none;
  background-color: #040605;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.2 6 6.2 11 1.2' fill='none' stroke='%2394a89a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

#screen-entry .player-field select:has(option[value=""]:checked) {
  color: #8d998f;
  font-weight: 500;
}

#screen-entry .player-field select:focus {
  outline: none;
  border-color: #3dff78;
  box-shadow: 0 0 0 1px rgba(61, 255, 120, 0.45), 0 0 14px rgba(61, 255, 120, 0.22);
}

#screen-entry .player-field__ovr {
  grid-area: ovr;
  min-width: 0;
}

#screen-entry .player-field__ovr input {
  width: 100%;
  height: 34px;
  padding: 0 4px;
  border: 1px solid rgba(214, 232, 220, 0.38);
  border-radius: 9px;
  background: #040605;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

#screen-entry .player-field__ovr input::placeholder {
  color: #7e8c82;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#screen-entry .player-field__ovr input:focus {
  outline: none;
  border-color: #3dff78;
  box-shadow: 0 0 0 1px rgba(61, 255, 120, 0.45), 0 0 14px rgba(61, 255, 120, 0.22);
}

#screen-entry .player-field__ovr input.is-invalid {
  border-color: #fb7185;
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.35);
}

#screen-entry .player-field__check {
  position: absolute;
  top: -7px;
  right: -6px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #39f57a;
  color: #04210e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 10px rgba(57, 245, 122, 0.75);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#screen-entry .player-field.is-complete {
  border-color: rgba(61, 255, 122, 0.78);
}

#screen-entry .player-field.is-complete .player-field__check {
  opacity: 1;
  transform: scale(1);
}

#screen-entry .player-field:focus-within {
  border-color: rgba(61, 255, 122, 0.9);
  background:
    linear-gradient(90deg, rgba(28, 110, 58, 0.5), rgba(7, 12, 10, 0.94) 34%),
    #070b09;
}

#screen-entry .player-field:has(.is-invalid),
#screen-entry .player-field:has(input.is-invalid),
#screen-entry .player-field:has(select.is-invalid) {
  border-color: rgba(251, 113, 133, 0.92);
  background:
    linear-gradient(90deg, rgba(90, 24, 36, 0.45), rgba(12, 8, 9, 0.94) 34%),
    #10080a;
}

#screen-entry .player-field__name:has(input.is-invalid),
#screen-entry .player-field select.is-invalid {
  border-color: #fb7185;
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.35);
}

@media (hover: hover) {
  #screen-entry .player-field:hover {
    transform: translateY(-3px);
    border-color: #62ff96;
    box-shadow:
      0 14px 26px rgba(0, 0, 0, 0.36),
      0 0 16px rgba(61, 255, 122, 0.32);
  }

  #screen-entry .player-field:has(.is-invalid):hover {
    border-color: #fb7185;
    box-shadow:
      0 14px 26px rgba(0, 0, 0, 0.36),
      0 0 14px rgba(251, 113, 133, 0.28);
  }
}

#screen-entry .hint {
  max-width: 48rem;
  margin: 6px auto 0;
  color: rgba(198, 214, 204, 0.62);
  font-size: 0.72rem;
  line-height: 1.3;
}

#screen-entry .entry-actions {
  margin-top: 6px;
}

#screen-entry .entry-ready {
  margin: 0 0 4px;
  color: #d7ffe6;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

#screen-entry .entry-ready.is-ready {
  color: #c8ffd8;
  text-shadow: 0 0 14px rgba(61, 255, 122, 0.5);
}

#screen-entry .status {
  min-height: 1.15em;
  margin: 0 0 6px;
  color: rgba(198, 214, 204, 0.72);
  font-size: 0.8rem;
}

#screen-entry .status.is-alert {
  color: #fecdd3;
  font-weight: 700;
}

#screen-entry .status.is-ok {
  color: #bbf7d0;
}

#start-draw {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-inline: auto;
  padding: 0 58px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #7dffae 0%, #18c356 46%, #0b7a34 100%);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(0, 50, 18, 0.35);
  box-shadow:
    0 0 0 1px rgba(210, 255, 224, 0.35),
    0 10px 28px rgba(16, 180, 78, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -12px 20px rgba(0, 70, 24, 0.32);
  opacity: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#start-draw .btn-kickoff__ball {
  font-size: 1.15em;
  font-style: normal;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

#start-draw .btn-kickoff__label {
  line-height: 1;
}

#start-draw .btn-kickoff__arrows {
  position: absolute;
  top: 50%;
  right: 22px;
  color: #fff;
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.16em;
  line-height: 1;
  transform: translateY(-50%);
}

#start-draw:disabled {
  background: linear-gradient(180deg, #3a403c, #1a1e1c);
  color: rgba(255, 255, 255, 0.62);
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  filter: none;
  opacity: 1;
  transform: none;
}

#start-draw:disabled .btn-kickoff__arrows,
#start-draw:disabled .btn-kickoff__ball {
  opacity: 0.55;
}

@media (hover: hover) {
  #start-draw:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
      0 0 26px rgba(70, 255, 140, 0.55),
      0 16px 34px rgba(16, 180, 78, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

#start-draw:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 639px) {
  #screen-entry .entry-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-inline: -10px;
    padding: 12px 10px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(5, 12, 8, 0), rgba(5, 12, 8, 0.96) 28%);
  }

  .locker-ribbon {
    letter-spacing: 0.08em;
    clip-path: none;
    border-radius: 8px;
  }

  .laurel {
    width: 52px;
  }
}

@media (min-width: 560px) {
  #screen-entry .player-field {
    grid-template-columns: auto minmax(0, 1fr) minmax(112px, 158px) 64px;
    grid-template-areas: "idx name pos ovr";
  }
}

@media (min-width: 720px) {
  #screen-entry.panel {
    padding: 12px 18px 10px;
  }

  #screen-entry .quota-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  #screen-entry .player-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(var(--entry-rows, 7), auto);
    grid-auto-flow: column;
    column-gap: 12px;
    row-gap: 8px;
  }
}

@media (min-width: 1100px) {
  .squad-bar {
    flex-direction: row;
    align-items: stretch;
  }

  .squad-kicker {
    flex: 0 0 168px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  #screen-entry .quota-list {
    flex: 1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  #start-draw {
    width: min(760px, 100%);
  }
}

@media (min-width: 960px) and (max-height: 820px) {
  body:has(#screen-entry.is-active) .app-shell {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  #screen-entry.panel {
    padding: 8px 14px 6px;
  }

  .locker-hero {
    margin-bottom: 4px;
  }

  .laurel {
    width: 46px;
    height: 18px;
  }

  .locker-crest__ball {
    font-size: 20px;
  }

  .locker-title {
    font-size: 2.05rem;
  }

  .locker-ribbon {
    margin-top: 4px;
    padding: 3px 16px 4px;
    font-size: 0.92rem;
  }

  #screen-entry .quota {
    margin-bottom: 6px;
  }

  #screen-entry .quota-list li {
    min-height: 36px;
    padding: 3px 6px;
  }

  #screen-entry .player-field {
    padding: 2px 6px 2px 4px;
  }

  #screen-entry .player-field__index {
    width: 40px;
    height: 30px;
  }

  #screen-entry .player-field__name,
  #screen-entry .player-field select,
  #screen-entry .player-field__ovr input {
    height: 30px;
  }

  #screen-entry .player-grid {
    row-gap: 6px;
  }

  #screen-entry .hint {
    margin-top: 3px;
    font-size: 0.66rem;
  }

  #screen-entry .entry-actions {
    margin-top: 4px;
  }

  #screen-entry .entry-ready {
    font-size: 0.98rem;
  }

  #screen-entry .status {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  #start-draw {
    min-height: 44px;
  }
}

#screen-entry .match-settings-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(760px, 100%);
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(103, 232, 249, 0.4);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 32, 58, 0.72), rgba(6, 14, 28, 0.8));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
  color: #e0f2fe;
  text-align: left;
}

#screen-entry .match-settings-launch__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#screen-entry .match-settings-launch strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}
