.dial-ring path:focus {
  outline: none;
}

.dial-container.dial-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.dial-container:not(.dial-hidden) {
  transition: opacity 0.4s ease;
}

/* Dial container */
.dial-container {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.dial-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
}

.dial-ring {
  width: 100%;
  height: 100%;
  transition: transform 0.05s linear;
  will-change: transform;
}

.dial-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 180px;
  word-break: break-word;
}

.dial-project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--text-primary);
  transition: color var(--t-normal) var(--ease-out);
  line-height: 1.1;
}

.dial-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--accent-teal);
  filter: drop-shadow(0 0 8px var(--dial-glow-color));
  z-index: 2;
  transition: border-top-color var(--t-normal);
}

/* Subtle scanning line animation (HUD feel) */
.dial-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(45, 212, 168, 0.1) 48%,
    rgba(45, 212, 168, 0.3) 50%,
    rgba(45, 212, 168, 0.1) 52%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.3;
  animation: dialScan 4s ease-in-out infinite;
}

@keyframes dialScan {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.4; }
}

@media (max-width: 1024px) {
  .dial-wrapper {
    width: 280px;
    height: 280px;
  }

  .dial-center {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .dial-wrapper {
    width: 220px;
    height: 220px;
  }

  .dial-center {
    width: 130px;
  }

  .dial-project-name {
    font-size: 1rem;
  }
}
