.coin-stage {
  justify-self: center;
  width: min(100%, 22rem);
}

.coin {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
}

.coin:focus-visible {
  outline: none;
}

.coin:focus-visible .coin-inner {
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 8px var(--color-accent);
}

.coin-inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: coinSpinIn 1200ms cubic-bezier(0.22, 1, 0.36, 1) 150ms backwards;
}

@keyframes coinSpinIn {
  from {
    transform: rotateY(-720deg);
  }
  to {
    transform: rotateY(0deg);
  }
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  border: 4px solid var(--color-accent);
  box-shadow: 0 0 0 12px var(--color-accent-soft);
}

.coin-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 30% 25%, #2ba7b5, var(--color-accent) 70%);
  color: var(--color-on-accent);
}

.coin-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  justify-items: center;
  gap: clamp(0.7rem, 3.5vw, 1.3rem);
  width: 100%;
  height: 100%;
  padding: 16%;
  list-style: none;
}

.coin-skill {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-icon {
  width: clamp(1.5rem, 6.5vw, 2.1rem);
  height: clamp(1.5rem, 6.5vw, 2.1rem);
}

.coin-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coin-icon-fill {
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .coin-inner {
    transition: transform 220ms ease;
    animation: none;
  }
}
