.wheel-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}

.wheel-col {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.wheel {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
}

.wheel canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(83, 252, 24, 0.12));
}

.wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 34px solid #fff;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.wheel__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid #0a0a0a;
  background: var(--kick);
  color: #0a0a0a;
  font: inherit;
  font-weight: 900;
  font-size: clamp(0.8rem, 2.6vw, 1.15rem);
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, background 0.15s;
  z-index: 2;
}

.wheel__spin:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  background: #7dff4f;
}

.wheel__spin:disabled {
  background: #2a2a2a;
  color: #777;
  cursor: default;
}

.wheel__left {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.wheel__actions {
  justify-content: center;
}

.side-col .card + .card {
  margin-top: 1rem;
}

.count-badge {
  display: inline-block;
  min-width: 1.6rem;
  padding: 0.05rem 0.45rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--kick-dim);
  color: var(--kick);
  letter-spacing: 0;
  text-align: center;
}

.teamcount {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.teamcount button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.teamcount button[aria-pressed="true"] {
  background: var(--kick);
  border-color: var(--kick);
  color: #0a0a0a;
}

.teamnames {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.teamnames:empty {
  display: none;
}

.teamnames label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teamnames input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.teamnames input:focus,
.bulk textarea:focus {
  outline: none;
  border-color: var(--kick);
}

.swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.addrow {
  display: flex;
  gap: 0.5rem;
}

.bulk {
  margin-top: 0.75rem;
}

.bulk summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
}

.bulk textarea {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

/* sonuçlar */
.teams-out {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.teams-out:empty {
  display: none;
}

.team {
  border: 1px solid var(--line);
  border-top: 4px solid var(--team, var(--kick));
  border-radius: var(--radius);
  background: var(--raised);
  padding: 1rem 1.1rem 1.1rem;
}

.team h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team h3 small {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.team ol {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.25rem;
}

.team li {
  font-weight: 600;
}

.team li.is-new {
  color: var(--kick);
  animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.team .empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.team__copy {
  margin-top: 0.9rem;
}

/* çıkan ismi gösteren pencere */
.winner-pop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 30;
  cursor: pointer;
}

.winner-pop__card {
  min-width: min(520px, 90vw);
  max-width: 92vw;
  padding: 2.25rem 2.5rem;
  text-align: center;
  background: #0b0b0b;
  border: 3px solid var(--pop, var(--kick));
  border-radius: 22px;
  box-shadow: 0 0 70px color-mix(in srgb, var(--pop, var(--kick)) 40%, transparent);
  animation: zoomin 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.winner-pop__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.winner-pop__name {
  display: block;
  margin: 0.5rem 0;
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  word-break: break-word;
}

.winner-pop__team {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--pop, var(--kick));
  color: #0a0a0a;
  font-weight: 800;
}

.winner-pop__team:empty {
  display: none;
}

@keyframes zoomin {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .wheel-page {
    grid-template-columns: 1fr;
  }
}

.team__copy--row {
  grid-column: 1 / -1;
  margin-top: 0;
}

.teamcount {
  align-items: center;
}

.teamcount button:disabled {
  opacity: 0.35;
  cursor: default;
}

.teamcount__num {
  width: 76px;
  min-height: 38px;
  padding: 0 0.5rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}

.teamcount__num:focus {
  outline: none;
  border-color: var(--kick);
}

.teamcount__lbl {
  color: var(--muted);
  font-size: 0.9rem;
}

.teamnames {
  max-height: 320px;
  overflow: auto;
}

.teamcount__sep {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0.15rem;
}

.teamcount__step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.teamcount__step .teamcount__num {
  width: 60px;
}
