* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

.nav-links {
  position: fixed;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 16px;
  z-index: 10;
}

.nav-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

#card-container {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(100, 120, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: grab;
  transition: box-shadow 0.3s ease;
}

#card-container:hover {
  box-shadow:
    0 0 50px rgba(100, 120, 255, 0.25),
    0 20px 80px rgba(0, 0, 0, 0.6);
}

#card-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#motion-prompt {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pulse 2s ease-in-out infinite;
  z-index: 10;
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (orientation: landscape) and (max-height: 500px) {
  body {
    transform: rotate(-90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}
