/* Kura yayını yerleşimi. Giriş ve final ekranlarında kapalıdır. */

body:has(.kura.is-broadcast) {
  background:
    radial-gradient(640px 240px at 50% 112%, rgba(18, 110, 52, 0.62), transparent 72%),
    linear-gradient(180deg, #07111e 0%, #0c1a33 42%, #081426 74%, #071e14 100%);
}

body:has(.kura.is-broadcast)::before {
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(248deg, rgba(255, 255, 255, 0.13), transparent 20%),
    radial-gradient(ellipse at 8% 0%, rgba(186, 230, 253, 0.22), transparent 34%),
    radial-gradient(ellipse at 92% 0%, rgba(186, 230, 253, 0.18), transparent 32%);
  background-size: auto;
  mask-image: none;
}

body:has(.kura.is-broadcast)::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 15vh;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 78px),
    linear-gradient(180deg, transparent, rgba(10, 78, 36, 0.18) 16%, #0b5a2c 100%);
}

body:has(.kura.is-broadcast) .app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 28px));
  padding-top: 12px;
}

body:has(.kura.is-final) {
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(125, 211, 252, 0.2), transparent 62%),
    radial-gradient(520px 240px at 100% 0%, rgba(125, 211, 252, 0.16), transparent 62%),
    radial-gradient(980px 320px at 50% 112%, rgba(14, 92, 42, 0.62), transparent 70%),
    linear-gradient(180deg, #050b16 0%, #0a1730 48%, #07111c 100%);
}

body:has(.kura.is-final)::before {
  background-image:
    linear-gradient(108deg, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(252deg, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(ellipse at 6% 0%, rgba(186, 230, 253, 0.28), transparent 32%),
    radial-gradient(ellipse at 94% 0%, rgba(186, 230, 253, 0.22), transparent 30%);
  background-size: auto;
  mask-image: none;
}

body:has(.kura.is-final)::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 18vh;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 86px),
    linear-gradient(180deg, transparent, rgba(10, 78, 36, 0.2) 18%, #0b5a2c 100%);
}

body:has(.kura.is-final) .app-shell {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 28px));
}

.broadcast-nav {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  margin-bottom: 12px;
}

.broadcast-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.broadcast-brand__ball {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 28%, #d5deea 46%, #8ea0b8 68%, #182232 70%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  font-size: 1.2rem;
  line-height: 1;
}

.broadcast-brand__name {
  color: #f8fbff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.broadcast-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  grid-column: 2;
}

.broadcast-menu__item {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #d7e4f4;
  font-size: 0.92rem;
  font-weight: 700;
}

.broadcast-menu__item svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.broadcast-menu__item.is-active {
  border-color: rgba(186, 230, 253, 0.35);
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 72%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}

.broadcast-menu__item:not([aria-disabled="true"]):hover {
  border-color: rgba(186, 230, 253, 0.28);
  background: rgba(37, 99, 235, 0.28);
}

.broadcast-menu__item[aria-disabled="true"] {
  cursor: default;
}

.kura.is-broadcast .flow-bar {
  margin-bottom: 14px;
  padding: 14px 18px 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 34, 62, 0.78), rgba(8, 16, 32, 0.82));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.mode-badge {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 4px 12px;
  border: 1px solid rgba(103, 232, 249, 0.5);
  border-radius: 999px;
  background: rgba(8, 22, 42, 0.8);
  color: #e0f2fe;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.kura.is-broadcast .flow-bar__label {
  margin-bottom: 10px;
  color: #f4f8ff;
  font-size: 1rem;
  font-weight: 700;
}

.kura.is-broadcast .step-dot {
  width: 11px;
  height: 11px;
  background: #243044;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.kura.is-broadcast .step-dot.is-done,
.kura.is-broadcast .step-dot.is-current {
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
}

.kura.is-broadcast .broadcast-stage {
  display: grid;
  grid-template-columns: minmax(230px, 292px) minmax(0, 1fr) minmax(230px, 292px);
  align-items: start;
  gap: 16px;
}

.kura.is-broadcast #pitch-anchor {
  display: none;
}

