*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}

body.bg-placeholder .background-placeholder {
  opacity: 1;
}

body.bg-ready .background-placeholder {
  opacity: 0;
}

.background-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}

body.bg-ready .background-embed {
  opacity: 1;
}

.logo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 24px 16px 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: difference;
}

body.stage-logo .logo {
  opacity: 1;
}

.logo img {
  width: clamp(180px, 40vw, 420px);
  height: auto;
  filter: invert(1) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4))
    brightness(1.25) contrast(1.1);
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.placeholder img {
  width: min(82vw, 680px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

body.stage-placeholder .placeholder {
  opacity: 1;
}

body.stage-3d .placeholder {
  opacity: 0;
}

#pickle-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.stage-3d #pickle-canvas {
  opacity: 1;
}

#pickle-canvas:active {
  cursor: grabbing;
}
