.penalties-page {
  padding: 30px;
}

.penalties-page {
  touch-action: manipulation;
}

.penalties-card {
  max-width: 900px;
  margin: 0 auto;
}

.penalty-layout {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin: 30px 0 15px;
}

.penalty-goal {
  position: relative;
  flex: 1;
  aspect-ratio: 736 / 544;
  height: auto;
  background: #000;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.tux-keeper {
  position: absolute;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  font-size: 80px;
}

.aim-vertical {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
}

.aim-vertical-track {
  position: relative;
  flex: 1;
  width: 14px;
  background: #222;
  margin: 10px 0;
}

.aim-vertical-marker {
  position: absolute;
  left: -13px;
  width: 40px;
  height: 8px;
  background: red;
  top: 50%;
  transform: translateY(-50%);
}

.aim-horizontal {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: bold;

  width: calc(100% - 90px);
  margin-right: 90px;
}

.aim-horizontal-track {
  position: relative;
  flex: 1;
  height: 14px;
  background: #222;
}

.aim-horizontal-marker {
  position: absolute;
  top: -13px;
  width: 8px;
  height: 40px;
  background: red;
  left: 50%;
  transform: translateX(-50%);
}

.penalty-controls {
  text-align: center;
  margin-top: 25px;
}

.penalty-controls button {
  font-size: 1.4rem;
  padding: 14px 40px;
  font-weight: bold;
}

.penalty-result {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}

.penalty-scoreboard {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  font-size: 1.1rem;
}

.penalty-scoreboard span {
  display: inline-flex;
  gap: 6px;
  margin-left: 10px;
}

.penalty-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  background: #555;
}

.penalty-dot.green {
  background: #00b050;
}

.penalty-dot.red {
  background: #c00000;
}

.penalty-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.penalty-controls {
  text-align: center;
  margin-top: 18px;
}

.penalty-controls button {
  font-size: 1rem;
  padding: 12px 16px;
  min-width: 120px;
  font-weight: bold;
  border-radius: 10px;
}

.penalty-controls {
  text-align: center;
}


.penalty-controls #stop-button {
  display: inline-block;
  width: auto;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 10px;
}

.penalty-controls #play-again-button
.penalty-controls #back-button {
  display: inline-block;
  width: auto;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 10px;
}

@media (max-width: 700px) {
  .penalties-page {
    padding: 8px;
  }

  .penalties-card {
    padding: 0;
  }

  .penalty-scoreboard {
    gap: 18px;
    font-size: 0.9rem;
  }

.penalty-scoreboard > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.penalty-scoreboard > div strong {
  padding-bottom: 4px;
}

  .penalty-scoreboard span {
    margin-left: 6px;
    gap: 4px;
  }

  .penalty-dot {
    width: 24px;
    height: 24px;
  }

  .penalty-layout {
    gap: 8px;
  }

  .aim-vertical {
    width: 20px;
    font-size: 0.75rem;
  }

  .aim-vertical-track {
    width: 8px;
  }

  .aim-vertical-marker {
    left: -7px;
    width: 22px;
    height: 6px;
  }

  .aim-horizontal {
    width: calc(100% - 26px);
    margin: 8px 26px 0 0;
    justify-content: center;
    font-size: 0.75rem;
  }

  .aim-horizontal-track {
    flex: 1;
    height: 8px;
  }

  .aim-horizontal-marker {
    top: -7px;
    width: 6px;
    height: 22px;
  }

  .penalty-controls #stop-button,
  .penalty-controls #play-again-button,
  .penalty-controls #back-button {
    width: 120px;
    padding: 18px 28px;
    font-size: 1.35rem;
    text-align: center;
  }

 .penalty-controls #play-again-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  padding: 18px 0;
  text-align: center;
}

}