.roster {
  padding: 14px 12px 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(20, 40, 72, 0.72), rgba(7, 14, 28, 0.84));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.roster--a {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow:
    0 0 22px rgba(14, 165, 233, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.roster--b {
  border-color: rgba(251, 113, 133, 0.42);
  box-shadow:
    0 0 22px rgba(244, 63, 94, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.roster__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.roster__badge {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 11px;
}

.roster__badge svg {
  width: 20px;
  height: 20px;
}

.roster--a .roster__badge {
  background: rgba(14, 116, 214, 0.28);
  color: #7dd3fc;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.35);
}

.roster--b .roster__badge {
  background: rgba(190, 18, 60, 0.28);
  color: #fda4af;
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.35);
}

.roster__title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.roster__count {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8f1ff;
  font-size: 0.92rem;
  font-weight: 800;
}

.roster__list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.roster-slot {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(3, 8, 18, 0.55);
}

.roster--a .roster-slot.is-filled {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: inset 3px 0 0 #38bdf8;
}

.roster--b .roster-slot.is-filled {
  border-color: rgba(251, 113, 133, 0.38);
  box-shadow: inset 3px 0 0 #fb7185;
}

.roster-slot__index,
.roster-slot__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-slot__index {
  color: #7d8da3;
  font-size: 0.84rem;
  font-weight: 700;
}

.roster-slot__name {
  color: #8ea0b8;
  font-weight: 600;
}

.roster-slot.is-filled .roster-slot__name {
  color: #f8fbff;
  font-weight: 700;
}

.roster-slot__ovr {
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.roster .pitch-wrap__header {
  display: none;
}

.roster .pitch {
  width: 100%;
  border-radius: 14px;
}

.kura.is-broadcast .broadcast-center > .screen.panel {
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 36, 66, 0.78), rgba(8, 16, 32, 0.88));
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.kura.is-broadcast .draw-hero .hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.draw-crest {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 26%, #e7eef8 48%, #9aabC0 70%, #1c2838 72%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  font-size: 1.35rem;
  font-style: normal;
  line-height: 1;
}

.kura:fullscreen,
.kura:-webkit-full-screen {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 12px 18px 24px;
  background:
    radial-gradient(520px 220px at 8% 0%, rgba(125, 211, 252, 0.18), transparent 60%),
    radial-gradient(520px 220px at 92% 0%, rgba(125, 211, 252, 0.14), transparent 60%),
    linear-gradient(180deg, #07111e 0%, #0c1a33 48%, #07180f 100%);
}

.kura:fullscreen .kura-dock,
.kura:-webkit-full-screen .kura-dock {
  position: sticky;
  top: 0;
  z-index: 8;
  margin-bottom: 8px;
  padding-bottom: 8px;
  background: linear-gradient(#07111e, rgba(7, 17, 30, 0.88) 70%, transparent);
}

.kura:fullscreen .flow-bar,
.kura:-webkit-full-screen .flow-bar {
  margin-bottom: 12px;
}

.kura:fullscreen .flow-bar__label,
.kura:-webkit-full-screen .flow-bar__label {
  font-size: 1.05rem;
}

.kura:fullscreen.is-broadcast .draw-video-wrap,
.kura:-webkit-full-screen.is-broadcast .draw-video-wrap {
  width: min(100%, calc((100dvh - 220px) * 1.05));
}

.kura:fullscreen .draw-name,
.kura:-webkit-full-screen .draw-name {
  font-size: clamp(14px, 3.4cqi, 28px);
}

.kura.is-broadcast .draw-video-wrap {
  width: min(100%, calc((100dvh - 430px) * 1.088));
  margin-inline: auto;
  border: 1px solid rgba(103, 232, 249, 0.55);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.18),
    0 0 28px rgba(34, 211, 238, 0.28),
    0 16px 36px rgba(0, 0, 0, 0.4);
}

.kura.is-broadcast #screen-draw .stage {
  width: 100%;
}

.kura.is-broadcast #screen-draw .action-stack {
  margin-top: 12px;
  gap: 8px;
}

#screen-draw #draw-button {
  min-height: 64px;
  border-radius: 16px;
  background: linear-gradient(180deg, #5ad4ff 0%, #2f7cf6 46%, #1d4ed8 100%);
  box-shadow:
    0 0 0 1px rgba(186, 230, 253, 0.4),
    0 12px 28px rgba(37, 99, 235, 0.45),
    0 0 24px rgba(34, 211, 238, 0.32);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

#screen-draw #draw-button::before {
  content: "▶";
  font-size: 0.82em;
  letter-spacing: 0;
}

#screen-draw #draw-button:disabled::before {
  content: none;
}

#screen-draw .btn-ghost {
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(6, 12, 24, 0.72);
  color: #dbe7f5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (hover: hover) {
  #screen-draw #draw-button:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow:
      0 0 0 1px rgba(186, 230, 253, 0.55),
      0 14px 32px rgba(37, 99, 235, 0.5),
      0 0 32px rgba(34, 211, 238, 0.48);
  }

  #screen-draw .btn-ghost:hover:not(:disabled) {
    border-color: rgba(186, 230, 253, 0.4);
    background: rgba(12, 22, 40, 0.9);
  }
}

#screen-draw #draw-button:active:not(:disabled) {
  transform: scale(0.98);
}

