:root {
  --bg: #68c0c0;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  margin: 0;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.stack {
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateY(-20px);
}

.meta {
  position: fixed;
  bottom: 20px;
  font-size: clamp(16px, 4vw, 25px);
  font-family: "Comic Neue", ui-rounded, -apple-system, system-ui, "Segoe UI", Arial, sans-serif;
  color: #fff;
  letter-spacing: 0.3px;
}

.meta.left {
  left: 24px;
}

.meta.right {
  right: 24px;
  cursor: pointer;
  user-select: none;
  opacity: 0.8;
}

.meta.right:hover {
  opacity: 1;
  transform: scale(1.1);
}

.meta.right:active {
  transform: scale(0.95);
}

.meta.right.spin {
  animation: resetSpin 0.45s ease-out;
}

.frame {
  width: min(420px, 90vw);
  aspect-ratio: 1 / 1;
  background: transparent;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.title {
  margin: 0;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 650;
  letter-spacing: 2px;
  color: #fff;
  user-select: none;
  font-family: "Comic Neue", ui-rounded, -apple-system, system-ui, "Segoe UI", Arial, sans-serif;
  line-height: 1;
}

.star {
  display: inline-block;
  margin: 0 6px;
  user-select: none;
  transform-origin: 50% 55%;
  animation: spin 5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes resetSpin {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(-360deg) scale(1); }
}