:root {
  --bg-primary: #000000;
  --text-primary: #ffffff;
  --text-secondary: #d6dce8;
  --pacto-blue: #176cf4;
  --accent-primary: #00d4ff;
  --focus-ring: #00d4ff;
  --focus-glow: rgba(0, 212, 255, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app,
.screen {
  width: 600px;
  height: 600px;
}

.screen {
  display: block;
  padding: 8px;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 584px;
  height: 584px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--bg-primary);
  appearance: none;
  cursor: pointer;
  perspective: 900px;
  transition:
    transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.stage::before,
.stage::after {
  content: none;
}

.logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 568px;
  height: 568px;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  transform-style: preserve-3d;
}

.logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(23, 108, 244, 0.58));
  user-select: none;
  -webkit-user-drag: none;
}

.logo-wordmark {
  width: 560px;
  height: auto;
}

.logo-symbol {
  width: 548px;
  height: 556px;
}

.focusable:focus {
  outline: none;
  transform: scale(0.986);
  box-shadow: none;
}

.logo-frame.effect-still {
  animation: none;
}

.logo-frame.effect-horizontal-spin {
  animation: horizontalSpinLogo 4.8s linear infinite;
}

.logo-frame.effect-bloom {
  animation: bloomLogo 2.8s ease-in-out infinite;
}

.logo-frame.effect-pulse {
  animation: pulseLogo 2.4s ease-in-out infinite;
}

.logo-frame.effect-float {
  animation: floatLogo 3.2s ease-in-out infinite;
}

.logo-frame.effect-focus {
  animation: focusLogo 4.2s cubic-bezier(0.4, 0.04, 0.5, 1) infinite;
}

.pressed {
  transform: scale(0.972);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes horizontalSpinLogo {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@keyframes bloomLogo {
  0%,
  100% {
    filter:
      brightness(1)
      drop-shadow(0 0 12px rgba(23, 108, 244, 0.5))
      drop-shadow(0 0 24px rgba(0, 212, 255, 0.18));
  }
  50% {
    filter:
      brightness(1.28)
      drop-shadow(0 0 24px rgba(23, 108, 244, 0.88))
      drop-shadow(0 0 46px rgba(0, 212, 255, 0.42));
  }
}

@keyframes pulseLogo {
  0%,
  100% {
    transform: scale(0.94);
    filter: brightness(0.88);
  }
  50% {
    transform: scale(1);
    filter: brightness(1.24);
  }
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(12px) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes focusLogo {
  0%,
  100% {
    transform: scale(0.9) rotate(-3deg);
    opacity: 0.78;
  }
  42% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  64% {
    transform: scale(0.96) rotate(3deg);
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-frame,
  .stage {
    animation: none !important;
    transition: none;
  }
}