.kura.is-broadcast #pair-log-wrap h2 {
  margin: 16px 0 8px;
  color: #93a4bd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .broadcast-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .broadcast-menu {
    width: 100%;
  }

  .kura.is-broadcast .broadcast-stage {
    grid-template-columns: 1fr;
  }

  body:has(.kura.is-broadcast) .app-shell {
    width: min(720px, calc(100% - 20px));
  }
}

.kura.is-broadcast.is-picking .broadcast-stage {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.kura.is-broadcast.is-picking .roster {
  display: none;
}

.kura.is-broadcast.is-picking .flow-bar {
  width: min(460px, 100%);
  margin-inline: auto;
  border-radius: 999px;
}

#screen-match {
  text-align: center;
}

#screen-match .match-role {
  margin: 0;
  color: #7dd3fc;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

#screen-match .reveal__title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

#screen-match .hero-text {
  max-width: 34rem;
  color: #d5e4f5;
}

.drawn-card {
  display: grid;
  width: min(250px, 100%);
  justify-items: center;
  gap: 2px;
  margin: 18px auto 6px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(103, 232, 249, 0.75);
  border-radius: 22px;
  background:
    radial-gradient(140px 90px at 50% 0%, rgba(34, 211, 238, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(14, 46, 86, 0.96), rgba(6, 16, 36, 0.96));
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.drawn-card__name {
  margin-top: 4px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.drawn-card__role {
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ovr-tag {
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.drawn-card .ovr-tag {
  margin-top: 2px;
  font-size: 0.82rem;
}

.match-ovr-line {
  margin: 2px 0 0;
  color: #fde68a;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

#screen-match.is-auto .pick-kicker,
#screen-match.is-auto #opponent-grid,
#screen-match.is-auto #match-random {
  display: none;
}

.match-link {
  margin: 12px 0 0;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
  animation: match-link-in 0.35s ease;
}

.pick-kicker {
  margin: 18px 0 12px;
  color: #f3f8ff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}

#screen-match .pick-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
}

.pick-card {
  position: relative;
  display: grid;
  width: min(180px, 100%);
  justify-items: center;
  gap: 2px;
  padding: 16px 12px 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 40, 74, 0.94), rgba(7, 16, 34, 0.96));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  animation: card-in 0.35s ease both;
}

.kit {
  position: relative;
  display: block;
}

.drawn-card .kit {
  width: 92px;
  height: 104px;
  color: #67e8f9;
}

.pick-card .kit {
  width: 64px;
  height: 74px;
  margin-bottom: 4px;
  color: #dbeafe;
}

.kit svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.kit__no {
  position: absolute;
  top: 48%;
  left: 50%;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.drawn-card .kit__no {
  font-size: 1.9rem;
}

.pick-card__name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.pick-card__role {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pick-card__choose {
  min-width: 92px;
  margin-top: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #1d4ed8);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pick-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #22d3ee;
  color: #042033;
  font-size: 0.85rem;
  font-weight: 800;
}

#screen-match .opponent-grid.is-locked .pick-card {
  opacity: 0.42;
  transform: none;
}

#screen-match .opponent-grid.is-locked .pick-card.is-selected {
  border-color: #67e8f9;
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.55),
    0 0 26px rgba(34, 211, 238, 0.6);
  transform: scale(1.05);
}

#screen-match .pick-card.is-selected .pick-card__check {
  display: grid;
}

.pick-random {
  width: min(520px, 100%);
  margin: 16px auto 0;
  letter-spacing: 0.08em;
}

#screen-match .match-undo {
  width: min(280px, 100%);
  margin: 10px auto 0;
}

@media (hover: hover) {
  .pick-card:hover:not(:disabled) {
    border-color: rgba(103, 232, 249, 0.75);
    transform: translateY(-2px);
  }
}

@keyframes match-link-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.kura.is-broadcast.is-picking .broadcast-stage {
  grid-template-columns: minmax(0, 980px);
}

.result-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #7dd3fc;
}

.result-seal__laurel {
  width: 28px;
  height: 46px;
}

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

.result-seal__pill {
  padding: 8px 18px;
  border: 1px solid rgba(103, 232, 249, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 78, 120, 0.55), rgba(8, 28, 58, 0.8));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
  color: #e0f9ff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#screen-assign .pair-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#screen-assign .assign-status {
  color: #d5e4f5;
  font-weight: 600;
  letter-spacing: 0;
}

#screen-assign .assign-stage {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

#screen-assign .assign-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "kicker kicker"
    "kit name"
    "kit role"
    "kit ovr";
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  min-height: 132px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  text-align: left;
}

#screen-assign .assign-slot--a {
  border-color: rgba(56, 189, 248, 0.7);
  background:
    radial-gradient(120px 80px at 0% 50%, rgba(37, 99, 235, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(12, 36, 72, 0.95), rgba(7, 16, 34, 0.96));
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.28), inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

