

#cameraDebug {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 100;
  display:  none;
}


#cornerDebug {
  position: absolute;
  bottom: 50px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 100;
  display: none;
}

#fullView {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 10;
  padding: 6px 12px;
  background: white;
  border: 1px solid #ccc;
  cursor: pointer;
  display: none;
}


#darkOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 999; /* ниже, чем меню */
  pointer-events: none; /* чтобы не мешать кликам */
  opacity: 0;
  transition:  opacity 1.0s ease;
}

#stampControls {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  display: none; 
  gap: 40vw;
  z-index: 2000;
}

#stampControls button {
  font-size: 32px;
  padding: 50px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

#threeCanvas {
  transition: filter 0.5s ease;
}

body {
  margin: 0;
  overflow: hidden;
  background: url('https://anistamps.com/NG2/textures/backgrounds/infinite_bg_001.jpg') center center / cover no-repeat;
 
}

/* Rotate overlay для мобильных устройств в portrait mode */
.rotate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.rotate-overlay[aria-hidden="false"] {
  display: flex;
}

.rotate-overlay .box {
  text-align: center;
  color: white;
  font-family: 'Josefin Sans', sans-serif;
}

.rotate-overlay .box img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  animation: rotate 2s linear infinite;
}

.rotate-overlay .box p {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.1rem;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Показываем оверлей только на мобильных в portrait mode */
@media (max-width: 1024px) and (orientation: portrait) {
  .rotate-overlay[aria-hidden="false"] {
    display: flex;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  .rotate-overlay {
    display: none !important;
  }
}


.button-wrapper {
  position: relative;
  display: none; /* Спрятано временно */
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 2rem; /* Отступ от Edition */
}

.button-wrapper:hover {
  transform: translateY(-2px);
}

.button-wrapper:active {
  transform: translateY(0);
}

/* Белый слой (снизу) - background */
.highlight-layer {
  position: absolute;
  top: 2px;
  left: 2px;
  right: -2px;
  bottom: -2px;
  background: #fff;
  border-radius: 50px;
  z-index: 1;
}

/* Серый слой (сверху) - shadow */
.shadow-layer {
  position: absolute;
  top: -4px;
  left: -4px;
  right: 4px;
  bottom: 4px;
  background: #666;
  border-radius: 50px;
  z-index: 2;
}

/* Основная зеленая кнопка */
.real-button {
  position: relative;
  z-index: 3;
  background: #2d8a2f;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 80px;
  font-size: 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
}








