* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  background: #0b0f13;
  color: #eef3f6;
  overflow: hidden;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#glass {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#glass:active {
  cursor: grabbing;
}

.brand,
.credit,
.sound,
.hint {
  position: fixed;
  z-index: 2;
}
.brand {
  top: max(22px, env(safe-area-inset-top));
  left: clamp(18px, 4vw, 44px);
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.name {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.06em;
}
.sub {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  font-family: system-ui, sans-serif;
}
.credit {
  left: clamp(18px, 4vw, 44px);
  bottom: max(20px, env(safe-area-inset-bottom));
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  pointer-events: none;
}

.sound {
  top: max(18px, env(safe-area-inset-top));
  right: clamp(14px, 4vw, 40px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(238, 243, 246, 0.35);
  background: rgba(11, 15, 19, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sound svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #eef3f6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound .off {
  display: none;
}
.sound[aria-pressed="false"] .wave {
  display: none;
}
.sound[aria-pressed="false"] .off {
  display: block;
}
.sound:focus-visible {
  outline: 2px solid #eef3f6;
  outline-offset: 3px;
}
.sound.nudge {
  animation: nudge 1.2s ease-in-out 3;
}
@keyframes nudge {
  50% {
    transform: scale(1.15);
    background: rgba(238, 243, 246, 0.25);
  }
}

.hint {
  left: 50%;
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  transition: opacity 0.6s ease;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hint.hide {
  opacity: 0;
}
.hint-text {
  font-size: clamp(17px, 1.6vw, 21px);
  font-style: italic;
  letter-spacing: 0.04em;
}
.hand {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 243, 246, 0.85);
  box-shadow: 0 0 22px rgba(238, 243, 246, 0.35);
  animation: swipe 2.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes swipe {
  0% {
    transform: translateX(-60px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    transform: translateX(60px);
    opacity: 1;
  }
  100% {
    transform: translateX(60px);
    opacity: 0;
  }
}

.nojs,
.fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-size: 18px;
}
.fallback video {
  width: min(92vw, 1100px);
  border-radius: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .hand,
  .sound.nudge {
    animation: none;
  }
}