#screen-assign .assign-slot--b {
  border-color: rgba(248, 113, 113, 0.7);
  background:
    radial-gradient(120px 80px at 100% 50%, rgba(220, 38, 38, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(64, 16, 28, 0.95), rgba(16, 10, 18, 0.96));
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.28), inset 0 0 0 1px rgba(248, 113, 113, 0.35);
}

#screen-assign .slot-kicker {
  display: flex;
  grid-area: kicker;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #e8f2ff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.slot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.assign-slot--b .slot-dot {
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.8);
}

#screen-assign .slot-body {
  display: contents;
}

#screen-assign .slot-body .kit {
  grid-area: kit;
  width: 62px;
  height: 70px;
}

#screen-assign .kit--a {
  color: #60a5fa;
}

#screen-assign .kit--b {
  color: #f87171;
}

#screen-assign .assign-slot strong {
  grid-area: name;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

#screen-assign .slot-role {
  grid-area: role;
  justify-self: start;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(8, 18, 36, 0.72);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.assign-slot--b .slot-role {
  color: #ffe4e6;
}

#screen-assign .slot-ovr {
  grid-area: ovr;
  justify-self: start;
  margin-top: 4px;
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.result-vs {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.result-vs__ball {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d5deea 46%, #111827 72%);
  box-shadow: 0 0 16px rgba(125, 211, 252, 0.45);
  font-size: 1.4rem;
}

.result-vs__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(125, 211, 252, 0.8);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #0ea5e9, #082f49);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.65);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#screen-assign .action-stack {
  width: min(520px, 100%);
  margin-inline: auto;
}

#screen-assign #continue-draw::after {
  content: "→";
  margin-left: 8px;
}

#screen-assign .btn-ghost {
  width: min(240px, 100%);
  margin-inline: auto;
}

@media (max-width: 720px) {
  #screen-assign .assign-stage {
    grid-template-columns: 1fr;
  }

  .result-vs {
    transform: rotate(90deg);
  }
}

.mode-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mode-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 14, 0.72);
  cursor: pointer;
}

.mode-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 28px 22px 22px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 28px;
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(14, 28, 52, 0.96), rgba(6, 12, 24, 0.96));
  box-shadow:
    0 0 36px rgba(34, 211, 238, 0.16),
    0 28px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.mode-modal__title {
  margin: 0 0 18px;
  color: #f8fbff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.mode-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mode-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 36, 68, 0.92), rgba(7, 14, 30, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f8fbff;
  text-align: center;
}

.mode-card.is-selected {
  border-color: #67e8f9;
  background:
    radial-gradient(180px 90px at 50% 0%, rgba(34, 211, 238, 0.24), transparent 72%),
    linear-gradient(180deg, rgba(14, 50, 86, 0.96), rgba(6, 18, 38, 0.96));
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.55),
    0 0 28px rgba(34, 211, 238, 0.55);
}

.mode-card__mark {
  font-size: 1.6rem;
  line-height: 1;
}

.mode-card__name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mode-card__text {
  max-width: 34rem;
  color: #c5d4e8;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.mode-modal__start {
  width: min(420px, 100%);
  margin: 18px auto 0;
  letter-spacing: 0.08em;
}

@media (min-width: 760px) {
  .mode-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.match-settings .mode-modal__panel {
  width: min(860px, 100%);
  max-height: min(92dvh, 900px);
  overflow: auto;
}

.match-settings__block {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 18px;
  background: rgba(4, 12, 28, 0.45);
}

.match-settings__label {
  margin: 0 0 10px;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

.match-count__chip,
.match-formation__chip,
.match-mode__option {
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: rgba(8, 18, 36, 0.8);
  color: #e8f2ff;
  font-weight: 800;
}

.match-count__chip,
.match-formation__chip {
  min-height: 38px;
  padding: 6px 12px;
}

.match-count__chip.is-selected,
.match-formation__chip.is-selected,
.match-mode__option.is-selected {
  border-color: #67e8f9;
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.9), rgba(29, 78, 216, 0.9));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

.match-count__manual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #d5e4f5;
  font-weight: 700;
}

.match-count__manual input,
.dist-row input {
  width: 72px;
  height: 40px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 12px;
  background: #06101c;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.match-team-readout {
  margin: 10px 0 0;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.match-mode__option {
  min-height: 40px;
  padding: 8px 14px;
}

.match-formation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.match-formation.is-locked {
  opacity: 0.45;
}

.match-distribution {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.dist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 18, 36, 0.55);
  color: #f8fbff;
  font-weight: 700;
}

.match-settings__status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: #fda4af;
  font-weight: 700;
  text-align: center;
}

.match-settings__status.is-ok {
  color: #86efac;
}

@media (min-width: 720px) {
  .match-distribution {
    grid-template-columns: 1fr 1fr;
  }
}
