.penalty-panel {
  position: relative;
  width: 100%;
  min-height: min(72vh, 640px);
}

.penalty-stage {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 35%, #0ea5e9 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.penalty-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.penalty-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  z-index: 2;
}

.penalty-hud__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: auto 0;
}

.penalty-hud__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.penalty-hud__pill {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.penalty-timer-wrap {
  pointer-events: none;
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
}

.penalty-timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.penalty-timer-ring__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 6;
}

.penalty-timer-ring__fg {
  fill: none;
  stroke: #fde047;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

.penalty-timer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.penalty-kick-dots {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  min-width: 10rem;
}

.penalty-kick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.15rem 0;
}

.penalty-kick-row__name {
  color: #e2e8f0;
  font-size: 0.8rem;
  white-space: nowrap;
  max-width: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.penalty-kick-row__dots {
  display: flex;
  gap: 0.25rem;
}

.penalty-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}

.penalty-dot--goal {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.penalty-dot--miss {
  background: #ef4444;
  opacity: 0.85;
}

.penalty-dot--empty {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.penalty-choices {
  pointer-events: auto;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 0.25rem;
}

.penalty-choice-btn {
  min-width: 6.5rem;
  min-height: 3.25rem;
  border: none;
  border-radius: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 6px 0 #94a3b8, 0 10px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.penalty-choice-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #94a3b8, 0 4px 12px rgba(0, 0, 0, 0.2);
}

.penalty-choice-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.penalty-choice-btn--picked {
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  box-shadow: 0 6px 0 #ca8a04, 0 10px 24px rgba(0, 0, 0, 0.25);
  color: #422006;
}

.penalty-result {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  animation: penalty-result-pop 0.45s ease-out;
}

.penalty-result--goal {
  color: #4ade80;
}

.penalty-result--save {
  color: #fbbf24;
}

@keyframes penalty-result-pop {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .penalty-choice-btn {
    min-width: 5.5rem;
    font-size: 1rem;
  }
  .penalty-hud__pill {
    font-size: 0.82rem;
  }
}
