 /*  Base */
 @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Press Start 2P', cursive;
  background-color: black;
}#background-canvas,
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5; /* Sfondi normali e NFT */
  width: 100vw;
  height: 100vh;
  display: block;
}#three-canvas {
  z-index: 26; /* Sigaretta in primo piano */
}/*  Contenitore video NFT */
#nft-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 24; /* Tra background-canvas e poesia */
  overflow: hidden;
  pointer-events: none;
}#nft-video-container video,
#nft-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}/*  Menu */
#menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 60px 20px 20px 20px;
  z-index: 30; /* Sopra i canvas, sotto i pulsanti */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-right: 2px solid #666;
  margin-top: 90px;
}#menu.open {
  transform: translateX(0);
}#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}#menu ul li {
  margin-bottom: 16px;
}#menu button {
  background: linear-gradient(to right, #444, #222);
  border: 1px solid #666;
  color: #fff;
  font-size: 10px;
  font-family: 'Press Start 2P', cursive;
  cursor: pointer;
  padding: 6px 8px;
  text-align: left;
  width: 100%;
  border-radius: 4px;
  transition: background 0.2s ease;
}#menu button:hover {
  background: linear-gradient(to right, #666, #444);
  color: #ffcc00;
}.panel {
  margin-top: 10px;
  font-size: 10px;
}.panel.hidden {
  display: none !important;
}#section-content label {
  display: block;
  margin: 10px 0;
  font-size: 10px;
}select {
  font-size: 10px;
  font-family: 'Press Start 2P', cursive;
  width: 100%;
  margin-top: 4px;
}/*  Ignite button */
#igniteButton {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 30%, #ff5500, #990000);
  color: white;
  border: none;
  font-size: 10px;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.6);
  transition: transform 0.3s ease, opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
}#igniteButton:hover {
  transform: scale(1.1);
}#igniteButton.fade-out {
  opacity: 0;
  pointer-events: none;
}/*  Menu Tobacco button */
#menuTobaccoButton {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 30%, #996600, #663300);
  color: white;
  border: none;
  font-size: 10px;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 0 12px rgba(153, 102, 0, 0.6);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
}#menuTobaccoButton:hover {
  transform: scale(1.1);
}/*  Connect Wallet button */
#connectWalletButton {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: radial-gradient(circle at 30% 30%, #4c4c9c, #2c2c6c);
  color: white;
  border: none;
  font-size: 10px;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  border-radius: 20px;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 0 12px rgba(44, 44, 108, 0.6);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}#connectWalletButton:hover {
  transform: translateX(-50%) scale(1.1);
}/*  Responsive */
@media screen and (max-width: 768px) {
  #menu {
    width: 180px;
    padding: 50px 15px 15px 15px;
    margin-top: 90px;
  }  #igniteButton,
  #menuTobaccoButton {
    width: 60px;
    height: 60px;
    font-size: 10px;
  }  #connectWalletButton {
    font-size: 10px;
    padding: 8px 16px;
  }  #menu button {
    font-size: 9px;
  }  .panel, #section-content label, select {
    font-size: 9px;
  }
}                 
.nft-modal {
  position: fixed;
  top: 10vh;
  left: 5vw;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.95);
  padding: 10px;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nft-card {
  background: #fff;
  border-radius: 8px;
  margin: 10px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  max-width: 200px;
}.nft-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}.nft-card p {
  margin: 5px 0 0;
  font-size: 14px;
}

